1/*! For license information please see scripts.399751ed3c58b6cd2afd.js.LICENSE.txt */ 2function statistic(t){!function(){const e="https://analytics.pmb.ro/",i=document,n=(i.createElement("script"),i.getElementsByTagName("script")[0]);n.getAttribute("src")===e+"matomo.js"&&n.remove();const r=window._paq=window._paq||[];r.push(["disableCookies"]),r.push(["setCustomUrl",t]),r.push(["setDocumentTitle",document.domain+"/"+document.title]),r.push(["setDomains",["pmb.ro","www.pmb.ro","www2.pmb.ro","www3.pmb.ro","www4.pmb.ro","doc.pmb.ro","acteinterne.pmb.ro"]]),r.push(["trackPageView"]),r.push(["enableLinkTracking"]),function(){r.push(["setTrackerUrl",e+"matomo.php"]),r.push(["setSiteId","3"]);const t=document,i=t.createElement("script"),n=t.getElementsByTagName("script")[0];i.type="text/javascript",i.async=!0,i.src=e+"matomo.js",n.parentNode.insertBefore(i,n)}()}()}function searchTable(){var t,e,i,n,r,a,s;for(t=document.getElementById("tableSearch").value.toUpperCase().normalize("NFD").replace(/[\u0300-\u036f]/g,""),s=(e=document.getElementById("tableSearchable")).dataset.searchableColumns.split(","),i=e.getElementsByTagName("tr"),r=0;r<i.length;r++)s&&(a="",istd=!1,s.forEach((function(t){(n=i[r].getElementsByTagName("td")[t])&&(a+=n.textContent||n.innerText,istd=!0)})),i[r].style.display=a.toUpperCase().normalize("NFD").replace(/[\u0300-\u036f]/g,"").indexOf(t)>-1||!istd?"":"none")}!function(t,e){"use strict";"object"==typeof module&&"object"==typeof module.exports?module.exports=t.document?e(t,!0):function(t){if(!t.document)throw new Error("jQuery requires a window with a document");return e(t)}:e(t)}("undefined"!=typeof window?window:this,(function(t,e){"use strict";var i=[],n=Object.getPrototypeOf,r=i.slice,a=i.flat?function(t){return i.flat.call(t)}:function(t){return i.concat.apply([],t)},s=i.push,o=i.indexOf,l={},c=l.toString,u=l.hasOwnProperty,d=u.toString,h=d.call(Object),f={},p=function(t){return"function"==typeof t&&"number"!=typeof t.nodeType&&"function"!=typeof t.item},g=function(t){return null!=t&&t===t.window},m=t.document,v={type:!0,src:!0,nonce:!0,noModule:!0};function y(t,e,i){var n,r,a=(i=i||m).createElement("script");if(a.text=t,e)for(n in v)(r=e[n]||e.getAttribute&&e.getAttribute(n))&&a.setAttribute(n,r);i.head.appendChild(a).parentNode.removeChild(a)}function b(t){return null==t?t+"":"object"==typeof t||"function"==typeof t?l[c.call(t)]||"object":typeof t}var w="3.6.0",T=function(t,e){return new T.fn.init(t,e)};function x(t){var e=!!t&&"length"in t&&t.length,i=b(t);return!p(t)&&!g(t)&&("array"===i||0===e||"number"==typeof e&&0<e&&e-1 in t)}T.fn=T.prototype={jquery:w,constructor:T,length:0,toArray:function(){return r.call(this)},get:function(t){return null==t?r.call(this):t<0?this[t+this.length]:this[t]},pushStack:function(t){var e=T.merge(this.constructor(),t);return e.prevObject=this,e},each:function(t){return T.each(this,t)},map:function(t){return this.pushStack(T.map(this,(function(e,i){return t.call(e,i,e)})))},slice:function(){return this.pushStack(r.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(T.grep(this,(function(t,e){return(e+1)%2})))},odd:function(){return this.pushStack(T.grep(this,(function(t,e){return e%2})))},eq:function(t){var e=this.length,i=+t+(t<0?e:0);return this.pushStack(0<=i&&i<e?[this[i]]:[])},end:function(){return this.prevObject||this.constructor()},push:s,sort:i.sort,splice:i.splice},T.extend=T.fn.extend=function(){var t,e,i,n,r,a,s=arguments[0]||{},o=1,l=arguments.length,c=!1;for("boolean"==typeof s&&(c=s,s=arguments[o]||{},o++),"object"==typeof s||p(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(t=arguments[o]))for(e in t)n=t[e],"__proto__"!==e&&s!==n&&(c&&n&&(T.isPlainObject(n)||(r=Array.isArray(n)))?(i=s[e],a=r&&!Array.isArray(i)?[]:r||T.isPlainObject(i)?i:{},r=!1,s[e]=T.extend(c,a,n)):void 0!==n&&(s[e]=n));return s},T.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(t){throw new Error(t)},noop:function(){},isPlainObject:function(t){var e,i;return!(!t||"[object Object]"!==c.call(t)||(e=n(t))&&("function"!=typeof(i=u.call(e,"constructor")&&e.constructor)||d.call(i)!==h))},isEmptyObject:function(t){var e;
vendor: 8,976 bytes, line 2
2for(e in t)return!1;return!0},globalEval:function(t,e,i){y(t,{nonce:e&&e.nonce},i)},each:function(t,e){var i,n=0;if(x(t))for(i=t.length;n<i&&!1!==e.call(t[n],n,t[n]);n++);else for(n in t)if(!1===e.call(t[n],n,t[n]))break;return t},makeArray:function(t,e){var i=e||[];return null!=t&&(x(Object(t))?T.merge(i,"string"==typeof t?[t]:t):s.call(i,t)),i},inArray:function(t,e,i){return null==e?-1:o.call(e,t,i)},merge:function(t,e){for(var i=+e.length,n=0,r=t.length;n<i;n++)t[r++]=e[n];return t.length=r,t},grep:function(t,e,i){for(var n=[],r=0,a=t.length,s=!i;r<a;r++)!e(t[r],r)!==s&&n.push(t[r]);return n},map:function(t,e,i){var n,r,s=0,o=[];if(x(t))for(n=t.length;s<n;s++)null!=(r=e(t[s],s,i))&&o.push(r);else for(s in t)null!=(r=e(t[s],s,i))&&o.push(r);return a(o)},guid:1,support:f}),"function"==typeof Symbol&&(T.fn[Symbol.iterator]=i[Symbol.iterator]),T.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(t,e){l["[object "+e+"]"]=e.toLowerCase()}));var E=function(t){var e,i,n,r,a,s,o,l,c,u,d,h,f,p,g,m,v,y,b,w="sizzle"+1*new Date,T=t.document,x=0,E=0,S=lt(),_=lt(),k=lt(),C=lt(),A=function(t,e){return t===e&&(d=!0),0},R={}.hasOwnProperty,L=[],D=L.pop,O=L.push,P=L.push,I=L.slice,M=function(t,e){for(var i=0,n=t.length;i<n;i++)if(t[i]===e)return i;return-1},F="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",N="[\\x20\\t\\r\\n\\f]",B="(?:\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",U="\\["+N+"*("+B+")(?:"+N+"*([*^$|!~]?=)"+N+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+B+"))|)"+N+"*\\]",j=":("+B+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+U+")*)|.*)\\)|)",$=new RegExp(N+"+","g"),H=new RegExp("^"+N+"+|((?:^|[^\\\\])(?:\\\\.)*)"+N+"+$","g"),G=new RegExp("^"+N+"*,"+N+"*"),z=new RegExp("^"+N+"*([>+~]|"+N+")"+N+"*"),q=new RegExp(N+"|>"),K=new RegExp(j),W=new RegExp("^"+B+"$"),V={ID:new RegExp("^#("+B+")"),CLASS:new RegExp("^\\.("+B+")"),TAG:new RegExp("^("+B+"|[*])"),ATTR:new RegExp("^"+U),PSEUDO:new RegExp("^"+j),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+N+"*(even|odd|(([+-]|)(\\d*)n|)"+N+"*(?:([+-]|)"+N+"*(\\d+)|))"+N+"*\\)|)","i"),bool:new RegExp("^(?:"+F+")$","i"),needsContext:new RegExp("^"+N+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+N+"*((?:-\\d)?\\d*)"+N+"*\\)|)(?=[^-]|$)","i")},Y=/HTML$/i,X=/^(?:input|select|textarea|button)$/i,Q=/^h\d$/i,Z=/^[^{]+\{\s*\[native \w/,J=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,tt=/[+~]/,et=new RegExp("\\\\[\\da-fA-F]{1,6}"+N+"?|\\\\([^\\r\\n\\f])","g"),it=function(t,e){var i="0x"+t.slice(1)-65536;return e||(i<0?String.fromCharCode(i+65536):String.fromCharCode(i>>10|55296,1023&i|56320))},nt=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\0-\x1f\x7f-\uFFFF\w-]/g,rt=function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t},at=function(){h()},st=wt((function(t){return!0===t.disabled&&"fieldset"===t.nodeName.toLowerCase()}),{dir:"parentNode",next:"legend"});try{P.apply(L=I.call(T.childNodes),T.childNodes)}catch(e){P={apply:L.length?function(t,e){O.apply(t,I.call(e))}:function(t,e){for(var i=t.length,n=0;t[i++]=e[n++];);t.length=i-1}}}function ot(t,e,n,r){var a,o,c,u,d,p,v,y=e&&e.ownerDocument,T=e?e.nodeType:9;if(n=n||[],"string"!=typeof t||!t||1!==T&&9!==T&&11!==T)return n;if(!r&&(h(e),e=e||f,g)){if(11!==T&&(d=J.exec(t)))if(a=d[1]){if(9===T){if(!(c=e.getElementById(a)))return n;if(c.id===a)return n.push(c),n}else if(y&&(c=y.getElementById(a))&&b(e,c)&&c.id===a)return n.push(c),n}else{if(d[2])return P.apply(n,e.getElementsByTagName(t)),n;if((a=d[3])&&i.getElementsByClassName&&e.getElementsByClassName)return P.apply(n,e.getElementsByClassName(a)),n}if(i.qsa&&!C[t+" "]&&(!m||!m.test(t))&&(1!==T||"object"!==e.nodeName.toLowerCase())){if(v=t,y=e,1===T&&(q.test(t)||z.test(t))){for((y=tt.test(t)&&vt(e.parentNode)||e)===e&&i.scope||((u=e.getAttribute("id"))?u=u.replace(nt,rt):e.setAttribute("id",u=w)),o=(p=s(t)).length;o--;)p[o]=(u?"#"+u:":scope")+" "+bt(p[o]);v=p.join(",")}try{return P.apply(n,y.querySelectorAll(v)),n}catch(e){C(t,!0)}finally{u===w&&e.removeAttribute("id")}}}return l(t.replace(H,"$1"),e,n,r)}function lt(){var t=[];return function e(i,r){return t.push(i+" ")>n.cacheLength&&delete e[t.shift()],e[i+" "]=r}}function ct(t){return t[w]=!0,t}function ut(t){var e=f.createElement("fieldset");try{return!!t(e)}catch(t){return!1}finally{e.parentNode&&e.parentNode.removeChild(e),e=null}}function dt(t,e){for(var i=t.split("|"),r=i.length;r--;)n.attrHandle[i[r]]=e}function ht(t,e){var i=e&&t,n=i&&1===t.nodeType&&1===e.nodeType&&t.sourceIndex-e.sourceIndex;if(n)return n;if(i)for(;i=i.nextSibling;)if(i===e)return-1;return t?1:-1}function ft(t){return function(e){return"input"===e.nodeName.toLowerCase()&&e.type===t}}function pt(t){return function(e){var i=e.nodeName.toLowerCase();return("input"===i||"button"===i)&&e.type===t}}function gt(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&&st(e)===t:e.disabled===t:"label"in e&&e.disabled===t}}function mt(t){return ct((function(e){return e=+e,ct((function(i,n){for(var r,a=t([],i.length,e),s=a.length;s--;)i[r=a[s]]&&(i[r]=!(n[r]=i[r]))}))}))}function vt(t){return t&&void 0!==t.getElementsByTagName&&t}for(e in i=ot.support={},a=ot.isXML=function(t){var e=t&&(t.ownerDocument||t).documentElement;return!Y.test(t&&t.namespaceURI||e&&e.nodeName||"HTML")},h=ot.setDocument=function(t){var e,r,s=t?t.ownerDocument||t:T;return s!=f&&9===s.nodeType&&s.documentElement&&(p=(f=s).documentElement,g=!a(f),T!=f&&(r=f.defaultView)&&r.top!==r&&(r.addEventListener?r.addEventListener("unload",at,!1):r.attachEvent&&r.attachEvent("onunload",at)),i.scope=ut((function(t){return p.appendChild(t).appendChild(f.createElement("div")),void 0!==t.querySelectorAll&&!t.querySelectorAll(":scope fieldset div").length})),i.attributes=ut((function(t){return t.className="i",!t.getAttribute("className")})),i.getElementsByTagName=ut((function(t){return t.appendChild(f.createComment("")),!t.getElementsByTagName("*").length})),i.getElementsByClassName=Z.test(f.getElementsByClassName),i.getById=ut((function(t){return p.appendChild(t).id=w,!f.getElementsByName||!f.getElementsByName(w).length})),i.getById?(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){return t.getAttribute("id")===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i=e.getElementById(t);return i?[i]:[]}}):(n.filter.ID=function(t){var e=t.replace(et,it);return function(t){var i=void 0!==t.getAttributeNode&&t.getAttributeNode("id");return i&&i.value===e}},n.find.ID=function(t,e){if(void 0!==e.getElementById&&g){var i,n,r,a=e.getElementById(t);if(a){if((i=a.getAttributeNode("id"))&&i.value===t)return[a];for(r=e.getElementsByName(t),n=0;a=r[n++];)if((i=a.getAttributeNode("id"))&&i.value===t)return[a]}return[]}}),n.find.TAG=i.getElementsByTagName?function(t,e){return void 0!==e.getElementsByTagName?e.getElementsByTagName(t):i.qsa?e.querySelectorAll(t):void 0}:function(t,e){var i,n=[],r=0,a=e.getElementsByTagName(t);if("*"===t){for(;i=a[r++];)1===i.nodeType&&n.push(i);return n}return a},n.find.CLASS=i.getElementsByClassName&&function(t,e){if(void 0!==e.getElementsByClassName&&g)return e.getElementsByClassName(t)},v=[],m=[],(i.qsa=Z.test(f.querySelectorAll))&&(ut((function(t){var e;p.appendChild(t).innerHTML="<a id='"+w+"'></a><select id='"+w+"-\r\\' msallowcapture=''><option selected=''></option></select>",t.querySelectorAll("[msallowcapture^='']").length&&m.push("[*^$]="+N+"*(?:''|\"\")"),t.querySelectorAll("[selected]").length||m.push("\\["+N+"*(?:value|"+F+")"),t.querySelectorAll("[id~="+w+"-]").length||m.push("~="),(e=f.createElement("input")).setAttribute("name",""),t.appendChild(e),t.querySelectorAll("[name='']").length||m.push("\\["+N+"*name"+N+"*="+N+"*(?:''|\"\")"),t.querySelectorAll(":checked").length||m.push(":checked"),t.querySelectorAll("a#"+w+"+*").length||m.push(".#.+[+~]"),t.querySelectorAll("\\\f"),m.push("[\\r\\n\\f]")})),ut((function(t){t.innerHTML="<a href='' disabled='disabled'></a><select disabled='disabled'><option/></select>";var e=f.createElement("input");e.setAttribute("type","hidden"),t.appendChild(e).setAttribute("name","D"),t.querySelectorAll("[name=d]").length&&m.push("name"+N+"*[*^$|!~]?="),2!==t.querySelectorAll(":enabled").length&&m.push(":enabled",":disabled"),p.appendChild(t).disabled=!0,2!==t.querySelectorAll(":disabled").length&&m.push(":enabled",":disabled"),t.querySelectorAll("*,:x"),m.push(",.*:")}))),(i.matchesSelector=Z.test(y=p.matches||p.webkitMatchesSelector||p.mozMatchesSelector||p.oMatchesSelector||p.msMatchesSelector))&&ut((function(t){i.disconnectedMatch=y.call(t,"*"),y.call(t,"[s!='']:x"),v.push("!=",j)})),m=m.length&&new RegExp(m.join("|")),v=v.length&&new RegExp(v.j
vendor: 4,364 bytes, line 2
2oin("|")),e=Z.test(p.compareDocumentPosition),b=e||Z.test(p.contains)?function(t,e){var i=9===t.nodeType?t.documentElement:t,n=e&&e.parentNode;return t===n||!(!n||1!==n.nodeType||!(i.contains?i.contains(n):t.compareDocumentPosition&&16&t.compareDocumentPosition(n)))}:function(t,e){if(e)for(;e=e.parentNode;)if(e===t)return!0;return!1},A=e?function(t,e){if(t===e)return d=!0,0;var n=!t.compareDocumentPosition-!e.compareDocumentPosition;return n||(1&(n=(t.ownerDocument||t)==(e.ownerDocument||e)?t.compareDocumentPosition(e):1)||!i.sortDetached&&e.compareDocumentPosition(t)===n?t==f||t.ownerDocument==T&&b(T,t)?-1:e==f||e.ownerDocument==T&&b(T,e)?1:u?M(u,t)-M(u,e):0:4&n?-1:1)}:function(t,e){if(t===e)return d=!0,0;var i,n=0,r=t.parentNode,a=e.parentNode,s=[t],o=[e];if(!r||!a)return t==f?-1:e==f?1:r?-1:a?1:u?M(u,t)-M(u,e):0;if(r===a)return ht(t,e);for(i=t;i=i.parentNode;)s.unshift(i);for(i=e;i=i.parentNode;)o.unshift(i);for(;s[n]===o[n];)n++;return n?ht(s[n],o[n]):s[n]==T?-1:o[n]==T?1:0}),f},ot.matches=function(t,e){return ot(t,null,null,e)},ot.matchesSelector=function(t,e){if(h(t),i.matchesSelector&&g&&!C[e+" "]&&(!v||!v.test(e))&&(!m||!m.test(e)))try{var n=y.call(t,e);if(n||i.disconnectedMatch||t.document&&11!==t.document.nodeType)return n}catch(t){C(e,!0)}return 0<ot(e,f,null,[t]).length},ot.contains=function(t,e){return(t.ownerDocument||t)!=f&&h(t),b(t,e)},ot.attr=function(t,e){(t.ownerDocument||t)!=f&&h(t);var r=n.attrHandle[e.toLowerCase()],a=r&&R.call(n.attrHandle,e.toLowerCase())?r(t,e,!g):void 0;return void 0!==a?a:i.attributes||!g?t.getAttribute(e):(a=t.getAttributeNode(e))&&a.specified?a.value:null},ot.escape=function(t){return(t+"").replace(nt,rt)},ot.error=function(t){throw new Error("Syntax error, unrecognized expression: "+t)},ot.uniqueSort=function(t){var e,n=[],r=0,a=0;if(d=!i.detectDuplicates,u=!i.sortStable&&t.slice(0),t.sort(A),d){for(;e=t[a++];)e===t[a]&&(r=n.push(a));for(;r--;)t.splice(n[r],1)}return u=null,t},r=ot.getText=function(t){var e,i="",n=0,a=t.nodeType;if(a){if(1===a||9===a||11===a){if("string"==typeof t.textContent)return t.textContent;for(t=t.firstChild;t;t=t.nextSibling)i+=r(t)}else if(3===a||4===a)return t.nodeValue}else for(;e=t[n++];)i+=r(e);return i},(n=ot.selectors={cacheLength:50,createPseudo:ct,match:V,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(t){return t[1]=t[1].replace(et,it),t[3]=(t[3]||t[4]||t[5]||"").replace(et,it),"~="===t[2]&&(t[3]=" "+t[3]+" "),t.slice(0,4)},CHILD:function(t){return t[1]=t[1].toLowerCase(),"nth"===t[1].slice(0,3)?(t[3]||ot.error(t[0]),t[4]=+(t[4]?t[5]+(t[6]||1):2*("even"===t[3]||"odd"===t[3])),t[5]=+(t[7]+t[8]||"odd"===t[3])):t[3]&&ot.error(t[0]),t},PSEUDO:function(t){var e,i=!t[6]&&t[2];return V.CHILD.test(t[0])?null:(t[3]?t[2]=t[4]||t[5]||"":i&&K.test(i)&&(e=s(i,!0))&&(e=i.indexOf(")",i.length-e)-i.length)&&(t[0]=t[0].slice(0,e),t[2]=i.slice(0,e)),t.slice(0,3))}},filter:{TAG:function(t){var e=t.replace(et,it).toLowerCase();return"*"===t?function(){return!0}:function(t){return t.nodeName&&t.nodeName.toLowerCase()===e}},CLASS:function(t){var e=S[t+" "];return e||(e=new RegExp("(^|"+N+")"+t+"("+N+"|$)"))&&S(t,(function(t){return e.test("string"==typeof t.className&&t.className||void 0!==t.getAttribute&&t.getAttribute("class")||"")}))},ATTR:function(t,e,i){return function(n){var r=ot.attr(n,t);return null==r?"!="===e:!e||(r+="","="===e?r===i:"!="===e?r!==i:"^="===e?i&&0===r.indexOf(i):"*="===e?i&&-1<r.indexOf(i):"$="===e?i&&r.slice(-i.length)===i:"~="===e?-1<(" "+r.replace($," ")+" ").indexOf(i):"|="===e&&(r===i||r.slice(0,i.length+1)===i+"-"))}},CHILD:function(t,e,i,n,r){var a="nth"!==t.slice(0,3),s="last"!==t.slice(-4),o="of-type"===e;return 1===n&&0===r?function(t){return!!t.parentNode}:function(e,i,l){var c,u,d,h,f,p,g=a!==s?"nextSibling":"previousSibling",m=e.parentNode,v=o&&e.nodeName.toLowerCase(),y=!l&&!o,b=!1;if(m){if(a){for(;g;){for(h=e;h=h[g];)if(o?h.nodeName.toLowerCase()===v:1===h.nodeType)return!1;p=g="only"===t&&!p&&"nextSibling"}return!0}if(p=[s?m.firstChild:m.lastChild],s&&y){for(b=(f=(c=(u=(d=(h=m)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&c[1])&&c[2],h=f&&m.childNodes[f];h=++f&&h&&h[g]||(b=f=0)||p.pop();)if(1===h.nodeType&&++b&&h===e){u[t]=[x,f,b];break}}
vendor: 15,520 bytes, line 2
2else if(y&&(b=f=(c=(u=(d=(h=e)[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]||[])[0]===x&&c[1]),!1===b)for(;(h=++f&&h&&h[g]||(b=f=0)||p.pop())&&((o?h.nodeName.toLowerCase()!==v:1!==h.nodeType)||!++b||(y&&((u=(d=h[w]||(h[w]={}))[h.uniqueID]||(d[h.uniqueID]={}))[t]=[x,b]),h!==e)););return(b-=r)===n||b%n==0&&0<=b/n}}},PSEUDO:function(t,e){var i,r=n.pseudos[t]||n.setFilters[t.toLowerCase()]||ot.error("unsupported pseudo: "+t);return r[w]?r(e):1<r.length?(i=[t,t,"",e],n.setFilters.hasOwnProperty(t.toLowerCase())?ct((function(t,i){for(var n,a=r(t,e),s=a.length;s--;)t[n=M(t,a[s])]=!(i[n]=a[s])})):function(t){return r(t,0,i)}):r}},pseudos:{not:ct((function(t){var e=[],i=[],n=o(t.replace(H,"$1"));return n[w]?ct((function(t,e,i,r){for(var a,s=n(t,null,r,[]),o=t.length;o--;)(a=s[o])&&(t[o]=!(e[o]=a))})):function(t,r,a){return e[0]=t,n(e,null,a,i),e[0]=null,!i.pop()}})),has:ct((function(t){return function(e){return 0<ot(t,e).length}})),contains:ct((function(t){return t=t.replace(et,it),function(e){return-1<(e.textContent||r(e)).indexOf(t)}})),lang:ct((function(t){return W.test(t||"")||ot.error("unsupported lang: "+t),t=t.replace(et,it).toLowerCase(),function(e){var i;do{if(i=g?e.lang:e.getAttribute("xml:lang")||e.getAttribute("lang"))return(i=i.toLowerCase())===t||0===i.indexOf(t+"-")}while((e=e.parentNode)&&1===e.nodeType);return!1}})),target:function(e){var i=t.location&&t.location.hash;return i&&i.slice(1)===e.id},root:function(t){return t===p},focus:function(t){return t===f.activeElement&&(!f.hasFocus||f.hasFocus())&&!!(t.type||t.href||~t.tabIndex)},enabled:gt(!1),disabled:gt(!0),checked:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&!!t.checked||"option"===e&&!!t.selected},selected:function(t){return!0===t.selected},empty:function(t){for(t=t.firstChild;t;t=t.nextSibling)if(t.nodeType<6)return!1;return!0},parent:function(t){return!n.pseudos.empty(t)},header:function(t){return Q.test(t.nodeName)},input:function(t){return X.test(t.nodeName)},button:function(t){var e=t.nodeName.toLowerCase();return"input"===e&&"button"===t.type||"button"===e},text:function(t){var e;return"input"===t.nodeName.toLowerCase()&&"text"===t.type&&(null==(e=t.getAttribute("type"))||"text"===e.toLowerCase())},first:mt((function(){return[0]})),last:mt((function(t,e){return[e-1]})),eq:mt((function(t,e,i){return[i<0?i+e:i]})),even:mt((function(t,e){for(var i=0;i<e;i+=2)t.push(i);return t})),odd:mt((function(t,e){for(var i=1;i<e;i+=2)t.push(i);return t})),lt:mt((function(t,e,i){for(var n=i<0?i+e:e<i?e:i;0<=--n;)t.push(n);return t})),gt:mt((function(t,e,i){for(var n=i<0?i+e:i;++n<e;)t.push(n);return t}))}}).pseudos.nth=n.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})n.pseudos[e]=ft(e);for(e in{submit:!0,reset:!0})n.pseudos[e]=pt(e);function yt(){}function bt(t){for(var e=0,i=t.length,n="";e<i;e++)n+=t[e].value;return n}function wt(t,e,i){var n=e.dir,r=e.next,a=r||n,s=i&&"parentNode"===a,o=E++;return e.first?function(e,i,r){for(;e=e[n];)if(1===e.nodeType||s)return t(e,i,r);return!1}:function(e,i,l){var c,u,d,h=[x,o];if(l){for(;e=e[n];)if((1===e.nodeType||s)&&t(e,i,l))return!0}else for(;e=e[n];)if(1===e.nodeType||s)if(u=(d=e[w]||(e[w]={}))[e.uniqueID]||(d[e.uniqueID]={}),r&&r===e.nodeName.toLowerCase())e=e[n]||e;else{if((c=u[a])&&c[0]===x&&c[1]===o)return h[2]=c[2];if((u[a]=h)[2]=t(e,i,l))return!0}return!1}}function Tt(t){return 1<t.length?function(e,i,n){for(var r=t.length;r--;)if(!t[r](e,i,n))return!1;return!0}:t[0]}function xt(t,e,i,n,r){for(var a,s=[],o=0,l=t.length,c=null!=e;o<l;o++)(a=t[o])&&(i&&!i(a,n,r)||(s.push(a),c&&e.push(o)));return s}function Et(t,e,i,n,r,a){return n&&!n[w]&&(n=Et(n)),r&&!r[w]&&(r=Et(r,a)),ct((function(a,s,o,l){var c,u,d,h=[],f=[],p=s.length,g=a||function(t,e,i){for(var n=0,r=e.length;n<r;n++)ot(t,e[n],i);return i}(e||"*",o.nodeType?[o]:o,[]),m=!t||!a&&e?g:xt(g,h,t,o,l),v=i?r||(a?t:p||n)?[]:s:m;if(i&&i(m,v,o,l),n)for(c=xt(v,f),n(c,[],o,l),u=c.length;u--;)(d=c[u])&&(v[f[u]]=!(m[f[u]]=d));if(a){if(r||t){if(r){for(c=[],u=v.length;u--;)(d=v[u])&&c.push(m[u]=d);r(null,v=[],c,l)}for(u=v.length;u--;)(d=v[u])&&-1<(c=r?M(a,d):h[u])&&(a[c]=!(s[c]=d))}}else v=xt(v===s?v.splice(p,v.length):v),r?r(null,s,v,l):P.apply(s,v)}))}function St(t){for(var e,i,r,a=t.length,s=n.relative[t[0].type],o=s||n.relative[" "],l=s?1:0,u=wt((function(t){return t===e}),o,!0),d=wt((function(t){return-1<M(e,t)}),o,!0),h=[function(t,i,n){var r=!s&&(n||i!==c)||((e=i).nodeType?u(t,i,n):d(t,i,n));return e=null,r}];l<a;l++)if(i=n.relative[t[l].type])h=[wt(Tt(h),i)];else{if((i=n.filter[t[l].type].apply(null,t[l].matches))[w]){for(r=++l;r<a&&!n.relative[t[r].type];r++);return Et(1<l&&Tt(h),1<l&&bt(t.slice(0,l-1).concat({value:" "===t[l-2].type?"*":""})).replace(H,"$1"),i,l<r&&St(t.slice(l,r)),r<a&&St(t=t.slice(r)),r<a&&bt(t))}h.push(i)}return Tt(h)}return yt.prototype=n.filters=n.pseudos,n.setFilters=new yt,s=ot.tokenize=function(t,e){var i,r,a,s,o,l,c,u=_[t+" "];if(u)return e?0:u.slice(0);for(o=t,l=[],c=n.preFilter;o;){for(s in i&&!(r=G.exec(o))||(r&&(o=o.slice(r[0].length)||o),l.push(a=[])),i=!1,(r=z.exec(o))&&(i=r.shift(),a.push({value:i,type:r[0].replace(H," ")}),o=o.slice(i.length)),n.filter)!(r=V[s].exec(o))||c[s]&&!(r=c[s](r))||(i=r.shift(),a.push({value:i,type:s,matches:r}),o=o.slice(i.length));if(!i)break}return e?o.length:o?ot.error(t):_(t,l).slice(0)},o=ot.compile=function(t,e){var i,r,a,o,l,u,d=[],p=[],m=k[t+" "];if(!m){for(e||(e=s(t)),i=e.length;i--;)(m=St(e[i]))[w]?d.push(m):p.push(m);(m=k(t,(r=p,o=0<(a=d).length,l=0<r.length,u=function(t,e,i,s,u){var d,p,m,v=0,y="0",b=t&&[],w=[],T=c,E=t||l&&n.find.TAG("*",u),S=x+=null==T?1:Math.random()||.1,_=E.length;for(u&&(c=e==f||e||u);y!==_&&null!=(d=E[y]);y++){if(l&&d){for(p=0,e||d.ownerDocument==f||(h(d),i=!g);m=r[p++];)if(m(d,e||f,i)){s.push(d);break}u&&(x=S)}o&&((d=!m&&d)&&v--,t&&b.push(d))}if(v+=y,o&&y!==v){for(p=0;m=a[p++];)m(b,w,e,i);if(t){if(0<v)for(;y--;)b[y]||w[y]||(w[y]=D.call(s));w=xt(w)}P.apply(s,w),u&&!t&&0<w.length&&1<v+a.length&&ot.uniqueSort(s)}return u&&(x=S,c=T),b},o?ct(u):u))).selector=t}return m},l=ot.select=function(t,e,i,r){var a,l,c,u,d,h="function"==typeof t&&t,f=!r&&s(t=h.selector||t);if(i=i||[],1===f.length){if(2<(l=f[0]=f[0].slice(0)).length&&"ID"===(c=l[0]).type&&9===e.nodeType&&g&&n.relative[l[1].type]){if(!(e=(n.find.ID(c.matches[0].replace(et,it),e)||[])[0]))return i;h&&(e=e.parentNode),t=t.slice(l.shift().value.length)}for(a=V.needsContext.test(t)?0:l.length;a--&&!n.relative[u=(c=l[a]).type];)if((d=n.find[u])&&(r=d(c.matches[0].replace(et,it),tt.test(l[0].type)&&vt(e.parentNode)||e))){if(l.splice(a,1),!(t=r.length&&bt(l)))return P.apply(i,r),i;break}}return(h||o(t,f))(r,e,!g,i,!e||tt.test(t)&&vt(e.parentNode)||e),i},i.sortStable=w.split("").sort(A).join("")===w,i.detectDuplicates=!!d,h(),i.sortDetached=ut((function(t){return 1&t.compareDocumentPosition(f.createElement("fieldset"))})),ut((function(t){return t.innerHTML="<a href='#'></a>","#"===t.firstChild.getAttribute("href")}))||dt("type|href|height|width",(function(t,e,i){if(!i)return t.getAttribute(e,"type"===e.toLowerCase()?1:2)})),i.attributes&&ut((function(t){return t.innerHTML="<input/>",t.firstChild.setAttribute("value",""),""===t.firstChild.getAttribute("value")}))||dt("value",(function(t,e,i){if(!i&&"input"===t.nodeName.toLowerCase())return t.defaultValue})),ut((function(t){return null==t.getAttribute("disabled")}))||dt(F,(function(t,e,i){var n;if(!i)return!0===t[e]?e.toLowerCase():(n=t.getAttributeNode(e))&&n.specified?n.value:null})),ot}(t);T.find=E,T.expr=E.selectors,T.expr[":"]=T.expr.pseudos,T.uniqueSort=T.unique=E.uniqueSort,T.text=E.getText,T.isXMLDoc=E.isXML,T.contains=E.contains,T.escapeSelector=E.escape;var S=function(t,e,i){for(var n=[],r=void 0!==i;(t=t[e])&&9!==t.nodeType;)if(1===t.nodeType){if(r&&T(t).is(i))break;n.push(t)}return n},_=function(t,e){for(var i=[];t;t=t.nextSibling)1===t.nodeType&&t!==e&&i.push(t);return i},k=T.expr.match.needsContext;function C(t,e){return t.nodeName&&t.nodeName.toLowerCase()===e.toLowerCase()}var A=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function R(t,e,i){return p(e)?T.grep(t,(function(t,n){return!!e.call(t,n,t)!==i})):e.nodeType?T.grep(t,(function(t){return t===e!==i})):"string"!=typeof e?T.grep(t,(function(t){return-1<o.call(e,t)!==i})):T.filter(e,t,i)}T.filter=function(t,e,i){var n=e[0];return i&&(t=":not("+t+")"),1===e.length&&1===n.nodeType?T.find.matchesSelector(n,t)?[n]:[]:T.find.matches(t,T.grep(e,(function(t){return 1===t.nodeType})))},T.fn.extend({find:function(t){var e,i,n=this.length,r=this;if("string"!=typeof t)return this.pushStack(T(t).filter((function(){for(e=0;e<n;e++)if(T.contains(r[e],this))return!0})));for(i=this.pushStack([]),e=0;e<n;e++)T.find(t,r[e],i);return 1<n?T.uniqueSort(i):i},filter:function(t){return this.pushStack(R(this,t||[],!1))},not:function(t){return this.pushStack(R(this,t||[],!0))},is:function(t){return!!R(this,"string"==typeof t&&k.test(t)?T(t):t||[],!1).length}});var L,D=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(T.fn.init=function(t,e,i){var n,r;if(!t)return this;if(i=i||L,"string"==typeof t){if(!(n="<"===t[0]&&">"===t[t.length-1]&&3<=t.length?[null,t,null]:D.exec(t))||!n[1]&&e)return!e||e.jquery?(e||i).find(t):this.constructor(e).find(t);if(n[1]){if(T.merge(this,T.parseHTML(n[1],(e=e instanceof T?e[0]:e)&&e.nodeType?e.ownerDocument||e:m,!0)),A.test(n[1])&&T.isPlainObject(e))for(n in e)p(this[n])?this[n](e[n]):this.attr(n,e[n]);return this}return(r=m.getElementById(n[2]))&&(this[0]=r,this.length=1),this}return t.nodeType?(this[0]=t,this.length=1,this):p(t)?void 0!==i.ready?i.ready(t):t(T):T.makeArray(t,this)}).prototype=T.fn,L=T(m);var O=/^(?:parents|prev(?:Until|All))/,P={children:!0,contents:!0,next:!0,prev:!0};function I(t,e){for(;(t=t[e])&&1!==t.nodeType;);return t}T.fn.extend({has:function(t){var e=T(t,this),i=e.length;return this.filter((function(){for(var t=0;t<i;t++)if(T.contains(this,e[t]))return!0}))},closest:function(t,e){var i,n=0,r=this.length,a=[],s="string"!=typeof t&&T(t);if(!k.test(t))for(;n<r;n++)for(i=this[n];i&&i!==e;i=i.parentNode)if(i.nodeType<11&&(s?-1<s.index(i):1===i.nodeType&&T.find.matchesSelector(i,t))){a.push(i);break}return this.pushStack(1<a.length?T.uniqueSort(a):a)},index:function(t){return t?"string"==typeof t?o.call(T(t),this[0]):o.call(this,t.jquery?t[0]:t):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(t,e){return this.pushStack(T.uniqueSort(T.merge(this.get(),T(t,e))))},addBack:function(t){return this.add(null==t?this.prevObject:this.prevObject.filter(t))}}),T.each({parent:function(t){var e=t.parentNode;return e&&11!==e.nodeType?e:null},parents:function(t){return S(t,"parentNode")},parentsUntil:function(t,e,i){return S(t,"parentNode",i)},next:function(t){return I(t,"nextSibling")},prev:function(t){return I(t,"previousSibling")},nextAll:function(t){return S(t,"nextSibling")},prevAll:function(t){return S(t,"previousSibling")},nextUntil:function(t,e,i){return S(t,"nextSibling",i)},prevUntil:function(t,e,i){return S(t,"previousSibling",i)},siblings:function(t){return _((t.parentNode||{}).firstChild,t)},children:function(t){return _(t.firstChild)},contents:function(t){return null!=t.contentDocument&&n(t.contentDocument)?t.contentDocument:(C(t,"template")&&(t=t.content||t),T.merge([],t.childNodes))}},(function(t,e){T.fn[t]=function(i,n){var r=T.map(this,e,i);return"Until"!==t.slice(-5)&&(n=i),n&&"string"==typeof n&&(r=T.filter(n,r)),1<this.length&&(P[t]||T.uniqueSort(r),O.test(t)&&r.reverse()),this.pushStack(r)}}));var M=/[^\x20\t\r\n\f]+/g;function F(t){return t}function N(t){throw t}function B(t,e,i,n){var r;try{t&&p(r=t.promise)?r.call(t).done(e).fail(i):t&&p(r=t.then)?r.call(t,e,i):e.apply(void 0,[t].slice(n))}catch(t){i.apply(void 0,[t])}}T.Callbacks=function(t){var e;t="string"==typeof t?(e={},T.each(t.match(M)||[],(function(t,i){e[i]=!0})),e):T.extend({},t);var i,n,r,a,s=[],o=[],l=-1,c=function(){for(a=a||t.once,r=i=!0;o.length;l=-1)for(n=o.shift();++l<s.length;)!1===s[l].apply(n[0],n[1])&&t.stopOnFalse&&(l=s.length,n=!1);t.memory||(n=!1),i=!1,a&&(s=n?[]:"")},u={add:function(){return s&&(n&&!i&&(l=s.length-1,o.push(n)),function e(i){T.each(i,(function(i,n){p(n)?t.unique&&u.has(n)||s.push(n):n&&n.length&&"string"!==b(n)&&e(n)}))}(arguments),n&&!i&&c()),this},remove:function(){return T.each(arguments,(function(t,e){for(var i;-1<(i=T.inArray(e,s,i));)s.splice(i,1),i<=l&&l--})),this},has:function(t){return t?-1<T.inArray(t,s):0<s.length},empty:function(){return s&&(s=[]),this},disable:function(){return a=o=[],s=n="",this},disabled:function(){return!s},lock:function(){return a=o=[],n||i||(s=n=""),this},locked:function(){return!!a},fireWith:function(t,e){return a||(e=[t,(e=e||[]).slice?e.slice():e],o.push(e),i||c()),this},fire:function(){return u.fireWith(this,arguments),this},fired:function(){return!!r}};return u},T.extend({Deferred:function(e){var i=[["notify","progress",T.Callbacks("memory"),T.Callbacks("memory"),2],["resolve","done",T.Callbacks("once memory"),T.Callbacks("once memory"),0,"resolved"],["reject","fail",T.Callbacks("once memory"),T.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(t){return r.then(null,t)},pipe:function(){var t=arguments;return T.Deferred((function(e){T.each(i,(function(i,n){var r=p(t[n[4]])&&t[n[4]];a[n[1]]((function(){var t=r&&r.apply(this,arguments);t&&p(t.promise)?t.promise().progress(e.notify).done(e.resolve).fail(e.reject):e[n[0]+"With"](this,r?[t]:arguments)}))})),t=null})).promise()},then:function(e,n,r){var a=0;function s(e,i,n,r){return function(){var o=this,l=arguments,c=function(){var t,c;if(!(e<a)){if((t=n.apply(o,l))===i.promise())throw new TypeError("Thenable self-resolution");p(c=t&&("object"==typeof t||"function"==typeof t)&&t.then)?r?c.call(t,s(a,i,F,r),s(a,i,N,r)):(a++,c.call(t,s(a,i,F,r),s(a,i,N,r),s(a,i,F,i.notifyWith))):(n!==F&&(o=void 0,l=[t]),(r||i.resolveWith)(o,l))}},u=r?c:function(){try{c()}catch(c){T.Deferred.exceptionHook&&T.Deferred.exceptionHook(c,u.stackTrace),a<=e+1&&(n!==N&&(o=void 0,l=[c]),i.rejectWith(o,l))}};e?u():(T.Deferred.getStackHook&&(u.stackTrace=T.Deferred.getStackHook()),t.setTimeout(u))}}return T.Deferred((function(t){i[0][3].add(s(0,t,p(r)?r:F,t.notifyWith)),i[1][3].add(s(0,t,p(e)?e:F)),i[2][3].add(s(0,t,p(n)?n:N))})).promise()},promise:function(t){return null!=t?T.extend(t,r):r}},a={};return T.each(i,(function(t,e){var s=e[2],o=e[5];r[e[1]]=s.add,o&&s.add((function(){n=o}),i[3-t][2].disable,i[3-t][3].disable,i[0][2].lock,i[0][3].lock),s.add(e[3].fire),a[e[0]]=function(){return a[e[0]+"With"](this===a?void 0:this,arguments),this},a[e[0]+"With"]=s.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(t){var e=arguments.length,i=e,n=Array(i),a=r.call(arguments),s=T.Deferred(),o=function(t){return function(i){n[t]=this,a[t]=1<arguments.length?r.call(arguments):i,--e||s.resolveWith(n,a)}};if(e<=1&&(B(t,s.done(o(i)).resolve,s.reject,!e),"pending"===s.state()||p(a[i]&&a[i].then)))return s.then();for(;i--;)B(a[i],o(i),s.reject);return s.promise()}});var U=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;T.Deferred.exceptionHook=function(e,i){t.console&&t.console.warn&&e&&U.test(e.name)&&t.console.warn("jQuery.Deferred exception: "+e.message,e.stack,i)},T.readyException=function(e){t.setTimeout((function(){throw e}))};var j=T.Deferred();function $(){m.removeEventListener("DOMContentLoaded",$),t.removeEventListener("load",$),T.ready()}
vendor: 1,662 bytes, line 2
2T.fn.ready=function(t){return j.then(t).catch((function(t){T.readyException(t)})),this},T.extend({isReady:!1,readyWait:1,ready:function(t){(!0===t?--T.readyWait:T.isReady)||(T.isReady=!0)!==t&&0<--T.readyWait||j.resolveWith(m,[T])}}),T.ready.then=j.then,"complete"===m.readyState||"loading"!==m.readyState&&!m.documentElement.doScroll?t.setTimeout(T.ready):(m.addEventListener("DOMContentLoaded",$),t.addEventListener("load",$));var H=function(t,e,i,n,r,a,s){var o=0,l=t.length,c=null==i;if("object"===b(i))for(o in r=!0,i)H(t,e,o,i[o],!0,a,s);else if(void 0!==n&&(r=!0,p(n)||(s=!0),c&&(s?(e.call(t,n),e=null):(c=e,e=function(t,e,i){return c.call(T(t),i)})),e))for(;o<l;o++)e(t[o],i,s?n:n.call(t[o],o,e(t[o],i)));return r?t:c?e.call(t):l?e(t[0],i):a},G=/^-ms-/,z=/-([a-z])/g;function q(t,e){return e.toUpperCase()}function K(t){return t.replace(G,"ms-").replace(z,q)}var W=function(t){return 1===t.nodeType||9===t.nodeType||!+t.nodeType};function V(){this.expando=T.expando+V.uid++}V.uid=1,V.prototype={cache:function(t){var e=t[this.expando];return e||(e={},W(t)&&(t.nodeType?t[this.expando]=e:Object.defineProperty(t,this.expando,{value:e,configurable:!0}))),e},set:function(t,e,i){var n,r=this.cache(t);if("string"==typeof e)r[K(e)]=i;else for(n in e)r[K(n)]=e[n];return r},get:function(t,e){return void 0===e?this.cache(t):t[this.expando]&&t[this.expando][K(e)]},access:function(t,e,i){return void 0===e||e&&"string"==typeof e&&void 0===i?this.get(t,e):(this.set(t,e,i),void 0!==i?i:e)},remove:function(t,e){var i,n=t[this.expando];if(void 0!==n){if(void 0!==e){i=(e=Array.isArray(e)?e.map(K):(e=K(e))in n?[e]:e.match(M)||[]).length;for(;i--;)delete n[e[i]]}
vendor: 4,521 bytes, line 2
2(void 0===e||T.isEmptyObject(n))&&(t.nodeType?t[this.expando]=void 0:delete t[this.expando])}},hasData:function(t){var e=t[this.expando];return void 0!==e&&!T.isEmptyObject(e)}};var Y=new V,X=new V,Q=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,Z=/[A-Z]/g;function J(t,e,i){var n,r;if(void 0===i&&1===t.nodeType)if(n="data-"+e.replace(Z,"-$&").toLowerCase(),"string"==typeof(i=t.getAttribute(n))){try{i="true"===(r=i)||"false"!==r&&("null"===r?null:r===+r+""?+r:Q.test(r)?JSON.parse(r):r)}catch(t){}X.set(t,e,i)}else i=void 0;return i}T.extend({hasData:function(t){return X.hasData(t)||Y.hasData(t)},data:function(t,e,i){return X.access(t,e,i)},removeData:function(t,e){X.remove(t,e)},_data:function(t,e,i){return Y.access(t,e,i)},_removeData:function(t,e){Y.remove(t,e)}}),T.fn.extend({data:function(t,e){var i,n,r,a=this[0],s=a&&a.attributes;if(void 0===t){if(this.length&&(r=X.get(a),1===a.nodeType&&!Y.get(a,"hasDataAttrs"))){for(i=s.length;i--;)s[i]&&0===(n=s[i].name).indexOf("data-")&&(n=K(n.slice(5)),J(a,n,r[n]));Y.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof t?this.each((function(){X.set(this,t)})):H(this,(function(e){var i;if(a&&void 0===e)return void 0!==(i=X.get(a,t))||void 0!==(i=J(a,t))?i:void 0;this.each((function(){X.set(this,t,e)}))}),null,e,1<arguments.length,null,!0)},removeData:function(t){return this.each((function(){X.remove(this,t)}))}}),T.extend({queue:function(t,e,i){var n;if(t)return n=Y.get(t,e=(e||"fx")+"queue"),i&&(!n||Array.isArray(i)?n=Y.access(t,e,T.makeArray(i)):n.push(i)),n||[]},dequeue:function(t,e){var i=T.queue(t,e=e||"fx"),n=i.length,r=i.shift(),a=T._queueHooks(t,e);"inprogress"===r&&(r=i.shift(),n--),r&&("fx"===e&&i.unshift("inprogress"),delete a.stop,r.call(t,(function(){T.dequeue(t,e)}),a)),!n&&a&&a.empty.fire()},_queueHooks:function(t,e){var i=e+"queueHooks";return Y.get(t,i)||Y.access(t,i,{empty:T.Callbacks("once memory").add((function(){Y.remove(t,[e+"queue",i])}))})}}),T.fn.extend({queue:function(t,e){var i=2;return"string"!=typeof t&&(e=t,t="fx",i--),arguments.length<i?T.queue(this[0],t):void 0===e?this:this.each((function(){var i=T.queue(this,t,e);T._queueHooks(this,t),"fx"===t&&"inprogress"!==i[0]&&T.dequeue(this,t)}))},dequeue:function(t){return this.each((function(){T.dequeue(this,t)}))},clearQueue:function(t){return this.queue(t||"fx",[])},promise:function(t,e){var i,n=1,r=T.Deferred(),a=this,s=this.length,o=function(){--n||r.resolveWith(a,[a])};for("string"!=typeof t&&(e=t,t=void 0),t=t||"fx";s--;)(i=Y.get(a[s],t+"queueHooks"))&&i.empty&&(n++,i.empty.add(o));return o(),r.promise(e)}});var tt=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,et=new RegExp("^(?:([+-])=|)("+tt+")([a-z%]*)$","i"),it=["Top","Right","Bottom","Left"],nt=m.documentElement,rt=function(t){return T.contains(t.ownerDocument,t)},at={composed:!0};nt.getRootNode&&(rt=function(t){return T.contains(t.ownerDocument,t)||t.getRootNode(at)===t.ownerDocument});var st=function(t,e){return"none"===(t=e||t).style.display||""===t.style.display&&rt(t)&&"none"===T.css(t,"display")};function ot(t,e,i,n){var r,a,s=20,o=n?function(){return n.cur()}:function(){return T.css(t,e,"")},l=o(),c=i&&i[3]||(T.cssNumber[e]?"":"px"),u=t.nodeType&&(T.cssNumber[e]||"px"!==c&&+l)&&et.exec(T.css(t,e));if(u&&u[3]!==c){for(c=c||u[3],u=+(l/=2)||1;s--;)T.style(t,e,u+c),(1-a)*(1-(a=o()/l||.5))<=0&&(s=0),u/=a;T.style(t,e,(u*=2)+c),i=i||[]}return i&&(u=+u||+l||0,r=i[1]?u+(i[1]+1)*i[2]:+i[2],n&&(n.unit=c,n.start=u,n.end=r)),r}var lt={};function ct(t,e){for(var i,n,r,a,s,o,l,c=[],u=0,d=t.length;u<d;u++)(n=t[u]).style&&(i=n.style.display,e?("none"===i&&(c[u]=Y.get(n,"display")||null,c[u]||(n.style.display="")),""===n.style.display&&st(n)&&(c[u]=(l=s=a=void 0,s=(r=n).ownerDocument,(l=lt[o=r.nodeName])||(a=s.body.appendChild(s.createElement(o)),l=T.css(a,"display"),a.parentNode.removeChild(a),"none"===l&&(l="block"),lt[o]=l)))):"none"!==i&&(c[u]="none",Y.set(n,"display",i)));for(u=0;u<d;u++)null!=c[u]&&(t[u].style.display=c[u]);return t}T.fn.extend({show:function(){return ct(this,!0)},hide:function(){return ct(this)},toggle:function(t){return"boolean"==typeof t?t?this.show():this.hide():this.each((function(){st(this)?T(this).show():T(this).hide()}))}});var ut,dt,ht=/^(?:checkbox|radio)$/i,ft=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,pt=/^$|^module$|\/(?:java|ecma)script/i;ut=m.createDocumentFragment().appendChild(m.createElement("div")),(dt=m.createElement("input")).setAttribute("type","radio"),dt.setAttribute("checked","checked"),dt.setAttribute("name","t"),ut.appendChild(dt),f.checkClone
vendor: 5,388 bytes, line 2
2=ut.cloneNode(!0).cloneNode(!0).lastChild.checked,ut.innerHTML="<textarea>x</textarea>",f.noCloneChecked=!!ut.cloneNode(!0).lastChild.defaultValue,ut.innerHTML="<option></option>",f.option=!!ut.lastChild;var gt={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 mt(t,e){var i;return i=void 0!==t.getElementsByTagName?t.getElementsByTagName(e||"*"):void 0!==t.querySelectorAll?t.querySelectorAll(e||"*"):[],void 0===e||e&&C(t,e)?T.merge([t],i):i}function vt(t,e){for(var i=0,n=t.length;i<n;i++)Y.set(t[i],"globalEval",!e||Y.get(e[i],"globalEval"))}gt.tbody=gt.tfoot=gt.colgroup=gt.caption=gt.thead,gt.th=gt.td,f.option||(gt.optgroup=gt.option=[1,"<select multiple='multiple'>","</select>"]);var yt=/<|&#?\w+;/;function bt(t,e,i,n,r){for(var a,s,o,l,c,u,d=e.createDocumentFragment(),h=[],f=0,p=t.length;f<p;f++)if((a=t[f])||0===a)if("object"===b(a))T.merge(h,a.nodeType?[a]:a);else if(yt.test(a)){for(s=s||d.appendChild(e.createElement("div")),o=(ft.exec(a)||["",""])[1].toLowerCase(),s.innerHTML=(l=gt[o]||gt._default)[1]+T.htmlPrefilter(a)+l[2],u=l[0];u--;)s=s.lastChild;T.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(e.createTextNode(a));for(d.textContent="",f=0;a=h[f++];)if(n&&-1<T.inArray(a,n))r&&r.push(a);else if(c=rt(a),s=mt(d.appendChild(a),"script"),c&&vt(s),i)for(u=0;a=s[u++];)pt.test(a.type||"")&&i.push(a);return d}var wt=/^([^.]*)(?:\.(.+)|)/;function Tt(){return!0}function xt(){return!1}function Et(t,e){return t===function(){try{return m.activeElement}catch(t){}}()==("focus"===e)}function St(t,e,i,n,r,a){var s,o;if("object"==typeof e){for(o in"string"!=typeof i&&(n=n||i,i=void 0),e)St(t,o,i,n,e[o],a);return t}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=xt;else if(!r)return t;return 1===a&&(s=r,(r=function(t){return T().off(t),s.apply(this,arguments)}).guid=s.guid||(s.guid=T.guid++)),t.each((function(){T.event.add(this,e,r,n,i)}))}function _t(t,e,i){i?(Y.set(t,e,!1),T.event.add(t,e,{namespace:!1,handler:function(t){var n,a,s=Y.get(this,e);if(1&t.isTrigger&&this[e]){if(s.length)(T.event.special[e]||{}).delegateType&&t.stopPropagation();else if(s=r.call(arguments),Y.set(this,e,s),n=i(this,e),this[e](),s!==(a=Y.get(this,e))||n?Y.set(this,e,!1):a={},s!==a)return t.stopImmediatePropagation(),t.preventDefault(),a&&a.value}else s.length&&(Y.set(this,e,{value:T.event.trigger(T.extend(s[0],T.Event.prototype),s.slice(1),this)}),t.stopImmediatePropagation())}})):void 0===Y.get(t,e)&&T.event.add(t,e,Tt)}T.event={global:{},add:function(t,e,i,n,r){var a,s,o,l,c,u,d,h,f,p,g,m=Y.get(t);if(W(t))for(i.handler&&(i=(a=i).handler,r=a.selector),r&&T.find.matchesSelector(nt,r),i.guid||(i.guid=T.guid++),(l=m.events)||(l=m.events=Object.create(null)),(s=m.handle)||(s=m.handle=function(e){return void 0!==T&&T.event.triggered!==e.type?T.event.dispatch.apply(t,arguments):void 0}),c=(e=(e||"").match(M)||[""]).length;c--;)f=g=(o=wt.exec(e[c])||[])[1],p=(o[2]||"").split(".").sort(),f&&(d=T.event.special[f]||{},d=T.event.special[f=(r?d.delegateType:d.bindType)||f]||{},u=T.extend({type:f,origType:g,data:n,handler:i,guid:i.guid,selector:r,needsContext:r&&T.expr.match.needsContext.test(r),namespace:p.join(".")},a),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(t,n,p,s)||t.addEventListener&&t.addEventListener(f,s)),d.add&&(d.add.call(t,u),u.handler.guid||(u.handler.guid=i.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),T.event.global[f]=!0)},remove:function(t,e,i,n,r){var a,s,o,l,c,u,d,h,f,p,g,m=Y.hasData(t)&&Y.get(t);if(m&&(l=m.events)){for(c=(e=(e||"").match(M)||[""]).length;c--;)if(f=g=(o=wt.exec(e[c])||[])[1],p=(o[2]||"").split(".").sort(),f){for(d=T.event.special[f]||{},h=l[f=(n?d.delegateType:d.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=h.length;a--;)u=h[a],!r&&g!==u.origType||i&&i.guid!==u.guid||o&&!o.test(u.namespace)||n&&n!==u.selector&&("**"!==n||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(t,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(t,p,m.handle)||T.removeEvent(t,f,m.handle),delete l[f])}else for(f in l)T.event.remove(t,f+e[c],i,n,!0);T.isEmptyObject(l)&&Y.remove(t,"handle events")}},dispatch:function(t){var e,i,n,r,a,s,o=new Array(arguments.length),l=T.event.fix(t),c=(Y.get(this,"events")||Object.create(null))[l.type]||[],u=T.event.special[l.type]||{};for(o[0]=l,e=1;e<arguments.length;e++)o[e]=arguments[e];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=T.event.handlers.call(this,l,c),e=0;(r=s[e++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,i=0;(a=r.handlers[i++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(n=((T.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,o))&&!1===(l.result=n)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(t,e){var i,n,r,a,s,o=[],l=e.delegateCount,c=t.target;if(l&&c.nodeType&&!("click"===t.type&&1<=t.button))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==t.type||!0!==c.disabled)){for(a=[],s={},i=0;i<l;
vendor: 2,759 bytes, line 2
2i++)void 0===s[r=(n=e[i]).selector+" "]&&(s[r]=n.needsContext?-1<T(r,this).index(c):T.find(r,this,null,[c]).length),s[r]&&a.push(n);a.length&&o.push({elem:c,handlers:a})}return c=this,l<e.length&&o.push({elem:c,handlers:e.slice(l)}),o},addProp:function(t,e){Object.defineProperty(T.Event.prototype,t,{enumerable:!0,configurable:!0,get:p(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(t){return t[T.expando]?t:new T.Event(t)},special:{load:{noBubble:!0},click:{setup:function(t){var e=this||t;return ht.test(e.type)&&e.click&&C(e,"input")&&_t(e,"click",Tt),!1},trigger:function(t){var e=this||t;return ht.test(e.type)&&e.click&&C(e,"input")&&_t(e,"click"),!0},_default:function(t){var e=t.target;return ht.test(e.type)&&e.click&&C(e,"input")&&Y.get(e,"click")||C(e,"a")}},beforeunload:{postDispatch:function(t){void 0!==t.result&&t.originalEvent&&(t.originalEvent.returnValue=t.result)}}}},T.removeEvent=function(t,e,i){t.removeEventListener&&t.removeEventListener(e,i)},T.Event=function(t,e){if(!(this instanceof T.Event))return new T.Event(t,e);t&&t.type?(this.originalEvent=t,this.type=t.type,this.isDefaultPrevented=t.defaultPrevented||void 0===t.defaultPrevented&&!1===t.returnValue?Tt:xt,this.target=t.target&&3===t.target.nodeType?t.target.parentNode:t.target,this.currentTarget=t.currentTarget,this.relatedTarget=t.relatedTarget):this.type=t,e&&T.extend(this,e),this.timeStamp=t&&t.timeStamp||Date.now(),this[T.expando]=!0},T.Event.prototype={constructor:T.Event,isDefaultPrevented:xt,isPropagationStopped:xt,isImmediatePropagationStopped:xt,isSimulated:!1,preventDefault:function(){var t=this.originalEvent;this.isDefaultPrevented=Tt,t&&!this.isSimulated&&t.preventDefault()},stopPropagation:function(){var t=this.originalEvent;this.isPropagationStopped=Tt,t&&!this.isSimulated&&t.stopPropagation()},stopImmediatePropagation:function(){var t=this.originalEvent;this.isImmediatePropagationStopped=Tt,t&&!this.isSimulated&&t.stopImmediatePropagation(),this.stopPropagation()}},T.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},T.event.addProp),T.each({focus:"focusin",blur:"focusout"},(function(t,e){T.event.special[t]={setup:function(){return _t(this,t,Et),!1},trigger:function(){return _t(this,t),!0},_default:function(){return!0},delegateType:e}}
vendor: 4,550 bytes, line 2
2)),T.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(t,e){T.event.special[t]={delegateType:e,bindType:e,handle:function(t){var i,n=t.relatedTarget,r=t.handleObj;return n&&(n===this||T.contains(this,n))||(t.type=r.origType,i=r.handler.apply(this,arguments),t.type=e),i}}})),T.fn.extend({on:function(t,e,i,n){return St(this,t,e,i,n)},one:function(t,e,i,n){return St(this,t,e,i,n,1)},off:function(t,e,i){var n,r;if(t&&t.preventDefault&&t.handleObj)return n=t.handleObj,T(t.delegateTarget).off(n.namespace?n.origType+"."+n.namespace:n.origType,n.selector,n.handler),this;if("object"==typeof t){for(r in t)this.off(r,e,t[r]);return this}return!1!==e&&"function"!=typeof e||(i=e,e=void 0),!1===i&&(i=xt),this.each((function(){T.event.remove(this,t,i,e)}))}});var kt=/<script|<style|<link/i,Ct=/checked\s*(?:[^=]|=\s*.checked.)/i,At=/^\s*<!(?:\[CDATA\[|--)|(?:\]\]|--)>\s*$/g;function Rt(t,e){return C(t,"table")&&C(11!==e.nodeType?e:e.firstChild,"tr")&&T(t).children("tbody")[0]||t}function Lt(t){return t.type=(null!==t.getAttribute("type"))+"/"+t.type,t}function Dt(t){return"true/"===(t.type||"").slice(0,5)?t.type=t.type.slice(5):t.removeAttribute("type"),t}function Ot(t,e){var i,n,r,a,s,o;if(1===e.nodeType){if(Y.hasData(t)&&(o=Y.get(t).events))for(r in Y.remove(e,"handle events"),o)for(i=0,n=o[r].length;i<n;i++)T.event.add(e,r,o[r][i]);X.hasData(t)&&(a=X.access(t),s=T.extend({},a),X.set(e,s))}}function Pt(t,e,i,n){e=a(e);var r,s,o,l,c,u,d=0,h=t.length,g=h-1,m=e[0],v=p(m);if(v||1<h&&"string"==typeof m&&!f.checkClone&&Ct.test(m))return t.each((function(r){var a=t.eq(r);v&&(e[0]=m.call(this,r,a.html())),Pt(a,e,i,n)}));if(h&&(s=(r=bt(e,t[0].ownerDocument,!1,t,n)).firstChild,1===r.childNodes.length&&(r=s),s||n)){for(l=(o=T.map(mt(r,"script"),Lt)).length;d<h;d++)c=r,d!==g&&(c=T.clone(c,!0,!0),l&&T.merge(o,mt(c,"script"))),i.call(t[d],c,d);if(l)for(u=o[o.length-1].ownerDocument,T.map(o,Dt),d=0;d<l;d++)pt.test((c=o[d]).type||"")&&!Y.access(c,"globalEval")&&T.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?T._evalUrl&&!c.noModule&&T._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):y(c.textContent.replace(At,""),c,u))}return t}function It(t,e,i){for(var n,r=e?T.filter(e,t):t,a=0;null!=(n=r[a]);a++)i||1!==n.nodeType||T.cleanData(mt(n)),n.parentNode&&(i&&rt(n)&&vt(mt(n,"script")),n.parentNode.removeChild(n));return t}T.extend({htmlPrefilter:function(t){return t},clone:function(t,e,i){var n,r,a,s,o,l,c,u=t.cloneNode(!0),d=rt(t);if(!(f.noCloneChecked||1!==t.nodeType&&11!==t.nodeType||T.isXMLDoc(t)))for(s=mt(u),n=0,r=(a=mt(t)).length;n<r;n++)o=a[n],"input"===(c=(l=s[n]).nodeName.toLowerCase())&&ht.test(o.type)?l.checked=o.checked:"input"!==c&&"textarea"!==c||(l.defaultValue=o.defaultValue);if(e)if(i)for(a=a||mt(t),s=s||mt(u),n=0,r=a.length;n<r;n++)Ot(a[n],s[n]);else Ot(t,u);return 0<(s=mt(u,"script")).length&&vt(s,!d&&mt(t,"script")),u},cleanData:function(t){for(var e,i,n,r=T.event.special,a=0;void 0!==(i=t[a]);a++)if(W(i)){if(e=i[Y.expando]){if(e.events)for(n in e.events)r[n]?T.event.remove(i,n):T.removeEvent(i,n,e.handle);i[Y.expando]=void 0}i[X.expando]&&(i[X.expando]=void 0)}}}),T.fn.extend({detach:function(t){return It(this,t,!0)},remove:function(t){return It(this,t)},text:function(t){return H(this,(function(t){return void 0===t?T.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=t)}))}),null,t,arguments.length)},append:function(){return Pt(this,arguments,(function(t){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Rt(this,t).appendChild(t)}))},prepend:function(){return Pt(this,arguments,(function(t){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var e=Rt(this,t);e.insertBefore(t,e.firstChild)}}))},before:function(){return Pt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this)}))},after:function(){return Pt(this,arguments,(function(t){this.parentNode&&this.parentNode.insertBefore(t,this.nextSibling)}))},empty:function(){for(var t,e=0;null!=(t=this[e]);e++)1===t.nodeType&&(T.cleanData(mt(t,!1)),t.textContent="");return this},clone:function(t,e){return t=null!=t&&t,e=null==e?t:e,this.map((function(){return T.clone(this,t,e)}))},html:function(t){return H(this,(function(t){var e=this[0]||{},i=0,n=this.length;if(void 0===t&&1===e.nodeType)return e.innerHTML;if("string"==typeof t&&!kt.test(t)&&!gt[(ft.exec(t)||["",""])[1].toLowerCase()]){t=T.htmlPrefilter(t);try{for(;i<n;i++)1===(e=this[i]||{}
vendor: 4,685 bytes, line 2
2).nodeType&&(T.cleanData(mt(e,!1)),e.innerHTML=t);e=0}catch(t){}}e&&this.empty().append(t)}),null,t,arguments.length)},replaceWith:function(){var t=[];return Pt(this,arguments,(function(e){var i=this.parentNode;T.inArray(this,t)<0&&(T.cleanData(mt(this)),i&&i.replaceChild(e,this))}),t)}}),T.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(t,e){T.fn[t]=function(t){for(var i,n=[],r=T(t),a=r.length-1,o=0;o<=a;o++)i=o===a?this:this.clone(!0),T(r[o])[e](i),s.apply(n,i.get());return this.pushStack(n)}}));var Mt=new RegExp("^("+tt+")(?!px)[a-z%]+$","i"),Ft=function(e){var i=e.ownerDocument.defaultView;return i&&i.opener||(i=t),i.getComputedStyle(e)},Nt=function(t,e,i){var n,r,a={};for(r in e)a[r]=t.style[r],t.style[r]=e[r];for(r in n=i.call(t),e)t.style[r]=a[r];return n},Bt=new RegExp(it.join("|"),"i");function Ut(t,e,i){var n,r,a,s,o=t.style;return(i=i||Ft(t))&&(""!==(s=i.getPropertyValue(e)||i[e])||rt(t)||(s=T.style(t,e)),!f.pixelBoxStyles()&&Mt.test(s)&&Bt.test(e)&&(n=o.width,r=o.minWidth,a=o.maxWidth,o.minWidth=o.maxWidth=o.width=s,s=i.width,o.width=n,o.minWidth=r,o.maxWidth=a)),void 0!==s?s+"":s}function jt(t,e){return{get:function(){if(!t())return(this.get=e).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;left:-11111px;width:60px;margin-top:1px;padding:0;border:0",u.style.cssText="position:relative;display:block;box-sizing:border-box;overflow:scroll;margin:auto;border:1px;padding:1px;width:60%;top:1%",nt.appendChild(c).appendChild(u);var e=t.getComputedStyle(u);n="1%"!==e.top,l=12===i(e.marginLeft),u.style.right="60%",s=36===i(e.right),r=36===i(e.width),u.style.position="absolute",a=12===i(u.offsetWidth/3),nt.removeChild(c),u=null}}function i(t){return Math.round(parseFloat(t))}var n,r,a,s,o,l,c=m.createElement("div"),u=m.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",f.clearCloneStyle="content-box"===u.style.backgroundClip,T.extend(f,{boxSizingReliable:function(){return e(),r},pixelBoxStyles:function(){return e(),s},pixelPosition:function(){return e(),n},reliableMarginLeft:function(){return e(),l},scrollboxSize:function(){return e(),a},reliableTrDimensions:function(){var e,i,n,r;return null==o&&(e=m.createElement("table"),i=m.createElement("tr"),n=m.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",i.style.cssText="border:1px solid",i.style.height="1px",n.style.height="9px",n.style.display="block",nt.appendChild(e).appendChild(i).appendChild(n),r=t.getComputedStyle(i),o=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===i.offsetHeight,nt.removeChild(e)),o}}))}();var $t=["Webkit","Moz","ms"],Ht=m.createElement("div").style,Gt={};function zt(t){return T.cssProps[t]||Gt[t]||(t in Ht?t:Gt[t]=function(t){for(var e=t[0].toUpperCase()+t.slice(1),i=$t.length;i--;)if((t=$t[i]+e)in Ht)return t}(t)||t)}var qt=/^(none|table(?!-c[ea]).+)/,Kt=/^--/,Wt={position:"absolute",visibility:"hidden",display:"block"},Vt={letterSpacing:"0",fontWeight:"400"};function Yt(t,e,i){var n=et.exec(e);return n?Math.max(0,n[2]-(i||0))+(n[3]||"px"):e}function Xt(t,e,i,n,r,a){var s="width"===e?1:0,o=0,l=0;if(i===(n?"border":"content"))return 0;for(;s<4;s+=2)"margin"===i&&(l+=T.css(t,i+it[s],!0,r)),n?("content"===i&&(l-=T.css(t,"padding"+it[s],!0,r)),"margin"!==i&&(l-=T.css(t,"border"+it[s]+"Width",!0,r))):(l+=T.css(t,"padding"+it[s],!0,r),"padding"!==i?l+=T.css(t,"border"+it[s]+"Width",!0,r):o+=T.css(t,"border"+it[s]+"Width",!0,r));return!n&&0<=a&&(l+=Math.max(0,Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-a-l-o-.5))||0),l}function Qt(t,e,i){var n=Ft(t),r=(!f.boxSizingReliable()||i)&&"border-box"===T.css(t,"boxSizing",!1,n),a=r,s=Ut(t,e,n),o="offset"+e[0].toUpperCase()+e.slice(1);if(Mt.test(s)){if(!i)return s;s="auto"}return(!f.boxSizingReliable()&&r||!f.reliableTrDimensions()&&C(t,"tr")||"auto"===s||!parseFloat(s)&&"inline"===T.css(t,"display",!1,n))&&t.getClientRects().length&&(r="border-box"===T.css(t,"boxSizing",!1,n),(a=o in t)&&(s=t[o])),(s=parseFloat(s)||0)+Xt(t,e,i||(r?"border":"content"),a,n,s)+"px"}function Zt(t,e,i,n,r){return new Zt.prototype.init(t,e,i,n,r)}T.extend({cssHooks:{opacity:{get:function(t,e){if(e){var i=Ut(t,"opacity");return""===i?"1":i}}}},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:{}
vendor: 5,631 bytes, line 2
2,style:function(t,e,i,n){if(t&&3!==t.nodeType&&8!==t.nodeType&&t.style){var r,a,s,o=K(e),l=Kt.test(e),c=t.style;if(l||(e=zt(o)),s=T.cssHooks[e]||T.cssHooks[o],void 0===i)return s&&"get"in s&&void 0!==(r=s.get(t,!1,n))?r:c[e];"string"==(a=typeof i)&&(r=et.exec(i))&&r[1]&&(i=ot(t,e,r),a="number"),null!=i&&i==i&&("number"!==a||l||(i+=r&&r[3]||(T.cssNumber[o]?"":"px")),f.clearCloneStyle||""!==i||0!==e.indexOf("background")||(c[e]="inherit"),s&&"set"in s&&void 0===(i=s.set(t,i,n))||(l?c.setProperty(e,i):c[e]=i))}},css:function(t,e,i,n){var r,a,s,o=K(e);return Kt.test(e)||(e=zt(o)),(s=T.cssHooks[e]||T.cssHooks[o])&&"get"in s&&(r=s.get(t,!0,i)),void 0===r&&(r=Ut(t,e,n)),"normal"===r&&e in Vt&&(r=Vt[e]),""===i||i?(a=parseFloat(r),!0===i||isFinite(a)?a||0:r):r}}),T.each(["height","width"],(function(t,e){T.cssHooks[e]={get:function(t,i,n){if(i)return!qt.test(T.css(t,"display"))||t.getClientRects().length&&t.getBoundingClientRect().width?Qt(t,e,n):Nt(t,Wt,(function(){return Qt(t,e,n)}))},set:function(t,i,n){var r,a=Ft(t),s=!f.scrollboxSize()&&"absolute"===a.position,o=(s||n)&&"border-box"===T.css(t,"boxSizing",!1,a),l=n?Xt(t,e,n,o,a):0;return o&&s&&(l-=Math.ceil(t["offset"+e[0].toUpperCase()+e.slice(1)]-parseFloat(a[e])-Xt(t,e,"border",!1,a)-.5)),l&&(r=et.exec(i))&&"px"!==(r[3]||"px")&&(t.style[e]=i,i=T.css(t,e)),Yt(0,i,l)}}})),T.cssHooks.marginLeft=jt(f.reliableMarginLeft,(function(t,e){if(e)return(parseFloat(Ut(t,"marginLeft"))||t.getBoundingClientRect().left-Nt(t,{marginLeft:0},(function(){return t.getBoundingClientRect().left})))+"px"})),T.each({margin:"",padding:"",border:"Width"},(function(t,e){T.cssHooks[t+e]={expand:function(i){for(var n=0,r={},a="string"==typeof i?i.split(" "):[i];n<4;n++)r[t+it[n]+e]=a[n]||a[n-2]||a[0];return r}},"margin"!==t&&(T.cssHooks[t+e].set=Yt)})),T.fn.extend({css:function(t,e){return H(this,(function(t,e,i){var n,r,a={},s=0;if(Array.isArray(e)){for(n=Ft(t),r=e.length;s<r;s++)a[e[s]]=T.css(t,e[s],!1,n);return a}return void 0!==i?T.style(t,e,i):T.css(t,e)}),t,e,1<arguments.length)}}),((T.Tween=Zt).prototype={constructor:Zt,init:function(t,e,i,n,r,a){this.elem=t,this.prop=i,this.easing=r||T.easing._default,this.options=e,this.start=this.now=this.cur(),this.end=n,this.unit=a||(T.cssNumber[i]?"":"px")},cur:function(){var t=Zt.propHooks[this.prop];return t&&t.get?t.get(this):Zt.propHooks._default.get(this)},run:function(t){var e,i=Zt.propHooks[this.prop];return this.pos=e=this.options.duration?T.easing[this.easing](t,this.options.duration*t,0,1,this.options.duration):t,this.now=(this.end-this.start)*e+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),i&&i.set?i.set(this):Zt.propHooks._default.set(this),this}}).init.prototype=Zt.prototype,(Zt.propHooks={_default:{get:function(t){var e;return 1!==t.elem.nodeType||null!=t.elem[t.prop]&&null==t.elem.style[t.prop]?t.elem[t.prop]:(e=T.css(t.elem,t.prop,""))&&"auto"!==e?e:0},set:function(t){T.fx.step[t.prop]?T.fx.step[t.prop](t):1!==t.elem.nodeType||!T.cssHooks[t.prop]&&null==t.elem.style[zt(t.prop)]?t.elem[t.prop]=t.now:T.style(t.elem,t.prop,t.now+t.unit)}}}).scrollTop=Zt.propHooks.scrollLeft={set:function(t){t.elem.nodeType&&t.elem.parentNode&&(t.elem[t.prop]=t.now)}},T.easing={linear:function(t){return t},swing:function(t){return.5-Math.cos(t*Math.PI)/2},_default:"swing"},T.fx=Zt.prototype.init,T.fx.step={};var Jt,te,ee,ie,ne=/^(?:toggle|show|hide)$/,re=/queueHooks$/;function ae(){te&&(!1===m.hidden&&t.requestAnimationFrame?t.requestAnimationFrame(ae):t.setTimeout(ae,T.fx.interval),T.fx.tick())}function se(){return t.setTimeout((function(){Jt=void 0})),Jt=Date.now()}function oe(t,e){var i,n=0,r={height:t};for(e=e?1:0;n<4;n+=2-e)r["margin"+(i=it[n])]=r["padding"+i]=t;return e&&(r.opacity=r.width=t),r}function le(t,e,i){for(var n,r=(ce.tweeners[e]||[]).concat(ce.tweeners["*"]),a=0,s=r.length;a<s;a++)if(n=r[a].call(i,e,t))return n}function ce(t,e,i){var n,r,a=0,s=ce.prefilters.length,o=T.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var e=Jt||se(),i=Math.max(0,c.startTime+c.duration-e),n=1-(i/c.duration||0),a=0,s=c.tweens.length;a<s;a++)c.tweens[a].run(n);return o.notifyWith(t,[c,n,i]),n<1&&s?i:(s||o.notifyWith(t,[c,1,0]),o.resolveWith(t,[c]),!1)},c=o.promise({elem:t,props:T.extend({},e),opts:T.extend(!0,{specialEasing:{},easing:T.easing._default},i),originalProperties:e,originalOptions:i,startTime:Jt||se(),duration:i.duration,tweens:[],createTween:function(e,i){var n=T.Tween(t,c.opts,e,i,c.opts.specialEasing[e]||c.opts.easing);return c.tweens.push(n),n},stop:function(e){var i=0,n=e?c.tweens.length:0;if(r)return this;for(r=!0;i<n;i++)c.tweens[i].run(1);return e?(o.notifyWith(t,[c,1,0]),o.resolveWith(t,[c,e])):o.rejectWith(t,[c,e]),this}}),u=c.props;for(function(t,e){var i,n,r,a,s;for(i in t)if(r=e[n=K(i)],a=t[i],Array.isArray(a)&&(r=a[1],a=t[i]=a[0]),i!==n&&(t[n]=a,delete t[i]),(s=T.cssHooks[n])&&"expand"in s)for(i in a=s.expand(a),delete t[n],a)i in t||(t[i]=a[i],e[i]=r);else e[n]=r}(u,c.opts.specialEasing);a<s;a++)if(n=ce.prefilters[a].call(c,t,u,c.opts))return p(n.stop)&&(T._queueHooks(c.elem,c.opts.queue).stop=n.stop.bind(n)),n;return T.map(u,le,c),p(c.opts.start)&&c.opts.start.call(t,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),T.fx.timer(T.extend(l,{elem:t,anim:c,queue:c.opts.queue})),c}T.Animation=T.extend(ce,{tweeners:{"*":[function(t,e){var i=this.createTween(t,e);return ot(i.elem,t,et.exec(e),i),i}]},tweener:function(t,e){p(t)?(e=t,t=["*"]):t=t.match(M);for(var i,n=0,r=t.length;n<r;n++)(ce.tweeners[i=t[n]]=ce.tweeners[i]||[]).unshift(e)}
vendor: 4,386 bytes, line 2
2,prefilters:[function(t,e,i){var n,r,a,s,o,l,c,u,d="width"in e||"height"in e,h=this,f={},p=t.style,g=t.nodeType&&st(t),m=Y.get(t,"fxshow");for(n in i.queue||(null==(s=T._queueHooks(t,"fx")).unqueued&&(s.unqueued=0,o=s.empty.fire,s.empty.fire=function(){s.unqueued||o()}),s.unqueued++,h.always((function(){h.always((function(){s.unqueued--,T.queue(t,"fx").length||s.empty.fire()}))}))),e)if(ne.test(r=e[n])){if(delete e[n],a=a||"toggle"===r,r===(g?"hide":"show")){if("show"!==r||!m||void 0===m[n])continue;g=!0}f[n]=m&&m[n]||T.style(t,n)}if((l=!T.isEmptyObject(e))||!T.isEmptyObject(f))for(n in d&&1===t.nodeType&&(i.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=m&&m.display)&&(c=Y.get(t,"display")),"none"===(u=T.css(t,"display"))&&(c?u=c:(ct([t],!0),c=t.style.display||c,u=T.css(t,"display"),ct([t]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===T.css(t,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(c="none"===(u=p.display)?"":u)),p.display="inline-block")),i.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=i.overflow[0],p.overflowX=i.overflow[1],p.overflowY=i.overflow[2]}))),l=!1,f)l||(m?"hidden"in m&&(g=m.hidden):m=Y.access(t,"fxshow",{display:c}),a&&(m.hidden=!g),g&&ct([t],!0),h.done((function(){for(n in g||ct([t]),Y.remove(t,"fxshow"),f)T.style(t,n,f[n])}))),l=le(g?m[n]:0,n,h),n in m||(m[n]=l.start,g&&(l.end=l.start,l.start=0))}],prefilter:function(t,e){e?ce.prefilters.unshift(t):ce.prefilters.push(t)}}),T.speed=function(t,e,i){var n=t&&"object"==typeof t?T.extend({},t):{complete:i||!i&&e||p(t)&&t,duration:t,easing:i&&e||e&&!p(e)&&e};return T.fx.off?n.duration=0:"number"!=typeof n.duration&&(n.duration=n.duration in T.fx.speeds?T.fx.speeds[n.duration]:T.fx.speeds._default),null!=n.queue&&!0!==n.queue||(n.queue="fx"),n.old=n.complete,n.complete=function(){p(n.old)&&n.old.call(this),n.queue&&T.dequeue(this,n.queue)},n},T.fn.extend({fadeTo:function(t,e,i,n){return this.filter(st).css("opacity",0).show().end().animate({opacity:e},t,i,n)},animate:function(t,e,i,n){var r=T.isEmptyObject(t),a=T.speed(e,i,n),s=function(){var e=ce(this,T.extend({},t),a);(r||Y.get(this,"finish"))&&e.stop(!0)};return s.finish=s,r||!1===a.queue?this.each(s):this.queue(a.queue,s)},stop:function(t,e,i){var n=function(t){var e=t.stop;delete t.stop,e(i)};return"string"!=typeof t&&(i=e,e=t,t=void 0),e&&this.queue(t||"fx",[]),this.each((function(){var e=!0,r=null!=t&&t+"queueHooks",a=T.timers,s=Y.get(this);if(r)s[r]&&s[r].stop&&n(s[r]);else for(r in s)s[r]&&s[r].stop&&re.test(r)&&n(s[r]);for(r=a.length;r--;)a[r].elem!==this||null!=t&&a[r].queue!==t||(a[r].anim.stop(i),e=!1,a.splice(r,1));!e&&i||T.dequeue(this,t)}))},finish:function(t){return!1!==t&&(t=t||"fx"),this.each((function(){var e,i=Y.get(this),n=i[t+"queue"],r=i[t+"queueHooks"],a=T.timers,s=n?n.length:0;for(i.finish=!0,T.queue(this,t,[]),r&&r.stop&&r.stop.call(this,!0),e=a.length;e--;)a[e].elem===this&&a[e].queue===t&&(a[e].anim.stop(!0),a.splice(e,1));for(e=0;e<s;e++)n[e]&&n[e].finish&&n[e].finish.call(this);delete i.finish}))}}),T.each(["toggle","show","hide"],(function(t,e){var i=T.fn[e];T.fn[e]=function(t,n,r){return null==t||"boolean"==typeof t?i.apply(this,arguments):this.animate(oe(e,!0),t,n,r)}})),T.each({slideDown:oe("show"),slideUp:oe("hide"),slideToggle:oe("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(t,e){T.fn[t]=function(t,i,n){return this.animate(e,t,i,n)}})),T.timers=[],T.fx.tick=function(){var t,e=0,i=T.timers;for(Jt=Date.now();e<i.length;e++)(t=i[e])()||i[e]!==t||i.splice(e--,1);i.length||T.fx.stop(),Jt=void 0},T.fx.timer=function(t){T.timers.push(t),T.fx.start()},T.fx.interval=13,T.fx.start=function(){te||(te=!0,ae())},T.fx.stop=function(){te=null},T.fx.speeds={slow:600,fast:200,_default:400},T.fn.delay=function(e,i){return e=T.fx&&T.fx.speeds[e]||e,this.queue(i=i||"fx",(function(i,n){var r=t.setTimeout(i,e);n.stop=function(){t.clearTimeout(r)}}))},ee=m.createElement("input"),ie=m.createElement("select").appendChild(m.createElement("option")),ee.type="checkbox",f.checkOn=""!==ee.value,f.optSelected=ie.selected,(ee=m.createElement("input")).value="t",ee.type="radio",f.radioValue="t"===ee.value;var ue,de=T.expr.attrHandle;T.fn.extend({attr:function(t,e){return H(this,T.attr,t,e,1<arguments.length)},removeAttr:function(t){return this.each((function(){T.removeAttr(this,t)}))}}
vendor: 9,972 bytes, line 2
2),T.extend({attr:function(t,e,i){var n,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===t.getAttribute?T.prop(t,e,i):(1===a&&T.isXMLDoc(t)||(r=T.attrHooks[e.toLowerCase()]||(T.expr.match.bool.test(e)?ue:void 0)),void 0!==i?null===i?void T.removeAttr(t,e):r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:(t.setAttribute(e,i+""),i):r&&"get"in r&&null!==(n=r.get(t,e))?n:null==(n=T.find.attr(t,e))?void 0:n)},attrHooks:{type:{set:function(t,e){if(!f.radioValue&&"radio"===e&&C(t,"input")){var i=t.value;return t.setAttribute("type",e),i&&(t.value=i),e}}}},removeAttr:function(t,e){var i,n=0,r=e&&e.match(M);if(r&&1===t.nodeType)for(;i=r[n++];)t.removeAttribute(i)}}),ue={set:function(t,e,i){return!1===e?T.removeAttr(t,i):t.setAttribute(i,i),i}},T.each(T.expr.match.bool.source.match(/\w+/g),(function(t,e){var i=de[e]||T.find.attr;de[e]=function(t,e,n){var r,a,s=e.toLowerCase();return n||(a=de[s],de[s]=r,r=null!=i(t,e,n)?s:null,de[s]=a),r}}));var he=/^(?:input|select|textarea|button)$/i,fe=/^(?:a|area)$/i;function pe(t){return(t.match(M)||[]).join(" ")}function ge(t){return t.getAttribute&&t.getAttribute("class")||""}function me(t){return Array.isArray(t)?t:"string"==typeof t&&t.match(M)||[]}T.fn.extend({prop:function(t,e){return H(this,T.prop,t,e,1<arguments.length)},removeProp:function(t){return this.each((function(){delete this[T.propFix[t]||t]}))}}),T.extend({prop:function(t,e,i){var n,r,a=t.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&T.isXMLDoc(t)||(r=T.propHooks[e=T.propFix[e]||e]),void 0!==i?r&&"set"in r&&void 0!==(n=r.set(t,i,e))?n:t[e]=i:r&&"get"in r&&null!==(n=r.get(t,e))?n:t[e]},propHooks:{tabIndex:{get:function(t){var e=T.find.attr(t,"tabindex");return e?parseInt(e,10):he.test(t.nodeName)||fe.test(t.nodeName)&&t.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),f.optSelected||(T.propHooks.selected={get:function(t){return null},set:function(t){}}),T.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){T.propFix[this.toLowerCase()]=this})),T.fn.extend({addClass:function(t){var e,i,n,r,a,s,o,l=0;if(p(t))return this.each((function(e){T(this).addClass(t.call(this,e,ge(this)))}));if((e=me(t)).length)for(;i=this[l++];)if(r=ge(i),n=1===i.nodeType&&" "+pe(r)+" "){for(s=0;a=e[s++];)n.indexOf(" "+a+" ")<0&&(n+=a+" ");r!==(o=pe(n))&&i.setAttribute("class",o)}return this},removeClass:function(t){var e,i,n,r,a,s,o,l=0;if(p(t))return this.each((function(e){T(this).removeClass(t.call(this,e,ge(this)))}));if(!arguments.length)return this.attr("class","");if((e=me(t)).length)for(;i=this[l++];)if(r=ge(i),n=1===i.nodeType&&" "+pe(r)+" "){for(s=0;a=e[s++];)for(;-1<n.indexOf(" "+a+" ");)n=n.replace(" "+a+" "," ");r!==(o=pe(n))&&i.setAttribute("class",o)}return this},toggleClass:function(t,e){var i=typeof t,n="string"===i||Array.isArray(t);return"boolean"==typeof e&&n?e?this.addClass(t):this.removeClass(t):p(t)?this.each((function(i){T(this).toggleClass(t.call(this,i,ge(this),e),e)})):this.each((function(){var e,r,a,s;if(n)for(r=0,a=T(this),s=me(t);e=s[r++];)a.hasClass(e)?a.removeClass(e):a.addClass(e);else void 0!==t&&"boolean"!==i||((e=ge(this))&&Y.set(this,"__className__",e),this.setAttribute&&this.setAttribute("class",e||!1===t?"":Y.get(this,"__className__")||""))}))},hasClass:function(t){var e,i,n=0;for(e=" "+t+" ";i=this[n++];)if(1===i.nodeType&&-1<(" "+pe(ge(i))+" ").indexOf(e))return!0;return!1}});var ve=/\r/g;T.fn.extend({val:function(t){var e,i,n,r=this[0];return arguments.length?(n=p(t),this.each((function(i){var r;1===this.nodeType&&(null==(r=n?t.call(this,i,T(this).val()):t)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=T.map(r,(function(t){return null==t?"":t+""}))),(e=T.valHooks[this.type]||T.valHooks[this.nodeName.toLowerCase()])&&"set"in e&&void 0!==e.set(this,r,"value")||(this.value=r))}))):r?(e=T.valHooks[r.type]||T.valHooks[r.nodeName.toLowerCase()])&&"get"in e&&void 0!==(i=e.get(r,"value"))?i:"string"==typeof(i=r.value)?i.replace(ve,""):null==i?"":i:void 0}}),T.extend({valHooks:{option:{get:function(t){var e=T.find.attr(t,"value");return null!=e?e:pe(T.text(t))}},select:{get:function(t){var e,i,n,r=t.options,a=t.selectedIndex,s="select-one"===t.type,o=s?null:[],l=s?a+1:r.length;for(n=a<0?l:s?a:0;n<l;n++)if(((i=r[n]).selected||n===a)&&!i.disabled&&(!i.parentNode.disabled||!C(i.parentNode,"optgroup"))){if(e=T(i).val(),s)return e;o.push(e)}return o},set:function(t,e){for(var i,n,r=t.options,a=T.makeArray(e),s=r.length;s--;)((n=r[s]).selected=-1<T.inArray(T.valHooks.option.get(n),a))&&(i=!0);return i||(t.selectedIndex=-1),a}}}}),T.each(["radio","checkbox"],(function(){T.valHooks[this]={set:function(t,e){if(Array.isArray(e))return t.checked=-1<T.inArray(T(t).val(),e)}},f.checkOn||(T.valHooks[this].get=function(t){return null===t.getAttribute("value")?"on":t.value})})),f.focusin="onfocusin"in t;var ye=/^(?:focusinfocus|focusoutblur)$/,be=function(t){t.stopPropagation()};T.extend(T.event,{trigger:function(e,i,n,r){var a,s,o,l,c,d,h,f,v=[n||m],y=u.call(e,"type")?e.type:e,b=u.call(e,"namespace")?e.namespace.split("."):[];if(s=f=o=n=n||m,3!==n.nodeType&&8!==n.nodeType&&!ye.test(y+T.event.triggered)&&(-1<y.indexOf(".")&&(y=(b=y.split(".")).shift(),b.sort()),c=y.indexOf(":")<0&&"on"+y,(e=e[T.expando]?e:new T.Event(y,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=b.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+b.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),i=null==i?[e]:T.makeArray(i,[e]),h=T.event.special[y]||{},r||!h.trigger||!1!==h.trigger.apply(n,i))){if(!r&&!h.noBubble&&!g(n)){for(ye.test((l=h.delegateType||y)+y)||(s=s.parentNode);s;s=s.parentNode)v.push(s),o=s;o===(n.ownerDocument||m)&&v.push(o.defaultView||o.parentWindow||t)}for(a=0;(s=v[a++])&&!e.isPropagationStopped();)f=s,e.type=1<a?l:h.bindType||y,(d=(Y.get(s,"events")||Object.create(null))[e.type]&&Y.get(s,"handle"))&&d.apply(s,i),(d=c&&s[c])&&d.apply&&W(s)&&(e.result=d.apply(s,i),!1===e.result&&e.preventDefault());return e.type=y,r||e.isDefaultPrevented()||h._default&&!1!==h._default.apply(v.pop(),i)||!W(n)||c&&p(n[y])&&!g(n)&&((o=n[c])&&(n[c]=null),T.event.triggered=y,e.isPropagationStopped()&&f.addEventListener(y,be),n[y](),e.isPropagationStopped()&&f.removeEventListener(y,be),T.event.triggered=void 0,o&&(n[c]=o)),e.result}},simulate:function(t,e,i){var n=T.extend(new T.Event,i,{type:t,isSimulated:!0});T.event.trigger(n,null,e)}}),T.fn.extend({trigger:function(t,e){return this.each((function(){T.event.trigger(t,e,this)}))},triggerHandler:function(t,e){var i=this[0];if(i)return T.event.trigger(t,e,i,!0)}}),f.focusin||T.each({focus:"focusin",blur:"focusout"},(function(t,e){var i=function(t){T.event.simulate(e,t.target,T.event.fix(t))};T.event.special[e]={setup:function(){var n=this.ownerDocument||this.document||this,r=Y.access(n,e);r||n.addEventListener(t,i,!0),Y.access(n,e,(r||0)+1)},teardown:function(){var n=this.ownerDocument||this.document||this,r=Y.access(n,e)-1;r?Y.access(n,e,r):(n.removeEventListener(t,i,!0),Y.remove(n,e))}}}));var we=t.location,Te={guid:Date.now()},xe=/\?/;T.parseXML=function(e){var i,n;if(!e||"string"!=typeof e)return null;try{i=(new t.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=i&&i.getElementsByTagName("parsererror")[0],i&&!n||T.error("Invalid XML: "+(n?T.map(n.childNodes,(function(t){return t.textContent})).join("\n"):e)),i};var Ee=/\[\]$/,Se=/\r?\n/g,_e=/^(?:submit|button|image|reset|file)$/i,ke=/^(?:input|select|textarea|keygen)/i;function Ce(t,e,i,n){var r;if(Array.isArray(e))T.each(e,(function(e,r){i||Ee.test(t)?n(t,r):Ce(t+"["+("object"==typeof r&&null!=r?e:"")+"]",r,i,n)}));else if(i||"object"!==b(e))n(t,e);else for(r in e)Ce(t+"["+r+"]",e[r],i,n)}T.param=function(t,e){var i,n=[],r=function(t,e){var i=p(e)?e():e;n[n.length]=encodeURIComponent(t)+"="+encodeURIComponent(null==i?"":i)};if(null==t)return"";if(Array.isArray(t)||t.jquery&&!T.isPlainObject(t))T.each(t,(function(){r(this.name,this.value)}));else for(i in t)Ce(i,t[i],e,r);return n.join("&")},T.fn.extend({serialize:function(){return T.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var t=T.prop(this,"elements");return t?T.makeArray(t):this})).filter((function(){var t=this.type;return this.name&&!T(this).is(":disabled")&&ke.test(this.nodeName)&&!_e.test(t)&&(this.checked||!ht.test(t))})).map((function(t,e){var i=T(this).val();return null==i?null:Array.isArray(i)?T.map(i,(function(t){return{name:e.name,value:t.replace(Se,"\r\n")}})):{name:e.name,value:i.replace(Se,"\r\n")}})).get()}});var Ae=/%20/g,Re=/#.*$/,Le=/([?&])_=[^&]*/,De=/^(.*?):[ \t]*([^\r\n]*)$/gm,Oe=/^(?:GET|HEAD)$/,Pe=/^\/\//,Ie={},Me={},Fe="*/".concat("*"),Ne=m.createElement("a");function Be(t){return function(e,i){"string"!=typeof e&&(i=e,e="*");var n,r=0,a=e.toLowerCase().match(M)||[];if(p(i))for(;n=a[r++];)"+"===n[0]?(n=n.slice(1)||"*",(t[n]=t[n]||[]).unshift(i)):(t[n]=t[n]||[]).push(i)}}function Ue(t,e,i,n){var r={},a=t===Me;function s(o){var l;return r[o]=!0,T.each(t[o]||[],(function(t,o){var c=o(e,i,n);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(e.dataTypes.unshift(c),s(c),!1)})),l}return s(e.dataTypes[0])||!r["*"]&&s("*")}function je(t,e){var i,n,r=T.ajaxSettings.flatOptions||{};for(i in e)void 0!==e[i]&&((r[i]?t:n||(n={}))[i]=e[i]);return n&&T.extend(!0,t,n),t}Ne.href=we.href,T.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:we.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(we.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Fe,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":T.parseXML}
vendor: 4,583 bytes, line 2
2,flatOptions:{url:!0,context:!0}},ajaxSetup:function(t,e){return e?je(je(t,T.ajaxSettings),e):je(T.ajaxSettings,t)},ajaxPrefilter:Be(Ie),ajaxTransport:Be(Me),ajax:function(e,i){"object"==typeof e&&(i=e,e=void 0);var n,r,a,s,o,l,c,u,d,h,f=T.ajaxSetup({},i=i||{}),p=f.context||f,g=f.context&&(p.nodeType||p.jquery)?T(p):T.event,v=T.Deferred(),y=T.Callbacks("once memory"),b=f.statusCode||{},w={},x={},E="canceled",S={readyState:0,getResponseHeader:function(t){var e;if(c){if(!s)for(s={};e=De.exec(a);)s[e[1].toLowerCase()+" "]=(s[e[1].toLowerCase()+" "]||[]).concat(e[2]);e=s[t.toLowerCase()+" "]}return null==e?null:e.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(t,e){return null==c&&(t=x[t.toLowerCase()]=x[t.toLowerCase()]||t,w[t]=e),this},overrideMimeType:function(t){return null==c&&(f.mimeType=t),this},statusCode:function(t){var e;if(t)if(c)S.always(t[S.status]);else for(e in t)b[e]=[b[e],t[e]];return this},abort:function(t){var e=t||E;return n&&n.abort(e),_(0,e),this}};if(v.promise(S),f.url=((e||f.url||we.href)+"").replace(Pe,we.protocol+"//"),f.type=i.method||i.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(M)||[""],null==f.crossDomain){l=m.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Ne.protocol+"//"+Ne.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=T.param(f.data,f.traditional)),Ue(Ie,f,i,S),c)return S;for(d in(u=T.event&&f.global)&&0==T.active++&&T.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Oe.test(f.type),r=f.url.replace(Re,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(Ae,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(xe.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Le,"$1"),h=(xe.test(r)?"&":"?")+"_="+Te.guid+++h),f.url=r+h),f.ifModified&&(T.lastModified[r]&&S.setRequestHeader("If-Modified-Since",T.lastModified[r]),T.etag[r]&&S.setRequestHeader("If-None-Match",T.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||i.contentType)&&S.setRequestHeader("Content-Type",f.contentType),S.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Fe+"; q=0.01":""):f.accepts["*"]),f.headers)S.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,S,f)||c))return S.abort();if(E="abort",y.add(f.complete),S.done(f.success),S.fail(f.error),n=Ue(Me,f,i,S)){if(S.readyState=1,u&&g.trigger("ajaxSend",[S,f]),c)return S;f.async&&0<f.timeout&&(o=t.setTimeout((function(){S.abort("timeout")}),f.timeout));try{c=!1,n.send(w,_)}catch(e){if(c)throw e;_(-1,e)}}else _(-1,"No Transport");function _(e,i,s,l){var d,h,m,w,x,E=i;c||(c=!0,o&&t.clearTimeout(o),n=void 0,a=l||"",S.readyState=0<e?4:0,d=200<=e&&e<300||304===e,s&&(w=function(t,e,i){for(var n,r,a,s,o=t.contents,l=t.dataTypes;"*"===l[0];)l.shift(),void 0===n&&(n=t.mimeType||e.getResponseHeader("Content-Type"));if(n)for(r in o)if(o[r]&&o[r].test(n)){l.unshift(r);break}if(l[0]in i)a=l[0];else{for(r in i){if(!l[0]||t.converters[r+" "+l[0]]){a=r;break}s||(s=r)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),i[a]}(f,S,s)),!d&&-1<T.inArray("script",f.dataTypes)&&T.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),w=function(t,e,i,n){var r,a,s,o,l,c={},u=t.dataTypes.slice();if(u[1])for(s in t.converters)c[s.toLowerCase()]=t.converters[s];for(a=u.shift();a;)if(t.responseFields[a]&&(i[t.responseFields[a]]=e),!l&&n&&t.dataFilter&&(e=t.dataFilter(e,t.dataType)),l=a,a=u.shift())if("*"===a)a=l;else if("*"!==l&&l!==a){if(!(s=c[l+" "+a]||c["* "+a]))for(r in c)if((o=r.split(" "))[1]===a&&(s=c[l+" "+o[0]]||c["* "+o[0]])){!0===s?s=c[r]:!0!==c[r]&&(a=o[0],u.unshift(o[1]));break}if(!0!==s)if(s&&t.throws)e=s(e);else try{e=s(e)}catch(t){return{state:"parsererror",error:s?t:"No conversion from "+l+" to "+a}}}return{state:"success",data:e}}(f,w,S,d),d?(f.ifModified&&((x=S.getResponseHeader("Last-Modified"))&&(T.lastModified[r]=x),(x=S.getResponseHeader("etag"))&&(T.etag[r]=x)),204===e||"HEAD"===f.type?E="nocontent":304===e?E="notmodified":(E=w.state,h=w.data,d=!(m=w.error))):(m=E,!e&&E||(E="error",e<0&&(e=0))),S.status=e,S.statusText=(i||E)+"",d?v.resolveWith(p,[h,E,S]):v.rejectWith(p,[S,E,m]),S.statusCode(b),b=void 0,u&&g.trigger(d?"ajaxSuccess":"ajaxError",[S,f,d?h:m]),y.fireWith(p,[S,E]),u&&(g.trigger("ajaxComplete",[S,f]),--T.active||T.event.trigger("ajaxStop")))}return S}
vendor: 4,389 bytes, line 2
2,getJSON:function(t,e,i){return T.get(t,e,i,"json")},getScript:function(t,e){return T.get(t,void 0,e,"script")}}),T.each(["get","post"],(function(t,e){T[e]=function(t,i,n,r){return p(i)&&(r=r||n,n=i,i=void 0),T.ajax(T.extend({url:t,type:e,dataType:r,data:i,success:n},T.isPlainObject(t)&&t))}})),T.ajaxPrefilter((function(t){var e;for(e in t.headers)"content-type"===e.toLowerCase()&&(t.contentType=t.headers[e]||"")})),T._evalUrl=function(t,e,i){return T.ajax({url:t,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(t){T.globalEval(t,e,i)}})},T.fn.extend({wrapAll:function(t){var e;return this[0]&&(p(t)&&(t=t.call(this[0])),e=T(t,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&e.insertBefore(this[0]),e.map((function(){for(var t=this;t.firstElementChild;)t=t.firstElementChild;return t})).append(this)),this},wrapInner:function(t){return p(t)?this.each((function(e){T(this).wrapInner(t.call(this,e))})):this.each((function(){var e=T(this),i=e.contents();i.length?i.wrapAll(t):e.append(t)}))},wrap:function(t){var e=p(t);return this.each((function(i){T(this).wrapAll(e?t.call(this,i):t)}))},unwrap:function(t){return this.parent(t).not("body").each((function(){T(this).replaceWith(this.childNodes)})),this}}),T.expr.pseudos.hidden=function(t){return!T.expr.pseudos.visible(t)},T.expr.pseudos.visible=function(t){return!!(t.offsetWidth||t.offsetHeight||t.getClientRects().length)},T.ajaxSettings.xhr=function(){try{return new t.XMLHttpRequest}catch(e){}};var $e={0:200,1223:204},He=T.ajaxSettings.xhr();f.cors=!!He&&"withCredentials"in He,f.ajax=He=!!He,T.ajaxTransport((function(e){var i,n;if(f.cors||He&&!e.crossDomain)return{send:function(r,a){var s,o=e.xhr();if(o.open(e.type,e.url,e.async,e.username,e.password),e.xhrFields)for(s in e.xhrFields)o[s]=e.xhrFields[s];for(s in e.mimeType&&o.overrideMimeType&&o.overrideMimeType(e.mimeType),e.crossDomain||r["X-Requested-With"]||(r["X-Requested-With"]="XMLHttpRequest"),r)o.setRequestHeader(s,r[s]);i=function(t){return function(){i&&(i=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===t?o.abort():"error"===t?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a($e[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=i(),n=o.onerror=o.ontimeout=i("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&t.setTimeout((function(){i&&n()}))},i=i("abort");try{o.send(e.hasContent&&e.data||null)}catch(r){if(i)throw r}},abort:function(){i&&i()}}})),T.ajaxPrefilter((function(t){t.crossDomain&&(t.contents.script=!1)})),T.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(t){return T.globalEval(t),t}}}),T.ajaxPrefilter("script",(function(t){void 0===t.cache&&(t.cache=!1),t.crossDomain&&(t.type="GET")})),T.ajaxTransport("script",(function(t){var e,i;if(t.crossDomain||t.scriptAttrs)return{send:function(n,r){e=T("<script>").attr(t.scriptAttrs||{}).prop({charset:t.scriptCharset,src:t.url}).on("load error",i=function(t){e.remove(),i=null,t&&r("error"===t.type?404:200,t.type)}),m.head.appendChild(e[0])},abort:function(){i&&i()}}}));var Ge,ze=[],qe=/(=)\?(?=&|$)|\?\?/;T.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var t=ze.pop()||T.expando+"_"+Te.guid++;return this[t]=!0,t}}),T.ajaxPrefilter("json jsonp",(function(e,i,n){var r,a,s,o=!1!==e.jsonp&&(qe.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&qe.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=p(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(qe,"$1"+r):!1!==e.jsonp&&(e.url+=(xe.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||T.error(r+" was not called"),s[0]},e.dataTypes[0]="json",a=t[r],t[r]=function(){s=arguments},n.always((function(){void 0===a?T(t).removeProp(r):t[r]=a,e[r]&&(e.jsonpCallback=i.jsonpCallback,ze.push(r)),s&&p(a)&&a(s[0]),s=a=void 0})),"script"})),f.createHTMLDocument=((Ge=m.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>
2",2===Ge.childNodes.length),T.parseHTML=function(t,e,i){return"string"!=typeof t?[]:("boolean"==typeof e&&(i=e,e=!1),e||(f.createHTMLDocument?((n=(e=m.implementation.createHTMLDocument("")).createElement("base")).href=m.location.href,e.head.appendChild(n)):e=m),a=!i&&[],(r=A.exec(t))?[e.createElement(r[1])]:(r=bt([t],e,a),a&&a.length&&T(a).remove(),T.merge([],r.childNodes)));var n,r,a},T.fn.load=function(t,e,i){var n,r,a,s=this,o=t.indexOf(" ");return-1<o&&(n=pe(t.slice(o)),t=t.slice(0,o)),p(e)?(i=e,e=void 0):e&&"object"==typeof e&&(r="POST"),0<s.length&&T.ajax({url:t,type:r||"GET",dataType:"html",data:e}).done((function(t){a=arguments,s.html(n?T("<div>").append(T.parseHTML(t)).find(n):t)})).always(i&&function(t,e){s.each((function(){i.apply(this,a||[t.responseText,e,t])}))}),this},T.expr.pseudos.animated=function(t){return T.grep(T.timers,(function(e){return t===e.elem})).length},T.offset={setOffset:function(t,e,i){var n,r,a,s,o,l,c=T.css(t,"position"),u=T(t),d={};"static"===c&&(t.style.position="relative"),o=u.offset(),a=T.css(t,"top"),l=T.css(t,"left"),("absolute"===c||"fixed"===c)&&-1<(a+l).indexOf("auto")?(s=(n=u.position()).top,r=n.left):(s=parseFloat(a)||0,r=parseFloat(l)||0),p(e)&&(e=e.call(t,i,T.extend({},o))),null!=e.top&&(d.top=e.top-o.top+s),null!=e.left&&(d.left=e.left-o.left+r),"using"in e?e.using.call(t,d):u.css(d)}},T.fn.extend({offset:function(t){if(arguments.length)return void 0===t?this:this.each((function(e){T.offset.setOffset(this,t,e)}));var e,i,n=this[0];return n?n.getClientRects().length?{top:(e=n.getBoundingClientRect()).top+(i=n.ownerDocument.defaultView).pageYOffset,left:e.left+i.pageXOffset}:{top:0,left:0}:void 0},position:function(){if(this[0]){var t,e,i,n=this[0],r={top:0,left:0};if("fixed"===T.css(n,"position"))e=n.getBoundingClientRect();else{for(e=this.offset(),i=n.ownerDocument,t=n.offsetParent||i.documentElement;t&&(t===i.body||t===i.documentElement)&&"static"===T.css(t,"position");)t=t.parentNode;t&&t!==n&&1===t.nodeType&&((r=T(t).offset()).top+=T.css(t,"borderTopWidth",!0),r.left+=T.css(t,"borderLeftWidth",!0))}return{top:e.top-r.top-T.css(n,"marginTop",!0),left:e.left-r.left-T.css(n,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var t=this.offsetParent;t&&"static"===T.css(t,"position");)t=t.offsetParent;return t||nt}))}}),T.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(t,e){var i="pageYOffset"===e;T.fn[t]=function(n){return H(this,(function(t,n,r){var a;if(g(t)?a=t:9===t.nodeType&&(a=t.defaultView),void 0===r)return a?a[e]:t[n];a?a.scrollTo(i?a.pageXOffset:r,i?r:a.pageYOffset):t[n]=r}),t,n,arguments.length)}})),T.each(["top","left"],(function(t,e){T.cssHooks[e]=jt(f.pixelPosition,(function(t,i){if(i)return i=Ut(t,e),Mt.test(i)?T(t).position()[e]+"px":i}))})),T.each({Height:"height",Width:"width"},(function(t,e){T.each({padding:"inner"+t,content:e,"":"outer"+t},(function(i,n){T.fn[n]=function(r,a){var s=arguments.length&&(i||"boolean"!=typeof r),o=i||(!0===r||!0===a?"margin":"border");return H(this,(function(e,i,r){var a;return g(e)?0===n.indexOf("outer")?e["inner"+t]:e.document.documentElement["client"+t]:9===e.nodeType?(a=e.documentElement,Math.max(e.body["scroll"+t],a["scroll"+t],e.body["offset"+t],a["offset"+t],a["client"+t])):void 0===r?T.css(e,i,o):T.style(e,i,r,o)}),e,s?r:void 0,s)}}))})),T.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(t,e){T.fn[e]=function(t){return this.on(e,t)}})),T.fn.extend({bind:function(t,e,i){return this.on(t,null,e,i)},unbind:function(t,e){return this.off(t,null,e)},delegate:function(t,e,i,n){return this.on(e,t,i,n)},undelegate:function(t,e,i){return 1===arguments.length?this.off(t,"**"):this.off(e,t||"**",i)},hover:function(t,e){return this.mouseenter(t).mouseleave(e||t)}}),T.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(t,e){T.fn[e]=function(t,i){return 0<arguments.length?this.on(e,null,t,i):this.trigger(e)}}));var Ke=/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g;T.proxy=function(t,e){var i,n,a;if("string"==typeof e&&(i=t[e],e=t,t=i),p(t))return n=r.call(arguments,2),(a=function(){return t.apply(e||this,n.concat(r.call(arguments)))}).guid=t.guid=t.guid||T.guid++,a},T.holdReady=function(t){t?T.readyWait++:T.ready(!0)}
vendor: 9,699 bytes, line 2
2,T.isArray=Array.isArray,T.parseJSON=JSON.parse,T.nodeName=C,T.isFunction=p,T.isWindow=g,T.camelCase=K,T.type=b,T.now=Date.now,T.isNumeric=function(t){var e=T.type(t);return("number"===e||"string"===e)&&!isNaN(t-parseFloat(t))},T.trim=function(t){return null==t?"":(t+"").replace(Ke,"")},"function"==typeof define&&define.amd&&define("jquery",[],(function(){return T}));var We=t.jQuery,Ve=t.$;return T.noConflict=function(e){return t.$===T&&(t.$=Ve),e&&t.jQuery===T&&(t.jQuery=We),T},void 0===e&&(t.jQuery=t.$=T),T})),function(t,e,i,n){function r(e,i){this.settings=null,this.options=t.extend({},r.Defaults,i),this.$element=t(e),this._handlers={},this._plugins={},this._supress={},this._current=null,this._speed=null,this._coordinates=[],this._breakpoint=null,this._width=null,this._items=[],this._clones=[],this._mergers=[],this._widths=[],this._invalidated={},this._pipe=[],this._drag={time:null,target:null,pointer:null,stage:{start:null,current:null},direction:null},this._states={current:{},tags:{initializing:["busy"],animating:["busy"],dragging:["interacting"]}},t.each(["onResize","onThrottledResize"],t.proxy((function(e,i){this._handlers[i]=t.proxy(this[i],this)}),this)),t.each(r.Plugins,t.proxy((function(t,e){this._plugins[t.charAt(0).toLowerCase()+t.slice(1)]=new e(this)}),this)),t.each(r.Workers,t.proxy((function(e,i){this._pipe.push({filter:i.filter,run:t.proxy(i.run,this)})}),this)),this.setup(),this.initialize()}r.Defaults={items:3,loop:!1,center:!1,rewind:!1,checkVisibility:!0,mouseDrag:!0,touchDrag:!0,pullDrag:!0,freeDrag:!1,margin:0,stagePadding:0,merge:!1,mergeFit:!0,autoWidth:!1,startPosition:0,rtl:!1,smartSpeed:250,fluidSpeed:!1,dragEndSpeed:!1,responsive:{},responsiveRefreshRate:200,responsiveBaseElement:e,fallbackEasing:"swing",slideTransition:"",info:!1,nestedItemSelector:!1,itemElement:"div",stageElement:"div",refreshClass:"owl-refresh",loadedClass:"owl-loaded",loadingClass:"owl-loading",rtlClass:"owl-rtl",responsiveClass:"owl-responsive",dragClass:"owl-drag",itemClass:"owl-item",stageClass:"owl-stage",stageOuterClass:"owl-stage-outer",grabClass:"owl-grab"},r.Width={Default:"default",Inner:"inner",Outer:"outer"},r.Type={Event:"event",State:"state"},r.Plugins={},r.Workers=[{filter:["width","settings"],run:function(){this._width=this.$element.width()}},{filter:["width","items","settings"],run:function(t){t.current=this._items&&this._items[this.relative(this._current)]}},{filter:["items","settings"],run:function(){this.$stage.children(".cloned").remove()}},{filter:["width","items","settings"],run:function(t){var e=this.settings.margin||"",i=this.settings.rtl,n={width:"auto","margin-left":i?e:"","margin-right":i?"":e};!!this.settings.autoWidth&&this.$stage.children().css(n),t.css=n}},{filter:["width","items","settings"],run:function(t){var e=(this.width()/this.settings.items).toFixed(3)-this.settings.margin,i=null,n=this._items.length,r=!this.settings.autoWidth,a=[];for(t.items={merge:!1,width:e};n--;)i=this._mergers[n],i=this.settings.mergeFit&&Math.min(i,this.settings.items)||i,t.items.merge=i>1||t.items.merge,a[n]=r?e*i:this._items[n].width();this._widths=a}},{filter:["items","settings"],run:function(){var e=[],i=this._items,n=this.settings,r=Math.max(2*n.items,4),a=2*Math.ceil(i.length/2),s=n.loop&&i.length?n.rewind?r:Math.max(r,a):0,o="",l="";for(s/=2;s>0;)e.push(this.normalize(e.length/2,!0)),o+=i[e[e.length-1]][0].outerHTML,e.push(this.normalize(i.length-1-(e.length-1)/2,!0)),l=i[e[e.length-1]][0].outerHTML+l,s-=1;this._clones=e,t(o).addClass("cloned").appendTo(this.$stage),t(l).addClass("cloned").prependTo(this.$stage)}},{filter:["width","items","settings"],run:function(){for(var t=this.settings.rtl?1:-1,e=this._clones.length+this._items.length,i=-1,n=0,r=0,a=[];++i<e;)n=a[i-1]||0,r=this._widths[this.relative(i)]+this.settings.margin,a.push(n+r*t);this._coordinates=a}},{filter:["width","items","settings"],run:function(){var t=this.settings.stagePadding,e=this._coordinates,i={width:Math.ceil(Math.abs(e[e.length-1]))+2*t,"padding-left":t||"","padding-right":t||""};this.$stage.css(i)}},{filter:["width","items","settings"],run:function(t){var e=this._coordinates.length,i=!this.settings.autoWidth,n=this.$stage.children();if(i&&t.items.merge)for(;e--;)t.css.width=this._widths[this.relative(e)],n.eq(e).css(t.css);else i&&(t.css.width=t.items.width,n.css(t.css))}},{filter:["items"],run:function(){this._coordinates.length<1&&this.$stage.removeAttr("style")}},{filter:["width","items","settings"],run:function(t){t.current=t.current?this.$stage.children().index(t.current):0,t.current=Math.max(this.minimum(),Math.min(this.maximum(),t.current)),this.reset(t.current)}},{filter:["position"],run:function(){this.animate(this.coordinates(this._current))}},{filter:["width","position","items","settings"],run:function(){var t,e,i,n,r=this.settings.rtl?1:-1,a=2*this.settings.stagePadding,s=this.coordinates(this.current())+a,o=s+this.width()*r,l=[];for(i=0,n=this._coordinates.length;i<n;i++)t=this._coordinates[i-1]||0,e=Math.abs(this._coordinates[i])+a*r,(this.op(t,"<=",s)&&this.op(t,">",o)||this.op(e,"<",s)&&this.op(e,">",o))&&l.push(i);this.$stage.children(".active").removeClass("active"),this.$stage.children(":eq("+l.join("), :eq(")+")").addClass("active"),this.$stage.children(".center").removeClass("center"),this.settings.center&&this.$stage.children().eq(this.current()).addClass("center")}}],r.prototype.initializeStage=function(){this.$stage=this.$element.find("."+this.settings.stageClass),this.$stage.length||(this.$element.addClass(this.options.loadingClass),this.$stage=t("<"+this.settings.stageElement+">",{class:this.settings.stageClass}).wrap(t("<div/>",{class:this.settings.stageOuterClass})),this.$element.append(this.$stage.parent()))},r.prototype.initializeItems=function(){var e=this.$element.find(".owl-item");if(e.length)return this._items=e.get().map((function(e){return t(e)})),this._mergers=this._items.map((function(){return 1})),void this.refresh();this.replace(this.$element.children().not(this.$stage.parent())),this.isVisible()?this.refresh():this.invalidate("width"),this.$element.removeClass(this.options.loadingClass).addClass(this.options.loadedClass)},r.prototype.initialize=function(){var t,e;this.enter("initializing"),this.trigger("initialize"),this.$element.toggleClass(this.settings.rtlClass,this.settings.rtl),this.settings.autoWidth&&!this.is("pre-loading")&&(t=this.$element.find("img"),e=this.$element.children(this.settings.nestedItemSelector?"."+this.settings.nestedItemSelector:n).width(),t.length&&e<=0&&this.preloadAutoWidthImages(t)),this.initializeStage(),this.initializeItems(),this.registerEventHandlers(),this.leave("initializing"),this.trigger("initialized")},r.prototype.isVisible=function(){return!this.settings.checkVisibility||this.$element.is(":visible")},r.prototype.setup=function(){var e=this.viewport(),i=this.options.responsive,n=-1,r=null;i?(t.each(i,(function(t){t<=e&&t>n&&(n=Number(t))})),"function"==typeof(r=t.extend({},this.options,i[n])).stagePadding&&(r.stagePadding=r.stagePadding()),delete r.responsive,r.responsiveClass&&this.$element.attr("class",this.$element.attr("class").replace(new RegExp("("+this.options.responsiveClass+"-)\\S+\\s","g"),"$1"+n))):r=t.extend({},this.options),this.trigger("change",{property:{name:"settings",value:r}}),this._breakpoint=n,this.settings=r,this.invalidate("settings"),this.trigger("changed",{property:{name:"settings",value:this.settings}})},r.prototype.optionsLogic=function(){this.settings.autoWidth&&(this.settings.stagePadding=!1,this.settings.merge=!1)},r.prototype.prepare=function(e){var i=this.trigger("prepare",{content:e});return i.data||(i.data=t("<"+this.settings.itemElement+"/>").addClass(this.options.itemClass).append(e)),this.trigger("prepared",{content:i.data}),i.data},r.prototype.update=function(){for(var e=0,i=this._pipe.length,n=t.proxy((function(t){return this[t]}),this._invalidated),r={};e<i;)(this._invalidated.all||t.grep(this._pipe[e].filter,n).length>0)&&this._pipe[e].run(r),e++;this._invalidated={},!this.is("valid")&&this.enter("valid")},r.prototype.width=function(t){switch(t=t||r.Width.Default){case r.Width.Inner:case r.Width.Outer:return this._width;default:return this._width-2*this.settings.stagePadding+this.settings.margin}},r.prototype.refresh=function(){this.enter("refreshing"),this.trigger("refresh"),this.setup(),this.optionsLogic(),this.$element.addClass(this.options.refreshClass),this.update(),this.$element.removeClass(this.options.refreshClass),this.leave("refreshing"),this.trigger("refreshed")},r.prototype.onThrottledResize=function(){e.clearTimeout(this.resizeTimer),this.resizeTimer=e.setTimeout(this._handlers.onResize,this.settings.responsiveRefreshRate)},r.prototype.onResize=function(){return!!this._items.length&&this._width!==this.$element.width()&&!!this.isVisible()&&(this.enter("resizing"),this.trigger("resize").isDefaultPrevented()?(this.leave("resizing"),!1):(this.invalidate("width"),this.refresh(),this.leave("resizing"),void this.trigger("resized")))},r.prototype.registerEventHandlers=function(){t.support.transition&&this.$stage.on(t.support.transition.end+".owl.core",t.proxy(this.onTransitionEnd,this)),!1!==this.settings.responsive&&this.on(e,"resize",this._handlers.onThrottledResize),this.settings.mouseDrag&&(this.$element.addClass(this.options.dragClass),this.$stage.on("mousedown.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("dragstart.owl.core selectstart.owl.core",(function(){return!1}))),this.settings.touchDrag&&(this.$stage.on("touchstart.owl.core",t.proxy(this.onDragStart,this)),this.$stage.on("touchcancel.owl.core",t.proxy(this.onDragEnd,this)))},r.prototype.onDragStart=function(e){var n=null;
vendor: 13,854 bytes, line 2
23!==e.which&&(t.support.transform?n={x:(n=this.$stage.css("transform").replace(/.*\(|\)| /g,"").split(","))[16===n.length?12:4],y:n[16===n.length?13:5]}:(n=this.$stage.position(),n={x:this.settings.rtl?n.left+this.$stage.width()-this.width()+this.settings.margin:n.left,y:n.top}),this.is("animating")&&(t.support.transform?this.animate(n.x):this.$stage.stop(),this.invalidate("position")),this.$element.toggleClass(this.options.grabClass,"mousedown"===e.type),this.speed(0),this._drag.time=(new Date).getTime(),this._drag.target=t(e.target),this._drag.stage.start=n,this._drag.stage.current=n,this._drag.pointer=this.pointer(e),t(i).on("mouseup.owl.core touchend.owl.core",t.proxy(this.onDragEnd,this)),t(i).one("mousemove.owl.core touchmove.owl.core",t.proxy((function(e){var n=this.difference(this._drag.pointer,this.pointer(e));t(i).on("mousemove.owl.core touchmove.owl.core",t.proxy(this.onDragMove,this)),Math.abs(n.x)<Math.abs(n.y)&&this.is("valid")||(e.preventDefault(),this.enter("dragging"),this.trigger("drag"))}),this)))},r.prototype.onDragMove=function(t){var e=null,i=null,n=null,r=this.difference(this._drag.pointer,this.pointer(t)),a=this.difference(this._drag.stage.start,r);this.is("dragging")&&(t.preventDefault(),this.settings.loop?(e=this.coordinates(this.minimum()),i=this.coordinates(this.maximum()+1)-e,a.x=((a.x-e)%i+i)%i+e):(e=this.coordinates(this.settings.rtl?this.maximum():this.minimum()),i=this.coordinates(this.settings.rtl?this.minimum():this.maximum()),n=this.settings.pullDrag?-1*r.x/5:0,a.x=Math.max(Math.min(a.x,e+n),i+n)),this._drag.stage.current=a,this.animate(a.x))},r.prototype.onDragEnd=function(e){var n=this.difference(this._drag.pointer,this.pointer(e)),r=this._drag.stage.current,a=n.x>0^this.settings.rtl?"left":"right";t(i).off(".owl.core"),this.$element.removeClass(this.options.grabClass),(0!==n.x&&this.is("dragging")||!this.is("valid"))&&(this.speed(this.settings.dragEndSpeed||this.settings.smartSpeed),this.current(this.closest(r.x,0!==n.x?a:this._drag.direction)),this.invalidate("position"),this.update(),this._drag.direction=a,(Math.abs(n.x)>3||(new Date).getTime()-this._drag.time>300)&&this._drag.target.one("click.owl.core",(function(){return!1}))),this.is("dragging")&&(this.leave("dragging"),this.trigger("dragged"))},r.prototype.closest=function(e,i){var r=-1,a=this.width(),s=this.coordinates();return this.settings.freeDrag||t.each(s,t.proxy((function(t,o){return"left"===i&&e>o-30&&e<o+30?r=t:"right"===i&&e>o-a-30&&e<o-a+30?r=t+1:this.op(e,"<",o)&&this.op(e,">",s[t+1]!==n?s[t+1]:o-a)&&(r="left"===i?t+1:t),-1===r}),this)),this.settings.loop||(this.op(e,">",s[this.minimum()])?r=e=this.minimum():this.op(e,"<",s[this.maximum()])&&(r=e=this.maximum())),r},r.prototype.animate=function(e){var i=this.speed()>0;this.is("animating")&&this.onTransitionEnd(),i&&(this.enter("animating"),this.trigger("translate")),t.support.transform3d&&t.support.transition?this.$stage.css({transform:"translate3d("+e+"px,0px,0px)",transition:this.speed()/1e3+"s"+(this.settings.slideTransition?" "+this.settings.slideTransition:"")}):i?this.$stage.animate({left:e+"px"},this.speed(),this.settings.fallbackEasing,t.proxy(this.onTransitionEnd,this)):this.$stage.css({left:e+"px"})},r.prototype.is=function(t){return this._states.current[t]&&this._states.current[t]>0},r.prototype.current=function(t){if(t===n)return this._current;if(0===this._items.length)return n;if(t=this.normalize(t),this._current!==t){var e=this.trigger("change",{property:{name:"position",value:t}});e.data!==n&&(t=this.normalize(e.data)),this._current=t,this.invalidate("position"),this.trigger("changed",{property:{name:"position",value:this._current}})}return this._current},r.prototype.invalidate=function(e){return"string"===t.type(e)&&(this._invalidated[e]=!0,this.is("valid")&&this.leave("valid")),t.map(this._invalidated,(function(t,e){return e}))},r.prototype.reset=function(t){(t=this.normalize(t))!==n&&(this._speed=0,this._current=t,this.suppress(["translate","translated"]),this.animate(this.coordinates(t)),this.release(["translate","translated"]))},r.prototype.normalize=function(t,e){var i=this._items.length,r=e?0:this._clones.length;return!this.isNumeric(t)||i<1?t=n:(t<0||t>=i+r)&&(t=((t-r/2)%i+i)%i+r/2),t},r.prototype.relative=function(t){return this.normalize(t-=this._clones.length/2,!0)},r.prototype.maximum=function(t){var e,i,n,r=this.settings,a=this._coordinates.length;if(r.loop)a=this._clones.length/2+this._items.length-1;else if(r.autoWidth||r.merge){if(e=this._items.length)for(i=this._items[--e].width(),n=this.$element.width();e--&&!((i+=this._items[e].width()+this.settings.margin)>n););a=e+1}else a=r.center?this._items.length-1:this._items.length-r.items;return t&&(a-=this._clones.length/2),Math.max(a,0)},r.prototype.minimum=function(t){return t?0:this._clones.length/2},r.prototype.items=function(t){return t===n?this._items.slice():(t=this.normalize(t,!0),this._items[t])},r.prototype.mergers=function(t){return t===n?this._mergers.slice():(t=this.normalize(t,!0),this._mergers[t])},r.prototype.clones=function(e){var i=this._clones.length/2,r=i+this._items.length,a=function(t){return t%2==0?r+t/2:i-(t+1)/2};return t.map(this._clones,e===n?function(t,e){return a(e)}:function(t,i){return t===e?a(i):null})},r.prototype.speed=function(t){return t!==n&&(this._speed=t),this._speed},r.prototype.coordinates=function(e){var i,r=1,a=e-1;return e===n?t.map(this._coordinates,t.proxy((function(t,e){return this.coordinates(e)}),this)):(this.settings.center?(this.settings.rtl&&(r=-1,a=e+1),i=this._coordinates[e],i+=(this.width()-i+(this._coordinates[a]||0))/2*r):i=this._coordinates[a]||0,i=Math.ceil(i))},r.prototype.duration=function(t,e,i){return 0===i?0:Math.min(Math.max(Math.abs(e-t),1),6)*Math.abs(i||this.settings.smartSpeed)},r.prototype.to=function(t,e){var i=this.current(),n=null,r=t-this.relative(i),a=(r>0)-(r<0),s=this._items.length,o=this.minimum(),l=this.maximum();this.settings.loop?(!this.settings.rewind&&Math.abs(r)>s/2&&(r+=-1*a*s),(n=(((t=i+r)-o)%s+s)%s+o)!==t&&n-r<=l&&n-r>0&&(t=n,this.reset(i=n-r))):t=this.settings.rewind?(t%(l+=1)+l)%l:Math.max(o,Math.min(l,t)),this.speed(this.duration(i,t,e)),this.current(t),this.isVisible()&&this.update()},r.prototype.next=function(t){t=t||!1,this.to(this.relative(this.current())+1,t)},r.prototype.prev=function(t){t=t||!1,this.to(this.relative(this.current())-1,t)},r.prototype.onTransitionEnd=function(t){if(t!==n&&(t.stopPropagation(),(t.target||t.srcElement||t.originalTarget)!==this.$stage.get(0)))return!1;this.leave("animating"),this.trigger("translated")},r.prototype.viewport=function(){var n;return this.options.responsiveBaseElement!==e?n=t(this.options.responsiveBaseElement).width():e.innerWidth?n=e.innerWidth:i.documentElement&&i.documentElement.clientWidth?n=i.documentElement.clientWidth:console.warn("Can not detect viewport width."),n},r.prototype.replace=function(e){this.$stage.empty(),this._items=[],e&&(e=e instanceof jQuery?e:t(e)),this.settings.nestedItemSelector&&(e=e.find("."+this.settings.nestedItemSelector)),e.filter((function(){return 1===this.nodeType})).each(t.proxy((function(t,e){e=this.prepare(e),this.$stage.append(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)}),this)),this.reset(this.isNumeric(this.settings.startPosition)?this.settings.startPosition:0),this.invalidate("items")},r.prototype.add=function(e,i){var r=this.relative(this._current);i=i===n?this._items.length:this.normalize(i,!0),e=e instanceof jQuery?e:t(e),this.trigger("add",{content:e,position:i}),e=this.prepare(e),0===this._items.length||i===this._items.length?(0===this._items.length&&this.$stage.append(e),0!==this._items.length&&this._items[i-1].after(e),this._items.push(e),this._mergers.push(1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)):(this._items[i].before(e),this._items.splice(i,0,e),this._mergers.splice(i,0,1*e.find("[data-merge]").addBack("[data-merge]").attr("data-merge")||1)),this._items[r]&&this.reset(this._items[r].index()),this.invalidate("items"),this.trigger("added",{content:e,position:i})},r.prototype.remove=function(t){(t=this.normalize(t,!0))!==n&&(this.trigger("remove",{content:this._items[t],position:t}),this._items[t].remove(),this._items.splice(t,1),this._mergers.splice(t,1),this.invalidate("items"),this.trigger("removed",{content:null,position:t}))},r.prototype.preloadAutoWidthImages=function(e){e.each(t.proxy((function(e,i){this.enter("pre-loading"),i=t(i),t(new Image).one("load",t.proxy((function(t){i.attr("src",t.target.src),i.css("opacity",1),this.leave("pre-loading"),!this.is("pre-loading")&&!this.is("initializing")&&this.refresh()}),this)).attr("src",i.attr("src")||i.attr("data-src")||i.attr("data-src-retina"))}),this))},r.prototype.destroy=function(){for(var n in this.$element.off(".owl.core"),this.$stage.off(".owl.core"),t(i).off(".owl.core"),!1!==this.settings.responsive&&(e.clearTimeout(this.resizeTimer),this.off(e,"resize",this._handlers.onThrottledResize)),this._plugins)this._plugins[n].destroy();this.$stage.children(".cloned").remove(),this.$stage.unwrap(),this.$stage.children().contents().unwrap(),this.$stage.children().unwrap(),this.$stage.remove(),this.$element.removeClass(this.options.refreshClass).removeClass(this.options.loadingClass).removeClass(this.options.loadedClass).removeClass(this.options.rtlClass).removeClass(this.options.dragClass).removeClass(this.options.grabClass).attr("class",this.$element.attr("class").replace(new RegExp(this.options.responsiveClass+"-\\S+\\s","g"),"")).removeData("owl.carousel")},r.prototype.op=function(t,e,i){var n=this.settings.rtl;switch(e){case"<":return n?t>i:t<i;case">":return n?t<i:t>i;case">=":return n?t<=i:t>=i;case"<=":return n?t>=i:t<=i}},r.prototype.on=function(t,e,i,n){t.addEventListener?t.addEventListener(e,i,n):t.attachEvent&&t.attachEvent("on"+e,i)},r.prototype.off=function(t,e,i,n){t.removeEventListener?t.removeEventListener(e,i,n):t.detachEvent&&t.detachEvent("on"+e,i)},r.prototype.trigger=function(e,i,n,a,s){var o={item:{count:this._items.length,index:this.current()}},l=t.camelCase(t.grep(["on",e,n],(function(t){return t})).join("-").toLowerCase()),c=t.Event([e,"owl",n||"carousel"].join(".").toLowerCase(),t.extend({relatedTarget:this},o,i));return this._supress[e]||(t.each(this._plugins,(function(t,e){e.onTrigger&&e.onTrigger(c)})),this.register({type:r.Type.Event,name:e}),this.$element.trigger(c),this.settings&&"function"==typeof this.settings[l]&&this.settings[l].call(this,c)),c},r.prototype.enter=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]===n&&(this._states.current[e]=0),this._states.current[e]++}),this))},r.prototype.leave=function(e){t.each([e].concat(this._states.tags[e]||[]),t.proxy((function(t,e){this._states.current[e]--}),this))},r.prototype.register=function(e){if(e.type===r.Type.Event){if(t.event.special[e.name]||(t.event.special[e.name]={}),!t.event.special[e.name].owl){var i=t.event.special[e.name]._default;t.event.special[e.name]._default=function(t){return!i||!i.apply||t.namespace&&-1!==t.namespace.indexOf("owl")?t.namespace&&t.namespace.indexOf("owl")>-1:i.apply(this,arguments)},t.event.special[e.name].owl=!0}}else e.type===r.Type.State&&(this._states.tags[e.name]=this._states.tags[e.name]?this._states.tags[e.name].concat(e.tags):e.tags,this._states.tags[e.name]=t.grep(this._states.tags[e.name],t.proxy((function(i,n){return t.inArray(i,this._states.tags[e.name])===n}),this)))},r.prototype.suppress=function(e){t.each(e,t.proxy((function(t,e){this._supress[e]=!0}),this))},r.prototype.release=function(e){t.each(e,t.proxy((function(t,e){delete this._supress[e]}),this))},r.prototype.pointer=function(t){var i={x:null,y:null};return(t=(t=t.originalEvent||t||e.event).touches&&t.touches.length?t.touches[0]:t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t).pageX?(i.x=t.pageX,i.y=t.pageY):(i.x=t.clientX,i.y=t.clientY),i},r.prototype.isNumeric=function(t){return!isNaN(parseFloat(t))},r.prototype.difference=function(t,e){return{x:t.x-e.x,y:t.y-e.y}},t.fn.owlCarousel=function(e){var i=Array.prototype.slice.call(arguments,1);return this.each((function(){var n=t(this),a=n.data("owl.carousel");a||(a=new r(this,"object"==typeof e&&e),n.data("owl.carousel",a),t.each(["next","prev","to","destroy","refresh","replace","add","remove"],(function(e,i){a.register({type:r.Type.Event,name:i}),a.$element.on(i+".owl.carousel.core",t.proxy((function(t){t.namespace&&t.relatedTarget!==this&&(this.suppress([i]),a[i].apply(this,[].slice.call(arguments,1)),this.release([i]))}),a))}))),"string"==typeof e&&"_"!==e.charAt(0)&&a[e].apply(a,i)}))},t.fn.owlCarousel.Constructor=r}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(e){this._core=e,this._interval=null,this._visible=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoRefresh&&this.watch()}),this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={autoRefresh:!0,autoRefreshInterval:500},r.prototype.watch=function(){this._interval||(this._visible=this._core.isVisible(),this._interval=e.setInterval(t.proxy(this.refresh,this),this._core.settings.autoRefreshInterval))},r.prototype.refresh=function(){this._core.isVisible()!==this._visible&&(this._visible=!this._visible,this._core.$element.toggleClass("owl-hidden",!this._visible),this._visible&&this._core.invalidate("width")&&this._core.refresh())},r.prototype.destroy=function(){var t,i;for(t in e.clearInterval(this._interval),this._handlers)this._core.$element.off(t,this._handlers[t]);for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoRefresh=r}
2(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(e){this._core=e,this._loaded=[],this._handlers={"initialized.owl.carousel change.owl.carousel resized.owl.carousel":t.proxy((function(e){if(e.namespace&&this._core.settings&&this._core.settings.lazyLoad&&(e.property&&"position"==e.property.name||"initialized"==e.type)){var i=this._core.settings,n=i.center&&Math.ceil(i.items/2)||i.items,r=i.center&&-1*n||0,a=(e.property&&void 0!==e.property.value?e.property.value:this._core.current())+r,s=this._core.clones().length,o=t.proxy((function(t,e){this.load(e)}),this);for(i.lazyLoadEager>0&&(n+=i.lazyLoadEager,i.loop&&(a-=i.lazyLoadEager,n++));r++<n;)this.load(s/2+this._core.relative(a)),s&&t.each(this._core.clones(this._core.relative(a)),o),a++}}),this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers)};r.Defaults={lazyLoad:!1,lazyLoadEager:0},r.prototype.load=function(i){var n=this._core.$stage.children().eq(i),r=n&&n.find(".owl-lazy");!r||t.inArray(n.get(0),this._loaded)>-1||(r.each(t.proxy((function(i,n){var r,a=t(n),s=e.devicePixelRatio>1&&a.attr("data-src-retina")||a.attr("data-src")||a.attr("data-srcset");this._core.trigger("load",{element:a,url:s},"lazy"),a.is("img")?a.one("load.owl.lazy",t.proxy((function(){a.css("opacity",1),this._core.trigger("loaded",{element:a,url:s},"lazy")}),this)).attr("src",s):a.is("source")?a.one("load.owl.lazy",t.proxy((function(){this._core.trigger("loaded",{element:a,url:s},"lazy")}),this)).attr("srcset",s):((r=new Image).onload=t.proxy((function(){a.css({"background-image":'url("'+s+'")',opacity:"1"}),this._core.trigger("loaded",{element:a,url:s},"lazy")}),this),r.src=s)}),this)),this._loaded.push(n.get(0)))},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this._core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Lazy=r}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(i){this._core=i,this._previousHeight=null,this._handlers={"initialized.owl.carousel refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&this.update()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&"position"===t.property.name&&this.update()}),this),"loaded.owl.lazy":t.proxy((function(t){t.namespace&&this._core.settings.autoHeight&&t.element.closest("."+this._core.settings.itemClass).index()===this._core.current()&&this.update()}),this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._intervalId=null;var n=this;t(e).on("load",(function(){n._core.settings.autoHeight&&n.update()})),t(e).resize((function(){n._core.settings.autoHeight&&(null!=n._intervalId&&clearTimeout(n._intervalId),n._intervalId=setTimeout((function(){n.update()}),250))}))};r.Defaults={autoHeight:!1,autoHeightClass:"owl-height"},r.prototype.update=function(){var e=this._core._current,i=e+this._core.settings.items,n=this._core.settings.lazyLoad,r=this._core.$stage.children().toArray().slice(e,i),a=[],s=0;t.each(r,(function(e,i){a.push(t(i).height())})),(s=Math.max.apply(null,a))<=1&&n&&this._previousHeight&&(s=this._previousHeight),this._previousHeight=s,this._core.$stage.parent().height(s).addClass(this._core.settings.autoHeightClass)},r.prototype.destroy=function(){var t,e;for(t in this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.AutoHeight=r}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(e){this._core=e,this._videos={},this._playing=null,this._handlers={"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.register({type:"state",name:"playing",tags:["interacting"]})}),this),"resize.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.video&&this.isInFullScreen()&&t.preventDefault()}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._core.is("resizing")&&this._core.$stage.find(".cloned .owl-video-frame").remove()}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"===t.property.name&&this._playing&&this.stop()}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find(".owl-video");i.length&&(i.css("display","none"),this.fetch(i,t(e.content)))}}),this)},this._core.options=t.extend({},r.Defaults,this._core.options),this._core.$element.on(this._handlers),this._core.$element.on("click.owl.video",".owl-video-play-icon",t.proxy((function(t){this.play(t)}),this))};r.Defaults={video:!1,videoHeight:!1,videoWidth:!1},r.prototype.fetch=function(t,e){var i=t.attr("data-vimeo-id")?"vimeo":t.attr("data-vzaar-id")?"vzaar":"youtube",n=t.attr("data-vimeo-id")||t.attr("data-youtube-id")||t.attr("data-vzaar-id"),r=t.attr("data-width")||this._core.settings.videoWidth,a=t.attr("data-height")||this._core.settings.videoHeight,s=t.attr("href");if(!s)throw new Error("Missing video URL.");
2if((n=s.match(/(http:|https:|)\/\/(player.|www.|app.)?(vimeo\.com|youtu(be\.com|\.be|be\.googleapis\.com|be\-nocookie\.com)|vzaar\.com)\/(video\/|videos\/|embed\/|channels\/.+\/|groups\/.+\/|watch\?v=|v\/)?([A-Za-z0-9._%-]*)(\&\S+)?/))[3].indexOf("youtu")>-1)i="youtube";else if(n[3].indexOf("vimeo")>-1)i="vimeo";else{if(!(n[3].indexOf("vzaar")>-1))throw new Error("Video URL not supported.");i="vzaar"}this._videos[s]={type:i,id:n=n[6],width:r,height:a},e.attr("data-video",s),this.thumbnail(t,this._videos[s])},r.prototype.thumbnail=function(e,i){var n,r=i.width&&i.height?"width:"+i.width+"px;height:"+i.height+"px;":"",a=e.find("img"),s="src",o="",l=this._core.settings,c=function(i){n=t("<div/>",l.lazyLoad?{class:"owl-video-tn "+o,srcType:i}:{class:"owl-video-tn",style:"opacity:1;background-image:url("+i+")"}),e.after(n),e.after('<div class="owl-video-play-icon"></div>')};if(e.wrap(t("<div/>",{class:"owl-video-wrapper",style:r})),this._core.settings.lazyLoad&&(s="data-src",o="owl-lazy"),a.length)return c(a.attr(s)),a.remove(),!1;"youtube"===i.type?c("//img.youtube.com/vi/"+i.id+"/hqdefault.jpg"):"vimeo"===i.type?t.ajax({type:"GET",url:"//vimeo.com/api/v2/video/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){c(t[0].thumbnail_large)}}):"vzaar"===i.type&&t.ajax({type:"GET",url:"//vzaar.com/api/videos/"+i.id+".json",jsonp:"callback",dataType:"jsonp",success:function(t){c(t.framegrab_url)}})},r.prototype.stop=function(){this._core.trigger("stop",null,"video"),this._playing.find(".owl-video-frame").remove(),this._playing.removeClass("owl-video-playing"),this._playing=null,this._core.leave("playing"),this._core.trigger("stopped",null,"video")},r.prototype.play=function(e){var i,n=t(e.target).closest("."+this._core.settings.itemClass),r=this._videos[n.attr("data-video")],a=r.width||"100%",s=r.height||this._core.$stage.height();this._playing||(this._core.enter("playing"),this._core.trigger("play",null,"video"),n=this._core.items(this._core.relative(n.index())),this._core.reset(n.index()),(i=t('<iframe frameborder="0" allowfullscreen mozallowfullscreen webkitAllowFullScreen ></iframe>')).attr("height",s),i.attr("width",a),"youtube"===r.type?i.attr("src","//www.youtube.com/embed/"+r.id+"?autoplay=1&rel=0&v="+r.id):"vimeo"===r.type?i.attr("src","//player.vimeo.com/video/"+r.id+"?autoplay=1"):"vzaar"===r.type&&i.attr("src","//view.vzaar.com/"+r.id+"/player?autoplay=true"),t(i).wrap('<div class="owl-video-frame" />').insertAfter(n.find(".owl-video")),this._playing=n.addClass("owl-video-playing"))},r.prototype.isInFullScreen=function(){var e=i.fullscreenElement||i.mozFullScreenElement||i.webkitFullscreenElement;return e&&t(e).parent().hasClass("owl-video-frame")},r.prototype.destroy=function(){var t,e;for(t in this._core.$element.off("click.owl.video"),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Video=r}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(e){this.core=e,this.core.options=t.extend({},r.Defaults,this.core.options),this.swapping=!0,this.previous=n,this.next=n,this.handlers={"change.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&(this.previous=this.core.current(),this.next=t.property.value)}),this),"drag.owl.carousel dragged.owl.carousel translated.owl.carousel":t.proxy((function(t){t.namespace&&(this.swapping="translated"==t.type)}),this),"translate.owl.carousel":t.proxy((function(t){t.namespace&&this.swapping&&(this.core.options.animateOut||this.core.options.animateIn)&&this.swap()}),this)},this.core.$element.on(this.handlers)};r.Defaults={animateOut:!1,animateIn:!1},r.prototype.swap=function(){if(1===this.core.settings.items&&t.support.animation&&t.support.transition){this.core.speed(0);var e,i=t.proxy(this.clear,this),n=this.core.$stage.children().eq(this.previous),r=this.core.$stage.children().eq(this.next),a=this.core.settings.animateIn,s=this.core.settings.animateOut;this.core.current()!==this.previous&&(s&&(e=this.core.coordinates(this.previous)-this.core.coordinates(this.next),n.one(t.support.animation.end,i).css({left:e+"px"}).addClass("animated owl-animated-out").addClass(s)),a&&r.one(t.support.animation.end,i).addClass("animated owl-animated-in").addClass(a))}},r.prototype.clear=function(e){t(e.target).css({left:""}).removeClass("animated owl-animated-out owl-animated-in").removeClass(this.core.settings.animateIn).removeClass(this.core.settings.animateOut),this.core.onTransitionEnd()},r.prototype.destroy=function(){var t,e;for(t in this.handlers)this.core.$element.off(t,this.handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.Animate=r}
vendor: 8,418 bytes, line 2
2(window.Zepto||window.jQuery,window,document),function(t,e,i,n){var r=function(e){this._core=e,this._call=null,this._time=0,this._timeout=0,this._paused=!0,this._handlers={"changed.owl.carousel":t.proxy((function(t){t.namespace&&"settings"===t.property.name?this._core.settings.autoplay?this.play():this.stop():t.namespace&&"position"===t.property.name&&this._paused&&(this._time=0)}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.autoplay&&this.play()}),this),"play.owl.autoplay":t.proxy((function(t,e,i){t.namespace&&this.play(e,i)}),this),"stop.owl.autoplay":t.proxy((function(t){t.namespace&&this.stop()}),this),"mouseover.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"mouseleave.owl.autoplay":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.play()}),this),"touchstart.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this._core.is("rotating")&&this.pause()}),this),"touchend.owl.core":t.proxy((function(){this._core.settings.autoplayHoverPause&&this.play()}),this)},this._core.$element.on(this._handlers),this._core.options=t.extend({},r.Defaults,this._core.options)};r.Defaults={autoplay:!1,autoplayTimeout:5e3,autoplayHoverPause:!1,autoplaySpeed:!1},r.prototype._next=function(n){this._call=e.setTimeout(t.proxy(this._next,this,n),this._timeout*(Math.round(this.read()/this._timeout)+1)-this.read()),this._core.is("interacting")||i.hidden||this._core.next(n||this._core.settings.autoplaySpeed)},r.prototype.read=function(){return(new Date).getTime()-this._time},r.prototype.play=function(i,n){var r;this._core.is("rotating")||this._core.enter("rotating"),i=i||this._core.settings.autoplayTimeout,r=Math.min(this._time%(this._timeout||i),i),this._paused?(this._time=this.read(),this._paused=!1):e.clearTimeout(this._call),this._time+=this.read()%i-r,this._timeout=i,this._call=e.setTimeout(t.proxy(this._next,this,n),i-r)},r.prototype.stop=function(){this._core.is("rotating")&&(this._time=0,this._paused=!0,e.clearTimeout(this._call),this._core.leave("rotating"))},r.prototype.pause=function(){this._core.is("rotating")&&!this._paused&&(this._time=this.read(),this._paused=!0,e.clearTimeout(this._call))},r.prototype.destroy=function(){var t,e;for(t in this.stop(),this._handlers)this._core.$element.off(t,this._handlers[t]);for(e in Object.getOwnPropertyNames(this))"function"!=typeof this[e]&&(this[e]=null)},t.fn.owlCarousel.Constructor.Plugins.autoplay=r}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var r=function(e){this._core=e,this._initialized=!1,this._pages=[],this._controls={},this._templates=[],this.$element=this._core.$element,this._overrides={next:this._core.next,prev:this._core.prev,to:this._core.to},this._handlers={"prepared.owl.carousel":t.proxy((function(e){e.namespace&&this._core.settings.dotsData&&this._templates.push('<div class="'+this._core.settings.dotClass+'">'+t(e.content).find("[data-dot]").addBack("[data-dot]").attr("data-dot")+"</div>")}),this),"added.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,0,this._templates.pop())}),this),"remove.owl.carousel":t.proxy((function(t){t.namespace&&this._core.settings.dotsData&&this._templates.splice(t.position,1)}),this),"changed.owl.carousel":t.proxy((function(t){t.namespace&&"position"==t.property.name&&this.draw()}),this),"initialized.owl.carousel":t.proxy((function(t){t.namespace&&!this._initialized&&(this._core.trigger("initialize",null,"navigation"),this.initialize(),this.update(),this.draw(),this._initialized=!0,this._core.trigger("initialized",null,"navigation"))}),this),"refreshed.owl.carousel":t.proxy((function(t){t.namespace&&this._initialized&&(this._core.trigger("refresh",null,"navigation"),this.update(),this.draw(),this._core.trigger("refreshed",null,"navigation"))}),this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers)};r.Defaults={nav:!1,navText:['<span aria-label="Previous">‹</span>','<span aria-label="Next">›</span>'],navSpeed:!1,navElement:'button type="button" role="presentation"',navContainer:!1,navContainerClass:"owl-nav",navClass:["owl-prev","owl-next"],slideBy:1,dotClass:"owl-dot",dotsClass:"owl-dots",dots:!0,dotsEach:!1,dotsData:!1,dotsSpeed:!1,dotsContainer:!1},r.prototype.initialize=function(){var e,i=this._core.settings;for(e in this._controls.$relative=(i.navContainer?t(i.navContainer):t("<div>").addClass(i.navContainerClass).appendTo(this.$element)).addClass("disabled"),this._controls.$previous=t("<"+i.navElement+">").addClass(i.navClass[0]).html(i.navText[0]).prependTo(this._controls.$relative).on("click",t.proxy((function(t){this.prev(i.navSpeed)}),this)),this._controls.$next=t("<"+i.navElement+">").addClass(i.navClass[1]).html(i.navText[1]).appendTo(this._controls.$relative).on("click",t.proxy((function(t){this.next(i.navSpeed)}),this)),i.dotsData||(this._templates=[t('<button role="button">').addClass(i.dotClass).append(t("<span>")).prop("outerHTML")]),this._controls.$absolute=(i.dotsContainer?t(i.dotsContainer):t("<div>").addClass(i.dotsClass).appendTo(this.$element)).addClass("disabled"),this._controls.$absolute.on("click","button",t.proxy((function(e){var n=t(e.target).parent().is(this._controls.$absolute)?t(e.target).index():t(e.target).parent().index();e.preventDefault(),this.to(n,i.dotsSpeed)}),this)),this._overrides)this._core[e]=t.proxy(this[e],this)},r.prototype.destroy=function(){var t,e,i,n,r;for(t in r=this._core.settings,this._handlers)this.$element.off(t,this._handlers[t]);for(e in this._controls)"$relative"===e&&r.navContainer?this._controls[e].html(""):this._controls[e].remove();for(n in this.overides)this._core[n]=this._overrides[n];for(i in Object.getOwnPropertyNames(this))"function"!=typeof this[i]&&(this[i]=null)},r.prototype.update=function(){var t,e,i=this._core.clones().length/2,n=i+this._core.items().length,r=this._core.maximum(!0),a=this._core.settings,s=a.center||a.autoWidth||a.dotsData?1:a.dotsEach||a.items;if("page"!==a.slideBy&&(a.slideBy=Math.min(a.slideBy,a.items)),a.dots||"page"==a.slideBy)for(this._pages=[],t=i,e=0;t<n;t++){if(e>=s||0===e){if(this._pages.push({start:Math.min(r,t-i),end:t-i+s-1}),Math.min(r,t-i)===r)break;e=0}e+=this._core.mergers(this._core.relative(t))}},r.prototype.draw=function(){var e,i=this._core.settings,n=this._core.items().length<=i.items,r=this._core.relative(this._core.current()),a=i.loop||i.rewind;this._controls.$relative.toggleClass("disabled",!i.nav||n),i.nav&&(this._controls.$previous.toggleClass("disabled",!a&&r<=this._core.minimum(!0)),this._controls.$next.toggleClass("disabled",!a&&r>=this._core.maximum(!0))),this._controls.$absolute.toggleClass("disabled",!i.dots||n),i.dots&&(e=this._pages.length-this._controls.$absolute.children().length,i.dotsData&&0!==e?this._controls.$absolute.html(this._templates.join("")):e>0?this._controls.$absolute.append(new Array(e+1).join(this._templates[0])):e<0&&this._controls.$absolute.children().slice(e).remove(),this._controls.$absolute.find(".active").removeClass("active"),this._controls.$absolute.children().eq(t.inArray(this.current(),this._pages)).addClass("active"))},r.prototype.onTrigger=function(e){var i=this._core.settings;e.page={index:t.inArray(this.current(),this._pages),count:this._pages.length,size:i&&(i.center||i.autoWidth||i.dotsData?1:i.dotsEach||i.items)}},r.prototype.current=function(){var e=this._core.relative(this._core.current());return t.grep(this._pages,t.proxy((function(t,i){return t.start<=e&&t.end>=e}),this)).pop()},r.prototype.getPosition=function(e){var i,n,r=this._core.settings;return"page"==r.slideBy?(i=t.inArray(this.current(),this._pages),e?++i:--i,i=this._pages[(i%(n=this._pages.length)+n)%n].start):(i=this._core.relative(this._core.current()),n=this._core.items().length,e?i+=r.slideBy:i-=r.slideBy),i},r.prototype.next=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!0),e)},r.prototype.prev=function(e){t.proxy(this._overrides.to,this._core)(this.getPosition(!1),e)},r.prototype.to=function(e,i,n){var r;!n&&this._pages.length?(r=this._pages.length,t.proxy(this._overrides.to,this._core)(this._pages[(e%r+r)%r].start,i)):t.proxy(this._overrides.to,this._core)(e,i)},t.fn.owlCarousel.Constructor.Plugins.Navigation=r}
2(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";var r=function(i){this._core=i,this._hashes={},this.$element=this._core.$element,this._handlers={"initialized.owl.carousel":t.proxy((function(i){i.namespace&&"URLHash"===this._core.settings.startPosition&&t(e).trigger("hashchange.owl.navigation")}),this),"prepared.owl.carousel":t.proxy((function(e){if(e.namespace){var i=t(e.content).find("[data-hash]").addBack("[data-hash]").attr("data-hash");if(!i)return;this._hashes[i]=e.content}}),this),"changed.owl.carousel":t.proxy((function(i){if(i.namespace&&"position"===i.property.name){var n=this._core.items(this._core.relative(this._core.current())),r=t.map(this._hashes,(function(t,e){return t===n?e:null})).join();if(!r||e.location.hash.slice(1)===r)return;e.location.hash=r}}),this)},this._core.options=t.extend({},r.Defaults,this._core.options),this.$element.on(this._handlers),t(e).on("hashchange.owl.navigation",t.proxy((function(t){var i=e.location.hash.substring(1),n=this._core.$stage.children(),r=this._hashes[i]&&n.index(this._hashes[i]);void 0!==r&&r!==this._core.current()&&this._core.to(this._core.relative(r),!1,!0)}),this))};r.Defaults={URLhashListener:!1},r.prototype.destroy=function(){var i,n;for(i in t(e).off("hashchange.owl.navigation"),this._handlers)this._core.$element.off(i,this._handlers[i]);for(n in Object.getOwnPropertyNames(this))"function"!=typeof this[n]&&(this[n]=null)},t.fn.owlCarousel.Constructor.Plugins.Hash=r}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){function r(e,i){var n=!1,r=e.charAt(0).toUpperCase()+e.slice(1);return t.each((e+" "+o.join(r+" ")+r).split(" "),(function(t,e){if(void 0!==s[e])return n=!i||e,!1})),n}function a(t){return r(t,!0)}var s=t("<support>").get(0).style,o="Webkit Moz O ms".split(" "),l={transition:{end:{WebkitTransition:"webkitTransitionEnd",MozTransition:"transitionend",OTransition:"oTransitionEnd",transition:"transitionend"}},animation:{end:{WebkitAnimation:"webkitAnimationEnd",MozAnimation:"animationend",OAnimation:"oAnimationEnd",animation:"animationend"}}};!!r("transition")&&(t.support.transition=new String(a("transition")),t.support.transition.end=l.transition.end[t.support.transition]),!!r("animation")&&(t.support.animation=new String(a("animation")),t.support.animation.end=l.animation.end[t.support.animation]),r("transform")&&(t.support.transform=new String(a("transform")),t.support.transform3d=!!r("perspective"))}(window.Zepto||window.jQuery,window,document),function(t,e,i,n){"use strict";function r(t,e){var n,r,a,s=[],o=0;t&&t.isDefaultPrevented()||(t.preventDefault(),e=e||{},t&&t.data&&(e=f(t.data.options,e)),n=e.$target||i(t.currentTarget).trigger("blur"),(a=i.fancybox.getInstance())&&a.$trigger&&a.$trigger.is(n)||(s=e.selector?i(e.selector):(r=n.attr("data-fancybox")||"")?(s=t.data?t.data.items:[]).length?s.filter('[data-fancybox="'+r+'"]'):i('[data-fancybox="'+r+'"]'):[n],(o=i(s).index(n))<0&&(o=0),(a=i.fancybox.open(s,e,o)).$trigger=n))}if(t.console=t.console||{info:function(t){}},i){if(i.fn.fancybox)return void console.info("fancyBox already initialized");var a={closeExisting:!1,loop:!1,gutter:50,keyboard:!0,preventCaptionOverlap:!0,arrows:!0,infobar:!0,smallBtn:"auto",toolbar:"auto",buttons:["zoom","slideShow","thumbs","close"],idleTime:3,protect:!1,modal:!1,image:{preload:!1},ajax:{settings:{data:{fancybox:!0}}},iframe:{tpl:'<iframe id="fancybox-frame{rnd}" name="fancybox-frame{rnd}" class="fancybox-iframe" allowfullscreen="allowfullscreen" allow="autoplay; fullscreen" src=""></iframe>',preload:!0,css:{},attr:{scrolling:"auto"}},video:{tpl:'<video class="fancybox-video" controls controlsList="nodownload" poster="{{poster}}"><source src="{{src}}" type="{{format}}" />Sorry, your browser doesn\'t support embedded videos, <a href="{{src}}">download</a> and watch with your favorite video player!</video>',format:"",autoStart:!0},defaultType:"image",animationEffect:"zoom",animationDuration:366,zoomOpacity:"auto",transitionEffect:"fade",transitionDuration:366,slideClass:"",baseClass:"",baseTpl:'<div class="fancybox-container" role="dialog" tabindex="-1"><div class="fancybox-bg"></div><div class="fancybox-inner"><div class="fancybox-infobar"><span data-fancybox-index></span> / <span data-fancybox-count></span></div><div class="fancybox-toolbar">{{buttons}}</div><div class="fancybox-navigation">{{arrows}}</div><div class="fancybox-stage"></div><div class="fancybox-caption"><div class="fancybox-caption__body"></div></div></div></div>',spinnerTpl:'<div class="fancybox-loading"></div>',errorTpl:'<div class="fancybox-error"><p>{{ERROR}}</p></div>',btnTpl:{download:'<a download data-fancybox-download class="fancybox-button fancybox-button--download" title="{{DOWNLOAD}}" href="javascript:;"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24">
2<path d="M18.62 17.09V19H5.38v-1.91zm-2.97-6.96L17 11.45l-5 4.87-5-4.87 1.36-1.32 2.68 2.64V5h1.92v7.77z"/></svg></a>',zoom:'<button data-fancybox-zoom class="fancybox-button fancybox-button--zoom" title="{{ZOOM}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M18.7 17.3l-3-3a5.9 5.9 0 0 0-.6-7.6 5.9 5.9 0 0 0-8.4 0 5.9 5.9 0 0 0 0 8.4 5.9 5.9 0 0 0 7.7.7l3 3a1 1 0 0 0 1.3 0c.4-.5.4-1 0-1.5zM8.1 13.8a4 4 0 0 1 0-5.7 4 4 0 0 1 5.7 0 4 4 0 0 1 0 5.7 4 4 0 0 1-5.7 0z"/></svg></button>',close:'<button data-fancybox-close class="fancybox-button fancybox-button--close" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M12 10.6L6.6 5.2 5.2 6.6l5.4 5.4-5.4 5.4 1.4 1.4 5.4-5.4 5.4 5.4 1.4-1.4-5.4-5.4 5.4-5.4-1.4-1.4-5.4 5.4z"/></svg></button>',arrowLeft:'<button data-fancybox-prev class="fancybox-button fancybox-button--arrow_left" title="{{PREV}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M11.28 15.7l-1.34 1.37L5 12l4.94-5.07 1.34 1.38-2.68 2.72H19v1.94H8.6z"/></svg></div></button>',arrowRight:'<button data-fancybox-next class="fancybox-button fancybox-button--arrow_right" title="{{NEXT}}"><div><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M15.4 12.97l-2.68 2.72 1.34 1.38L19 12l-4.94-5.07-1.34 1.38 2.68 2.72H5v1.94z"/></svg></div></button>',smallBtn:'<button type="button" data-fancybox-close class="fancybox-button fancybox-close-small" title="{{CLOSE}}"><svg xmlns="http://www.w3.org/2000/svg" version="1" viewBox="0 0 24 24"><path d="M13 12l5-5-1-1-5 5-5-5-1 1 5 5-5 5 1 1 5-5 5 5 1-1z"/></svg></button>'},parentEl:"body",hideScrollbar:!0,autoFocus:!0,backFocus:!0,trapFocus:!0,fullScreen:{autoStart:!1},touch:{vertical:!0,momentum:!0},hash:null,media:{},slideShow:{autoStart:!1,speed:3e3},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"},wheel:"auto",onInit:i.noop,beforeLoad:i.noop,afterLoad:i.noop,beforeShow:i.noop,afterShow:i.noop,beforeClose:i.noop,afterClose:i.noop,onActivate:i.noop,onDeactivate:i.noop,clickContent:function(t,e){return"image"===t.type&&"zoom"},clickSlide:"close",clickOutside:"close",dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1,mobile:{preventCaptionOverlap:!1,idleTime:!1,clickContent:function(t,e){return"image"===t.type&&"toggleControls"},clickSlide:function(t,e){return"image"===t.type?"toggleControls":"close"},dblclickContent:function(t,e){return"image"===t.type&&"zoom"},dblclickSlide:function(t,e){return"image"===t.type&&"zoom"}},lang:"en",i18n:{en:{CLOSE:"Close",NEXT:"Next",PREV:"Previous",ERROR:"The requested content cannot be loaded. <br/> Please try again later.",PLAY_START:"Start slideshow",PLAY_STOP:"Pause slideshow",FULL_SCREEN:"Full screen",THUMBS:"Thumbnails",DOWNLOAD:"Download",SHARE:"Share",ZOOM:"Zoom"},de:{CLOSE:"Schließen",NEXT:"Weiter",PREV:"Zurück",ERROR:"Die angeforderten Daten konnten nicht geladen werden. <br/> Bitte versuchen Sie es später nochmal.",PLAY_START:"Diaschau starten",PLAY_STOP:"Diaschau beenden",FULL_SCREEN:"Vollbild",THUMBS:"Vorschaubilder",DOWNLOAD:"Herunterladen",SHARE:"Teilen",ZOOM:"Vergrößern"}}},s=i(t),o=i(e),l=0,c=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},u=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},d=function(){var t,i=e.createElement("fakeelement"),n={transition:"transitionend",OTransition:"oTransitionEnd",MozTransition:"transitionend",WebkitTransition:"webkitTransitionEnd"};for(t in n)if(void 0!==i.style[t])return n[t];return"transitionend"}(),h=function(t){return t&&t.length&&t[0].offsetHeight},f=function(t,e){var n=i.extend(!0,{},t,e);return i.each(e,(function(t,e){i.isArray(e)&&(n[t]=e)})),n},p=function(t){var n,r;return!(!t||t.ownerDocument!==e)&&(i(".fancybox-container").css("pointer-events","none"),n={x:t.getBoundingClientRect().left+t.offsetWidth/2,y:t.getBoundingClientRect().top+t.offsetHeight/2},r=e.elementFromPoint(n.x,n.y)===t,i(".fancybox-container").css("pointer-events",""),r)},g=function(t,e,n){var r=this;r.opts=f({index:n},i.fancybox.defaults),i.isPlainObject(e)&&(r.opts=f(r.opts,e)),i.fancybox.isMobile&&(r.opts=f(r.opts,r.opts.mobile)),r.id=r.opts.id||++l,r.currIndex=parseInt(r.opts.index,10)||0,r.prevIndex=null,r.prevPos=null,r.currPos=0,r.firstRun=!0,r.group=[],r.slides={},r.addContent(t),r.group.length&&r.init()};i.extend(g.prototype,{init:function(){var n,r,a=this,s=a.group[a.currIndex].opts;s.closeExisting&&i.fancybox.close(!0),i("body").addClass("fancybox-active"),!i.fancybox.getInstance()&&!1!==s.hideScrollbar&&!i.fancybox.isMobile&&e.body.scrollHeight>
2t.innerHeight&&(i("head").append('<style id="fancybox-style-noscroll" type="text/css">.compensate-for-scrollbar{margin-right:'+(t.innerWidth-e.documentElement.clientWidth)+"px;}</style>"),i("body").addClass("compensate-for-scrollbar")),r="",i.each(s.buttons,(function(t,e){r+=s.btnTpl[e]||""})),n=i(a.translate(a,s.baseTpl.replace("{{buttons}}",r).replace("{{arrows}}",s.btnTpl.arrowLeft+s.btnTpl.arrowRight))).attr("id","fancybox-container-"+a.id).addClass(s.baseClass).data("FancyBox",a).appendTo(s.parentEl),a.$refs={container:n},["bg","inner","infobar","toolbar","stage","caption","navigation"].forEach((function(t){a.$refs[t]=n.find(".fancybox-"+t)})),a.trigger("onInit"),a.activate(),a.jumpTo(a.currIndex)},translate:function(t,e){var i=t.opts.i18n[t.opts.lang]||t.opts.i18n.en;return e.replace(/\{\{(\w+)\}\}/g,(function(t,e){return void 0===i[e]?t:i[e]}))},addContent:function(t){var e,n=this,r=i.makeArray(t);i.each(r,(function(t,e){var r,a,s,o,l,c={},u={};i.isPlainObject(e)?(c=e,u=e.opts||e):"object"===i.type(e)&&i(e).length?(u=(r=i(e)).data()||{},(u=i.extend(!0,{},u,u.options)).$orig=r,c.src=n.opts.src||u.src||r.attr("href"),c.type||c.src||(c.type="inline",c.src=e)):c={type:"html",src:e+""},c.opts=i.extend(!0,{},n.opts,u),i.isArray(u.buttons)&&(c.opts.buttons=u.buttons),i.fancybox.isMobile&&c.opts.mobile&&(c.opts=f(c.opts,c.opts.mobile)),o=c.src||"",!(a=c.type||c.opts.type)&&o&&((s=o.match(/\.(mp4|mov|ogv|webm)((\?|#).*)?$/i))?(a="video",c.opts.video.format||(c.opts.video.format="video/"+("ogv"===s[1]?"ogg":s[1]))):o.match(/(^data:image\/[a-z0-9+\/=]*,)|(\.(jp(e|g|eg)|gif|png|bmp|webp|svg|ico)((\?|#).*)?$)/i)?a="image":o.match(/\.(pdf)((\?|#).*)?$/i)?(a="iframe",c=i.extend(!0,c,{contentType:"pdf",opts:{iframe:{preload:!1}}})):"#"===o.charAt(0)&&(a="inline")),a?c.type=a:n.trigger("objectNeedsType",c),c.contentType||(c.contentType=i.inArray(c.type,["html","inline","ajax"])>-1?"html":c.type),c.index=n.group.length,"auto"==c.opts.smallBtn&&(c.opts.smallBtn=i.inArray(c.type,["html","inline","ajax"])>-1),"auto"===c.opts.toolbar&&(c.opts.toolbar=!c.opts.smallBtn),c.$thumb=c.opts.$thumb||null,c.opts.$trigger&&c.index===n.opts.index&&(c.$thumb=c.opts.$trigger.find("img:first"),c.$thumb.length&&(c.opts.$orig=c.opts.$trigger)),c.$thumb&&c.$thumb.length||!c.opts.$orig||(c.$thumb=c.opts.$orig.find("img:first")),c.$thumb&&!c.$thumb.length&&(c.$thumb=null),c.thumb=c.opts.thumb||(c.$thumb?c.$thumb[0].src:null),"function"===i.type(c.opts.caption)&&(c.opts.caption=c.opts.caption.apply(e,[n,c])),"function"===i.type(n.opts.caption)&&(c.opts.caption=n.opts.caption.apply(e,[n,c])),c.opts.caption instanceof i||(c.opts.caption=void 0===c.opts.caption?"":c.opts.caption+""),"ajax"===c.type&&(l=o.split(/\s+/,2)).length>1&&(c.src=l.shift(),c.opts.filter=l.shift()),c.opts.modal&&(c.opts=i.extend(!0,c.opts,{trapFocus:!0,infobar:0,toolbar:0,smallBtn:0,keyboard:0,slideShow:0,fullScreen:0,thumbs:0,touch:0,clickContent:!1,clickSlide:!1,clickOutside:!1,dblclickContent:!1,dblclickSlide:!1,dblclickOutside:!1})),n.group.push(c)})),Object.keys(n.slides).length&&(n.updateControls(),(e=n.Thumbs)&&e.isActive&&(e.create(),e.focus()))},addEvents:function(){var e=this;e.removeEvents(),e.$refs.container.on("click.fb-close","[data-fancybox-close]",(function(t){t.stopPropagation(),t.preventDefault(),e.close(t)})).on("touchstart.fb-prev click.fb-prev","[data-fancybox-prev]",(function(t){t.stopPropagation(),t.preventDefault(),e.previous()})).on("touchstart.fb-next click.fb-next","[data-fancybox-next]",(function(t){t.stopPropagation(),t.preventDefault(),e.next()})).on("click.fb","[data-fancybox-zoom]",(function(t){e[e.isScaledDown()?"scaleToActual":"scaleToFit"]()})),s.on("orientationchange.fb resize.fb",(function(t){t&&t.originalEvent&&"resize"===t.originalEvent.type?(e.requestId&&u(e.requestId),e.requestId=c((function(){e.update(t)}))):(e.current&&"iframe"===e.current.type&&e.$refs.stage.hide(),setTimeout((function(){e.$refs.stage.show(),e.update(t)}),i.fancybox.isMobile?600:250))})),o.on("keydown.fb",(function(t){var n=(i.fancybox?i.fancybox.getInstance():null).current,r=t.keyCode||t.which;if(9!=r)return!n.opts.keyboard||t.ctrlKey||t.altKey||t.shiftKey||i(t.target).is("input,textarea,video,audio,select")?void 0:8===r||27===r?(t.preventDefault(),void e.close(t)):37===r||38===r?(t.preventDefault(),void e.previous()):39===r||40===r?(t.preventDefault(),void e.next()):void e.trigger("afterKeydown",t,r);n.opts.trapFocus&&e.focus(t)})),e.group[e.currIndex].opts.idleTime&&(e.idleSecondsCounter=0,o.on("mousemove.fb-idle mouseleave.fb-idle mousedown.fb-idle touchstart.fb-idle touchmove.fb-idle scroll.fb-idle keydown.fb-idle",(function(t){e.idleSecondsCounter=0,e.isIdle&&e.showControls(),e.isIdle=!1})),e.idleInterval=t.setInterval((function(){++e.idleSecondsCounter>=e.group[e.currIndex].opts.idleTime&&!e.isDragging&&(e.isIdle=!0,e.idleSecondsCounter=0,e.hideControls())}),1e3))},removeEvents:function(){var e=this;s.off("orientationchange.fb resize.fb"),o.off("keydown.fb .fb-idle"),this.$refs.container.off(".fb-close .fb-prev .fb-next"),e.idleInterval&&(t.clearInterval(e.idleInterval),e.idleInterval=null)},previous:function(t){return this.jumpTo(this.currPos-1,t)},next:function(t){return this.jumpTo(this.currPos+1,t)},jumpTo:function(t,e){var n,r,a,s,o,l,c,u,d,f=this,p=f.group.length;if(!(f.isDragging||f.isClosing||f.isAnimating&&f.firstRun)){if(t=parseInt(t,10),!(a=f.current?f.current.opts.loop:f.opts.loop)&&(t<0||t>=p))return!1;if(n=f.firstRun=!Object.keys(f.slides).length,o=f.current,f.prevIndex=f.currIndex,f.prevPos=f.currPos,s=f.createSlide(t),p>1&&((a||s.index<p-1)&&f.createSlide(t+1),(a||s.index>0)&&f.createSlide(t-1)),f.current=s,f.currIndex=s.index,f.currPos=s.pos,f.trigger("beforeShow",n),f.updateControls(),s.forcedDuration=void 0,i.isNumeric(e)?s.forcedDuration=e:e=s.opts[n?"animationDuration":"transitionDuration"],e=parseInt(e,10),r=f.isMoved(s),s.$slide.addClass("fancybox-slide--current"),n)return s.opts.animationEffect&&e&&f.$refs.container.css("transition-duration",e+"ms"),f.$refs.container.addClass("fancybox-is-open").trigger("focus"),f.loadSlide(s),void f.preload("image");l=i.fancybox.getTranslate(o.$slide),c=i.fancybox.getTranslate(f.$refs.stage),i.each(f.slides,(function(t,e){i.fancybox.stop(e.$slide,!0)})),o.pos!==s.pos&&(o.isComplete=!1),o.$slide.removeClass("fancybox-slide--complete fancybox-slide--current"),r?(d=l.left-(o.pos*l.width+o.pos*o.opts.gutter),i.each(f.slides,(function(t,n){n.$slide.removeClass("fancybox-animated").removeClass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")})),i.fancybox.setTranslate(n.$slide,{top:0,left:n.pos*l.width+n.pos*n.opts.gutter-c.left+d}),n.pos!==s.pos&&n.$slide.addClass("fancybox-slide--"+(n.pos>s.pos?"next":"previous")),h(n.$slide),i.fancybox.animate(n.$slide,{top:0,left:(n.pos-s.pos)*l.width+(n.pos-s.pos)*n.opts.gutter},e,(function(){n.$slide.css({transform:"",opacity:""}).removeClass("fancybox-slide--next fancybox-slide--previous"),n.pos===f.currPos&&f.complete()}
2))}))):e&&s.opts.transitionEffect&&(u="fancybox-animated fancybox-fx-"+s.opts.transitionEffect,o.$slide.addClass("fancybox-slide--"+(o.pos>s.pos?"next":"previous")),i.fancybox.animate(o.$slide,u,e,(function(){o.$slide.removeClass(u).removeClass("fancybox-slide--next fancybox-slide--previous")}),!1)),s.isLoaded?f.revealContent(s):f.loadSlide(s),f.preload("image")}},createSlide:function(t){var e,n,r=this;return n=(n=t%r.group.length)<0?r.group.length+n:n,!r.slides[t]&&r.group[n]&&(e=i('<div class="fancybox-slide"></div>').appendTo(r.$refs.stage),r.slides[t]=i.extend(!0,{},r.group[n],{pos:t,$slide:e,isLoaded:!1}),r.updateSlide(r.slides[t])),r.slides[t]},scaleToActual:function(t,e,n){var r,a,s,o,l,c=this,u=c.current,d=u.$content,h=i.fancybox.getTranslate(u.$slide).width,f=i.fancybox.getTranslate(u.$slide).height,p=u.width,g=u.height;c.isAnimating||c.isMoved()||!d||"image"!=u.type||!u.isLoaded||u.hasError||(c.isAnimating=!0,i.fancybox.stop(d),t=void 0===t?.5*h:t,e=void 0===e?.5*f:e,(r=i.fancybox.getTranslate(d)).top-=i.fancybox.getTranslate(u.$slide).top,r.left-=i.fancybox.getTranslate(u.$slide).left,o=p/r.width,l=g/r.height,a=.5*h-.5*p,s=.5*f-.5*g,p>h&&((a=r.left*o-(t*o-t))>0&&(a=0),a<h-p&&(a=h-p)),g>f&&((s=r.top*l-(e*l-e))>0&&(s=0),s<f-g&&(s=f-g)),c.updateCursor(p,g),i.fancybox.animate(d,{top:s,left:a,scaleX:o,scaleY:l},n||366,(function(){c.isAnimating=!1})),c.SlideShow&&c.SlideShow.isActive&&c.SlideShow.stop())},scaleToFit:function(t){var e,n=this,r=n.current,a=r.$content;n.isAnimating||n.isMoved()||!a||"image"!=r.type||!r.isLoaded||r.hasError||(n.isAnimating=!0,i.fancybox.stop(a),e=n.getFitPos(r),n.updateCursor(e.width,e.height),i.fancybox.animate(a,{top:e.top,left:e.left,scaleX:e.width/a.width(),scaleY:e.height/a.height()},t||366,(function(){n.isAnimating=!1})))},getFitPos:function(t){var e,n,r,a,s=t.$content,o=t.$slide,l=t.width||t.opts.width,c=t.height||t.opts.height,u={};return!!(t.isLoaded&&s&&s.length)&&(e=i.fancybox.getTranslate(this.$refs.stage).width,n=i.fancybox.getTranslate(this.$refs.stage).height,e-=parseFloat(o.css("paddingLeft"))+parseFloat(o.css("paddingRight"))+parseFloat(s.css("marginLeft"))+parseFloat(s.css("marginRight")),n-=parseFloat(o.css("paddingTop"))+parseFloat(o.css("paddingBottom"))+parseFloat(s.css("marginTop"))+parseFloat(s.css("marginBottom")),l&&c||(l=e,c=n),(l*=r=Math.min(1,e/l,n/c))>e-.5&&(l=e),(c*=r)>n-.5&&(c=n),"image"===t.type?(u.top=Math.floor(.5*(n-c))+parseFloat(o.css("paddingTop")),u.left=Math.floor(.5*(e-l))+parseFloat(o.css("paddingLeft"))):"video"===t.contentType&&(c>l/(a=t.opts.width&&t.opts.height?l/c:t.opts.ratio||16/9)?c=l/a:l>c*a&&(l=c*a)),u.width=l,u.height=c,u)},update:function(t){var e=this;i.each(e.slides,(function(i,n){e.updateSlide(n,t)}))},updateSlide:function(t,e){var n=this,r=t&&t.$content,a=t.width||t.opts.width,s=t.height||t.opts.height,o=t.$slide;n.adjustCaption(t),r&&(a||s||"video"===t.contentType)&&!t.hasError&&(i.fancybox.stop(r),i.fancybox.setTranslate(r,n.getFitPos(t)),t.pos===n.currPos&&(n.isAnimating=!1,n.updateCursor())),n.adjustLayout(t),o.length&&(o.trigger("refresh"),t.pos===n.currPos&&n.$refs.toolbar.add(n.$refs.navigation.find(".fancybox-button--arrow_right")).toggleClass("compensate-for-scrollbar",o.get(0).scrollHeight>o.get(0).clientHeight)),n.trigger("onUpdate",t,e)},centerSlide:function(t){var e=this,n=e.current,r=n.$slide;!e.isClosing&&n&&(r.siblings().css({transform:"",opacity:""}),r.parent().children().removeClass("fancybox-slide--previous fancybox-slide--next"),i.fancybox.animate(r,{top:0,left:0,opacity:1},void 0===t?0:t,(function(){r.css({transform:"",opacity:""}),n.isComplete||e.complete()}),!1))},isMoved:function(t){var e,n,r=t||this.current;return!!r&&(n=i.fancybox.getTranslate(this.$refs.stage),e=i.fancybox.getTranslate(r.$slide),!r.$slide.hasClass("fancybox-animated")&&(Math.abs(e.top-n.top)>.5||Math.abs(e.left-n.left)>.5))},updateCursor:function(t,e){var n,r,a=this,s=a.current,o=a.$refs.container;s&&!a.isClosing&&a.Guestures&&(o.removeClass("fancybox-is-zoomable fancybox-can-zoomIn fancybox-can-zoomOut fancybox-can-swipe fancybox-can-pan"),r=!!(n=a.canPan(t,e))||a.isZoomable(),o.toggleClass("fancybox-is-zoomable",r),i("[data-fancybox-zoom]").prop("disabled",!r),n?o.addClass("fancybox-can-pan"):r&&("zoom"===s.opts.clickContent||i.isFunction(s.opts.clickContent)&&"zoom"==s.opts.clickContent(s))?o.addClass("fancybox-can-zoomIn"):s.opts.touch&&(s.opts.touch.vertical||a.group.length>1)&&"video"!==s.contentType&&o.addClass("fancybox-can-swipe"))},isZoomable:function(){var t,e=this,i=e.current;if(i&&!e.isClosing&&"image"===i.type&&!i.hasError){if(!i.isLoaded)return!0;
2if((t=e.getFitPos(i))&&(i.width>t.width||i.height>t.height))return!0}return!1},isScaledDown:function(t,e){var n=!1,r=this.current,a=r.$content;return void 0!==t&&void 0!==e?n=t<r.width&&e<r.height:a&&(n=(n=i.fancybox.getTranslate(a)).width<r.width&&n.height<r.height),n},canPan:function(t,e){var n=this.current,r=null,a=!1;return"image"===n.type&&(n.isComplete||t&&e)&&!n.hasError&&(a=this.getFitPos(n),void 0!==t&&void 0!==e?r={width:t,height:e}:n.isComplete&&(r=i.fancybox.getTranslate(n.$content)),r&&a&&(a=Math.abs(r.width-a.width)>1.5||Math.abs(r.height-a.height)>1.5)),a},loadSlide:function(t){var e,n,r,a=this;if(!t.isLoading&&!t.isLoaded){if(t.isLoading=!0,!1===a.trigger("beforeLoad",t))return t.isLoading=!1,!1;switch(e=t.type,(n=t.$slide).off("refresh").trigger("onReset").addClass(t.opts.slideClass),e){case"image":a.setImage(t);break;case"iframe":a.setIframe(t);break;case"html":a.setContent(t,t.src||t.content);break;case"video":a.setContent(t,t.opts.video.tpl.replace(/\{\{src\}\}/gi,t.src).replace("{{format}}",t.opts.videoFormat||t.opts.video.format||"").replace("{{poster}}",t.thumb||""));break;case"inline":i(t.src).length?a.setContent(t,i(t.src)):a.setError(t);break;case"ajax":a.showLoading(t),r=i.ajax(i.extend({},t.opts.ajax.settings,{url:t.src,success:function(e,i){"success"===i&&a.setContent(t,e)},error:function(e,i){e&&"abort"!==i&&a.setError(t)}})),n.one("onReset",(function(){r.abort()}));break;default:a.setError(t)}return!0}},setImage:function(t){var n,r=this;setTimeout((function(){var e=t.$image;r.isClosing||!t.isLoading||e&&e.length&&e[0].complete||t.hasError||r.showLoading(t)}),50),r.checkSrcset(t),t.$content=i('<div class="fancybox-content"></div>').addClass("fancybox-is-hidden").appendTo(t.$slide.addClass("fancybox-slide--image")),!1!==t.opts.preload&&t.opts.width&&t.opts.height&&t.thumb&&(t.width=t.opts.width,t.height=t.opts.height,(n=e.createElement("img")).onerror=function(){i(this).remove(),t.$ghost=null},n.onload=function(){r.afterLoad(t)},t.$ghost=i(n).addClass("fancybox-image").appendTo(t.$content).attr("src",t.thumb)),r.setBigImage(t)},checkSrcset:function(e){var i,n,r,a,s=e.opts.srcset||e.opts.image.srcset;if(s){a=t.innerWidth*(r=t.devicePixelRatio||1),(n=s.split(",").map((function(t){var e={};return t.trim().split(/\s+/).forEach((function(t,i){var n=parseInt(t.substring(0,t.length-1),10);if(0===i)return e.url=t;n&&(e.value=n,e.postfix=t[t.length-1])})),e}))).sort((function(t,e){return t.value-e.value}));for(var o=0;o<n.length;o++){var l=n[o];if("w"===l.postfix&&l.value>=a||"x"===l.postfix&&l.value>=r){i=l;break}}!i&&n.length&&(i=n[n.length-1]),i&&(e.src=i.url,e.width&&e.height&&"w"==i.postfix&&(e.height=e.width/e.height*i.value,e.width=i.value),e.opts.srcset=s)}},setBigImage:function(t){var n=this,r=e.createElement("img"),a=i(r);t.$image=a.one("error",(function(){n.setError(t)})).one("load",(function(){var e;t.$ghost||(n.resolveImageSlideSize(t,this.naturalWidth,this.naturalHeight),n.afterLoad(t)),n.isClosing||(t.opts.srcset&&((e=t.opts.sizes)&&"auto"!==e||(e=(t.width/t.height>1&&s.width()/s.height()>1?"100":Math.round(t.width/t.height*100))+"vw"),a.attr("sizes",e).attr("srcset",t.opts.srcset)),t.$ghost&&setTimeout((function(){t.$ghost&&!n.isClosing&&t.$ghost.hide()}),Math.min(300,Math.max(1e3,t.height/1600))),n.hideLoading(t))})).addClass("fancybox-image").attr("src",t.src).appendTo(t.$content),(r.complete||"complete"==r.readyState)&&a.naturalWidth&&a.naturalHeight?a.trigger("load"):r.error&&a.trigger("error")},resolveImageSlideSize:function(t,e,i){var n=parseInt(t.opts.width,10),r=parseInt(t.opts.height,10);t.width=e,t.height=i,n>0&&(t.width=n,t.height=Math.floor(n*i/e)),r>0&&(t.width=Math.floor(r*e/i),t.height=r)},setIframe:function(t){var e,n=this,r=t.opts.iframe,a=t.$slide;t.$content=i('<div class="fancybox-content'+(r.preload?" fancybox-is-hidden":"")+'"></div>').css(r.css).appendTo(a),a.addClass("fancybox-slide--"+t.contentType),t.$iframe=e=i(r.tpl.replace(/\{rnd\}/g,(new Date).getTime())).attr(r.attr).appendTo(t.$content),r.preload?(n.showLoading(t),e.on("load.fb error.fb",(function(e){this.isReady=1,t.$slide.trigger("refresh"),n.afterLoad(t)})),a.on("refresh.fb",(function(){var i,n=t.$content,s=r.css.width,o=r.css.height;if(1===e[0].isReady){try{i=e.contents().find("body")}catch(t){}i&&i.length&&i.children().length&&(a.css("overflow","visible"),n.css({width:"100%","max-width":"100%",height:"9999px"}),void 0===s&&(s=Math.ceil(Math.max(i[0].clientWidth,i.outerWidth(!0)))),n.css("width",s||"").css("max-width",""),void 0===o&&(o=Math.ceil(Math.max(i[0].clientHeight,i.outerHeight(!0)))),n.css("height",o||""),a.css("overflow","auto")),n.removeClass("fancybox-is-hidden")}}))):n.afterLoad(t),e.attr("src",t.src),a.one("onReset",(function(){try{i(this).find("iframe").hide().unbind().attr("src","//about:blank")}catch(t){}i(this).off("refresh.fb").empty(),t.isLoaded=!1,t.isRevealed=!1}))},setContent:function(t,e){var n=this;n.isClosing||(n.hideLoading(t),t.$content&&i.fancybox.stop(t.$content),t.$slide.empty(),function(t){return t&&t.hasOwnProperty&&t instanceof i}(e)&&e.parent().length?((e.hasClass("fancybox-content")||e.parent().hasClass("fancybox-content"))&&e.parents(".fancybox-slide").trigger("onReset"),t.$placeholder=i("<div>").hide().insertAfter(e),e.css("display","inline-block")):t.hasError||("string"===i.type(e)&&(e=i("<div>").append(i.trim(e)).contents()),t.opts.filter&&(e=i("<div>").html(e).find(t.opts.filter))),t.$slide.one("onReset",(function(){i(this).find("video,audio").trigger("pause"),t.$placeholder&&(t.$placeholder.after(e.removeClass("fancybox-content").hide()).remove(),t.$placeholder=null),t.$smallBtn&&(t.$smallBtn.remove(),t.$smallBtn=null),t.hasError||(i(this).empty(),t.isLoaded=!1,t.isRevealed=!1)})),i(e).appendTo(t.$slide),i(e).is("video,audio")&&(i(e).addClass("fancybox-video"),i(e).wrap("<div></div>"),t.contentType="video",t.opts.width=t.opts.width||i(e).attr("width"),t.opts.height=t.opts.height||i(e).attr("height")),t.$content=t.$slide.children().filter("div,form,main,video,audio,article,.fancybox-content").first(),t.$content.siblings().hide(),t.$content.length||(t.$content=t.$slide.wrapInner("<div></div>").children().first()),t.$content.addClass("fancybox-content"),t.$slide.addClass("fancybox-slide--"+t.contentType),n.afterLoad(t))},setError:function(t){t.hasError=!0,t.$slide.trigger("onReset").removeClass("fancybox-slide--"+t.contentType).addClass("fancybox-slide--error"),t.contentType="html",this.setContent(t,this.translate(t,t.opts.errorTpl)),t.pos===this.currPos&&(this.isAnimating=!1)},showLoading:function(t){var e=this;(t=t||e.current)&&!t.$spinner&&(t.$spinner=i(e.translate(e,e.opts.spinnerTpl)).appendTo(t.$slide).hide().fadeIn("fast"))},hideLoading:function(t){(t=t||this.current)&&t.$spinner&&(t.$spinner.stop().remove(),delete t.$spinner)},afterLoad:function(t){var e=this;e.isClosing||(t.isLoading=!1,t.isLoaded=!0,e.trigger("afterLoad",t),e.hideLoading(t),!t.opts.smallBtn||t.$smallBtn&&t.$smallBtn.length||(t.$smallBtn=i(e.translate(t,t.opts.btnTpl.smallBtn)).appendTo(t.$content)),t.opts.protect&&t.$content&&!t.hasError&&(t.$content.on("contextmenu.fb",(function(t){return 2==t.button&&t.preventDefault(),!0})),"image"===t.type&&i('<div class="fancybox-spaceball"></div>').appendTo(t.$content)),e.adjustCaption(t),e.adjustLayout(t),t.pos===e.currPos&&e.updateCursor(
2),e.revealContent(t))},adjustCaption:function(t){var e,i=this,n=t||i.current,r=n.opts.caption,a=n.opts.preventCaptionOverlap,s=i.$refs.caption,o=!1;s.toggleClass("fancybox-caption--separate",a),a&&r&&r.length&&(n.pos!==i.currPos?((e=s.clone().appendTo(s.parent())).children().eq(0).empty().html(r),o=e.outerHeight(!0),e.empty().remove()):i.$caption&&(o=i.$caption.outerHeight(!0)),n.$slide.css("padding-bottom",o||""))},adjustLayout:function(t){var e,i,n,r,a=t||this.current;a.isLoaded&&!0!==a.opts.disableLayoutFix&&(a.$content.css("margin-bottom",""),a.$content.outerHeight()>a.$slide.height()+.5&&(n=a.$slide[0].style["padding-bottom"],r=a.$slide.css("padding-bottom"),parseFloat(r)>0&&(e=a.$slide[0].scrollHeight,a.$slide.css("padding-bottom",0),Math.abs(e-a.$slide[0].scrollHeight)<1&&(i=r),a.$slide.css("padding-bottom",n))),a.$content.css("margin-bottom",i))},revealContent:function(t){var e,n,r,a,s=this,o=t.$slide,l=!1,c=!1,u=s.isMoved(t),d=t.isRevealed;return t.isRevealed=!0,e=t.opts[s.firstRun?"animationEffect":"transitionEffect"],r=t.opts[s.firstRun?"animationDuration":"transitionDuration"],r=parseInt(void 0===t.forcedDuration?r:t.forcedDuration,10),!u&&t.pos===s.currPos&&r||(e=!1),"zoom"===e&&(t.pos===s.currPos&&r&&"image"===t.type&&!t.hasError&&(c=s.getThumbPos(t))?l=s.getFitPos(t):e="fade"),"zoom"===e?(s.isAnimating=!0,l.scaleX=l.width/c.width,l.scaleY=l.height/c.height,"auto"==(a=t.opts.zoomOpacity)&&(a=Math.abs(t.width/t.height-c.width/c.height)>.1),a&&(c.opacity=.1,l.opacity=1),i.fancybox.setTranslate(t.$content.removeClass("fancybox-is-hidden"),c),h(t.$content),void i.fancybox.animate(t.$content,l,r,(function(){s.isAnimating=!1,s.complete()}))):(s.updateSlide(t),e?(i.fancybox.stop(o),o.addClass(n="fancybox-slide--"+(t.pos>=s.prevPos?"next":"previous")+" fancybox-animated fancybox-fx-"+e).removeClass("fancybox-slide--current"),t.$content.removeClass("fancybox-is-hidden"),h(o),"image"!==t.type&&t.$content.hide().show(0),void i.fancybox.animate(o,"fancybox-slide--current",r,(function(){o.removeClass(n).css({transform:"",opacity:""}),t.pos===s.currPos&&s.complete()}),!0)):(t.$content.removeClass("fancybox-is-hidden"),d||!u||"image"!==t.type||t.hasError||t.$content.hide().fadeIn("fast"),void(t.pos===s.currPos&&s.complete())))},getThumbPos:function(t){var e,n,r,a,s,o=t.$thumb;return!(!o||!p(o[0]))&&(e=i.fancybox.getTranslate(o),n=parseFloat(o.css("border-top-width")||0),r=parseFloat(o.css("border-right-width")||0),a=parseFloat(o.css("border-bottom-width")||0),s=parseFloat(o.css("border-left-width")||0),e.width>0&&e.height>0&&{top:e.top+n,left:e.left+s,width:e.width-r-s,height:e.height-n-a,scaleX:1,scaleY:1})},complete:function(){var t,e=this,n=e.current,r={};!e.isMoved()&&n.isLoaded&&(n.isComplete||(n.isComplete=!0,n.$slide.siblings().trigger("onReset"),e.preload("inline"),h(n.$slide),n.$slide.addClass("fancybox-slide--complete"),i.each(e.slides,(function(t,n){n.pos>=e.currPos-1&&n.pos<=e.currPos+1?r[n.pos]=n:n&&(i.fancybox.stop(n.$slide),n.$slide.off().remove())})),e.slides=r),e.isAnimating=!1,e.updateCursor(),e.trigger("afterShow"),n.opts.video.autoStart&&n.$slide.find("video,audio").filter(":visible:first").trigger("play").one("ended",(function(){Document.exitFullscreen?Document.exitFullscreen():this.webkitExitFullscreen&&this.webkitExitFullscreen(),e.next()})),n.opts.autoFocus&&"html"===n.contentType&&((t=n.$content.find("input[autofocus]:enabled:visible:first")).length?t.trigger("focus"):e.focus(null,!0)),n.$slide.scrollTop(0).scrollLeft(0))},preload:function(t){var e,i,n=this;n.group.length<2||(i=n.slides[n.currPos+1],(e=n.slides[n.currPos-1])&&e.type===t&&n.loadSlide(e),i&&i.type===t&&n.loadSlide(i))},focus:function(t,n){var r,a,s=this,o=["a[href]","area[href]",'input:not([disabled]):not([type="hidden"]):not([aria-hidden])',"select:not([disabled]):not([aria-hidden])","textarea:not([disabled]):not([aria-hidden])","button:not([disabled]):not([aria-hidden])","iframe","object","embed","video","audio","[contenteditable]",'[tabindex]:not([tabindex^="-"])'].join(",");s.isClosing||((r=(r=!t&&s.current&&s.current.isComplete?s.current.$slide.find("*:visible"+(n?":not(.fancybox-close-small)":"")):s.$refs.container.find("*:visible")).filter(o).filter((function(){return"hidden"!==i(this).css("visibility")&&!i(this).hasClass("disabled")}))).length?(a=r.index(e.activeElement),t&&t.shiftKey?(a<0||0==a)&&(t.preventDefault(),r.eq(r.length-1).trigger("focus")):(a<0||a==r.length-1)&&(t&&t.preventDefault(),r.eq(0).trigger("focus"))):s.$refs.container.trigger("focus"))},activate:function(){var t=this;i(".fancybox-container").each((function(){var e=i(this).data("FancyBox");
vendor: 9,334 bytes, line 2
2e&&e.id!==t.id&&!e.isClosing&&(e.trigger("onDeactivate"),e.removeEvents(),e.isVisible=!1)})),t.isVisible=!0,(t.current||t.isIdle)&&(t.update(),t.updateControls()),t.trigger("onActivate"),t.addEvents()},close:function(t,e){var n,r,a,s,o,l,u,d=this,f=d.current,p=function(){d.cleanUp(t)};return!(d.isClosing||(d.isClosing=!0,!1===d.trigger("beforeClose",t)?(d.isClosing=!1,c((function(){d.update()})),1):(d.removeEvents(),a=f.$content,n=f.opts.animationEffect,r=i.isNumeric(e)?e:n?f.opts.animationDuration:0,f.$slide.removeClass("fancybox-slide--complete fancybox-slide--next fancybox-slide--previous fancybox-animated"),!0!==t?i.fancybox.stop(f.$slide):n=!1,f.$slide.siblings().trigger("onReset").remove(),r&&d.$refs.container.removeClass("fancybox-is-open").addClass("fancybox-is-closing").css("transition-duration",r+"ms"),d.hideLoading(f),d.hideControls(!0),d.updateCursor(),"zoom"!==n||a&&r&&"image"===f.type&&!d.isMoved()&&!f.hasError&&(u=d.getThumbPos(f))||(n="fade"),"zoom"===n?(i.fancybox.stop(a),s=i.fancybox.getTranslate(a),l={top:s.top,left:s.left,scaleX:s.width/u.width,scaleY:s.height/u.height,width:u.width,height:u.height},o=f.opts.zoomOpacity,"auto"==o&&(o=Math.abs(f.width/f.height-u.width/u.height)>.1),o&&(u.opacity=0),i.fancybox.setTranslate(a,l),h(a),i.fancybox.animate(a,u,r,p),0):(n&&r?i.fancybox.animate(f.$slide.addClass("fancybox-slide--previous").removeClass("fancybox-slide--current"),"fancybox-animated fancybox-fx-"+n,r,p):!0===t?setTimeout(p,r):p(),0))))},cleanUp:function(e){var n,r,a,s=this,o=s.current.opts.$orig;s.current.$slide.trigger("onReset"),s.$refs.container.empty().remove(),s.trigger("afterClose",e),s.current.opts.backFocus&&(o&&o.length&&o.is(":visible")||(o=s.$trigger),o&&o.length&&(r=t.scrollX,a=t.scrollY,o.trigger("focus"),i("html, body").scrollTop(a).scrollLeft(r))),s.current=null,(n=i.fancybox.getInstance())?n.activate():(i("body").removeClass("fancybox-active compensate-for-scrollbar"),i("#fancybox-style-noscroll").remove())},trigger:function(t,e){var n,r=Array.prototype.slice.call(arguments,1),a=this,s=e&&e.opts?e:a.current;if(s?r.unshift(s):s=a,r.unshift(a),i.isFunction(s.opts[t])&&(n=s.opts[t].apply(s,r)),!1===n)return n;"afterClose"!==t&&a.$refs?a.$refs.container.trigger(t+".fb",r):o.trigger(t+".fb",r)},updateControls:function(){var t=this,n=t.current,r=n.index,a=t.$refs.container,s=t.$refs.caption,o=n.opts.caption;n.$slide.trigger("refresh"),o&&o.length?(t.$caption=s,s.children().eq(0).html(o)):t.$caption=null,t.hasHiddenControls||t.isIdle||t.showControls(),a.find("[data-fancybox-count]").html(t.group.length),a.find("[data-fancybox-index]").html(r+1),a.find("[data-fancybox-prev]").prop("disabled",!n.opts.loop&&r<=0),a.find("[data-fancybox-next]").prop("disabled",!n.opts.loop&&r>=t.group.length-1),"image"===n.type?a.find("[data-fancybox-zoom]").show().end().find("[data-fancybox-download]").attr("href",n.opts.image.src||n.src).show():n.opts.toolbar&&a.find("[data-fancybox-download],[data-fancybox-zoom]").hide(),i(e.activeElement).is(":hidden,[disabled]")&&t.$refs.container.trigger("focus")},hideControls:function(t){var e=["infobar","toolbar","nav"];!t&&this.current.opts.preventCaptionOverlap||e.push("caption"),this.$refs.container.removeClass(e.map((function(t){return"fancybox-show-"+t})).join(" ")),this.hasHiddenControls=!0},showControls:function(){var t=this,e=t.current?t.current.opts:t.opts,i=t.$refs.container;t.hasHiddenControls=!1,t.idleSecondsCounter=0,i.toggleClass("fancybox-show-toolbar",!(!e.toolbar||!e.buttons)).toggleClass("fancybox-show-infobar",!!(e.infobar&&t.group.length>1)).toggleClass("fancybox-show-caption",!!t.$caption).toggleClass("fancybox-show-nav",!!(e.arrows&&t.group.length>1)).toggleClass("fancybox-is-modal",!!e.modal)},toggleControls:function(){this.hasHiddenControls?this.showControls():this.hideControls()}}),i.fancybox={version:"3.5.7",defaults:a,getInstance:function(t){var e=i('.fancybox-container:not(".fancybox-is-closing"):last').data("FancyBox"),n=Array.prototype.slice.call(arguments,1);return e instanceof g&&("string"===i.type(t)?e[t].apply(e,n):"function"===i.type(t)&&t.apply(e,n),e)},open:function(t,e,i){return new g(t,e,i)},close:function(t){var e=this.getInstance();e&&(e.close(),!0===t&&this.close(t))},destroy:function(){this.close(!0),o.add("body").off("click.fb-start","**")},isMobile:/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent),use3d:function(){var i=e.createElement("div");return t.getComputedStyle&&t.getComputedStyle(i)&&t.getComputedStyle(i).getPropertyValue("transform")&&!(e.documentMode&&e.documentMode<11)}(),getTranslate:function(t){var e;return!(!t||!t.length)&&{top:(e=t[0].getBoundingClientRect()).top||0,left:e.left||0,width:e.width,height:e.height,opacity:parseFloat(t.css("opacity"))}},setTranslate:function(t,e){var i="",n={};if(t&&e)return void 0===e.left&&void 0===e.top||(i=(void 0===e.left?t.position().left:e.left)+"px, "+(void 0===e.top?t.position().top:e.top)+"px",i=this.use3d?"translate3d("+i+", 0px)":"translate("+i+")"),void 0!==e.scaleX&&void 0!==e.scaleY?i+=" scale("+e.scaleX+", "+e.scaleY+")":void 0!==e.scaleX&&(i+=" scaleX("+e.scaleX+")"),i.length&&(n.transform=i),void 0!==e.opacity&&(n.opacity=e.opacity),void 0!==e.width&&(n.width=e.width),void 0!==e.height&&(n.height=e.height),t.css(n)},animate:function(t,e,n,r,a){var s,o=this;i.isFunction(n)&&(r=n,n=null),o.stop(t),s=o.getTranslate(t),t.on(d,(function(l){(!l||!l.originalEvent||t.is(l.originalEvent.target)&&"z-index"!=l.originalEvent.propertyName)&&(o.stop(t),i.isNumeric(n)&&t.css("transition-duration",""),i.isPlainObject(e)?void 0!==e.scaleX&&void 0!==e.scaleY&&o.setTranslate(t,{top:e.top,left:e.left,width:s.width*e.scaleX,height:s.height*e.scaleY,scaleX:1,scaleY:1}):!0!==a&&t.removeClass(e),i.isFunction(r)&&r(l))})),i.isNumeric(n)&&t.css("transition-duration",n+"ms"),i.isPlainObject(e)?(void 0!==e.scaleX&&void 0!==e.scaleY&&(delete e.width,delete e.height,t.parent().hasClass("fancybox-slide--image")&&t.parent().addClass("fancybox-is-scaling")),i.fancybox.setTranslate(t,e)):t.addClass(e),t.data("timer",setTimeout((function(){t.trigger(d)}),n+33))},stop:function(t,e){t&&t.length&&(clearTimeout(t.data("timer")),e&&t.trigger(d),t.off(d).css("transition-duration",""),t.parent().removeClass("fancybox-is-scaling"))}},i.fn.fancybox=function(t){var e;return(e=(t=t||{}).selector||!1)?i("body").off("click.fb-start",e).on("click.fb-start",e,{options:t},r):this.off("click.fb-start").on("click.fb-start",{items:this,options:t},r),this},o.on("click.fb-start","[data-fancybox]",r),o.on("click.fb-start","[data-fancybox-trigger]",(function(t){i('[data-fancybox="'+i(this).attr("data-fancybox-trigger")+'"]').eq(i(this).attr("data-fancybox-index")||0).trigger("click.fb-start",{$trigger:i(this)})})),function(){var t=null;o.on("mousedown mouseup focus blur",".fancybox-button",(function(e){switch(e.type){case"mousedown":t=i(this);break;case"mouseup":t=null;break;case"focusin":i(".fancybox-button").removeClass("fancybox-focus"),i(this).is(t)||i(this).is("[disabled]")||i(this).addClass("fancybox-focus");break;case"focusout":i(".fancybox-button").removeClass("fancybox-focus")}}))}()}}(window,document,jQuery),function(t){"use strict";var e={youtube:{matcher:/(youtube\.com|youtu\.be|youtube\-nocookie\.com)\/(watch\?(.*&)?v=|v\/|u\/|embed\/?)?(videoseries\?list=(.*)|[\w-]{11}|\?listType=(.*)&list=(.*))(.*)/i,params:{autoplay:1,autohide:1,fs:1,rel:0,hd:1,wmode:"transparent",enablejsapi:1,html5:1},paramPlace:8,type:"iframe",url:"https://www.youtube-nocookie.com/embed/$4",thumb:"https://img.youtube.com/vi/$4/hqdefault.jpg"},vimeo:{matcher:/^.+vimeo.com\/(.*\/)?([\d]+)(.*)?/,params:{autoplay:1,hd:1,show_title:1,show_byline:1,show_portrait:0,fullscreen:1},paramPlace:3,type:"iframe",url:"//player.vimeo.com/video/$2"},instagram:{matcher:/(instagr\.am|instagram\.com)\/p\/([a-zA-Z0-9_\-]+)\/?/i,type:"image",url:"//$1/p/$2/media/?size=l"},gmap_place:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(((maps\/(place\/(.*)\/)?\@(.*),(\d+.?\d+?)z))|(\?ll=))(.*)?/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/?ll="+(t[9]?t[9]+"&z="+Math.floor(t[10])+(t[12]?t[12].replace(/^\//,"&"):""):t[12]+"").replace(/\?/,"&")+"&output="+(t[12]&&t[12].indexOf("layer=c")>0?"svembed":"embed")}},gmap_search:{matcher:/(maps\.)?google\.([a-z]{2,3}(\.[a-z]{2})?)\/(maps\/search\/)(.*)/i,type:"iframe",url:function(t){return"//maps.google."+t[2]+"/maps?q="+t[5].replace("query=","q=").replace("api=1","")+"&output=embed"}}},i=function(e,i,n){if(e)return"object"===t.type(n=n||"")&&(n=t.param(n,!0)),t.each(i,(function(t,i){e=e.replace("$"+t,i||"")})),n.length&&(e+=(e.indexOf("?")>0?"&":"?")+n),e};t(document).on("objectNeedsType.fb",(function(n,r,a){var s,o,l,c,u,d,h,f=a.src||"",p=!1;s=t.extend(!0,{},e,a.opts.media),t.each(s,(function(e,n){if(l=f.match(n.matcher)){if(p=n.type,h=e,d={},n.paramPlace&&l[n.paramPlace]){"?"==(u=l[n.paramPlace])[0]&&(u=u.substring(1)),u=u.split("&");for(var r=0;r<u.length;++r){var s=u[r].split("=",2);2==s.length&&(d[s[0]]=decodeURIComponent(s[1].replace(/\+/g," ")))}}return c=t.extend(!0,{},n.params,a.opts[e],d),f="function"===t.type(n.url)?n.url.call(this,l,c,a):i(n.url,l,c),o="function"===t.type(n.thumb)?n.thumb.call(this,l,c,a):i(n.thumb,l),"youtube"===e?f=f.replace(/&t=((\d+)m)?(\d+)s/,(function(t,e,
2i,n){return"&start="+((i?60*parseInt(i,10):0)+parseInt(n,10))})):"vimeo"===e&&(f=f.replace("&%23","#")),!1}})),p?(a.opts.thumb||a.opts.$thumb&&a.opts.$thumb.length||(a.opts.thumb=o),"iframe"===p&&(a.opts=t.extend(!0,a.opts,{iframe:{preload:!1,attr:{scrolling:"no"}}})),t.extend(a,{type:p,src:f,origSrc:a.src,contentSource:h,contentType:"image"===p?"image":"gmap_place"==h||"gmap_search"==h?"map":"video"})):f&&(a.type=a.opts.defaultType)}));var n={youtube:{src:"https://www.youtube.com/iframe_api",class:"YT",loading:!1,loaded:!1},vimeo:{src:"https://player.vimeo.com/api/player.js",class:"Vimeo",loading:!1,loaded:!1},load:function(t){var e,i=this;this[t].loaded?setTimeout((function(){i.done(t)})):this[t].loading||(this[t].loading=!0,(e=document.createElement("script")).type="text/javascript",e.src=this[t].src,"youtube"===t?window.onYouTubeIframeAPIReady=function(){i[t].loaded=!0,i.done(t)}:e.onload=function(){i[t].loaded=!0,i.done(t)},document.body.appendChild(e))},done:function(e){var i,n;"youtube"===e&&delete window.onYouTubeIframeAPIReady,(i=t.fancybox.getInstance())&&(n=i.current.$content.find("iframe"),"youtube"===e&&void 0!==YT&&YT?new YT.Player(n.attr("id"),{events:{onStateChange:function(t){0==t.data&&i.next()}}}):"vimeo"===e&&void 0!==Vimeo&&Vimeo&&new Vimeo.Player(n).on("ended",(function(){i.next()})))}};t(document).on({"afterShow.fb":function(t,e,i){e.group.length>1&&("youtube"===i.contentSource||"vimeo"===i.contentSource)&&n.load(i.contentSource)}})}(jQuery),function(t,e,i){"use strict";var n=t.requestAnimationFrame||t.webkitRequestAnimationFrame||t.mozRequestAnimationFrame||t.oRequestAnimationFrame||function(e){return t.setTimeout(e,1e3/60)},r=t.cancelAnimationFrame||t.webkitCancelAnimationFrame||t.mozCancelAnimationFrame||t.oCancelAnimationFrame||function(e){t.clearTimeout(e)},a=function(e){var i=[];for(var n in e=(e=e.originalEvent||e||t.e).touches&&e.touches.length?e.touches:e.changedTouches&&e.changedTouches.length?e.changedTouches:[e])e[n].pageX?i.push({x:e[n].pageX,y:e[n].pageY}):e[n].clientX&&i.push({x:e[n].clientX,y:e[n].clientY});return i},s=function(t,e,i){return e&&t?"x"===i?t.x-e.x:"y"===i?t.y-e.y:Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2)):0},o=function(t){if(t.is('a,area,button,[role="button"],input,label,select,summary,textarea,video,audio,iframe')||i.isFunction(t.get(0).onclick)||t.data("selectable"))return!0;for(var e=0,n=t[0].attributes,r=n.length;e<r;e++)if("data-fancybox-"===n[e].nodeName.substr(0,14))return!0;return!1},l=function(e){var i=t.getComputedStyle(e)["overflow-y"],n=t.getComputedStyle(e)["overflow-x"];return("scroll"===i||"auto"===i)&&e.scrollHeight>e.clientHeight||("scroll"===n||"auto"===n)&&e.scrollWidth>e.clientWidth},c=function(t){for(var e=!1;!(e=l(t.get(0)))&&(t=t.parent()).length&&!t.hasClass("fancybox-stage")&&!t.is("body"););return e},u=function(t){var e=this;e.instance=t,e.$bg=t.$refs.bg,e.$stage=t.$refs.stage,e.$container=t.$refs.container,e.destroy(),e.$container.on("touchstart.fb.touch mousedown.fb.touch",i.proxy(e,"ontouchstart"))};u.prototype.destroy=function(){var t=this;t.$container.off(".fb.touch"),i(e).off(".fb.touch"),t.requestId&&(r(t.requestId),t.requestId=null),t.tapped&&(clearTimeout(t.tapped),t.tapped=null)},u.prototype.ontouchstart=function(n){var r=this,l=i(n.target),u=r.instance,d=u.current,h=d.$slide,f=d.$content,p="touchstart"==n.type;if(p&&r.$container.off("mousedown.fb.touch"),(!n.originalEvent||2!=n.originalEvent.button)&&h.length&&l.length&&!o(l)&&!o(l.parent())&&(l.is("img")||!(n.originalEvent.clientX>l[0].clientWidth+l.offset().left))){if(!d||u.isAnimating||d.$slide.hasClass("fancybox-animated"))return n.stopPropagation(),void n.preventDefault();r.realPoints=r.startPoints=a(n),r.startPoints.length&&(d.touch&&n.stopPropagation(),r.startEvent=n,r.canTap=!0,r.$target=l,r.$content=f,r.opts=d.opts.touch,r.isPanning=!1,r.isSwiping=!1,r.isZooming=!1,r.isScrolling=!1,r.canPan=u.canPan(),r.startTime=(new Date).getTime(),r.distanceX=r.distanceY=r.distance=0,r.canvasWidth=Math.round(h[0].clientWidth),r.canvasHeight=Math.round(h[0].clientHeight),r.contentLastPos=null,r.contentStartPos=i.fancybox.getTranslate(r.$content)||{top:0,left:0},r.sliderStartPos=i.fancybox.getTranslate(h),r.stagePos=i.fancybox.getTranslate(u.$refs.stage),r.sliderStartPos.top-=r.stagePos.top,r.sliderStartPos.left-=r.stagePos.left,r.contentStartPos.top-=r.stagePos.top,r.contentStartPos.left-=r.stagePos.left,i(e).off(".fb.touch").on(p?"touchend.fb.touch touchcancel.fb.touch":"mouseup.fb.touch mouseleave.fb.touch",i.proxy(r,"ontouchend")).on(p?"touchmove.fb.touch":"mousemove.fb.touch",i.proxy(r,"ontouchmove")),i.fancybox.isMobile&&e.addEventListener("scroll",r.onscroll,!0),((r.opts||r.canPan)&&(l.is(r.$stage)||r.$stage.find(l).length)||(l.is(".fancybox-image")&&n.preventDefault(),i.fancybox.isMobile&&l.parents(".fancybox-caption").length))&&(r.isScrollable=c(l)||c(l.parent()),i.fancybox.isMobile&&r.isScrollable||n.preventDefault(),(1===r.
vendor: 2,042 bytes, line 2
2startPoints.length||d.hasError)&&(r.canPan?(i.fancybox.stop(r.$content),r.isPanning=!0):r.isSwiping=!0,r.$container.addClass("fancybox-is-grabbing")),2===r.startPoints.length&&"image"===d.type&&(d.isLoaded||d.$ghost)&&(r.canTap=!1,r.isSwiping=!1,r.isPanning=!1,r.isZooming=!0,i.fancybox.stop(r.$content),r.centerPointStartX=.5*(r.startPoints[0].x+r.startPoints[1].x)-i(t).scrollLeft(),r.centerPointStartY=.5*(r.startPoints[0].y+r.startPoints[1].y)-i(t).scrollTop(),r.percentageOfImageAtPinchPointX=(r.centerPointStartX-r.contentStartPos.left)/r.contentStartPos.width,r.percentageOfImageAtPinchPointY=(r.centerPointStartY-r.contentStartPos.top)/r.contentStartPos.height,r.startDistanceBetweenFingers=s(r.startPoints[0],r.startPoints[1]))))}},u.prototype.onscroll=function(t){this.isScrolling=!0,e.removeEventListener("scroll",this.onscroll,!0)},u.prototype.ontouchmove=function(t){var e=this;return void 0!==t.originalEvent.buttons&&0===t.originalEvent.buttons?void e.ontouchend(t):e.isScrolling?void(e.canTap=!1):(e.newPoints=a(t),void((e.opts||e.canPan)&&e.newPoints.length&&e.newPoints.length&&(e.isSwiping&&!0===e.isSwiping||t.preventDefault(),e.distanceX=s(e.newPoints[0],e.startPoints[0],"x"),e.distanceY=s(e.newPoints[0],e.startPoints[0],"y"),e.distance=s(e.newPoints[0],e.startPoints[0]),e.distance>0&&(e.isSwiping?e.onSwipe(t):e.isPanning?e.onPan():e.isZooming&&e.onZoom()))))},u.prototype.onSwipe=function(e){var a,s=this,o=s.instance,l=s.isSwiping,c=s.sliderStartPos.left||0;if(!0!==l)"x"==l&&(s.distanceX>0&&(s.instance.group.length<2||0===s.instance.current.index&&!s.instance.current.opts.loop)?c+=Math.pow(s.distanceX,.8):s.distanceX<0&&(s.instance.group.length<2||s.instance.current.index===s.instance.group.length-1&&!s.instance.current.opts.loop)?c-=Math.pow(-s.distanceX,.8):c+=s.distanceX),s.sliderLastPos={top:"x"==l?0:s.sliderStartPos.top+s.distanceY,left:c},s.requestId&&(r(s.requestId),s.requestId=null),s.requestId=n((function(){s.sliderLastPos&&(i.each(s.instance.slides,(function(t,e){var n=e.pos-s.instance.currPos;
2i.fancybox.setTranslate(e.$slide,{top:s.sliderLastPos.top,left:s.sliderLastPos.left+n*s.canvasWidth+n*e.opts.gutter})})),s.$container.addClass("fancybox-is-sliding"))}));else if(Math.abs(s.distance)>10){if(s.canTap=!1,o.group.length<2&&s.opts.vertical?s.isSwiping="y":o.isDragging||!1===s.opts.vertical||"auto"===s.opts.vertical&&i(t).width()>800?s.isSwiping="x":(a=Math.abs(180*Math.atan2(s.distanceY,s.distanceX)/Math.PI),s.isSwiping=a>45&&a<135?"y":"x"),"y"===s.isSwiping&&i.fancybox.isMobile&&s.isScrollable)return void(s.isScrolling=!0);o.isDragging=s.isSwiping,s.startPoints=s.newPoints,i.each(o.slides,(function(t,e){var n,r;i.fancybox.stop(e.$slide),n=i.fancybox.getTranslate(e.$slide),r=i.fancybox.getTranslate(o.$refs.stage),e.$slide.css({transform:"",opacity:"","transition-duration":""}).removeClass("fancybox-animated").removeClass((function(t,e){return(e.match(/(^|\s)fancybox-fx-\S+/g)||[]).join(" ")})),e.pos===o.current.pos&&(s.sliderStartPos.top=n.top-r.top,s.sliderStartPos.left=n.left-r.left),i.fancybox.setTranslate(e.$slide,{top:n.top-r.top,left:n.left-r.left})})),o.SlideShow&&o.SlideShow.isActive&&o.SlideShow.stop()}},u.prototype.onPan=function(){var t=this;s(t.newPoints[0],t.realPoints[0])<(i.fancybox.isMobile?10:5)?t.startPoints=t.newPoints:(t.canTap=!1,t.contentLastPos=t.limitMovement(),t.requestId&&r(t.requestId),t.requestId=n((function(){i.fancybox.setTranslate(t.$content,t.contentLastPos)})))},u.prototype.limitMovement=function(){var t,e,i,n,r,a,s=this,o=s.canvasWidth,l=s.canvasHeight,c=s.distanceX,u=s.distanceY,d=s.contentStartPos,h=d.left,f=d.top,p=d.width,g=d.height;return r=p>o?h+c:h,a=f+u,t=Math.max(0,.5*o-.5*p),e=Math.max(0,.5*l-.5*g),i=Math.min(o-p,.5*o-.5*p),n=Math.min(l-g,.5*l-.5*g),c>0&&r>t&&(r=t-1+Math.pow(-t+h+c,.8)||0),c<0&&r<i&&(r=i+1-Math.pow(i-h-c,.8)||0),u>0&&a>e&&(a=e-1+Math.pow(-e+f+u,.8)||0),u<0&&a<n&&(a=n+1-Math.pow(n-f-u,.8)||0),{top:a,left:r}},u.prototype.limitPosition=function(t,e,i,n){var r=this.canvasWidth,a=this.canvasHeight;return t=i>r?(t=t>0?0:t)<r-i?r-i:t:Math.max(0,r/2-i/2),{top:e=n>a?(e=e>0?0:e)<a-n?a-n:e:Math.max(0,a/2-n/2),left:t}},u.prototype.onZoom=function(){var e=this,a=e.contentStartPos,o=a.width,l=a.height,c=a.left,u=a.top,d=s(e.newPoints[0],e.newPoints[1])/e.startDistanceBetweenFingers,h=Math.floor(o*d),f=Math.floor(l*d),p=(o-h)*e.percentageOfImageAtPinchPointX,g=(l-f)*e.percentageOfImageAtPinchPointY,m=(e.newPoints[0].x+e.newPoints[1].x)/2-i(t).scrollLeft(),v={top:u+(g+((e.newPoints[0].y+e.newPoints[1].y)/2-i(t).scrollTop()-e.centerPointStartY)),left:c+(p+(m-e.centerPointStartX)),scaleX:d,scaleY:d};e.canTap=!1,e.newWidth=h,e.newHeight=f,e.contentLastPos=v,e.requestId&&r(e.requestId),e.requestId=n((function(){i.fancybox.setTranslate(e.$content,e.contentLastPos)}))},u.prototype.ontouchend=function(t){var n=this,s=n.isSwiping,o=n.isPanning,l=n.isZooming,c=n.isScrolling;if(n.endPoints=a(t),n.dMs=Math.max((new Date).getTime()-n.startTime,1),n.$container.removeClass("fancybox-is-grabbing"),i(e).off(".fb.touch"),e.removeEventListener("scroll",n.onscroll,!0),n.requestId&&(r(n.requestId),n.requestId=null),n.isSwiping=!1,n.isPanning=!1,n.isZooming=!1,n.isScrolling=!1,n.instance.isDragging=!1,n.canTap)return n.onTap(t);n.speed=100,n.velocityX=n.distanceX/n.dMs*.5,n.velocityY=n.distanceY/n.dMs*.5,o?n.endPanning():l?n.endZooming():n.endSwiping(s,c)},u.prototype.endSwiping=function(t,e){var n=this,r=!1,a=n.instance.group.length,s=Math.abs(n.distanceX),o="x"==t&&a>1&&(n.dMs>130&&s>10||s>50);n.sliderLastPos=null,"y"==t&&!e&&Math.abs(n.distanceY)>50?(i.fancybox.animate(n.instance.current.$slide,{top:n.sliderStartPos.top+n.distanceY+150*n.velocityY,opacity:0},200),r=n.instance.close(!0,250)):o&&n.distanceX>0?r=n.instance.previous(300):o&&n.distanceX<0&&(r=n.instance.next(300)),!1!==r||"x"!=t&&"y"!=t||n.instance.centerSlide(200),n.$container.removeClass("fancybox-is-sliding")},u.prototype.endPanning=function(){var t,e,n,r=this;r.contentLastPos&&(!1===r.opts.momentum||r.dMs>350?(t=r.contentLastPos.left,e=r.contentLastPos.top):(t=r.contentLastPos.left+500*r.velocityX,e=r.contentLastPos.top+500*r.velocityY),(n=r.limitPosition(t,e,r.contentStartPos.width,r.contentStartPos.height)).width=r.contentStartPos.width,n.height=r.contentStartPos.height,i.fancybox.animate(r.$content,n,366))},u.prototype.endZooming=function(){var t,e,n,r=this,a=r.instance.current,s=r.newWidth,o=r.newHeight;r.contentLastPos&&(i.fancybox.setTranslate(r.$content,{top:e=r.contentLastPos.top,left
vendor: 4,686 bytes, line 2
2:t=r.contentLastPos.left,width:s,height:o,scaleX:1,scaleY:1}),s<r.canvasWidth&&o<r.canvasHeight?r.instance.scaleToFit(150):s>a.width||o>a.height?r.instance.scaleToActual(r.centerPointStartX,r.centerPointStartY,150):(n=r.limitPosition(t,e,s,o),i.fancybox.animate(r.$content,n,150)))},u.prototype.onTap=function(e){var n,r=this,s=i(e.target),o=r.instance,l=o.current,c=e&&a(e)||r.startPoints,u=c[0]?c[0].x-i(t).scrollLeft()-r.stagePos.left:0,d=c[0]?c[0].y-i(t).scrollTop()-r.stagePos.top:0,h=function(t){var n=l.opts[t];if(i.isFunction(n)&&(n=n.apply(o,[l,e])),n)switch(n){case"close":o.close(r.startEvent);break;case"toggleControls":o.toggleControls();break;case"next":o.next();break;case"nextOrClose":o.group.length>1?o.next():o.close(r.startEvent);break;case"zoom":"image"==l.type&&(l.isLoaded||l.$ghost)&&(o.canPan()?o.scaleToFit():o.isScaledDown()?o.scaleToActual(u,d):o.group.length<2&&o.close(r.startEvent))}};if((!e.originalEvent||2!=e.originalEvent.button)&&(s.is("img")||!(u>s[0].clientWidth+s.offset().left))){if(s.is(".fancybox-bg,.fancybox-inner,.fancybox-outer,.fancybox-container"))n="Outside";else if(s.is(".fancybox-slide"))n="Slide";else{if(!o.current.$content||!o.current.$content.find(s).addBack().filter(s).length)return;n="Content"}if(r.tapped){if(clearTimeout(r.tapped),r.tapped=null,Math.abs(u-r.tapX)>50||Math.abs(d-r.tapY)>50)return this;h("dblclick"+n)}else r.tapX=u,r.tapY=d,l.opts["dblclick"+n]&&l.opts["dblclick"+n]!==l.opts["click"+n]?r.tapped=setTimeout((function(){r.tapped=null,o.isAnimating||h("click"+n)}),500):h("click"+n);return this}},i(e).on("onActivate.fb",(function(t,e){e&&!e.Guestures&&(e.Guestures=new u(e))})).on("beforeClose.fb",(function(t,e){e&&e.Guestures&&e.Guestures.destroy()}))}(window,document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{slideShow:'<button data-fancybox-play class="fancybox-button fancybox-button--play" title="{{PLAY_START}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M6.5 5.4v13.2l11-6.6z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M8.33 5.75h2.2v12.5h-2.2V5.75zm5.15 0h2.2v12.5h-2.2V5.75z"/></svg></button>'},slideShow:{autoStart:!1,speed:3e3,progress:!0}});var i=function(t){this.instance=t,this.init()};e.extend(i.prototype,{timer:null,isActive:!1,$button:null,init:function(){var t=this,i=t.instance,n=i.group[i.currIndex].opts.slideShow;t.$button=i.$refs.toolbar.find("[data-fancybox-play]").on("click",(function(){t.toggle()})),i.group.length<2||!n?t.$button.hide():n.progress&&(t.$progress=e('<div class="fancybox-progress"></div>').appendTo(i.$refs.inner))},set:function(t){var i=this,n=i.instance,r=n.current;r&&(!0===t||r.opts.loop||n.currIndex<n.group.length-1)?i.isActive&&"video"!==r.contentType&&(i.$progress&&e.fancybox.animate(i.$progress.show(),{scaleX:1},r.opts.slideShow.speed),i.timer=setTimeout((function(){n.current.opts.loop||n.current.index!=n.group.length-1?n.next():n.jumpTo(0)}),r.opts.slideShow.speed)):(i.stop(),n.idleSecondsCounter=0,n.showControls())},clear:function(){var t=this;clearTimeout(t.timer),t.timer=null,t.$progress&&t.$progress.removeAttr("style").hide()},start:function(){var t=this,e=t.instance.current;e&&(t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_STOP).removeClass("fancybox-button--play").addClass("fancybox-button--pause"),t.isActive=!0,e.isComplete&&t.set(!0),t.instance.trigger("onSlideShowChange",!0))},stop:function(){var t=this,e=t.instance.current;t.clear(),t.$button.attr("title",(e.opts.i18n[e.opts.lang]||e.opts.i18n.en).PLAY_START).removeClass("fancybox-button--pause").addClass("fancybox-button--play"),t.isActive=!1,t.instance.trigger("onSlideShowChange",!1),t.$progress&&t.$progress.removeAttr("style").hide()},toggle:function(){var t=this;t.isActive?t.stop():t.start()}}),e(t).on({"onInit.fb":function(t,e){e&&!e.SlideShow&&(e.SlideShow=new i(e))},"beforeShow.fb":function(t,e,i,n){var r=e&&e.SlideShow;n?r&&i.opts.slideShow.autoStart&&r.start():r&&r.isActive&&r.clear()},"afterShow.fb":function(t,e,i){var n=e&&e.SlideShow;n&&n.isActive&&n.set()},"afterKeydown.fb":function(i,n,r,a,s){var o=n&&n.SlideShow;!o||!r.opts.slideShow||80!==s&&32!==s||e(t.activeElement).is("button,a,input")||(a.preventDefault(),o.toggle())},"beforeClose.fb onDeactivate.fb":function(t,e){var i=e&&e.SlideShow;i&&i.stop()}}),e(t).on("visibilitychange",(function(){var i=e.fancybox.getInstance(),n=i&&i.SlideShow;n&&n.isActive&&(t.hidden?n.clear():n.set())}))}(document,jQuery),function(t,e){"use strict";var i=function(){for(var e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["
2webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],i={},n=0;n<e.length;n++){var r=e[n];if(r&&r[1]in t){for(var a=0;a<r.length;a++)i[e[0][a]]=r[a];return i}}return!1}();if(i){var n={request:function(e){(e=e||t.documentElement)[i.requestFullscreen](e.ALLOW_KEYBOARD_INPUT)},exit:function(){t[i.exitFullscreen]()},toggle:function(e){e=e||t.documentElement,this.isFullscreen()?this.exit():this.request(e)},isFullscreen:function(){return Boolean(t[i.fullscreenElement])},enabled:function(){return Boolean(t[i.fullscreenEnabled])}};e.extend(!0,e.fancybox.defaults,{btnTpl:{fullScreen:'<button data-fancybox-fullscreen class="fancybox-button fancybox-button--fsenter" title="{{FULL_SCREEN}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M7 14H5v5h5v-2H7v-3zm-2-4h2V7h3V5H5v5zm12 7h-3v2h5v-5h-2v3zM14 5v2h3v3h2V5h-5z"/></svg><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M5 16h3v3h2v-5H5zm3-8H5v2h5V5H8zm6 11h2v-3h3v-2h-5zm2-11V5h-2v5h5V8z"/></svg></button>'},fullScreen:{autoStart:!1}}),e(t).on(i.fullscreenchange,(function(){var t=n.isFullscreen(),i=e.fancybox.getInstance();i&&(i.current&&"image"===i.current.type&&i.isAnimating&&(i.isAnimating=!1,i.update(!0,!0,0),i.isComplete||i.complete()),i.trigger("onFullscreenChange",t),i.$refs.container.toggleClass("fancybox-is-fullscreen",t),i.$refs.toolbar.find("[data-fancybox-fullscreen]").toggleClass("fancybox-button--fsenter",!t).toggleClass("fancybox-button--fsexit",t))}))}e(t).on({"onInit.fb":function(t,e){i?e&&e.group[e.currIndex].opts.fullScreen?(e.$refs.container.on("click.fb-fullscreen","[data-fancybox-fullscreen]",(function(t){t.stopPropagation(),t.preventDefault(),n.toggle()})),e.opts.fullScreen&&!0===e.opts.fullScreen.autoStart&&n.request(),e.FullScreen=n):e&&e.$refs.toolbar.find("[data-fancybox-fullscreen]").hide():e.$refs.toolbar.find("[data-fancybox-fullscreen]").remove()},"afterKeydown.fb":function(t,e,i,n,r){e&&e.FullScreen&&70===r&&(n.preventDefault(),e.FullScreen.toggle())},"beforeClose.fb":function(t,e){e&&e.FullScreen&&e.$refs.container.hasClass("fancybox-is-fullscreen")&&n.exit()}})}(document,jQuery),function(t,e){"use strict";var i="fancybox-thumbs";e.fancybox.defaults=e.extend(!0,{btnTpl:{thumbs:'<button data-fancybox-thumbs class="fancybox-button fancybox-button--thumbs" title="{{THUMBS}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M14.59 14.59h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76h-3.76v-3.76zm-4.47 0h3.76v3.76H5.65v-3.76zm8.94-4.47h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76h-3.76V5.65zm-4.47 0h3.76v3.76H5.65V5.65z"/></svg></button>'},thumbs:{autoStart:!1,hideOnClose:!0,parentEl:".fancybox-container",axis:"y"}},e.fancybox.defaults);var n=function(t){this.init(t)};e.extend(n.prototype,{$button:null,$grid:null,$list:null,isVisible:!1,isActive:!1,init:function(t){var e=this,i=t.group,n=0;e.instance=t,e.opts=i[t.currIndex].opts.thumbs,t.Thumbs=e,e.$button=t.$refs.toolbar.find("[data-fancybox-thumbs]");for(var r=0,a=i.length;r<a&&(i[r].thumb&&n++,!(n>1));r++);n>1&&e.opts?(e.$button.removeAttr("style").on("click",(function(){e.toggle()})),e.isActive=!0):e.$button.hide()},create:function(){var t,n=this,r=n.instance,a=n.opts.parentEl,s=[];n.$grid||(n.$grid=e('<div class="'+i+" "+i+"-"+n.opts.axis+'"></div>').appendTo(r.$refs.container.find(a).addBack().filter(a)),n.$grid.on("click","a",(function(){r.jumpTo(e(this).attr("data-index"))}))),n.$list||(n.$list=e('<div class="'+i+'__list">').appendTo(n.$grid)),e.each(r.group,(function(e,i){(t=i.thumb)||"image"!==i.type||(t=i.src),s.push('<a href="javascript:;" tabindex="0" data-index="'+e+'"'+(t&&t.length?' style="background-image:url('+t+')"':'class="fancybox-thumbs-missing"')+"></a>")})),n.$list[0].innerHTML=s.join(""),"x"===n.opts.axis&&n.$list.width(parseInt(n.$grid.css("padding-right"),10)+r.group.length*n.$list.children().eq(0).outerWidth(!0))},focus:function(t){var e,i,n=this,r=n.$list,a=n.$grid;n.instance.current&&(i=(e=r.children().removeClass("fancybox-thumbs-active").filter('[data-index="'+n.instance.current.index+'"]').addClass("fancybox-thumbs-active")).position(),"y"===n.opts.axis&&(i.top<0||i.top>r.height()-e.outerHeight())?r.stop().animate({scrollTop:r.scrollTop()+i.top},t):"x"===n.opts.axis&&(i.left<a.scrollLeft()||i.left>a.scrollLeft()+(a.width()-e.outerWidth()))&&r.parent().stop().animate({scrollLeft:i.left},t))},update:function(){var t=this;t.instance.$refs.container.toggleClass("fancybox-show-thumbs",this.isVisible),t.isVisible?(t.$grid||t.create(),t.instance.trigger("onThumbsShow"),t.focu
2s(0)):t.$grid&&t.instance.trigger("onThumbsHide"),t.instance.update()},hide:function(){this.isVisible=!1,this.update()},show:function(){this.isVisible=!0,this.update()},toggle:function(){this.isVisible=!this.isVisible,this.update()}}),e(t).on({"onInit.fb":function(t,e){var i;e&&!e.Thumbs&&(i=new n(e)).isActive&&!0===i.opts.autoStart&&i.show()},"beforeShow.fb":function(t,e,i,n){var r=e&&e.Thumbs;r&&r.isVisible&&r.focus(n?0:250)},"afterKeydown.fb":function(t,e,i,n,r){var a=e&&e.Thumbs;a&&a.isActive&&71===r&&(n.preventDefault(),a.toggle())},"beforeClose.fb":function(t,e){var i=e&&e.Thumbs;i&&i.isVisible&&!1!==i.opts.hideOnClose&&i.$grid.hide()}})}(document,jQuery),function(t,e){"use strict";e.extend(!0,e.fancybox.defaults,{btnTpl:{share:'<button data-fancybox-share class="fancybox-button fancybox-button--share" title="{{SHARE}}"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24"><path d="M2.55 19c1.4-8.4 9.1-9.8 11.9-9.8V5l7 7-7 6.3v-3.5c-2.8 0-10.5 2.1-11.9 4.2z"/></svg></button>'},share:{url:function(t,e){return!t.currentHash&&"inline"!==e.type&&"html"!==e.type&&(e.origSrc||e.src)||window.location},tpl:'<div class="fancybox-share"><h1>{{SHARE}}</h1><p><a class="fancybox-share__button fancybox-share__button--fb" href="https://www.facebook.com/sharer/sharer.php?u={{url}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m287 456v-299c0-21 6-35 35-35h38v-63c-7-1-29-3-55-3-54 0-91 33-91 94v306m143-254h-205v72h196" /></svg><span>Facebook</span></a><a class="fancybox-share__button fancybox-share__button--tw" href="https://twitter.com/intent/tweet?url={{url}}&text={{descr}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m456 133c-14 7-31 11-47 13 17-10 30-27 37-46-15 10-34 16-52 20-61-62-157-7-141 75-68-3-129-35-169-85-22 37-11 86 26 109-13 0-26-4-37-9 0 39 28 72 65 80-12 3-25 4-37 2 10 33 41 57 77 57-42 30-77 38-122 34 170 111 378-32 359-208 16-11 30-25 41-42z" /></svg><span>Twitter</span></a><a class="fancybox-share__button fancybox-share__button--pt" href="https://www.pinterest.com/pin/create/button/?url={{url}}&description={{descr}}&media={{media}}"><svg viewBox="0 0 512 512" xmlns="http://www.w3.org/2000/svg"><path d="m265 56c-109 0-164 78-164 144 0 39 15 74 47 87 5 2 10 0 12-5l4-19c2-6 1-8-3-13-9-11-15-25-15-45 0-58 43-110 113-110 62 0 96 38 96 88 0 67-30 122-73 122-24 0-42-19-36-44 6-29 20-60 20-81 0-19-10-35-31-35-25 0-44 26-44 60 0 21 7 36 7 36l-30 125c-8 37-1 83 0 87 0 3 4 4 5 2 2-3 32-39 42-75l16-64c8 16 31 29 56 29 74 0 124-67 124-157 0-69-58-132-146-132z" fill="#fff"/></svg><span>Pinterest</span></a></p><p><input class="fancybox-share__input" type="text" value="{{url_raw}}" onclick="select()" /></p></div>'}}),e(t).on("click","[data-fancybox-share]",(function(){var t,i,n=e.fancybox.getInstance(),r=n.current||null;r&&("function"===e.type(r.opts.share.url)&&(t=r.opts.share.url.apply(r,[n,r])),i=r.opts.share.tpl.replace(/\{\{media\}\}/g,"image"===r.type?encodeURIComponent(r.src):"").replace(/\{\{url\}\}/g,encodeURIComponent(t)).replace(/\{\{url_raw\}\}/g,function(t){var e={"&":"&","<":"<",">":">",'"':""","'":"'","/":"/","`":"`","=":"="};return String(t).replace(/[&<>"'`=\/]/g,(function(t){return e[t]}))}(t)).replace(/\{\{descr\}\}/g,n.$caption?encodeURIComponent(n.$caption.text()):""),e.fancybox.open({src:n.translate(n,i),type:"html",opts:{touch:!1,animationEffect:!1,afterLoad:function(t,e){n.$refs.container.one("beforeClose.fb",(function(){t.close(null,0)})),e.$content.find(".fancybox-share__button").click((function(){return window.open(this.href,"Share","width=550, height=450"),!1}))},mobile:{autoFocus:!1}}}))}))}(document,jQuery),function(t,e,i){"use strict";function n(){var e=t.location.hash.substr(1),i=e.split("-"),n=i.length>1&&/^\+?\d+$/.test(i[i.length-1])&&parseInt(i.pop(-1),10)||1;return{hash:e,index:n<1?1:n,gallery:i.join("-")}}function r(t){""!==t.gallery&&i("[data-fancybox='"+i.escapeSelector(t.gallery)+"']").eq(t.index-1).focus().trigger("click.fb-start")}function a(t){var e,i;return!!t&&""!==(i=(e=t.current?t.current.opts:t.opts).hash||(e.$orig?e.$orig.data("fancybox")||e.$orig.data("fancybox-trigger"):""))&&i}i.escapeSelector||(i.escapeSelector=function(t){return(t+"").replace(/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g,(function(t,e){return e?"\0"===t?"�":t.slice(0,-1)+"\\"+t.charCodeAt(t.length-1).toString(16)+" ":"\\"+t}))}),i((function(){!1!==i.fancybox.defaults.hash&&(i(e).on({"onInit.fb":function(t,e){var i,r;!1!==e.group[e.currIndex].opts.hash&&(i=n(),(r=a(e))&&i.gallery&&r==i.gallery&&(e.currIndex=i.index-1))},"beforeShow.fb":function(i,n,r,s){var o;r&&!1!==r.opts.hash&&(o=a(n))&&(n.currentHash=o+(n.group.length>1?"-"+(r.index+1):""),t.location.hash!=="#"+n.currentHash&&(s&&!n.origHash&&(n.origHash=t.location.hash),n.hashTimer&&clearTimeout(n.hashTimer),n.hashTimer=setTimeout((function(){"replaceState"in t.history?(t.history[s?"pushState":"replaceState"]({},e.title,t.location.pathname+t.location.search+"#"+n.currentHash),s&&(n.hasCreatedHistory=!0)):t.location.hash=n.currentHash,n.hashTimer=null}),300)))},"beforeClose.fb":function(i,n,r){r&&!1!==r.opts.hash&&(clearTimeout(n.hashTimer),n.currentHash&&n.hasCreatedHistory?t.history.back():n.currentHash&&("replaceState"in t.history?t.history.replaceState({},e.title,t.location.pathname+t.location.search+(n.origHash||"")):t.location.hash=n.origHash),n.currentHash=null)}}),i(t).on("hashchange.fb",(function(){var t=n(),e=null;i.each(i(".fancybox-container").get().reverse(),(function(t,n){var r=i(n).data("FancyBox");if(r&&r.currentHash)return e=r,!1})),e?e.currentHash===t.gallery+"-"+t.index||1===t.index&&e.currentHash==t.gallery||(e.currentHash=null,e.close()):""!==t.gallery&&r(t)})),setTimeout((function(){i.fancybox.getInstance()||r(n())}),50))}))}(window,document,jQuery),function(t,e){"use strict";var i=(new Date).getTime();e(t).on({"onInit.fb":function(t,e,n){e.$refs.stage.on("mousewheel DOMMouseScroll wheel MozMousePixelScroll",(function(t){var n=e.current,r=(new Date).getTime();e.group.length<2||!1===n.opts.wheel||"auto"===n.opts.wheel&&"image"!==n.type||(t.preventDefault(),t.stopPropagation(),n.$slide.hasClass("fancybox-animated")||(t=t.originalEvent||t,r-i<250||(i=r,e[(-t.deltaY||-t.deltaX||t.wheelDelta||-t.detail)<0?"next":"previous"]())))}))}})}(document,jQuery),function(t){if(!t.hasInitialised){var e={escapeRegExp:function(t){return t.replace(/[\-\[\]\/\{\}\(\)\*\+\?\.\\\^\$\|]/g,"\\$&")},hasClass:function(t,e){var i=" ";return 1===t.nodeType&&(i+t.className+i).replace(/[\n\t]/g,i).indexOf(i+e+i)>=0},addClass:function(t,e){t.className+=" "+e},removeClass:function(t,e){var i=new RegExp("\\b"+this.escapeRegExp(e)+"\\b");t.className=t.className.replace(i,"")},interpolateString:function(t,e){return t.replace(/{{([a-z][a-z0-9\-_]*)}}/gi,(function(t){return e(arguments[1])||""}))},getCookie:function(t){var e=("; "+document.cookie).split("; "+t+"=");return e.length<2?void 0:e.pop().split(";").shift()}
vendor: 6,203 bytes, line 2
2,setCookie:function(t,e,i,n,r,a){var s=new Date;s.setHours(s.getHours()+24*(i||365));var o=[t+"="+e,"expires="+s.toUTCString(),"path="+(r||"/")];n&&o.push("domain="+n),a&&o.push("secure"),document.cookie=o.join(";")},deepExtend:function(t,e){for(var i in e)e.hasOwnProperty(i)&&(i in t&&this.isPlainObject(t[i])&&this.isPlainObject(e[i])?this.deepExtend(t[i],e[i]):t[i]=e[i]);return t},throttle:function(t,e){var i=!1;return function(){i||(t.apply(this,arguments),i=!0,setTimeout((function(){i=!1}),e))}},hash:function(t){var e,i,n=0;if(0===t.length)return n;for(e=0,i=t.length;e<i;++e)n=(n<<5)-n+t.charCodeAt(e),n|=0;return n},normaliseHex:function(t){return"#"==t[0]&&(t=t.substr(1)),3==t.length&&(t=t[0]+t[0]+t[1]+t[1]+t[2]+t[2]),t},getContrast:function(t){return t=this.normaliseHex(t),(299*parseInt(t.substr(0,2),16)+587*parseInt(t.substr(2,2),16)+114*parseInt(t.substr(4,2),16))/1e3>=128?"#000":"#fff"},getLuminance:function(t){var e=parseInt(this.normaliseHex(t),16),i=38+(e>>16),n=38+(e>>8&255),r=38+(255&e);return"#"+(16777216+65536*(i<255?i<1?0:i:255)+256*(n<255?n<1?0:n:255)+(r<255?r<1?0:r:255)).toString(16).slice(1)},isMobile:function(){return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)},isPlainObject:function(t){return"object"==typeof t&&null!==t&&t.constructor==Object},traverseDOMPath:function(t,i){return t&&t.parentNode?e.hasClass(t,i)?t:this.traverseDOMPath(t.parentNode,i):null}};t.status={deny:"deny",allow:"allow",dismiss:"dismiss"},t.transitionEnd=function(){var t=document.createElement("div"),e={t:"transitionend",OT:"oTransitionEnd",msT:"MSTransitionEnd",MozT:"transitionend",WebkitT:"webkitTransitionEnd"};for(var i in e)if(e.hasOwnProperty(i)&&void 0!==t.style[i+"ransition"])return e[i];return""}(),t.hasTransition=!!t.transitionEnd;var i=Object.keys(t.status).map(e.escapeRegExp);t.customStyles={},t.Popup=function(){var n={enabled:!0,container:null,cookie:{name:"cookieconsent_status",path:"/",domain:"",expiryDays:365,secure:!1},onPopupOpen:function(){},onPopupClose:function(){},onInitialise:function(t){},onStatusChange:function(t,e){},onRevokeChoice:function(){},onNoCookieLaw:function(t,e){},content:{header:"Cookies used on the website!",message:"This website uses cookies to ensure you get the best experience on our website.",dismiss:"Got it!",allow:"Allow cookies",deny:"Decline",link:"Learn more",href:"https://www.cookiesandyou.com",close:"❌",target:"_blank",policy:"Cookie Policy"},elements:{header:'<span class="cc-header">{{header}}</span> ',message:'<span id="cookieconsent:desc" class="cc-message">{{message}}</span>',messagelink:'<span id="cookieconsent:desc" class="cc-message">{{message}} <a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a></span>',dismiss:'<a aria-label="dismiss cookie message" role=button tabindex="0" class="cc-btn cc-dismiss">{{dismiss}}</a>',allow:'<a aria-label="allow cookies" role=button tabindex="0" class="cc-btn cc-allow">{{allow}}</a>',deny:'<a aria-label="deny cookies" role=button tabindex="0" class="cc-btn cc-deny">{{deny}}</a>',link:'<a aria-label="learn more about cookies" role=button tabindex="0" class="cc-link" href="{{href}}" rel="noopener noreferrer nofollow" target="{{target}}">{{link}}</a>',close:'<span aria-label="dismiss cookie message" role=button tabindex="0" class="cc-close">{{close}}</span>'},window:'<div role="dialog" aria-live="polite" aria-label="cookieconsent" aria-describedby="cookieconsent:desc" class="cc-window {{classes}}">\x3c!--googleoff: all--\x3e{{children}}\x3c!--googleon: all--\x3e</div>',revokeBtn:'<div class="cc-revoke {{classes}}">{{policy}}</div>',compliance:{info:'<div class="cc-compliance">{{dismiss}}</div>',"opt-in":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>',"opt-out":'<div class="cc-compliance cc-highlight">{{deny}}{{allow}}</div>'},type:"info",layouts:{basic:"{{messagelink}}{{compliance}}","basic-close":"{{messagelink}}{{compliance}}{{close}}","basic-header":"{{header}}{{message}}{{link}}{{compliance}}"},layout:"basic",position:"bottom",theme:"block",static:!1,palette:null,revokable:!1,animateRevokable:!0,showLink:!0,dismissOnScroll:!1,dismissOnTimeout:!1,dismissOnWindowClick:!1,ignoreClicksFrom:["cc-revoke","cc-btn"],autoOpen:!0,autoAttach:!0,whitelistPage:[],blacklistPage:[],overrideHTML:null};function r(){this.initialise.apply(this,arguments)}function a(t){this.openingTimeout=null,e.removeClass(t,"cc-invisible")}function s(e){e.style.display="none",e.removeEventListener(t.transitionEnd,this.afterTransition),this.afterTransition=null}function o(){var t=this.options.position.split("-"),e=[];return t.forEach((function(t){e.push("cc-"+t)})),e}function l(n){var r=this.options,a=document.createElement("div"),s=r.container&&1===r.container.nodeType?r.container:document.body;a.innerHTML=n;var o=a.children[0];return o.style.display="none",e.hasClass(o,"cc-window")&&t.hasTransition&&e.addClass(o,"cc-invisible"),this.onButtonClick=(function(n){var r=e.traverseDOMPath(n.target,"cc-btn")||n.target;if(e.hasClass(r,"cc-btn")){var a=r.className.match(new RegExp("\\bcc-("+i.join("|")+")\\b")),s=a&&a[1]||!1;s&&(this.setStatus(s),this.close(!0))}e.hasClass(r,"cc-close")&&(this.setStatus(t.status.dismiss),this.close(!0)),e.hasClass(r,"cc-revoke")&&this.revokeChoice()}).bind(this),o.addEventListener("click",this.onButtonClick),r.autoAttach&&(s.firstChild?s.insertBefore(o,s.firstChild):s.appendChild(o)),o}function c(t){return"000000"==(t=e.normaliseHex(t))?"#222":e.getLuminance(t)}function u(t,e){for(var i=0,n=t.length;i<n;++i){var r=t[i];if(r instanceof RegExp&&r.test(e)||"string"==typeof r&&r.length&&r===e)return!0}return!1}return r.prototype.initialise=function(i){this.options&&this.destroy(),e.deepExtend(this.options={},n),e.isPlainObject(i)&&e.deepExtend(this.options,i),(function(){var e=this.options.onInitialise.bind(this);if(!window.navigator.cookieEnabled)return e(t.status.deny),!0;if(window.CookiesOK||window.navigator.CookiesOK)return e(t.status.allow),!0;var i=Object.keys(t.status),n=this.getStatus(),r=i.indexOf(n)>=0;return r&&e(n),r}
2).call(this)&&(this.options.enabled=!1),u(this.options.blacklistPage,location.pathname)&&(this.options.enabled=!1),u(this.options.whitelistPage,location.pathname)&&(this.options.enabled=!0);var r=this.options.window.replace("{{classes}}",(function(){var i=this.options,n="top"==i.position||"bottom"==i.position?"banner":"floating";e.isMobile()&&(n="floating");var r=["cc-"+n,"cc-type-"+i.type,"cc-theme-"+i.theme];return i.static&&r.push("cc-static"),r.push.apply(r,o.call(this)),(function(i){var n=e.hash(JSON.stringify(i)),r="cc-color-override-"+n,a=e.isPlainObject(i);return this.customStyleSelector=a?r:null,a&&function(i,n,r){if(t.customStyles[i])++t.customStyles[i].references;else{var a={},s=n.popup,o=n.button,l=n.highlight;s&&(s.text=s.text?s.text:e.getContrast(s.background),s.link=s.link?s.link:s.text,a[r+".cc-window"]=["color: "+s.text,"background-color: "+s.background],a[r+".cc-revoke"]=["color: "+s.text,"background-color: "+s.background],a[r+" .cc-link,"+r+" .cc-link:active,"+r+" .cc-link:visited"]=["color: "+s.link],o&&(o.text=o.text?o.text:e.getContrast(o.background),o.border=o.border?o.border:"transparent",a[r+" .cc-btn"]=["color: "+o.text,"border-color: "+o.border,"background-color: "+o.background],o.padding&&a[r+" .cc-btn"].push("padding: "+o.padding),"transparent"!=o.background&&(a[r+" .cc-btn:hover, "+r+" .cc-btn:focus"]=["background-color: "+(o.hover||c(o.background))]),l?(l.text=l.text?l.text:e.getContrast(l.background),l.border=l.border?l.border:"transparent",a[r+" .cc-highlight .cc-btn:first-child"]=["color: "+l.text,"border-color: "+l.border,"background-color: "+l.background]):a[r+" .cc-highlight .cc-btn:first-child"]=["color: "+s.text]));var u=document.createElement("style");document.head.appendChild(u),t.customStyles[i]={references:1,element:u.sheet};var d=-1;for(var h in a)a.hasOwnProperty(h)&&u.sheet.insertRule(h+"{"+a[h].join(";")+"}",++d)}}(n,i,"."+r),a}).call(this,this.options.palette),this.customStyleSelector&&r.push(this.customStyleSelector),r}).call(this).join(" ")).replace("{{children}}",(function(){var t={},i=this.options;i.showLink||(i.elements.link="",i.elements.messagelink=i.elements.message),Object.keys(i.elements).forEach((function(n){t[n]=e.interpolateString(i.elements[n],(function(t){var e=i.content[t];return t&&"string"==typeof e&&e.length?e:""}))}));var n=i.compliance[i.type];n||(n=i.compliance.info),t.compliance=e.interpolateString(n,(function(e){return t[e]}));var r=i.layouts[i.layout];return r||(r=i.layouts.basic),e.interpolateString(r,(function(e){return t[e]}))}).call(this)),a=this.options.overrideHTML;if("string"==typeof a&&a.length&&(r=a),this.options.static){var s=l.call(this,'<div class="cc-grower">'+r+"</div>");s.style.display="",this.element=s.firstChild,this.element.style.display="none",e.addClass(this.element,"cc-invisible")}else this.element=l.call(this,r);(function(){var i=this.setStatus.bind(this),n=this.close.bind(this),r=this.options.dismissOnTimeout;"number"==typeof r&&r>=0&&(this.dismissTimeout=window.setTimeout((function(){i(t.status.dismiss),n(!0)}),Math.floor(r)));var a=this.options.dismissOnScroll;if("number"==typeof a&&a>=0){var s=function(e){window.pageYOffset>Math.floor(a)&&(i(t.status.dismiss),n(!0),window.removeEventListener("scroll",s),this.onWindowScroll=null)};this.options.enabled&&(this.onWindowScroll=s,window.addEventListener("scroll",s))}var o=this.options.ignoreClicksFrom;if(this.options.dismissOnWindowClick){var l=(function(r){for(var a=!1,s=r.path.length,c=o.length,u=0;u<s;u++)if(!a)for(var d=0;d<c;d++)a||(a=e.hasClass(r.path[u],o[d]));a||(i(t.status.dismiss),n(!0),window.removeEventListener("click",l),window.removeEventListener("touchend",l),this.onWindowClick=null)}).bind(this);this.options.enabled&&(this.onWindowClick=l,window.addEventListener("click",l),window.addEventListener("touchend",l))}}).call(this),(function(){if("info"!=this.options.type&&(this.options.revokable=!0),e.isMobile()&&(this.options.animateRevokable=!1),this.options.revokable){var t=o.call(this);this.options.animateRevokable&&t.push("cc-animate"),this.customStyleSelector&&t.push(this.customStyleSelector);var i=this.options.revokeBtn.replace("{{classes}}",t.join(" ")).replace("{{policy}}",this.options.content.policy);this.revokeBtn=l.call(this,i);var n=this.revokeBtn;if(this.options.animateRevokable){var r=e.throttle((function(t){var i=!1,r=window.innerHeight-20;
vendor: 9,674 bytes, line 2
2e.hasClass(n,"cc-top")&&t.clientY<20&&(i=!0),e.hasClass(n,"cc-bottom")&&t.clientY>r&&(i=!0),i?e.hasClass(n,"cc-active")||e.addClass(n,"cc-active"):e.hasClass(n,"cc-active")&&e.removeClass(n,"cc-active")}),200);this.onMouseMove=r,window.addEventListener("mousemove",r)}}}).call(this),this.options.autoOpen&&this.autoOpen()},r.prototype.destroy=function(){this.onButtonClick&&this.element&&(this.element.removeEventListener("click",this.onButtonClick),this.onButtonClick=null),this.dismissTimeout&&(clearTimeout(this.dismissTimeout),this.dismissTimeout=null),this.onWindowScroll&&(window.removeEventListener("scroll",this.onWindowScroll),this.onWindowScroll=null),this.onWindowClick&&(window.removeEventListener("click",this.onWindowClick),this.onWindowClick=null),this.onMouseMove&&(window.removeEventListener("mousemove",this.onMouseMove),this.onMouseMove=null),this.element&&this.element.parentNode&&this.element.parentNode.removeChild(this.element),this.element=null,this.revokeBtn&&this.revokeBtn.parentNode&&this.revokeBtn.parentNode.removeChild(this.revokeBtn),this.revokeBtn=null,function(i){if(e.isPlainObject(i)){var n=e.hash(JSON.stringify(i)),r=t.customStyles[n];if(r&&!--r.references){var a=r.element.ownerNode;a&&a.parentNode&&a.parentNode.removeChild(a),t.customStyles[n]=null}}}(this.options.palette),this.options=null},r.prototype.open=function(e){if(this.element)return this.isOpen()||(t.hasTransition?this.fadeIn():this.element.style.display="",this.options.revokable&&this.toggleRevokeButton(),this.options.onPopupOpen.call(this)),this},r.prototype.close=function(e){if(this.element)return this.isOpen()&&(t.hasTransition?this.fadeOut():this.element.style.display="none",e&&this.options.revokable&&this.toggleRevokeButton(!0),this.options.onPopupClose.call(this)),this},r.prototype.fadeIn=function(){var i=this.element;t.hasTransition&&i&&(this.afterTransition&&s.call(this,i),e.hasClass(i,"cc-invisible"))&&(i.style.display="",this.options.static&&(this.element.parentNode.style.maxHeight=this.element.clientHeight+"px"),this.openingTimeout=setTimeout(a.bind(this,i),20))},r.prototype.fadeOut=function(){var i=this.element;t.hasTransition&&i&&(this.openingTimeout&&(clearTimeout(this.openingTimeout),a.bind(this,i)),e.hasClass(i,"cc-invisible")||(this.options.static&&(this.element.parentNode.style.maxHeight=""),this.afterTransition=s.bind(this,i),i.addEventListener(t.transitionEnd,this.afterTransition),e.addClass(i,"cc-invisible")))},r.prototype.isOpen=function(){return this.element&&""==this.element.style.display&&(!t.hasTransition||!e.hasClass(this.element,"cc-invisible"))},r.prototype.toggleRevokeButton=function(t){this.revokeBtn&&(this.revokeBtn.style.display=t?"":"none")},r.prototype.revokeChoice=function(t){this.options.enabled=!0,this.clearStatus(),this.options.onRevokeChoice.call(this),t||this.autoOpen()},r.prototype.hasAnswered=function(e){return Object.keys(t.status).indexOf(this.getStatus())>=0},r.prototype.hasConsented=function(e){var i=this.getStatus();return i==t.status.allow||i==t.status.dismiss},r.prototype.autoOpen=function(t){!this.hasAnswered()&&this.options.enabled?this.open():this.hasAnswered()&&this.options.revokable&&this.toggleRevokeButton(!0)},r.prototype.setStatus=function(i){var n=this.options.cookie,r=e.getCookie(n.name),a=Object.keys(t.status).indexOf(r)>=0;Object.keys(t.status).indexOf(i)>=0?(e.setCookie(n.name,i,n.expiryDays,n.domain,n.path,n.secure),this.options.onStatusChange.call(this,i,a)):this.clearStatus()},r.prototype.getStatus=function(){return e.getCookie(this.options.cookie.name)},r.prototype.clearStatus=function(){var t=this.options.cookie;e.setCookie(t.name,"",-1,t.domain,t.path)},r}(),t.Location=function(){var t={timeout:5e3,services:["ipinfo"],serviceDefinitions:{ipinfo:function(){return{url:"//ipinfo.io",headers:["Accept: application/json"],callback:function(t,e){try{var i=JSON.parse(e);return i.error?a(i):{code:i.country}}catch(t){return a({error:"Invalid response ("+t+")"})}}}},ipinfodb:function(t){return{url:"//api.ipinfodb.com/v3/ip-country/?key={api_key}&format=json&callback={callback}",isScript:!0,callback:function(t,e){try{var i=JSON.parse(e);return"ERROR"==i.statusCode?a({error:i.statusMessage}):{code:i.countryCode}}catch(t){return a({error:"Invalid response ("+t+")"})}}}},maxmind:function(){return{url:"//js.maxmind.com/js/apis/geoip2/v2.1/geoip2.js",isScript:!0,callback:function(t){window.geoip2?geoip2.country((function(e){try{t({code:e.country.iso_code})}catch(e){t(a(e))}}),(function(e){t(a(e))})):t(new Error("Unexpected response format. The downloaded script should have exported `geoip2` to the global scope"))}}}}};function i(i){e.deepExtend(this.options={},t),e.isPlainObject(i)&&e.deepExtend(this.options,i),this.currentServiceIndex=-1}function n(t,e,i){var n,r=document.createElement("script");r.type="text/"+(t.type||"javascript"),r.src=t.src||t,r.async=!1,r.onreadystatechange=r.onload=function(){var t=r.readyState;clearTimeout(n),e.done||t&&!/loaded|complete/.test(t)||(e.done=!0,e(),r.onreadystatechange=r.onload=null)},document.body.appendChild(r),n=setTimeout((function(){e.done=!0,e(),r.onreadystatechange=r.onload=null}),i)}function r(t,e,i,n,r){var a=new(window.XMLHttpRequest||window.ActiveXObject)("MSXML2.XMLHTTP.3.0");if(a.open(n?"POST":"GET",t,1),a.setRequestHeader("Content-type","application/x-www-form-urlencoded"),Array.isArray(r))for(var s=0,o=r.length;s<o;++s){var l=r[s].split(":",2);a.setRequestHeader(l[0].replace(/^\s+|\s+$/g,""),l[1].replace(/^\s+|\s+$/g,""))}"function"==typeof e&&(a.onreadystatechange=function(){a.readyState>3&&e(a)}),a.send(n)}function a(t){return new Error("Error ["+(t.code||"UNKNOWN")+"]: "+t.error)}return i.prototype.getNextService=function(){var t;do{t=this.getServiceByIdx(++this.currentServiceIndex)}while(this.currentServiceIndex<this.options.services.length&&!t);return t},i.prototype.getServiceByIdx=function(t){var i=this.options.services[t];if("function"==typeof i){var n=i();return n.name&&e.deepExtend(n,this.options.serviceDefinitions[n.name](n)),n}return"string"==typeof i?this.options.serviceDefinitions[i]():e.isPlainObject(i)?this.options.serviceDefinitions[i.name](i):null},i.prototype.locate=function(t,e){var i=this.getNextService();i?(this.callbackComplete=t,this.callbackError=e,this.runService(i,this.runNextServiceOnError.bind(this))):e(new Error("No services to run"))},i.prototype.setupUrl=function(t){var e=this.getCurrentServiceOpts();return t.url.replace(/\{(.*?)\}/g,(function(i,n){if("callback"===n){var r="callback"+Date.now();return window[r]=function(e){t.__JSONP_DATA=JSON.stringify(e)},r}if(n in e.interpolateUrl)return e.interpolateUrl[n]}))},i.prototype.runService=function(t,e){var i=this;t&&t.url&&t.callback&&(t.isScript?n:r)(this.setupUrl(t),(function(n){var r=n?n.responseText:"";t.__JSONP_DATA&&(r=t.__JSONP_DATA,delete t.__JSONP_DATA),i.runServiceCallback.call(i,e,t,r)}),this.options.timeout,t.data,t.headers)},i.prototype.runServiceCallback=function(t,e,i){var n=this,r=e.callback((function(e){r||n.onServiceResult.call(n,t,e)}),i);r&&this.onServiceResult.call(this,t,r)},i.prototype.onServiceResult=function(t,e){e instanceof Error||e&&e.error?t.call(this,e,null):t.call(this,null,e)},i.prototype.runNextServiceOnError=function(t,e){if(t){this.logError(t);var i=this.getNextService();i?this.runService(i,this.runNextServiceOnError.bind(this)):this.completeService.call(this,this.callbackError,new Error("All services failed"))}else this.completeService.call(this,this.callbackComplete,e)},i.prototype.getCurrentServiceOpts=function(){var t=this.options.services[this.currentServiceIndex];return"string"==typeof t?{name:t}:"function"==typeof t?t():e.isPlainObject(t)?t:{}},i.prototype.completeService=function(t,e){this.currentServiceIndex=-1,t&&t(e)},i.prototype.logError=function(t){var e=this.currentServiceIndex,i=this.getServiceByIdx(e);console.warn("The service["+e+"] ("+i.url+") responded with the following error",t)},i}(),t.Law=function(){var t={regionalLaw:!0,hasLaw:["AT","BE","BG","HR","CZ","CY","DK","EE","FI","FR","DE","EL","HU","IE","IT","LV","LT","LU","MT","NL","PL","PT","SK","ES","SE","GB","UK","GR","EU"],revokable:["HR","CY","DK","EE","FR","DE","LV","LT","NL","PT","ES"],explicitAction:["HR","IT","ES"]};function i(t){this.initialise.apply(this,arguments)}return i.prototype.initialise=function(i){e.deepExtend(this.options={},t),e.isPlainObject(i)&&e.deepExtend(this.options,i)},i.prototype.get=function(t){var e=this.options;return{hasLaw:e.hasLaw.indexOf(t)>=0,revokable:e.revokable.indexOf(t)>=0,explicitAction:e.explicitAction.indexOf(t)>=0}},i.prototype.applyLaw=function(t,e){var i=this.get(e);return i.hasLaw||(t.enabled=!1,"function"==typeof t.onNoCookieLaw&&t.onNoCookieLaw(e,i)),this.options.regionalLaw&&(i.revokable&&(t.revokable=!0),i.explicitAction&&(t.dismissOnScroll=!1,t.dismissOnTimeout=!1)),t},i}(),t.initialise=function(i,n,r){var a=new t.Law(i.law);n||(n=function(){}),r||(r=function(){});var s=Object.keys(t.status),o=e.getCookie("cookieconsent_status");s.indexOf(o)>=0?n(new t.Popup(i)):t.getCountryCode(i,(function(e){delete i.law,delete i.location,e.code&&(i=a.applyLaw(i,e.code)),n(new t.Popup(i))}),(function(e){delete i.law,delete i.location,r(e,new t.Popup(i))}))},t.getCountryCode=function(e,i,n){e.law&&e.law.countryCode?i({code:e.law.countryCode}):e.location?new t.Location(e.location).locate((function(t){i(t||{})}),n):i({})},t.utils=e,t.hasInitialised=!0,window.cookieconsent=t}}(window.cookieconsent||{}),"undefined"!=typeof window&&function(t,e){"object"==typeof exports&&"object"==typeof module?module.exports=e():"function"==typeof define&&define.amd?define([],e):"object"==typeof exports?exp
vendor: 1,701 bytes, line 2
2orts.Hls=e():t.Hls=e()}(this,(function(){return function(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}return i.m=t,i.c=e,i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},i.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},i.t=function(t,e){if(1&e&&(t=i(t)),8&e)return t;if(4&e&&"object"==typeof t&&t&&t.__esModule)return t;var n=Object.create(null);if(i.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:t}),2&e&&"string"!=typeof t)for(var r in t)i.d(n,r,(function(e){return t[e]}).bind(null,r));return n},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/dist/",i(i.s=13)}([function(t,e,i){"use strict";i.d(e,"a",(function(){return u})),i.d(e,"b",(function(){return d}));var n=i(5);function r(){}var a={trace:r,debug:r,log:r,warn:r,info:r,error:r},s=a;function o(t,e){return"["+t+"] > "+e}var l=Object(n.a)();function c(t){var e=l.console[t];return e?function(){for(var i=arguments.length,n=new Array(i),r=0;r<i;r++)n[r]=arguments[r];n[0]&&(n[0]=o(t,n[0])),e.apply(l.console,n)}:r}var u=function(t){if(l.console&&!0===t||"object"==typeof t){!function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];i.forEach((function(e){s[e]=t[e]?t[e].bind(t):c(e)}))}(t,"debug","log","info","warn","error");try{s.log()}catch(t){s=a}}else s=a},d=s},function(t,e,i){"use strict";
2e.a={MEDIA_ATTACHING:"hlsMediaAttaching",MEDIA_ATTACHED:"hlsMediaAttached",MEDIA_DETACHING:"hlsMediaDetaching",MEDIA_DETACHED:"hlsMediaDetached",BUFFER_RESET:"hlsBufferReset",BUFFER_CODECS:"hlsBufferCodecs",BUFFER_CREATED:"hlsBufferCreated",BUFFER_APPENDING:"hlsBufferAppending",BUFFER_APPENDED:"hlsBufferAppended",BUFFER_EOS:"hlsBufferEos",BUFFER_FLUSHING:"hlsBufferFlushing",BUFFER_FLUSHED:"hlsBufferFlushed",MANIFEST_LOADING:"hlsManifestLoading",MANIFEST_LOADED:"hlsManifestLoaded",MANIFEST_PARSED:"hlsManifestParsed",LEVEL_SWITCHING:"hlsLevelSwitching",LEVEL_SWITCHED:"hlsLevelSwitched",LEVEL_LOADING:"hlsLevelLoading",LEVEL_LOADED:"hlsLevelLoaded",LEVEL_UPDATED:"hlsLevelUpdated",LEVEL_PTS_UPDATED:"hlsLevelPtsUpdated",LEVELS_UPDATED:"hlsLevelsUpdated",AUDIO_TRACKS_UPDATED:"hlsAudioTracksUpdated",AUDIO_TRACK_SWITCHING:"hlsAudioTrackSwitching",AUDIO_TRACK_SWITCHED:"hlsAudioTrackSwitched",AUDIO_TRACK_LOADING:"hlsAudioTrackLoading",AUDIO_TRACK_LOADED:"hlsAudioTrackLoaded",SUBTITLE_TRACKS_UPDATED:"hlsSubtitleTracksUpdated",SUBTITLE_TRACK_SWITCH:"hlsSubtitleTrackSwitch",SUBTITLE_TRACK_LOADING:"hlsSubtitleTrackLoading",SUBTITLE_TRACK_LOADED:"hlsSubtitleTrackLoaded",SUBTITLE_FRAG_PROCESSED:"hlsSubtitleFragProcessed",CUES_PARSED:"hlsCuesParsed",NON_NATIVE_TEXT_TRACKS_FOUND:"hlsNonNativeTextTracksFound",INIT_PTS_FOUND:"hlsInitPtsFound",FRAG_LOADING:"hlsFragLoading",FRAG_LOAD_PROGRESS:"hlsFragLoadProgress",FRAG_LOAD_EMERGENCY_ABORTED:"hlsFragLoadEmergencyAborted",FRAG_LOADED:"hlsFragLoaded",FRAG_DECRYPTED:"hlsFragDecrypted",FRAG_PARSING_INIT_SEGMENT:"hlsFragParsingInitSegment",FRAG_PARSING_USERDATA:"hlsFragParsingUserdata",FRAG_PARSING_METADATA:"hlsFragParsingMetadata",FRAG_PARSING_DATA:"hlsFragParsingData",FRAG_PARSED:"hl
2sFragParsed",FRAG_BUFFERED:"hlsFragBuffered",FRAG_CHANGED:"hlsFragChanged",FPS_DROP:"hlsFpsDrop",FPS_DROP_LEVEL_CAPPING:"hlsFpsDropLevelCapping",ERROR:"hlsError",DESTROYING:"hlsDestroying",KEY_LOADING:"hlsKeyLoading",KEY_LOADED:"hlsKeyLoaded",STREAM_STATE_TRANSITION:"hlsStreamStateTransition",LIVE_BACK_BUFFER_REACHED:"hlsLiveBackBufferReached"}},function(t,e,i){"use strict";var n,r;i.d(e,"b",(function(){return n})),i.d(e,"a",(function(){return r})),function(t){t.NETWORK_ERROR="networkError",t.MEDIA_ERROR="mediaError",t.KEY_SYSTEM_ERROR="keySystemError",t.MUX_ERROR="muxError",t.OTHER_ERROR="otherError"}(n||(n={})),function(t){t.KEY_SYSTEM_NO_KEYS="keySystemNoKeys",t.KEY_SYSTEM_NO_ACCESS="keySystemNoAccess",t.KEY_SYSTEM_NO_SESSION="keySystemNoSession",t.KEY_SYSTEM_LICENSE_REQUEST_FAILED="keySystemLicenseRequestFailed",t.KEY_SYSTEM_NO_INIT_DATA="keySystemNoInitData",t.MANIFEST_LOAD_ERROR="manifestLoadError",t.MANIFEST_LOAD_TIMEOUT="manifestLoadTimeOut",t.MANIFEST_PARSING_ERROR="manifestParsingError",t.MANIFEST_INCOMPATIBLE_CODECS_ERROR="manifestIncompatibleCodecsError",t.LEVEL_EMPTY_ERROR="levelEmptyError",t.LEVEL_LOAD_ERROR="levelLoadError",t.LEVEL_LOAD_TIMEOUT="levelLoadTimeOut",t.LEVEL_SWITCH_ERROR="levelSwitchError",t.AUDIO_TRACK_LOAD_ERROR="audioTrackLoadError",t.AUDIO_TRACK_LOAD_TIMEOUT="audioTrackLoadTimeOut",t.FRAG_LOAD_ERROR="fragLoadError",t.FRAG_LOAD_TIMEOUT="fragLoadTimeOut",t.FRAG_DECRYPT_ERROR="fragDecryptError",t.FRAG_PARSING_ERROR="fragParsingError",t.REMUX_ALLOC_ERROR="remuxAllocError",t.KEY_LOAD_ERROR="keyLoadError",t.KEY_LOAD_TIMEOUT="keyLoadTimeOut",t.BUFFER_ADD_CODEC_ERROR="bufferAddCodecError",t.BUFFER_APPEND_ERROR="bufferAppendError",t.BUFFER_APPENDING_ERROR="bufferAppendingError",t.BUFFER_STALLED_ERROR="bufferStalledError",t.BUFFER_FULL_ERROR="bufferFullError",t.BUFFER_SEEK_OVER_HOLE="bufferSeekOverHole",t.BUFFER_NUDGE_ON_STALL="bufferNudgeOnStall",t.INTERNAL_EXCEPTION="internalException"}(r||(r={}))},function(t,e,i){"use strict";i.d(e,"a",(function(){return n}));var n=Number.isFinite||function(t){return"number"==typeof t&&isFinite(t)}},function(t,e,i){"use strict";i.d(e,"b",(function(){return o}));var n,r=i(5),a=function(){function t(){}return t.isHeader=function(t,e){return e+10<=t.length&&73===t[e]&&68===t[e+1]&&51===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.isFooter=function(t,e){return e+10<=t.length&&51===t[e]&&68===t[e+1]&&73===t[e+2]&&t[e+3]<255&&t[e+4]<255&&t[e+6]<128&&t[e+7]<128&&t[e+8]<128&&t[e+9]<128},t.getID3Data=function(e,i){for(var n=i,r=0;t.isHeader(e,i);)r+=10,r+=t._readSize(e,i+6),t.isFooter(e,i+10)&&(r+=10),i+=r;if(r>0)return e.subarray(n,n+r)},t._readSize=function(t,e){var i=0;return i=(127&t[e])<<21,i|=(127&t[e+1])<<14,(i|=(127&t[e+2])<<7)|127&t[e+3]},t.getTimeStamp=function(e){for(var i=t.getID3Frames(e),n=0;n<i.length;n++){var r=i[n];if(t.isTimeStampFrame(r))return t._readTimeStamp(r)}},t.isTimeStampFrame=function(t){return t&&"PRIV"===t.key&&"com.apple.streaming.transportStreamTimestamp"===t.info},t._getFrameData=function(e){var i=String.fromCharCode(e[0],e[1],e[2],e[3]),n=t._readSize(e,4);return{type:i,size:n,data:e.subarray(10,10+n)}},t.getID3Frames=function(e){for(var i=0,n=[];t.isHeader(e,i);){for(var r=t._readSize(e,i+6),a=(i+=10)+r;i+8<a;){var s=t._getFrameData(e.subarray(i)),o=t._decodeFrame(s);o&&n.push(o),i+=s.size+10}t.isFooter(e,i)&&(i+=10)}return n},t._decodeFrame=function(e){return"PRIV"===e.type?t._decodePrivFrame(e):"T"===e.type[0]?t._decodeTextFrame(e):"W"===e.type[0]?t._decodeURLFrame(e):void 0},t._readTimeStamp=function(t){if(8===t.data.byteLength){var e=new Uint8Array(t.data),i=(e[4]<<23)+(e[5]<<15)+(e[6]<<7)+e[7];return i/=45,1&e[3]&&(i+=47721858.84),Math.round(i)}},t._decodePrivFrame=function(e){if(!(e.size<2)){var i=t._utf8ArrayToStr(e.data,!0),n=new Uint8Array(e.data.subarray(i.length+1));return{key:e.type,info:i,data:n.buffer}}},t._decodeTextFrame=function(e){if(!(e.size<2)){if("TXXX"===e.type){var i=1,n=t._utf8ArrayToStr(e.data.subarray(i),!0),r=t._utf8ArrayToStr(e.data.subarray(i+=n.length+1));return{key:e.type,info:n,data:r}}var a=t._utf8ArrayToStr(e.data.subarray(1));return{key:e.type,data:a}}},t._decodeURLFrame=function(e){if("WXXX"===e.type){if(e.size<2)return;var i=1,n=t._utf8ArrayToStr(e.data.subarray(i)),r=t._utf8ArrayToStr(e.data.subarray(i+=n.length+1));return{key:e.type,info:n,data:r}}var a=t._utf8ArrayToStr(e.data);return{key:e.type,data:a}},t._utf8ArrayToStr=function(t,e){void 0===e&&(e=!1);var i=s();if(i){var n=i.decode(t);if(e){var r=n.indexOf("\0");return-1!==r?n.substring(0,r):n}return n.replace(/\0/g,"")}for(var a,o,l,c=t.length,u="",d=0;d<c;){if(0===(a=t[d++])&&e)return u;if(0!==a&&3!==a)switch(a>>
vendor: 4,487 bytes, line 2
24){case 0:case 1:case 2:case 3:case 4:case 5:case 6:case 7:u+=String.fromCharCode(a);break;case 12:case 13:o=t[d++],u+=String.fromCharCode((31&a)<<6|63&o);break;case 14:o=t[d++],l=t[d++],u+=String.fromCharCode((15&a)<<12|(63&o)<<6|(63&l)<<0)}}return u},t}();function s(){var t=Object(r.a)();return n||void 0===t.TextDecoder||(n=new t.TextDecoder("utf-8")),n}var o=a._utf8ArrayToStr;e.a=a},function(t,e,i){"use strict";function n(){return"undefined"==typeof window?self:window}i.d(e,"a",(function(){return n}))},function(t,e,i){var n,r,a,s,o;n=/^((?:[a-zA-Z0-9+\-.]+:)?)(\/\/[^\/?#]*)?((?:[^\/?#]*\/)*[^;?#]*)?(;[^?#]*)?(\?[^#]*)?(#.*)?$/,r=/^([^\/?#]*)(.*)$/,a=/(?:\/|^)\.(?=\/)/g,s=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,o={buildAbsoluteURL:function(t,e,i){if(i=i||{},t=t.trim(),!(e=e.trim())){if(!i.alwaysNormalize)return t;var n=o.parseURL(t);if(!n)throw new Error("Error trying to parse base URL.");return n.path=o.normalizePath(n.path),o.buildURLFromParts(n)}var a=o.parseURL(e);if(!a)throw new Error("Error trying to parse relative URL.");if(a.scheme)return i.alwaysNormalize?(a.path=o.normalizePath(a.path),o.buildURLFromParts(a)):e;var s=o.parseURL(t);if(!s)throw new Error("Error trying to parse base URL.");if(!s.netLoc&&s.path&&"/"!==s.path[0]){var l=r.exec(s.path);s.netLoc=l[1],s.path=l[2]}s.netLoc&&!s.path&&(s.path="/");var c={scheme:s.scheme,netLoc:a.netLoc,path:null,params:a.params,query:a.query,fragment:a.fragment};if(!a.netLoc&&(c.netLoc=s.netLoc,"/"!==a.path[0]))if(a.path){var u=s.path,d=u.substring(0,u.lastIndexOf("/")+1)+a.path;c.path=o.normalizePath(d)}else c.path=s.path,a.params||(c.params=s.params,a.query||(c.query=s.query));return null===c.path&&(c.path=i.alwaysNormalize?o.normalizePath(a.path):a.path),o.buildURLFromParts(c)},parseURL:function(t){var e=n.exec(t);return e?{scheme:e[1]||"",netLoc:e[2]||"",path:e[3]||"",params:e[4]||"",query:e[5]||"",fragment:e[6]||""}:null},normalizePath:function(t){for(t=t.split("").reverse().join("").replace(a,"");t.length!==(t=t.replace(s,"")).length;);return t.split("").reverse().join("")},buildURLFromParts:function(t){return t.scheme+t.netLoc+t.path+t.params+t.query+t.fragment}},t.exports=o},function(t,e,i){"use strict";var n=function(){function t(t,e){this.subtle=t,this.aesIV=e}return t.prototype.decrypt=function(t,e){return this.subtle.decrypt({name:"AES-CBC",iv:this.aesIV},e,t)},t}(),r=function(){function t(t,e){this.subtle=t,this.key=e}return t.prototype.expandKey=function(){return this.subtle.importKey("raw",this.key,{name:"AES-CBC"},!1,["encrypt","decrypt"])},t}(),a=function(){function t(){this.rcon=[0,1,2,4,8,16,32,64,128,27,54],this.subMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.invSubMix=[new Uint32Array(256),new Uint32Array(256),new Uint32Array(256),new Uint32Array(256)],this.sBox=new Uint32Array(256),this.invSBox=new Uint32Array(256),this.key=new Uint32Array(0),this.initTable()}var e=t.prototype;return e.uint8ArrayToUint32Array_=function(t){for(var e=new DataView(t),i=new Uint32Array(4),n=0;n<4;n++)i[n]=e.getUint32(4*n);return i},e.initTable=function(){var t=this.sBox,e=this.invSBox,i=this.subMix,n=i[0],r=i[1],a=i[2],s=i[3],o=this.invSubMix,l=o[0],c=o[1],u=o[2],d=o[3],h=new Uint32Array(256),f=0,p=0,g=0;for(g=0;g<256;g++)h[g]=g<128?g<<1:g<<1^283;for(g=0;g<256;g++){var m=p^p<<1^p<<2^p<<3^p<<4;t[f]=m=m>>>8^255&m^99,e[m]=f;var v=h[f],y=h[v],b=h[y],w=257*h[m]^16843008*m;n[f]=w<<24|w>>>8,r[f]=w<<16|w>>>16,a[f]=w<<8|w>>>24,s[f]=w,l[m]=(w=16843009*b^65537*y^257*v^16843008*f)<<24|w>>>8,c[m]=w<<16|w>>>16,u[m]=w<<8|w>>>24,d[m]=w,f?(f=v^h[h[h[b^v]]],p^=h[h[p]]):f=p=1}},e.expandKey=function(t){for(var e=this.uint8ArrayToUint32Array_(t),i=!0,n=0;n<e.length&&i;)i=e[n]===this.key[n],n++;if(!i){this.key=e;var r=this.keySize=e.length;if(4!==r&&6!==r&&8!==r)throw new Error("Invalid aes key size="+r);var a,s,o,l,c=this.ksRows=4*(r+6+1),u=this.keySchedule=new Uint32Array(c),d=this.invKeySchedule=new Uint32Array(c),h=this.sBox,f=this.rcon,p=this.invSubMix,g=p[0],m=p[1],v=p[2],y=p[3];for(a=0;a<c;a++)a<r?o=u[a]=e[a]:(l=o,a%r==0?(l=h[(l=l<<8|l>>>24)>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l],l^=f[a/r|0]<<24):r>6&&a%r==4&&(l=h[l>>>24]<<24|h[l>>>16&255]<<16|h[l>>>8&255]<<8|h[255&l]),u[a]=o=(u[a-r]^l)>>>0);for(s=0;s<c;s++)a=c-s,l=3&s?u[a]:u[a-4],d[s]=s<4||a<=4?l:g[h[l>>>24]]^m[h[l>>>16&255]]^v[h[l>>>8&255]]^y[h[255&l]],d[s]=d[s]>>>0}},e.networkToHostOrderSwap=function(t){return t<<24|(65280&t)<<8|(16711680&t)>>8|t>>>24}
vendor: 4,156 bytes, line 2
2,e.decrypt=function(t,e,i,n){for(var r,a,s,o,l,c,u,d,h,f,p,g,m,v,y,b,w,T=this.keySize+6,x=this.invKeySchedule,E=this.invSBox,S=this.invSubMix,_=S[0],k=S[1],C=S[2],A=S[3],R=this.uint8ArrayToUint32Array_(i),L=R[0],D=R[1],O=R[2],P=R[3],I=new Int32Array(t),M=new Int32Array(I.length),F=this.networkToHostOrderSwap;e<I.length;){for(h=F(I[e]),f=F(I[e+1]),p=F(I[e+2]),g=F(I[e+3]),l=h^x[0],c=g^x[1],u=p^x[2],d=f^x[3],m=4,v=1;v<T;v++)a=_[c>>>24]^k[u>>16&255]^C[d>>8&255]^A[255&l]^x[m+1],s=_[u>>>24]^k[d>>16&255]^C[l>>8&255]^A[255&c]^x[m+2],o=_[d>>>24]^k[l>>16&255]^C[c>>8&255]^A[255&u]^x[m+3],l=r=_[l>>>24]^k[c>>16&255]^C[u>>8&255]^A[255&d]^x[m],c=a,u=s,d=o,m+=4;r=E[l>>>24]<<24^E[c>>16&255]<<16^E[u>>8&255]<<8^E[255&d]^x[m],a=E[c>>>24]<<24^E[u>>16&255]<<16^E[d>>8&255]<<8^E[255&l]^x[m+1],s=E[u>>>24]<<24^E[d>>16&255]<<16^E[l>>8&255]<<8^E[255&c]^x[m+2],o=E[d>>>24]<<24^E[l>>16&255]<<16^E[c>>8&255]<<8^E[255&u]^x[m+3],m+=3,M[e]=F(r^L),M[e+1]=F(o^D),M[e+2]=F(s^O),M[e+3]=F(a^P),L=h,D=f,O=p,P=g,e+=4}return n?(w=(b=(y=M.buffer).byteLength)&&new DataView(y).getUint8(b-1))?y.slice(0,b-w):y:M.buffer},e.destroy=function(){this.key=void 0,this.keySize=void 0,this.ksRows=void 0,this.sBox=void 0,this.invSBox=void 0,this.subMix=void 0,this.invSubMix=void 0,this.keySchedule=void 0,this.invKeySchedule=void 0,this.rcon=void 0},t}(),s=i(2),o=i(0),l=i(1),c=i(5),u=Object(c.a)(),d=function(){function t(t,e,i){var n=(void 0===i?{}:i).removePKCS7Padding,r=void 0===n||n;if(this.logEnabled=!0,this.observer=t,this.config=e,this.removePKCS7Padding=r,r)try{var a=u.crypto;a&&(this.subtle=a.subtle||a.webkitSubtle)}catch(t){}this.disableWebCrypto=!this.subtle}var e=t.prototype;return e.isSync=function(){return this.disableWebCrypto&&this.config.enableSoftwareAES},e.decrypt=function(t,e,i,s){var l=this;if(this.disableWebCrypto&&this.config.enableSoftwareAES){this.logEnabled&&(o.b.log("JS AES decrypt"),this.logEnabled=!1);var c=this.decryptor;c||(this.decryptor=c=new a),c.expandKey(e),s(c.decrypt(t,0,i,this.removePKCS7Padding))}else{this.logEnabled&&(o.b.log("WebCrypto AES decrypt"),this.logEnabled=!1);var u=this.subtle;this.key!==e&&(this.key=e,this.fastAesKey=new r(u,e)),this.fastAesKey.expandKey().then((function(r){new n(u,i).decrypt(t,r).catch((function(n){l.onWebCryptoError(n,t,e,i,s)})).then((function(t){s(t)}))})).catch((function(n){l.onWebCryptoError(n,t,e,i,s)}))}},e.onWebCryptoError=function(t,e,i,n,r){this.config.enableSoftwareAES?(o.b.log("WebCrypto Error, disable WebCrypto API"),this.disableWebCrypto=!0,this.logEnabled=!0,this.decrypt(e,i,n,r)):(o.b.error("decrypting error : "+t.message),this.observer.trigger(l.a.ERROR,{type:s.b.MEDIA_ERROR,details:s.a.FRAG_DECRYPT_ERROR,fatal:!0,reason:t.message}))},e.destroy=function(){var t=this.decryptor;t&&(t.destroy(),this.decryptor=void 0)},t}();e.a=d},function(t,e,i){"use strict";var n=Object.prototype.hasOwnProperty,r="~";function a(){}function s(t,e,i){this.fn=t,this.context=e,this.once=i||!1}function o(t,e,i,n,a){if("function"!=typeof i)throw new TypeError("The listener must be a function");var o=new s(i,n||t,a),l=r?r+e:e;return t._events[l]?t._events[l].fn?t._events[l]=[t._events[l],o]:t._events[l].push(o):(t._events[l]=o,t._eventsCount++),t}function l(t,e){0==--t._eventsCount?t._events=new a:delete t._events[e]}function c(){this._events=new a,this._eventsCount=0}Object.create&&(a.prototype=Object.create(null),(new a).__proto__||(r=!1)),c.prototype.eventNames=function(){var t,e,i=[];if(0===this._eventsCount)return i;for(e in t=this._events)n.call(t,e)&&i.push(r?e.slice(1):e);return Object.getOwnPropertySymbols?i.concat(Object.getOwnPropertySymbols(t)):i},c.prototype.listeners=function(t){var e=this._events[r?r+t:t];if(!e)return[];if(e.fn)return[e.fn];for(var i=0,n=e.length,a=new Array(n);i<n;i++)a[i]=e[i].fn;return a},c.prototype.listenerCount=function(t){var e=this._events[r?r+t:t];return e?e.fn?1:e.length:0},c.prototype.emit=function(t,e,i,n,a,s){var o=r?r+t:t;if(!this._events[o])return!1;var l,c,u=this._events[o],d=arguments.length;if(u.fn){switch(u.once&&this.removeListener(t,u.fn,void 0,!0),d){case 1:return u.fn.call(u.context),!0;case 2:return u.fn.call(u.context,e),!0;
vendor: 9,177 bytes, line 2
2case 3:return u.fn.call(u.context,e,i),!0;case 4:return u.fn.call(u.context,e,i,n),!0;case 5:return u.fn.call(u.context,e,i,n,a),!0;case 6:return u.fn.call(u.context,e,i,n,a,s),!0}for(c=1,l=new Array(d-1);c<d;c++)l[c-1]=arguments[c];u.fn.apply(u.context,l)}else{var h,f=u.length;for(c=0;c<f;c++)switch(u[c].once&&this.removeListener(t,u[c].fn,void 0,!0),d){case 1:u[c].fn.call(u[c].context);break;case 2:u[c].fn.call(u[c].context,e);break;case 3:u[c].fn.call(u[c].context,e,i);break;case 4:u[c].fn.call(u[c].context,e,i,n);break;default:if(!l)for(h=1,l=new Array(d-1);h<d;h++)l[h-1]=arguments[h];u[c].fn.apply(u[c].context,l)}}return!0},c.prototype.on=function(t,e,i){return o(this,t,e,i,!1)},c.prototype.once=function(t,e,i){return o(this,t,e,i,!0)},c.prototype.removeListener=function(t,e,i,n){var a=r?r+t:t;if(!this._events[a])return this;if(!e)return l(this,a),this;var s=this._events[a];if(s.fn)s.fn!==e||n&&!s.once||i&&s.context!==i||l(this,a);else{for(var o=0,c=[],u=s.length;o<u;o++)(s[o].fn!==e||n&&!s[o].once||i&&s[o].context!==i)&&c.push(s[o]);c.length?this._events[a]=1===c.length?c[0]:c:l(this,a)}return this},c.prototype.removeAllListeners=function(t){var e;return t?this._events[e=r?r+t:t]&&l(this,e):(this._events=new a,this._eventsCount=0),this},c.prototype.off=c.prototype.removeListener,c.prototype.addListener=c.prototype.on,c.prefixed=r,c.EventEmitter=c,t.exports=c},function(t,e,i){"use strict";var n=i(1),r=i(2),a=i(7),s=i(3),o=i(0),l=i(5);function c(t,e){return 255===t[e]&&240==(246&t[e+1])}function u(t,e){return 1&t[e+1]?7:9}function d(t,e){return(3&t[e+3])<<11|t[e+4]<<3|(224&t[e+5])>>>5}function h(t,e){return!!(e+1<t.length&&c(t,e))}function f(t,e){if(h(t,e)){var i=u(t,e);if(e+i>=t.length)return!1;var n=d(t,e);if(n<=i)return!1;var r=e+n;if(r===t.length||r+1<t.length&&c(t,r))return!0}return!1}function p(t,e,i,a,s){if(!t.samplerate){var l=function(t,e,i,a){var s,l,c,u,d,h=navigator.userAgent.toLowerCase(),f=a,p=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];if(s=1+((192&e[i+2])>>>6),!((l=(60&e[i+2])>>>2)>p.length-1))return u=(1&e[i+2])<<2,o.b.log("manifest codec:"+a+",ADTS data:type:"+s+",sampleingIndex:"+l+"["+p[l]+"Hz],channelConfig:"+(u|=(192&e[i+3])>>>6)),/firefox/i.test(h)?l>=6?(s=5,d=new Array(4),c=l-3):(s=2,d=new Array(2),c=l):-1!==h.indexOf("android")?(s=2,d=new Array(2),c=l):(s=5,d=new Array(4),a&&(-1!==a.indexOf("mp4a.40.29")||-1!==a.indexOf("mp4a.40.5"))||!a&&l>=6?c=l-3:((a&&-1!==a.indexOf("mp4a.40.2")&&(l>=6&&1===u||/vivaldi/i.test(h))||!a&&1===u)&&(s=2,d=new Array(2)),c=l)),d[0]=s<<3,d[0]|=(14&l)>>1,d[1]|=(1&l)<<7,d[1]|=u<<3,5===s&&(d[1]|=(14&c)>>1,d[2]=(1&c)<<7,d[2]|=8,d[3]=0),{config:d,samplerate:p[l],channelCount:u,codec:"mp4a.40."+s,manifestCodec:f};t.trigger(n.a.ERROR,{type:r.b.MEDIA_ERROR,details:r.a.FRAG_PARSING_ERROR,fatal:!0,reason:"invalid ADTS sampling index:"+l})}(e,i,a,s);t.config=l.config,t.samplerate=l.samplerate,t.channelCount=l.channelCount,t.codec=l.codec,t.manifestCodec=l.manifestCodec,o.b.log("parsed codec:"+t.codec+",rate:"+l.samplerate+",nb channel:"+l.channelCount)}}function g(t){return 9216e4/t}function m(t,e,i,n,r){var a=function(t,e,i,n,r){var a,s,o=t.length;if(a=u(t,e),s=d(t,e),(s-=a)>0&&e+a+s<=o)return{headerLength:a,frameLength:s,stamp:i+n*r}}(e,i,n,r,g(t.samplerate));if(a){var s=a.stamp,o=a.headerLength,l=a.frameLength,c={unit:e.subarray(i+o,i+o+l),pts:s,dts:s};return t.samples.push(c),{sample:c,length:l+o}}}var v=i(4),y=function(){function t(t,e,i){this.observer=t,this.config=i,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,i,n){this._audioTrack={container:"audio/adts",type:"audio",id:0,sequenceNumber:0,isAAC:!0,samples:[],len:0,manifestCodec:e,duration:n,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(t){if(!t)return!1;for(var e=(v.a.getID3Data(t,0)||[]).length,i=t.length;e<i;e++)if(f(t,e))return o.b.log("ADTS sync word found !"),!0;return!1},e.append=function(t,e,i,n){for(var r=this._audioTrack,a=v.a.getID3Data(t,0)||[],l=v.a.getTimeStamp(a),c=Object(s.a)(l)?90*l:9e4*e,u=0,d=c,f=t.length,g=a.length,y=[{pts:d,dts:d,data:a}];g<f-1;)if(h(t,g)&&g+5<f){p(r,this.observer,t,g,r.manifestCodec);var b=m(r,t,g,c,u);if(!b){o.b.log("Unable to parse AAC frame");break}g+=b.length,d=b.sample.pts,u++}else v.a.isHeader(t,g)?(a=v.a.getID3Data(t,g),y.push({pts:d,dts:d,data:a}),g+=a.length):g++;this.remuxer.remux(r,{samples:[]},{samples:y,inputTimeScale:9e4},{samples:[]},e,i,n)},e.destroy=function(){},t}(),b=i(10),w={BitratesMap:[32,64,96,128,160,192,224,256,288,320,352,384,416,448,32,48,56,64,80,96,112,128,160,192,224,256,320,384,32,40,48,56,64,80,96,112,128,160,192,224,256,320,32,48,56,64,80,96,112,128,144,160,176,192,224,256,8,16,24,32,40,48,56,64,80,96,112,128,144,160],SamplingRateMap:[44100,48e3,32e3,22050,24e3,16e3,11025,12e3,8e3],SamplesCoefficients:[[0,72,144,12],[0,0,0,0],[0,72,144,12],[0,144,144,12]],BytesInSlot:[0,1,1,4],appendFrame:function(t,e,i,n,r){if(!(i+24>e.length)){var a=this.parseHeader(e,i);if(a&&i+a.frameLength<=e.length){var s=n+r*(9e4*a.samplesPerFrame/a.sampleRate),o={unit:e.subarray(i,i+a.frameLength),pts:s,dts:s};return t.config=[],t.channelCount=a.channelCount,t.samplerate=a.sampleRate,t.samples.push(o),{sample:o,length:a.frameLength}}}},parseHeader:function(t,e){var i=t[e+1]>>3&3,n=t[e+1]>>1&3,r=t[e+2]>>4&15,a=t[e+2]>>2&3;if(1!==i&&0!==r&&15!==r&&3!==a){var s=w.SamplingRateMap[3*(3===i?0:2===i?1:2)+a],o=w.SamplesCoefficients[i][n],l=w.BytesInSlot[n],c=8*o*l;return{sampleRate:s,channelCount:t[e+3]>>6==3?1:2,frameLength:parseInt(o*(1e3*w.BitratesMap[14*(3===i?3-n:3===n?3:4)+r-1])/s+(t[e+2]>>1&1),10)*l,samplesPerFrame:c}}},isHeaderPattern:function(t,e){return 255===t[e]&&224==(224&t[e+1])&&0!=(6&t[e+1])},isHeader:function(t,e){return!!(e+1<t.length&&this.isHeaderPattern(t,e))},probe:function(t,e){if(e+1<t.length&&this.isHeaderPattern(t,e)){var i=this.parseHeader(t,e),n=4;i&&i.frameLength&&(n=i.frameLength);var r=e+n;if(r===t.length||r+1<t.length&&this.isHeaderPattern(t,r))return!0}return!1}},T=w,x=function(){function t(t){this.data=t,this.bytesAvailable=t.byteLength,this.word=0,this.bitsAvailable=0}var e=t.prototype;return e.loadWord=function(){var t=this.data,e=this.bytesAvailable,i=t.byteLength-e,n=new Uint8Array(4),r=Math.min(4,e);if(0===r)throw new Error("no bytes available");n.set(t.subarray(i,i+r)),this.word=new DataView(n.buffer).getUint32(0),this.bitsAvailable=8*r,this.bytesAvailable-=r},e.skipBits=function(t){var e;this.bitsAvailable>t?(this.word<<=t,this.bitsAvailable-=t):(t-=this.bitsAvailable,t-=(e=t>>3)>>3,this.bytesAvailable-=e,this.loadWord(),this.word<<=t,this.bitsAvailable-=t)},e.readBits=function(t){var e=Math.min(this.bitsAvailable,t),i=this.word>>>32-e;return t>32&&o.b.error("Cannot read more than 32 bits at a time"),this.bitsAvailable-=e,this.bitsAvailable>0?this.word<<=e:this.bytesAvailable>0&&this.loadWord(),(e=t-e)>0&&this.bitsAvailable?i<<e|this.readBits(e):i},e.skipLZ=function(){var t;for(t=0;t<this.bitsAvailable;++t)if(0!=(this.word&2147483648>>>t))return this.word<<=t,this.bitsAvailable-=t,t;return this.loadWord(),t+this.skipLZ()},e.skipUEG=function(){this.skipBits(1+this.skipLZ())},e.skipEG=function(){this.skipBits(1+this.skipLZ())},e.readUEG=function(){var t=this.skipLZ();return this.readBits(t+1)-1},e.readEG=function(){var t=this.readUEG();return 1&t?1+t>>>1:-1*(t>>>1)},e.readBoolean=function(){return 1===this.readBits(1)},e.readUByte=function(){return this.readBits(8)},e.readUShort=function(){return this.readBits(16)},e.readUInt=function(){return this.readBits(32)},e.skipScalingList=function(t){var e,i=8,n=8;for(e=0;e<t;e++)0!==n&&(n=(i+this.readEG()+256)%256),i=0===n?i:n},e.readSPS=function(){var t,e,i,n,r,a,s,o=0,l=0,c=0,u=0,d=this.readUByte.bind(this),h=this.readBits.bind(this),f=this.readUEG.bind(this),p=this.readBoolean.bind(this),g=this.skipBits.bind(this),m=this.skipEG.bind(this),v=this.skipUEG.bind(this),y=this.skipScalingList.bind(this);if(d(),t=d(),h(5),g(3),d(),v(),100===t||110===t||122===t||244===t||44===t||83===t||86===t||118===t||128===t){var b=f();if(3===b&&g(1),v(),v(),g(1),p())for(a=3!==b?8:12,s=0;s<a;s++)p()&&y(s<6?16:64)}v();var w=f();if(0===w)f();else if(1===w)for(g(1),m(),m(),e=f(),s=0;s<e;s++)m();v(),g(1),i=f(),n=f(),0===(r=h(1))&&g(1),g(1),p()&&(o=f(),l=f(),c=f(),u=f());var T=[1,1];if(p()&&p())switch(d()){case 1:T=[1,1];break;case 2:T=[12,11];break;case 3:T=[10,11];break;case 4:T=[16,11];break;case 5:T=[40,33];break;case 6:T=[24,11];break;case 7:T=[20,11];break;case 8:T=[32,11];break;case 9:T=[80,33];break;case 10:T=[18,11];break;case 11:T=[15,11];break;case 12:T=[64,33];break;case 13:T=[160,99];break;case 14:T=[4,3];break;case 15:T=[3,2];break;case 16:T=[2,1];break;case 255:T=[d()<<8|d(),d()<<8|d()]}return{width:Math.ceil(16*(i+1)-2*o-2*l),height:(2-r)*(n+1)*16-(r?2:4)*(c+u),pixelRatio:T}},e.readSliceType=function(){return this.readUByte(),this.readUEG(),this.readUEG()},t}(),E=function(){function t(t,e,i,n){this.decryptdata=i,this.discardEPB=n,this.decrypter=new a.a(t,e,{removePKCS7Padding:!1})}var e=t.prototype;return e.decryptBuffer=function(t,e){this.decrypter.decrypt(t,this.decryptdata.key.buffer,this.decryptdata.iv.buffer,e)}
vendor: 9,860 bytes, line 2
2,e.decryptAacSample=function(t,e,i,n){var r=t[e].unit,a=r.subarray(16,r.length-r.length%16),s=a.buffer.slice(a.byteOffset,a.byteOffset+a.length),o=this;this.decryptBuffer(s,(function(a){a=new Uint8Array(a),r.set(a,16),n||o.decryptAacSamples(t,e+1,i)}))},e.decryptAacSamples=function(t,e,i){for(;;e++){if(e>=t.length)return void i();if(!(t[e].unit.length<32)){var n=this.decrypter.isSync();if(this.decryptAacSample(t,e,i,n),!n)return}}},e.getAvcEncryptedData=function(t){for(var e=16*Math.floor((t.length-48)/160)+16,i=new Int8Array(e),n=0,r=32;r<=t.length-16;r+=160,n+=16)i.set(t.subarray(r,r+16),n);return i},e.getAvcDecryptedUnit=function(t,e){e=new Uint8Array(e);for(var i=0,n=32;n<=t.length-16;n+=160,i+=16)t.set(e.subarray(i,i+16),n);return t},e.decryptAvcSample=function(t,e,i,n,r,a){var s=this.discardEPB(r.data),o=this.getAvcEncryptedData(s),l=this;this.decryptBuffer(o.buffer,(function(o){r.data=l.getAvcDecryptedUnit(s,o),a||l.decryptAvcSamples(t,e,i+1,n)}))},e.decryptAvcSamples=function(t,e,i,n){for(;;e++,i=0){if(e>=t.length)return void n();for(var r=t[e].units;!(i>=r.length);i++){var a=r[i];if(!(a.length<=48||1!==a.type&&5!==a.type)){var s=this.decrypter.isSync();if(this.decryptAvcSample(t,e,i,n,a,s),!s)return}}}},t}(),S={video:1,audio:2,id3:3,text:4},_=function(){function t(t,e,i,n){this.observer=t,this.config=i,this.typeSupported=n,this.remuxer=e,this.sampleAes=null,this.pmtUnknownTypes={}}var e=t.prototype;return e.setDecryptData=function(t){this.sampleAes=null!=t&&null!=t.key&&"SAMPLE-AES"===t.method?new E(this.observer,this.config,t,this.discardEPB):null},t.probe=function(e){var i=t._syncOffset(e);return!(i<0||(i&&o.b.warn("MPEG2-TS detected but first sync word found @ offset "+i+", junk ahead ?"),0))},t._syncOffset=function(t){for(var e=Math.min(1e3,t.length-564),i=0;i<e;){if(71===t[i]&&71===t[i+188]&&71===t[i+376])return i;i++}return-1},t.createTrack=function(t,e){return{container:"video"===t||"audio"===t?"video/mp2t":void 0,type:t,id:S[t],pid:-1,inputTimeScale:9e4,sequenceNumber:0,samples:[],dropped:"video"===t?0:void 0,isAAC:"audio"===t||void 0,duration:"audio"===t?e:void 0}},e.resetInitSegment=function(e,i,n,r){this.pmtParsed=!1,this._pmtId=-1,this.pmtUnknownTypes={},this._avcTrack=t.createTrack("video",r),this._audioTrack=t.createTrack("audio",r),this._id3Track=t.createTrack("id3",r),this._txtTrack=t.createTrack("text",r),this.aacOverFlow=null,this.aacLastPTS=null,this.avcSample=null,this.audioCodec=i,this.videoCodec=n,this._duration=r},e.resetTimeStamp=function(){},e.append=function(e,i,a,s){var l,c,u,d,h,f=e.length,p=!1;this.pmtUnknownTypes={},this.contiguous=a;var g=this.pmtParsed,m=this._avcTrack,v=this._audioTrack,y=this._id3Track,b=m.pid,w=v.pid,T=y.pid,x=this._pmtId,E=m.pesData,S=v.pesData,_=y.pesData,k=this._parsePAT,C=this._parsePMT.bind(this),A=this._parsePES,R=this._parseAVCPES.bind(this),L=this._parseAACPES.bind(this),D=this._parseMPEGPES.bind(this),O=this._parseID3PES.bind(this),P=t._syncOffset(e);for(f-=(f+P)%188,l=P;l<f;l+=188)if(71===e[l]){if(c=!!(64&e[l+1]),u=((31&e[l+1])<<8)+e[l+2],(48&e[l+3])>>4>1){if((d=l+5+e[l+4])===l+188)continue}else d=l+4;switch(u){case b:c&&(E&&(h=A(E))&&R(h,!1),E={data:[],size:0}),E&&(E.data.push(e.subarray(d,l+188)),E.size+=l+188-d);break;case w:c&&(S&&(h=A(S))&&(v.isAAC?L(h):D(h)),S={data:[],size:0}),S&&(S.data.push(e.subarray(d,l+188)),S.size+=l+188-d);break;case T:c&&(_&&(h=A(_))&&O(h),_={data:[],size:0}),_&&(_.data.push(e.subarray(d,l+188)),_.size+=l+188-d);break;case 0:c&&(d+=e[d]+1),x=this._pmtId=k(e,d);break;case x:c&&(d+=e[d]+1);var I=C(e,d,!0===this.typeSupported.mpeg||!0===this.typeSupported.mp3,null!=this.sampleAes);(b=I.avc)>0&&(m.pid=b),(w=I.audio)>0&&(v.pid=w,v.isAAC=I.isAAC),(T=I.id3)>0&&(y.pid=T),p&&!g&&(o.b.log("reparse from beginning"),p=!1,l=P-188),g=this.pmtParsed=!0;break;case 17:case 8191:break;default:p=!0}}else this.observer.trigger(n.a.ERROR,{type:r.b.MEDIA_ERROR,details:r.a.FRAG_PARSING_ERROR,fatal:!1,reason:"TS packet did not start with 0x47"});E&&(h=A(E))?(R(h,!0),m.pesData=null):m.pesData=E,S&&(h=A(S))?(v.isAAC?L(h):D(h),v.pesData=null):(S&&S.size&&o.b.log("last AAC PES packet truncated,might overlap between fragments"),v.pesData=S),_&&(h=A(_))?(O(h),y.pesData=null):y.pesData=_,null==this.sampleAes?this.remuxer.remux(v,m,y,this._txtTrack,i,a,s):this.decryptAndRemux(v,m,y,this._txtTrack,i,a,s)},e.decryptAndRemux=function(t,e,i,n,r,a,s){if(t.samples&&t.isAAC){var o=this;this.sampleAes.decryptAacSamples(t.samples,0,(function(){o.decryptAndRemuxAvc(t,e,i,n,r,a,s)}))}else this.decryptAndRemuxAvc(t,e,i,n,r,a,s)},e.decryptAndRemuxAvc=function(t,e,i,n,r,a,s){if(e.samples){var o=this;this.sampleAes.decryptAvcSamples(e.samples,0,0,(function(){o.remuxer.remux(t,e,i,n,r,a,s)}))}else this.remuxer.remux(t,e,i,n,r,a,s)},e.destroy=function(){this._initPTS=this._initDTS=void 0,this._duration=0},e._parsePAT=function(t,e){return(31&t[e+10])<<8|t[e+11]},e._trackUnknownPmt=function(t,e,i){var n=this.pmtUnknownTypes[t]||0;return 0===n&&(this.pmtUnknownTypes[t]=0,e.call(o.b,i)),this.pmtUnknownTypes[t]++,n},e._parsePMT=function(t,e,i,n){var r,a,s={audio:-1,avc:-1,id3:-1,isAAC:!0};for(r=e+3+((15&t[e+1])<<8|t[e+2])-4,e+=12+((15&t[e+10])<<8|t[e+11]);e<r;){switch(a=(31&t[e+1])<<8|t[e+2],t[e]){case 207:if(!n){this._trackUnknownPmt(t[e],o.b.warn,"ADTS AAC with AES-128-CBC frame encryption found in unencrypted stream");break}case 15:-1===s.audio&&(s.audio=a);break;case 21:-1===s.id3&&(s.id3=a);break;case 219:if(!n){this._trackUnknownPmt(t[e],o.b.warn,"H.264 with AES-128-CBC slice encryption found in unencrypted stream");break}case 27:-1===s.avc&&(s.avc=a);break;case 3:case 4:i?-1===s.audio&&(s.audio=a,s.isAAC=!1):this._trackUnknownPmt(t[e],o.b.warn,"MPEG audio found, not supported in this browser");break;case 36:this._trackUnknownPmt(t[e],o.b.warn,"Unsupported HEVC stream type found");break;default:this._trackUnknownPmt(t[e],o.b.log,"Unknown stream type:"+t[e])}e+=5+((15&t[e+3])<<8|t[e+4])}return s},e._parsePES=function(t){var e,i,n,r,a,s,l,c,u=0,d=t.data;if(!t||0===t.size)return null;for(;d[0].length<19&&d.length>1;){var h=new Uint8Array(d[0].length+d[1].length);h.set(d[0]),h.set(d[1],d[0].length),d[0]=h,d.splice(1,1)}if(1===((e=d[0])[0]<<16)+(e[1]<<8)+e[2]){if((n=(e[4]<<8)+e[5])&&n>t.size-6)return null;if(192&(i=e[7])&&((s=536870912*(14&e[9])+4194304*(255&e[10])+16384*(254&e[11])+128*(255&e[12])+(254&e[13])/2)>4294967295&&(s-=8589934592),64&i?((l=536870912*(14&e[14])+4194304*(255&e[15])+16384*(254&e[16])+128*(255&e[17])+(254&e[18])/2)>4294967295&&(l-=8589934592),s-l>54e5&&(o.b.warn(Math.round((s-l)/9e4)+"s delta between PTS and DTS, align them"),s=l)):l=s),c=(r=e[8])+9,t.size<=c)return null;t.size-=c,a=new Uint8Array(t.size);for(var f=0,p=d.length;f<p;f++){var g=(e=d[f]).byteLength;if(c){if(c>g){c-=g;continue}e=e.subarray(c),g-=c,c=0}a.set(e,u),u+=g}return n&&(n-=r+3),{data:a,pts:s,dts:l,len:n}}return null},e.pushAccesUnit=function(t,e){if(t.units.length&&t.frame){var i=e.samples,n=i.length;if(isNaN(t.pts)){if(!n)return void e.dropped++;var r=i[n-1];t.pts=r.pts,t.dts=r.dts}!this.config.forceKeyFrameOnDiscontinuity||!0===t.key||e.sps&&(n||this.contiguous)?(t.id=n,i.push(t)):e.dropped++}t.debug.length&&o.b.log(t.pts+"/"+t.dts+":"+t.debug)},e._parseAVCPES=function(t,e){var i,n,r,a=this,s=this._avcTrack,o=this._parseAVCNALu(t.data),l=this.avcSample,c=!1,u=this.pushAccesUnit.bind(this),d=function(t,e,i,n){return{key:t,pts:e,dts:i,units:[],debug:n}};t.data=null,l&&o.length&&!s.audFound&&(u(l,s),l=this.avcSample=d(!1,t.pts,t.dts,"")),o.forEach((function(e){switch(e.type){case 1:n=!0,l||(l=a.avcSample=d(!0,t.pts,t.dts,"")),l.frame=!0;var o=e.data;if(c&&o.length>4){var h=new x(o).readSliceType();2!==h&&4!==h&&7!==h&&9!==h||(l.key=!0)}break;case 5:n=!0,l||(l=a.avcSample=d(!0,t.pts,t.dts,"")),l.key=!0,l.frame=!0;break;case 6:n=!0,(i=new x(a.discardEPB(e.data))).readUByte();for(var f=0,p=0,g=!1,m=0;!g&&i.bytesAvailable>1;){f=0;do{f+=m=i.readUByte()}while(255===m);p=0;do{p+=m=i.readUByte()}while(255===m);if(4===f&&0!==i.bytesAvailable){if(g=!0,181===i.readUByte()&&49===i.readUShort()&&1195456820===i.readUInt()&&3===i.readUByte()){var y=i.readUByte(),b=31&y,w=[y,i.readUByte()];for(r=0;r<b;r++)w.push(i.readUByte()),w.push(i.readUByte()),w.push(i.readUByte());a._insertSampleInOrder(a._txtTrack.samples,{type:3,pts:t.pts,bytes:w})}}else if(5===f&&0!==i.bytesAvailable){if(g=!0,p>16){var T=[];for(r=0;r<16;r++)T.push(i.readUByte().toString(16)),3!==r&&5!==r&&7!==r&&9!==r||T.push("-");var E=p-16,S=new Uint8Array(E);for(r=0;r<E;r++)S[r]=i.readUByte();a._insertSampleInOrder(a._txtTrack.samples,{pts:t.pts,payloadType:f,uuid:T.join(""),userDataBytes:S,userData:Object(v.b)(S.buffer)})}}else if(p<i.bytesAvailable)for(r=0;r<p;r++)i.readUByte()}break;case 7:if(n=!0,c=!0,!s.sps){var _=(i=new x(e.data)).readSPS();s.width=_.width,s.height=_.height,s.pixelRatio=_.pixelRatio,s.sps=[e.data],s.duration=a._duration;var k=e.data.subarray(1,4),C="avc1.";for(r=0;r<3;r++){var A=k[r].toString(16);A.length<2&&(A="0"+A),C+=A}s.codec=C}break;case 8:n=!0,s.pps||(s.pps=[e.data]);break;case 9:n=!1,s.audFound=!0,l&&u(l,s),l=a.avcSample=d(!1,t.pts,t.dts,"");break;case 12:n=!1;break;default:n=!1,l&&(l.debug+="unknown NAL "+e.type+" ")}l&&n&&l.units.push(e)})),e&&l&&(u(l,s),this.avcSample=null)},e._insertSampleInOrder=function(t,e){var i=t.length;if(i>0){if(e.pts>=t[i-1].pts)t.push(e);else for(var n=i-1;n>=0;n--)if(e.pts<t[n].pts){t.splice(n,0,e);break}}else t.push(e)},e._getLastNalUnit=function(){var t,e=this.avcSample;if(!e||0===e.units.length){var i=this._avcTrack.samples;e=i[i.length-1]}if(e){var n=e.units;t=n[n.length-1]}return t},e._parseAVCNALu=function(t){var e,i,n,r,a=0,s=t.byteLength,o=this._avcTrack,l=o.naluState||0,c=l,u=[],d=-1;for(-1===l&&(d=0,r=31&t[0],l=0,a=1);a<s;)if(e=t[a++],l)if(1!==l)if(e)if(1===e){if(d>=0)n={data:t.subarray(d,a-l-1),type:r},u.push(n);
vendor: 4,233 bytes, line 2
2else{var h=this._getLastNalUnit();if(h&&(c&&a<=4-c&&h.state&&(h.data=h.data.subarray(0,h.data.byteLength-c)),(i=a-l-1)>0)){var f=new Uint8Array(h.data.byteLength+i);f.set(h.data,0),f.set(t.subarray(0,i),h.data.byteLength),h.data=f}}a<s?(d=a,r=31&t[a],l=0):l=-1}else l=0;else l=3;else l=e?0:2;else l=e?0:1;if(d>=0&&l>=0&&(n={data:t.subarray(d,s),type:r,state:l},u.push(n)),0===u.length){var p=this._getLastNalUnit();if(p){var g=new Uint8Array(p.data.byteLength+t.byteLength);g.set(p.data,0),g.set(t,p.data.byteLength),p.data=g}}return o.naluState=l,u},e.discardEPB=function(t){for(var e,i,n=t.byteLength,r=[],a=1;a<n-2;)0===t[a]&&0===t[a+1]&&3===t[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return t;e=n-r.length,i=new Uint8Array(e);var s=0;for(a=0;a<e;s++,a++)s===r[0]&&(s++,r.shift()),i[a]=t[s];return i},e._parseAACPES=function(t){var e,i,a,s,l,c,u,d=this._audioTrack,f=t.data,v=t.pts,y=this.aacOverFlow,b=this.aacLastPTS;if(y){var w=new Uint8Array(y.byteLength+f.byteLength);w.set(y,0),w.set(f,y.byteLength),f=w}for(a=0,l=f.length;a<l-1&&!h(f,a);a++);if(!a||(a<l-1?(c="AAC PES did not start with ADTS header,offset:"+a,u=!1):(c="no ADTS header found in AAC PES",u=!0),o.b.warn("parsing error:"+c),this.observer.trigger(n.a.ERROR,{type:r.b.MEDIA_ERROR,details:r.a.FRAG_PARSING_ERROR,fatal:u,reason:c}),!u)){if(p(d,this.observer,f,a,this.audioCodec),i=0,e=g(d.samplerate),y&&b){var T=b+e;Math.abs(T-v)>1&&(o.b.log("AAC: align PTS for overlapping frames by "+Math.round((T-v)/90)),v=T)}for(;a<l;){if(h(f,a)){if(a+5<l){var x=m(d,f,a,v,i);if(x){a+=x.length,s=x.sample.pts,i++;continue}}break}a++}y=a<l?f.subarray(a,l):null,this.aacOverFlow=y,this.aacLastPTS=s}},e._parseMPEGPES=function(t){for(var e=t.data,i=e.length,n=0,r=0,a=t.pts;r<i;)if(T.isHeader(e,r)){var s=T.appendFrame(this._audioTrack,e,r,a,n);if(!s)break;r+=s.length,n++}else r++},e._parseID3PES=function(t){this._id3Track.samples.push(t)},t}(),k=function(){function t(t,e,i){this.observer=t,this.config=i,this.remuxer=e}var e=t.prototype;return e.resetInitSegment=function(t,e,i,n){this._audioTrack={container:"audio/mpeg",type:"audio",id:-1,sequenceNumber:0,isAAC:!1,samples:[],len:0,manifestCodec:e,duration:n,inputTimeScale:9e4}},e.resetTimeStamp=function(){},t.probe=function(t){var e,i,n=v.a.getID3Data(t,0);if(n&&void 0!==v.a.getTimeStamp(n))for(e=n.length,i=Math.min(t.length-1,e+100);e<i;e++)if(T.probe(t,e))return o.b.log("MPEG Audio sync word found !"),!0;return!1},e.append=function(t,e,i,n){for(var r=v.a.getID3Data(t,0),a=v.a.getTimeStamp(r),s=void 0!==a?90*a:9e4*e,o=r.length,l=t.length,c=0,u=0,d=this._audioTrack,h=[{pts:s,dts:s,data:r}];o<l;)if(T.isHeader(t,o)){var f=T.appendFrame(d,t,o,s,c);if(!f)break;o+=f.length,u=f.sample.pts,c++}else v.a.isHeader(t,o)?(r=v.a.getID3Data(t,o),h.push({pts:u,dts:u,data:r}),o+=r.length):o++;this.remuxer.remux(d,{samples:[]},{samples:h,inputTimeScale:9e4},{samples:[]},e,i,n)},e.destroy=function(){},t}(),C=function(){function t(){}return t.getSilentFrame=function(t,e){switch(t){case"mp4a.40.2":if(1===e)return new Uint8Array([0,200,0,128,35,128]);if(2===e)return new Uint8Array([33,0,73,144,2,25,0,35,128]);if(3===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,142]);if(4===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,128,44,128,8,2,56]);if(5===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,56]);if(6===e)return new Uint8Array([0,200,0,128,32,132,1,38,64,8,100,0,130,48,4,153,0,33,144,2,0,178,0,32,8,224]);break;default:if(1===e)return new Uint8Array([1,64,34,128,163,78,230,128,186,8,0,0,0,28,6,241,193,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(2===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94]);if(3===e)return new Uint8Array([1,64,34,128,163,94,230,128,186,8,0,0,0,0,149,0,6,241,161,10,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,90,94])}return null},t}(),A=Math.pow(2,32)-1,R=function(){function t(){}return t.init=function(){var e;
vendor: 7,084 bytes, line 2
2for(e in t.types={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],".mp3":[],mvex:[],mvhd:[],pasp:[],sdtp:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[],smhd:[]})t.types.hasOwnProperty(e)&&(t.types[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);var i=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]),n=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]);t.HDLR_TYPES={video:i,audio:n};var r=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),a=new Uint8Array([0,0,0,0,0,0,0,0]);t.STTS=t.STSC=t.STCO=a,t.STSZ=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),t.VMHD=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0]),t.SMHD=new Uint8Array([0,0,0,0,0,0,0,0]),t.STSD=new Uint8Array([0,0,0,0,0,0,0,1]);var s=new Uint8Array([105,115,111,109]),o=new Uint8Array([97,118,99,49]),l=new Uint8Array([0,0,0,1]);t.FTYP=t.box(t.types.ftyp,s,l,s,o),t.DINF=t.box(t.types.dinf,t.box(t.types.dref,r))},t.box=function(t){for(var e,i=Array.prototype.slice.call(arguments,1),n=8,r=i.length,a=r;r--;)n+=i[r].byteLength;for((e=new Uint8Array(n))[0]=n>>24&255,e[1]=n>>16&255,e[2]=n>>8&255,e[3]=255&n,e.set(t,4),r=0,n=8;r<a;r++)e.set(i[r],n),n+=i[r].byteLength;return e},t.hdlr=function(e){return t.box(t.types.hdlr,t.HDLR_TYPES[e])},t.mdat=function(e){return t.box(t.types.mdat,e)},t.mdhd=function(e,i){i*=e;var n=Math.floor(i/(A+1)),r=Math.floor(i%(A+1));return t.box(t.types.mdhd,new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,85,196,0,0]))},t.mdia=function(e){return t.box(t.types.mdia,t.mdhd(e.timescale,e.duration),t.hdlr(e.type),t.minf(e))},t.mfhd=function(e){return t.box(t.types.mfhd,new Uint8Array([0,0,0,0,e>>24,e>>16&255,e>>8&255,255&e]))},t.minf=function(e){return t.box(t.types.minf,"audio"===e.type?t.box(t.types.smhd,t.SMHD):t.box(t.types.vmhd,t.VMHD),t.DINF,t.stbl(e))},t.moof=function(e,i,n){return t.box(t.types.moof,t.mfhd(e),t.traf(n,i))},t.moov=function(e){for(var i=e.length,n=[];i--;)n[i]=t.trak(e[i]);return t.box.apply(null,[t.types.moov,t.mvhd(e[0].timescale,e[0].duration)].concat(n).concat(t.mvex(e)))},t.mvex=function(e){for(var i=e.length,n=[];i--;)n[i]=t.trex(e[i]);return t.box.apply(null,[t.types.mvex].concat(n))},t.mvhd=function(e,i){i*=e;var n=Math.floor(i/(A+1)),r=Math.floor(i%(A+1)),a=new Uint8Array([1,0,0,0,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,e>>24&255,e>>16&255,e>>8&255,255&e,n>>24,n>>16&255,n>>8&255,255&n,r>>24,r>>16&255,r>>8&255,255&r,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 t.box(t.types.mvhd,a)},t.sdtp=function(e){var i,n,r=e.samples||[],a=new Uint8Array(4+r.length);for(n=0;n<r.length;n++)a[n+4]=(i=r[n].flags).dependsOn<<4|i.isDependedOn<<2|i.hasRedundancy;return t.box(t.types.sdtp,a)},t.stbl=function(e){return t.box(t.types.stbl,t.stsd(e),t.box(t.types.stts,t.STTS),t.box(t.types.stsc,t.STSC),t.box(t.types.stsz,t.STSZ),t.box(t.types.stco,t.STCO))},t.avc1=function(e){var i,n,r,a=[],s=[];for(i=0;i<e.sps.length;i++)r=(n=e.sps[i]).byteLength,a.push(r>>>8&255),a.push(255&r),a=a.concat(Array.prototype.slice.call(n));for(i=0;i<e.pps.length;i++)r=(n=e.pps[i]).byteLength,s.push(r>>>8&255),s.push(255&r),s=s.concat(Array.prototype.slice.call(n));var o=t.box(t.types.avcC,new Uint8Array([1,a[3],a[4],a[5],255,224|e.sps.length].concat(a).concat([e.pps.length]).concat(s))),l=e.width,c=e.height,u=e.pixelRatio[0],d=e.pixelRatio[1];return t.box(t.types.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,l>>8&255,255&l,c>>8&255,255&c,0,72,0,0,0,72,0,0,0,0,0,0,0,1,18,100,97,105,108,121,109,111,116,105,111,110,47,104,108,115,46,106,115,0,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),o,t.box(t.types.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192])),t.box(t.types.pasp,new Uint8Array([u>>24,u>>16&255,u>>8&255,255&u,d>>24,d>>16&255,d>>8&255,255&d])))},t.esds=function(t){var e=t.config.length;return new Uint8Array([0,0,0,0,3,23+e,0,1,0,4,15+e,64,21,0,0,0,0,0,0,0,0,0,0,0,5].concat([e]).concat(t.config).concat([6,1,2]))},t.mp4a=function(e){var i=e.samplerate;return t.box(t.types.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,i>>8&255,255&i,0,0]),t.box(t.types.esds,t.esds(e)))},t.mp3=function(e){var i=e.samplerate;return t.box(t.types[".mp3"],new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,e.channelCount,0,16,0,0,0,0,i>>8&255,255&i,0,0]))},t.stsd=function(e){return t.box(t.types.stsd,t.STSD,"audio"===e.type?e.isAAC||"mp3"!==e.codec?t.mp4a(e):t.mp3(e):t.avc1(e))},t.tkhd=function(e){var i=e.id,n=e.duration*e.timescale,r=e.width,a=e.height,s=Math.floor(n/(A+1)),o=Math.floor(n%(A+1));return t.box(t.types.tkhd,new Uint8Array([1,0,0,7,0,0,0,0,0,0,0,2,0,0,0,0,0,0,0,3,i>>24&255,i>>16&255,i>>8&255,255&i,0,0,0,0,s>>24,s>>16&255,s>>8&255,255&s,o>>24,o>>16&255,o>>8&255,255&o,0,0,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,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,r>>8&255,255&r,0,0,a>>8&255,255&a,0,0]))},t.traf=function(e,i){var n=t.sdtp(e),r=e.id,a=Math.floor(i/(A+1)),s=Math.floor(i%(A+1));return t.box(t.types.traf,t.box(t.types.tfhd,new Uint8Array([0,0,0,0,r>>24,r>>16&255,r>>8&255,255&r])),t.box(t.types.tfdt,new Uint8Array([1,0,0,0,a>>24,a>>16&255,a>>8&255,255&a,s>>24,s>>16&255,s>>8&255,255&s])),t.trun(e,n.length+16+20+8+16+8+8),n)},t.trak=function(e){return e.duration=e.duration||4294967295,t.box(t.types.trak,t.tkhd(e),t.mdia(e))},t.trex=function(e){var i=e.id;return t.box(t.types.trex,new Uint8Array([0,0,0,0,i>>24,i>>16&255,i>>8&255,255&i,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]))},t.trun=function(e,i){var n,r,a,s,o,l,c=e.samples||[],u=c.length,d=12+16*u,h=new Uint8Array(d);for(h.set([0,0,15,1,u>>>24&255,u>>>16&255,u>>>8&255,255&u,(i+=8+d)>>>24&255,i>>>16&255,i>>>8&255,255&i],0),n=0;n<u;n++)a=(r=c[n]).duration,h.set([a>>>24&255,a>>>16&255,a>>>8&255,255&a,(s=r.size)>>>24&255,s>>>16&255,s>>>8&255,255&s,(o=r.flags).isLeading<<2|o.dependsOn,o.isDependedOn<<6|o.hasRedundancy<<4|o.paddingValue<<1|o.isNonSync,61440&o.degradPrio,15&o.degradPrio,(l=r.cts)>>>24&255,l>>>16&255,l>>>8&255,255&l],12+16*n);return t.box(t.types.trun,h)},t.initSegment=function(e){t.types||t.init();var i,n=t.moov(e);return(i=new Uint8Array(t.FTYP.byteLength+n.byteLength)).set(t.FTYP),i.set(n,t.FTYP.byteLength),i},t}();function L(t,e,i,n){void 0===i&&(i=1),void 0===n&&(n=!1);var r=t*e*i;return n?Math.round(r):r}function D(t,e){return void 0===e&&(e=!1),L(t,1e3,1/9e4,e)}function O(t,e){return void 0===e&&(e=1),L(t,9e4,1/e)}var P=O(10),I=O(.2);function M(t,e){var i;if(void 0===e)return t;for(i=e<t?-8589934592:8589934592;Math.abs(t-e)>4294967296;)t+=i;return t}var F,N=function(){function t(t,e,i,n){this.observer=t,this.config=e,this.typeSupp
2orted=i,this.ISGenerated=!1}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(t){this._initPTS=this._initDTS=t},e.resetInitSegment=function(){this.ISGenerated=!1},e.remux=function(t,e,i,r,a,s,l){if(this.ISGenerated||this.generateIS(t,e,a),this.ISGenerated){var c=t.samples.length,u=e.samples.length,d=a,h=a;if(c&&u){var f=e.samples.reduce((function(t,e){return Math.min(t,e.pts)}),e.samples[0].pts),p=(t.samples[0].pts-f)/e.inputTimeScale;d+=Math.max(0,p),h+=Math.max(0,-p)}if(c){t.timescale||(o.b.warn("regenerate InitSegment as audio detected"),this.generateIS(t,e,a));var g,m=this.remuxAudio(t,d,s,l);u&&(m&&(g=m.endPTS-m.startPTS),e.timescale||(o.b.warn("regenerate InitSegment as video detected"),this.generateIS(t,e,a)),this.remuxVideo(e,h,s,g))}else if(u){var v=this.remuxVideo(e,h,s,0,l);v&&t.codec&&this.remuxEmptyAudio(t,d,s,v)}}i.samples.length&&this.remuxID3(i,a),r.samples.length&&this.remuxText(r,a),this.observer.trigger(n.a.FRAG_PARSED)},e.generateIS=function(t,e,i){var a,s,l=this.observer,c=t.samples,u=e.samples,d=this.typeSupported,h="audio/mp4",f={},p={tracks:f},g=void 0===this._initPTS;if(g&&(a=s=1/0),t.config&&c.length&&(t.timescale=t.samplerate,o.b.log("audio sampling rate : "+t.samplerate),t.isAAC||(d.mpeg?(h="audio/mpeg",t.codec=""):d.mp3&&(t.codec="mp3")),f.audio={container:h,codec:t.codec,initSegment:!t.isAAC&&d.mpeg?new Uint8Array:R.initSegment([t]),metadata:{channelCount:t.channelCount}},g&&(a=s=c[0].pts-Math.round(t.inputTimeScale*i))),e.sps&&e.pps&&u.length){var m=e.inputTimeScale;if(e.timescale=m,f.video={container:"video/mp4",codec:e.codec,initSegment:R.initSegment([e]),metadata:{width:e.width,height:e.height}},g){var v=u.reduce((function(t,e){return Math.min(t,e.pts)}),u[0].pts),y=Math.round(m*i);s=Math.min(s,u[0].dts-y),a=Math.min(a,v-y),this.observer.trigger(n.a.INIT_PTS_FOUND,{initPTS:a})}}else g&&f.audio&&this.observer.trigger(n.a.INIT_PTS_FOUND,{initPTS:a});Object.keys(f).length?(l.trigger(n.a.FRAG_PARSING_INIT_SEGMENT,p),this.ISGenerated=!0,g&&(this._initPTS=a,this._initDTS=s)):l.trigger(n.a.ERROR,{type:r.b.MEDIA_ERROR,details:r.a.FRAG_PARSING_ERROR,fatal:!1,reason:"no audio/video samples found"})},e.remuxVideo=function(t,e,i,a){var s,l,c,u,d,h=t.timescale,f=t.samples,p=[],g=f.length,m=this._initPTS,v=8,y=Number.POSITIVE_INFINITY,b=Number.NEGATIVE_INFINITY,w=0,T=!1,x=this.nextAvcDts;if(0!==g){i||(x=e*h-(f[0].pts-f[0].dts));for(var E=0;E<g;E++){var S=f[E];S.dts>S.pts&&(w=Math.max(Math.min(w,S.pts-S.dts),-1*I)),S.dts<f[E>0?E-1:E].dts&&(T=!0),S.pts=M(S.pts-m,x),S.dts=M(S.dts-m,x)}T&&f.sort((function(t,e){return t.dts-e.dts||t.pts-e.pts||t.id-e.id})),u=f[0].dts,d=f[g-1].dts;var _=Math.round((d-u)/(g-1));if(w<0){if(w<-2*_){o.b.warn("PTS < DTS detected in video samples, offsetting DTS to PTS "+D(-_,!0)+" ms");for(var k=0;k<g;k++)f[k].dts=f[k].pts-_}else{o.b.warn("PTS < DTS detected in video samples, shifting DTS by "+D(w,!0)+" ms to overcome this issue");for(var C=0;C<g;C++)f[C].dts=f[C].dts+w}u=f[0].dts,d=f[g-1].dts}if(i){var A=u-x,L=A>_;if(L||A<-1){o.b.warn(L?"AVC: "+D(A,!0)+" ms ("+A+"dts) hole between fragments detected, filling it":"AVC: "+D(-A,!0)+" ms ("+A+"dts) overlapping between fragments detected");var O=f[0].pts-A;f[0].dts=u=x,f[0].pts=O,o.b.log("Video: First PTS/DTS adjusted: "+D(O,!0)+"/"+D(u,!0)+", delta: "+D(A,!0)+" ms")}}for(var P=0,F=0,N=0;N<g;N++){for(var B=f[N],U=B.units,j=U.length,$=0,H=0;H<j;H++)$+=U[H].data.length;F+=$,P+=j,B.length=$,B.dts=Math.max(B.dts,u),B.pts=Math.max(B.pts,B.dts,0),y=Math.min(B.pts,y),b=Math.max(B.pts,b)}var G=F+4*P+8;try{l=new Uint8Array(G)}catch(t){return void this.observer.trigger(n.a.ERROR,{type:r.b.MUX_ERROR,details:r.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:G,reason:"fail allocating video mdat "+G})}var z=new DataView(l.buffer);z.setUint32(0,G),l.set(R.types.mdat,4);for(var q=0;q<g;q++){for(var K,W=f[q],V=W.units,Y=0,X=0,Q=V.length;X<Q;X++){var Z=V[X],J=Z.data,tt=Z.data.byteLength;z.setUint32(v,tt),l.set(J,v+=4),v+=tt,Y+=4+tt}if(q<g-1)s=f[q+1].dts-W.dts;else{var et=this.config,it=W.dts-f[q>0?q-1:q].dts;if(et.stretchShortVideoTrack){var nt=Math.floor(et.maxBufferHole*h),rt=(a?y+a*h:this.nextAudioPts)-W.pts;rt>nt?((s=rt-it)<0&&(s=it),o.b.log("It is approximately "+D(rt,!1)+" ms to the next segment; using duration "+D(s,!1)+" ms for the last video frame.")):s=it}else s=it}K=Math.round(W.pts-W.dts),p.push({size:Y,duration:s,cts:K,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:W.key?2:1,isNonSync:W.key?0:1}})}this.nextAvcDts=d+s;var at=t.dropped;
vendor: 4,492 bytes, line 2
2if(t.nbNalu=0,t.dropped=0,p.length&&navigator.userAgent.toLowerCase().indexOf("chrome")>-1){var st=p[0].flags;st.dependsOn=2,st.isNonSync=0}t.samples=p,c=R.moof(t.sequenceNumber++,u,t),t.samples=[];var ot={data1:c,data2:l,startPTS:y/h,endPTS:(b+s)/h,startDTS:u/h,endDTS:this.nextAvcDts/h,type:"video",hasAudio:!1,hasVideo:!0,nb:p.length,dropped:at};return this.observer.trigger(n.a.FRAG_PARSING_DATA,ot),ot}},e.remuxAudio=function(t,e,i,a){var s,l,c,u,d,h,f=t.inputTimeScale,p=f/t.timescale,g=(t.isAAC?1024:1152)*p,m=this._initPTS,v=!t.isAAC&&this.typeSupported.mpeg,y=v?0:8,b=t.samples,w=[],T=this.nextAudioPts;if(i|=b.length&&T&&(a&&Math.abs(e-T/f)<.1||Math.abs(b[0].pts-T-m)<20*g),b.forEach((function(t){t.pts=t.dts=M(t.pts-m,e*f)})),0!==(b=b.filter((function(t){return t.pts>=0}))).length){if(i||(T=a?Math.max(0,e*f):b[0].pts),t.isAAC)for(var x=this.config.maxAudioFramesDrift,E=0,S=T;E<b.length;){var _=b[E],k=_.pts,A=k-S;if(A<=-x*g)i?(o.b.warn("Dropping 1 audio frame @ "+D(S,!0)/1e3+"s due to "+D(A,!0)+" ms overlap."),b.splice(E,1)):(o.b.warn("Audio frame @ "+D(k,!0)/1e3+"s overlaps nextAudioPts by "+D(A,!0)+" ms."),S=k+g,E++);else if(A>=x*g&&A<P&&S){var L=Math.round(A/g);o.b.warn("Injecting "+L+" audio frames @ "+D(S,!0)/1e3+"s due to "+D(A,!0)+" ms gap.");for(var O=0;O<L;O++){var I=Math.max(S,0);(l=C.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(o.b.log("Unable to get silent frame for given audio codec; duplicating last frame instead."),l=_.unit.subarray()),b.splice(E,0,{unit:l,pts:I,dts:I}),S+=g,E++}_.pts=_.dts=S,S+=g,E++}else Math.abs(A),_.pts=_.dts=S,S+=g,E++}for(var F=b.length,N=0;F--;)N+=b[F].unit.byteLength;for(var B=0,U=b.length;B<U;B++){var j=b[B],$=j.unit,H=j.pts;if(void 0!==h&&s)s.duration=Math.round((H-h)/p);else{var G=H-T,z=0;if(i&&t.isAAC&&G){if(G>0&&G<P)z=Math.round((H-T)/g),o.b.log(D(G,!0)+" ms hole between AAC samples detected,filling it"),z>0&&((l=C.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(l=$.subarray()),N+=z*l.length);else if(G<-12){o.b.log("drop overlapping AAC sample, expected/parsed/delta: "+D(T,!0)+" ms / "+D(H,!0)+" ms / "+D(-G,!0)+" ms"),N-=$.byteLength;continue}H=T}if(d=H,!(N>0))return;N+=y;try{c=new Uint8Array(N)}catch(t){return void this.observer.trigger(n.a.ERROR,{type:r.b.MUX_ERROR,details:r.a.REMUX_ALLOC_ERROR,fatal:!1,bytes:N,reason:"fail allocating audio mdat "+N})}v||(new DataView(c.buffer).setUint32(0,N),c.set(R.types.mdat,4));for(var q=0;q<z;q++)(l=C.getSilentFrame(t.manifestCodec||t.codec,t.channelCount))||(o.b.log("Unable to get silent frame for given audio codec; duplicating this frame instead."),l=$.subarray()),c.set(l,y),y+=l.byteLength,w.push(s={size:l.byteLength,cts:0,duration:1024,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}})}c.set($,y);var K=$.byteLength;y+=K,w.push(s={size:K,cts:0,duration:0,flags:{isLeading:0,isDependedOn:0,hasRedundancy:0,degradPrio:0,dependsOn:1}}),h=H}var W=0;if((F=w.length)>=2&&(s.duration=W=w[F-2].duration),F){this.nextAudioPts=T=h+p*W,t.samples=w,u=v?new Uint8Array:R.moof(t.sequenceNumber++,d/p,t),t.samples=[];var V=d/f,Y=T/f,X={data1:u,data2:c,startPTS:V,endPTS:Y,startDTS:V,endDTS:Y,type:"audio",hasAudio:!0,hasVideo:!1,nb:F};return this.observer.trigger(n.a.FRAG_PARSING_DATA,X),X}return null}},e.remuxEmptyAudio=function(t,e,i,n){var r=t.inputTimeScale,a=this.nextAudioPts,s=(void 0!==a?a:n.startDTS*r)+this._initDTS,l=r/(t.samplerate?t.samplerate:r)*1024,c=Math.ceil((n.endDTS*r+this._initDTS-s)/l),u=C.getSilentFrame(t.manifestCodec||t.codec,t.channelCount);if(o.b.warn("remux empty Audio"),u){for(var d=[],h=0;h<c;h++){var f=s+h*l;d.push({unit:u,pts:f,dts:f})}t.samples=d,this.remuxAudio(t,e,i)}else o.b.trace("Unable to remuxEmptyAudio since we were unable to get a silent frame for given audio codec!")},e.remuxID3=function(t){var e=t.samples.length;if(e){for(var i=t.inputTimeScale,r=this._initPTS,a=this._initDTS,s=0;s<e;s++){var o=t.samples[s];o.pts=(o.pts-r)/i,o.dts=(o.dts-a)/i}this.observer.trigger(n.a.FRAG_PARSING_METADATA,{samples:t.samples}),t.samples=[]}},e.remuxText=function(t){t.samples.sort((function(t,e){return t.pts-e.pts}));var e,i=t.samples.length,r=t.inputTimeScale,a=this._initPTS;if(i){for(var s=0;s<i;s++)(e=t.samples[s]).pts=(e.pts-a)/r;this.observer.trigger(n.a.FRAG_PARSING_USERDATA,{samples:t.samples})}t.samples=[]},t}(),B=function(){function t(t){this.observer=t}var e=t.prototype;return e.destroy=function(){},e.resetTimeStamp=function(){},e.resetInitSegment=function(){}
vendor: 4,120 bytes, line 2
2,e.remux=function(t,e,i,r,a,s,o,l){var c=this.observer,u="";t&&(u+="audio"),e&&(u+="video"),c.trigger(n.a.FRAG_PARSING_DATA,{data1:l,startPTS:a,startDTS:a,type:u,hasAudio:!!t,hasVideo:!!e,nb:1,dropped:0}),c.trigger(n.a.FRAG_PARSED)},t}(),U=Object(l.a)();try{F=U.performance.now.bind(U.performance)}catch(t){o.b.debug("Unable to use Performance API on this environment"),F=U.Date.now}var j=function(){function t(t,e,i,n){this.observer=t,this.typeSupported=e,this.config=i,this.vendor=n}var e=t.prototype;return e.destroy=function(){var t=this.demuxer;t&&t.destroy()},e.push=function(t,e,i,r,s,o,l,c,u,d,h,f){var p=this;if(t.byteLength>0&&null!=e&&null!=e.key&&"AES-128"===e.method){var g=this.decrypter;null==g&&(g=this.decrypter=new a.a(this.observer,this.config));var m=F();g.decrypt(t,e.key.buffer,e.iv.buffer,(function(t){var a=F();p.observer.trigger(n.a.FRAG_DECRYPTED,{stats:{tstart:m,tdecrypt:a}}),p.pushDecrypted(new Uint8Array(t),e,new Uint8Array(i),r,s,o,l,c,u,d,h,f)}))}else this.pushDecrypted(new Uint8Array(t),e,new Uint8Array(i),r,s,o,l,c,u,d,h,f)},e.pushDecrypted=function(t,e,i,a,s,o,l,c,u,d,h,f){var p=this.demuxer,g=this.remuxer;if(!p||l||c){for(var m,v=this.observer,w=this.typeSupported,T=this.config,x=[{demux:_,remux:N},{demux:b.a,remux:B},{demux:y,remux:N},{demux:k,remux:N}],E=0,S=x.length;E<S&&!(m=x[E]).demux.probe(t);E++);if(!m)return void v.trigger(n.a.ERROR,{type:r.b.MEDIA_ERROR,details:r.a.FRAG_PARSING_ERROR,fatal:!0,reason:"no demux matching with content found"});g&&g instanceof m.remux||(g=new m.remux(v,T,w,this.vendor)),p&&p instanceof m.demux||(p=new m.demux(v,g,T,w),this.probe=m.demux.probe),this.demuxer=p,this.remuxer=g}(l||c)&&(p.resetInitSegment(i,a,s,d),g.resetInitSegment()),l&&(p.resetTimeStamp(f),g.resetTimeStamp(f)),"function"==typeof p.setDecryptData&&p.setDecryptData(e),p.append(t,o,u,h)},t}();e.a=j},function(t,e,i){"use strict";var n=i(0),r=i(1),a=Math.pow(2,32)-1,s=function(){function t(t,e){this.observer=t,this.remuxer=e}var e=t.prototype;return e.resetTimeStamp=function(t){this.initPTS=t},e.resetInitSegment=function(e,i,n,a){if(e&&e.byteLength){var s=this.initData=t.parseInitSegment(e);null==i&&(i="mp4a.40.5"),null==n&&(n="avc1.42e01e");var o={};s.audio&&s.video?o.audiovideo={container:"video/mp4",codec:i+","+n,initSegment:a?e:null}:(s.audio&&(o.audio={container:"audio/mp4",codec:i,initSegment:a?e:null}),s.video&&(o.video={container:"video/mp4",codec:n,initSegment:a?e:null})),this.observer.trigger(r.a.FRAG_PARSING_INIT_SEGMENT,{tracks:o})}else i&&(this.audioCodec=i),n&&(this.videoCodec=n)},t.probe=function(e){return t.findBox({data:e,start:0,end:Math.min(e.length,16384)},["moof"]).length>0},t.bin2str=function(t){return String.fromCharCode.apply(null,t)},t.readUint16=function(t,e){t.data&&(e+=t.start,t=t.data);var i=t[e]<<8|t[e+1];return i<0?65536+i:i},t.readUint32=function(t,e){t.data&&(e+=t.start,t=t.data);var i=t[e]<<24|t[e+1]<<16|t[e+2]<<8|t[e+3];return i<0?4294967296+i:i},t.writeUint32=function(t,e,i){t.data&&(e+=t.start,t=t.data),t[e]=i>>24,t[e+1]=i>>16&255,t[e+2]=i>>8&255,t[e+3]=255&i},t.findBox=function(e,i){var n,r,a,s,o,l,c=[];if(e.data?(o=e.start,a=e.end,e=e.data):(o=0,a=e.byteLength),!i.length)return null;for(n=o;n<a;)l=(r=t.readUint32(e,n))>1?n+r:a,t.bin2str(e.subarray(n+4,n+8))===i[0]&&(1===i.length?c.push({data:e,start:n+8,end:l}):(s=t.findBox({data:e,start:n+8,end:l},i.slice(1))).length&&(c=c.concat(s))),n=l;return c},t.parseSegmentIndex=function(e){var i,n=t.findBox(e,["moov"])[0],r=n?n.end:null,a=0,s=t.findBox(e,["sidx"]);if(!s||!s[0])return null;i=[];var o=(s=s[0]).data[0],l=t.readUint32(s,a=0===o?8:16);a+=4,a+=0===o?8:16;var c=s.end+0,u=t.readUint16(s,a+=2);a+=2;for(var d=0;d<u;d++){var h=a,f=t.readUint32(s,h);h+=4;var p=2147483647&f;if(1==(2147483648&f)>>>31)return void console.warn("SIDX has hierarchical references (not supported)");var g=t.readUint32(s,h);h+=4,i.push({referenceSize:p,subsegmentDuration:g,info:{duration:g/l,start:c,end:c+p-1}}),c+=p,a=h+=4}return{earliestPresentationTime:0,timescale:l,version:o,referencesCount:u,references:i,moovEndOffset:r}},t.parseInitSegment=function(e){var i=[];
vendor: 12,922 bytes, line 2
2return t.findBox(e,["moov","trak"]).forEach((function(e){var r=t.findBox(e,["tkhd"])[0];if(r){var a=r.data[r.start],s=0===a?12:20,o=t.readUint32(r,s),l=t.findBox(e,["mdia","mdhd"])[0];if(l){s=0===(a=l.data[l.start])?12:20;var c=t.readUint32(l,s),u=t.findBox(e,["mdia","hdlr"])[0];if(u){var d={soun:"audio",vide:"video"}[t.bin2str(u.data.subarray(u.start+8,u.start+12))];if(d){var h=t.findBox(e,["mdia","minf","stbl","stsd"]);if(h.length){var f=t.bin2str((h=h[0]).data.subarray(h.start+12,h.start+16));n.b.log("MP4Demuxer:"+d+":"+f+" found")}i[o]={timescale:c,type:d},i[d]={timescale:c,id:o}}}}}})),i},t.getStartDTS=function(e,i){var n,r,a;return n=t.findBox(i,["moof","traf"]),r=[].concat.apply([],n.map((function(i){return t.findBox(i,["tfhd"]).map((function(n){var r,a;return r=t.readUint32(n,4),a=e[r].timescale||9e4,t.findBox(i,["tfdt"]).map((function(e){var i,n;return i=e.data[e.start],n=t.readUint32(e,4),1===i&&(n*=Math.pow(2,32),n+=t.readUint32(e,8)),n}))[0]/a}))}))),a=Math.min.apply(null,r),isFinite(a)?a:0},t.offsetStartDTS=function(e,i,n){t.findBox(i,["moof","traf"]).map((function(i){return t.findBox(i,["tfhd"]).map((function(r){var s=t.readUint32(r,4),o=e[s].timescale||9e4;t.findBox(i,["tfdt"]).map((function(e){var i=e.data[e.start],r=t.readUint32(e,4);if(0===i)t.writeUint32(e,4,r-n*o);else{r*=Math.pow(2,32),r+=t.readUint32(e,8),r-=n*o,r=Math.max(r,0);var s=Math.floor(r/(a+1)),l=Math.floor(r%(a+1));t.writeUint32(e,4,s),t.writeUint32(e,8,l)}}))}))}))},e.append=function(e,i,n,a){var s=this.initData;s||(this.resetInitSegment(e,this.audioCodec,this.videoCodec,!1),s=this.initData);var o,l=this.initPTS;if(void 0===l){var c=t.getStartDTS(s,e);this.initPTS=l=c-i,this.observer.trigger(r.a.INIT_PTS_FOUND,{initPTS:l})}t.offsetStartDTS(s,e,l),o=t.getStartDTS(s,e),this.remuxer.remux(s.audio,s.video,null,null,o,n,a,e)},e.destroy=function(){},t}();e.a=s},function(t,e,i){function n(t){var e={};function i(n){if(e[n])return e[n].exports;var r=e[n]={i:n,l:!1,exports:{}};return t[n].call(r.exports,r,r.exports,i),r.l=!0,r.exports}i.m=t,i.c=e,i.i=function(t){return t},i.d=function(t,e,n){i.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:n})},i.r=function(t){Object.defineProperty(t,"__esModule",{value:!0})},i.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return i.d(e,"a",e),e},i.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},i.p="/",i.oe=function(t){throw console.error(t),t};var n=i(i.s=ENTRY_MODULE);return n.default||n}function r(t){return(t+"").replace(/[.?*+^$[\]\\(){}|-]/g,"\\$&")}function a(t,e,n){var a={};a[n]=[];var s=e.toString(),o=s.match(/^function\s?\w*\(\w+,\s*\w+,\s*(\w+)\)/);if(!o)return a;for(var l,c=o[1],u=new RegExp("(\\\\n|\\W)"+r(c)+"\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)","g");l=u.exec(s);)"dll-reference"!==l[3]&&a[n].push(l[3]);for(u=new RegExp("\\("+r(c)+'\\("(dll-reference\\s([\\.|\\-|\\+|\\w|/|@]+))"\\)\\)\\(\\s*(/\\*.*?\\*/)?\\s*.*?([\\.|\\-|\\+|\\w|/|@]+).*?\\)',"g");l=u.exec(s);)t[l[2]]||(a[n].push(l[1]),t[l[2]]=i(l[1]).m),a[l[2]]=a[l[2]]||[],a[l[2]].push(l[4]);for(var d=Object.keys(a),h=0;h<d.length;h++)for(var f=0;f<a[d[h]].length;f++)isNaN(1*a[d[h]][f])||(a[d[h]][f]=1*a[d[h]][f]);return a}function s(t){return Object.keys(t).reduce((function(e,i){return e||t[i].length>0}),!1)}t.exports=function(t,e){var r={main:i.m},o=(e=e||{}).all?{main:Object.keys(r.main)}:function(t,e){for(var i={main:[e]},n={main:[]},r={main:{}};s(i);)for(var o=Object.keys(i),l=0;l<o.length;l++){var c=o[l],u=i[c].pop();if(r[c]=r[c]||{},!r[c][u]&&t[c][u]){r[c][u]=!0,n[c]=n[c]||[],n[c].push(u);for(var d=a(t,t[c][u],c),h=Object.keys(d),f=0;f<h.length;f++)i[h[f]]=i[h[f]]||[],i[h[f]]=i[h[f]].concat(d[h[f]])}}return n}(r,t),l="";Object.keys(o).filter((function(t){return"main"!==t})).forEach((function(t){for(var e=0;o[t][e];)e++;o[t].push(e),r[t][e]="(function(module, exports, __webpack_require__) { module.exports = __webpack_require__; })",l=l+"var "+t+" = ("+n.toString().replace("ENTRY_MODULE",JSON.stringify(e))+")({"+o[t].map((function(e){return JSON.stringify(e)+": "+r[t][e].toString()})).join(",")+"});\n"})),l=l+"new (("+n.toString().replace("ENTRY_MODULE",JSON.stringify(t))+")({"+o.main.map((function(t){return JSON.stringify(t)+": "+r.main[t].toString()})).join(",")+"}))(self);";var c=new window.Blob([l],{type:"text/javascript"});if(e.bare)return c;var u=(window.URL||window.webkitURL||window.mozURL||window.msURL).createObjectURL(c),d=new window.Worker(u);return d.objectURL=u,d}},function(t,e,i){"use strict";i.r(e);var n=i(9),r=i(1),a=i(0),s=i(8);e.default=function(t){var e=new s.EventEmitter;e.trigger=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];e.emit.apply(e,[t,t].concat(n))},e.off=function(t){for(var i=arguments.length,n=new Array(i>1?i-1:0),r=1;r<i;r++)n[r-1]=arguments[r];e.removeListener.apply(e,[t].concat(n))};var i=function(e,i){t.postMessage({event:e,data:i})};t.addEventListener("message",(function(r){var s=r.data;switch(s.cmd){case"init":var o=JSON.parse(s.config);t.demuxer=new n.a(e,s.typeSupported,o,s.vendor),Object(a.a)(o.debug),i("init",null);break;case"demux":t.demuxer.push(s.data,s.decryptdata,s.initSegment,s.audioCodec,s.videoCodec,s.timeOffset,s.discontinuity,s.trackSwitch,s.contiguous,s.duration,s.accurateTimeOffset,s.defaultInitPTS)}})),e.on(r.a.FRAG_DECRYPTED,i),e.on(r.a.FRAG_PARSING_INIT_SEGMENT,i),e.on(r.a.FRAG_PARSED,i),e.on(r.a.ERROR,i),e.on(r.a.FRAG_PARSING_METADATA,i),e.on(r.a.FRAG_PARSING_USERDATA,i),e.on(r.a.INIT_PTS_FOUND,i),e.on(r.a.FRAG_PARSING_DATA,(function(e,i){var n=[],r={event:e,data:i};i.data1&&(r.data1=i.data1.buffer,n.push(i.data1.buffer),delete i.data1),i.data2&&(r.data2=i.data2.buffer,n.push(i.data2.buffer),delete i.data2),t.postMessage(r,n)}))}},function(t,e,i){"use strict";i.r(e),i.d(e,"default",(function(){return Ke}));var n={};i.r(n),i.d(n,"newCue",(function(){return ne}));var r,a,s=i(6),o=i(2),l=i(3),c=i(1),u=i(0),d={hlsEventGeneric:!0,hlsHandlerDestroying:!0,hlsHandlerDestroyed:!0},h=function(){function t(t){this.hls=void 0,this.handledEvents=void 0,this.useGenericHandler=void 0,this.hls=t,this.onEvent=this.onEvent.bind(this);for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.handledEvents=i,this.useGenericHandler=!0,this.registerListeners()}var e=t.prototype;return e.destroy=function(){this.onHandlerDestroying(),this.unregisterListeners(),this.onHandlerDestroyed()},e.onHandlerDestroying=function(){},e.onHandlerDestroyed=function(){},e.isEventHandler=function(){return"object"==typeof this.handledEvents&&this.handledEvents.length&&"function"==typeof this.onEvent},e.registerListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){if(d[t])throw new Error("Forbidden event-name: "+t);this.hls.on(t,this.onEvent)}),this)},e.unregisterListeners=function(){this.isEventHandler()&&this.handledEvents.forEach((function(t){this.hls.off(t,this.onEvent)}),this)},e.onEvent=function(t,e){this.onEventGeneric(t,e)},e.onEventGeneric=function(t,e){try{(function(t,e){var i="on"+t.replace("hls","");if("function"!=typeof this[i])throw new Error("Event "+t+" has no generic handler in this "+this.constructor.name+" class (tried "+i+")");return this[i].bind(this,e)}).call(this,t,e).call()}catch(e){u.b.error("An internal error happened while handling event "+t+'. Error message: "'+e.message+'". Here is a stacktrace:',e),this.hls.trigger(c.a.ERROR,{type:o.b.OTHER_ERROR,details:o.a.INTERNAL_EXCEPTION,fatal:!1,event:t,err:e})}},t}();!function(t){t.MANIFEST="manifest",t.LEVEL="level",t.AUDIO_TRACK="audioTrack",t.SUBTITLE_TRACK="subtitleTrack"}(r||(r={})),function(t){t.MAIN="main",t.AUDIO="audio",t.SUBTITLE="subtitle"}(a||(a={}));var f,p=i(10),g=function(){function t(t,e){this._uri=null,this.baseuri=void 0,this.reluri=void 0,this.method=null,this.key=null,this.iv=null,this.baseuri=t,this.reluri=e}var e;return(e=[{key:"uri",get:function(){return!this._uri&&this.reluri&&(this._uri=Object(s.buildAbsoluteURL)(this.baseuri,this.reluri,{alwaysNormalize:!0})),this._uri}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}();!function(t){t.AUDIO="audio",t.VIDEO="video"}(f||(f={}));var m=function(){function t(){var t;this._url=null,this._byteRange=null,this._decryptdata=null,this._elementaryStreams=((t={})[f.AUDIO]=!1,t[f.VIDEO]=!1,t),this.deltaPTS=0,this.rawProgramDateTime=null,this.programDateTime=null,this.title=null,this.tagList=[],this.cc=void 0,this.type=void 0,this.relurl=void 0,this.baseurl=void 0,this.duration=void 0,this.start=void 0,this.sn=0,this.urlId=0,this.level=0,this.levelkey=void 0,this.loader=void 0}var e,i=t.prototype;return i.setByteRange=function(t,e){var i=t.split("@",2),n=[];n[0]=1===i.length?e?e.byteRangeEndOffset:0:parseInt(i[1]),n[1]=parseInt(i[0])+n[0],this._byteRange=n},i.addElementaryStream=function(t){this._elementaryStreams[t]=!0},i.hasElementaryStream=function(t){return!0===this._elementaryStreams[t]},i.createInitializationVector=function(t){for(var e=new Uint8Array(16),i=12;i<16;i++)e[i]=t>>8*(15-i)&255;return e},i.setDecryptDataFromLevelKey=function(t,e){var i=t;return(null==t?void 0:t.method)&&t.uri&&!t.iv&&((i=new g(t.baseuri,t.reluri)).method=t.method,i.iv=this.createInitializationVector(e)),i},(e=[{key:"url",get:function(){return!this._url&&this.relurl&&(this._url=Object(s.buildAbsoluteURL)(this.baseurl,this.relurl,{alwaysNormalize:!0})),this._url},set:function(t){this._url=t}},{key:"byteRange",get:function(){return this._byteRange?this._byteRange:[]}},{key:"byteRangeStartOffset",get:function(){return this.byteRange[0]}},{key:"byteRangeEndOffset",get:function(){return this.byteRange[1]}},{key:"decryptdata",get:function(){if(!this.levelkey&&!this._decryptdata)return null;if(!this._decryptdata&&this.levelkey){var t=this.sn;"number"!=typeof t&&(this.levelkey&&"AES-128"===this.levelkey.method&&!this.levelkey.iv&&u.b.warn('missing IV for initialization segment with method="'+this.levelkey.method+'" - compliance issue'),t=0),this._decryptdata=this.setDecryptDataFromLevelKey(this.levelkey,t)}return this._decryptdata}},{key:"endProgramDateTime",get:function(){if(null===this.programDateTime)return null;if(!Object(l.a)(this.programDateTime))return null;var t=Object(l.a)(this.duration)?this.duration:0;return this.programDateTime+1e3*t}},{key:"encrypted",get:function(){return!(!this.decryptdata||null===this.decryptdata.uri||null!==this.decryptdata.key)}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}(),v=function(){function t(t){this.endCC=0,this.endSN=0,this.fragments=[],this.initSegment=null,this.live=!0,this.needSidxRanges=!1,this.startCC=0,this.startSN=0,this.startTimeOffset=null,this.targetduration=0,this.totalduration=0,this.type=null,this.url=t,this.version=null}var e;return(e=[{key:"hasProgramDateTime",get:function(){return!(!this.fragments[0]||!Object(l.a)(this.fragments[0].programDateTime))}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(t.prototype,e),t}(),y=/^(\d+)x(\d+)$/,b=/\s*(.+?)\s*=((?:\".*?\")|.*?)(?:,|$)/g,w=function(){function t(e){for(var i in"string"==typeof e&&(e=t.parseAttrList(e)),e)e.hasOwnProperty(i)&&(this[i]=e[i])}var e=t.prototype;return e.decimalInteger=function(t){var e=parseInt(this[t],10);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.hexadecimalInteger=function(t){if(this[t]){var e=(this[t]||"0x").slice(2);e=(1&e.length?"0":"")+e;for(var i=new Uint8Array(e.length/2),n=0;n<e.length/2;n++)i[n]=parseInt(e.slice(2*n,2*n+2),16);return i}return null},e.hexadecimalIntegerAsNumber=function(t){var e=parseInt(this[t],16);return e>Number.MAX_SAFE_INTEGER?1/0:e},e.decimalFloatingPoint=function(t){return parseFloat(this[t])},e.enumeratedString=function(t){return this[t]},e.decimalResolution=function(t){var e=y.exec(this[t]);if(null!==e)return{width:parseInt(e[1],10),height:parseInt(e[2],10)}},t.parseAttrList=function(t){var e,i={};for(b.lastIndex=0;null!==(e=b.exec(t));){var n=e[2];0===n.indexOf('"')&&n.lastIndexOf('"')===n.length-1&&(n=n.slice(1,-1)),i[e[1]]=n}return i},t}(),T={audio:{a3ds:!0,"ac-3":!0,"ac-4":!0,alac:!0,alaw:!0,dra1:!0,"dts+":!0,"dts-":!0,dtsc:!0,dtse:!0,dtsh:!0,"ec-3":!0,enca:!0,g719:!0,g726:!0,m4ae:!0,mha1:!0,mha2:!0,mhm1:!0,mhm2:!0,mlpa:!0,mp4a:!0,"raw ":!0,Opus:!0,samr:!0,sawb:!0,sawp:!0,sevc:!0,sqcp:!0,ssmv:!0,twos:!0,ulaw:!0},video:{avc1:!0,avc2:!0,avc3:!0,avc4:!0,avcp:!0,drac:!0,dvav:!0,dvhe:!0,encv:!0,hev1:!0,hvc1:!0,mjp2:!0,mp4v:!0,mvc1:!0,mvc2:!0,mvc3:!0,mvc4:!0,resv:!0,rv60:!0,s263:!0,svc1:!0,svc2:!0,"vc-1":!0,vp08:!0,vp09:!0}};
vendor: 4,591 bytes, line 2
2function x(t,e){return MediaSource.isTypeSupported((e||"video")+'/mp4;codecs="'+t+'"')}var E=/(?:#EXT-X-STREAM-INF:([^\n\r]*)[\r\n]+([^\r\n]+)|#EXT-X-SESSION-DATA:([^\n\r]*)[\r\n]+)/g,S=/#EXT-X-MEDIA:(.*)/g,_=new RegExp([/#EXTINF:\s*(\d*(?:\.\d+)?)(?:,(.*)\s+)?/.source,/|(?!#)([\S+ ?]+)/.source,/|#EXT-X-BYTERANGE:*(.+)/.source,/|#EXT-X-PROGRAM-DATE-TIME:(.+)/.source,/|#.*/.source].join(""),"g"),k=/(?:(?:#(EXTM3U))|(?:#EXT-X-(PLAYLIST-TYPE):(.+))|(?:#EXT-X-(MEDIA-SEQUENCE): *(\d+))|(?:#EXT-X-(TARGETDURATION): *(\d+))|(?:#EXT-X-(KEY):(.+))|(?:#EXT-X-(START):(.+))|(?:#EXT-X-(ENDLIST))|(?:#EXT-X-(DISCONTINUITY-SEQ)UENCE:(\d+))|(?:#EXT-X-(DIS)CONTINUITY))|(?:#EXT-X-(VERSION):(\d+))|(?:#EXT-X-(MAP):(.+))|(?:(#)([^:]*):(.*))|(?:(#)(.*))(?:.*)\r?\n?/,C=/\.(mp4|m4s|m4v|m4a)$/i,A=function(){function t(){}return t.findGroup=function(t,e){for(var i=0;i<t.length;i++){var n=t[i];if(n.id===e)return n}},t.convertAVC1ToAVCOTI=function(t){var e,i=t.split(".");return i.length>2?(e=i.shift()+".",e+=parseInt(i.shift()).toString(16),e+=("000"+parseInt(i.shift()).toString(16)).substr(-4)):e=t,e},t.resolve=function(t,e){return s.buildAbsoluteURL(e,t,{alwaysNormalize:!0})},t.parseMasterPlaylist=function(e,i){var n,r=[],a={},s=!1;function o(t,e){["video","audio"].forEach((function(i){var n=t.filter((function(t){return function(t,e){var i=T[e];return!!i&&!0===i[t.slice(0,4)]}(t,i)}));if(n.length){var r=n.filter((function(t){return 0===t.lastIndexOf("avc1",0)||0===t.lastIndexOf("mp4a",0)}));e[i+"Codec"]=r.length>0?r[0]:n[0],t=t.filter((function(t){return-1===n.indexOf(t)}))}})),e.unknownCodecs=t}for(E.lastIndex=0;null!=(n=E.exec(e));)if(n[1]){var l={},c=l.attrs=new w(n[1]);l.url=t.resolve(n[2],i);var u=c.decimalResolution("RESOLUTION");u&&(l.width=u.width,l.height=u.height),l.bitrate=c.decimalInteger("AVERAGE-BANDWIDTH")||c.decimalInteger("BANDWIDTH"),l.name=c.NAME,o([].concat((c.CODECS||"").split(/[ ,]+/)),l),l.videoCodec&&-1!==l.videoCodec.indexOf("avc1")&&(l.videoCodec=t.convertAVC1ToAVCOTI(l.videoCodec)),r.push(l)}else if(n[3]){var d=new w(n[3]);d["DATA-ID"]&&(s=!0,a[d["DATA-ID"]]=d)}return{levels:r,sessionData:s?a:null}},t.parseMasterPlaylistMedia=function(e,i,n,r){var a;void 0===r&&(r=[]);var s=[],o=0;for(S.lastIndex=0;null!==(a=S.exec(e));){var l=new w(a[1]);if(l.TYPE===n){var c={attrs:l,id:o++,groupId:l["GROUP-ID"],instreamId:l["INSTREAM-ID"],name:l.NAME||l.LANGUAGE,type:n,default:"YES"===l.DEFAULT,autoselect:"YES"===l.AUTOSELECT,forced:"YES"===l.FORCED,lang:l.LANGUAGE};if(l.URI&&(c.url=t.resolve(l.URI,i)),r.length){var u=t.findGroup(r,c.groupId);c.audioCodec=u?u.codec:r[0].codec}s.push(c)}}return s},t.parseLevelPlaylist=function(t,e,i,n,r){var a,s,o,c=0,d=0,h=new v(e),f=0,p=null,y=new m,b=null;for(_.lastIndex=0;null!==(a=_.exec(t));){var T=a[1];if(T){y.duration=parseFloat(T);var x=(" "+a[2]).slice(1);y.title=x||null,y.tagList.push(x?["INF",T,x]:["INF",T])}else if(a[3]){if(Object(l.a)(y.duration)){var E=c++;y.type=n,y.start=d,o&&(y.levelkey=o),y.sn=E,y.level=i,y.cc=f,y.urlId=r,y.baseurl=e,y.relurl=(" "+a[3]).slice(1),R(y,p),h.fragments.push(y),p=y,d+=y.duration,y=new m}}else if(a[4]){var S=(" "+a[4]).slice(1);p?y.setByteRange(S,p):y.setByteRange(S)}else if(a[5])y.rawProgramDateTime=(" "+a[5]).slice(1),y.tagList.push(["PROGRAM-DATE-TIME",y.rawProgramDateTime]),null===b&&(b=h.fragments.length);else{if(!(a=a[0].match(k))){u.b.warn("No matches on slow regex match for level playlist!");continue}for(s=1;s<a.length&&void 0===a[s];s++);var A=(" "+a[s+1]).slice(1),L=(" "+a[s+2]).slice(1);switch(a[s]){case"#":y.tagList.push(L?[A,L]:[A]);break;case"PLAYLIST-TYPE":h.type=A.toUpperCase();break;case"MEDIA-SEQUENCE":c=h.startSN=parseInt(A);break;case"TARGETDURATION":h.targetduration=parseFloat(A);break;case"VERSION":h.version=parseInt(A);break;case"EXTM3U":break;case"ENDLIST":h.live=!1;break;case"DIS":f++,y.tagList.push(["DIS"]);break;case"DISCONTINUITY-SEQ":f=parseInt(A);break;case"KEY":var D=new w(A),O=D.enumeratedString("METHOD"),P=D.URI,I=D.hexadecimalInteger("IV");if("com.apple.streamingkeydelivery"===(D.KEYFORMAT||"identity")){u.b.warn("Keyformat com.apple.streamingkeydelivery is not supported");continue}O&&(o=new g(e,P),P&&["AES-128","SAMPLE-AES","SAMPLE-AES-CENC"].indexOf(O)>=0&&(o.method=O,o.key=null,o.iv=I));break;case"START":var M=new w(A).decimalFloatingPoint("TIME-OFFSET");Object(l.a)(M)&&(h.startTimeOffset=M);break;case"MAP":var F=new w(A);y.relurl=F.URI,F.BYTERANGE&&y.setByteRange(F.BYTERANGE),y.baseurl=e,y.level=i,y.type=n,y.sn="initSegment",h.initSegment=y,(y=new m).rawProgramDateTime=h.initSegment.rawProgramDateTime;break;
vendor: 19,718 bytes, line 2
2default:u.b.warn("line parsed but not handled: "+a)}}}return(y=p)&&!y.relurl&&(h.fragments.pop(),d-=y.duration),h.totalduration=d,h.averagetargetduration=d/h.fragments.length,h.endSN=c-1,h.startCC=h.fragments[0]?h.fragments[0].cc:0,h.endCC=f,!h.initSegment&&h.fragments.length&&h.fragments.every((function(t){return C.test(t.relurl)}))&&(u.b.warn("MP4 fragments found but no init segment (probably no MAP, incomplete M3U8), trying to fetch SIDX"),(y=new m).relurl=h.fragments[0].relurl,y.baseurl=e,y.level=i,y.type=n,y.sn="initSegment",h.initSegment=y,h.needSidxRanges=!0),b&&function(t,e){for(var i=t[e],n=e-1;n>=0;n--){var r=t[n];r.programDateTime=i.programDateTime-1e3*r.duration,i=r}}(h.fragments,b),h},t}();function R(t,e){t.rawProgramDateTime?t.programDateTime=Date.parse(t.rawProgramDateTime):(null==e?void 0:e.programDateTime)&&(t.programDateTime=e.endProgramDateTime),Object(l.a)(t.programDateTime)||(t.programDateTime=null,t.rawProgramDateTime=null)}var L=window.performance,D=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MANIFEST_LOADING,c.a.LEVEL_LOADING,c.a.AUDIO_TRACK_LOADING,c.a.SUBTITLE_TRACK_LOADING)||this).loaders={},i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n.canHaveQualityLevels=function(t){return t!==r.AUDIO_TRACK&&t!==r.SUBTITLE_TRACK},n.mapContextToLevelType=function(t){switch(t.type){case r.AUDIO_TRACK:return a.AUDIO;case r.SUBTITLE_TRACK:return a.SUBTITLE;default:return a.MAIN}},n.getResponseUrl=function(t,e){var i=t.url;return void 0!==i&&0!==i.indexOf("data:")||(i=e.url),i};var s=n.prototype;return s.createInternalLoader=function(t){var e=this.hls.config,i=new(e.pLoader||e.loader)(e);return t.loader=i,this.loaders[t.type]=i,i},s.getInternalLoader=function(t){return this.loaders[t.type]},s.resetInternalLoader=function(t){this.loaders[t]&&delete this.loaders[t]},s.destroyInternalLoaders=function(){for(var t in this.loaders){var e=this.loaders[t];e&&e.destroy(),this.resetInternalLoader(t)}},s.destroy=function(){this.destroyInternalLoaders(),t.prototype.destroy.call(this)},s.onManifestLoading=function(t){this.load({url:t.url,type:r.MANIFEST,level:0,id:null,responseType:"text"})},s.onLevelLoading=function(t){this.load({url:t.url,type:r.LEVEL,level:t.level,id:t.id,responseType:"text"})},s.onAudioTrackLoading=function(t){this.load({url:t.url,type:r.AUDIO_TRACK,level:null,id:t.id,responseType:"text"})},s.onSubtitleTrackLoading=function(t){this.load({url:t.url,type:r.SUBTITLE_TRACK,level:null,id:t.id,responseType:"text"})},s.load=function(t){var e=this.hls.config;u.b.debug("Loading playlist of type "+t.type+", level: "+t.level+", id: "+t.id);var i,n,a,s,o=this.getInternalLoader(t);if(o){var l=o.context;if(l&&l.url===t.url)return u.b.trace("playlist request ongoing"),!1;u.b.warn("aborting previous loader for type: "+t.type),o.abort()}switch(t.type){case r.MANIFEST:i=e.manifestLoadingMaxRetry,n=e.manifestLoadingTimeOut,a=e.manifestLoadingRetryDelay,s=e.manifestLoadingMaxRetryTimeout;break;case r.LEVEL:i=0,s=0,a=0,n=e.levelLoadingTimeOut;break;default:i=e.levelLoadingMaxRetry,n=e.levelLoadingTimeOut,a=e.levelLoadingRetryDelay,s=e.levelLoadingMaxRetryTimeout}o=this.createInternalLoader(t);var c={timeout:n,maxRetry:i,retryDelay:a,maxRetryDelay:s},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};return u.b.debug("Calling internal loader delegate for URL: "+t.url),o.load(t,c,d),!0},s.loadsuccess=function(t,e,i,n){if(void 0===n&&(n=null),i.isSidxRequest)return this._handleSidxRequest(t,i),void this._handlePlaylistLoaded(t,e,i,n);if(this.resetInternalLoader(i.type),"string"!=typeof t.data)throw new Error('expected responseType of "text" for PlaylistLoader');var r=t.data;e.tload=L.now(),0===r.indexOf("#EXTM3U")?r.indexOf("#EXTINF:")>0||r.indexOf("#EXT-X-TARGETDURATION:")>0?this._handleTrackOrLevelPlaylist(t,e,i,n):this._handleMasterPlaylist(t,e,i,n):this._handleManifestParsingError(t,i,"no EXTM3U delimiter",n)},s.loaderror=function(t,e,i){void 0===i&&(i=null),this._handleNetworkError(e,i,!1,t)},s.loadtimeout=function(t,e,i){void 0===i&&(i=null),this._handleNetworkError(e,i,!0)},s._handleMasterPlaylist=function(t,e,i,r){var a=this.hls,s=t.data,o=n.getResponseUrl(t,i),l=A.parseMasterPlaylist(s,o),d=l.levels,h=l.sessionData;if(d.length){var f=d.map((function(t){return{id:t.attrs.AUDIO,codec:t.audioCodec}})),p=A.parseMasterPlaylistMedia(s,o,"AUDIO",f),g=A.parseMasterPlaylistMedia(s,o,"SUBTITLES"),m=A.parseMasterPlaylistMedia(s,o,"CLOSED-CAPTIONS");if(p.length){var v=!1;p.forEach((function(t){t.url||(v=!0)})),!1===v&&d[0].audioCodec&&!d[0].attrs.AUDIO&&(u.b.log("audio codec signaled in quality level, but no embedded audio track signaled, create one"),p.unshift({type:"main",name:"main",default:!1,autoselect:!1,forced:!1,id:-1,attrs:{},url:""}))}a.trigger(c.a.MANIFEST_LOADED,{levels:d,audioTracks:p,subtitles:g,captions:m,url:o,stats:e,networkDetails:r,sessionData:h})}else this._handleManifestParsingError(t,i,"no level found in manifest",r)},s._handleTrackOrLevelPlaylist=function(t,e,i,a){var s=this.hls,u=i.id,d=i.level,h=i.type,f=n.getResponseUrl(t,i),p=Object(l.a)(u)?u:0,g=Object(l.a)(d)?d:p,m=n.mapContextToLevelType(i),v=A.parseLevelPlaylist(t.data,f,g,m,p);v.tload=e.tload,v.fragments.length?(h===r.MANIFEST&&s.trigger(c.a.MANIFEST_LOADED,{levels:[{url:f,details:v}],audioTracks:[],url:f,stats:e,networkDetails:a,sessionData:null}),e.tparsed=L.now(),v.needSidxRanges?this.load({url:v.initSegment.url,isSidxRequest:!0,type:h,level:d,levelDetails:v,id:u,rangeStart:0,rangeEnd:2048,responseType:"arraybuffer"}):(i.levelDetails=v,this._handlePlaylistLoaded(t,e,i,a))):s.trigger(c.a.ERROR,{type:o.b.NETWORK_ERROR,details:o.a.LEVEL_EMPTY_ERROR,fatal:!1,url:f,reason:"no fragments found in level",level:"number"==typeof i.level?i.level:void 0})},s._handleSidxRequest=function(t,e){if("string"==typeof t.data)throw new Error("sidx request must be made with responseType of array buffer");var i=p.a.parseSegmentIndex(new Uint8Array(t.data));if(i){var n=e.levelDetails;i.references.forEach((function(t,e){var i=t.info;if(n){var r=n.fragments[e];0===r.byteRange.length&&r.setByteRange(String(1+i.end-i.start)+"@"+String(i.start))}})),n&&n.initSegment.setByteRange(String(i.moovEndOffset)+"@0")}},s._handleManifestParsingError=function(t,e,i,n){this.hls.trigger(c.a.ERROR,{type:o.b.NETWORK_ERROR,details:o.a.MANIFEST_PARSING_ERROR,fatal:!0,url:t.url,reason:i,networkDetails:n})},s._handleNetworkError=function(t,e,i,n){var a,s;void 0===i&&(i=!1),void 0===n&&(n=null),u.b.info("A network error occured while loading a "+t.type+"-type playlist");var l=this.getInternalLoader(t);switch(t.type){case r.MANIFEST:a=i?o.a.MANIFEST_LOAD_TIMEOUT:o.a.MANIFEST_LOAD_ERROR,s=!0;break;case r.LEVEL:a=i?o.a.LEVEL_LOAD_TIMEOUT:o.a.LEVEL_LOAD_ERROR,s=!1;break;case r.AUDIO_TRACK:a=i?o.a.AUDIO_TRACK_LOAD_TIMEOUT:o.a.AUDIO_TRACK_LOAD_ERROR,s=!1;break;default:s=!1}l&&(l.abort(),this.resetInternalLoader(t.type));var d={type:o.b.NETWORK_ERROR,details:a,fatal:s,url:t.url,loader:l,context:t,networkDetails:e};n&&(d.response=n),this.hls.trigger(c.a.ERROR,d)},s._handlePlaylistLoaded=function(t,e,i,a){var s=i.type,o=i.level,l=i.id,u=i.levelDetails;if(u&&u.targetduration)if(n.canHaveQualityLevels(i.type))this.hls.trigger(c.a.LEVEL_LOADED,{details:u,level:o||0,id:l||0,stats:e,networkDetails:a});else switch(s){case r.AUDIO_TRACK:this.hls.trigger(c.a.AUDIO_TRACK_LOADED,{details:u,id:l,stats:e,networkDetails:a});break;case r.SUBTITLE_TRACK:this.hls.trigger(c.a.SUBTITLE_TRACK_LOADED,{details:u,id:l,stats:e,networkDetails:a})}else this._handleManifestParsingError(t,i,"invalid target duration",a)},n}(h),O=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.FRAG_LOADING)||this).loaders={},i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.destroy=function(){var e=this.loaders;for(var i in e){var n=e[i];n&&n.destroy()}this.loaders={},t.prototype.destroy.call(this)},r.onFragLoading=function(t){var e=t.frag,i=e.type,n=this.loaders,r=this.hls.config,a=r.fLoader,s=r.loader;e.loaded=0;var o,c,d,h=n[i];h&&(u.b.warn("abort previous fragment loader for type: "+i),h.abort()),h=n[i]=e.loader=r.fLoader?new a(r):new s(r),o={url:e.url,frag:e,responseType:"arraybuffer",progressData:!1};var f=e.byteRangeStartOffset,p=e.byteRangeEndOffset;Object(l.a)(f)&&Object(l.a)(p)&&(o.rangeStart=f,o.rangeEnd=p),c={timeout:r.fragLoadingTimeOut,maxRetry:0,retryDelay:0,maxRetryDelay:r.fragLoadingMaxRetryTimeout},d={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this),onProgress:this.loadprogress.bind(this)},h.load(o,c,d)},r.loadsuccess=function(t,e,i,n){void 0===n&&(n=null);var r=t.data,a=i.frag;a.loader=void 0,this.loaders[a.type]=void 0,this.hls.trigger(c.a.FRAG_LOADED,{payload:r,frag:a,stats:e,networkDetails:n})},r.loaderror=function(t,e,i){void 0===i&&(i=null);var n=e.frag,r=n.loader;r&&r.abort(),this.loaders[n.type]=void 0,this.hls.trigger(c.a.ERROR,{type:o.b.NETWORK_ERROR,details:o.a.FRAG_LOAD_ERROR,fatal:!1,frag:e.frag,response:t,networkDetails:i})},r.loadtimeout=function(t,e,i){void 0===i&&(i=null);var n=e.frag,r=n.loader;r&&r.abort(),this.loaders[n.type]=void 0,this.hls.trigger(c.a.ERROR,{type:o.b.NETWORK_ERROR,details:o.a.FRAG_LOAD_TIMEOUT,fatal:!1,frag:e.frag,networkDetails:i})},r.loadprogress=function(t,e,i,n){void 0===n&&(n=null);var r=e.frag;r.loaded=t.loaded,this.hls.trigger(c.a.FRAG_LOAD_PROGRESS,{frag:r,stats:t,networkDetails:n})},n}(h),P=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.KEY_LOADING)||this).loaders={},i.decryptkey=null,i.decrypturl=null,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.destroy=function(){for(var e in this.loaders){var i=this.loaders[e];i&&i.destroy()}this.loaders={},t.prototype.destroy.call(this)},r.onKeyLoading=function(t){var e=t.frag,i=e.type,n=this.loaders[i];if(e.decryptdata){var r=e.decryptdata.uri;if(r!==this.decrypturl||null===this.decryptkey){var a=this.hls.config;if(n&&(u.b.warn("abort previous key loader for type:"+i),n.abort()),!r)return void u.b.warn("key uri is falsy");e.loader=this.loaders[i]=new a.loader(a),this.decrypturl=r,this.decryptkey=null;var s={url:r,frag:e,responseType:"arraybuffer"},o={timeout:a.fragLoadingTimeOut,maxRetry:0,retryDelay:a.fragLoadingRetryDelay,maxRetryDelay:a.fragLoadingMaxRetryTimeout},l={onSuccess:this.loadsuccess.bind(this),onError:this.loaderror.bind(this),onTimeout:this.loadtimeout.bind(this)};e.loader.load(s,o,l)}else this.decryptkey&&(e.decryptdata.key=this.decryptkey,this.hls.trigger(c.a.KEY_LOADED,{frag:e}))}else u.b.warn("Missing decryption data on fragment in onKeyLoading")},r.loadsuccess=function(t,e,i){var n=i.frag;n.decryptdata?(this.decryptkey=n.decryptdata.key=new Uint8Array(t.data),n.loader=void 0,delete this.loaders[n.type],this.hls.trigger(c.a.KEY_LOADED,{frag:n})):u.b.error("after key load, decryptdata unset")},r.loaderror=function(t,e){var i=e.frag,n=i.loader;n&&n.abort(),delete this.loaders[i.type],this.hls.trigger(c.a.ERROR,{type:o.b.NETWORK_ERROR,details:o.a.KEY_LOAD_ERROR,fatal:!1,frag:i,response:t})},r.loadtimeout=function(t,e){var i=e.frag,n=i.loader;n&&n.abort(),delete this.loaders[i.type],this.hls.trigger(c.a.ERROR,{type:o.b.NETWORK_ERROR,details:o.a.KEY_LOAD_TIMEOUT,fatal:!1,frag:i})},n}(h),I="NOT_LOADED",M="APPENDING",F="PARTIAL",N=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.BUFFER_APPENDED,c.a.FRAG_BUFFERED,c.a.FRAG_LOADED)||this).bufferPadding=.2,i.fragments=Object.create(null),i.timeRanges=Object.create(null),i.config=e.config,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.destroy=function(){this.fragments=Object.create(null),this.timeRanges=Object.create(null),this.config=null,h.prototype.destroy.call(this),t.prototype.destroy.call(this)},r.getBufferedFrag=function(t,e){var i=this.fragments,n=Object.keys(i).filter((function(n){var r=i[n];if(r.body.type!==e)return!1;if(!r.buffered)return!1;var a=r.body;return a.startPTS<=t&&t<=a.endPTS}));if(0===n.length)return null;var r=n.pop();return i[r].body},r.detectEvictedFragments=function(t,e){var i=this;Object.keys(this.fragments).forEach((function(n){var r=i.fragments[n];if(r&&r.buffered){var a=r.range[t];if(a)for(var s=a.time,o=0;o<s.length;o++){var l=s[o];if(!i.isTimeBuffered(l.startPTS,l.endPTS,e)){i.removeFragment(r.body);break}}}}))},r.detectPartialFragments=function(t){var e=this,i=this.getFragmentKey(t),n=this.fragments[i];n&&(n.buffered=!0,Object.keys(this.timeRanges).forEach((function(i){t.hasElementaryStream(i)&&(n.range[i]=e.getBufferedTimes(t.startPTS,t.endPTS,e.timeRanges[i]))})))},r.getBufferedTimes=function(t,e,i){for(var n,r,a=[],s=!1,o=0;o<i.length;o++){if(n=i.start(o)-this.bufferPadding,r=i.end(o)+this.bufferPadding,t>=n&&e<=r){a.push({startPTS:Math.max(t,i.start(o)),endPTS:Math.min(e,i.end(o))});break}if(t<r&&e>n)a.push({startPTS:Math.max(t,i.start(o)),endPTS:Math.min(e,i.end(o))}),s=!0;else if(e<=n)break}return{time:a,partial:s}},r.getFragmentKey=function(t){return t.type+"_"+t.level+"_"+t.urlId+"_"+t.sn},r.getPartialFragment=function(t){var e,i,n,r=this,a=null,s=0;return Object.keys(this.fragments).forEach((function(o){var l=r.fragments[o];r.isPartial(l)&&(n=l.body.endPTS+r.bufferPadding,t>=(i=l.body.startPTS-r.bufferPadding)&&t<=n&&(e=Math.min(t-i,n-t),s<=e&&(a=l.body,s=e)))})),a},r.getState=function(t){var e=this.getFragmentKey(t),i=this.fragments[e],n=I;return void 0!==i&&(n=i.buffered?!0===this.isPartial(i)?F:"OK":M),n},r.isPartial=function(t){return!0===t.buffered&&(void 0!==t.range.video&&!0===t.range.video.partial||void 0!==t.range.audio&&!0===t.range.audio.partial)},r.isTimeBuffered=function(t,e,i){for(var n,r,a=0;a<i.length;a++){if(n=i.start(a)-this.bufferPadding,r=i.end(a)+this.bufferPadding,t>=n&&e<=r)return!0;if(e<=n)return!1}return!1},r.onFragLoaded=function(t){var e=t.frag;Object(l.a)(e.sn)&&!e.bitrateTest&&(this.fragments[this.getFragmentKey(e)]={body:e,range:Object.create(null),buffered:!1})},r.onBufferAppended=function(t){var e=this;this.timeRanges=t.timeRanges,Object.keys(this.timeRanges).forEach((function(t){e.detectEvictedFragments(t,e.timeRanges[t])}))},r.onFragBuffered=function(t){this.detectPartialFragments(t.frag)},r.hasFragment=function(t){var e=this.getFragmentKey(t);return void 0!==this.fragments[e]},r.removeFragment=function(t){var e=this.getFragmentKey(t);delete this.fragments[e]},r.removeAllFragments=function(){this.fragments=Object.create(null)},n}(h),B=function(t,e){for(var i=0,n=t.length-1,r=null,a=null;i<=n;){var s=e(a=t[r=(i+n)/2|0]);if(s>0)i=r+1;else{if(!(s<0))return a;n=r-1}}return null},U=function(){function t(){}return t.isBuffered=function(t,e){try{if(t)for(var i=t.buffered,n=0;n<i.length;n++)if(e>=i.start(n)&&e<=i.end(n))return!0}catch(t){}return!1},t.bufferInfo=function(t,e,i){try{if(t){var n,r=t.buffered,a=[];for(n=0;n<r.length;n++)a.push({start:r.start(n),end:r.end(n)});return this.bufferedInfo(a,e,i)}}catch(t){}return{len:0,start:e,end:e,nextStart:void 0}},t.bufferedInfo=function(t,e,i){t.sort((function(t,e){return t.start-e.start||e.end-t.end}));var n=[];if(i)for(var r=0;r<t.length;r++){var a=n.length;if(a){var s=n[a-1].end;t[r].start-s<i?t[r].end>s&&(n[a-1].end=t[r].end):n.push(t[r])}else n.push(t[r])}else n=t;for(var o,l=0,c=e,u=e,d=0;d<n.length;d++){var h=n[d].start,f=n[d].end;if(e+i>=h&&e<f)c=h,l=(u=f)-e;else if(e+i<h){o=h;break}}return{len:l,start:c,end:u,nextStart:o}},t}(),j=i(8),$=i(11),H=i(9);function G(){return window.MediaSource||window.WebKitMediaSource}var z=i(5),q=function(t){var e,i;function n(){return t.apply(this,arguments)||this}return i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n.prototype.trigger=function(t){for(var e=arguments.length,i=new Array(e>1?e-1:0),n=1;n<e;n++)i[n-1]=arguments[n];this.emit.apply(this,[t,t].concat(i))},n}(j.EventEmitter),K=Object(z.a)(),W=G()||{isTypeSupported:function(){return!1}},V=function(){function t(t,e){var i=this;this.hls=t,this.id=e;var n=this.observer=new q,r=t.config,a=function(e,n){(n=n||{}).frag=i.frag,n.id=i.id,t.trigger(e,n)};n.on(c.a.FRAG_DECRYPTED,a),n.on(c.a.FRAG_PARSING_INIT_SEGMENT,a),n.on(c.a.FRAG_PARSING_DATA,a),n.on(c.a.FRAG_PARSED,a),n.on(c.a.ERROR,a),n.on(c.a.FRAG_PARSING_METADATA,a),n.on(c.a.FRAG_PARSING_USERDATA,a),n.on(c.a.INIT_PTS_FOUND,a);var s={mp4:W.isTypeSupported("video/mp4"),mpeg:W.isTypeSupported("audio/mpeg"),mp3:W.isTypeSupported('audio/mp4; codecs="mp3"')},l=navigator.vendor;if(r.enableWorker&&"undefined"!=typeof Worker){var d;u.b.log("demuxing in webworker");try{d=this.w=$(12),this.onwmsg=this.onWorkerMessage.bind(this),d.addEventListener("message",this.onwmsg),d.onerror=function(e){t.trigger(c.a.ERROR,{type:o.b.OTHER_ERROR,details:o.a.INTERNAL_EXCEPTION,fatal:!0,event:"demuxerWorker",err:{message:e.message+" ("+e.filename+":"+e.lineno+")"}})},d.postMessage({cmd:"init",typeSupported:s,vendor:l,id:e,config:JSON.stringify(r)})}catch(t){u.b.warn("Error in worker:",t),u.b.error("Error while initializing DemuxerWorker, fallback on DemuxerInline"),d&&K.URL.revokeObjectURL(d.objectURL),this.demuxer=new H.a(n,s,r,l),this.w=void 0}}else this.demuxer=new H.a(n,s,r,l)}var e=t.prototype;return e.destroy=function(){var t=this.w;if(t)t.removeEventListener("message",this.onwmsg),t.terminate(),this.w=null;else{var e=this.demuxer;e&&(e.destroy(),this.demuxer=null)}var i=this.observer;i&&(i.removeAllListeners(),this.observer=null)},e.push=function(t,e,i,n,r,a,s,o){var c=this.w,d=Object(l.a)(r.startPTS)?r.startPTS:r.start,h=r.decryptdata,f=this.frag,p=!(f&&r.cc===f.cc),g=!(f&&r.level===f.level),m=!g&&f&&r.sn===f.sn+1;if(p&&u.b.log(this.id+":discontinuity detected"),g&&u.b.log(this.id+":switch detected"),this.frag=r,c)c.postMessage({cmd:"demux",data:t,decryptdata:h,initSegment:e,audioCodec:i,videoCodec:n,timeOffset:d,discontinuity:p,trackSwitch:g,contiguous:m,duration:a,accurateTimeOffset:s,defaultInitPTS:o},t instanceof ArrayBuffer?[t]:[]);else{var v=this.demuxer;v&&v.push(t,h,e,i,n,d,p,g,m,a,s,o)}},e.onWorkerMessage=function(t){var e=t.data,i=this.hls;switch(e.event){case"init":K.URL.revokeObjectURL(this.w.objectURL);break;case c.a.FRAG_PARSING_DATA:e.data.data1=new Uint8Array(e.data1),e.data2&&(e.data.data2=new Uint8Array(e.data2));default:e.data=e.data||{},e.data.frag=this.frag,e.data.id=this.id,i.trigger(e.event,e.data)}},t}();function Y(t,e,i){switch(e){case"audio":t.audioGroupIds||(t.audioGroupIds=[]),t.audioGroupIds.push(i);break;case"text":t.textGroupIds||(t.textGroupIds=[]),t.textGroupIds.push(i)}}function X(t,e,i){var n=t[e],r=t[i],a=r.startPTS;Object(l.a)(a)?i>e?(n.duration=a-n.start,n.duration<0&&u.b.warn("negative duration computed for frag "+n.sn+",level "+n.level+", there should be some duration drift between playlist and fragment!")):(r.duration=n.start-a,r.duration<0&&u.b.warn("negative duration computed for frag "+r.sn+",level "+r.level+", there should be some duration drift between playlist and fragment!")):r.start=i>e?n.start+(n.minEndPTS?n.minEndPTS-n.start:n.duration):Math.max(n.start-r.duration,0)}function Q(t,e,i,n,r,a){var s=i,o=n;if(Object(l.a)(e.startPTS)){var c=Math.abs(e.startPTS-i);e.deltaPTS=Object(l.a)(e.deltaPTS)?Math.max(c,e.deltaPTS):c,s=Math.max(i,e.startPTS),i=Math.min(i,e.startPTS),o=Math.min(n,e.endPTS),n=Math.max(n,e.endPTS),r=Math.min(r,e.startDTS),a=Math.max(a,e.endDTS)}var u=i-e.start;e.start=e.startPTS=i,e.maxStartPTS=s,e.endPTS=n,e.minEndPTS=o,e.startDTS=r,e.endDTS=a,e.duration=n-i;var d,h,f,p=e.sn;if(!t||p<t.startSN||p>t.endSN)return 0;
vendor: 5,407 bytes, line 2
2for((h=t.fragments)[d=p-t.startSN]=e,f=d;f>0;f--)X(h,f,f-1);for(f=d;f<h.length-1;f++)X(h,f,f+1);return t.PTSKnown=!0,u}function Z(t,e){e.initSegment&&t.initSegment&&(e.initSegment=t.initSegment);var i,n=0;if(J(t,e,(function(t,r){n=t.cc-r.cc,Object(l.a)(t.startPTS)&&(r.start=r.startPTS=t.startPTS,r.endPTS=t.endPTS,r.duration=t.duration,r.backtracked=t.backtracked,r.dropped=t.dropped,i=r),e.PTSKnown=!0})),e.PTSKnown){if(n){u.b.log("discontinuity sliding from playlist, take drift into account");for(var r=e.fragments,a=0;a<r.length;a++)r[a].cc+=n}i?Q(e,i,i.startPTS,i.endPTS,i.startDTS,i.endDTS):function(t,e){var i=e.startSN-t.startSN,n=t.fragments,r=e.fragments;if(!(i<0||i>n.length))for(var a=0;a<r.length;a++)r[a].start+=n[i].start}(t,e),e.PTSKnown=t.PTSKnown}}function J(t,e,i){if(t&&e)for(var n=Math.max(t.startSN,e.startSN)-e.startSN,r=Math.min(t.endSN,e.endSN)-e.startSN,a=e.startSN-t.startSN,s=n;s<=r;s++){var o=t.fragments[a+s],l=e.fragments[s];if(!o||!l)break;i(o,l,s)}}function tt(t,e,i){var n=1e3*(e.averagetargetduration?e.averagetargetduration:e.targetduration),r=n/2;return t&&e.endSN===t.endSN&&(n=r),i&&(n=Math.max(r,n-(window.performance.now()-i))),Math.round(n)}var et=function(t){for(var e="",i=t.length,n=0;n<i;n++)e+="["+t.start(n).toFixed(3)+","+t.end(n).toFixed(3)+"]";return e};function it(t,e){e.fragments.forEach((function(e){if(e){var i=e.start+t;e.start=e.startPTS=i,e.endPTS=i+e.duration}})),e.PTSKnown=!0}function nt(t,e,i){!function(t,e,i){if(function(t,e,i){var n=!1;return e&&e.details&&i&&(i.endCC>i.startCC||t&&t.cc<i.startCC)&&(n=!0),n}(t,i,e)){var n=function(t,e){var i=t.fragments,n=e.fragments;if(n.length&&i.length){var r=function(t,e){for(var i=null,n=0;n<t.length;n+=1){var r=t[n];if(r&&r.cc===e){i=r;break}}return i}(i,n[0].cc);if(r&&(!r||r.startPTS))return r;u.b.log("No frag in previous level to align on")}else u.b.log("No fragments to align")}(i.details,e);n&&(u.b.log("Adjusting PTS using last level due to CC increase within current level"),it(n.start,e))}}(t,i,e),!i.PTSKnown&&e&&function(t,e){if(e&&e.fragments.length){if(!t.hasProgramDateTime||!e.hasProgramDateTime)return;var i=(t.fragments[0].programDateTime-e.fragments[0].programDateTime)/1e3+e.fragments[0].start;Object(l.a)(i)&&(u.b.log("adjusting PTS using programDateTime delta, sliding:"+i.toFixed(3)),it(i,t))}}(i,e.details)}function rt(t,e,i){if(null===e||!Array.isArray(t)||!t.length||!Object(l.a)(e))return null;if(e<(t[0].programDateTime||0))return null;if(e>=(t[t.length-1].endProgramDateTime||0))return null;i=i||0;for(var n=0;n<t.length;++n){var r=t[n];if(ot(e,i,r))return r}return null}function at(t,e,i,n){void 0===i&&(i=0),void 0===n&&(n=0);var r=null;return t?r=e[t.sn-e[0].sn+1]:0===i&&0===e[0].start&&(r=e[0]),r&&0===st(i,n,r)?r:B(e,st.bind(null,i,n))||r}function st(t,e,i){void 0===t&&(t=0),void 0===e&&(e=0);var n=Math.min(e,i.duration+(i.deltaPTS?i.deltaPTS:0));return i.start+i.duration-n<=t?1:i.start-n>t&&i.start?-1:0}function ot(t,e,i){var n=1e3*Math.min(e,i.duration+(i.deltaPTS?i.deltaPTS:0));return(i.endProgramDateTime||0)-n>t}var lt=function(){function t(t,e,i,n){this.config=t,this.media=e,this.fragmentTracker=i,this.hls=n,this.nudgeRetry=0,this.stallReported=!1,this.stalled=null,this.moved=!1,this.seeking=!1}var e=t.prototype;return e.poll=function(t){var e=this.config,i=this.media,n=this.stalled,r=i.currentTime,a=i.seeking,s=this.seeking&&!a,o=!this.seeking&&a;if(this.seeking=a,r===t){if((o||s)&&(this.stalled=null),!i.paused&&!i.ended&&0!==i.playbackRate&&i.buffered.length){var l=U.bufferInfo(i,r,0),c=l.nextStart||0;if(l.len>0||c){if(a){var d=l.len>2,h=!c||c-r>2&&!this.fragmentTracker.getPartialFragment(r);if(d||h)return;this.moved=!1}if(!this.moved&&this.stalled){var f=Math.max(c,l.start||0)-r;if(f>0&&f<=2)return void this._trySkipBufferHole(null)}var p=self.performance.now();if(null!==n){var g=p-n;!a&&g>=250&&this._reportStall(l.len);var m=U.bufferInfo(i,r,e.maxBufferHole);this._tryFixBufferStall(m,g)}else this.stalled=p}}}else if(this.moved=!0,null!==n){if(this.stallReported){var v=self.performance.now()-n;u.b.warn("playback not stuck anymore @"+r+", after "+Math.round(v)+"ms"),this.stallReported=!1}this.stalled=null,this.nudgeRetry=0}},e._tryFixBufferStall=function(t,e){var i=this.config,n=this.fragmentTracker.getPartialFragment(this.media.currentTime);n&&this._trySkipBufferHole(n)||t.len>i.maxBufferHole&&e>1e3*i.highBufferWatchdogPeriod&&(u.b.warn("Trying to nudge playhead over buffer-hole"),this.stalled=null,this._tryNudgeBuffer())},e._reportStall=function(t){var e=this.hls,i=this.media;this.stallReported||(this.stallReported=!0,u.b.warn("Playback stalling at @"+i.currentTime+" due to low buffer (buffer="+t+")"),e.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.BUFFER_STALLED_ERROR,fatal:!1,buffer:t}))},e._trySkipBufferHole=function(t){for(var e=this.config,i=this.hls,n=this.media,r=n.currentTime,a=0,s=0;s<n.buffered.length;s++){var l=n.buffered.start(s);if(r+e.maxBufferHole>=a&&r<l){var d=Math.max(l+.05,n.currentTime+.1);return u.b.warn("skipping hole, adjusting currentTime from "+r+" to "+d),this.moved=!0,this.stalled=null,n.currentTime=d,t&&i.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.BUFFER_SEEK_OVER_HOLE,fatal:!1,reason:"fragment loaded with buffer holes, seeking from "+r+" to "+d,frag:t}),d}a=n.buffered.end(s)}return 0},e._tryNudgeBuffer=function(){var t=this.config,e=this.hls,i=this.media,n=i.
2currentTime,r=(this.nudgeRetry||0)+1;if(this.nudgeRetry=r,r<t.nudgeMaxRetry){var a=n+r*t.nudgeOffset;u.b.warn("Nudging 'currentTime' from "+n+" to "+a),i.currentTime=a,e.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.BUFFER_NUDGE_ON_STALL,fatal:!1})}else u.b.error("Playhead still not moving while enough data buffered @"+n+" after "+t.nudgeMaxRetry+" nudges"),e.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.BUFFER_STALLED_ERROR,fatal:!0})},t}();function ct(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var ut,dt=function(t){var e,i;function n(e){for(var i,n=arguments.length,r=new Array(n>1?n-1:0),a=1;a<n;a++)r[a-1]=arguments[a];return(i=t.call.apply(t,[this,e].concat(r))||this)._boundTick=void 0,i._tickTimer=null,i._tickInterval=null,i._tickCallCount=0,i._boundTick=i.tick.bind(ct(i)),i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.onHandlerDestroying=function(){this.clearNextTick(),this.clearInterval()},r.hasInterval=function(){return!!this._tickInterval},r.hasNextTick=function(){return!!this._tickTimer},r.setInterval=function(t){return!this._tickInterval&&(this._tickInterval=self.setInterval(this._boundTick,t),!0)},r.clearInterval=function(){return!!this._tickInterval&&(self.clearInterval(this._tickInterval),this._tickInterval=null,!0)},r.clearNextTick=function(){return!!this._tickTimer&&(self.clearTimeout(this._tickTimer),this._tickTimer=null,!0)},r.tick=function(){this._tickCallCount++,1===this._tickCallCount&&(this.doTick(),this._tickCallCount>1&&(this.clearNextTick(),this._tickTimer=self.setTimeout(this._boundTick,0)),this._tickCallCount=0)},r.doTick=function(){},n}(h),ht="STOPPED",ft="STARTING",pt="IDLE",gt="KEY_LOADING",mt="FRAG_LOADING",vt="FRAG_LOADING_WAITING_RETRY",yt="WAITING_TRACK",bt="PARSING",wt="PARSED",Tt="BUFFER_FLUSHING",xt="ENDED",Et="ERROR",St="WAITING_INIT_PTS",_t="WAITING_LEVEL",kt=function(t){var e,i;function n(){return t.apply(this,arguments)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.doTick=function(){},r.startLoad=function(){},r.stopLoad=function(){var t=this.fragCurrent;t&&(t.loader&&t.loader.abort(),this.fragmentTracker.removeFragment(t)),this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.fragCurrent=null,this.fragPrevious=null,this.clearInterval(),this.clearNextTick(),this.state=ht},r._streamEnded=function(t,e){var i=this.fragCurrent;if(!e.live&&i&&!i.backtracked&&i.sn===e.endSN&&!t.nextStart){var n=this.fragmentTracker.getState(i);return n===F||"OK"===n}return!1},r.onMediaSeeking=function(){var t=this.config,e=this.media,i=this.state,n=e?e.currentTime:null,r=U.bufferInfo(this.mediaBuffer||e,n,this.config.maxBufferHole);if(u.b.log("media seeking to "+(Object(l.a)(n)?n.toFixed(3):n)),i===mt){var a=this.fragCurrent;if(0===r.len&&a){var s=t.maxFragLookUpTolerance;n<a.start-s||n>a.start+a.duration+s?(a.loader&&(u.b.log("seeking outside of buffer while fragment load in progress, cancel fragment load"),a.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.state=pt):u.b.log("seeking outside of buffer but within currently loaded fragment range")}}else i===xt&&(0===r.len&&(this.fragPrevious=null,this.fragCurrent=null),this.state=pt);e&&(this.lastCurrentTime=n),this.loadedmetadata||(this.nextLoadPosition=this.startPosition=n),this.tick()},r.onMediaEnded=function(){this.startPosition=this.lastCurrentTime=0},r.onHandlerDestroying=function(){this.stopLoad(),t.prototype.onHandlerDestroying.call(this)},r.onHandlerDestroyed=function(){this.state=ht,this.fragmentTracker=null},r.computeLivePosition=function(t,e){return t+Math.max(0,e.totalduration-(void 0!==this.config.liveSyncDuration?this.config.liveSyncDuration:this.config.liveSyncDurationCount*e.targetduration))},n}(dt),Ct=function(t){var e,i;function n(e,i){var n;return(n=t.call(this,e,c.a.MEDIA_ATTACHED,c.a.MEDIA_DETACHING,c.a.MANIFEST_LOADING,c.a.MANIFEST_PARSED,c.a.LEVEL_LOADED,c.a.LEVELS_UPDATED,c.a.KEY_LOADED,c.a.FRAG_LOADED,c.a.FRAG_LOAD_EMERGENCY_ABORTED,c.a.FRAG_PARSING_INIT_SEGMENT,c.a.FRAG_PARSING_DATA,c.a.FRAG_PARSED,c.a.ERROR,c.a.AUDIO_TRACK_SWITCHING,c.a.AU
vendor: 1,677 bytes, line 2
2DIO_TRACK_SWITCHED,c.a.BUFFER_CREATED,c.a.BUFFER_APPENDED,c.a.BUFFER_FLUSHED)||this).fragmentTracker=i,n.config=e.config,n.audioCodecSwap=!1,n._state=ht,n.stallReported=!1,n.gapController=null,n.altAudio=!1,n.audioOnly=!1,n.bitrateTest=!1,n}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,s=n.prototype;return s.startLoad=function(t){if(this.levels){var e=this.lastCurrentTime,i=this.hls;if(this.stopLoad(),this.setInterval(100),this.level=-1,this.fragLoadError=0,!this.startFragRequested){var n=i.startLevel;-1===n&&(i.config.testBandwidth?(n=0,this.bitrateTest=!0):n=i.nextAutoLevel),this.level=i.nextLoadLevel=n,this.loadedmetadata=!1}e>0&&-1===t&&(u.b.log("override startPosition with lastCurrentTime @"+e.toFixed(3)),t=e),this.state=pt,this.nextLoadPosition=this.startPosition=this.lastCurrentTime=t,this.tick()}else this.forceStartLoad=!0,this.state=ht},s.stopLoad=function(){this.forceStartLoad=!1,t.prototype.stopLoad.call(this)},s.doTick=function(){switch(this.state){case Tt:this.fragLoadError=0;break;case pt:this._doTickIdle();break;case _t:var t=this.levels[this.level];t&&t.details&&(this.state=pt);break;case vt:var e=window.performance.now(),i=this.retryDate;(!i||e>=i||this.media&&this.media.seeking)&&(u.b.log("mediaController: retryDate reached, switch back to IDLE state"),this.state=pt)}this._checkBuffer(),this._checkFragmentChanged()},s._doTickIdle=function(){var t=this.hls,e=t.config,i=this.media;if(void 0!==this.levelLastLoaded&&(i||!this.startFragRequested&&e.startFragPrefetch))if(this.altAudio&&this.audioOnly)this.demuxer.frag=null;else{var n;n=this.loadedmetadata?i.currentTime:this.nextLoadPosition;
vendor: 6,704 bytes, line 2
2var r=t.nextLoadLevel,a=this.levels[r];if(a){var s,o=a.bitrate;s=o?Math.max(8*e.maxBufferSize/o,e.maxBufferLength):e.maxBufferLength,s=Math.min(s,e.maxMaxBufferLength);var l=n<e.maxBufferHole?Math.max(2,e.maxBufferHole):e.maxBufferHole,d=U.bufferInfo(this.mediaBuffer?this.mediaBuffer:i,n,l),h=d.len;if(!(h>=s)){u.b.trace("buffer length of "+h.toFixed(3)+" is below max of "+s.toFixed(3)+". checking for more payload ..."),this.level=t.nextLoadLevel=r;var f=a.details;if(!f||f.live&&this.levelLastLoaded!==r)this.state=_t;else{if(this._streamEnded(d,f)){var p={};return this.altAudio&&(p.type="video"),this.hls.trigger(c.a.BUFFER_EOS,p),void(this.state=xt)}this._fetchPayloadOrEos(n,d,f)}}}}},s._fetchPayloadOrEos=function(t,e,i){var n=this.fragPrevious,r=i.fragments,a=r.length;if(0!==a){var s,o=r[0].start,l=r[a-1].start+r[a-1].duration,c=e.end;if(i.initSegment&&!i.initSegment.data)s=i.initSegment;else if(i.live){var d=this.config.initialLiveManifestSize;if(a<d)return void u.b.warn("Can not start playback of a level, reason: not enough fragments "+a+" < "+d);if(null===(s=this._ensureFragmentAtLivePoint(i,c,o,l,n,r)))return}else c<o&&(s=r[0]);s||(s=this._findFragment(o,n,a,r,c,l,i)),s&&(s.encrypted?this._loadKey(s,i):this._loadFragment(s,i,t,c))}},s._ensureFragmentAtLivePoint=function(t,e,i,n,r,a){var s,o=this.hls.config,c=this.media,d=1/0;if(void 0!==o.liveMaxLatencyDuration?d=o.liveMaxLatencyDuration:Object(l.a)(o.liveMaxLatencyDurationCount)&&(d=o.liveMaxLatencyDurationCount*t.targetduration),e<Math.max(i-o.maxFragLookUpTolerance,n-d)){var h=this.liveSyncPosition=this.computeLivePosition(i,t);e=h,c&&!c.paused&&c.readyState&&c.duration>h&&h>c.currentTime&&(u.b.log("buffer end: "+e.toFixed(3)+" is located too far from the end of live sliding playlist, reset currentTime to : "+h.toFixed(3)),c.currentTime=h),this.nextLoadPosition=h}if(t.PTSKnown&&e>n&&c&&c.readyState)return null;if(this.startFragRequested&&!t.PTSKnown&&r)if(t.hasProgramDateTime)u.b.log("live playlist, switching playlist, load frag with same PDT: "+r.programDateTime),s=rt(a,r.endProgramDateTime,o.maxFragLookUpTolerance);else{var f=r.sn+1;if(f>=t.startSN&&f<=t.endSN){var p=a[f-t.startSN];r.cc===p.cc&&u.b.log("live playlist, switching playlist, load frag with next SN: "+(s=p).sn)}s||(s=B(a,(function(t){return r.cc-t.cc})))&&u.b.log("live playlist, switching playlist, load frag with same CC: "+s.sn)}return s},s._findFragment=function(t,e,i,n,r,a,s){var o,l=this.hls.config;if(o=r<a?at(e,n,r,r>a-l.maxFragLookUpTolerance?0:l.maxFragLookUpTolerance):n[i-1]){var c=o.sn-s.startSN,d=n[c-1],h=n[c+1];if(e&&o.sn===e.sn)if(e&&o.level===e.level&&!o.backtracked)if(o.sn<s.endSN){var f=e.deltaPTS;f&&f>l.maxBufferHole&&e.dropped&&c?(o=d,u.b.warn("Previous fragment was dropped with large PTS gap between audio and video. Maybe fragment is not starting with a keyframe? Loading previous one to try to overcome this")):u.b.log("Re-loading fragment with SN: "+(o=h).sn)}else o=null;else o.backtracked&&(h&&h.backtracked?(u.b.warn("Already backtracked from fragment "+h.sn+", will not backtrack to fragment "+o.sn+". Loading fragment "+h.sn),o=h):(u.b.warn("Loaded fragment with dropped frames, backtracking 1 segment to find a keyframe"),o.dropped=0,d?(o=d).backtracked=!0:c&&(o=null)))}return o},s._loadKey=function(t,e){u.b.log("Loading key for "+t.sn+" of ["+e.startSN+" ,"+e.endSN+"],level "+this.level),this.state=gt,this.hls.trigger(c.a.KEY_LOADING,{frag:t})},s._loadFragment=function(t,e,i,n){var r=this.fragmentTracker.getState(t);this.fragCurrent=t,"initSegment"!==t.sn&&(this.startFragRequested=!0),Object(l.a)(t.sn)&&!t.bitrateTest&&(this.nextLoadPosition=t.start+t.duration),t.backtracked||r===I||r===F?(t.autoLevel=this.hls.autoLevelEnabled,t.bitrateTest=this.bitrateTest,u.b.log("Loading "+t.sn+" of ["+e.startSN+" ,"+e.endSN+"],level "+this.level+", currentTime:"+i.toFixed(3)+",bufferEnd:"+n.toFixed(3)),this.hls.trigger(c.a.FRAG_LOADING,{frag:t}),this.demuxer||(this.demuxer=new V(this.hls,"main")),this.state=mt):r===M&&this._reduceMaxBufferLength(t.duration)&&this.fragmentTracker.removeFragment(t)},s.getBufferedFrag=function(t){return this.fragmentTracker.getBufferedFrag(t,a.MAIN)},s.followingBufferedFrag=function(t){return t?this.getBufferedFrag(t.endPTS+.5):null},s._checkFragmentChanged=function(){var t,e,i=this.media;if(i&&i.readyState&&!1===i.seeking&&((e=i.currentTime)>this.lastCurrentTime&&(this.lastCurrentTime=e),U.isBuffered(i,e)?t=this.getBufferedFrag(e):U.isBuffered(i,e+.1)&&(t=this.getBufferedFrag(e+.1)),t)){var n=t;if(n!==this.fragPlaying){this.hls.trigger(c.a.FRAG_CHANGED,{frag:n});var r=n.level;this.fragPlaying&&this.fragPlaying.level===r||this.hls.trigger(c.a.LEVEL_SWITCHED,{level:r}),this.fragPlaying=n}}},s.immediateLevelSwitch=function(){if(u.b.log("immediateLevelSwitch"),!this.immediateSwitch){this.immediateSwitch=!0;var t,e=this.media;e?(t=e.paused)||e.pause():t=!0,this.previouslyPaused=t}var i=this.fragCurrent;i&&i.loader&&i.loader.abort(),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)},s.immediateLevelSwitchEnd=function(){var t=this.media;t&&t.buffered.length&&(this.immediateSwitch=!1,t.currentTime>0&&U.isBuffered(t,t.currentTime)&&(t.currentTime-=1e-4),this.previouslyPaused||t.play())},s.nextLevelSwitch=function(){var t=this.media;if(t&&t.readyState){var e,i=this.getBufferedFrag(t.currentTime);if(i&&i.startPTS>1&&this.flushMainBuffer(0,i.startPTS-1),t.paused)e=0;else{var n=this.fragLastKbps;e=n&&this.fragCurrent?this.fragCurrent.duration*this.levels[this.hls.nextLoadLevel].bitrate/(1e3*n)+1:0}var r=this.getBufferedFrag(t.currentTime+e);if(r){var a=this.followingBufferedFrag(r);if(a){var s=this.fragCurrent;s&&s.loader&&s.loader.abort(),this.fragCurrent=null;var o=Math.max(r.endPTS,a.maxStartPTS+Math.min(this.config.maxFragLookUpTolerance,a.duration));this.flushMainBuffer(o,Number.POSITIVE_INFINITY)}}}},s.flushMainBuffer=function(t,e){this.state=Tt;var i={startOffset:t,endOffset:e};this.altAudio&&(i.type="video"),this.hls.trigger(c.a.BUFFER_FLUSHING,i)},s.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvseeked=this.onMediaSeeked.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("seeked",this.onvseeked),e.addEventListener("ended",this.onvended);var i=this.config;this.levels&&i.autoStartLoad&&this.hls.startLoad(i.startPosition),this.gapController=new lt(i,e,this.fragmentTracker,this.hls)},s.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(u.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0);var e=this.levels;
vendor: 5,376 bytes, line 2
2e&&e.forEach((function(t){t.details&&t.details.fragments.forEach((function(t){t.backtracked=void 0}))})),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("seeked",this.onvseeked),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.fragmentTracker.removeAllFragments(),this.media=this.mediaBuffer=null,this.loadedmetadata=!1,this.stopLoad()},s.onMediaSeeked=function(){var t=this.media,e=t?t.currentTime:void 0;Object(l.a)(e)&&u.b.log("media seeked to "+e.toFixed(3)),this.tick()},s.onManifestLoading=function(){u.b.log("trigger BUFFER_RESET"),this.hls.trigger(c.a.BUFFER_RESET),this.fragmentTracker.removeAllFragments(),this.stalled=!1,this.startPosition=this.lastCurrentTime=0},s.onManifestParsed=function(t){var e,i=!1,n=!1;t.levels.forEach((function(t){(e=t.audioCodec)&&(-1!==e.indexOf("mp4a.40.2")&&(i=!0),-1!==e.indexOf("mp4a.40.5")&&(n=!0))})),this.audioCodecSwitch=i&&n,this.audioCodecSwitch&&u.b.log("both AAC/HE-AAC audio found in levels; declaring level codec as HE-AAC"),this.altAudio=t.altAudio,this.levels=t.levels,this.startFragRequested=!1;var r=this.config;(r.autoStartLoad||this.forceStartLoad)&&this.hls.startLoad(r.startPosition)},s.onLevelLoaded=function(t){var e=t.details,i=t.level,n=this.levels[this.levelLastLoaded],r=this.levels[i],a=e.totalduration,s=0;if(u.b.log("level "+i+" loaded ["+e.startSN+","+e.endSN+"],duration:"+a),e.live){var o=r.details;o&&e.fragments.length>0?(Z(o,e),this.liveSyncPosition=this.computeLivePosition(s=e.fragments[0].start,o),e.PTSKnown&&Object(l.a)(s)?u.b.log("live playlist sliding:"+s.toFixed(3)):(u.b.log("live playlist - outdated PTS, unknown sliding"),nt(this.fragPrevious,n,e))):(u.b.log("live playlist - first load, unknown sliding"),e.PTSKnown=!1,nt(this.fragPrevious,n,e))}else e.PTSKnown=!1;if(r.details=e,this.levelLastLoaded=i,this.hls.trigger(c.a.LEVEL_UPDATED,{details:e,level:i}),!1===this.startFragRequested){if(-1===this.startPosition||-1===this.lastCurrentTime){var d=e.startTimeOffset;Object(l.a)(d)?(d<0&&(u.b.log("negative start time offset "+d+", count from end of last fragment"),d=s+a+d),u.b.log("start time offset found in playlist, adjust startPosition to "+d),this.startPosition=d):e.live?(this.startPosition=this.computeLivePosition(s,e),u.b.log("configure startPosition to "+this.startPosition)):this.startPosition=0,this.lastCurrentTime=this.startPosition}this.nextLoadPosition=this.startPosition}this.state===_t&&(this.state=pt),this.tick()},s.onKeyLoaded=function(){this.state===gt&&(this.state=pt,this.tick())},s.onFragLoaded=function(t){var e=this.fragCurrent,i=this.hls,n=this.media,r=t.frag;if(this.state===mt&&e&&"main"===r.type&&r.level===e.level&&r.sn===e.sn){var a=t.stats,s=this.levels[e.level],o=s.details;if(this.bitrateTest=!1,this.stats=a,u.b.log("Loaded "+e.sn+" of ["+o.startSN+" ,"+o.endSN+"],level "+e.level),r.bitrateTest&&i.nextLoadLevel)this.state=pt,this.startFragRequested=!1,a.tparsed=a.tbuffered=window.performance.now(),i.trigger(c.a.FRAG_BUFFERED,{stats:a,frag:e,id:"main"}),this.tick();else if("initSegment"===r.sn)this.state=pt,a.tparsed=a.tbuffered=window.performance.now(),o.initSegment.data=t.payload,i.trigger(c.a.FRAG_BUFFERED,{stats:a,frag:e,id:"main"}),this.tick();else{u.b.log("Parsing "+e.sn+" of ["+o.startSN+" ,"+o.endSN+"],level "+e.level+", cc "+e.cc),this.state=bt,this.pendingBuffering=!0,this.appended=!1,r.bitrateTest&&(r.bitrateTest=!1,this.fragmentTracker.onFragLoaded({frag:r}));var l=!(n&&n.seeking)&&(o.PTSKnown||!o.live),d=o.initSegment?o.initSegment.data:[],h=this._getAudioCodec(s);(this.demuxer=this.demuxer||new V(this.hls,"main")).push(t.payload,d,h,s.videoCodec,e,o.totalduration,l)}}this.fragLoadError=0},s.onFragParsingInitSegment=function(t){var e=this.fragCurrent,i=t.frag;if(e&&"main"===t.id&&i.sn===e.sn&&i.level===e.level&&this.state===bt){var n,r,a=t.tracks;if(this.audioOnly=a.audio&&!a.video,this.altAudio&&!this.audioOnly&&delete a.audio,r=a.audio){var s=this.levels[this.level].audioCodec,o=navigator.userAgent.toLowerCase();s&&this.audioCodecSwap&&(u.b.log("swapping playlist audio codec"),s=-1!==s.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5"),this.audioCodecSwitch&&1!==r.metadata.channelCount&&-1===o.indexOf("firefox")&&(s="mp4a.40.5"),-1!==o.indexOf("android")&&"audio/mpeg"!==r.container&&u.b.log("Android: force audio codec to "+(s="mp4a.40.2")),r.levelCodec=s,r.id=t.id}for(n in(r=a.video)&&(r.levelCodec=this.levels[this.level].videoCodec,r.id=t.id),this.hls.trigger(c.a.BUFFER_CODECS,a),a){u.b.log("main track:"+n+",container:"+(r=a[n]).container+",codecs[level/parsed]=["+r.levelCodec+"/"+r.codec+"]");var l=r.initSegment;l&&(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(c.a.BUFFER_APPENDING,{type:n,data:l,parent:"main",content:"initSegment"}))}this.tick()}},s.onFragParsingData=function(t){var e=this,i=this.fragCurrent,n=t.frag;if(i&&"main"===t.id&&n.sn===i.sn&&n.level===i.level&&("audio"!==t.type||!this.altAudio)&&this.state===bt){var r=this.levels[this.level],a=i;if(Object(l.a)(t.endPTS)||(t.endPTS=t.startPTS+i.duration,t.endDTS=t.startDTS+i.duration),!0===t.hasAudio&&a.addElementaryStream(f.AUDIO),!0===t.hasVideo&&a.addElementaryStream(f.VIDEO),u.b.log("Parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb+",dropped:"
vendor: 7,871 bytes, line 2
2+(t.dropped||0)),"video"===t.type)if(a.dropped=t.dropped,a.dropped)if(a.backtracked)u.b.warn("Already backtracked on this fragment, appending with the gap",a.sn);else{var s=r.details;if(!s||a.sn!==s.startSN)return u.b.warn("missing video frame(s), backtracking fragment",a.sn),this.fragmentTracker.removeFragment(a),a.backtracked=!0,this.nextLoadPosition=t.startPTS,this.state=pt,this.fragPrevious=a,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),void this.tick();u.b.warn("missing video frame(s) on first frag, appending with gap",a.sn)}else a.backtracked=!1;var o=Q(r.details,a,t.startPTS,t.endPTS,t.startDTS,t.endDTS),d=this.hls;d.trigger(c.a.LEVEL_PTS_UPDATED,{details:r.details,level:this.level,drift:o,type:t.type,start:t.startPTS,end:t.endPTS}),[t.data1,t.data2].forEach((function(i){i&&i.length&&e.state===bt&&(e.appended=!0,e.pendingBuffering=!0,d.trigger(c.a.BUFFER_APPENDING,{type:t.type,data:i,parent:"main",content:"data"}))})),this.tick()}},s.onFragParsed=function(t){var e=this.fragCurrent,i=t.frag;e&&"main"===t.id&&i.sn===e.sn&&i.level===e.level&&this.state===bt&&(this.stats.tparsed=window.performance.now(),this.state=wt,this._checkAppendedParsed())},s.onAudioTrackSwitching=function(t){var e=t.id;if(!t.url){if(this.mediaBuffer!==this.media){u.b.log("switching on main audio, use media.buffered to schedule main fragment loading"),this.mediaBuffer=this.media;var i=this.fragCurrent;i.loader&&(u.b.log("switching to main audio track, cancel main fragment load"),i.loader.abort()),this.fragCurrent=null,this.fragPrevious=null,this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),this.state=pt}var n=this.hls;n.trigger(c.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),n.trigger(c.a.AUDIO_TRACK_SWITCHED,{id:e}),this.altAudio=!1}},s.onAudioTrackSwitched=function(t){var e=!!this.hls.audioTracks[t.id].url;if(e){var i=this.videoBuffer;i&&this.mediaBuffer!==i&&(u.b.log("switching on alternate audio, use video.buffered to schedule main fragment loading"),this.mediaBuffer=i)}this.altAudio=e,this.tick()},s.onBufferCreated=function(t){var e,i,n=t.tracks,r=!1;for(var a in n){var s=n[a];"main"===s.id?(i=a,e=s,"video"===a&&(this.videoBuffer=n[a].buffer)):r=!0}r&&e?(u.b.log("alternate track found, use "+i+".buffered to schedule main fragment loading"),this.mediaBuffer=e.buffer):this.mediaBuffer=this.media},s.onBufferAppended=function(t){if("main"===t.parent){var e=this.state;e!==bt&&e!==wt||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},s._checkAppendedParsed=function(){if(!(this.state!==wt||this.appended&&this.pendingBuffering)){var t=this.fragCurrent;if(t){u.b.log("main buffered : "+et((this.mediaBuffer?this.mediaBuffer:this.media).buffered)),this.fragPrevious=t;var e=this.stats;e.tbuffered=window.performance.now(),this.fragLastKbps=Math.round(8*e.total/(e.tbuffered-e.tfirst)),this.hls.trigger(c.a.FRAG_BUFFERED,{stats:e,frag:t,id:"main"}),this.state=pt}(this.loadedmetadata||this.startPosition<=0)&&this.tick()}},s.onError=function(t){var e=t.frag||this.fragCurrent;if(!e||"main"===e.type){var i=!!this.media&&U.isBuffered(this.media,this.media.currentTime)&&U.isBuffered(this.media,this.media.currentTime+.5);switch(t.details){case o.a.FRAG_LOAD_ERROR:case o.a.FRAG_LOAD_TIMEOUT:case o.a.KEY_LOAD_ERROR:case o.a.KEY_LOAD_TIMEOUT:if(!t.fatal)if(this.fragLoadError+1<=this.config.fragLoadingMaxRetry){var n=Math.min(Math.pow(2,this.fragLoadError)*this.config.fragLoadingRetryDelay,this.config.fragLoadingMaxRetryTimeout);u.b.warn("mediaController: frag loading failed, retry in "+n+" ms"),this.retryDate=window.performance.now()+n,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.fragLoadError++,this.state=vt}else u.b.error("mediaController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Et;break;case o.a.LEVEL_LOAD_ERROR:case o.a.LEVEL_LOAD_TIMEOUT:this.state!==Et&&(t.fatal?(this.state=Et,u.b.warn("streamController: "+t.details+",switch to "+this.state+" state ...")):t.levelRetry||this.state!==_t||(this.state=pt));break;case o.a.BUFFER_FULL_ERROR:"main"!==t.parent||this.state!==bt&&this.state!==wt||(i?(this._reduceMaxBufferLength(this.config.maxBufferLength),this.state=pt):(u.b.warn("buffer full error also media.currentTime is not buffered, flush everything"),this.fragCurrent=null,this.flushMainBuffer(0,Number.POSITIVE_INFINITY)))}}},s._reduceMaxBufferLength=function(t){var e=this.config;return e.maxMaxBufferLength>=t&&(e.maxMaxBufferLength/=2,u.b.warn("main:reduce max buffer length to "+e.maxMaxBufferLength+"s"),!0)},s._checkBuffer=function(){var t=this.media;if(t&&0!==t.readyState){var e=(this.mediaBuffer?this.mediaBuffer:t).buffered;!this.loadedmetadata&&e.length?(this.loadedmetadata=!0,this._seekToStartPos()):this.immediateSwitch?this.immediateLevelSwitchEnd():this.gapController.poll(this.lastCurrentTime,e)}},s.onFragLoadEmergencyAborted=function(){this.state=pt,this.loadedmetadata||(this.startFragRequested=!1,this.nextLoadPosition=this.startPosition),this.tick()},s.onBufferFlushed=function(){var t=this.mediaBuffer?this.mediaBuffer:this.media;t&&this.fragmentTracker.detectEvictedFragments(this.audioOnly?f.AUDIO:f.VIDEO,t.buffered),this.state=pt,this.fragPrevious=null},s.onLevelsUpdated=function(t){this.levels=t.levels},s.swapAudioCodec=function(){this.audioCodecSwap=!this.audioCodecSwap},s._seekToStartPos=function(){var t=this.media,e=t.currentTime,i=this.startPosition;if(e!==i&&i>=0){if(t.seeking)return void u.b.log("could not seek to "+i+", already seeking at "+e);var n=(t.buffered.length?t.buffered.start(0):0)-i;n>0&&n<this.config.maxBufferHole&&(u.b.log("adjusting start position by "+n+" to match buffer start"),this.startPosition=i+=n),u.b.log("seek to target start position "+i+" from current time "+e+". ready state "+t.readyState),t.currentTime=i}},s._getAudioCodec=function(t){var e=this.config.defaultAudioCodec||t.audioCodec;return this.audioCodecSwap&&(u.b.log("swapping playlist audio codec"),e&&(e=-1!==e.indexOf("mp4a.40.5")?"mp4a.40.2":"mp4a.40.5")),e},(r=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,u.b.log("main stream-controller: "+e+"->"+t),this.hls.trigger(c.a.STREAM_STATE_TRANSITION,{previousState:e,nextState:t})}},get:function(){return this._state}},{key:"currentLevel",get:function(){var t=this.media;if(t){var e=this.getBufferedFrag(t.currentTime);if(e)return e.level}return-1}},{key:"nextBufferedFrag",get:function(){var t=this.media;return t?this.followingBufferedFrag(this.getBufferedFrag(t.currentTime)):null}},{key:"nextLevel",get:function(){var t=this.nextBufferedFrag;return t?t.level:-1}},{key:"liveSyncPosition",get:function(){return this._liveSyncPosition},set:function(t){this._liveSyncPosition=t}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(kt),At=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MANIFEST_LOADED,c.a.LEVEL_LOADED,c.a.AUDIO_TRACK_SWITCHED,c.a.FRAG_LOADED,c.a.ERROR)||this).canload=!1,i.currentLevelIndex=null,i.manualLevelIndex=-1,i.timer=null,ut=/chrome|firefox/.test(navigator.userAgent.toLowerCase()),i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a=n.prototype;return a.onHandlerDestroying=function(){this.clearTimer(),this.manualLevelIndex=-1},a.clearTimer=function(){null!==this.timer&&(clearTimeout(this.timer),this.timer=null)},a.startLoad=function(){var t=this._levels;this.canload=!0,this.levelRetryCount=0,t&&t.forEach((function(t){t.loadError=0;var e=t.details;e&&e.live&&(t.details=void 0)})),null!==this.timer&&this.loadLevel()},a.stopLoad=function(){this.canload=!1},a.onManifestLoaded=function(t){var e,i=[],n=[],r={},a=null,s=!1,l=!1;
vendor: 33,410 bytes, line 2
2if(t.levels.forEach((function(t){var e=t.attrs;t.loadError=0,t.fragmentError=!1,s=s||!!t.videoCodec,l=l||!!t.audioCodec,ut&&t.audioCodec&&-1!==t.audioCodec.indexOf("mp4a.40.34")&&(t.audioCodec=void 0),(a=r[t.bitrate])?a.url.push(t.url):(t.url=[t.url],t.urlId=0,r[t.bitrate]=t,i.push(t)),e&&(e.AUDIO&&Y(a||t,"audio",e.AUDIO),e.SUBTITLES&&Y(a||t,"text",e.SUBTITLES))})),s&&l&&(i=i.filter((function(t){return!!t.videoCodec}))),i=i.filter((function(t){var e=t.audioCodec,i=t.videoCodec;return(!e||x(e,"audio"))&&(!i||x(i,"video"))})),t.audioTracks&&(n=t.audioTracks.filter((function(t){return!t.audioCodec||x(t.audioCodec,"audio")}))).forEach((function(t,e){t.id=e})),i.length>0){e=i[0].bitrate,i.sort((function(t,e){return t.bitrate-e.bitrate})),this._levels=i;for(var d=0;d<i.length;d++)if(i[d].bitrate===e){this._firstLevel=d,u.b.log("manifest loaded,"+i.length+" level(s) found, first bitrate:"+e);break}this.hls.trigger(c.a.MANIFEST_PARSED,{levels:i,audioTracks:n,firstLevel:this._firstLevel,stats:t.stats,audio:l,video:s,altAudio:!(l&&!s)&&n.some((function(t){return!!t.url}))})}else this.hls.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.MANIFEST_INCOMPATIBLE_CODECS_ERROR,fatal:!0,url:this.hls.url,reason:"no level with compatible codecs found in manifest"})},a.setLevelInternal=function(t){var e=this._levels,i=this.hls;if(t>=0&&t<e.length){if(this.clearTimer(),this.currentLevelIndex!==t){u.b.log("switching to level "+t),this.currentLevelIndex=t;var n=e[t];n.level=t,i.trigger(c.a.LEVEL_SWITCHING,n)}var r=e[t],a=r.details;if(!a||a.live){var s=r.urlId;i.trigger(c.a.LEVEL_LOADING,{url:r.url[s],level:t,id:s})}}else i.trigger(c.a.ERROR,{type:o.b.OTHER_ERROR,details:o.a.LEVEL_SWITCH_ERROR,level:t,fatal:!1,reason:"invalid level idx"})},a.onError=function(t){if(t.fatal)t.type===o.b.NETWORK_ERROR&&this.clearTimer();else{var e,i=!1,n=!1;switch(t.details){case o.a.FRAG_LOAD_ERROR:case o.a.FRAG_LOAD_TIMEOUT:case o.a.KEY_LOAD_ERROR:case o.a.KEY_LOAD_TIMEOUT:e=t.frag.level,n=!0;break;case o.a.LEVEL_LOAD_ERROR:case o.a.LEVEL_LOAD_TIMEOUT:e=t.context.level,i=!0;break;case o.a.REMUX_ALLOC_ERROR:e=t.level,i=!0}void 0!==e&&this.recoverLevel(t,e,i,n)}},a.recoverLevel=function(t,e,i,n){var r,a,s,o=this,l=this.hls.config,c=t.details,d=this._levels[e];if(d.loadError++,d.fragmentError=n,i){if(!(this.levelRetryCount+1<=l.levelLoadingMaxRetry))return u.b.error("level controller, cannot recover from "+c+" error"),this.currentLevelIndex=null,this.clearTimer(),void(t.fatal=!0);a=Math.min(Math.pow(2,this.levelRetryCount)*l.levelLoadingRetryDelay,l.levelLoadingMaxRetryTimeout),this.timer=setTimeout((function(){return o.loadLevel()}),a),t.levelRetry=!0,this.levelRetryCount++,u.b.warn("level controller, "+c+", retry in "+a+" ms, current retry count is "+this.levelRetryCount)}(i||n)&&((r=d.url.length)>1&&d.loadError<r?(d.urlId=(d.urlId+1)%r,d.details=void 0,u.b.warn("level controller, "+c+" for level "+e+": switching to redundant URL-id "+d.urlId)):-1===this.manualLevelIndex?(u.b.warn("level controller, "+c+": switch to "+(s=0===e?this._levels.length-1:e-1)),this.hls.nextAutoLevel=this.currentLevelIndex=s):n&&(u.b.warn("level controller, "+c+": reload a fragment"),this.currentLevelIndex=null))},a.onFragLoaded=function(t){var e=t.frag;if(void 0!==e&&"main"===e.type){var i=this._levels[e.level];void 0!==i&&(i.fragmentError=!1,i.loadError=0,this.levelRetryCount=0)}},a.onLevelLoaded=function(t){var e=this,i=t.level,n=t.details;if(i===this.currentLevelIndex){var r=this._levels[i];if(r.fragmentError||(r.loadError=0,this.levelRetryCount=0),n.live){var a=tt(r.details,n,t.stats.trequest);u.b.log("live playlist, reload in "+Math.round(a)+" ms"),this.timer=setTimeout((function(){return e.loadLevel()}),a)}else this.clearTimer()}},a.onAudioTrackSwitched=function(t){var e=this.hls.audioTracks[t.id].groupId,i=this.hls.levels[this.currentLevelIndex];if(i&&i.audioGroupIds){for(var n=-1,r=0;r<i.audioGroupIds.length;r++)if(i.audioGroupIds[r]===e){n=r;break}n!==i.urlId&&(i.urlId=n,this.startLoad())}},a.loadLevel=function(){if(u.b.debug("call to loadLevel"),null!==this.currentLevelIndex&&this.canload){var t=this._levels[this.currentLevelIndex];if("object"==typeof t&&t.url.length>0){var e=this.currentLevelIndex,i=t.urlId,n=t.url[i];u.b.log("Attempt loading level index "+e+" with URL-id "+i),this.hls.trigger(c.a.LEVEL_LOADING,{url:n,level:e,id:i})}}},a.removeLevel=function(t,e){var i=this.levels.filter((function(i,n){return n!==t||i.url.length>1&&void 0!==e&&(i.url=i.url.filter((function(t,i){return i!==e})),i.urlId=0,!0)})).map((function(t,e){var i=t.details;return i&&i.fragments&&i.fragments.forEach((function(t){t.level=e})),t}));this._levels=i,this.hls.trigger(c.a.LEVELS_UPDATED,{levels:i})},(r=[{key:"levels",get:function(){return this._levels}},{key:"level",get:function(){return this.currentLevelIndex},set:function(t){var e=this._levels;e&&(t=Math.min(t,e.length-1),this.currentLevelIndex===t&&e[t].details||this.setLevelInternal(t))}},{key:"manualLevel",get:function(){return this.manualLevelIndex},set:function(t){this.manualLevelIndex=t,void 0===this._startLevel&&(this._startLevel=t),-1!==t&&(this.level=t)}},{key:"firstLevel",get:function(){return this._firstLevel},set:function(t){this._firstLevel=t}},{key:"startLevel",get:function(){if(void 0===this._startLevel){var t=this.hls.config.startLevel;return void 0!==t?t:this._firstLevel}return this._startLevel},set:function(t){this._startLevel=t}},{key:"nextLoadLevel",get:function(){return-1!==this.manualLevelIndex?this.manualLevelIndex:this.hls.nextAutoLevel},set:function(t){this.level=t,-1===this.manualLevelIndex&&(this.hls.nextAutoLevel=t)}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(h),Rt=i(4);function Lt(t,e){var i;try{i=new Event("addtrack")}catch(t){(i=document.createEvent("Event")).initEvent("addtrack",!1,!1)}i.track=t,e.dispatchEvent(i)}function Dt(t){if(null==t?void 0:t.cues)for(;t.cues.length>0;)t.removeCue(t.cues[0])}var Ot=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MEDIA_ATTACHED,c.a.MEDIA_DETACHING,c.a.FRAG_PARSING_METADATA,c.a.LIVE_BACK_BUFFER_REACHED)||this).id3Track=void 0,i.media=void 0,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.destroy=function(){h.prototype.destroy.call(this)},r.onMediaAttached=function(t){this.media=t.media},r.onMediaDetaching=function(){Dt(this.id3Track),this.id3Track=void 0,this.media=void 0},r.getID3Track=function(t){for(var e=0;e<t.length;e++){var i=t[e];if("metadata"===i.kind&&"id3"===i.label)return Lt(i,this.media),i}return this.media.addTextTrack("metadata","id3")},r.onFragParsingMetadata=function(t){var e=t.frag,i=t.samples;this.id3Track||(this.id3Track=this.getID3Track(this.media.textTracks),this.id3Track.mode="hidden");for(var n=window.WebKitDataCue||window.VTTCue||window.TextTrackCue,r=0;r<i.length;r++){var a=Rt.a.getID3Frames(i[r].data);if(a){var s=Math.max(i[r].pts,0),o=r<i.length-1?i[r+1].pts:e.endPTS;o||(o=e.start+e.duration),s===o?o+=1e-4:s>o&&(u.b.warn("detected an id3 sample with endTime < startTime, adjusting endTime to (startTime + 0.25)"),o=s+.25);for(var l=0;l<a.length;l++){var c=a[l];if(!Rt.a.isTimeStampFrame(c)){var d=new n(s,o,"");d.value=c,this.id3Track.addCue(d)}}}}},r.onLiveBackBufferReached=function(t){var e=this.id3Track;if(e&&e.cues&&e.cues.length){var i=function(t,e){if(e<t[0].endTime)return t[0];if(e>t[t.length-1].endTime)return t[t.length-1];for(var i=0,n=t.length-1;i<=n;){var r=Math.floor((n+i)/2);if(e<t[r].endTime)n=r-1;else{if(!(e>t[r].endTime))return t[r];i=r+1}}return t[i].endTime-e<e-t[n].endTime?t[i]:t[n]}(e.cues,t.bufferEnd);if(i)for(;e.cues[0]!==i;)e.removeCue(e.cues[0])}},n}(h),Pt=function(){function t(t){this.alpha_=void 0,this.estimate_=void 0,this.totalWeight_=void 0,this.alpha_=t?Math.exp(Math.log(.5)/t):0,this.estimate_=0,this.totalWeight_=0}var e=t.prototype;return e.sample=function(t,e){var i=Math.pow(this.alpha_,t);this.estimate_=e*(1-i)+i*this.estimate_,this.totalWeight_+=t},e.getTotalWeight=function(){return this.totalWeight_},e.getEstimate=function(){if(this.alpha_){var t=1-Math.pow(this.alpha_,this.totalWeight_);return this.estimate_/t}return this.estimate_},t}(),It=function(){function t(t,e,i,n){this.hls=void 0,this.defaultEstimate_=void 0,this.minWeight_=void 0,this.minDelayMs_=void 0,this.slow_=void 0,this.fast_=void 0,this.hls=t,this.defaultEstimate_=n,this.minWeight_=.001,this.minDelayMs_=50,this.slow_=new Pt(e),this.fast_=new Pt(i)}var e=t.prototype;return e.sample=function(t,e){var i=(t=Math.max(t,this.minDelayMs_))/1e3,n=8*e/i;this.fast_.sample(i,n),this.slow_.sample(i,n)},e.canEstimate=function(){var t=this.fast_;return t&&t.getTotalWeight()>=this.minWeight_},e.getEstimate=function(){return this.canEstimate()?Math.min(this.fast_.getEstimate(),this.slow_.getEstimate()):this.defaultEstimate_},e.destroy=function(){},t}(),Mt=window.performance,Ft=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.FRAG_LOADING,c.a.FRAG_LOADED,c.a.FRAG_BUFFERED,c.a.ERROR)||this).lastLoadedFragLevel=0,i._nextAutoLevel=-1,i.hls=e,i.timer=null,i._bwEstimator=null,i.onCheck=i._abandonRulesCheck.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(i)),i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a=n.prototype;return a.destroy=function(){this.clearTimer(),h.prototype.destroy.call(this)},a.onFragLoading=function(t){var e=t.frag;if("main"===e.type&&(this.timer||(this.fragCurrent=e,this.timer=setInterval(this.onCheck,100)),!this._bwEstimator)){var i,n,r=this.hls,a=r.config;r.levels[e.level].details.live?(i=a.abrEwmaFastLive,n=a.abrEwmaSlowLive):(i=a.abrEwmaFastVoD,n=a.abrEwmaSlowVoD),this._bwEstimator=new It(r,n,i,a.abrEwmaDefaultEstimate)}},a._abandonRulesCheck=function(){var t=this.hls,e=t.media,i=this.fragCurrent;if(i){var n=i.loader;if(!n||n.stats&&n.stats.aborted)return u.b.warn("frag loader destroy or aborted, disarm abandonRules"),this.clearTimer(),void(this._nextAutoLevel=-1);var r=n.stats;if(e&&r&&(!e.paused&&0!==e.playbackRate||!e.readyState)&&i.autoLevel&&i.level){var a=Mt.now()-r.trequest,s=Math.abs(e.playbackRate);if(a>500*i.duration/s){var o=t.levels,l=Math.max(1,r.bw?r.bw/8:1e3*r.loaded/a),d=o[i.level];if(!d)return;var h=d.realBitrate?Math.max(d.realBitrate,d.bitrate):d.bitrate,f=r.total?r.total:Math.max(r.loaded,Math.round(i.duration*h/8)),p=e.currentTime,g=(f-r.loaded)/l,m=(U.bufferInfo(e,p,t.config.maxBufferHole).end-p)/s;if(m<2*i.duration/s&&g>m){var v,y=t.minAutoLevel;for(v=i.level-1;v>y;v--){var b=o[v].realBitrate?Math.max(o[v].realBitrate,o[v].bitrate):o[v].bitrate;if(i.duration*b/(6.4*l)<m)break}void 0<g&&(u.b.warn("loading too slow, abort fragment loading and switch to level "+v+":fragLoadedDelay["+v+"]<fragLoadedDelay["+(i.level-1)+"];bufferStarvationDelay:"+(void 0).toFixed(1)+"<"+g.toFixed(1)+":"+m.toFixed(1)),t.nextLoadLevel=v,this._bwEstimator.sample(a,r.loaded),n.abort(),this.clearTimer(),t.trigger(c.a.FRAG_LOAD_EMERGENCY_ABORTED,{frag:i,stats:r}))}}}}},a.onFragLoaded=function(t){var e=t.frag;if("main"===e.type&&Object(l.a)(e.sn)){if(this.clearTimer(),this.lastLoadedFragLevel=e.level,this._nextAutoLevel=-1,this.hls.config.abrMaxWithRealBitrate){var i=this.hls.levels[e.level],n=(i.loaded?i.loaded.bytes:0)+t.stats.loaded,r=(i.loaded?i.loaded.duration:0)+t.frag.duration;i.loaded={bytes:n,duration:r},i.realBitrate=Math.round(8*n/r)}if(t.frag.bitrateTest){var a=t.stats;a.tparsed=a.tbuffered=a.tload,this.onFragBuffered(t)}}},a.onFragBuffered=function(t){var e=t.stats,i=t.frag;if(!0!==e.aborted&&"main"===i.type&&Object(l.a)(i.sn)&&(!i.bitrateTest||e.tload===e.tbuffered)){var n=e.tparsed-e.trequest;u.b.log("latency/loading/parsing/append/kbps:"+Math.round(e.tfirst-e.trequest)+"/"+Math.round(e.tload-e.tfirst)+"/"+Math.round(e.tparsed-e.tload)+"/"+Math.round(e.tbuffered-e.tparsed)+"/"+Math.round(8*e.loaded/(e.tbuffered-e.trequest))),this._bwEstimator.sample(n,e.loaded),e.bwEstimate=this._bwEstimator.getEstimate(),this.bitrateTestDelay=i.bitrateTest?n/1e3:0}},a.onError=function(t){switch(t.details){case o.a.FRAG_LOAD_ERROR:case o.a.FRAG_LOAD_TIMEOUT:this.clearTimer()}},a.clearTimer=function(){clearInterval(this.timer),this.timer=null},a._findBestLevel=function(t,e,i,n,r,a,s,o,l){for(var c=r;c>=n;c--){var d=l[c];if(d){var h,f=d.details,p=f?f.totalduration/f.fragments.length:e,g=!!f&&f.live;h=c<=t?s*i:o*i;var m=l[c].realBitrate?Math.max(l[c].realBitrate,l[c].bitrate):l[c].bitrate,v=m*p/h;if(u.b.trace("level/adjustedbw/bitrate/avgDuration/maxFetchDuration/fetchDuration: "+c+"/"+Math.round(h)+"/"+m+"/"+p+"/"+a+"/"+v),h>m&&(!v||g&&!this.bitrateTestDelay||v<a))return c}}return-1},(r=[{key:"nextAutoLevel",get:function(){var t=this._nextAutoLevel,e=this._bwEstimator;if(!(-1===t||e&&e.canEstimate()))return t;var i=this._nextABRAutoLevel;return-1!==t&&(i=Math.min(t,i)),i},set:function(t){this._nextAutoLevel=t}},{key:"_nextABRAutoLevel",get:function(){var t=this.hls,e=t.maxAutoLevel,i=t.levels,n=t.config,r=t.minAutoLevel,a=t.media,s=this.lastLoadedFragLevel,o=this.fragCurrent?this.fragCurrent.duration:0,l=a?a.currentTime:0,c=a&&0!==a.playbackRate?Math.abs(a.playbackRate):1,d=this._bwEstimator?this._bwEstimator.getEstimate():n.abrEwmaDefaultEstimate,h=(U.bufferInfo(a,l,n.maxBufferHole).end-l)/c,f=this._findBestLevel(s,o,d,r,e,h,n.abrBandWidthFactor,n.abrBandWidthUpFactor,i);if(f>=0)return f;u.b.trace("rebuffering expected to happen, lets try to find a quality level minimizing the rebuffering");var p=o?Math.min(o,n.maxStarvationDelay):n.maxStarvationDelay,g=n.abrBandWidthFactor,m=n.abrBandWidthUpFactor;if(0===h){var v=this.bitrateTestDelay;v&&(p=(o?Math.min(o,n.maxLoadingDelay):n.maxLoadingDelay)-v,u.b.trace("bitrate test took "+Math.round(1e3*v)+"ms, set first fragment max fetchDuration to "+Math.round(1e3*p)+" ms"),g=m=1)}return f=this._findBestLevel(s,o,d,r,e,h+p,g,m,i),Math.max(f,0)}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(h),Nt=G(),Bt=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MEDIA_ATTACHING,c.a.MEDIA_DETACHING,c.a.MANIFEST_PARSED,c.a.BUFFER_RESET,c.a.BUFFER_APPENDING,c.a.BUFFER_CODECS,c.a.BUFFER_EOS,c.a.BUFFER_FLUSHING,c.a.LEVEL_PTS_UPDATED,c.a.LEVEL_UPDATED)||this)._msDuration=null,i._levelDuration=null,i._levelTargetDuration=10,i._live=null,i._objectUrl=null,i._needsFlush=!1,i._needsEos=!1,i.config=void 0,i.audioTimestampOffset=void 0,i.bufferCodecEventsExpected=0,i._bufferCodecEventsTotal=0,i.media=null,i.mediaSource=null,i.segments=[],i.parent=void 0,i.appending=!1,i.appended=0,i.appendError=0,i.flushBufferCounter=0,i.tracks={},i.pendingTracks={},i.sourceBuffer={},i.flushRange=[],i._onMediaSourceOpen=function(){u.b.log("media source opened"),i.hls.trigger(c.a.MEDIA_ATTACHED,{media:i.media});var t=i.mediaSource;t&&t.removeEventListener("sourceopen",i._onMediaSourceOpen),i.checkPendingTracks()},i._onMediaSourceClose=function(){u.b.log("media source closed")},i._onMediaSourceEnded=function(){u.b.log("media source ended")},i._onSBUpdateEnd=function(){if(i.audioTimestampOffset&&i.sourceBuffer.audio){var t=i.sourceBuffer.audio;u.b.warn("change mpeg audio timestamp offset from "+t.timestampOffset+" to "+i.audioTimestampOffset),t.timestampOffset=i.audioTimestampOffset,delete i.audioTimestampOffset}i._needsFlush&&i.doFlush(),i._needsEos&&i.checkEos(),i.appending=!1;var e=i.parent,n=i.segments.reduce((function(t,i){return i.parent===e?t+1:t}),0),r={},a=i.sourceBuffer;for(var s in a){var o=a[s];if(!o)throw Error("handling source buffer update end error: source buffer for "+s+" uninitilized and unable to update buffered TimeRanges.");r[s]=o.buffered}i.hls.trigger(c.a.BUFFER_APPENDED,{parent:e,pending:n,timeRanges:r}),i._needsFlush||i.doAppending(),i.updateMediaElementDuration(),0===n&&i.flushLiveBackBuffer()},i._onSBUpdateError=function(t){u.b.error("sourceBuffer error:",t),i.hls.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.BUFFER_APPENDING_ERROR,fatal:!1})},i.config=e.config,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.destroy=function(){h.prototype.destroy.call(this)},r.onLevelPtsUpdated=function(t){var e=this.tracks.audio;if("audio"===t.type&&e&&"audio/mpeg"===e.container){var i=this.sourceBuffer.audio;if(!i)throw Error("Level PTS Updated and source buffer for audio uninitalized");if(Math.abs(i.timestampOffset-t.start)>.1){var n=i.updating;try{i.abort()}catch(t){u.b.warn("can not abort audio buffer: "+t)}n?this.audioTimestampOffset=t.start:(u.b.warn("change mpeg audio timestamp offset from "+i.timestampOffset+" to "+t.start),i.timestampOffset=t.start)}}},r.onManifestParsed=function(t){var e=2;(t.audio&&!t.video||!t.altAudio)&&(e=1),this.bufferCodecEventsExpected=this._bufferCodecEventsTotal=e,u.b.log(this.bufferCodecEventsExpected+" bufferCodec event(s) expected")},r.onMediaAttaching=function(t){var e=this.media=t.media;if(e&&Nt){var i=this.mediaSource=new Nt;i.addEventListener("sourceopen",this._onMediaSourceOpen),i.addEventListener("sourceended",this._onMediaSourceEnded),i.addEventListener("sourceclose",this._onMediaSourceClose),e.src=window.URL.createObjectURL(i),this._objectUrl=e.src}},r.onMediaDetaching=function(){u.b.log("media source detaching");var t=this.mediaSource;if(t){if("open"===t.readyState)try{t.endOfStream()}catch(t){u.b.warn("onMediaDetaching:"+t.message+" while calling endOfStream")}t.removeEventListener("sourceopen",this._onMediaSourceOpen),t.removeEventListener("sourceended",this._onMediaSourceEnded),t.removeEventListener("sourceclose",this._onMediaSourceClose),this.media&&(this._objectUrl&&window.URL.revokeObjectURL(this._objectUrl),this.media.src===this._objectUrl?(this.media.removeAttribute("src"),this.media.load()):u.b.warn("media.src was changed by a third party - skip cleanup")),this.mediaSource=null,this.media=null,this._objectUrl=null,this.bufferCodecEventsExpected=this._bufferCodecEventsTotal,this.pendingTracks={},this.tracks={},this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0}this.hls.trigger(c.a.MEDIA_DETACHED)},r.checkPendingTracks=function(){var t=this.bufferCodecEventsExpected,e=this.pendingTracks,i=Object.keys(e).length;(i&&!t||2===i)&&(this.createSourceBuffers(e),this.pendingTracks={},this.doAppending())},r.onBufferReset=function(){var t=this.sourceBuffer;for(var e in t){var i=t[e];try{i&&(this.mediaSource&&this.mediaSource.removeSourceBuffer(i),i.removeEventListener("updateend",this._onSBUpdateEnd),i.removeEventListener("error",this._onSBUpdateError))}catch(t){}}this.sourceBuffer={},this.flushRange=[],this.segments=[],this.appended=0},r.onBufferCodecs=function(t){var e=this;Object.keys(this.sourceBuffer).length||(Object.keys(t).forEach((function(i){e.pendingTracks[i]=t[i]})),this.bufferCodecEventsExpected=Math.max(this.bufferCodecEventsExpected-1,0),this.mediaSource&&"open"===this.mediaSource.readyState&&this.checkPendingTracks())},r.createSourceBuffers=function(t){var e=this.sourceBuffer,i=this.mediaSource;if(!i)throw Error("createSourceBuffers called when mediaSource was null");for(var n in t)if(!e[n]){var r=t[n];if(!r)throw Error("source buffer exists for track "+n+", however track does not");var a=r.levelCodec||r.codec,s=r.container+";codecs="+a;u.b.log("creating sourceBuffer("+s+")");try{var l=e[n]=i.addSourceBuffer(s);l.addEventListener("updateend",this._onSBUpdateEnd),l.addEventListener("error",this._onSBUpdateError),this.tracks[n]={buffer:l,codec:a,id:r.id,container:r.container,levelCodec:r.levelCodec}}catch(t){u.b.error("error while trying to add sourceBuffer:"+t.message),this.hls.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.BUFFER_ADD_CODEC_ERROR,fatal:!1,err:t,mimeType:s})}}this.hls.trigger(c.a.BUFFER_CREATED,{tracks:this.tracks})},r.onBufferAppending=function(t){this._needsFlush||(this.segments?this.segments.push(t):this.segments=[t],this.doAppending())},r.onBufferEos=function(t){for(var e in this.sourceBuffer)if(!t.type||t.type===e){var i=this.sourceBuffer[e];i&&!i.ended&&(i.ended=!0,u.b.log(e+" sourceBuffer now EOS"))}this.checkEos()},r.checkEos=function(){var t=this.sourceBuffer,e=this.mediaSource;if(e&&"open"===e.readyState){for(var i in t){var n=t[i];if(n){if(!n.ended)return;if(n.updating)return void(this._needsEos=!0)}}u.b.log("all media data are available, signal endOfStream() to MediaSource and stop loading fragment");try{e.endOfStream()}catch(t){u.b.warn("exception while calling mediaSource.endOfStream()")}this._needsEos=!1}else this._needsEos=!1},r.onBufferFlushing=function(t){t.type?this.flushRange.push({start:t.startOffset,end:t.endOffset,type:t.type}):(this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"video"}),this.flushRange.push({start:t.startOffset,end:t.endOffset,type:"audio"})),this.flushBufferCounter=0,this.doFlush()},r.flushLiveBackBuffer=function(){if(this._live){var t=this.config.liveBackBufferLength;if(isFinite(t)&&!(t<0))if(this.media)for(var e=this.media.currentTime,i=this.sourceBuffer,n=Object.keys(i),r=e-Math.max(t,this._levelTargetDuration),a=n.length-1;a>=0;a--){var s=n[a],o=i[s];if(o){var l=o.buffered;l.length>0&&r>l.start(0)&&this.removeBufferRange(s,o,0,r)&&this.hls.trigger(c.a.LIVE_BACK_BUFFER_REACHED,{bufferEnd:r})}}else u.b.error("flushLiveBackBuffer called without attaching media")}},r.onLevelUpdated=function(t){var e=t.details;e.fragments.length>0&&(this._levelDuration=e.totalduration+e.fragments[0].start,this._levelTargetDuration=e.averagetargetduration||e.targetduration||10,this._live=e.live,this.updateMediaElementDuration())},r.updateMediaElementDuration=function(){var t,e=this.config;if(null!==this._levelDuration&&this.media&&this.mediaSource&&this.sourceBuffer&&0!==this.media.readyState&&"open"===this.mediaSource.readyState){for(var i in this.sourceBuffer){var n=this.sourceBuffer[i];if(n&&!0===n.updating)return}t=this.media.duration,null===this._msDuration&&(this._msDuration=this.mediaSource.duration),!0===this._live&&!0===e.liveDurationInfinity?(u.b.log("Media Source duration is set to Infinity"),this._msDuration=this.mediaSource.duration=1/0):(this._levelDuration>this._msDuration&&this._levelDuration>t||!Object(l.a)(t))&&(u.b.log("Updating Media Source duration to "+this._levelDuration.toFixed(3)),this._msDuration=this.mediaSource.duration=this._levelDuration)}},r.doFlush=function(){for(;this.flushRange.length;){var t=this.flushRange[0];if(!this.flushBuffer(t.start,t.end,t.type))return void(this._needsFlush=!0);this.flushRange.shift(),this.flushBufferCounter=0}if(0===this.flushRange.length){this._needsFlush=!1;var e=0,i=this.sourceBuffer;try{for(var n in i){var r=i[n];r&&(e+=r.buffered.length)}}catch(t){u.b.error("error while accessing sourceBuffer.buffered")}this.appended=e,this.hls.trigger(c.a.BUFFER_FLUSHED)}},r.doAppending=function(){var t=this.config,e=this.hls,i=this.segments,n=this.sourceBuffer;if(Object.keys(n).length){if(!this.media||this.media.error)return this.segments=[],void u.b.error("trying to append although a media error occured, flush segment and abort");if(!this.appending){var r=i.shift();if(r)try{var a=n[r.type];if(!a)return void this._onSBUpdateEnd();if(a.updating)return void i.unshift(r);a.ended=!1,this.parent=r.parent,a.appendBuffer(r.data),this.appendError=0,this.appended++,this.appending=!0}catch(n){u.b.error("error while trying to append buffer:"+n.message),i.unshift(r);var s={type:o.b.MEDIA_ERROR,parent:r.parent,details:"",fatal:!1};22===n.code?(this.segments=[],s.details=o.a.BUFFER_FULL_ERROR):(this.appendError++,s.details=o.a.BUFFER_APPEND_ERROR,this.appendError>t.appendErrorMaxRetry&&(u.b.log("fail "+t.appendErrorMaxRetry+" times to append segment in sourceBuffer"),this.segments=[],s.fatal=!0)),e.trigger(c.a.ERROR,s)}}}},r.flushBuffer=function(t,e,i){var n=this.sourceBuffer;if(!Object.keys(n).length)return!0;var r="null";if(this.media&&(r=this.media.currentTime.toFixed(3)),u.b.log("flushBuffer,pos/start/end: "+r+"/"+t+"/"+e),this.flushBufferCounter>=this.appended)return u.b.warn("abort flushing too many retries"),!0;var a=n[i];if(a){if(a.ended=!1,a.updating)return u.b.warn("cannot flush, sb updating in progress"),!1;if(this.removeBufferRange(i,a,t,e))return this.flushBufferCounter++,!1}return u.b.log("buffer flushed"),!0},r.removeBufferRange=function(t,e,i,n){try{for(var r=0;r<e.buffered.length;r++){var a=e.buffered.start(r),s=e.buffered.end(r),o=Math.max(a,i),l=Math.min(s,n);if(Math.min(l,s)-o>.5){var c="null";return this.media&&(c=this.media.currentTime.toString()),u.b.log("sb remove "+t+" ["+o+","+l+"], of ["+a+","+s+"], pos:"+c),e.remove(o,l),!0}}}catch(t){u.b.warn("removeBufferRange failed",t)}return!1},n}(h);function Ut(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}var jt=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.FPS_DROP_LEVEL_CAPPING,c.a.MEDIA_ATTACHING,c.a.MANIFEST_PARSED,c.a.LEVELS_UPDATED,c.a.BUFFER_CODECS,c.a.MEDIA_DETACHING)||this).autoLevelCapping=Number.POSITIVE_INFINITY,i.firstLevel=null,i.levels=[],i.media=null,i.restrictedLevels=[],i.timer=null,i.clientRect=null,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a,s,o=n.prototype;return o.destroy=function(){this.hls.config.capLevelToPlayerSize&&(this.media=null,this.clientRect=null,this.stopCapping())},o.onFpsDropLevelCapping=function(t){n.isLevelAllowed(t.droppedLevel,this.restrictedLevels)&&this.restrictedLevels.push(t.droppedLevel)},o.onMediaAttaching=function(t){this.media=t.media instanceof window.HTMLVideoElement?t.media:null},o.onManifestParsed=function(t){var e=this.hls;this.restrictedLevels=[],this.levels=t.levels,this.firstLevel=t.firstLevel,e.config.capLevelToPlayerSize&&t.video&&this.startCapping()},o.onBufferCodecs=function(t){this.hls.config.capLevelToPlayerSize&&t.video&&this.startCapping()},o.onLevelsUpdated=function(t){this.levels=t.levels},o.onMediaDetaching=function(){this.stopCapping()},o.detectPlayerSize=function(){if(this.media){var t=this.levels?this.levels.length:0;if(t){var e=this.hls;e.autoLevelCapping=this.getMaxLevel(t-1),e.autoLevelCapping>this.autoLevelCapping&&e.streamController.nextLevelSwitch(),this.autoLevelCapping=e.autoLevelCapping}}},o.getMaxLevel=function(t){var e=this;if(!this.levels)return-1;var i=this.levels.filter((function(i,r){return n.isLevelAllowed(r,e.restrictedLevels)&&r<=t}));return this.clientRect=null,n.getMaxLevelByMediaSize(i,this.mediaWidth,this.mediaHeight)},o.startCapping=function(){this.timer||(this.autoLevelCapping=Number.POSITIVE_INFINITY,this.hls.firstLevel=this.getMaxLevel(this.firstLevel),clearInterval(this.timer),this.timer=setInterval(this.detectPlayerSize.bind(this),1e3),this.detectPlayerSize())},o.stopCapping=function(){this.restrictedLevels=[],this.firstLevel=null,this.autoLevelCapping=Number.POSITIVE_INFINITY,this.timer&&(this.timer=clearInterval(this.timer),this.timer=null)},o.getDimensions=function(){if(this.clientRect)return this.clientRect;var t=this.media,e={width:0,height:0};if(t){var i=t.getBoundingClientRect();e.width=i.width,e.height=i.height,e.width||e.height||(e.width=i.right-i.left||t.width||0,e.height=i.bottom-i.top||t.height||0)}return this.clientRect=e,e},n.isLevelAllowed=function(t,e){return void 0===e&&(e=[]),-1===e.indexOf(t)},n.getMaxLevelByMediaSize=function(t,e,i){if(!t||t&&!t.length)return-1;for(var n,r,a=t.length-1,s=0;s<t.length;s+=1){var o=t[s];if((o.width>=e||o.height>=i)&&(n=o,!(r=t[s+1])||n.width!==r.width||n.height!==r.height)){a=s;break}}return a},r=n,s=[{key:"contentScaleFactor",get:function(){var t=1;try{t=window.devicePixelRatio}catch(t){}return t}}],(a=[{key:"mediaWidth",get:function(){return this.getDimensions().width*n.contentScaleFactor}},{key:"mediaHeight",get:function(){return this.getDimensions().height*n.contentScaleFactor}}])&&Ut(r.prototype,a),s&&Ut(r,s),n}(h),$t=window.performance,Ht=function(t){var e,i;function n(e){return t.call(this,e,c.a.MEDIA_ATTACHING)||this}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.destroy=function(){this.timer&&clearInterval(this.timer),this.isVideoPlaybackQualityAvailable=!1},r.onMediaAttaching=function(t){var e=this.hls.config;e.capLevelOnFPSDrop&&("function"==typeof(this.video=t.media instanceof window.HTMLVideoElement?t.media:null).getVideoPlaybackQuality&&(this.isVideoPlaybackQualityAvailable=!0),clearInterval(this.timer),this.timer=setInterval(this.checkFPSInterval.bind(this),e.fpsDroppedMonitoringPeriod))},r.checkFPS=function(t,e,i){var n=$t.now();if(e){if(this.lastTime){var r=i-this.lastDroppedFrames,a=e-this.lastDecodedFrames,s=1e3*r/(n-this.lastTime),o=this.hls;if(o.trigger(c.a.FPS_DROP,{currentDropped:r,currentDecoded:a,totalDroppedFrames:i}),s>0&&r>o.config.fpsDroppedMonitoringThreshold*a){var l=o.currentLevel;u.b.warn("drop FPS ratio greater than max allowed value for currentLevel: "+l),l>0&&(-1===o.autoLevelCapping||o.autoLevelCapping>=l)&&(o.trigger(c.a.FPS_DROP_LEVEL_CAPPING,{level:l-=1,droppedLevel:o.currentLevel}),o.autoLevelCapping=l,o.streamController.nextLevelSwitch())}}this.lastTime=n,this.lastDroppedFrames=i,this.lastDecodedFrames=e}},r.checkFPSInterval=function(){var t=this.video;if(t)if(this.isVideoPlaybackQualityAvailable){var e=t.getVideoPlaybackQuality();this.checkFPS(t,e.totalVideoFrames,e.droppedVideoFrames)}else this.checkFPS(t,t.webkitDecodedFrameCount,t.webkitDroppedFrameCount)},n}(h),Gt=function(){function t(t){t&&t.xhrSetup&&(this.xhrSetup=t.xhrSetup)}var e=t.prototype;return e.destroy=function(){this.abort(),this.loader=null},e.abort=function(){var t=this.loader;t&&4!==t.readyState&&(this.stats.aborted=!0,t.abort()),window.clearTimeout(this.requestTimeout),this.requestTimeout=null,window.clearTimeout(this.retryTimeout),this.retryTimeout=null},e.load=function(t,e,i){this.context=t,this.config=e,this.callbacks=i,this.stats={trequest:window.performance.now(),retry:0},this.retryDelay=e.retryDelay,this.loadInternal()},e.loadInternal=function(){var t,e=this.context;t=this.loader=new window.XMLHttpRequest;var i=this.stats;i.tfirst=0,i.loaded=0;var n=this.xhrSetup;try{if(n)try{n(t,e.url)}catch(i){t.open("GET",e.url,!0),n(t,e.url)}t.readyState||t.open("GET",e.url,!0)}catch(i){return void this.callbacks.onError({code:t.status,text:i.message},e,t)}e.rangeEnd&&t.setRequestHeader("Range","bytes="+e.rangeStart+"-"+(e.rangeEnd-1)),t.onreadystatechange=this.readystatechange.bind(this),t.onprogress=this.loadprogress.bind(this),t.responseType=e.responseType,this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),this.config.timeout),t.send()},e.readystatechange=function(t){var e=t.currentTarget,i=e.readyState,n=this.stats,r=this.context,a=this.config;if(!n.aborted&&i>=2)if(window.clearTimeout(this.requestTimeout),0===n.tfirst&&(n.tfirst=Math.max(window.performance.now(),n.trequest)),4===i){var s,o,l=e.status;l>=200&&l<300?(n.tload=Math.max(n.tfirst,window.performance.now()),o="arraybuffer"===r.responseType?(s=e.response).byteLength:(s=e.responseText).length,n.loaded=n.total=o,this.callbacks.onSuccess({url:e.responseURL,data:s},n,r,e)):n.retry>=a.maxRetry||l>=400&&l<499?(u.b.error(l+" while loading "+r.url),this.callbacks.onError({code:l,text:e.statusText},r,e)):(u.b.warn(l+" while loading "+r.url+", retrying in "+this.retryDelay+"..."),this.destroy(),this.retryTimeout=window.setTimeout(this.loadInternal.bind(this),this.retryDelay),this.retryDelay=Math.min(2*this.retryDelay,a.maxRetryDelay),n.retry++)}else this.requestTimeout=window.setTimeout(this.loadtimeout.bind(this),a.timeout)},e.loadtimeout=function(){u.b.warn("timeout while loading "+this.context.url),this.callbacks.onTimeout(this.stats,this.context,null)},e.loadprogress=function(t){var e=t.currentTarget,i=this.stats;i.loaded=t.loaded,t.lengthComputable&&(i.total=t.total);var n=this.callbacks.onProgress;n&&n(i,this.context,null,e)},t}(),zt=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MANIFEST_LOADING,c.a.MANIFEST_PARSED,c.a.AUDIO_TRACK_LOADED,c.a.AUDIO_TRACK_SWITCHED,c.a.LEVEL_LOADED,c.a.ERROR)||this)._trackId=-1,i._selectDefaultTrack=!0,i.tracks=[],i.trackIdBlacklist=Object.create(null),i.audioGroupId=null,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a=n.prototype;return a.onManifestLoading=function(){this.tracks=[],this._trackId=-1,this._selectDefaultTrack=!0},a.onManifestParsed=function(t){var e=this.tracks=t.audioTracks||[];this.hls.trigger(c.a.AUDIO_TRACKS_UPDATED,{audioTracks:e}),this._selectAudioGroup(this.hls.nextLoadLevel)},a.onAudioTrackLoaded=function(t){t.id>=this.tracks.length?u.b.warn("Invalid audio track id:",t.id):(u.b.log("audioTrack "+t.id+" loaded"),this.tracks[t.id].details=t.details,t.details.live&&!this.hasInterval()&&this.setInterval(1e3*t.details.targetduration),!t.details.live&&this.hasInterval()&&this.clearInterval())},a.onAudioTrackSwitched=function(t){var e=this.tracks[t.id].groupId;e&&this.audioGroupId!==e&&(this.audioGroupId=e)},a.onLevelLoaded=function(t){this._selectAudioGroup(t.level)}
vendor: 4,404 bytes, line 2
2,a.onError=function(t){t.type===o.b.NETWORK_ERROR&&(t.fatal&&this.clearInterval(),t.details===o.a.AUDIO_TRACK_LOAD_ERROR&&(u.b.warn("Network failure on audio-track id:",t.context.id),this._handleLoadError()))},a._setAudioTrack=function(t){if(this._trackId===t&&this.tracks[this._trackId].details)u.b.debug("Same id as current audio-track passed, and track details available -> no-op");else if(t<0||t>=this.tracks.length)u.b.warn("Invalid id passed to audio-track controller");else{var e=this.tracks[t];u.b.log("Now switching to audio-track index "+t),this.clearInterval(),this._trackId=t,this.hls.trigger(c.a.AUDIO_TRACK_SWITCHING,{id:e.id,type:e.type,url:e.url}),this._loadTrackDetailsIfNeeded(e)}},a.doTick=function(){this._updateTrack(this._trackId)},a._selectAudioGroup=function(t){var e=this.hls.levels[t];if(e&&e.audioGroupIds){var i=e.audioGroupIds[e.urlId];this.audioGroupId!==i&&(this.audioGroupId=i,this._selectInitialAudioTrack())}},a._selectInitialAudioTrack=function(){var t=this,e=this.tracks;if(e.length){var i=this.tracks[this._trackId],n=null;if(i&&(n=i.name),this._selectDefaultTrack){var r=e.filter((function(t){return t.default}));r.length?e=r:u.b.warn("No default audio tracks defined")}var a=!1,s=function(){e.forEach((function(e){a||t.audioGroupId&&e.groupId!==t.audioGroupId||n&&n!==e.name||(t._setAudioTrack(e.id),a=!0)}))};s(),a||(n=null,s()),a||(u.b.error("No track found for running audio group-ID: "+this.audioGroupId),this.hls.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:o.a.AUDIO_TRACK_LOAD_ERROR,fatal:!0}))}},a._needsTrackLoading=function(t){var e=t.details;return!(e&&!e.live||!t.url)},a._loadTrackDetailsIfNeeded=function(t){if(this._needsTrackLoading(t)){var e=t.url,i=t.id;u.b.log("loading audio-track playlist for id: "+i),this.hls.trigger(c.a.AUDIO_TRACK_LOADING,{url:e,id:i})}},a._updateTrack=function(t){t<0||t>=this.tracks.length||(this.clearInterval(),this._trackId=t,u.b.log("trying to update audio-track "+t),this._loadTrackDetailsIfNeeded(this.tracks[t]))},a._handleLoadError=function(){this.trackIdBlacklist[this._trackId]=!0;var t=this._trackId,e=this.tracks[t],i=e.name,n=e.language;u.b.warn("Loading failed on audio track id: "+t+", group-id: "+e.groupId+', name/language: "'+i+'" / "'+n+'"');for(var r=t,a=0;a<this.tracks.length;a++)if(!this.trackIdBlacklist[a]&&this.tracks[a].name===i){r=a;break}r!==t?(u.b.log("Attempting audio-track fallback id:",r,"group-id:",this.tracks[r].groupId),this._setAudioTrack(r)):u.b.warn('No fallback audio-track found for name/language: "'+i+'" / "'+n+'"')},(r=[{key:"audioTracks",get:function(){return this.tracks}},{key:"audioTrack",get:function(){return this._trackId},set:function(t){this._setAudioTrack(t),this._selectDefaultTrack=!1}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(dt),qt=window.performance,Kt=function(t){var e,i;function n(e,i){var n;return(n=t.call(this,e,c.a.MEDIA_ATTACHED,c.a.MEDIA_DETACHING,c.a.AUDIO_TRACKS_UPDATED,c.a.AUDIO_TRACK_SWITCHING,c.a.AUDIO_TRACK_LOADED,c.a.KEY_LOADED,c.a.FRAG_LOADED,c.a.FRAG_PARSING_INIT_SEGMENT,c.a.FRAG_PARSING_DATA,c.a.FRAG_PARSED,c.a.ERROR,c.a.BUFFER_RESET,c.a.BUFFER_CREATED,c.a.BUFFER_APPENDED,c.a.BUFFER_FLUSHED,c.a.INIT_PTS_FOUND)||this).fragmentTracker=i,n.config=e.config,n.audioCodecSwap=!1,n._state=ht,n.initPTS=[],n.waitingFragment=null,n.videoTrackCC=null,n.waitingVideoCC=null,n}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a=n.prototype;return a.onInitPtsFound=function(t){var e=t.frag.cc,i=t.initPTS;"main"===t.id&&(this.initPTS[e]=i,this.videoTrackCC=e,u.b.log("InitPTS for cc: "+e+" found from video track: "+i),this.state===St&&this.tick())},a.startLoad=function(t){if(this.tracks){var e=this.lastCurrentTime;this.stopLoad(),this.setInterval(100),this.fragLoadError=0,e>0&&-1===t?(u.b.log("audio:override startPosition with lastCurrentTime @"+e.toFixed(3)),this.state=pt):(this.lastCurrentTime=this.startPosition?this.startPosition:t,this.state=ft),this.nextLoadPosition=this.startPosition=this.lastCurrentTime,this.tick()}else this.startPosition=t,this.state=ht},a.doTick=function(){var t,e,i,n=this.hls,r=n.config;switch(this.state){case Et:case"PAUSED":case Tt:break;case ft:this.state=yt,this.loadedmetadata=!1;break;case pt:var a=this.tracks;
vendor: 17,006 bytes, line 2
2if(!a)break;if(!this.media&&(this.startFragRequested||!r.startFragPrefetch))break;if(this.loadedmetadata)t=this.media.currentTime;else if(void 0===(t=this.nextLoadPosition))break;var s=this.mediaBuffer?this.mediaBuffer:this.media,o=this.videoBuffer?this.videoBuffer:this.media,d=t<r.maxBufferHole?Math.max(2,r.maxBufferHole):r.maxBufferHole,h=U.bufferInfo(s,t,d),f=U.bufferInfo(o,t,d),p=h.len,g=h.end,m=this.fragPrevious,v=Math.min(r.maxBufferLength,r.maxMaxBufferLength),y=Math.max(v,f.len),b=this.audioSwitch,w=this.trackId;if((p<y||b)&&w<a.length){if(void 0===(i=a[w].details)){this.state=yt;break}if(!b&&this._streamEnded(h,i))return this.hls.trigger(c.a.BUFFER_EOS,{type:"audio"}),void(this.state=xt);var T,x=i.fragments,E=x.length,S=x[0].start,_=x[E-1].start+x[E-1].duration;if(b)if(i.live&&!i.PTSKnown)u.b.log("switching audiotrack, live stream, unknown PTS,load first fragment"),g=0;else if(g=t,i.PTSKnown&&t<S){if(!(h.end>S||h.nextStart))return;u.b.log("alt audio track ahead of main track, seek to start of alt audio track"),this.media.currentTime=S+.05}if(i.initSegment&&!i.initSegment.data)T=i.initSegment;else if(g<=S){if(T=x[0],null!==this.videoTrackCC&&T.cc!==this.videoTrackCC&&(T=function(t,e){return B(t,(function(t){return t.cc<e?1:t.cc>e?-1:0}))}(x,this.videoTrackCC)),i.live&&T.loadIdx&&T.loadIdx===this.fragLoadIdx){var k=h.nextStart?h.nextStart:S;return u.b.log("no alt audio available @currentTime:"+this.media.currentTime+", seeking @"+(k+.05)),void(this.media.currentTime=k+.05)}}else{var C,A=r.maxFragLookUpTolerance,R=m?x[m.sn-x[0].sn+1]:void 0;g<_?(g>_-A&&(A=0),C=R&&!st(g,A,R)?R:B(x,(function(t){return st(g,A,t)}))):C=x[E-1],C&&(T=C,S=C.start,m&&T.level===m.level&&T.sn===m.sn&&(T.sn<i.endSN?u.b.log("SN just loaded, load next one: "+(T=x[T.sn+1-i.startSN]).sn):T=null))}T&&(T.encrypted?(u.b.log("Loading key for "+T.sn+" of ["+i.startSN+" ,"+i.endSN+"],track "+w),this.state=gt,n.trigger(c.a.KEY_LOADING,{frag:T})):(this.fragCurrent=T,(b||this.fragmentTracker.getState(T)===I)&&(u.b.log("Loading "+T.sn+", cc: "+T.cc+" of ["+i.startSN+" ,"+i.endSN+"],track "+w+", currentTime:"+t+",bufferEnd:"+g.toFixed(3)),"initSegment"!==T.sn&&(this.startFragRequested=!0),Object(l.a)(T.sn)&&(this.nextLoadPosition=T.start+T.duration),n.trigger(c.a.FRAG_LOADING,{frag:T}),this.state=mt)))}break;case yt:(e=this.tracks[this.trackId])&&e.details&&(this.state=pt);break;case vt:var L=qt.now(),D=this.retryDate,O=(s=this.media)&&s.seeking;(!D||L>=D||O)&&(u.b.log("audioStreamController: retryDate reached, switch back to IDLE state"),this.state=pt);break;case St:var P=this.waitingFragment;if(P){var M=P.frag.cc;if(void 0!==this.initPTS[M])this.waitingFragment=null,this.state=mt,this.onFragLoaded(P);else if(this.videoTrackCC!==this.waitingVideoCC)u.b.log("Waiting fragment cc ("+M+") cancelled because video is at cc "+this.videoTrackCC),this.clearWaitingFragment();else{var F=U.bufferInfo(this.mediaBuffer,this.media.currentTime,r.maxBufferHole);st(F.end,r.maxFragLookUpTolerance,P.frag)<0&&(u.b.log("Waiting fragment cc ("+M+") @ "+P.frag.start+" cancelled because another fragment at "+F.end+" is needed"),this.clearWaitingFragment())}}else this.state=pt}},a.clearWaitingFragment=function(){var t=this.waitingFragment;t&&(this.fragmentTracker.removeFragment(t.frag),this.waitingFragment=null,this.waitingVideoCC=null,this.state=pt)},a.onMediaAttached=function(t){var e=this.media=this.mediaBuffer=t.media;this.onvseeking=this.onMediaSeeking.bind(this),this.onvended=this.onMediaEnded.bind(this),e.addEventListener("seeking",this.onvseeking),e.addEventListener("ended",this.onvended);var i=this.config;this.tracks&&i.autoStartLoad&&this.startLoad(i.startPosition)},a.onMediaDetaching=function(){var t=this.media;t&&t.ended&&(u.b.log("MSE detaching and video ended, reset startPosition"),this.startPosition=this.lastCurrentTime=0),t&&(t.removeEventListener("seeking",this.onvseeking),t.removeEventListener("ended",this.onvended),this.onvseeking=this.onvseeked=this.onvended=null),this.media=this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1,this.fragmentTracker.removeAllFragments(),this.stopLoad()},a.onAudioTracksUpdated=function(t){u.b.log("audio tracks updated"),this.tracks=t.audioTracks},a.onAudioTrackSwitching=function(t){var e=!!t.url;this.trackId=t.id,this.fragCurrent=null,this.clearWaitingFragment(),this.state="PAUSED",e?this.setInterval(100):this.demuxer&&(this.demuxer.destroy(),this.demuxer=null),e&&(this.audioSwitch=!0,this.state=pt),this.tick()},a.onAudioTrackLoaded=function(t){var e=t.details,i=t.id,n=this.tracks[i],r=0;if(u.b.log("track "+i+" loaded ["+e.startSN+","+e.endSN+"],duration:"+e.totalduration),e.live){var a=n.details;a&&e.fragments.length>0?(Z(a,e),r=e.fragments[0].start,u.b.log(e.PTSKnown?"live audio playlist sliding:"+r.toFixed(3):"live audio playlist - outdated PTS, unknown sliding")):(e.PTSKnown=!1,u.b.log("live audio playlist - first load, unknown sliding"))}else e.PTSKnown=!1;if(n.details=e,!this.startFragRequested){if(-1===this.startPosition){var s=e.startTimeOffset;Object(l.a)(s)?(u.b.log("start time offset found in playlist, adjust startPosition to "+s),this.startPosition=s):e.live?(this.startPosition=this.computeLivePosition(r,e),u.b.log("compute startPosition for audio-track to "+this.startPosition)):this.startPosition=0}this.nextLoadPosition=this.startPosition}this.state===yt&&(this.state=pt),this.tick()},a.onKeyLoaded=function(){this.state===gt&&(this.state=pt,this.tick())},a.onFragLoaded=function(t){var e=this.fragCurrent,i=t.frag;if(this.state===mt&&e&&"audio"===i.type&&i.level===e.level&&i.sn===e.sn){var n=this.tracks[this.trackId],r=n.details,a=r.totalduration,s=e.level,o=e.sn,l=e.cc,d=this.config.defaultAudioCodec||n.audioCodec||"mp4a.40.2",h=this.stats=t.stats;if("initSegment"===o)this.state=pt,h.tparsed=h.tbuffered=qt.now(),r.initSegment.data=t.payload,this.hls.trigger(c.a.FRAG_BUFFERED,{stats:h,frag:e,id:"audio"}),this.tick();else{this.state=bt,this.appended=!1,this.demuxer||(this.demuxer=new V(this.hls,"audio"));var f=this.initPTS[l],p=r.initSegment?r.initSegment.data:[];void 0!==f?(this.pendingBuffering=!0,u.b.log("Demuxing "+o+" of ["+r.startSN+" ,"+r.endSN+"],track "+s),this.demuxer.push(t.payload,p,d,null,e,a,!1,f)):(u.b.log("Unknown video PTS for cc "+l+", waiting for video PTS before demuxing audio frag "+o+" of ["+r.startSN+" ,"+r.endSN+"],track "+s),this.waitingFragment=t,this.waitingVideoCC=this.videoTrackCC,this.state=St)}}this.fragLoadError=0},a.onFragParsingInitSegment=function(t){var e=this.fragCurrent,i=t.frag;if(e&&"audio"===t.id&&i.sn===e.sn&&i.level===e.level&&this.state===bt){var n,r=t.tracks;if(r.video&&delete r.video,n=r.audio){n.levelCodec=n.codec,n.id=t.id,this.hls.trigger(c.a.BUFFER_CODECS,r),u.b.log("audio track:audio,container:"+n.container+",codecs[level/parsed]=["+n.levelCodec+"/"+n.codec+"]");var a=n.initSegment;if(a){var s={type:"audio",data:a,parent:"audio",content:"initSegment"};this.audioSwitch?this.pendingData=[s]:(this.appended=!0,this.pendingBuffering=!0,this.hls.trigger(c.a.BUFFER_APPENDING,s))}this.tick()}}},a.onFragParsingData=function(t){var e=this,i=this.fragCurrent,n=t.frag;if(i&&"audio"===t.id&&"audio"===t.type&&n.sn===i.sn&&n.level===i.level&&this.state===bt){var r=this.trackId,a=this.tracks[r],s=this.hls;Object(l.a)(t.endPTS)||(t.endPTS=t.startPTS+i.duration,t.endDTS=t.startDTS+i.duration),i.addElementaryStream(f.AUDIO),u.b.log("parsed "+t.type+",PTS:["+t.startPTS.toFixed(3)+","+t.endPTS.toFixed(3)+"],DTS:["+t.startDTS.toFixed(3)+"/"+t.endDTS.toFixed(3)+"],nb:"+t.nb),Q(a.details,i,t.startPTS,t.endPTS);var d=this.media,h=!1;if(this.audioSwitch)if(d&&d.readyState){var p=d.currentTime;u.b.log("switching audio track : currentTime:"+p),p>=t.startPTS&&(u.b.log("switching audio track : flushing all audio"),this.state=Tt,s.trigger(c.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"}),h=!0,this.audioSwitch=!1,s.trigger(c.a.AUDIO_TRACK_SWITCHED,{id:r}))}else this.audioSwitch=!1,s.trigger(c.a.AUDIO_TRACK_SWITCHED,{id:r});var g=this.pendingData;if(!g)return u.b.warn("Apparently attempt to enqueue media payload without codec initialization data upfront"),void s.trigger(c.a.ERROR,{type:o.b.MEDIA_ERROR,details:null,fatal:!0});this.audioSwitch||([t.data1,t.data2].forEach((function(e){e&&e.length&&g.push({type:t.type,data:e,parent:"audio",content:"data"})})),!h&&g.length&&(g.forEach((function(t){e.state===bt&&(e.pendingBuffering=!0,e.hls.trigger(c.a.BUFFER_APPENDING,t))})),this.pendingData=[],this.appended=!0)),this.tick()}},a.onFragParsed=function(t){var e=this.fragCurrent,i=t.frag;e&&"audio"===t.id&&i.sn===e.sn&&i.level===e.level&&this.state===bt&&(this.stats.tparsed=qt.now(),this.state=wt,this._checkAppendedParsed())},a.onBufferReset=function(){this.mediaBuffer=this.videoBuffer=null,this.loadedmetadata=!1},a.onBufferCreated=function(t){var e=t.tracks.audio;e&&(this.mediaBuffer=e.buffer,this.loadedmetadata=!0),t.tracks.video&&(this.videoBuffer=t.tracks.video.buffer)},a.onBufferAppended=function(t){if("audio"===t.parent){var e=this.state;e!==bt&&e!==wt||(this.pendingBuffering=t.pending>0,this._checkAppendedParsed())}},a._checkAppendedParsed=function(){if(!(this.state!==wt||this.appended&&this.pendingBuffering)){var t=this.fragCurrent,e=this.stats,i=this.hls;if(t){this.fragPrevious=t,e.tbuffered=qt.now(),i.trigger(c.a.FRAG_BUFFERED,{stats:e,frag:t,id:"audio"});var n=this.mediaBuffer?this.mediaBuffer:this.media;n&&u.b.log("audio buffered : "+et(n.buffered)),this.audioSwitch&&this.appended&&(this.audioSwitch=!1,i.trigger(c.a.AUDIO_TRACK_SWITCHED,{id:this.trackId})),this.state=pt}this.tick()}},a.onError=function(t){var e=t.frag;if(!e||"audio"===e.type)switch(t.details){case o.a.FRAG_LOAD_ERROR:case o.a.FRAG_LOAD_TIMEOUT:var i=t.frag;if(i&&"audio"!==i.type)break;if(!t.fatal){var n=this.fragLoadError;n?n++:n=1;var r=this.config;if(n<=r.fragLoadingMaxRetry){this.fragLoadError=n;var a=Math.min(Math.pow(2,n-1)*r.fragLoadingRetryDelay,r.fragLoadingMaxRetryTimeout);u.b.warn("AudioStreamController: frag loading failed, retry in "+a+" ms"),this.retryDate=qt.now()+a,this.state=vt}else u.b.error("AudioStreamController: "+t.details+" reaches max retry, redispatch as fatal ..."),t.fatal=!0,this.state=Et}break;case o.a.AUDIO_TRACK_LOAD_ERROR:case o.a.AUDIO_TRACK_LOAD_TIMEOUT:case o.a.KEY_LOAD_ERROR:case o.a.KEY_LOAD_TIMEOUT:this.state!==Et&&(this.state=t.fatal?Et:pt,u.b.warn("AudioStreamController: "+t.details+" while loading frag, now switching to "+this.state+" state ..."));break;case o.a.BUFFER_FULL_ERROR:if("audio"===t.parent&&(this.state===bt||this.state===wt)){var s=this.mediaBuffer,l=this.media.currentTime;if(s&&U.isBuffered(s,l)&&U.isBuffered(s,l+.5)){var d=this.config;d.maxMaxBufferLength>=d.maxBufferLength&&(d.maxMaxBufferLength/=2,u.b.warn("AudioStreamController: reduce max buffer length to "+d.maxMaxBufferLength+"s")),this.state=pt}else u.b.warn("AudioStreamController: buffer full error also media.currentTime is not buffered, flush audio buffer"),this.fragCurrent=null,this.state=Tt,this.hls.trigger(c.a.BUFFER_FLUSHING,{startOffset:0,endOffset:Number.POSITIVE_INFINITY,type:"audio"})}}},a.onBufferFlushed=function(){var t=this,e=this.pendingData;e&&e.length?(u.b.log("AudioStreamController: appending pending audio data after buffer flushed"),e.forEach((function(e){t.hls.trigger(c.a.BUFFER_APPENDING,e)})),this.appended=!0,this.pendingData=[],this.state=wt):(this.state=pt,this.fragPrevious=null,this.tick())},(r=[{key:"state",set:function(t){if(this.state!==t){var e=this.state;this._state=t,u.b.log("audio stream:"+e+"->"+t)}},get:function(){return this._state}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(kt),Wt=function(){if("undefined"!=typeof window&&window.VTTCue)return window.VTTCue;var t={"":!0,lr:!0,rl:!0},e={start:!0,middle:!0,end:!0,left:!0,right:!0};function i(t){return"string"==typeof t&&!!e[t.toLowerCase()]&&t.toLowerCase()}function n(t){for(var e=1;e<arguments.length;e++){var i=arguments[e];for(var n in i)t[n]=i[n]}return t}function r(e,r,a){var s=this,o={enumerable:!0};s.hasBeenReset=!1;var l="",c=!1,u=e,d=r,h=a,f=null,p="",g=!0,m="auto",v="start",y=50,b="middle",w=50,T="middle";Object.defineProperty(s,"id",n({},o,{get:function(){return l},set:function(t){l=""+t}})),Object.defineProperty(s,"pauseOnExit",n({},o,{get:function(){return c},set:function(t){c=!!t}})),Object.defineProperty(s,"startTime",n({},o,{get:function(){return u},set:function(t){if("number"!=typeof t)throw new TypeError("Start time must be set to a number.");u=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"endTime",n({},o,{get:function(){return d},set:function(t){if("number"!=typeof t)throw new TypeError("End time must be set to a number.");d=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"text",n({},o,{get:function(){return h},set:function(t){h=""+t,this.hasBeenReset=!0}})),Object.defineProperty(s,"region",n({},o,{get:function(){return f},set:function(t){f=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"vertical",n({},o,{get:function(){return p},set:function(e){var i=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===i)throw new SyntaxError("An invalid or illegal string was specified.");p=i,this.hasBeenReset=!0}})),Object.defineProperty(s,"snapToLines",n({},o,{get:function(){return g},set:function(t){g=!!t,this.hasBeenReset=!0}})),Object.defineProperty(s,"line",n({},o,{get:function(){return m},set:function(t){if("number"!=typeof t&&"auto"!==t)throw new SyntaxError("An invalid number or illegal string was specified.");m=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"lineAlign",n({},o,{get:function(){return v},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");v=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"position",n({},o,{get:function(){return y},set:function(t){if(t<0||t>100)throw new Error("Position must be between 0 and 100.");y=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"positionAlign",n({},o,{get:function(){return b},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");b=e,this.hasBeenReset=!0}})),Object.defineProperty(s,"size",n({},o,{get:function(){return w},set:function(t){if(t<0||t>100)throw new Error("Size must be between 0 and 100.");w=t,this.hasBeenReset=!0}})),Object.defineProperty(s,"align",n({},o,{get:function(){return T},set:function(t){var e=i(t);if(!e)throw new SyntaxError("An invalid or illegal string was specified.");T=e,this.hasBeenReset=!0}})),s.displayState=void 0}return r.prototype.getCueAsHTML=function(){return window.WebVTT.convertCueToDOMTree(window,this.text)},r}(),Vt=function(){return{decode:function(t){if(!t)return"";if("string"!=typeof t)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(t))}}};function Yt(){this.window=window,this.state="INITIAL",this.buffer="",this.decoder=new Vt,this.regionList=[]}function Xt(){this.values=Object.create(null)}function Qt(t,e,i,n){var r=n?t.split(n):[t];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(i);2===s.length&&e(s[0],s[1])}}Xt.prototype={set:function(t,e){this.get(t)||""===e||(this.values[t]=e)},get:function(t,e,i){return i?this.has(t)?this.values[t]:e[i]:this.has(t)?this.values[t]:e},has:function(t){return t in this.values},alt:function(t,e,i){for(var n=0;n<i.length;++n)if(e===i[n]){this.set(t,e);break}},integer:function(t,e){/^-?\d+$/.test(e)&&this.set(t,parseInt(e,10))},percent:function(t,e){return!!(e.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(e=parseFloat(e))>=0&&e<=100)&&(this.set(t,e),!0)}};var Zt=new Wt(0,0,0),Jt="middle"===Zt.align?"middle":"center";function te(t,e,i){var n=t;function r(){var e=function(t){function e(t,e,i,n){return 3600*(0|t)+60*(0|e)+(0|i)+(0|n)/1e3}var i=t.match(/^(\d+):(\d{2})(:\d{2})?\.(\d{3})/);return i?i[3]?e(i[1],i[2],i[3].replace(":",""),i[4]):i[1]>59?e(i[1],i[2],0,i[4]):e(0,i[1],i[2],i[4]):null}(t);if(null===e)throw new Error("Malformed timestamp: "+n);return t=t.replace(/^[^\sa-zA-Z-]+/,""),e}function a(){t=t.replace(/^\s+/,"")}if(a(),e.startTime=r(),a(),"--\x3e"!==t.substr(0,3))throw new Error("Malformed time stamp (time stamps must be separated by '--\x3e'): "+n);t=t.substr(3),a(),e.endTime=r(),a(),function(t,e){var n=new Xt;Qt(t,(function(t,e){switch(t){case"region":for(var r=i.length-1;r>=0;r--)if(i[r].id===e){n.set(t,i[r].region);break}break;case"vertical":n.alt(t,e,["rl","lr"]);break;case"line":var a=e.split(","),s=a[0];n.integer(t,s),n.percent(t,s)&&n.set("snapToLines",!1),n.alt(t,s,["auto"]),2===a.length&&n.alt("lineAlign",a[1],["start",Jt,"end"]);break;case"position":a=e.split(","),n.percent(t,a[0]),2===a.length&&n.alt("positionAlign",a[1],["start",Jt,"end","line-left","line-right","auto"]);break;case"size":n.percent(t,e);break;case"align":n.alt(t,e,["start",Jt,"end","left","right"])}}
vendor: 12,644 bytes, line 2
2),/:/,/\s/),e.region=n.get("region",null),e.vertical=n.get("vertical","");var r=n.get("line","auto");"auto"===r&&-1===Zt.line&&(r=-1),e.line=r,e.lineAlign=n.get("lineAlign","start"),e.snapToLines=n.get("snapToLines",!0),e.size=n.get("size",100),e.align=n.get("align",Jt);var a=n.get("position","auto");"auto"===a&&50===Zt.position&&(a="start"===e.align||"left"===e.align?0:"end"===e.align||"right"===e.align?100:50),e.position=a}(t,e)}function ee(t){return t.replace(/<br(?: \/)?>/gi,"\n")}Yt.prototype={parse:function(t){var e=this;function i(){var t=e.buffer,i=0;for(t=ee(t);i<t.length&&"\r"!==t[i]&&"\n"!==t[i];)++i;var n=t.substr(0,i);return"\r"===t[i]&&++i,"\n"===t[i]&&++i,e.buffer=t.substr(i),n}t&&(e.buffer+=e.decoder.decode(t,{stream:!0}));try{var n;if("INITIAL"===e.state){if(!/\r\n|\n/.test(e.buffer))return this;var r=(n=i()).match(/^()?WEBVTT([ \t].*)?$/);if(!r||!r[0])throw new Error("Malformed WebVTT signature.");e.state="HEADER"}for(var a=!1;e.buffer;){if(!/\r\n|\n/.test(e.buffer))return this;switch(a?a=!1:n=i(),e.state){case"HEADER":/:/.test(n)?Qt(n,(function(t,e){}),/:/):n||(e.state="ID");continue;case"NOTE":n||(e.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(n)){e.state="NOTE";break}if(!n)continue;if(e.cue=new Wt(0,0,""),e.state="CUE",-1===n.indexOf("--\x3e")){e.cue.id=n;continue}case"CUE":try{te(n,e.cue,e.regionList)}catch(t){e.cue=null,e.state="BADCUE";continue}e.state="CUETEXT";continue;case"CUETEXT":var s=-1!==n.indexOf("--\x3e");if(!n||s&&(a=!0)){e.oncue&&e.oncue(e.cue),e.cue=null,e.state="ID";continue}e.cue.text&&(e.cue.text+="\n"),e.cue.text+=n;continue;case"BADCUE":n||(e.state="ID");continue}}}catch(t){"CUETEXT"===e.state&&e.cue&&e.oncue&&e.oncue(e.cue),e.cue=null,e.state="INITIAL"===e.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){try{if(this.buffer+=this.decoder.decode(),(this.cue||"HEADER"===this.state)&&(this.buffer+="\n\n",this.parse()),"INITIAL"===this.state)throw new Error("Malformed WebVTT signature.")}catch(t){throw t}return this.onflush&&this.onflush(),this}};var ie=Yt;function ne(t,e,i,n){for(var r,a,s,o,l,c=[],u=window.VTTCue||TextTrackCue,d=0;d<n.rows.length;d++)if(s=!0,o=0,l="",!(r=n.rows[d]).isEmpty()){for(var h=0;h<r.chars.length;h++)r.chars[h].uchar.match(/\s/)&&s?o++:(l+=r.chars[h].uchar,s=!1);r.cueStartTime=e,e===i&&(i+=1e-4),o>=16?o--:o++,(a=new u(e,i,ee(l.trim()))).line=navigator.userAgent.match(/Firefox\//)?d+1:d>7?d-2:d+1,a.align="left",a.position=Math.max(0,Math.min(100,o/32*100)),c.push(a),t&&t.addCue(a)}return c}var re,ae={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,128:174,129:176,130:189,131:191,132:8482,133:162,134:163,135:9834,136:224,137:32,138:232,139:226,140:234,141:238,142:244,143:251,144:193,145:201,146:211,147:218,148:220,149:252,150:8216,151:161,152:42,153:8217,154:9473,155:169,156:8480,157:8226,158:8220,159:8221,160:192,161:194,162:199,163:200,164:202,165:203,166:235,167:206,168:207,169:239,170:212,171:217,172:249,173:219,174:171,175:187,176:195,177:227,178:205,179:204,180:236,181:210,182:242,183:213,184:245,185:123,186:125,187:92,188:94,189:95,190:124,191:8764,192:196,193:228,194:214,195:246,196:223,197:165,198:164,199:9475,200:197,201:229,202:216,203:248,204:9487,205:9491,206:9495,207:9499},se=function(t){var e=t;return ae.hasOwnProperty(t)&&(e=ae[t]),String.fromCharCode(e)},oe={17:1,18:3,21:5,22:7,23:9,16:11,19:12,20:14},le={17:2,18:4,21:6,22:8,23:10,19:13,20:15},ce={25:1,26:3,29:5,30:7,31:9,24:11,27:12,28:14},ue={25:2,26:4,29:6,30:8,31:10,27:13,28:15},de=["white","green","blue","cyan","red","yellow","magenta","black","transparent"];!function(t){t[t.ERROR=0]="ERROR",t[t.TEXT=1]="TEXT",t[t.WARNING=2]="WARNING",t[t.INFO=2]="INFO",t[t.DEBUG=3]="DEBUG",t[t.DATA=3]="DATA"}(re||(re={}));var he=function(){function t(){this.time=null,this.verboseLevel=re.ERROR}return t.prototype.log=function(t,e){this.verboseLevel>=t&&u.b.log(this.time+" ["+t+"] "+e)},t}(),fe=function(t){for(var e=[],i=0;i<t.length;i++)e.push(t[i].toString(16));return e},pe=function(){function t(t,e,i,n,r){this.foreground=void 0,this.underline=void 0,this.italics=void 0,this.background=void 0,this.flash=void 0,this.foreground=t||"white",this.underline=e||!1,this.italics=i||!1,this.background=n||"black",this.flash=r||!1}var e=t.prototype;return e.reset=function(){this.foreground="white",this.underline=!1,this.italics=!1,this.background="black",this.flash=!1},e.setStyles=function(t){for(var e=["foreground","underline","italics","background","flash"],i=0;i<e.length;i++){var n=e[i];t.hasOwnProperty(n)&&(this[n]=t[n])}},e.isDefault=function(){return"white"===this.foreground&&!this.underline&&!this.italics&&"black"===this.background&&!this.flash},e.equals=function(t){return this.foreground===t.foreground&&this.underline===t.underline&&this.italics===t.italics&&this.background===t.background&&this.flash===t.flash},e.copy=function(t){this.foreground=t.foreground,this.underline=t.underline,this.italics=t.italics,this.background=t.background,this.flash=t.flash},e.toString=function(){return"color="+this.foreground+", underline="+this.underline+", italics="+this.italics+", background="+this.background+", flash="+this.flash},t}(),ge=function(){function t(t,e,i,n,r,a){this.uchar=void 0,this.penState=void 0,this.uchar=t||" ",this.penState=new pe(e,i,n,r,a)}var e=t.prototype;return e.reset=function(){this.uchar=" ",this.penState.reset()},e.setChar=function(t,e){this.uchar=t,this.penState.copy(e)},e.setPenState=function(t){this.penState.copy(t)},e.equals=function(t){return this.uchar===t.uchar&&this.penState.equals(t.penState)},e.copy=function(t){this.uchar=t.uchar,this.penState.copy(t.penState)},e.isEmpty=function(){return" "===this.uchar&&this.penState.isDefault()},t}(),me=function(){function t(t){this.chars=void 0,this.pos=void 0,this.currPenState=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chars=[];for(var e=0;e<100;e++)this.chars.push(new ge);this.logger=t,this.pos=0,this.currPenState=new pe}var e=t.prototype;return e.equals=function(t){for(var e=!0,i=0;i<100;i++)if(!this.chars[i].equals(t.chars[i])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<100;e++)this.chars[e].copy(t.chars[e])},e.isEmpty=function(){for(var t=!0,e=0;e<100;e++)if(!this.chars[e].isEmpty()){t=!1;break}return t},e.setCursor=function(t){this.pos!==t&&(this.pos=t),this.pos<0?(this.logger.log(re.DEBUG,"Negative cursor position "+this.pos),this.pos=0):this.pos>100&&(this.logger.log(re.DEBUG,"Too large cursor position "+this.pos),this.pos=100)},e.moveCursor=function(t){var e=this.pos+t;if(t>1)for(var i=this.pos+1;i<e+1;i++)this.chars[i].setPenState(this.currPenState);this.setCursor(e)},e.backSpace=function(){this.moveCursor(-1),this.chars[this.pos].setChar(" ",this.currPenState)},e.insertChar=function(t){t>=144&&this.backSpace();var e=se(t);this.pos>=100?this.logger.log(re.ERROR,"Cannot insert "+t.toString(16)+" ("+e+") at position "+this.pos+". Skipping it!"):(this.chars[this.pos].setChar(e,this.currPenState),this.moveCursor(1))},e.clearFromPos=function(t){var e;for(e=t;e<100;e++)this.chars[e].reset()},e.clear=function(){this.clearFromPos(0),this.pos=0,this.currPenState.reset()},e.clearToEndOfRow=function(){this.clearFromPos(this.pos)},e.getTextString=function(){for(var t=[],e=!0,i=0;i<100;i++){var n=this.chars[i].uchar;" "!==n&&(e=!1),t.push(n)}return e?"":t.join("")},e.setPenStyles=function(t){this.currPenState.setStyles(t),this.chars[this.pos].setPenState(this.currPenState)},t}(),ve=function(){function t(t){this.rows=void 0,this.currRow=void 0,this.nrRollUpRows=void 0,this.lastOutputScreen=void 0,this.logger=void 0,this.rows=[];for(var e=0;e<15;e++)this.rows.push(new me(t));this.logger=t,this.currRow=14,this.nrRollUpRows=null,this.lastOutputScreen=null,this.reset()}var e=t.prototype;return e.reset=function(){for(var t=0;t<15;t++)this.rows[t].clear();this.currRow=14},e.equals=function(t){for(var e=!0,i=0;i<15;i++)if(!this.rows[i].equals(t.rows[i])){e=!1;break}return e},e.copy=function(t){for(var e=0;e<15;e++)this.rows[e].copy(t.rows[e])},e.isEmpty=function(){for(var t=!0,e=0;e<15;e++)if(!this.rows[e].isEmpty()){t=!1;break}return t},e.backSpace=function(){this.rows[this.currRow].backSpace()},e.clearToEndOfRow=function(){this.rows[this.currRow].clearToEndOfRow()},e.insertChar=function(t){this.rows[this.currRow].insertChar(t)},e.setPen=function(t){this.rows[this.currRow].setPenStyles(t)},e.moveCursor=function(t){this.rows[this.currRow].moveCursor(t)},e.setCursor=function(t){this.logger.log(re.INFO,"setCursor: "+t),this.rows[this.currRow].setCursor(t)},e.setPAC=function(t){this.logger.log(re.INFO,"pacData = "+JSON.stringify(t));var e=t.row-1;if(this.nrRollUpRows&&e<this.nrRollUpRows-1&&(e=this.nrRollUpRows-1),this.nrRollUpRows&&this.currRow!==e){for(var i=0;i<15;i++)this.rows[i].clear();var n=this.currRow+1-this.nrRollUpRows,r=this.lastOutputScreen;if(r){var a=r.rows[n].cueStartTime,s=this.logger.time;if(a&&null!==s&&a<s)for(var o=0;o<this.nrRollUpRows;o++)this.rows[e-this.nrRollUpRows+o+1].copy(r.rows[n+o])}}this.currRow=e;var l=this.rows[this.currRow];if(null!==t.indent){var c=Math.max(t.indent-1,0);l.setCursor(t.indent),t.color=l.chars[c].penState.foreground}this.setPen({foreground:t.color,underline:t.underline,italics:t.italics,background:"black",flash:!1})},e.setBkgData=function(t){this.logger.log(re.INFO,"bkgData = "+JSON.stringify(t)),this.backSpace(),this.setPen(t),this.insertChar(32)},e.setRollUpRows=function(t){this.nrRollUpRows=t},e.rollUp=function(){if(null!==this.nrRollUpRows){this.logger.log(re.TEXT,this.getDisplayText());var t=this.rows.splice(this.currRow+1-this.nrRollUpRows,1)[0];t.clear(),this.rows.splice(this.currRow,0,t),this.logger.log(re.INFO,"Rolling up")}else this.logger.log(re.DEBUG,"roll_up but nrRollUpRows not set yet")},e.getDisplayText=function(t){t=t||!1;for(var e=[],i="",n=0;n<15;n++){var r=this.rows[n].getTextString();r&&e.push(t?"Row "+(n+1)+": '"+r+"'":r.trim())}return e.length>0&&(i=t?"["+e.join(" | ")+"]":e.join("\n")),i},e.getTextAndFormat=function(){return this.rows},t}(),ye=function(){function t(t,e,i){this.chNr=void 0,this.outputFilter=void 0,this.mode=void 0,this.verbose=void 0,this.displayedMemory=void 0,this.nonDisplayedMemory=void 0,this.lastOutputScreen=void 0,this.currRollUpRow=void 0,this.writeScreen=void 0,this.cueStartTime=void 0,this.logger=void 0,this.chNr=t,this.outputFilter=e,this.mode=null,this.verbose=0,this.displayedMemory=new ve(i),this.nonDisplayedMemory=new ve(i),this.lastOutputScreen=new ve(i),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null,this.logger=i}var e=t.prototype;return e.reset=function(){this.mode=null,this.displayedMemory.reset(),this.nonDisplayedMemory.reset(),this.lastOutputScreen.reset(),this.outputFilter.reset(),this.currRollUpRow=this.displayedMemory.rows[14],this.writeScreen=this.displayedMemory,this.mode=null,this.cueStartTime=null},e.getHandler=function(){return this.outputFilter},e.setHandler=function(t){this.outputFilter=t},e.setPAC=function(t){this.writeScreen.setPAC(t)},e.setBkgData=function(t){this.writeScreen.setBkgData(t)},e.setMode=function(t){t!==this.mode&&(this.mode=t,this.logger.log(re.INFO,"MODE="+t),"MODE_POP-ON"===this.mode?this.writeScreen=this.nonDisplayedMemory:(this.writeScreen=this.displayedMemory,this.writeScreen.reset()),"MODE_ROLL-UP"!==this.mode&&(this.displayedMemory.nrRollUpRows=null,this.nonDisplayedMemory.nrRollUpRows=null),this.mode=t)},e.insertChars=function(t){for(var e=0;e<t.length;e++)this.writeScreen.insertChar(t[e]);this.logger.log(re.INFO,(this.writeScreen===this.displayedMemory?"DISP":"NON_DISP")+": "+this.writeScreen.getDisplayText(!0)),"MODE_PAINT-ON"!==this.mode&&"MODE_ROLL-UP"!==this.mode||(this.logger.log(re.TEXT,"DISPLAYED: "+this.displayedMemory.getDisplayText(!0)),this.outputDataUpdate())},e.ccRCL=function(){this.logger.log(re.INFO,"RCL - Resume Caption Loading"),this.setMode("MODE_POP-ON")},e.ccBS=function(){this.logger.log(re.INFO,"BS - BackSpace"),"MODE_TEXT"!==this.mode&&(this.writeScreen.backSpace(),this.writeScreen===this.displayedMemory&&this.outputDataUpdate())},e.ccAOF=function(){},e.ccAON=function(){},e.ccDER=function(){this.logger.log(re.INFO,"DER- Delete to End of Row"),this.writeScreen.clearToEndOfRow(),this.outputDataUpdate()},e.ccRU=function(t){this.logger.log(re.INFO,"RU("+t+") - Roll Up"),this.writeScreen=this.displayedMemory,this.setMode("MODE_ROLL-UP"),this.writeScreen.setRollUpRows(t)},e.ccFON=function(){this.logger.log(re.INFO,"FON - Flash On"),this.writeScreen.setPen({flash:!0})},e.ccRDC=function(){this.logger.log(re.INFO,"RDC - Resume Direct
2Captioning"),this.setMode("MODE_PAINT-ON")},e.ccTR=function(){this.logger.log(re.INFO,"TR"),this.setMode("MODE_TEXT")},e.ccRTD=function(){this.logger.log(re.INFO,"RTD"),this.setMode("MODE_TEXT")},e.ccEDM=function(){this.logger.log(re.INFO,"EDM - Erase Displayed Memory"),this.displayedMemory.reset(),this.outputDataUpdate(!0)},e.ccCR=function(){this.logger.log(re.INFO,"CR - Carriage Return"),this.writeScreen.rollUp(),this.outputDataUpdate(!0)},e.ccENM=function(){this.logger.log(re.INFO,"ENM - Erase Non-displayed Memory"),this.nonDisplayedMemory.reset()},e.ccEOC=function(){if(this.logger.log(re.INFO,"EOC - End Of Caption"),"MODE_POP-ON"===this.mode){var t=this.displayedMemory;this.displayedMemory=this.nonDisplayedMemory,this.nonDisplayedMemory=t,this.writeScreen=this.nonDisplayedMemory,this.logger.log(re.TEXT,"DISP: "+this.displayedMemory.getDisplayText())}this.outputDataUpdate(!0)},e.ccTO=function(t){this.logger.log(re.INFO,"TO("+t+") - Tab Offset"),this.writeScreen.moveCursor(t)},e.ccMIDROW=function(t){var e={flash:!1};if(e.underline=t%2==1,e.italics=t>=46,e.italics)e.foreground="white";else{var i=Math.floor(t/2)-16;e.foreground=["white","green","blue","cyan","red","yellow","magenta"][i]}this.logger.log(re.INFO,"MIDROW: "+JSON.stringify(e)),this.writeScreen.setPen(e)},e.outputDataUpdate=function(t){void 0===t&&(t=!1);var e=this.logger.time;null!==e&&this.outputFilter&&(null!==this.cueStartTime||this.displayedMemory.isEmpty()?this.displayedMemory.equals(this.lastOutputScreen)||(this.outputFilter.newCue(this.cueStartTime,e,this.lastOutputScreen),t&&this.outputFilter.dispatchCue&&this.outputFilter.dispatchCue(),this.cueStartTime=this.displayedMemory.isEmpty()?null:e):this.cueStartTime=e,this.lastOutputScreen.copy(this.displayedMemory))},e.cueSplitAtTime=function(t){this.outputFilter&&(this.displayedMemory.isEmpty()||(this.outputFilter.newCue&&this.outputFilter.newCue(this.cueStartTime,t,this.displayedMemory),this.cueStartTime=t))},t}();function be(t,e,i){i.a=t,i.b=e}function we(t,e,i){return i.a===t&&i.b===e}var Te=function(){function t(t,e,i){this.channels=void 0,this.currentChannel=0,this.cmdHistory=void 0,this.logger=void 0;var n=new he;this.channels=[null,new ye(t,e,n),new ye(t+1,i,n)],this.cmdHistory={a:null,b:null},this.logger=n}var e=t.prototype;return e.getHandler=function(t){return this.channels[t].getHandler()},e.setHandler=function(t,e){this.channels[t].setHandler(e)},e.addData=function(t,e){var i,n,r,a=!1;this.logger.time=t;for(var s=0;s<e.length;s+=2)if(r=127&e[s+1],0!=(n=127&e[s])||0!==r){if(this.logger.log(re.DATA,"["+fe([e[s],e[s+1]])+"] -> ("+fe([n,r])+")"),(i=this.parseCmd(n,r))||(i=this.parseMidrow(n,r)),i||(i=this.parsePAC(n,r)),i||(i=this.parseBackgroundAttributes(n,r)),!i&&(a=this.parseChars(n,r))){var o=this.currentChannel;o&&o>0?this.channels[o].insertChars(a):this.logger.log(re.WARNING,"No channel found yet. TEXT-MODE?")}i||a||this.logger.log(re.WARNING,"Couldn't parse cleaned data "+fe([n,r])+" orig: "+fe([e[s],e[s+1]]))}},e.parseCmd=function(t,e){var i=this.cmdHistory;if(!((20===t||28===t||21===t||29===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=33&&e<=35))return!1;if(we(t,e,i))return be(null,null,i),this.logger.log(re.DEBUG,"Repeated command ("+fe([t,e])+") is dropped"),!0;var n=20===t||21===t||23===t?1:2,r=this.channels[n];return 20===t||21===t||28===t||29===t?32===e?r.ccRCL():33===e?r.ccBS():34===e?r.ccAOF():35===e?r.ccAON():36===e?r.ccDER():37===e?r.ccRU(2):38===e?r.ccRU(3):39===e?r.ccRU(4):40===e?r.ccFON():41===e?r.ccRDC():42===e?r.ccTR():43===e?r.ccRTD():44===e?r.ccEDM():45===e?r.ccCR():46===e?r.ccENM():47===e&&r.ccEOC():r.ccTO(e-32),be(t,e,i),this.currentChannel=n,!0},e.parseMidrow=function(t,e){var i=0;if((17===t||25===t)&&e>=32&&e<=47){if((i=17===t?1:2)!==this.currentChannel)return this.logger.log(re.ERROR,"Mismatch channel in midrow parsing"),!1;var n=this.channels[i];return!!n&&(n.ccMIDROW(e),this.logger.log(re.DEBUG,"MIDROW ("+fe([t,e])+")"),!0)}return!1},e.parsePAC=function(t,e){var i=this.cmdHistory;if(!((t>=17&&t<=23||t>=25&&t<=31)&&e>=64&&e<=127||(16===t||24===t)&&e>=64&&e<=95))return!1;if(we(t,e,i))return be(null,null,i),!0;var n=t<=23?1:2,r=this.channels[n];return!!r&&(r.setPAC(this.interpretPAC(e>=64&&e<=95?1===n?oe[t]:ce[t]:1===n?le[t]:ue[t],e)),be(t,e,i),this.currentChannel=n,!0)},e.interpretPAC=function(t,e){var i,n={color:null,italics:!1,indent:null,underline:!1,row:t};return n.underline=1==(1&(i=e>95?e-96:e-64)),i<=13?n.color=["white","green","blue","cyan","red","yellow","magenta","white"][Math.floor(i/2)]:i<=15?(n.italics=!0,n.color="white"):n.indent=4*Math.floor((i-16)/2),n},e.parseChars=function(t,e){var i,n,r=null,a=null;if(t>=25?(i=2,a=t-8):(i=1,a=t),a>=17&&a<=19?(this.logger.log(re.INFO,"Special char '"+se(n=17===a?e+80:18===a?e+112:e+144)+"' in channel "+i),r=[n]):t>=32&&t<=127&&(r=0===e?[t]:[t,e]),r){var s=fe(r);this.logger.log(re.DEBUG,"Char codes = "+s.join(",")),be(t,e,this.cmdHistory)}return r}
vendor: 26,154 bytes, line 2
2,e.parseBackgroundAttributes=function(t,e){var i;if(!((16===t||24===t)&&e>=32&&e<=47||(23===t||31===t)&&e>=45&&e<=47))return!1;var n={};return 16===t||24===t?(i=Math.floor((e-32)/2),n.background=de[i],e%2==1&&(n.background=n.background+"_semi")):45===e?n.background="transparent":(n.foreground="black",47===e&&(n.underline=!0)),this.channels[t<=23?1:2].setBkgData(n),be(t,e,this.cmdHistory),!0},e.reset=function(){for(var t=0;t<Object.keys(this.channels).length;t++){var e=this.channels[t];e&&e.reset()}this.cmdHistory={a:null,b:null}},e.cueSplitAtTime=function(t){for(var e=0;e<this.channels.length;e++){var i=this.channels[e];i&&i.cueSplitAtTime(t)}},t}(),xe=function(){function t(t,e){this.timelineController=void 0,this.cueRanges=[],this.trackName=void 0,this.startTime=null,this.endTime=null,this.screen=null,this.timelineController=t,this.trackName=e}var e=t.prototype;return e.dispatchCue=function(){null!==this.startTime&&(this.timelineController.addCues(this.trackName,this.startTime,this.endTime,this.screen,this.cueRanges),this.startTime=null)},e.newCue=function(t,e,i){(null===this.startTime||this.startTime>t)&&(this.startTime=t),this.endTime=e,this.screen=i,this.timelineController.createCaptionsTrack(this.trackName)},e.reset=function(){this.cueRanges=[]},t}(),Ee=function(t,e,i){return t.substr(i||0,e.length)===e},Se=function(t){for(var e=5381,i=t.length;i;)e=33*e^t.charCodeAt(--i);return(e>>>0).toString()};function _e(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ke(t,e){return t&&t.label===e.name&&!(t.textTrack1||t.textTrack2)}var Ce=function(t){var e,i;function n(e){var i;if((i=t.call(this,e,c.a.MEDIA_ATTACHING,c.a.MEDIA_DETACHING,c.a.FRAG_PARSING_USERDATA,c.a.FRAG_DECRYPTED,c.a.MANIFEST_LOADING,c.a.MANIFEST_LOADED,c.a.FRAG_LOADED,c.a.INIT_PTS_FOUND)||this).media=null,i.config=void 0,i.enabled=!0,i.Cues=void 0,i.textTracks=[],i.tracks=[],i.initPTS=[],i.unparsedVttFrags=[],i.captionsTracks={},i.nonNativeCaptionsTracks={},i.captionsProperties=void 0,i.cea608Parser1=void 0,i.cea608Parser2=void 0,i.lastSn=-1,i.prevCC=-1,i.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},i.hls=e,i.config=e.config,i.Cues=e.config.cueHandler,i.captionsProperties={textTrack1:{label:i.config.captionsTextTrack1Label,languageCode:i.config.captionsTextTrack1LanguageCode},textTrack2:{label:i.config.captionsTextTrack2Label,languageCode:i.config.captionsTextTrack2LanguageCode},textTrack3:{label:i.config.captionsTextTrack3Label,languageCode:i.config.captionsTextTrack3LanguageCode},textTrack4:{label:i.config.captionsTextTrack4Label,languageCode:i.config.captionsTextTrack4LanguageCode}},i.config.enableCEA708Captions){var n=new xe(_e(i),"textTrack1"),r=new xe(_e(i),"textTrack2"),a=new xe(_e(i),"textTrack3"),s=new xe(_e(i),"textTrack4");i.cea608Parser1=new Te(1,n,r),i.cea608Parser2=new Te(3,a,s)}return i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.addCues=function(t,e,i,n,r){for(var a,s,o=!1,l=r.length;l--;){var u=r[l],d=(a=u[0],s=e,Math.min(u[1],i)-Math.max(a,s));if(d>=0&&(u[0]=Math.min(u[0],e),u[1]=Math.max(u[1],i),o=!0,d/(i-e)>.5))return}if(o||r.push([e,i]),this.config.renderTextTracksNatively)this.Cues.newCue(this.captionsTracks[t],e,i,n);else{var h=this.Cues.newCue(null,e,i,n);this.hls.trigger(c.a.CUES_PARSED,{type:"captions",cues:h,track:t})}},r.onInitPtsFound=function(t){var e=this,i=this.unparsedVttFrags;"main"===t.id&&(this.initPTS[t.frag.cc]=t.initPTS),i.length&&(this.unparsedVttFrags=[],i.forEach((function(t){e.onFragLoaded(t)})))},r.getExistingTrack=function(t){var e=this.media;if(e)for(var i=0;i<e.textTracks.length;i++){var n=e.textTracks[i];if(n[t])return n}return null},r.createCaptionsTrack=function(t){this.config.renderTextTracksNatively?this.createNativeTrack(t):this.createNonNativeTrack(t)},r.createNativeTrack=function(t){if(!this.captionsTracks[t]){var e=this.captionsTracks,i=this.media,n=this.captionsProperties[t],r=n.label,a=n.languageCode,s=this.getExistingTrack(t);if(s)e[t]=s,Dt(e[t]),Lt(e[t],i);else{var o=this.createTextTrack("captions",r,a);o&&(o[t]=!0,e[t]=o)}}},r.createNonNativeTrack=function(t){if(!this.nonNativeCaptionsTracks[t]){var e=this.captionsProperties[t];if(e){var i={_id:t,label:e.label,kind:"captions",default:!!e.media&&!!e.media.default,closedCaptions:e.media};this.nonNativeCaptionsTracks[t]=i,this.hls.trigger(c.a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:[i]})}}},r.createTextTrack=function(t,e,i){var n=this.media;if(n)return n.addTextTrack(t,e,i)},r.destroy=function(){t.prototype.destroy.call(this)},r.onMediaAttaching=function(t){this.media=t.media,this._cleanTracks()},r.onMediaDetaching=function(){var t=this.captionsTracks;Object.keys(t).forEach((function(e){Dt(t[e]),delete t[e]})),this.nonNativeCaptionsTracks={}},r.onManifestLoading=function(){this.lastSn=-1,this.prevCC=-1,this.vttCCs={ccOffset:0,presentationOffset:0,0:{start:0,prevCC:-1,new:!1}},this._cleanTracks(),this.tracks=[],this.captionsTracks={},this.nonNativeCaptionsTracks={}},r._cleanTracks=function(){var t=this.media;if(t){var e=t.textTracks;if(e)for(var i=0;i<e.length;i++)Dt(e[i])}},r.onManifestLoaded=function(t){var e=this;if(this.textTracks=[],this.unparsedVttFrags=this.unparsedVttFrags||[],this.initPTS=[],this.cea608Parser1&&this.cea608Parser2&&(this.cea608Parser1.reset(),this.cea608Parser2.reset()),this.config.enableWebVTT){var i=t.subtitles||[],n=this.tracks&&i&&this.tracks.length===i.length;if(this.tracks=t.subtitles||[],this.config.renderTextTracksNatively){var r=this.media?this.media.textTracks:[];this.tracks.forEach((function(t,i){var n;if(i<r.length){for(var a=null,s=0;s<r.length;s++)if(ke(r[s],t)){a=r[s];break}a&&(n=a)}n||(n=e.createTextTrack("subtitles",t.name,t.lang)),n.mode=t.default?e.hls.subtitleDisplay?"showing":"hidden":"disabled",e.textTracks.push(n)}))}else if(!n&&this.tracks&&this.tracks.length){var a=this.tracks.map((function(t){return{label:t.name,kind:t.type.toLowerCase(),default:t.default,subtitleTrack:t}}));this.hls.trigger(c.a.NON_NATIVE_TEXT_TRACKS_FOUND,{tracks:a})}}this.config.enableCEA708Captions&&t.captions&&t.captions.forEach((function(t){var i=/(?:CC|SERVICE)([1-4])/.exec(t.instreamId);if(i){var n=e.captionsProperties["textTrack"+i[1]];n&&(n.label=t.name,t.lang&&(n.languageCode=t.lang),n.media=t)}}))},r.onFragLoaded=function(t){var e=t.frag,i=t.payload,n=this.cea608Parser1,r=this.cea608Parser2,a=this.initPTS,s=this.unparsedVttFrags;if("main"===e.type){var o=e.sn;e.sn!==this.lastSn+1&&n&&r&&(n.reset(),r.reset()),this.lastSn=o}else if("subtitle"===e.type)if(i.byteLength){if(!Object(l.a)(a[e.cc]))return s.push(t),void(a.length&&this.hls.trigger(c.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e}));var u=e.decryptdata;null!=u&&null!=u.key&&"AES-128"===u.method||this._parseVTTs(e,i)}else this.hls.trigger(c.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:e})},r._parseVTTs=function(t,e){var i=this,n=this.hls,r=this.textTracks,a=this.vttCCs;a[t.cc]||(a[t.cc]={start:t.start,prevCC:this.prevCC,new:!0},this.prevCC=t.cc),function(t,e,i,n,r,a){var s,o=Object(Rt.b)(new Uint8Array(t)).trim().replace(/\r\n|\n\r|\n|\r/g,"\n").split("\n"),c="00:00.000",u=0,d=0,h=0,f=[],p=!0,g=!1,m=new ie;m.oncue=function(t){var e=i[n],r=i.ccOffset;e&&e.new&&(void 0!==d?r=i.ccOffset=e.start:function(t,e,i){var n=t[e],r=t[n.prevCC];if(!r||!r.new&&n.new)return t.ccOffset=t.presentationOffset=n.start,void(n.new=!1);for(;r&&r.new;)t.ccOffset+=n.start-r.start,n.new=!1,r=t[(n=r).prevCC];t.presentationOffset=i}(i,n,h)),h&&(r=h-i.presentationOffset),g&&(t.startTime+=r-d,t.endTime+=r-d),t.id=Se(t.startTime.toString())+Se(t.endTime.toString())+Se(t.text),t.text=decodeURIComponent(encodeURIComponent(t.text)),t.endTime>0&&f.push(t)},m.onparsingerror=function(t){s=t},m.onflush=function(){s&&a?a(s):r(f)},o.forEach((function(t){if(p){if(Ee(t,"X-TIMESTAMP-MAP=")){p=!1,g=!0,t.substr(16).split(",").forEach((function(t){Ee(t,"LOCAL:")?c=t.substr(6):Ee(t,"MPEGTS:")&&(u=parseInt(t.substr(7)))}));try{e+(9e4*i[n].start||0)<0&&(e+=8589934592),u-=e,d=function(t){var e=parseInt(t.substr(-3)),i=parseInt(t.substr(-6,2)),n=parseInt(t.substr(-9,2)),r=t.length>9?parseInt(t.substr(0,t.indexOf(":"))):0;if(!(Object(l.a)(e)&&Object(l.a)(i)&&Object(l.a)(n)&&Object(l.a)(r)))throw Error("Malformed X-TIMESTAMP-MAP: Local:"+t);return e+=1e3*i,(e+=6e4*n)+36e5*r}(c)/1e3,h=u/9e4}catch(t){g=!1,s=t}return}""===t&&(p=!1)}m.parse(t+"\n")})),m.flush()}(e,this.initPTS[t.cc],a,t.cc,(function(e){if(i.config.renderTextTracksNatively){var a=r[t.level];if("disabled"===a.mode)return void n.trigger(c.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t});e.forEach((function(t){if(!a.cues.getCueById(t.id))try{if(a.addCue(t),!a.cues.getCueById(t.id))throw new Error("addCue is failed for: "+t)}catch(i){u.b.debug("Failed occurred on adding cues: "+i);var e=new window.TextTrackCue(t.startTime,t.endTime,t.text);e.id=t.id,a.addCue(e)}}))}else n.trigger(c.a.CUES_PARSED,{type:"subtitles",cues:e,track:i.tracks[t.level].default?"default":"subtitles"+t.level});n.trigger(c.a.SUBTITLE_FRAG_PROCESSED,{success:!0,frag:t})}),(function(e){u.b.log("Failed to parse VTT cue: "+e),n.trigger(c.a.SUBTITLE_FRAG_PROCESSED,{success:!1,frag:t})}))},r.onFragDecrypted=function(t){var e=t.frag,i=t.payload;if("subtitle"===e.type){if(!Object(l.a)(this.initPTS[e.cc]))return void this.unparsedVttFrags.push(t);this._parseVTTs(e,i)}},r.onFragParsingUserdata=function(t){var e=this.cea608Parser1,i=this.cea608Parser2;if(this.enabled&&e&&i)for(var n=0;n<t.samples.length;n++){var r=t.samples[n].bytes;if(r){var a=this.extractCea608Data(r);e.addData(t.samples[n].pts,a[0]),i.addData(t.samples[n].pts,a[1])}}},r.extractCea608Data=function(t){for(var e=31&t[0],i=2,n=[[],[]],r=0;r<e;r++){var a=t[i++],s=127&t[i++],o=127&t[i++],l=3&a;0===s&&0===o||0!=(4&a)&&(0!==l&&1!==l||(n[l].push(s),n[l].push(o)))}return n},n}(h);function Ae(t){for(var e=[],i=0;i<t.length;i++){var n=t[i];"subtitles"===n.kind&&n.label&&e.push(t[i])}return e}var Re,Le=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MEDIA_ATTACHED,c.a.MEDIA_DETACHING,c.a.MANIFEST_LOADED,c.a.SUBTITLE_TRACK_LOADED)||this).tracks=[],i.trackId=-1,i.media=null,i.stopped=!0,i.subtitleDisplay=!0,i.queuedDefaultTrack=null,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a=n.prototype;return a.destroy=function(){h.prototype.destroy.call(this)},a.onMediaAttached=function(t){var e=this;this.media=t.media,this.media&&(Object(l.a)(this.queuedDefaultTrack)&&(this.subtitleTrack=this.queuedDefaultTrack,this.queuedDefaultTrack=null),this.trackChangeListener=this._onTextTracksChanged.bind(this),this.useTextTrackPolling=!(this.media.textTracks&&"onchange"in this.media.textTracks),this.useTextTrackPolling?this.subtitlePollingInterval=setInterval((function(){e.trackChangeListener()}),500):this.media.textTracks.addEventListener("change",this.trackChangeListener))},a.onMediaDetaching=function(){this.media&&(this.useTextTrackPolling?clearInterval(this.subtitlePollingInterval):this.media.textTracks.removeEventListener("change",this.trackChangeListener),Object(l.a)(this.subtitleTrack)&&(this.queuedDefaultTrack=this.subtitleTrack),Ae(this.media.textTracks).forEach((function(t){Dt(t)})),this.subtitleTrack=-1,this.media=null)},a.onManifestLoaded=function(t){var e=this,i=t.subtitles||[];this.tracks=i,this.hls.trigger(c.a.SUBTITLE_TRACKS_UPDATED,{subtitleTracks:i}),i.forEach((function(t){t.default&&(e.media?e.subtitleTrack=t.id:e.queuedDefaultTrack=t.id)}))},a.onSubtitleTrackLoaded=function(t){var e=this,i=t.id,n=t.details,r=this.trackId,a=this.tracks,s=a[r];if(i>=a.length||i!==r||!s||this.stopped)this._clearReloadTimer();else if(u.b.log("subtitle track "+i+" loaded"),n.live){var o=tt(s.details,n,t.stats.trequest);u.b.log("Reloading live subtitle playlist in "+o+"ms"),this.timer=setTimeout((function(){e._loadCurrentTrack()}),o)}else this._clearReloadTimer()},a.startLoad=function(){this.stopped=!1,this._loadCurrentTrack()},a.stopLoad=function(){this.stopped=!0,this._clearReloadTimer()},a._clearReloadTimer=function(){this.timer&&(clearTimeout(this.timer),this.timer=null)},a._loadCurrentTrack=function(){var t=this.trackId,e=this.hls,i=this.tracks[t];t<0||!i||i.details&&!i.details.live||(u.b.log("Loading subtitle track "+t),e.trigger(c.a.SUBTITLE_TRACK_LOADING,{url:i.url,id:t}))},a._toggleTrackModes=function(t){var e=this.media,i=this.subtitleDisplay,n=this.trackId;if(e){var r=Ae(e.textTracks);if(-1===t)[].slice.call(r).forEach((function(t){t.mode="disabled"}));else{var a=r[n];a&&(a.mode="disabled")}var s=r[t];s&&(s.mode=i?"showing":"hidden")}},a._setSubtitleTrackInternal=function(t){var e=this.hls,i=this.tracks;!Object(l.a)(t)||t<-1||t>=i.length||(this.trackId=t,u.b.log("Switching to subtitle track "+t),e.trigger(c.a.SUBTITLE_TRACK_SWITCH,{id:t}),this._loadCurrentTrack())},a._onTextTracksChanged=function(){if(this.media&&this.hls.config.renderTextTracksNatively){for(var t=-1,e=Ae(this.media.textTracks),i=0;i<e.length;i++)if("hidden"===e[i].mode)t=i;else if("showing"===e[i].mode){t=i;break}this.subtitleTrack=t}},(r=[{key:"subtitleTracks",get:function(){return this.tracks}},{key:"subtitleTrack",get:function(){return this.trackId},set:function(t){this.trackId!==t&&(this._toggleTrackModes(t),this._setSubtitleTrackInternal(t))}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(h),De=i(7),Oe=window.performance,Pe=function(t){var e,i;function n(e,i){var n;return(n=t.call(this,e,c.a.MEDIA_ATTACHED,c.a.MEDIA_DETACHING,c.a.ERROR,c.a.KEY_LOADED,c.a.FRAG_LOADED,c.a.SUBTITLE_TRACKS_UPDATED,c.a.SUBTITLE_TRACK_SWITCH,c.a.SUBTITLE_TRACK_LOADED,c.a.SUBTITLE_FRAG_PROCESSED,c.a.LEVEL_UPDATED)||this).fragmentTracker=i,n.config=e.config,n.state=ht,n.tracks=[],n.tracksBuffered=[],n.currentTrackId=-1,n.decrypter=new De.a(e,e.config),n.lastAVStart=0,n._onMediaSeeking=n.onMediaSeeking.bind(function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(n)),n}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r=n.prototype;return r.onSubtitleFragProcessed=function(t){var e=t.frag,i=t.success;if(this.fragPrevious=e,this.state=pt,i){var n=this.tracksBuffered[this.currentTrackId];if(n){for(var r,a=e.start,s=0;s<n.length;s++)if(a>=n[s].start&&a<=n[s].end){r=n[s];break}var o=e.start+e.duration;r?r.end=o:n.push(r={start:a,end:o})}}},r.onMediaAttached=function(t){var e=t.media;this.media=e,e.addEventListener("seeking",this._onMediaSeeking),this.state=pt},r.onMediaDetaching=function(){var t=this;this.media&&(this.media.removeEventListener("seeking",this._onMediaSeeking),this.fragmentTracker.removeAllFragments(),this.currentTrackId=-1,this.tracks.forEach((function(e){t.tracksBuffered[e.id]=[]})),this.media=null,this.state=ht)},r.onError=function(t){var e=t.frag;e&&"subtitle"===e.type&&(this.state=pt)},r.onSubtitleTracksUpdated=function(t){var e=this;u.b.log("subtitle tracks updated"),this.tracksBuffered=[],this.tracks=t.subtitleTracks,this.tracks.forEach((function(t){e.tracksBuffered[t.id]=[]}))},r.onSubtitleTrackSwitch=function(t){if(this.currentTrackId=t.id,this.tracks&&this.tracks.length&&-1!==this.currentTrackId){var e=this.tracks[this.currentTrackId];e&&e.details&&this.setInterval(500)}else this.clearInterval()},r.onSubtitleTrackLoaded=function(t){var e=t.id,i=t.details,n=this.currentTrackId,r=this.tracks,a=r[n];e>=r.length||e!==n||!a||(i.live&&function(t,e,i){void 0===i&&(i=0);var n=-1;J(t,e,(function(t,e,i){e.start=t.start,n=i}));var r=e.fragments;if(n<0)r.forEach((function(t){t.start+=i}));else for(var a=n+1;a<r.length;a++)r[a].start=r[a-1].start+r[a-1].duration}(a.details,i,this.lastAVStart),a.details=i,this.setInterval(500))},r.onKeyLoaded=function(){this.state===gt&&(this.state=pt)},r.onFragLoaded=function(t){var e=this.fragCurrent,i=t.frag.decryptdata,n=t.frag,r=this.hls;if(this.state===mt&&e&&"subtitle"===t.frag.type&&e.sn===t.frag.sn&&t.payload.byteLength>0&&i&&i.key&&"AES-128"===i.method){var a=Oe.now();this.decrypter.decrypt(t.payload,i.key.buffer,i.iv.buffer,(function(t){var e=Oe.now();r.trigger(c.a.FRAG_DECRYPTED,{frag:n,payload:t,stats:{tstart:a,tdecrypt:e}})}))}},r.onLevelUpdated=function(t){var e=t.details.fragments;this.lastAVStart=e.length?e[0].start:0},r.doTick=function(){if(this.media)switch(this.state){case pt:var t=this.config,e=this.currentTrackId,i=this.fragmentTracker,n=this.media,r=this.tracks;if(!r||!r[e]||!r[e].details)break;var a,s=t.maxBufferHole,o=t.maxFragLookUpTolerance,l=Math.min(t.maxBufferLength,t.maxMaxBufferLength),d=U.bufferedInfo(this._getBuffered(),n.currentTime,s),h=d.end,f=r[e].details,p=f.fragments,g=p.length;if(d.len>l)return;var m=this.fragPrevious;h<p[g-1].start+p[g-1].duration?(m&&f.hasProgramDateTime&&(a=rt(p,m.endProgramDateTime,o)),a||(a=at(m,p,h,o))):a=p[g-1],a&&a.encrypted?(u.b.log("Loading key for "+a.sn),this.state=gt,this.hls.trigger(c.a.KEY_LOADING,{frag:a})):a&&i.getState(a)===I&&(this.fragCurrent=a,this.state=mt,this.hls.trigger(c.a.FRAG_LOADING,{frag:a}))}else this.state=pt},r.stopLoad=function(){this.lastAVStart=0,t.prototype.stopLoad.call(this)},r._getBuffered=function(){return this.tracksBuffered[this.currentTrackId]||[]},r.onMediaSeeking=function(){this.fragPrevious=null},n}(kt);!function(t){t.WIDEVINE="com.widevine.alpha",t.PLAYREADY="com.microsoft.playready"}(Re||(Re={}));var Ie="undefined"!=typeof window&&window.navigator&&window.navigator.requestMediaKeySystemAccess?window.navigator.requestMediaKeySystemAccess.bind(window.navigator):null,Me=function(t){var e,i;function n(e){var i;return(i=t.call(this,e,c.a.MEDIA_ATTACHED,c.a.MEDIA_DETACHED,c.a.MANIFEST_PARSED)||this)._widevineLicenseUrl=void 0,i._licenseXhrSetup=void 0,i._emeEnabled=void 0,i._requestMediaKeySystemAccess=void 0,i._drmSystemOptions=void 0,i._config=void 0,i._mediaKeysList=[],i._media=null,i._hasSetMediaKeys=!1,i._requestLicenseFailureCount=0,i.mediaKeysPromise=null,i._onMediaEncrypted=function(t){if(u.b.log('Media is encrypted using "'+t.initDataType+'" init data type'),!i.mediaKeysPromise)return u.b.error("Fatal: Media is encrypted but no CDM access or no keys have been requested"),void i.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_KEYS,fatal:!0});var e=function(e){i._media&&(i._attemptSetMediaKeys(e),i._generateRequestWithPreferredKeySession(t.initDataType,t.initData))};i.mediaKeysPromise.then(e).catch(e)},i._config=e.config,i._widevineLicenseUrl=i._config.widevineLicenseUrl,i._licenseXhrSetup=i._config.licenseXhrSetup,i._emeEnabled=i._config.emeEnabled,i._requestMediaKeySystemAccess=i._config.requestMediaKeySystemAccessFunc,i._drmSystemOptions=e.config.drmSystemOptions,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i;var r,a=n.prototype;return a.getLicenseServerUrl=function(t){switch(t){case Re.WIDEVINE:if(!this._widevineLicenseUrl)break;return this._widevineLicenseUrl}throw new Error('no license server URL configured for key-system "'+t+'"')},a._attemptKeySystemAccess=function(t,e,i){var n=this,r=function(t,e,i,n){switch(t){case Re.WIDEVINE:return function(t,e,i){var n={audioCapabilities:[],videoCapabilities:[]};return t.forEach((function(t){n.audioCapabilities.push({contentType:'audio/mp4; codecs="'+t+'"',robustness:i.audioRobustness||""})})),e.forEach((function(t){n.videoCapabilities.push({contentType:'video/mp4; codecs="'+t+'"',robustness:i.videoRobustness||""})})),[n]}(e,i,n);default:throw new Error("Unknown key-system: "+t)}}(t,e,i,this._drmSystemOptions);u.b.log("Requesting encrypted media key-system access");var a=this.requestMediaKeySystemAccess(t,r);this.mediaKeysPromise=a.then((function(e){return n._onMediaKeySystemAccessObtained(t,e)})),a.catch((function(e){u.b.error('Failed to obtain key-system "'+t+'" access:',e)}))},a._onMediaKeySystemAccessObtained=function(t,e){var i=this;u.b.log('Access for key-system "'+t+'" obtained');var n={mediaKeysSessionInitialized:!1,mediaKeySystemAccess:e,mediaKeySystemDomain:t};this._mediaKeysList.push(n);var r=Promise.resolve().then((function(){return e.createMediaKeys()})).then((function(e){return n.mediaKeys=e,u.b.log('Media-keys created for key-system "'+t+'"'),i._onMediaKeysCreated(),e}));return r.catch((function(t){u.b.error("Failed to create media-keys:",t)})),r},a._onMediaKeysCreated=function(){var t=this;this._mediaKeysList.forEach((function(e){e.mediaKeysSession||(e.mediaKeysSession=e.mediaKeys.createSession(),t._onNewMediaKeySession(e.mediaKeysSession))}))},a._onNewMediaKeySession=function(t){var e=this;u.b.log("New key-system session "+t.sessionId),t.addEventListener("message",(function(i){e._onKeySessionMessage(t,i.message)}),!1)},a._onKeySessionMessage=function(t,e){u.b.log("Got EME message event, creating license request"),this._requestLicense(e,(function(e){u.b.log("Received license data (length: "+(e?e.byteLength:e)+"), updating key-session"),t.update(e)}))},a._attemptSetMediaKeys=function(t){if(!this._media)throw new Error("Attempted to set mediaKeys without first attaching a media element");if(!this._hasSetMediaKeys){var e=this._mediaKeysList[0];if(!e||!e.mediaKeys)return u.b.error("Fatal: Media is encrypted but no CDM access or no keys have been obtained yet"),void this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_KEYS,fatal:!0});u.b.log("Setting keys for encrypted media"),this._media.setMediaKeys(e.mediaKeys),this._hasSetMediaKeys=!0}},a._generateRequestWithPreferredKeySession=function(t,e){var i=this,n=this._mediaKeysList[0];if(!n)return u.b.error("Fatal: Media is encrypted but not any key-system access has been obtained yet"),void this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_ACCESS,fatal:!0});if(n.mediaKeysSessionInitialized)u.b.warn("Key-Session already initialized but requested again");else{var r=n.mediaKeysSession;if(!r)return u.b.error("Fatal: Media is encrypted but no key-session existing"),void this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_SESSION,fatal:!0});if(!e)return u.b.warn("Fatal: initData required for generating a key session is null"),void this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_INIT_DATA,fatal:!0});u.b.log('Generating key-session request for "'+t+'" init data type'),n.mediaKeysSessionInitialized=!0,r.generateRequest(t,e).then((function(){u.b.debug("Key-session generation succeeded")})).catch((function(t){u.b.error("Error generating key-session request:",t),i.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_SESSION,fatal:!1})}))}},a._createLicenseXhr=function(t,e,i){var n=new XMLHttpRequest,r=this._licenseXhrSetup;try{if(r)try{r(n,t)}catch(e){n.open("POST",t,!0),r(n,t)}n.readyState||n.open("POST",t,!0)}catch(t){throw new Error("issue setting up KeySystem license XHR "+t)}return n.responseType="arraybuffer",n.onreadystatechange=this._onLicenseRequestReadyStageChange.bind(this,n,t,e,i),n},a._onLicenseRequestReadyStageChange=function(t,e,i,n){switch(t.readyState){case 4:if(200===t.status)this._requestLicenseFailureCount=0,u.b.log("License request succeeded"),"arraybuffer"!==t.responseType&&u.b.warn("xhr response type was not set to the expected arraybuffer for license request"),n(t.response);else{if(u.b.error("License Request XHR failed ("+e+"). Status: "+t.status+" ("+t.statusText+")"),this._requestLicenseFailureCount++,this._requestLicenseFailureCount>3)return void this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0});u.b.warn("Retrying license request, "+(3-this._requestLicenseFailureCount+1)+" attempts left"),this._requestLicense(i,n)}}},a._generateLicenseRequestChallenge=function(t,e){switch(t.mediaKeySystemDomain){case Re.WIDEVINE:return e}throw new Error("unsupported key-system: "+t.mediaKeySystemDomain)},a._requestLicense=function(t,e){u.b.log("Requesting content license for key-system");var i=this._mediaKeysList[0];if(!i)return u.b.error("Fatal error: Media is encrypted but no key-system access has been obtained yet"),void this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_NO_ACCESS,fatal:!0});try{var n=this.getLicenseServerUrl(i.mediaKeySystemDomain),r=this._createLicenseXhr(n,t,e);u.b.log("Sending license request to URL: "+n);var a=this._generateLicenseRequestChallenge(i,t);r.send(a)}catch(t){u.b.error("Failure requesting DRM license: "+t),this.hls.trigger(c.a.ERROR,{type:o.b.KEY_SYSTEM_ERROR,details:o.a.KEY_SYSTEM_LICENSE_REQUEST_FAILED,fatal:!0})}},a.onMediaAttached=function(t){if(this._emeEnabled){var e=t.media;this._media=e,e.addEventListener("encrypted",this._onMediaEncrypted)}},a.onMediaDetached=function(){var t=this._media,e=this._mediaKeysList;t&&(t.removeEventListener("encrypted",this._onMediaEncrypted),this._media=null,this._mediaKeysList=[],Promise.all(e.map((function(t){if(t.mediaKeysSession)return t.mediaKeysSession.close().catch((function(){}))}))).then((function(){return t.setMediaKeys(null)})).catch((function(){})))},a.onManifestParsed=function(t){if(this._emeEnabled){var e=t.levels.map((function(t){return t.audioCodec})),i=t.levels.map((function(t){return t.videoCodec}));this._attemptKeySystemAccess(Re.WIDEVINE,e,i)}},(r=[{key:"requestMediaKeySystemAccess",get:function(){if(!this._requestMediaKeySystemAccess)throw new Error("No requestMediaKeySystemAccess function configured");return this._requestMediaKeySystemAccess}}])&&function(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}(n.prototype,r),n}(h);function Fe(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function Ne(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};
vendor: 4,999 bytes, line 2
2e%2?Fe(Object(i),!0).forEach((function(e){Be(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):Fe(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function Be(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}var Ue=Ne(Ne({autoStartLoad:!0,startPosition:-1,defaultAudioCodec:void 0,debug:!1,capLevelOnFPSDrop:!1,capLevelToPlayerSize:!1,initialLiveManifestSize:1,maxBufferLength:30,maxBufferSize:6e7,maxBufferHole:.5,lowBufferWatchdogPeriod:.5,highBufferWatchdogPeriod:3,nudgeOffset:.1,nudgeMaxRetry:3,maxFragLookUpTolerance:.25,liveSyncDurationCount:3,liveMaxLatencyDurationCount:1/0,liveSyncDuration:void 0,liveMaxLatencyDuration:void 0,liveDurationInfinity:!1,liveBackBufferLength:1/0,maxMaxBufferLength:600,enableWorker:!0,enableSoftwareAES:!0,manifestLoadingTimeOut:1e4,manifestLoadingMaxRetry:1,manifestLoadingRetryDelay:1e3,manifestLoadingMaxRetryTimeout:64e3,startLevel:void 0,levelLoadingTimeOut:1e4,levelLoadingMaxRetry:4,levelLoadingRetryDelay:1e3,levelLoadingMaxRetryTimeout:64e3,fragLoadingTimeOut:2e4,fragLoadingMaxRetry:6,fragLoadingRetryDelay:1e3,fragLoadingMaxRetryTimeout:64e3,startFragPrefetch:!1,fpsDroppedMonitoringPeriod:5e3,fpsDroppedMonitoringThreshold:.2,appendErrorMaxRetry:3,loader:Gt,fLoader:void 0,pLoader:void 0,xhrSetup:void 0,licenseXhrSetup:void 0,abrController:Ft,bufferController:Bt,capLevelController:jt,fpsController:Ht,stretchShortVideoTrack:!1,maxAudioFramesDrift:1,forceKeyFrameOnDiscontinuity:!0,abrEwmaFastLive:3,abrEwmaSlowLive:9,abrEwmaFastVoD:3,abrEwmaSlowVoD:9,abrEwmaDefaultEstimate:5e5,abrBandWidthFactor:.95,abrBandWidthUpFactor:.7,abrMaxWithRealBitrate:!1,maxStarvationDelay:4,maxLoadingDelay:4,minAutoBitrate:0,emeEnabled:!1,widevineLicenseUrl:void 0,drmSystemOptions:{},requestMediaKeySystemAccessFunc:Ie,testBandwidth:!0},{cueHandler:n,enableCEA708Captions:!0,enableWebVTT:!0,captionsTextTrack1Label:"English",captionsTextTrack1LanguageCode:"en",captionsTextTrack2Label:"Spanish",captionsTextTrack2LanguageCode:"es",captionsTextTrack3Label:"Unknown CC",captionsTextTrack3LanguageCode:"",captionsTextTrack4Label:"Unknown CC",captionsTextTrack4LanguageCode:"",renderTextTracksNatively:!0}),{},{subtitleStreamController:Pe,subtitleTrackController:Le,timelineController:Ce,audioStreamController:Kt,audioTrackController:zt,emeController:Me});function je(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function $e(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?je(Object(i),!0).forEach((function(e){He(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):je(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function He(t,e,i){return e in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function Ge(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function ze(t,e){for(var i=0;i<e.length;i++){var n=e[i];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}}function qe(t,e,i){return e&&ze(t.prototype,e),i&&ze(t,i),t}var Ke=function(t){var e,i;function n(e){var i;void 0===e&&(e={}),(i=t.call(this)||this).config=void 0,i._autoLevelCapping=void 0,i.abrController=void 0,i.capLevelController=void 0,i.levelController=void 0,i.streamController=void 0,i.networkControllers=void 0,i.audioTrackController=void 0,i.subtitleTrackController=void 0,i.emeController=void 0,i.coreComponents=void 0,i.media=null,i.url=null;var r=n.DefaultConfig;if((e.liveSyncDurationCount||e.liveMaxLatencyDurationCount)&&(e.liveSyncDuration||e.liveMaxLatencyDuration))throw new Error("Illegal hls.js config: don't mix up liveSyncDurationCount/liveMaxLatencyDurationCount and liveSyncDuration/liveMaxLatencyDuration");i.config=$e($e({},r),e);var a=Ge(i).config;if(void 0!==a.liveMaxLatencyDurationCount&&a.liveMaxLatencyDurationCount<=a.liveSyncDurationCount)throw new Error('Illegal hls.js config: "liveMaxLatencyDurationCount" must be gt "liveSyncDurationCount"');if(void 0!==a.liveMaxLatencyDuration&&(void 0===a.liveSyncDuration||a.liveMaxLatencyDuration<=a.liveSyncDuration))throw new Error('Illegal hls.js config: "liveMaxLatencyDuration" must be gt "liveSyncDuration"');Object(u.a)(a.debug),i._autoLevelCapping=-1;var s=i.abrController=new a.abrController(Ge(i)),o=new a.bufferController(Ge(i)),l=i.capLevelController=new a.capLevelController(Ge(i)),c=new a.fpsController(Ge(i)),d=new D(Ge(i)),h=new O(Ge(i)),f=new P(Ge(i)),p=new Ot(Ge(i)),g=i.levelController=new At(Ge(i)),m=new N(Ge(i)),v=[g,i.streamController=new Ct
vendor: 5,476 bytes, line 2
2(Ge(i),m)],y=a.audioStreamController;y&&v.push(new y(Ge(i),m)),i.networkControllers=v;var b=[d,h,f,s,o,l,c,p,m];if(y=a.audioTrackController){var w=new y(Ge(i));i.audioTrackController=w,b.push(w)}if(y=a.subtitleTrackController){var T=new y(Ge(i));i.subtitleTrackController=T,v.push(T)}if(y=a.emeController){var x=new y(Ge(i));i.emeController=x,b.push(x)}return(y=a.subtitleStreamController)&&v.push(new y(Ge(i),m)),(y=a.timelineController)&&b.push(new y(Ge(i))),i.coreComponents=b,i}i=t,(e=n).prototype=Object.create(i.prototype),e.prototype.constructor=e,e.__proto__=i,n.isSupported=function(){return function(){var t=G();if(!t)return!1;var e=self.SourceBuffer||self.WebKitSourceBuffer;return!(!t||"function"!=typeof t.isTypeSupported||!t.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"')||e&&(!e.prototype||"function"!=typeof e.prototype.appendBuffer||"function"!=typeof e.prototype.remove))}()},qe(n,null,[{key:"version",get:function(){return"0.14.6"}},{key:"Events",get:function(){return c.a}},{key:"ErrorTypes",get:function(){return o.b}},{key:"ErrorDetails",get:function(){return o.a}},{key:"DefaultConfig",get:function(){return n.defaultConfig?n.defaultConfig:Ue},set:function(t){n.defaultConfig=t}}]);var r=n.prototype;return r.destroy=function(){u.b.log("destroy"),this.trigger(c.a.DESTROYING),this.detachMedia(),this.coreComponents.concat(this.networkControllers).forEach((function(t){t.destroy()})),this.url=null,this.removeAllListeners(),this._autoLevelCapping=-1},r.attachMedia=function(t){u.b.log("attachMedia"),this.media=t,this.trigger(c.a.MEDIA_ATTACHING,{media:t})},r.detachMedia=function(){u.b.log("detachMedia"),this.trigger(c.a.MEDIA_DETACHING),this.media=null},r.loadSource=function(t){t=s.buildAbsoluteURL(window.location.href,t,{alwaysNormalize:!0}),u.b.log("loadSource:"+t),this.url=t,this.trigger(c.a.MANIFEST_LOADING,{url:t})},r.startLoad=function(t){void 0===t&&(t=-1),u.b.log("startLoad("+t+")"),this.networkControllers.forEach((function(e){e.startLoad(t)}))},r.stopLoad=function(){u.b.log("stopLoad"),this.networkControllers.forEach((function(t){t.stopLoad()}))},r.swapAudioCodec=function(){u.b.log("swapAudioCodec"),this.streamController.swapAudioCodec()},r.recoverMediaError=function(){u.b.log("recoverMediaError");var t=this.media;this.detachMedia(),t&&this.attachMedia(t)},r.removeLevel=function(t,e){void 0===e&&(e=0),this.levelController.removeLevel(t,e)},qe(n,[{key:"levels",get:function(){return this.levelController.levels}},{key:"currentLevel",get:function(){return this.streamController.currentLevel},set:function(t){u.b.log("set currentLevel:"+t),this.loadLevel=t,this.streamController.immediateLevelSwitch()}},{key:"nextLevel",get:function(){return this.streamController.nextLevel},set:function(t){u.b.log("set nextLevel:"+t),this.levelController.manualLevel=t,this.streamController.nextLevelSwitch()}},{key:"loadLevel",get:function(){return this.levelController.level},set:function(t){u.b.log("set loadLevel:"+t),this.levelController.manualLevel=t}},{key:"nextLoadLevel",get:function(){return this.levelController.nextLoadLevel},set:function(t){this.levelController.nextLoadLevel=t}},{key:"firstLevel",get:function(){return Math.max(this.levelController.firstLevel,this.minAutoLevel)},set:function(t){u.b.log("set firstLevel:"+t),this.levelController.firstLevel=t}},{key:"startLevel",get:function(){return this.levelController.startLevel},set:function(t){u.b.log("set startLevel:"+t),-1!==t&&(t=Math.max(t,this.minAutoLevel)),this.levelController.startLevel=t}},{key:"capLevelToPlayerSize",set:function(t){var e=!!t;e!==this.config.capLevelToPlayerSize&&(e?this.capLevelController.startCapping():(this.capLevelController.stopCapping(),this.autoLevelCapping=-1,this.streamController.nextLevelSwitch()),this.config.capLevelToPlayerSize=e)}},{key:"autoLevelCapping",get:function(){return this._autoLevelCapping},set:function(t){u.b.log("set autoLevelCapping:"+t),this._autoLevelCapping=t}},{key:"bandwidthEstimate",get:function(){var t=this.abrController._bwEstimator;return t?t.getEstimate():NaN}},{key:"autoLevelEnabled",get:function(){return-1===this.levelController.manualLevel}},{key:"manualLevel",get:function(){return this.levelController.manualLevel}},{key:"minAutoLevel",get:function(){for(var t=this.levels,e=this.config.minAutoBitrate,i=t?t.length:0,n=0;n<i;n++)if((t[n].realBitrate?Math.max(t[n].realBitrate,t[n].bitrate):t[n].bitrate)>e)return n;return 0}},{key:"maxAutoLevel",get:function(){var t=this.levels,e=this.autoLevelCapping;return-1===e&&t&&t.length?t.length-1:e}},{key:"nextAutoLevel",get:function(){return Math.min(Math.max(this.abrController.nextAutoLevel,this.minAutoLevel),this.maxAutoLevel)},set:function(t){this.abrController.nextAutoLevel=Math.max(this.minAutoLevel,t)}},{key:"audioTracks",get:function(){var t=this.audioTrackController;return t?t.audioTracks:[]}},{key:"audioTrack",get:function(){var t=this.audioTrackController;return t?t.audioTrack:-1},set:function(t){var e=this.audioTrackController;e&&(e.audioTrack=t)}},{key:"liveSyncPosition",get:function(){return this.streamController.liveSyncPosition}},{key:"subtitleTracks",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTracks:[]}},{key:"subtitleTrack",get:function(){var t=this.subtitleTrackController;return t?t.subtitleTrack:-1},set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleTrack=t)}},{key:"subtitleDisplay",get:function(){var t=this.subtitleTrackController;return!!t&&t.subtitleDisplay}
2,set:function(t){var e=this.subtitleTrackController;e&&(e.subtitleDisplay=t)}}]),n}(q);Ke.defaultConfig=void 0}]).default}));
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.