1/*! For license information please see app.js.LICENSE.txt */ 2(()=>{var e,t={7154:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},3490:(e,t,n)=>{"use strict";var i=n(8908);e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,a){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var s=a;if(t)if(i.TextDecoder){var o=function(e){void 0===e&&(e="");return e.toLowerCase().split(";").reduce((function(e,t){var n=t.split("="),i=n[0],r=n[1];return"charset"===i.trim()?r.trim():e}),"utf-8")}(r.headers&&r.headers["content-type"]);try{s=new TextDecoder(o).decode(a)}catch(e){}}else s=String.fromCharCode.apply(null,new Uint8Array(a));e({cause:s})}else e(null,a)}}},9603:(e,t,n)=>{"use strict";var i=n(8908),r=n(7154),a=n(7376);o.httpHandler=n(3490);function s(e,t,n){var i=e;return a(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function o(e,t,n){return l(t=s(e,t,n))}function l(e){if(void 0===e.callback)throw new Error("callback argument missing");var t=!1,n=function(n,i,r){t||(t=!0,e.callback(n,i,r))};function i(){var e=void 0;if(e=c.response?c.response:c.responseText||function(e){try{if("document"===e.responseType)return e.responseXML;var t=e.responseXML&&"parsererror"===e.responseXML.documentElement.nodeName;if(""===e.responseType&&!t)return e.responseXML}catch(e){}return null}(c),g)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(u),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,v)}function a(){if(!l){var t;clearTimeout(u),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=v,a=null;return 0!==t?(r={body:i(),statusCode:t,method:h,headers:{},url:d,rawRequest:c},c.getAllResponseHeaders&&(r.headers=function(e){var t={};return e?(e.trim().split("\n").forEach((function(e){var n=e.indexOf(":"),i=e.slice(0,n).trim().toLowerCase(),r=e.slice(n+1).trim();void 0===t[i]?t[i]=r:Array.isArray(t[i])?t[i].push(r):t[i]=[t[i],r]})),t):t}(c.getAllResponseHeaders()))):a=new Error("Internal XMLHttpRequest Error"),n(a,r,r.body)}}var s,l,c=e.xhr||null;c||(c=e.cors||e.useXDR?new o.XDomainRequest:new o.XMLHttpRequest);var u,d=c.url=e.uri||e.url,h=c.method=e.method||"GET",f=e.body||e.data,p=c.headers=e.headers||{},m=!!e.sync,g=!1,v={body:void 0,headers:{},statusCode:0,method:h,url:d,rawRequest:c};if("json"in e&&!1!==e.json&&(g=!0,p.accept||p.Accept||(p.Accept="application/json"),"GET"!==h&&"HEAD"!==h&&(p["content-type"]||p["Content-Type"]||(p["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(a,0)},c.onload=a,c.onerror=r,c.onprogress=function(){},c.onabort=function(){l=!0},c.ontimeout=r,c.open(h,d,!m,e.username,e.password),m||(c.withCredentials=!!e.withCredentials),!m&&e.timeout>0&&(u=setTimeout((function(){if(!l){l=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}),e.timeout)),c.setRequestHeader)for(s in p)p.hasOwnProperty(s)&&c.setRequestHeader(s,p[s]);else if(e.headers&&!function(e){for(var t in e)if(e.hasOwnProperty(t))return!1;return!0}(e.headers))throw new Error("Headers cannot be set on an XDomainRequest object");return"responseType"in e&&(c.responseType=e.responseType),"beforeSend"in e&&"function"==typeof e.beforeSend&&e.beforeSend(c),c.send(f||null),c}e.exports=o,e.exports.default=o,o.XMLHttpRequest=i.XMLHttpRequest||function(){},o.XDomainRequest="withCredentials"in new o.XMLHttpRequest?o.XMLHttpRequest:i.XDomainRequest,function(e,t){for(var n=0;n<e.length;n++)t(e[n])}(["get","put","post","patch","head","delete"],(function(e){o["delete"===e?"del":e]=function(t,n,i){return(n=s(t,n,i)).method=e.toUpperCase(),l(n)}}))},2167:(e,t)=>{"use strict";function n(e,t){return void 0===t&&(t=Object),t&&"function"==typeof t.freeze?t.freeze(e):e}var i=n({HTML:"text/html",isHTML:function(e){return e===i.HTML},XML_APPLICATION:"application/xml",XML_TEXT:"text/xml",XML_XHTML_APPLICATION:"application/xhtml+xml",XML_SVG_IMAGE:"image/svg+xml"}),r=n({HTML:"http://www.w3.org/1999/xhtml",isHTML:function(e){return e===r.HTML},SVG:"http://www.w3.org/2000/svg",XML:"http://www.w3.org/XML/1998/namespace",XMLNS:"http://www.w3.org/2000/xmlns/"});t.freeze=n,t.MIME_TYPE=i,t.NAMESPACE=r}
vendor: 15,515 bytes, line 2
2,6129:(e,t,n)=>{var i=n(2167),r=n(1146),a=n(1045),s=n(6925),o=r.DOMImplementation,l=i.NAMESPACE,c=s.ParseError,u=s.XMLReader;function d(e){this.options=e||{locator:{}}}function h(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function p(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function m(e,t,n){return"string"==typeof e?e.substr(t,n):e.length>=t+n||t?new java.lang.String(e,t,n)+"":e}function g(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}d.prototype.parseFromString=function(e,t){var n=this.options,i=new u,r=n.domBuilder||new h,s=n.errorHandler,o=n.locator,c=n.xmlns||{},d=/\/x?html?$/.test(t),f=d?a.HTML_ENTITIES:a.XML_ENTITIES;return o&&r.setDocumentLocator(o),i.errorHandler=function(e,t,n){if(!e){if(t instanceof h)return t;e=t}var i={},r=e instanceof Function;function a(t){var a=e[t];!a&&r&&(a=2==e.length?function(n){e(t,n)}:e),i[t]=a&&function(e){a("[xmldom "+t+"]\t"+e+p(n))}||function(){}}return n=n||{},a("warning"),a("error"),a("fatalError"),i}(s,r,o),i.domBuilder=n.domBuilder||r,d&&(c[""]=l.HTML),c.xml=c.xml||l.XML,e&&"string"==typeof e?i.parse(e,c,f):i.errorHandler.error("invalid doc source"),r.doc},h.prototype={startDocument:function(){this.doc=(new o).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,a=r.createElementNS(e,n||t),s=i.length;g(this,a),this.currentElement=a,this.locator&&f(this.locator,a);for(var o=0;o<s;o++){e=i.getURI(o);var l=i.getValue(o),c=(n=i.getQName(o),r.createAttributeNS(e,n));this.locator&&f(i.getLocator(o),c),c.value=c.nodeValue=l,a.setAttributeNode(c)}},endElement:function(e,t,n){var i=this.currentElement;i.tagName;this.currentElement=i.parentNode},startPrefixMapping:function(e,t){},endPrefixMapping:function(e){},processingInstruction:function(e,t){var n=this.doc.createProcessingInstruction(e,t);this.locator&&f(this.locator,n),g(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=m.apply(this,arguments)){if(this.cdata)var i=this.doc.createCDATASection(e);else i=this.doc.createTextNode(e);this.currentElement?this.currentElement.appendChild(i):/^\s*$/.test(e)&&this.doc.appendChild(i),this.locator&&f(this.locator,i)}},skippedEntity:function(e){},endDocument:function(){this.doc.normalize()},setDocumentLocator:function(e){(this.locator=e)&&(e.lineNumber=0)},comment:function(e,t,n){e=m.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i),g(this,i)},startCDATA:function(){this.cdata=!0},endCDATA:function(){this.cdata=!1},startDTD:function(e,t,n){var i=this.doc.implementation;if(i&&i.createDocumentType){var r=i.createDocumentType(e,t,n);this.locator&&f(this.locator,r),g(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning]\t"+e,p(this.locator))},error:function(e){console.error("[xmldom error]\t"+e,p(this.locator))},fatalError:function(e){throw new c(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,(function(e){h.prototype[e]=function(){return null}})),t.DOMParser=d,r.DOMImplementation,r.XMLSerializer},1146:(e,t,n)=>{var i=n(2167).NAMESPACE;function r(e){return""!==e}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function s(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(r):[]}(e);return Object.keys(t.reduce(a,{}))}function o(e,t){for(var n in e)t[n]=e[n]}function l(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,o(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var c={},u=c.ELEMENT_NODE=1,d=c.ATTRIBUTE_NODE=2,h=c.TEXT_NODE=3,f=c.CDATA_SECTION_NODE=4,p=c.ENTITY_REFERENCE_NODE=5,m=c.ENTITY_NODE=6,g=c.PROCESSING_INSTRUCTION_NODE=7,v=c.COMMENT_NODE=8,y=c.DOCUMENT_NODE=9,b=c.DOCUMENT_TYPE_NODE=10,_=c.DOCUMENT_FRAGMENT_NODE=11,T=c.NOTATION_NODE=12,k={},w={},S=(k.INDEX_SIZE_ERR=(w[1]="Index size error",1),k.DOMSTRING_SIZE_ERR=(w[2]="DOMString size error",2),k.HIERARCHY_REQUEST_ERR=(w[3]="Hierarchy request error",3)),x=(k.WRONG_DOCUMENT_ERR=(w[4]="Wrong document",4),k.INVALID_CHARACTER_ERR=(w[5]="Invalid character",5),k.NO_DATA_ALLOWED_ERR=(w[6]="No data allowed",6),k.NO_MODIFICATION_ALLOWED_ERR=(w[7]="No modification allowed",7),k.NOT_FOUND_ERR=(w[8]="Not found",8)),C=(k.NOT_SUPPORTED_ERR=(w[9]="Not supported",9),k.INUSE_ATTRIBUTE_ERR=(w[10]="Attribute in use",10));k.INVALID_STATE_ERR=(w[11]="Invalid state",11),k.SYNTAX_ERR=(w[12]="Syntax error",12),k.INVALID_MODIFICATION_ERR=(w[13]="Invalid modification",13),k.NAMESPACE_ERR=(w[14]="Invalid namespace",14),k.INVALID_ACCESS_ERR=(w[15]="Invalid access",15);function E(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,w[e]),this.message=w[e],Error.captureStackTrace&&Error.captureStackTrace(this,E);return n.code=e,t&&(this.message=this.message+": "+t),n}function A(){}function L(e,t){this._node=e,this._refresh=t,I(this)}function I(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!=t){var n=e._refresh(e._node);ce(e,"length",n.length),o(n,e),e._inc=t}}function P(){}function O(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function D(e,t,n,r){if(r?t[O(t,r)]=n:t[t.length++]=n,e){n.ownerElement=e;var a=e.ownerDocument;a&&(r&&B(a,e,r),function(e,t,n){e&&e._inc++,n.namespaceURI===i.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(a,e,n))}}function R(e,t,n){var i=O(t,n);if(!(i>=0))throw E(x,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var a=e.ownerDocument;a&&(B(a,e,n),n.ownerElement=null)}}function M(){}function N(){}function q(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function U(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(U(e,t))return!0}while(e=e.nextSibling)}function j(){}function B(e,t,n,r){e&&e._inc++,n.namespaceURI===i.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function F(e,t,n){if(e&&e._inc){e._inc++;var i=t.childNodes;if(n)i[i.length++]=n;else{for(var r=t.firstChild,a=0;r;)i[a++]=r,r=r.nextSibling;i.length=a}}}function H(e,t){var n=t.previousSibling,i=t.nextSibling;return n?n.nextSibling=i:e.firstChild=i,i?i.previousSibling=n:e.lastChild=n,F(e.ownerDocument,e),t}function W(e,t,n){var i=t.parentNode;if(i&&i.removeChild(t),t.nodeType===_){var r=t.firstChild;if(null==r)return t;var a=t.lastChild}else r=a=t;var s=n?n.previousSibling:e.lastChild;r.previousSibling=s,a.nextSibling=n,s?s.nextSibling=r:e.firstChild=r,null==n?e.lastChild=a:n.previousSibling=a;do{r.parentNode=e}while(r!==a&&(r=r.nextSibling));return F(e.ownerDocument||e,e),t.nodeType==_&&(t.firstChild=t.lastChild=null),t}function z(){this._nsMap={}}function V(){}function $(){}function X(){}function G(){}function K(){}function Y(){}function Q(){}function J(){}function Z(){}function ee(){}function te(){}function ne(){}function ie(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,a=i.namespaceURI;if(a&&null==r&&null==(r=i.lookupPrefix(a)))var s=[{namespace:a,prefix:null}];return se(this,n,e,t,s),n.join("")}function re(e,t,n){var r=e.prefix||"",a=e.namespaceURI;if(!a)return!1;if("xml"===r&&a===i.XML||a===i.XMLNS)return!1;for(var s=n.length;s--;){var o=n[s];if(o.prefix===r)return o.namespace!==a}return!0}function ae(e,t,n){e.push(" ",t,'="',n.replace(/[<&"]/g,q),'"')}function se(e,t,n,r,a){if(a||(a=[]),r){if(!(e=r(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case u:var s=e.attributes,o=s.length,l=e.firstChild,c=e.tagName,m=c;if(!(n=i.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var T,k=0;k<s.length;k++)if("xmlns"===s.item(k).name){T=s.item(k).value;break}if(!T)for(var w=a.length-1;w>=0;w--){if(""===(S=a[w]).prefix&&S.namespace===e.namespaceURI){T=S.namespace;break}}if(T!==e.namespaceURI)for(w=a.length-1;w>=0;w--){var S;if((S=a[w]).namespace===e.namespaceURI){S.prefix&&(m=S.prefix+":"+c);break}}}t.push("<",m);for(var x=0;x<o;x++){"xmlns"==(C=s.item(x)).prefix?a.push({prefix:C.localName,namespace:C.value}):"xmlns"==C.nodeName&&a.push({prefix:"",namespace:C.value})}for(x=0;x<o;x++){var C,E,A;if(re(C=s.item(x),0,a))ae(t,(E=C.prefix||"")?"xmlns:"+E:"xmlns",A=C.namespaceURI),a.push({prefix:E,namespace:A});se(C,t,n,r,a)}if(c===m&&re(e,0,a))ae(t,(E=e.prefix||"")?"xmlns:"+E:"xmlns",A=e.namespaceURI),a.push({prefix:E,namespace:A});if(l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(c)){if(t.push(">"),n&&/^script$/i.test(c))for(;l;)l.data?t.push(l.data):se(l,t,n,r,a.slice()),l=l.nextSibling;else for(;l;)se(l,t,n,r,a.slice()),l=l.nextSibling;t.push("</",m,">")}else t.push("/>");return;case y:case _:for(l=e.firstChild;l;)se(l,t,n,r,a.slice()),l=l.nextSibling;return;case d:return ae(t,e.name,e.value);case h:return t.push(e.data.replace(/[<&]/g,q).replace(/]]>/g,"]]>"));case f:return t.push("<![CDATA[",e.data,"]]>");case v:return t.push("\x3c!--",e.data,"--\x3e");case b:var L=e.publicId,I=e.systemId;if(t.push("<!DOCTYPE ",e.name),L)t.push(" PUBLIC ",L),I&&"."!=I&&t.push(" ",I),t.push(">");else if(I&&"."!=I)t.push(" SYSTEM ",I,">");else{var P=e.internalSubset;P&&t.push(" [",P,"]"),t.push(">")}return;case g:return t.push("<?",e.target," ",e.data,"?>");case p:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function oe(e,t,n){var i;switch(t.nodeType){case u:(i=t.cloneNode(!1)).ownerDocument=e;case _:break;case d:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(oe(e,r,n)),r=r.nextSibling;return i}function le(e,t,n){var i=new t.constructor;for(var r in t){var a=t[r];"object"!=typeof a&&a!=i[r]&&(i[r]=a)}switch(t.childNodes&&(i.childNodes=new A),i.ownerDocument=e,i.nodeType){case u:var s=t.attributes,o=i.attributes=new P,l=s.length;o._ownerElement=i;for(var c=0;c<l;c++)i.setAttributeNode(le(e,s.item(c),!0));break;case d:n=!0}if(n)for(var h=t.firstChild;h;)i.appendChild(le(e,h,n)),h=h.nextSibling;return i}function ce(e,t,n){e[t]=n}E.prototype=Error.prototype,o(k,E),A.prototype={length:0,item:function(e){return this[e]||null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)se(this[i],n,e,t);return n.join("")}},L.prototype.item=function(e){return I(this),this[e]},l(L,A),P.prototype={length:0,item:A.prototype.item,getNamedItem:function(e){for(var t=this.length;t--;){var n=this[t];if(n.nodeName==e)return n}},setNamedItem:function(e){var t=e.ownerElement;if(t&&t!=this._ownerElement)throw new E(C);var n=this.getNamedItem(e.nodeName);return D(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new E(C);return t=this.getNamedItemNS(e.namespaceURI,e.localName),D(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return R(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return R(this._ownerElement,this,n),n},getNamedItemNS:function(e,t){for(var n=this.length;n--;){var i=this[n];if(i.localName==t&&i.namespaceURI==e)return i}return null}},M.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new j;if(i.implementation=this,i.childNodes=new A,i.doctype=n||null,n&&i.appendChild(n),t){var r=i.createElementNS(e,t);i.appendChild(r)}return i},createDocumentType:function(e,t,n){var i=new Y;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},N.prototype={firstChild:null,lastChild:null,previousSibling:null,nextSibling:null,attributes:null,parentNode:null,childNodes:null,ownerDocument:null,nodeValue:null,namespaceURI:null,prefix:null,localName:null,insertBefore:function(e,t){return W(this,e,t)},replaceChild:function(e,t){this.insertBefore(e,t),t&&this.removeChild(t)},removeChild:function(e){return H(this,e)},appendChild:function(e){return this.insertBefore(e,null)},hasChildNodes:function(){return null!=this.firstChild},cloneNode:function(e){return le(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==h&&e.nodeType==h?(this.removeChild(t),e.appendData(t.data)):(e.normalize(),e=t)}},isSupported:function(e,t){return this.ownerDocument.implementation.hasFeature(e,t)},hasAttributes:function(){return this.attributes.length>0},lookupPrefix:function(e){for(var t=this;t;){var n=t._nsMap;if(n)for(var i in n)if(n[i]==e)return i;t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&e in n)return n[e];t=t.nodeType==d?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},o(c,N),o(c,N.prototype),j.prototype={nodeName:"#document",nodeType:y,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==_){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return null==this.documentElement&&e.nodeType==u&&(this.documentElement=e),W(this,e,t),e.ownerDocument=this,e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},importNode:function(e,t){return oe(this,e,t)},getElementById:function(e){var t=null;return U(this.documentElement,(function(n){if(n.nodeType==u&&n.getAttribute("id")==e)return t=n,!0})),t},getElementsByClassName:function(e){var t=s(e);return new L(this,(function(n){var i=[];return t.length>0&&U(n.documentElement,(function(r){if(r!==n&&r.nodeType===u){var a=r.getAttribute("class");if(a){var o=e===a;if(!o){var l=s(a);o=t.every((c=l,function(e){return c&&-1!==c.indexOf(e)}))}o&&i.push(r)}}var c})),i}))},createElement:function(e){var t=new z;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new A,(t.attributes=new P)._ownerElement=t,t},createDocumentFragment:function(){var e=new ee;return e.ownerDocument=this,e.childNodes=new A,e},createTextNode:function(e){var t=new X;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new G;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new K;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new te;return n.ownerDocument=this,n.tagName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new V;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new Z;return t.ownerDocument=this,t.nodeName=e,t},createElementNS:function(e,t){var n=new z,i=t.split(":"),r=n.attributes=new P;return n.childNodes=new A,n.ownerDocument=this,n.nodeName=t,n.tagName=t,n.namespaceURI=e,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,r._ownerElement=n,n},createAttributeNS:function(e,t){var n=new V,i=t.split(":");return n.ownerDocument=this,n.nodeName=t,n.name=t,n.namespaceURI=e,n.specified=!0,2==i.length?(n.prefix=i[0],n.localName=i[1]):n.localName=t,n}},l(j,N),z.prototype={nodeType:u,hasAttribute:function(e){return null!=this.getAttributeNode(e)},getAttribute:function(e){var t=this.getAttributeNode(e);return t&&t.value||""},getAttributeNode:function(e){return this.attributes.getNamedItem(e)},setAttribute:function(e,t){var n=this.ownerDocument.createAttribute(e);n.value=n.nodeValue=""+t,this.setAttributeNode(n)},removeAttribute:function(e){var t=this.getAttributeNode(e);t&&this.removeAttributeNode(t)}
vendor: 4,355 bytes, line 2
2,appendChild:function(e){return e.nodeType===_?this.insertBefore(e,null):function(e,t){var n=t.parentNode;if(n){var i=e.lastChild;n.removeChild(t),i=e.lastChild}return i=e.lastChild,t.parentNode=e,t.previousSibling=i,t.nextSibling=null,i?i.nextSibling=t:e.firstChild=t,e.lastChild=t,F(e.ownerDocument,e,t),t}(this,e)},setAttributeNode:function(e){return this.attributes.setNamedItem(e)},setAttributeNodeNS:function(e){return this.attributes.setNamedItemNS(e)},removeAttributeNode:function(e){return this.attributes.removeNamedItem(e.nodeName)},removeAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);n&&this.removeAttributeNode(n)},hasAttributeNS:function(e,t){return null!=this.getAttributeNodeNS(e,t)},getAttributeNS:function(e,t){var n=this.getAttributeNodeNS(e,t);return n&&n.value||""},setAttributeNS:function(e,t,n){var i=this.ownerDocument.createAttributeNS(e,t);i.value=i.nodeValue=""+n,this.setAttributeNode(i)},getAttributeNodeNS:function(e,t){return this.attributes.getNamedItemNS(e,t)},getElementsByTagName:function(e){return new L(this,(function(t){var n=[];return U(t,(function(i){i===t||i.nodeType!=u||"*"!==e&&i.tagName!=e||n.push(i)})),n}))},getElementsByTagNameNS:function(e,t){return new L(this,(function(n){var i=[];return U(n,(function(r){r===n||r.nodeType!==u||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)})),i}))}},j.prototype.getElementsByTagName=z.prototype.getElementsByTagName,j.prototype.getElementsByTagNameNS=z.prototype.getElementsByTagNameNS,l(z,N),V.prototype.nodeType=d,l(V,N),$.prototype={data:"",substringData:function(e,t){return this.data.substring(e,e+t)},appendData:function(e){e=this.data+e,this.nodeValue=this.data=e,this.length=e.length},insertData:function(e,t){this.replaceData(e,0,t)},appendChild:function(e){throw new Error(w[S])},deleteData:function(e,t){this.replaceData(e,t,"")},replaceData:function(e,t,n){n=this.data.substring(0,e)+n+this.data.substring(e+t),this.nodeValue=this.data=n,this.length=n.length}},l($,N),X.prototype={nodeName:"#text",nodeType:h,splitText:function(e){var t=this.data,n=t.substring(e);t=t.substring(0,e),this.data=this.nodeValue=t,this.length=t.length;var i=this.ownerDocument.createTextNode(n);return this.parentNode&&this.parentNode.insertBefore(i,this.nextSibling),i}},l(X,$),G.prototype={nodeName:"#comment",nodeType:v},l(G,$),K.prototype={nodeName:"#cdata-section",nodeType:f},l(K,$),Y.prototype.nodeType=b,l(Y,N),Q.prototype.nodeType=T,l(Q,N),J.prototype.nodeType=m,l(J,N),Z.prototype.nodeType=p,l(Z,N),ee.prototype.nodeName="#document-fragment",ee.prototype.nodeType=_,l(ee,N),te.prototype.nodeType=g,l(te,N),ne.prototype.serializeToString=function(e,t,n){return ie.call(e,t,n)},N.prototype.toString=ie;try{if(Object.defineProperty){function ue(e){switch(e.nodeType){case u:case _:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(ue(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(L.prototype,"length",{get:function(){return I(this),this.$$length}}),Object.defineProperty(N.prototype,"textContent",{get:function(){return ue(this)},set:function(e){switch(this.nodeType){case u:case _:for(;this.firstChild;)this.removeChild(this.firstChild);(e||String(e))&&this.appendChild(this.ownerDocument.createTextNode(e));break;default:this.data=e,this.value=e,this.nodeValue=e}}}),ce=function(e,t,n){e["$$"+t]=n}}}catch(de){}t.DocumentType=Y,t.DOMException=E,t.DOMImplementation=M,t.Element=z,t.Node=N,t.NodeList=A,t.XMLSerializer=ne},1045:(e,t,n)=>{var i=n(2167).freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({lt:"<",gt:">",amp:"&",quot:'"',apos:"'",Agrave:"Ã",Aacute:"Ã",Acirc:"Ã",Atilde:"Ã",Auml:"Ã",Aring:"Ã
",AElig:"Ã",Ccedil:"Ã",Egrave:"Ã",Eacute:"Ã",Ecirc:"Ã",Euml:"Ã",Igrave:"Ã",Iacute:"Ã",Icirc:"Ã",Iuml:"Ã",ETH:"Ã",Ntilde:"Ã",Ograve:"Ã",Oacute:"Ã",Ocirc:"Ã",Otilde:"Ã",Ouml:"Ã",Oslash:"Ã",Ugrave:"Ã",Uacute:"Ã",Ucirc:"Ã",Uuml:"Ã",Yacute:"Ã",THORN:"Ã",szlig:"Ã",agrave:"à ",aacute:"á",acirc:"â",atilde:"ã",auml:"ä",aring:"Ã¥",aelig:"æ",ccedil:"ç",egrave:"è",eacute:"é",ecirc:"ê",euml:"ë",igrave:"ì",iacute:"Ã",icirc:"î",iuml:"ï",eth:"ð",ntilde:"ñ",ograve:"ò",oacute:"ó",ocirc:"ô",otilde:"õ",ouml:"ö",oslash:"ø",ugrave:"ù",uacute:"ú",ucirc:"û",uuml:"ü",yacute:"ý",thorn:"þ",yuml:"ÿ",
vendor: 6,175 bytes, line 2
2nbsp:" ",iexcl:"¡",cent:"¢",pound:"£",curren:"¤",yen:"Â¥",brvbar:"¦",sect:"§",uml:"¨",copy:"©",ordf:"ª",laquo:"«",not:"¬",shy:"ÂÂ",reg:"®",macr:"¯",deg:"°",plusmn:"±",sup2:"²",sup3:"³",acute:"´",micro:"µ",para:"¶",middot:"·",cedil:"¸",sup1:"¹",ordm:"º",raquo:"»",frac14:"¼",frac12:"½",frac34:"¾",iquest:"¿",times:"Ã",divide:"÷",forall:"â",part:"â",exist:"â",empty:"â
",nabla:"â",isin:"â",notin:"â",ni:"â",prod:"â",sum:"â",minus:"â",lowast:"â",radic:"â",prop:"â",infin:"â",ang:"â ",and:"â§",or:"â¨",cap:"â©",cup:"âª",int:"â«",there4:"â´",sim:"â¼",cong:"â
",asymp:"â",ne:"â ",equiv:"â¡",le:"â¤",ge:"â¥",sub:"â",sup:"â",nsub:"â",sube:"â",supe:"â",oplus:"â",otimes:"â",perp:"â¥",sdot:"â
",Alpha:"Î",Beta:"Î",Gamma:"Î",Delta:"Î",Epsilon:"Î",Zeta:"Î",Eta:"Î",Theta:"Î",Iota:"Î",Kappa:"Î",Lambda:"Î",Mu:"Î",Nu:"Î",Xi:"Î",Omicron:"Î",Pi:"Î ",Rho:"Ρ",Sigma:"Σ",Tau:"Τ",Upsilon:"Î¥",Phi:"Φ",Chi:"Χ",Psi:"Ψ",Omega:"Ω",alpha:"α",beta:"β",gamma:"γ",delta:"δ",epsilon:"ε",zeta:"ζ",eta:"η",theta:"θ",iota:"ι",kappa:"κ",lambda:"λ",mu:"μ",nu:"ν",xi:"ξ",omicron:"ο",pi:"Ï",rho:"Ï",sigmaf:"Ï",sigma:"Ï",tau:"Ï",upsilon:"Ï
",phi:"Ï",chi:"Ï",psi:"Ï",omega:"Ï",thetasym:"Ï",upsih:"Ï",piv:"Ï",OElig:"Å",oelig:"Å",Scaron:"Å ",scaron:"Å¡",Yuml:"Ÿ",fnof:"Æ",circ:"Ë",tilde:"Ë",ensp:"â",emsp:"â",thinsp:"â",zwnj:"â",zwj:"â",lrm:"â",rlm:"â",ndash:"â",mdash:"â",lsquo:"â",rsquo:"â",sbquo:"â",ldquo:"â",rdquo:"â",bdquo:"â",dagger:"â ",Dagger:"â¡",bull:"â¢",hellip:"â¦",permil:"â°",prime:"â²",Prime:"â³",lsaquo:"â¹",rsaquo:"âº",oline:"â¾",euro:"â¬",trade:"â¢",larr:"â",uarr:"â",rarr:"â",darr:"â",harr:"â",crarr:"âµ",lceil:"â",rceil:"â",lfloor:"â",rfloor:"â",loz:"â",spades:"â ",clubs:"â£",hearts:"â¥",diams:"â¦"}),t.entityMap=t.HTML_ENTITIES},3969:(e,t,n)=>{var i=n(1146);i.DOMImplementation,i.XMLSerializer,t.DOMParser=n(6129).DOMParser},6925:(e,t,n)=>{var i=n(2167).NAMESPACE,r=/[A-Z_a-z\xC0-\xD6\xD8-\xF6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD]/,a=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),s=new RegExp("^"+r.source+a.source+"*(?::"+r.source+a.source+"*)?$");function o(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,o)}function l(){}function c(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function u(e,t,n,r,a,s){function o(e,t,i){n.attributeNames.hasOwnProperty(e)&&s.fatalError("Attribute "+e+" redefined"),n.addValue(e,t,i)}for(var l,c=++t,u=0;;){var d=e.charAt(c);switch(d){case"=":if(1===u)l=e.slice(t,c),u=3;else{if(2!==u)throw new Error("attribute equal must after attrName");u=3}break;case"'":case'"':if(3===u||1===u){if(1===u&&(s.warning('attribute value must after "="'),l=e.slice(t,c)),t=c+1,!((c=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");o(l,h=e.slice(t,c).replace(/&#?\w+;/g,a),t-1),u=5}else{if(4!=u)throw new Error('attribute value must after "="');o(l,h=e.slice(t,c).replace(/&#?\w+;/g,a),t),s.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=c+1,u=5}break;case"/":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:u=7,n.closed=!0;case 4:case 1:case 2:break;default:throw new Error("attribute invalid close char('/')")}break;case"":return s.error("unexpected end of input"),0==u&&n.setTagName(e.slice(t,c)),c;case">":switch(u){case 0:n.setTagName(e.slice(t,c));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,c)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===u&&(h=l),4==u?(s.warning('attribute "'+h+'" missed quot(")!'),o(l,h.replace(/&#?\w+;/g,a),t)):(i.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),o(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return c;case"Â":d=" ";default:if(d<=" ")switch(u){case 0:n.setTagName(e.slice(t,c)),u=6;break;case 1:l=e.slice(t,c),u=2;break;case 4:var h=e.slice(t,c).replace(/&#?\w+;/g,a);s.warning('attribute "'+h+'" missed quot(")!!'),o(l,h,t);case 5:u=6}else switch(u){case 2:n.tagName;i.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||s.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),o(l,l,t),t=c,u=1;break;case 5:s.warning('attribute space is required"'+l+'"!!');case 6:u=1,t=c;break;case 3:u=4,t=c;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}c++}}function d(e,t,n){for(var r=e.tagName,a=null,s=e.length;s--;){var o=e[s],l=o.qName,c=o.value;if((f=l.indexOf(":"))>0)var u=o.prefix=l.slice(0,f),d=l.slice(f+1),h="xmlns"===u&&d;else d=l,u=null,h="xmlns"===l&&"";o.localName=d,!1!==h&&(null==a&&(a={},p(n,n={})),n[h]=a[h]=c,o.uri=i.XMLNS,t.startPrefixMapping(h,c))}for(s=e.length;s--;){(u=(o=e[s]).prefix)&&("xml"===u&&(o.uri=i.XML),"xmlns"!==u&&(o.uri=n[u||""]))}var f;(f=r.indexOf(":"))>0?(u=e.prefix=r.slice(0,f),d=e.localName=r.slice(f+1)):(u=null,d=e.localName=r);var m=e.uri=n[u||""];if(t.startElement(m,d,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=a,!0;if(t.endElement(m,d,r),a)for(u in a)t.endPrefixMapping(u)}function h(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var a=e.indexOf("</"+n+">",t),s=e.substring(t+1,a);if(/[&<]/.test(s))return/^script$/i.test(n)?(r.characters(s,0,s.length),a):(s=s.replace(/&#?\w+;/g,i),r.characters(s,0,s.length),a)}return t+1}function f(e,t,n,i){var r=i[n];return null==r&&((r=e.lastIndexOf("</"+n+">"))<t&&(r=e.lastIndexOf("</"+n)),i[n]=r),r<t}function p(e,t){for(var n in e)t[n]=e[n]}function m(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("--\x3e",t+4))>t?(n.comment(e,t+4,r-t-4),r+3):(i.error("Unclosed comment"),-1):-1;if("CDATA["==e.substr(t+3,6)){var r=e.indexOf("]]>",t+9);return n.startCDATA(),n.characters(e,t+9,r-t-9),n.endCDATA(),r+3}var a=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;r.lastIndex=t,r.exec(e);for(;n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),s=a.length;if(s>
21&&/!doctype/i.test(a[0][0])){var o=a[1][0],l=!1,c=!1;s>3&&(/^public$/i.test(a[2][0])?(l=a[3][0],c=s>4&&a[4][0]):/^system$/i.test(a[2][0])&&(c=a[3][0]));var u=a[s-1];return n.startDTD(o,l,c),n.endDTD(),u.index+u[0].length}return-1}function g(e,t,n){var i=e.indexOf("?>",t);if(i){var r=e.substring(t,i).match(/^<\?(\S*)\s*([\s\S]*?)\s*$/);if(r){r[0].length;return n.processingInstruction(r[1],r[2]),i+2}return-1}return-1}function v(){this.attributeNames={}}o.prototype=new Error,o.prototype.name=o.name,l.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),p(t,t={}),function(e,t,n,r,a){function s(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}function l(e){var t=e.slice(1,-1);return t in n?n[t]:"#"===t.charAt(0)?s(parseInt(t.substr(1).replace("x","0x"))):(a.error("entity not found:"+e),e)}function p(t){if(t>x){var n=e.substring(x,t).replace(/&#?\w+;/g,l);k&&y(x),r.characters(n,0,t-x),x=t}}function y(t,n){for(;t>=_&&(n=T.exec(e));)b=n.index,_=b+n[0].length,k.lineNumber++;k.columnNumber=t-b+1}var b=0,_=0,T=/.*(?:\r\n?|\n)|.*$/g,k=r.locator,w=[{currentNSMap:t}],S={},x=0;for(;;){try{var C=e.indexOf("<",x);if(C<0){if(!e.substr(x).match(/^\s*$/)){var E=r.doc,A=E.createTextNode(e.substr(x));E.appendChild(A),r.currentElement=A}return}switch(C>x&&p(C),e.charAt(C+1)){case"/":var L=e.indexOf(">",C+3),I=e.substring(C+2,L).replace(/[ \t\n\r]+$/g,""),P=w.pop();L<0?(I=e.substring(C+2).replace(/[\s<].*/,""),a.error("end tag name: "+I+" is not complete:"+P.tagName),L=C+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),a.error("end tag name: "+I+" maybe not complete"),L=C+1+I.length);var O=P.localNSMap,D=P.tagName==I;if(D||P.tagName&&P.tagName.toLowerCase()==I.toLowerCase()){if(r.endElement(P.uri,P.localName,I),O)for(var R in O)r.endPrefixMapping(R);D||a.fatalError("end tag name: "+I+" is not match the current start tagName:"+P.tagName)}else w.push(P);L++;break;case"?":k&&y(C),L=g(e,C,r);break;case"!":k&&y(C),L=m(e,C,r,a);break;default:k&&y(C);var M=new v,N=w[w.length-1].currentNSMap,q=(L=u(e,C,M,N,l,a),M.length);if(!M.closed&&f(e,L,M.tagName,S)&&(M.closed=!0,n.nbsp||a.warning("unclosed xml attribute")),k&&q){for(var U=c(k,{}),j=0;j<q;j++){var B=M[j];y(B.offset),B.locator=c(k,{})}r.locator=U,d(M,r,N)&&w.push(M),r.locator=k}else d(M,r,N)&&w.push(M);i.isHTML(M.uri)&&!M.closed?L=h(e,L,M.tagName,l,r):L++}}catch(e){if(e instanceof o)throw e;a.error("element parse error: "+e),L=-1}L>x?x=L:p(Math.max(C,x)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},v.prototype={setTagName:function(e){if(!s.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!s.test(e))throw new Error("invalid attribute:"+e);this.attributeNames[e]=this.length,this[this.length++]={qName:e,value:t,offset:n}},length:0,getLocalName:function(e){return this[e].localName},getLocator:function(e){return this[e].locator},getQName:function(e){return this[e].qName},getURI:function(e){return this[e].uri},getValue:function(e){return this[e].value}},t.XMLReader=l,t.ParseError=o},9669:(e,t,n)=>{e.exports=n(1609)},5448:(e,t,n)=>{"use strict";var i=n(4867),r=n(6026),a=n(4372),s=n(5327),o=n(4097),l=n(4109),c=n(7985),u=n(5061);e.exports=function(e){return new Promise((function(t,n){var d=e.data,h=e.headers,f=e.responseType;i.isFormData(d)&&delete h["Content-Type"];var p=new XMLHttpRequest;if(e.auth){var m=e.auth.username||"",g=e.auth.password?unescape(encodeURIComponent(e.auth.password)):"";h.Authorization="Basic "+btoa(m+":"+g)}var v=o(e.baseURL,e.url);function y(){if(p){var i="getAllResponseHeaders"in p?l(p.getAllResponseHeaders()):null,a={data:f&&"text"!==f&&"json"!==f?p.response:p.responseText,status:p.status,statusText:p.statusText,headers:i,config:e,request:p};r(t,n,a),p=null}}if(p.open(e.method.toUpperCase(),s(v,e.params,e.paramsSerializer),!0),p.timeout=e.timeout,"onloadend"in p?p.onloadend=y:p.onreadystatechange=function(){p&&4===p.readyState&&(0!==p.status||p.responseURL&&0===p.responseURL.indexOf("file:"))&&setTimeout(y)},p.onabort=function(){p&&(n(u("Request aborted",e,"ECONNABORTED",p)),p=null)},p.onerror=function(){n(u("Network Error",e,null,p)),p=null},p.ontimeout=function(){var t="timeout of "+e.timeout+"ms exceeded";e.timeoutErrorMessage&&(t=e.timeoutErrorMessage),n(u(t,e,e.transitional&&e.transitional.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",p)),p=null},i.isStandardBrowserEnv()){var b=(e.withCredentials||c(v))&&e.xsrfCookieName?a.read(e.xsrfCookieName):void 0;b&&(h[e.xsrfHeaderName]=b)}
2"setRequestHeader"in p&&i.forEach(h,(function(e,t){void 0===d&&"content-type"===t.toLowerCase()?delete h[t]:p.setRequestHeader(t,e)})),i.isUndefined(e.withCredentials)||(p.withCredentials=!!e.withCredentials),f&&"json"!==f&&(p.responseType=e.responseType),"function"==typeof e.onDownloadProgress&&p.addEventListener("progress",e.onDownloadProgress),"function"==typeof e.onUploadProgress&&p.upload&&p.upload.addEventListener("progress",e.onUploadProgress),e.cancelToken&&e.cancelToken.promise.then((function(e){p&&(p.abort(),n(e),p=null)})),d||(d=null),p.send(d)}))}},1609:(e,t,n)=>{"use strict";var i=n(4867),r=n(1849),a=n(321),s=n(7185);function o(e){var t=new a(e),n=r(a.prototype.request,t);return i.extend(n,a.prototype,t),i.extend(n,t),n}var l=o(n(5655));l.Axios=a,l.create=function(e){return o(s(l.defaults,e))},l.Cancel=n(5263),l.CancelToken=n(4972),l.isCancel=n(6502),l.all=function(e){return Promise.all(e)},l.spread=n(8713),l.isAxiosError=n(6268),e.exports=l,e.exports.default=l},5263:e=>{"use strict";function t(e){this.message=e}t.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},t.prototype.__CANCEL__=!0,e.exports=t},4972:(e,t,n)=>{"use strict";var i=n(5263);function r(e){if("function"!=typeof e)throw new TypeError("executor must be a function.");var t;this.promise=new Promise((function(e){t=e}));var n=this;e((function(e){n.reason||(n.reason=new i(e),t(n.reason))}))}r.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},r.source=function(){var e;return{token:new r((function(t){e=t})),cancel:e}},e.exports=r},6502:e=>{"use strict";e.exports=function(e){return!(!e||!e.__CANCEL__)}},321:(e,t,n)=>{"use strict";var i=n(4867),r=n(5327),a=n(782),s=n(3572),o=n(7185),l=n(4875),c=l.validators;function u(e){this.defaults=e,this.interceptors={request:new a,response:new a}}u.prototype.request=function(e){"string"==typeof e?(e=arguments[1]||{}).url=arguments[0]:e=e||{},(e=o(this.defaults,e)).method?e.method=e.method.toLowerCase():this.defaults.method?e.method=this.defaults.method.toLowerCase():e.method="get";var t=e.transitional;void 0!==t&&l.assertOptions(t,{silentJSONParsing:c.transitional(c.boolean,"1.0.0"),forcedJSONParsing:c.transitional(c.boolean,"1.0.0"),clarifyTimeoutError:c.transitional(c.boolean,"1.0.0")},!1);var n=[],i=!0;this.interceptors.request.forEach((function(t){"function"==typeof t.runWhen&&!1===t.runWhen(e)||(i=i&&t.synchronous,n.unshift(t.fulfilled,t.rejected))}));var r,a=[];if(this.interceptors.response.forEach((function(e){a.push(e.fulfilled,e.rejected)})),!i){var u=[s,void 0];for(Array.prototype.unshift.apply(u,n),u=u.concat(a),r=Promise.resolve(e);u.length;)r=r.then(u.shift(),u.shift());return r}for(var d=e;n.length;){var h=n.shift(),f=n.shift();try{d=h(d)}catch(e){f(e);break}}try{r=s(d)}catch(e){return Promise.reject(e)}for(;a.length;)r=r.then(a.shift(),a.shift());return r},u.prototype.getUri=function(e){return e=o(this.defaults,e),r(e.url,e.params,e.paramsSerializer).replace(/^\?/,"")}
vendor: 5,645 bytes, line 2
2,i.forEach(["delete","get","head","options"],(function(e){u.prototype[e]=function(t,n){return this.request(o(n||{},{method:e,url:t,data:(n||{}).data}))}})),i.forEach(["post","put","patch"],(function(e){u.prototype[e]=function(t,n,i){return this.request(o(i||{},{method:e,url:t,data:n}))}})),e.exports=u},782:(e,t,n)=>{"use strict";var i=n(4867);function r(){this.handlers=[]}r.prototype.use=function(e,t,n){return this.handlers.push({fulfilled:e,rejected:t,synchronous:!!n&&n.synchronous,runWhen:n?n.runWhen:null}),this.handlers.length-1},r.prototype.eject=function(e){this.handlers[e]&&(this.handlers[e]=null)},r.prototype.forEach=function(e){i.forEach(this.handlers,(function(t){null!==t&&e(t)}))},e.exports=r},4097:(e,t,n)=>{"use strict";var i=n(1793),r=n(7303);e.exports=function(e,t){return e&&!i(t)?r(e,t):t}},5061:(e,t,n)=>{"use strict";var i=n(481);e.exports=function(e,t,n,r,a){var s=new Error(e);return i(s,t,n,r,a)}},3572:(e,t,n)=>{"use strict";var i=n(4867),r=n(8527),a=n(6502),s=n(5655);function o(e){e.cancelToken&&e.cancelToken.throwIfRequested()}e.exports=function(e){return o(e),e.headers=e.headers||{},e.data=r.call(e,e.data,e.headers,e.transformRequest),e.headers=i.merge(e.headers.common||{},e.headers[e.method]||{},e.headers),i.forEach(["delete","get","head","post","put","patch","common"],(function(t){delete e.headers[t]})),(e.adapter||s.adapter)(e).then((function(t){return o(e),t.data=r.call(e,t.data,t.headers,e.transformResponse),t}),(function(t){return a(t)||(o(e),t&&t.response&&(t.response.data=r.call(e,t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)}))}},481:e=>{"use strict";e.exports=function(e,t,n,i,r){return e.config=t,n&&(e.code=n),e.request=i,e.response=r,e.isAxiosError=!0,e.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code}},e}},7185:(e,t,n)=>{"use strict";var i=n(4867);e.exports=function(e,t){t=t||{};var n={},r=["url","method","data"],a=["headers","auth","proxy","params"],s=["baseURL","transformRequest","transformResponse","paramsSerializer","timeout","timeoutMessage","withCredentials","adapter","responseType","xsrfCookieName","xsrfHeaderName","onUploadProgress","onDownloadProgress","decompress","maxContentLength","maxBodyLength","maxRedirects","transport","httpAgent","httpsAgent","cancelToken","socketPath","responseEncoding"],o=["validateStatus"];function l(e,t){return i.isPlainObject(e)&&i.isPlainObject(t)?i.merge(e,t):i.isPlainObject(t)?i.merge({},t):i.isArray(t)?t.slice():t}function c(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(e[r],t[r])}i.forEach(r,(function(e){i.isUndefined(t[e])||(n[e]=l(void 0,t[e]))})),i.forEach(a,c),i.forEach(s,(function(r){i.isUndefined(t[r])?i.isUndefined(e[r])||(n[r]=l(void 0,e[r])):n[r]=l(void 0,t[r])})),i.forEach(o,(function(i){i in t?n[i]=l(e[i],t[i]):i in e&&(n[i]=l(void 0,e[i]))}));var u=r.concat(a).concat(s).concat(o),d=Object.keys(e).concat(Object.keys(t)).filter((function(e){return-1===u.indexOf(e)}));return i.forEach(d,c),n}},6026:(e,t,n)=>{"use strict";var i=n(5061);e.exports=function(e,t,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?t(i("Request failed with status code "+n.status,n.config,null,n.request,n)):e(n)}},8527:(e,t,n)=>{"use strict";var i=n(4867),r=n(5655);e.exports=function(e,t,n){var a=this||r;return i.forEach(n,(function(n){e=n.call(a,e,t)})),e}},5655:(e,t,n)=>{"use strict";var i=n(4155),r=n(4867),a=n(6016),s=n(481),o={"Content-Type":"application/x-www-form-urlencoded"};function l(e,t){!r.isUndefined(e)&&r.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}var c,u={transitional:{silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},adapter:(("undefined"!=typeof XMLHttpRequest||void 0!==i&&"[object process]"===Object.prototype.toString.call(i))&&(c=n(5448)),c),transformRequest:[function(e,t){return a(t,"Accept"),a(t,"Content-Type"),r.isFormData(e)||r.isArrayBuffer(e)||r.isBuffer(e)||r.isStream(e)||r.isFile(e)||r.isBlob(e)?e:r.isArrayBufferView(e)?e.buffer:r.isURLSearchParams(e)?(l(t,"application/x-www-form-urlencoded;charset=utf-8"),e.toString()):r.isObject(e)||t&&"application/json"===t["Content-Type"]?(l(t,"application/json"),function(e,t,n){if(r.isString(e))try{return(t||JSON.parse)(e),r.trim(e)}catch(e){if("SyntaxError"!==e.name)throw e}return(n||JSON.stringify)(e)}(e)):e}],transformResponse:[function(e){var t=this.transitional,n=t&&t.silentJSONParsing,i=t&&t.forcedJSONParsing,a=!n&&"json"===this.responseType;if(a||i&&r.isString(e)&&e.length)try{return JSON.parse(e)}catch(e){if(a){if("SyntaxError"===e.name)throw s(e,this,"E_JSON_PARSE");throw e}}return e}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(e){return e>=200&&e<300}};u.headers={common:{Accept:"application/json, text/plain, */*"}},r.forEach(["delete","get","head"],(function(e){u.headers[e]={}})),r.forEach(["post","put","patch"],(function(e){u.headers[e]=r.merge(o)})),e.exports=u},1849:e=>{"use strict";e.exports=function(e,t){return function(){for(var n=new Array(arguments.length),i=0;i<n.length;i++)n[i]=arguments[i];return e.apply(t,n)}}},5327:(e,t,n)=>{"use strict";var i=n(4867);function r(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}e.exports=function(e,t,n){if(!t)return e;var a;if(n)a=n(t);else if(i.isURLSearchParams(t))a=t.toString();else{var s=[];
2i.forEach(t,(function(e,t){null!=e&&(i.isArray(e)?t+="[]":e=[e],i.forEach(e,(function(e){i.isDate(e)?e=e.toISOString():i.isObject(e)&&(e=JSON.stringify(e)),s.push(r(t)+"="+r(e))})))})),a=s.join("&")}if(a){var o=e.indexOf("#");-1!==o&&(e=e.slice(0,o)),e+=(-1===e.indexOf("?")?"?":"&")+a}return e}},7303:e=>{"use strict";e.exports=function(e,t){return t?e.replace(/\/+$/,"")+"/"+t.replace(/^\/+/,""):e}},4372:(e,t,n)=>{"use strict";var i=n(4867);e.exports=i.isStandardBrowserEnv()?{write:function(e,t,n,r,a,s){var o=[];o.push(e+"="+encodeURIComponent(t)),i.isNumber(n)&&o.push("expires="+new Date(n).toGMTString()),i.isString(r)&&o.push("path="+r),i.isString(a)&&o.push("domain="+a),!0===s&&o.push("secure"),document.cookie=o.join("; ")},read:function(e){var t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove:function(e){this.write(e,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},1793:e=>{"use strict";e.exports=function(e){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(e)}},6268:e=>{"use strict";e.exports=function(e){return"object"==typeof e&&!0===e.isAxiosError}},7985:(e,t,n)=>{"use strict";var i=n(4867);e.exports=i.isStandardBrowserEnv()?function(){var e,t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a");function r(e){var i=e;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:"/"===n.pathname.charAt(0)?n.pathname:"/"+n.pathname}}return e=r(window.location.href),function(t){var n=i.isString(t)?r(t):t;return n.protocol===e.protocol&&n.host===e.host}}():function(){return!0}},6016:(e,t,n)=>{"use strict";var i=n(4867);e.exports=function(e,t){i.forEach(e,(function(n,i){i!==t&&i.toUpperCase()===t.toUpperCase()&&(e[t]=n,delete e[i])}))}},4109:(e,t,n)=>{"use strict";var i=n(4867),r=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];e.exports=function(e){var t,n,a,s={};return e?(i.forEach(e.split("\n"),(function(e){if(a=e.indexOf(":"),t=i.trim(e.substr(0,a)).toLowerCase(),n=i.trim(e.substr(a+1)),t){if(s[t]&&r.indexOf(t)>=0)return;s[t]="set-cookie"===t?(s[t]?s[t]:[]).concat([n]):s[t]?s[t]+", "+n:n}})),s):s}},8713:e=>{"use strict";e.exports=function(e){return function(t){return e.apply(null,t)}}},4875:(e,t,n)=>{"use strict";var i=n(8593),r={};["object","boolean","number","function","string","symbol"].forEach((function(e,t){r[e]=function(n){return typeof n===e||"a"+(t<1?"n ":" ")+e}}));var a={},s=i.version.split(".");function o(e,t){for(var n=t?t.split("."):s,i=e.split("."),r=0;r<3;r++){if(n[r]>i[r])return!0;if(n[r]<i[r])return!1}return!1}r.transitional=function(e,t,n){var r=t&&o(t);function s(e,t){return"[Axios v"+i.version+"] Transitional option '"+e+"'"+t+(n?". "+n:"")}return function(n,i,o){if(!1===e)throw new Error(s(i," has been removed in "+t));return r&&!a[i]&&(a[i]=!0,console.warn(s(i," has been deprecated since v"+t+" and will be removed in the near future"))),!e||e(n,i,o)}},e.exports={isOlderVersion:o,assertOptions:function(e,t,n){if("object"!=typeof e)throw new TypeError("options must be an object");for(var i=Object.keys(e),r=i.length;r-- >0;){var a=i[r],s=t[a];if(s){var o=e[a],l=void 0===o||s(o,a,e);if(!0!==l)throw new TypeError("option "+a+" must be "+l)}else if(!0!==n)throw Error("Unknown option "+a)}},validators:r}},4867:(e,t,n)=>{"use strict";var i=n(1849),r=Object.prototype.toString;function a(e){return"[object Array]"===r.call(e)}function s(e){return void 0===e}function o(e){return null!==e&&"object"==typeof e}function l(e){if("[object Object]"!==r.call(e))return!1;var t=Object.getPrototypeOf(e);return null===t||t===Object.prototype}function c(e){return"[object Function]"===r.call(e)}function u(e,t){if(null!=e)if("object"!=typeof e&&(e=[e]),a(e))for(var n=0,i=e.length;n<i;n++)t.call(null,e[n],n,e);else for(var r in e)Object.prototype.hasOwnProperty.call(e,r)&&t.call(null,e[r],r,e)}e.exports={isArray:a,isArrayBuffer:function(e){return"[object ArrayBuffer]"===r.call(e)},isBuffer:function(e){return null!==e&&!s(e)&&null!==e.constructor&&!s(e.constructor)&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)},isFormData:function(e){return"undefined"!=typeof FormData&&e instanceof FormData},isArrayBufferView:function(e){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer&&e.buffer instanceof ArrayBuffer},isString:function(e){return"string"==typeof e},isNumber:function(e){return"number"==typeof e},isObject:o,isPlainObject:l,isUndefined:s,isDate:function(e){return"[object Date]"===r.call(e)},isFile:function(e){return"[object File]"===r.call(e)},isBlob:function(e){return"[object Blob]"===r.call(e)},isFunction:c,isStream:function(e){return o(e)&&c(e.pipe)},isURLSearchParams:function(e){return"undefined"!=typeof URLSearchParams&&e instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product&&"NativeScript"!==navigator.product&&"NS"!==navigator.product)&&("undefined"!=typeof window&&"undefined"!=typeof document)}
2,forEach:u,merge:function e(){var t={};function n(n,i){l(t[i])&&l(n)?t[i]=e(t[i],n):l(n)?t[i]=e({},n):a(n)?t[i]=n.slice():t[i]=n}for(var i=0,r=arguments.length;i<r;i++)u(arguments[i],n);return t},extend:function(e,t,n){return u(t,(function(t,r){e[r]=n&&"function"==typeof t?i(t,n):t})),e},trim:function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")},stripBOM:function(e){return 65279===e.charCodeAt(0)&&(e=e.slice(1)),e}}},2168:(e,t,n)=>{n(7755),n(5662);var i=new Date,r=String(i.getDate()).padStart(2,"0"),a=String(i.getMonth()+1).padStart(2,"0"),s=i.getFullYear();i=s+"-"+a+"-"+r,document.querySelectorAll(".date-input").forEach((function(e){return e.max=i}))},7755:(e,t,n)=>{window._=n(6486),window.axios=n(9669),window.axios.defaults.headers.common["X-Requested-With"]="XMLHttpRequest",window.$=n(9755)},5710:()=>{},964:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".adventure-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("adventure-article-next"),i(this).find(".slick-prev").addClass("adventure-article-prev"),i(".adventure-article-next").on("click",(function(){i(".adventure-article").find(".slick-dots").find(".slick-active").find("button").text();i(".adventure-article").find(".indicator-page").find(".current")})),i(".adventure-article-prev").on("click",(function(){var e=i(".adventure-article").find(".slick-dots").find(".slick-active").find("button").text();i(".adventure-article").find(".indicator-page").find(".current").text(e)}))})),i(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-adventure-article-next"),i(this).find(".slick-prev").addClass("filter-adventure-article-prev")})),i(document).ready((function(){i(".adventure-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".adventure-article").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".adventure-article").find(".filter-item").on("click",(function(){i(".adventure-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".adventure-article-category-selected").text("Article"):i(".adventure-article-category-selected").text(i(this).text())}));var r=i(".adventure-article-item").length;i(".adventure-article").find(".indicator-page").find(".total-pages").text(r)},8777:(e,t,n)=>{var i=n(9755);slick=n(9154),i(document).ready((function(){i(".banner-adventure-category").find(".list").slick({infinite:!1,slidesToShow:1,dots:!0,variableWidth:!0,centerMode:!0})}))},1346:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".adventure-events-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("adventure-events-next"),i(this).find(".slick-prev").addClass("adventure-events-prev");var n=1;i(".adventure-events").find(".indicator-page").find(".current").text(n),i(".adventure-events-next").on("click",(function(){n=i(".adventure-events").find(".slick-dots").find(".slick-active").find("button").text(),i(".adventure-events").find(".indicator-page").find(".current").text(n)})),i(".adventure-events-prev").on("click",(function(){n=i(".adventure-events").find(".slick-dots").find(".slick-active").find("button").text(),i(".adventure-events").find(".indicator-page").find(".current").text(n)}))})),i(document).ready((function(){i(".adventure-events-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,mobileFirst:!0,dots:!0})}));var r=i(".adventure-events-item").length;i(".adventure-events").find(".indicator-page").find(".total-pages").text(r)},9551:(e,t,n)=>{n(8777),n(1346),n(964),n(4653),n(6144)},6144:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".adventure-spotify-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("adventure-spotify-next"),i(this).find(".slick-prev").addClass("adventure-spotify-prev"),i(".adventure-spotify-next").on("click",(function(){var e=i(".adventure-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".adventure-spotify").find(".indicator-page").find(".current").text(e)})),i(".adventure-spotify-prev").on("click",(function(){var e=i(".adventure-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".adventure-spotify").find(".indicator-page").find(".current").text(e)}))})),i(".adventure-spotify").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("adventure-filter-spotify-next"),i(this).find(".slick-prev").addClass("adventure-filter-spotify-prev")})),i(document).ready((function(){i(".adventure-spotify-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".adventure-spotify").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".adventure-spotify").find(".filter-item").on("click",(function(){i(".adventure-spotify").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".adventure-spotify-category-selected").text("Adventure"):i(".adventure-spotify-category-selected").text(i(this).text())}));var r=i(".adventure-spotify-item").length;i(".adventure-spotify").find(".indicator-page").find(".total-pages").text(r)},4653:(e,t,n)=>{var i=n(9755);i(".adventure-video").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-slide").addClass("filter-desktop-slide")})),i(document).ready((function(){i(".adventure-video").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".adventure-video").find(".filter-item").on("click",(function(){i(".adventure-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(".adventure-video-iframe").attr("src",i(this).data("video")),i(".adventure-playlist-iframe").attr("src",i(this).data("playlist")),i(this).addClass("active"),"All"==i(this).text()?i(".adventure-video-category-selected").text(""):i(".adventure-video-category-selected").text(i(this).text())})),i(".adventure-video").find(".filter-item").on("click",(function(){i(".adventure-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".adventure-video-category-selected").text("Adventure"):i(".adventure-video-category-selected").text(i(this).text())}))},5603:(e,t,n)=>{var i=n(9755);i("#article-comment-input").on("keyup",(function(){""!=i(this).val()?i("#clear-btn").show():i("#clear-btn").hide()})),i("#video-comment-input").on("keyup",(function(){""!=i(this).val()?i("#clear-btn").show():i("#clear-btn").hide()})),i("#clear-btn").on("click",(function(){i("#article-comment-input").val(""),i("#video-comment-input").val(""),i(this).hide()}))}
2,2889:(e,t,n)=>{var i=n(9755);n(7809),n(5603),n(7396);var r=i("#article-detail-content").data("title"),a=i("#article-detail-content").data("url"),s=i("#article-detail-content").data("text"),o=i("#article-detail-content").data("image");i(".share").ShareLink({title:r,text:s,image:o,url:a}),i(document).ready((function(){i("#floating-popup-close").on("click",(function(){i("#floating-popup").addClass("d-none")})),i("#floating-popup-register-close").on("click",(function(){i("#floating-popup-register").addClass("d-none")}))}))},7809:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".popular-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("popular-article-next"),i(this).find(".slick-prev").addClass("popular-article-prev"),i(this).append("<div class='popular-article-content-slick-nav'></div>"),i(".popular-article-content-slick-nav").append(i(this).find(".slick-prev")),i(".popular-article-content-slick-nav").append(i(this).find(".slick-dots")),i(".popular-article-content-slick-nav").append(i(this).find(".slick-next")),i(".popular-article-next").on("click",(function(){var e=i(".popular-article").find(".slick-dots").find(".slick-active").find("button").text();i(".popular-article").find(".indicator-page").find(".current").text(e)})),i(".popular-article-prev").on("click",(function(){var e=i(".popular-article").find(".slick-dots").find(".slick-active").find("button").text();i(".popular-article").find(".indicator-page").find(".current").text(e)}))})),i(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-popular-article-next"),i(this).find(".slick-prev").addClass("filter-popular-article-prev")})),i(document).ready((function(){i(".popular-article-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".popular-article").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1}),i(".popular-article-content").on("afterChange",(function(e,t,n,r,a){i(".popular-article").find(".indicator-page").find(".current").text(n+1)}))})),i(".popular-article").find(".filter-item").on("click",(function(){i(".popular-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".popular-article-category-selected").text(""):i(".popular-article-category-selected").text(i(this).text())}));var r=i(".popular-article-item").length;i(".popular-article").find(".indicator-page").find(".total-pages").text(r)},3224:(e,t,n)=>{var i=n(9755);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw s}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}n(3587);var s=document.querySelector(".auth__overlay"),o=document.querySelectorAll(".auth__container"),l=document.querySelectorAll(".auth__menu"),c=document.querySelectorAll(".auth__content"),u=document.querySelectorAll(".close-btn"),d=document.querySelector(".password-rules"),h=document.querySelectorAll(".auth__password"),f=document.querySelectorAll(".show-icon"),p=document.querySelector("#otp-ask"),m=document.querySelector("#otp-success"),g=document.querySelector(".overlay__container"),v=document.querySelector(".main-container"),y=function(){s.classList.add("auth-active"),Array.from(o).forEac
2h((function(e){return e.classList.contains("main__container")?e.classList.add("auth-active"):e.classList.remove("auth-active")})),document.body.classList.add("hold")},b=function(){Array.from(l)[1].classList.remove("current"),Array.from(c)[1].classList.remove("auth-active"),Array.from(l)[0].classList.add("current"),Array.from(c)[0].classList.add("auth-active")};document.querySelector("#regist-com-login")&&document.querySelector("#regist-com-login").addEventListener("click",(function(){y(),b()})),document.querySelector("#login-to-join")&&document.querySelector("#login-to-join").addEventListener("click",(function(){y(),b()}));Array.from(f).forEach((function(e,t){e.addEventListener("click",(function(){"password"==Array.from(h)[t].type?Array.from(h)[t].type="text":Array.from(h)[t].type="password"}))})),Array.from(h)[1]&&Array.from(h)[1].addEventListener("focus",(function(){return d.style.display="block"})),Array.from(h)[1]&&Array.from(h)[1].addEventListener("blur",(function(){return d.style.display="none"}));var _=document.querySelector("#login");_&&_.addEventListener("click",(function(e){e.preventDefault(),y(),b()}));var T=document.querySelector(".account-mobile");T&&T.addEventListener("click",(function(e){e.preventDefault(),y(),b()})),i(".header").find(".redeem-catalog").on("click",(function(){"not-loggedin"==i(this).data("url")?(y(),b()):location.href=i(this).data("url")})),Array.from(u).forEach((function(e){e.addEventListener("click",(function(){s.classList.contains("auth-active")&&(s.classList.remove("auth-active"),Array.from(o)[0].classList.remove("auth-active")),document.body.classList.remove("hold"),g&&g.classList.contains("auth-active")&&(g.classList.remove("auth-active"),v.classList.contains("forget__container-opened")&&v.classList.remove("forget__container-opened")),document.querySelector("#overlay-socials")&&document.querySelector("#overlay-socials").classList.contains("auth-active")&&(document.querySelector("#overlay-socials").classList.remove("auth-active"),document.querySelector("#overlay-socials").children[0].classList.remove("auth-active"),v.classList.contains("forget__container-opened")&&v.classList.remove("forget__container-opened"))}))})),Array.from(l).forEach((function(e,t){e.addEventListener("click",(function(){return 0===t?b():(Array.from(l)[0].classList.remove("current"),Array.from(c)[0].classList.remove("auth-active"),Array.from(l)[1].classList.add("current"),void Array.from(c)[1].classList.add("auth-active"))}))}));var k=document.querySelector("#auth__otp");k&&k.addEventListener("submit",(function(e){e.preventDefault();var t=new FormData(k);fetch("/otp",{method:"POST",body:t,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(!e.status)throw e;p.classList.remove("auth-active"),m.classList.add("auth-active")})).catch((function(e){var t=document.querySelector("#otp-ask"),n=document.createElement("div");n.classList.add("alert-error"),n.textContent="Please insert the right code",t.insertBefore(n,t.children[0]),setTimeout((function(){i(".alert-error").remove()}),3e3)}))})),i(document).ready((function(){"home.index"==i(".header").data("route")&&i(".welcome-container").length>0&&(i(".auth__overlay").hasClass("auth-active")||setTimeout((function(){i(".auth__overlay").hasClass("auth-active")||(i("#welcome-overlay").addClass("auth-active"),i("body").addClass("hold"))}),1e3))})),document.querySelector("#auth__forget")&&document.querySelector("#auth__forget").addEventListener("submit",(function(e){e.preventDefault();var t=new FormData(document.querySelector("#auth__forget"));grecaptcha.ready((function(){grecaptcha.execute("6LcLRrsaAAAAAAU4RuAbxeA0V2P7-e0eP6Fmfw48",{action:"submit"}).then((function(e){fetch("/password-reset",{method:"POST",body:t,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content}}).then((function(e){return e.json()})).then((function(e){if(!e.status||400===e.code||404===e.code)throw e;var t=document.querySelector("#forget-by-email-container"),n=document.createElement("div");n.classList.add("alert-success"),n.textContent=e.message,t.insertBefore(n,t.children[0]),window.location.href=e.redirect_url})).catch((function(e){var t=document.querySelector("#forget-by-email-container"),n=document.createElement("div");n.classList.add("alert-error"),"trying to get property 'user_id' of non-object"==e.message.toLowerCase()?n.textContent="Please insert your email address":n.textContent=e.message,t.insertBefore(n,t.children[0]),setTimeout((function(){i(".alert-error").remove()}),3e3)}))})),grecaptcha.reset(widgetId3)}))}));document.querySelector("#login-password")&&document.querySelector("#login-password").addEventListener("keydown",(function(){document.querySelector("#g-recaptcha-login").style.display="block"})),document.querySelector("#login-mobile-email")&&document.querySelector("#login-mobile-email").addEventListener("keydown",(function(){document.querySelector("#g-recaptcha-login").style.display="block"})),document.querySelector("#login-desktop-email")&&document.querySelector("#login-desktop-email").addEventListener("keydown",(function(){document.querySelector("#g-recaptcha-login").style.display="block"}));var w=document.querySelector("#form-login"),S=document.querySelector("#form-register");i(document).ready((function(){i.validator.addMethod("mustBe18",(function(e,t){return new Date(Date.now()-new Date(e).getTime()).getUTCFullYear()-1970>=18}),"You must be 18 to access this page"),i.validator.addMethod("emailFormat",(function(e,t){return e.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)}),"Please insert valid email"),i("#auth__forget").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{email:{required:!0,emailFormat:!0,email:!0}}}),i("#form-login").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{key:{required:!0},password:{required:!0,minlength:8}},messages:{key:{required:"Please enter your login credential"},password:{required:"Please enter your password",minlength:"please input min 8 characters"}}}),i("#form-login").on("submit",(function(e){if(i("#form-login").valid()){e.preventDefault();var t=new URLSearchParams(window.location.search).get("dpLPeEDhYX");"ICN916YrvfdKAhl"==t&&i("#g-test-state").val(t);var n=new FormData(w);
2grecaptcha.ready((function(){grecaptcha.execute("6LcLRrsaAAAAAAU4RuAbxeA0V2P7-e0eP6Fmfw48",{action:"submit"}).then((function(e){i("#auth__login").hide(),i("#form-login .show-icon").hide(),i(".loader").css("display","block"),i("form#form-login input").attr("disabled",!0),fetch("/login",{method:"POST",body:n,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(i("body").removeClass("hold"),!e.status)throw"Verify OTP"===e.message&&(location.href=e.redirect_url),e;i("#auth__login").hide(),i("#form-login .show-icon").hide(),i(".loader").css("display","block"),i("form#form-login input").attr("disabled",!0),location.href="/dashboard"})).catch((function(e){i(".alert-container").append('<span class="alert-error">'.concat(e.message,"</span>")),i(".loader").css("display","none"),i(".loader").hide(),i("form#form-login input").attr("disabled",!1),i("#form-login .show-icon").show(),i("#auth__login").show(),setTimeout((function(){i(".alert-error").remove()}),3e3)})).finally((function(){document.querySelector("#auth__login").textContent="Login"}))})),grecaptcha.reset(widgetId1)}))}})),i("#form-register").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{email:{required:!0,emailFormat:!0,email:!0},firstname:{required:!0},lastname:{required:!0},gender:{required:!0},date_of_birth:{required:!0,mustBe18:!0},phone_number:{required:!0,minlength:10,maxlength:13},username:{minlength:5},password:{required:!0,minlength:8},password_confirmation:{required:!0,minlength:8,equalTo:"#password-register"}},messages:{gender:{required:"Please select your gender"},password:{required:"Please enter your password",minlength:"please input min 8 characters",maxlength:"maximum 13 characters"},phone_number:{minlength:"Please input a valid number",maxlength:"Phone number must be less than 13 numbers"},password_confirmation:{required:"Please enter your password",minlength:"please input min 8 characters",equalTo:"password doesn't match"}}}),i("#form-register").on("submit",(function(e){if(i("#form-register").valid()){e.preventDefault();var t=new URLSearchParams(window.location.search).get("dpLPeEDhYX");"ICN916YrvfdKAhl"==t&&i("#g-test-state-register").val(t);var n,a=new FormData(S),s=r(a.entries());try{for(s.s();!(n=s.n()).done;){var o=n.value;console.log(o[0]+", "+o[1])}}catch(e){s.e(e)}finally{s.f()}grecaptcha.ready((function(){grecaptcha.execute("6LcLRrsaAAAAAAU4RuAbxeA0V2P7-e0eP6Fmfw48",{action:"submit"}).then((function(e){document.querySelector("#auth__register").disabled=!1,i("#auth__register").hide(),i("#auth__register").css("display","none"),i("#form-register .show-icon").hide(),i("form#form-register input, form#form-register select").attr("disabled",!0),i(".loader").css("display","block");try{fetch("/register",{method:"POST",body:a,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return i("#auth__register").hide(),i("#auth__register").css("display","none"),document.querySelector("#auth__register").disabled=!1,console.log("app2",e),e.json()})).then((function(e){if(document.querySelector("#auth__register").disabled=!1,i("#auth__register").hide(),e.errors||!e.status)throw i("#auth__register").show(),i("#auth__register").css("display","flex"),e;i("#auth__register").hide(),i("#form-register .show-icon").hide(),i("form#form-register input, form#form-register select").attr("disabled",!0),i(".loader").css("display","block"),console.log("berhasil"),localStorage.removeItem("welcome-login-id"),location.reload(),i("body").removeClass("hold")})).catch((function(e){console.log("app3",e),201==e.status&&i("body").removeClass("hold"),document.querySelector("#auth__register").disabled=!1,i("#form-register .show-icon").show(),i("form#form-register input, form#form-register select").attr("disabled",!1),i(".loader").css("display","none"),i(".loader").hide(),e.errors?(e.errors.ktp_number&&(document.querySelector("#regist-ktp_number-alert").classList.add("visible"),Array.isArray(e.errors.ktp_number)?document.querySelector("#regist-ktp_number-alert").textContent=e.errors.ktp_number[0]:document.querySelector("#regist-ktp_number-alert").textContent=e.errors.ktp_number),e.errors.email&&(document.querySelector("#regist-email-alert").classList.add("visible"),Array.isArray(e.errors.email)?document.querySelector("#regist-email-alert").textContent=e.errors.email[0]:document.querySelector("#regist-email-alert").textContent=e.errors.email),e.errors.date_of_birth&&(document.querySelector("#regist-dob-alert").classList.add("visible"),Array.isArray(e.errors.date_of_birth)?document.querySelector("#regist-dob-alert").textContent=e.errors.date_of_birth[0]:document.querySelector("#regist-dob-alert").textContent=e.errors.date_of_birth),e.errors.phone_number&&(document.querySelector("#regist-pn-alert").classList.add("visible"),Array.isArray(e.errors.phone_number)?document.querySelector("#regist-pn-alert").textContent=e.errors.phone_number[0]:document.querySelector("#regist-pn-alert").textContent=e.errors.phone_number),e.errors.username&&(document.querySelector("#regist-username-alert").classList.add("visible"),Array.isArray(e.errors.username)?document.querySelector("#regist-username-alert").textContent=e.errors.username[0]:document.querySelector("#regist-username-alert").textContent=e.errors.username),e.errors.password&&(document.querySelector("#regist-password-alert").classList.add("visible"),Array.isArray(e.errors.password)?document.querySelector("#regist-password-alert").textContent=e.errors.password[0]:document.querySelector("#regist-password-alert").textContent=e.errors.password)):(document.querySelector("#regist-captcha-alert").classList.add("visible"),document.querySelector("#regist-captcha-alert").textContent=e.message),function(e,t,n){var r=document.querySelector(t),a=document.querySelector(n),s=document.createElement("div");s.classList.add("alert-error"),s.textContent=e,r.appendChild(s,a);try{i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex")}catch(e){console.log(e)}try{i("#auth__register").show(),i("#auth__register").css("display","flex")}catch(e){console.log(e)}}(e.message,".error-log","#form-register"),setTimeout((function(){i(".alert-error").remove()}),5e3)})).finally((function(){document.querySelector("#auth__register").textContent="Register",i("#auth__register").show()}))}catch(e){console.log("app3",e),document.querySelector("#auth__register").disabled=!1,i("#form-register .show-icon").show(),i("form#form-register input, form#form-register select").attr("disabled",!1),i("#auth__register").show(),i(".loader").css("display","none"),i(".loader").hide()}})),grecaptcha.reset(widgetId2),document.querySelector("#auth__register").disabled=!1,i("#auth__register").show()}))}}));for(var e=[],t=0;t<=9;t++)e.push(t+48),e.push(t+96);e.push(8),e.push(9),e.push(46),e.push(37),e.push(39),e.push(187);var n=document.querySelector("#regist-phone");n&&n.addEventListener("keydown",(function(t){e.indexOf(t.keyCode)<0&&t.preventDefault()}))}))},6594:(e,t,n)=>{var i=n(9755);n(3224);var r=document.querySelector(".auth__overlay"),a=document.querySelectorAll(".auth__container"),s=document.querySelectorAll(".auth__menu"),o=document.querySelectorAll(".auth__content");document.querySelector(".header-account-container").addEventListener("click",(function(e){e.preventDefault(),l(),c()}));var l=function(){r.classList.add("auth-active"),Array.from(a).forEac
2h((function(e){return e.classList.contains("main__container")?e.style.display="block":e.style.display="none"})),document.body.classList.add("hold")},c=function(){Array.from(s)[1].classList.remove("current"),Array.from(o)[1].classList.remove("auth-active"),Array.from(s)[0].classList.add("current"),Array.from(o)[0].classList.add("auth-active")},u=function(){Array.from(s)[0].classList.remove("current"),Array.from(o)[0].classList.remove("auth-active"),Array.from(s)[1].classList.add("current"),Array.from(o)[1].classList.add("auth-active")},d=document.querySelector("#reset-by-email"),h=document.querySelector("#reset-by-phone"),f=document.querySelector(".password-rules");d&&d.addEventListener("keyup",(function(){""===d.value?h.disabled=!1:h.disabled=!0})),h&&h.addEventListener("keyup",(function(){""===h.value?d.disabled=!1:d.disabled=!0}));var p=document.querySelector("#password-register");p&&p.addEventListener("keyup",(function(e){document.querySelector("#auth__register").disabled=!0,/(.*[A-Z].*)/g.test(e.target.value)?f.children[0].classList.add("passed"):f.children[0].classList.remove("passed"),/(.*[0-9].*)(.*[0-9].*)/g.test(e.target.value)?f.children[1].classList.add("passed"):f.children[1].classList.remove("passed"),e.target.value.length>=8?f.children[2].classList.add("passed"):f.children[2].classList.remove("passed"),Array.from(f.children).every((function(e){return e.classList.contains("passed")}))?(document.querySelector(".password-rules").classList.remove("rules-visible"),document.querySelector("#auth__register").disabled=!1):document.querySelector(".password-rules").classList.add("rules-visible")})),i("#welcome-login").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){l(),u()}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")})),i("#comment-login").on("click",(function(){window.location.href="/login-landingpage",i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){l(),c()}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")})),i("#like-to-login").on("click",(function(){window.location.href="/login-landingpage",i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){l(),c()}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")})),i("#join-event_register").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){l(),u()}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")})),i("#section-register-cta").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){l(),u()}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")})),i("#join-event_register-banner").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){l(),u()}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")})),i("#close-welcome").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),i("body").removeClass("hold")})),i("#welcome-close").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),i("body").removeClass("hold")}))},8870:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=i(".banner-hero").find(".banner-hero-item").find(".video-home-banner");i(".banner-hero").find(".list").on("init",(function(e,t){var n=i(".banner-hero-item"),a=t.$dots.find("li");a.each((function(e){i(this).find("button").addClass("slick-dots-button");var t=n.eq(e).data("dots"),r=n.eq(e).data("title"),a=n.eq(e).data("description");n.eq(e).find(".banner-hero-title").text(r),n.eq(e).find(".banner-hero-desc").text(a),i(this).find("button").text(t)})),a.addClass("slick-dots-item"),i(".banner-hero").find(".slick-next").on("click",(function(){console.log("next hero"),i(".toggle-sound").removeClass("on-sound"),r.each((function(e,t){t.muted=!0}))})),i(".banner-hero").find(".slick-prev").on("click",(function(){console.log("prev hero"),i(".toggle-sound").removeClass("on-sound"),r.each((function(e,t){t.muted=!0}
2))}))})),i(document).ready((function(){i(".banner-hero").find(".list").slick({infinite:!1,slidesToShow:1,dots:!0,lazyLoad:"progressive"})})),r.each((function(e,t){i(this).next().on("click",(function(){console.log(t.muted),t.muted=!t.muted,i(this).toggleClass("on-sound")}))}))},435:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".category-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("category-article-next"),i(this).find(".slick-prev").addClass("category-article-prev"),i(this).append("<div class='category-article-slick-nav'></div>"),i(".category-article-slick-nav").append(i(this).find(".slick-prev")),i(".category-article-slick-nav").append(i(this).find(".slick-dots")),i(".category-article-slick-nav").append(i(this).find(".slick-next")),i(".category-article-next").on("click",(function(){var e=i(".category-highlights-article").find(".slick-dots").find(".slick-active").find("button").text();i(".category-highlights-article").find(".indicator-page").find(".current").text(e)})),i(".category-article-prev").on("click",(function(){var e=i(".category-highlights-article").find(".slick-dots").find(".slick-active").find("button").text();i(".category-highlights-article").find(".indicator-page").find(".current").text(e)}))})),i(".section-filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-section-article-next"),i(this).find(".slick-prev").addClass("filter-section-article-prev")})),i(document).ready((function(){i(".category-article-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".category-highlights-article").find(".section-filter-item").length>6&&i(".category-highlights-article").find(".section-filter").slick({infinite:!1,slidesToShow:4,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".category-highlights-article").on("afterChange",(function(e,t,n,r,a){i(".category-highlights-article").find(".indicator-page").find(".current").text(n+1)}))})),i(".category-highlights-article").find(".filter-item").on("click",(function(){i(".category-highlights-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".category-article-category-selected").text(""):i(".category-article-category-selected").text(i(this).text())}));var r=i(".category-article-item").length;i(".category-highlights-article").find(".indicator-page").find(".total-pages").text(r)},7745:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=!1,a=0,s=0;Array.from(document.querySelectorAll(".community-categories")).length>3&&(r=!0,Array.from(document.querySelectorAll(".community-categories")).forEach((function(e,t){e.classList.contains("active")&&(a=t)}))),Array.from(document.querySelectorAll(".community-categories"))&&Array.from(document.querySelectorAll(".community-categories")).forEach((function(e,t){e.classList.contains("active")&&(s=t)})),Array.from(document.querySelectorAll(".banner-category-category-item")).length>3&&(r=!0,Array.from(document.querySelectorAll(".banner-category-category-item")).forEach((function(e,t){e.classList.contains("active")&&(a=t)}))),Array.from(document.querySelectorAll(".banner-category-category-item"))&&Array.from(document.querySelectorAll(".banner-category-category-item")).forEach((function(e,t){e.classList.contains("active")&&(s=t)})),Array.from(document.querySelectorAll(".banner-news-category-item")).length>3&&(r=!0,Array.from(document.querySelectorAll(".banner-news-category-item")).forEach((function(e,t){e.classList.contains("active")&&(a=t)}))),Array.from(document.querySelectorAll(".banner-news-category-item"))&&Array.from(document.querySelectorAll(".banner-news-category-item")).forEach((function(e,t){e.classList.contains("active")&&(s=t)})),i(document).ready((function(){i(".banner-category-category").find(".list").slick({infinite:!0,slidesToShow:3,dots:!0,variableWidth:!0,centerMode:r,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1,initialSlide:s}}],initialSlide:a});var e=document.querySelector("#com-type"),t=document.querySelector("#category-form");Array.from(document.querySelectorAll(".community-categories")).forEac
2h((function(n){return n.addEventListener("click",(function(){e&&(e.value=n.dataset.type),t&&t.submit()}))}))}))},7409:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".category-events-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("category-events-next"),i(this).find(".slick-prev").addClass("category-events-prev"),i(this).append("<div class='category-events-slick-nav'></div>"),i(".category-events-slick-nav").append(i(this).find(".slick-prev")),i(".category-events-slick-nav").append(i(this).find(".slick-dots")),i(".category-events-slick-nav").append(i(this).find(".slick-next")),i(".category-events-next").on("click",(function(){var e=i(".category-events").find(".slick-dots").find(".slick-active").find("button").text();i(".category-events").find(".indicator-page").find(".current").text(e)})),i(".category-events-prev").on("click",(function(){var e=i(".category-events").find(".slick-dots").find(".slick-active").find("button").text();i(".category-events").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".category-events-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".category-events-content").on("afterChange",(function(e,t,n,r,a){i(".category-events").find(".indicator-page").find(".current").text(n+1)}))}))},1242:(e,t,n)=>{n(7745),n(7409),n(435),n(5075),n(4694),n(4161)},5075:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".category-spotify-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("category-spotify-next"),i(this).find(".slick-prev").addClass("category-spotify-prev"),i(this).append("<div class='category-spotify-content-slick-nav'></div>"),i(".category-spotify-content-slick-nav").append(i(this).find(".slick-prev")),i(".category-spotify-content-slick-nav").append(i(this).find(".slick-dots")),i(".category-spotify-content-slick-nav").append(i(this).find(".slick-next")),i(".category-spotify-next").on("click",(function(){var e=i(".category-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".category-spotify").find(".indicator-page").find(".current").text(e)})),i(".category-spotify-prev").on("click",(function(){var e=i(".category-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".category-spotify").find(".indicator-page").find(".current").text(e)})),i(".category-spotify-item").find(".play-btn").on("click",(function(){i(".category-spotify-item").each((function(){i(this).find(".play-btn").addClass("show"),i(this).find(".image").addClass("show"),i(this).find(".spotify-iframe").removeClass("show"),i(this).find(".spotify-title").addClass("show"),i(this).removeClass("transparent")})),i(this).removeClass("show"),i(this).parent().find(".image").removeClass("show"),i(this).parent().find(".spotify-iframe").addClass("show"),i(this).parent().find(".spotify-title").removeClass("show"),i(this).parent().addClass("transparent")}))})),i(".category-spotify").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("category-filter-spotify-next"),i(this).find(".slick-prev").addClass("category-filter-spotify-prev")})),i(document).ready((function(){i(".category-spotify-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".category-spotify").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1}),i(".category-spotify-content").on("afterChange",(function(e,t,n,r,a){i(".category-spotify").find(".indicator-page").find(".current").text(n+1)}))})),i(".category-spotify").find(".filter-item").on("click",(function(){i(".category-spotify").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active")}));var r=i(".category-spotify-item").length;i(".category-spotify").find(".indicator-page").find(".total-pages").text(r)},4161:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=!1,a=!1,s=0,o=0,l=0;Array.from(document.querySelectorAll(".category-club-item")).length>4&&(r=!0,Array.from(document.querySelectorAll(".category-club-item")).forEac
2h((function(e,t){e.classList.contains("active")&&(s=t)}))),Array.from(document.querySelectorAll(".banner-super-match-category-item")).length>4&&(a=!0,Array.from(document.querySelectorAll(".banner-super-match-category-item")).forEach((function(e,t){e.classList.contains("active")&&(o=t)}))),Array.from(document.querySelectorAll(".category-club-item"))&&Array.from(document.querySelectorAll(".category-club-item")).forEach((function(e,t){e.classList.contains("active")&&(l=t)})),Array.from(document.querySelectorAll(".banner-super-match-category-item"))&&Array.from(document.querySelectorAll(".banner-super-match-category-item")).forEach((function(e,t){e.classList.contains("active")&&(l=t)})),i(document).ready((function(){i(".category-club").find(".list").slick({infinite:!0,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:r,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1,initialSlide:l}}],initialSlide:s}),i(".banner-super-match-category").find(".list").slick({infinite:!0,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:a,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1,initialSlide:l}}],initialSlide:o})}))},4694:(e,t,n)=>{var i=n(9755);videojs=n(3364),slick=n(9154),0==i("#category-video-section").data("videotype")?i(".category-highlights-video").find("#video-iframe").hide():i(".category-highlights-video").find("#video-player").hide(),i("#categorypage-video-playlist").find(".item").on("click",(function(){i(".category-video-content").find(".wrapper-img-thumbnail").removeClass("d-none").addClass("d-block"),i("#category-video-section").find("#video-iframe").remove(),i("#category-video-section").find("#video-player").remove(),i("#video-player").trigger("pause"),i("#video-player_html5_api").trigger("pause");var e=i(this).data("thumbnail"),t=i(this).data("baseurl"),n=i(this).data("url"),r=i(this).data("title"),a=i(this).data("point");i(".category-video-content").find(".img-thumbnail-youtube").attr("src",t+"/"+e),i(".btn-play-youtube").children("span").text("Watch to Get "+a+" Point"),0==i(this).data("videotype")?(i("#category-video-section").find(".video").append('<video id="video-player" width="100%" src="'.concat(t,"/").concat(n,'" controls></video>')),i("#video-player").load()):(i("#category-video-section").find(".video").append('<iframe loading="lazy" id="video-iframe" class="category-video-iframe" width="100%" height="220" src="'.concat(n,'" title="').concat(r,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')),i("#video-iframe").load())})),i(".category-video-content").find(".btn-play-youtube").on("click",(function(){var e=i("#video-iframe").attr("src");return e.includes("?")?(i(".category-video-content").find(".wrapper-img-thumbnail").removeClass("d-block").addClass("d-none"),i("#video-iframe").attr("src",e+"&autoplay=1&mute=1&playsinline=1")):(i(".category-video-content").find(".wrapper-img-thumbnail").removeClass("d-block").addClass("d-none"),i("#video-iframe").attr("src",e+"?autoplay=1&mute=1&playsinline=1"))})),i(document).ready((function(){i(".category-highlights-video").find(".section-filter-item").length>6&&i(".category-highlights-video").find(".section-filter").slick({infinite:!1,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})}))},8248:(e,t,n)=>{var i=n(9755);i(".burger-list-item").on("click",(function(e){var t=i(".burger-list-item");t.each((function(e,t){i(this).removeClass("nonactive"),i(this).removeClass("active"),i(this).removeClass("active-dropdown")})),i(this).addClass("active");var n=i(this).data("child");i(this).data("items");n>0?(t.each((function(e,t){i(this).addClass("nonactive")})),i(this).removeClass("nonactive"),i(this).addClass("active-dropdown")):i(this).addClass("active")})),i(".burger-list-item").on("mouseleave",(function(e){i(this).removeClass("nonactive"),i(this).removeClass("active"),i(this).removeClass("active-dropdown")}))},8597:(e,t,n)=>{var i=n(9755);n(3587),i(document).ready((function(){i("#edit-com-profile-data").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{group_category_id:{required:!0},name:{required:!0,minlength:5},description:{required:!0,minlength:10},"media_links[email]":{email:!0},"media_links[instagram]":{url:!0},"media_links[facebook]":{url:!0},"media_links[twitter]":{url:!0},"media_links[youtube]":{url:!0}},messages:{group_category_id:{required:"Please Select Community Category"},name:{required:"Please insert Community Name"},description:{required:"Please insert Community Description"},"media_links[email]":{email:"Wrong email address"},"media_links[instagram]":{url:"Please insert valid url"},"media_links[facebook]":{url:"Please insert valid url"},"media_links[twitter]":{url:"Please insert valid url"},"media_links[youtube]":{url:"Please insert valid url"}}}),i("#edit-com-profile-data").submit((function(e){var t=i(this).val
2id();e.stopImmediatePropagation(),e.preventDefault(),t&&(document.querySelector("#com-update-confirm").textContent="Saving...",fetch("".concat(document.querySelector("#edit-com-profile-data").action),{method:"POST",body:new FormData(document.querySelector("#edit-com-profile-data")),headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){if(e.errors||!e.status)throw e;var t=document.querySelector(".com-edit-container"),n=document.createElement("div");n.classList.add("alert-success"),n.textContent="Update Success",t.insertBefore(n,t.children[0]),setTimeout((function(){window.location.reload()}),3e3)})).catch((function(e){console.log(e);var t=document.querySelector(".com-edit-container"),n=document.createElement("div");n.classList.add("alert-error"),n.textContent="Oops!, something went wrong",t.insertBefore(n,t.children[0]),setTimeout((function(){i(".alert-error").remove()}),5e3)})).finally((function(){document.querySelector("#com-update-confirm").textContent="Save"})))}))}));var r=["jpg","jpeg","png"],a=function(e,t){var n=e.target.value.split(".")[1],i=!1;if(r.forEach((function(e){String(e).toLowerCase()!==String(n).toLowerCase()||(i=!0)})),!i||e.target.files[0].size>1e6)document.querySelector("#com-".concat(t,"-alert")).textContent="file is not acceptable",document.querySelector("#com-".concat(t,"-alert")).classList.add("visible"),document.querySelector("#com-update-confirm").disabled=!0;else{var a=new FileReader;a.onload=function(e){document.querySelector("#".concat(t,"-image")).src=e.target.result},a.readAsDataURL(e.target.files[0]),document.querySelector("#com-".concat(t,"-alert")).classList.remove("visible"),document.querySelector("#com-update-confirm").disabled=!1}},s=document.querySelector("#community-banner"),o=document.querySelector("#community-logo");s&&s.addEventListener("change",(function(e){a(e,"banner")})),o&&o.addEventListener("change",(function(e){a(e,"logo")}))},5863:(e,t,n)=>{n(8597),n(3390)},3390:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=1;i(".com-members-list-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("com-members-list-mobile-content-next"),i(this).find(".slick-prev").addClass("com-members-list-mobile-content-prev"),i(this).append("<div class='community-members-slick-nav'></div>"),i(".community-members-slick-nav").append(i(this).find(".slick-prev")),i(".community-members-slick-nav").append('<div class="slick-dots-container"></div'),i(".community-members-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".community-members-slick-nav").append(i(this).find(".slick-next")),i(".community-members-next").on("click",(function(){var e=i(".com-members-list-desktop").find(".slick-dots").find(".slick-active").find("button").text();i(".com-members-list-desktop").find(".indicator-page").find(".current").text(e);var t=-24*r;i(".com-members-list-desktop").find(".slick-dots").css("transform","translate("+t+"px,0)"),r++})),i(".community-members-prev").on("click",(function(){var e=i(".com-members-list-desktop").find(".slick-dots").find(".slick-active").find("button").text();if(i(".com-members-list-desktop").find(".indicator-page").find(".current").text(e),r>=0){var t=-24*r;i(".com-members-list-desktop").find(".slick-dots").css("transform","translate("+t+"px,0)"),r--}}))})),i(document).ready((function(){i(".com-members-list-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})})),i(".com-members-edit-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("com-members-list-mobile-content-next"),i(this).find(".slick-prev").addClass("com-members-list-mobile-content-prev"),i(this).append("<div class='community-members-edit-slick-nav'></div>"),i(".community-members-edit-slick-nav").append(i(this).find(".slick-prev")),i(".community-members-edit-slick-nav").append('<div class="slick-dots-container"></div'),i(".community-members-edit-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".community-members-edit-slick-nav").append(i(this).find(".slick-next")),i(".community-members-next").on("click",(function(){var e=i(".com-members-edit-desktop").find(".slick-dots").find(".slick-active").find("button").text();i(".com-members-edit-desktop").find(".indicator-page").find(".current").text(e);var t=-24*r;i(".com-members-edit-desktop").find(".slick-dots").css("transform","translate("+t+"px,0)"),r++})),i(".community-members-prev").on("click",(function(){var e=i(".com-members-edit-desktop").find(".slick-dots").find(".slick-active").find("button").text();if(i(".com-members-edit-desktop").find(".indicator-page").find(".current").text(e),r>=0){var t=-24*r;i(".com-members-edit-desktop").find(".slick-dots").css("transform","translate("+t+"px,0)"),r--}}
2))})),i(document).ready((function(){i(".com-members-edit-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})})),i(".com-members-list-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("com-members-list-mobile-content-next"),i(this).find(".slick-prev").addClass("com-members-list-mobile-content-prev"),i(this).find(".slick-next").on("click",(function(){var e=i(".com-members-list-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".com-members-list-mobile").find(".indicator-page").find(".current").text(e)})),i(this).find(".slick-prev").on("click",(function(){var e=i(".com-members-list-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".com-members-list-mobile").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".com-members-list-mobile-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})}));var a=i(".com-req").length;i(".com-request-mobile").find(".indicator-page").find(".total-pages").text(a);var s=i(".com-edit-list").length;i(".com-edit-mobile").find(".indicator-page").find(".total-pages").text(s);var o=document.querySelectorAll(".accept"),l=document.querySelectorAll(".reject"),c=Array.from(document.querySelectorAll(".accept-group")),u=Array.from(document.querySelectorAll(".reject-group")),d=Array.from(document.querySelectorAll(".accept-member")),h=Array.from(document.querySelectorAll(".reject-member")),f=document.querySelectorAll(".com-close-btn"),p=document.querySelectorAll(".edit-member-role"),m=document.querySelectorAll(".member-role-text"),g=document.querySelectorAll(".status-container");Array.from(m).forEach((function(e,t){return e.addEventListener("blur",(function(e){e.preventDefault(),Array.from(document.querySelectorAll(".submit-member-role"))[t].click()}))})),Array.from(g).forEach((function(e,t){return e.addEventListener("submit",(function(n){n.preventDefault(),fetch("/community/members/".concat(Array.from(m)[t].dataset.member),{method:"POST",body:new FormData(e),headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.errors||!e.status)throw e})).catch((function(e){console.log(e)})).finally((function(){}))}))})),Array.from(p).forEach((function(e,t){return e.addEventListener("click",(function(e){e.preventDefault(),Array.from(m)[t].readOnly=!1,Array.from(m)[t].focus()}))})),Array.from(f).forEach((function(e){return e.addEventListener("click",(function(t){t.preventDefault(),document.querySelector("#remove-member-popup").classList.add("auth-active"),document.body.classList.add("hold"),document.querySelector("#remove-delete").addEventListener("click",(function(t){t.preventDefault(),fetch("/community/group/".concat(e.dataset.group,"/member/").concat(e.dataset.member,"/delete"),{method:"GET",headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.errors||!e.status)throw e;window.location.reload()})).catch((function(e){console.log(e)})).finally((function(){}))}))}))})),Array.from(l).forEach((function(e,t){return e.addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#reject-member-popup").classList.add("auth-active"),document.body.classList.add("hold"),document.querySelector("#reject-delete").addEventListener("click",(function(){fetch("/community/group/".concat(u[t].value,"/member/").concat(h[t].value,"/reject"),{method:"GET",headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.errors||!e.status)throw e;window.location.reload()})).catch((function(e){console.log(e),setTimeout((function(){i(".alert-error").remove(),Array.from(document.querySelectorAll(".alert")).forEach((function(e){e.classList.remove("visible"),e.style.display="none"}))}),5e3)})).finally((function(){document.querySelector("#auth__register").textContent="Register"}))}))}))}
2)),Array.from(o).forEach((function(e,t){return e.addEventListener("click",(function(e){e.preventDefault(),fetch("/community/group/".concat(c[t].value,"/member/").concat(d[t].value,"/accept"),{method:"GET",headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.errors||!e.status)throw e;document.querySelector("#approval-popup").classList.add("auth-active"),document.body.classList.add("hold")})).catch((function(e){console.log(e)})).finally((function(){}))}))})),document.querySelector("#approval-popup__close")&&document.querySelector("#approval-popup__close").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#approval-popup").classList.remove("auth-active"),document.body.classList.remove("hold"),window.location.reload()})),document.querySelector("#approval-goback")&&document.querySelector("#approval-goback").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#approval-popup").classList.remove("auth-active"),document.body.classList.remove("hold"),window.location.reload()})),document.querySelector("#remove-cancel")&&document.querySelector("#remove-cancel").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#remove-member-popup").classList.remove("auth-active"),document.body.classList.remove("hold")})),document.querySelector("#remove-popup__close")&&document.querySelector("#remove-popup__close").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#remove-member-popup").classList.remove("auth-active"),document.body.classList.remove("hold")})),document.querySelector("#reject-cancel")&&document.querySelector("#reject-cancel").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#reject-member-popup").classList.remove("auth-active"),document.body.classList.remove("hold")})),document.querySelector("#reject-popup__close")&&document.querySelector("#reject-popup__close").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#reject-member-popup").classList.remove("auth-active"),document.body.classList.remove("hold")})),document.querySelector("#delete-com-cancel")&&document.querySelector("#delete-com-cancel").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#delete-com-popup").classList.remove("auth-active"),document.body.classList.remove("hold")})),document.querySelector("#delete-com-popup__close")&&document.querySelector("#delete-com-popup__close").addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#delete-com-popup").classList.remove("auth-active"),document.body.classList.remove("hold")})),Array.from(document.querySelectorAll(".community-delete")).forEac
2h((function(e){return e.addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#delete-com-popup").classList.add("auth-active"),document.body.classList.add("hold")}))})),document.querySelector("#delete-com-confirm")&&document.querySelector("#delete-com-confirm").addEventListener("click",(function(e){e.preventDefault(),fetch("/community/".concat(document.querySelector("#delete-com-confirm").dataset.group),{method:"DELETE",headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.errors||!e.status)throw e;document.querySelector("#approval-popup").classList.remove("auth-active"),document.body.classList.remove("hold"),window.location.href="/community"})).catch((function(e){console.log(e)})).finally((function(){}))}))},2369:(e,t,n)=>{n(8048),document.querySelector(".com-create-now")&&document.querySelector(".com-create-now").addEventListener("click",(function(){showLogin()}))},8048:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=1;i(".community-members-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("community-members-mobile-next"),i(this).find(".slick-prev").addClass("community-members-mobile-prev"),i(this).append("<div class='community-members-slick-nav'></div>"),i(".community-members-slick-nav").append(i(this).find(".slick-prev")),i(".community-members-slick-nav").append('<div class="slick-dots-container"></div'),i(".community-members-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".community-members-slick-nav").append(i(this).find(".slick-next")),i(".community-members-next").on("click",(function(){var e=i(".community-members-content").find(".slick-dots").find(".slick-active").find("button").text();i(".community-members-content").find(".indicator-page").find(".current").text(e);var t=-24*r;i(".community-members-content").find(".slick-dots").css("transform","translate("+t+"px,0)"),r++})),i(".community-members-prev").on("click",(function(){var e=i(".community-members-content").find(".slick-dots").find(".slick-active").find("button").text();if(i(".community-members-content").find(".indicator-page").find(".current").text(e),r>=0){var t=-24*r;i(".community-members-content").find(".slick-dots").css("transform","translate("+t+"px,0)"),r--}}))})),i(document).ready((function(){i(".community-members-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})})),i(".community-members-mobile").on("init",(function(e,t){i(this).find(".slick-next").addClass("community-members-mobile-next"),i(this).find(".slick-prev").addClass("community-members-mobile-prev"),i(this).find(".slick-next").on("click",(function(){var e=i(".community-membres-mobile-content").find(".slick-dots").find(".slick-active").find("button").text();i(".community-membres-mobile-content").find(".indicator-page").find(".current").text(e)})),i(this).find(".slick-prev").on("click",(function(){var e=i(".community-membres-mobile-content").find(".slick-dots").find(".slick-active").find("button").text();i(".community-membres-mobile-content").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".community-members-mobile").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})}));var a=i(".community-members-wrapper").length;i(".community-membres-mobile-content").find(".indicator-page").find(".total-pages").text(a)},6155:(e,t,n)=>{var i=n(9755);slick=n(9154),i(document).ready((function(){i(".banner-community-category").find(".list").slick({infinite:!1,slidesToShow:1,dots:!0,variableWidth:!0,centerMode:!0})}))},4008:(e,t,n)=>{var i=n(9755);n(9755).data;slick=n(9154);i(".community-all-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("community-all-article-next"),i(this).find(".slick-prev").addClass("community-all-article-prev")})),i(".community-all-article").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-community-article-next"),i(this).find(".slick-prev").addClass("filter-community-article-prev")})),i(".community-all-article-mobile").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-community-article-next"),i(this).find(".slick-prev").addClass("filter-community-article-prev")})),i(document).ready((function(){i(".community-all-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0});var e=i(".community-all-article").find(".filter-item").length,t=0,n=!1,r=3;Array.from(document.querySelectorAll(".community-cities"))&&Array.from(document.querySelectorAll(".community-cities")).forEac
2h((function(e,i){e.classList.contains("active")&&(i>3&&i<Array.from(document.querySelectorAll(".community-cities")).length-Math.floor(Array.from(document.querySelectorAll(".community-cities")).length/2)-4&&(n=!0,t=i),Array.from(document.querySelectorAll(".community-cities")).length>4&&i>=Array.from(document.querySelectorAll(".community-cities")).length-Math.floor(Array.from(document.querySelectorAll(".community-cities")).length/2)-4&&(t=Array.from(document.querySelectorAll(".community-cities")).length-Math.floor(Array.from(document.querySelectorAll(".community-cities")).length/2)-6,r=6))})),e>=6&&i(".community-all-article").find(".filter").slick({infinite:!1,slidesToShow:r,dots:!1,variableWidth:!0,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}],centerMode:n,initialSlide:t})})),i(".community-all-article").find(".filter-item").on("click",(function(){i(".community-all-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".community-all-article-category-selected").text(""):i(".community-all-article-category-selected").text(i(this).text())}));var r=i(".community-all-article-item-wrapper").length;i(".community-all-article").find(".indicator-page").find(".total-pages").text(r),i(".community-all-article-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("community-all-article-mobile-next"),i(this).find(".slick-prev").addClass("community-all-article-mobile-prev")})),i(document).ready((function(){i(".community-all-article-mobile-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0,centerMode:!0})})),i(".community-all-article-mobile").find(".filter-item").on("click",(function(){i(".community-all-article-mobile").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".community-all-article-mobile-category-selected").text(""):i(".community-all-article-mobile-category-selected").text(i(this).text())}));var a=document.querySelectorAll(".community-categories"),s=document.querySelectorAll(".community-cities"),o=document.querySelector("#category-form"),l=document.querySelector("#city-form"),c=document.querySelector("#city-form-mobile"),u=new URLSearchParams(window.location.search);console.log(u);var d=u.get("type"),h=u.get("city"),f=document.querySelector("#com-type"),p=document.querySelector("#com-type-city"),m=document.querySelector("#com-city"),g=document.querySelectorAll(".com-city-type"),v=document.querySelector("#com-city-mobile");if(d&&(f&&(f.value=d),g&&g.forEach((function(e){return e.value=d}))),h&&(m&&(m.value=h),p&&(p.value=h),v&&(v.value=h)),Array.from(a).forEach((function(e){return e.addEventListener("click",(function(){f&&(f.value=e.dataset.type),o&&o.submit()}))})),Array.from(s).forEach((function(e){return e.addEventListener("click",(function(){m&&(m.value=e.dataset.city),l&&l.submit()}))})),v&&v.addEventListener("change",(function(e){c&&c.submit()})),i(".community-all-article").data("json")){var y=i(".community-all-article").data("json"),b=y.links;console.log(y),b.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#community-all-article-slick-nav").prepend('<div onclick="return false" class="page-prev slick-prev community-all-article-prev '.concat(t," ").concat(n,'"></div>')):i("#community-all-article-slick-nav").prepend('<a href="'.concat(e.url,"&city=").concat(h||"","&type=").concat(d||"",'#community-all-article" class="page-prev slick-prev community-all-article-prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label?n?i("#community-all-article-slick-nav").append('<div onclick="return false" class="page-next slick-next community-all-article-next '.concat(t," ").concat(n,'"></div>')):i("#community-all-article-slick-nav").append('<a href="'.concat(e.url,"&city=").concat(h||"","&type=").concat(d||"",'#community-all-article" class="page-next slick-next community-all-article-next ').concat(t," ").concat(n,'"></a>')):e.url?i("#community-all-article-slick-nav").find(".page-container").append('<a href="'.concat(e.url,"&city=").concat(h||"","&type=").concat(d||"",'#community-all-article" class="page ').concat(t,'" >').concat(e.label,"</a>")):i("#community-all-article-slick-nav").find(".page-container").append('<a href="'.concat(e.url,"&city=").concat(h||"","&type=").concat(d||"",'#community-all-article" class="page ').concat(t,'" onclick="return false;">').concat(e.label,"</a>"))})),i(".all-video").find(".indicator-page").find(".current").text(y.current_page)}if(i(".community-all-article-mobile").data("json")){var _=i(".community-all-article-mobile").data("json");_.links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#community-all-article-mobile-slick-nav").prepend('<div onclick="return false" class="page-prev slick-prev community-all-article-mobile-prev '.concat(t," ").concat(n,'"></div>')):i("#community-all-article-mobile-slick-nav").prepend('<a href="'.concat(e.url,"&city=").concat(h||"","&type=").concat(d||"",'#community-all-article-mobile" class="page-prev slick-prev community-all-article-mobile-prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label&&(n?i("#community-all-article-mobile-slick-nav").append('<div onclick="return false" class="page-next slick-next community-all-article-mobile-next '.concat(t," ").concat(n,'"></div>')):i("#community-all-article-mobile-slick-nav").append('<a href="'.concat(e.url,"&city=").concat(h||"","&type=").concat(d||"",'#community-all-article-mobile" class="page-next slick-next community-all-article-mobile-next ').concat(t," ").concat(n,'"></a>')))})),i(".community-all-article-mobile-slick-nav").find(".indicator-page").find(".current").text(_.current_page),i(".community-all-article-mobile-slick-nav").find(".indicator-page").find(".total-pages").text(_.last_page)}},5935:(e,t,n)=>
2{n(6155),n(4008),n(8896)},8896:(e,t,n)=>{var i=n(9755);n(3587),i(document).ready((function(){i("#form-register-community").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{group_category_id:{required:!0},city_id:{required:!0},name:{required:!0,minlength:5},description:{required:!0,minlength:10},"media_links[email]":{email:!0},"media_links[instagram]":{url:!0},"media_links[facebook]":{url:!0},"media_links[twitter]":{url:!0},"media_links[youtube]":{url:!0}},messages:{group_category_id:{required:"Please Select Community Category"},city_id:{required:"Please insert the City"},name:{required:"Please insert Community Name"},description:{required:"Please insert Community Description"},"media_links[email]":{email:"Wrong email address"},"media_links[instagram]":{url:"Please insert valid url"},"media_links[facebook]":{url:"Please insert valid url"},"media_links[twitter]":{url:"Please insert valid url"},"media_links[youtube]":{url:"Please insert valid url"}}}),i("#form-register-community").submit((function(e){e.preventDefault(),e.stopImmediatePropagation();var t=i(this).valid(),n=i(this).data("url");if(t){var r=new FormData;r.append("_token",i("#form-register-community").find("input[name='_token']").val()),r.append("group_category_id",i("#form-register-community").find("#community_register_category").val()),r.append("city_id",i("#form-register-community").find("#community_register_location").val()),r.append("name",i("#form-register-community").find("#community-register-name").val()),r.append("description",i("#form-register-community").find("#community_register_description").val()),r.append("media_links[email]",i("#form-register-community").find("#email").val()),r.append("media_links[instagram]",i("#form-register-community").find("#instagram").val()),r.append("media_links[facebook]",i("#form-register-community").find("#facebook").val()),r.append("media_links[twitter]",i("#form-register-community").find("#twitter").val()),r.append("media_links[youtube]",i("#form-register-community").find("#youtube").val()),fetch(n,{method:"POST",body:r,headers:{Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(console.log(e),!e.status)throw e;i("#welcome-overlay").addClass("auth-active"),i("#com-regist-success-popup").addClass("auth-active")})).catch((function(e){i("body").prepend('<div class="alert-redeem alert-error">'.concat(e.message,"</div>")),setTimeout((function(){i(".alert-error").remove()}),3e3)}))}}))}))},1486:(e,t,n)=>{var i=n(9755);function r(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(!e)return;if("string"==typeof e)return a(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(e);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return a(e,t)}(e))||t&&e&&"number"==typeof e.length){n&&(e=n);var i=0,r=function(){};return{s:r,n:function(){return i>=e.length?{done:!0}:{done:!1,value:e[i++]}},e:function(e){throw e},f:r}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var s,o=!0,l=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){l=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(l)throw s}}}}function a(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}document.querySelectorAll(".auth__content"),document.querySelectorAll(".auth__container"),document.querySelector("#otp-ask"),document.querySelector(".auth__overlay");i(document).ready((function(){i.validator.addMethod("mustBe18",(function(e,t){return new Date(Date.now()-new Date(e).getTime()).getUTCFullYear()-1970>=18}),"You must be 18 to access this page"),i.validator.addMethod("emailFormat",(function(e,t){return e.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)}),"Please insert valid email"),i("#register-complete-profile").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{email:{required:!0,emailFormat:!0,email:!0},firstname:{required:!0},date_of_birth:{required:!0,mustBe18:!0},phone_number:{required:!0,minlength:10,maxlength:13},username:{minlength:5},password:{required:!0,minlength:8},password_confirmation:{required:!0,minlength:8,equalTo:"#password-register-complete-profile"}},messages:{password:{required:"Please enter your password",minlength:"please input min 8 characters",maxlength:"maximum 13 characters"},password_confirmation:{required:"Please enter your password",minlength:"please input min 8 characters",equalTo:"password doesn't match"}}});var e=document.querySelector("#register-complete-profile");i("#register-complete-profile").on("submit",(function(t){if(i("#register-complete-profile").valid()){t.preventDefault();
2var n,a=new FormData(e),s=r(a.entries());try{for(s.s();!(n=s.n()).done;){var o=n.value;console.log(o[0]+", "+o[1])}}catch(e){s.e(e)}finally{s.f()}document.querySelector("#auth__register__complete").textContent="Registering...",grecaptcha.ready((function(){grecaptcha.execute("6LcLRrsaAAAAAAU4RuAbxeA0V2P7-e0eP6Fmfw48",{action:"submit"}).then((function(e){i("#auth__register__complete").hide(),i("#auth__register__complete").css("display","none"),fetch("/register",{method:"POST",body:a,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex"),e.json()})).then((function(e){if(e.errors||!e.status)throw i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex"),e;Array.from(document.querySelectorAll(".alert")).forEach((function(e){e.classList.remove("visible"),e.style.display="none"}))})).catch((function(e){i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex"),console.log(e),201==e.status&&i("body").removeClass("hold"),e.errors?(e.errors.ktp_number&&(document.querySelector("#regist-complete-ktp_number-alert").classList.add("visible"),Array.isArray(e.errors.ktp_number)?document.querySelector("#regist-complete-ktp_number-alert").textContent=e.errors.ktp_number[0]:document.querySelector("#regist-complete-ktp_number-alert").textContent=e.errors.ktp_number),e.errors.email&&(document.querySelector("#regist-complete-email-alert").classList.add("visible"),Array.isArray(e.errors.email)?document.querySelector("#regist-complete-email-alert").textContent=e.errors.email[0]:document.querySelector("#regist-complete-email-alert").textContent=e.errors.email),e.errors.date_of_birth&&(document.querySelector("#regist-complete-dob-alert").classList.add("visible"),Array.isArray(e.errors.date_of_birth)?document.querySelector("#regist-complete-dob-alert").textContent=e.errors.date_of_birth[0]:document.querySelector("#regist-complete-dob-alert").textContent=e.errors.date_of_birth),e.errors.phone_number&&(document.querySelector("#regist-complete-pn-alert").classList.add("visible"),Array.isArray(e.errors.phone_number)?document.querySelector("#regist-complete-pn-alert").textContent=e.errors.phone_number[0]:document.querySelector("#regist-complete-pn-alert").textContent=e.errors.phone_number),e.errors.username&&(document.querySelector("#regist-complete-username-alert").classList.add("visible"),Array.isArray(e.errors.username)?document.querySelector("#regist-complete-username-alert").textContent=e.errors.username[0]:document.querySelector("#regist-complete-username-alert").textContent=e.errors.username),e.errors.password&&(document.querySelector("#regist-complete-password-alert").classList.add("visible"),Array.isArray(e.errors.password)?document.querySelector("#regist-complete-password-alert").textContent=e.errors.password[0]:document.querySelector("#regist-complete-password-alert").textContent=e.errors.password)):(document.querySelector("#regist-complete-captcha-alert").classList.add("visible"),document.querySelector("#regist-complete-captcha-alert").textContent=e.message),function(e,t,n){var r=document.querySelector(t),a=document.querySelector(n),s=document.createElement("div");s.classList.add("alert-error"),s.textContent=e,r.appendChild(s,a);try{i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex")}catch(e){console.log(e)}try{i("#auth__register").show(),i("#auth__register").css("display","flex")}catch(e){console.log(e)}}(e.message,"#register-complete-profile .error-log","#register-complete-profile"),grecaptcha.reset(widgetId4),setTimeout((function(){i(".alert-error").remove()}),5e3)})).finally((function(){document.querySelector("#auth__register__complete").textContent="Register",i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex"),window.location.href="/login-landingpage"}))})),i("#auth__register__complete").show(),i("#auth__register__complete").css("display","flex"),grecaptcha.reset(widgetId4)}))}}))}));var s=document.querySelector("#password-register-complete-profile"),o=document.querySelector("#complete-password-rule");s&&s.addEventListener("focus",(function(){o.style.display="block"})),s&&s.addEventListener("blur",(function(){o.style.display="none"})),s&&s.addEventListener("keyup",(function(e){document.querySelector("#auth__register__complete").disabled=!0,/(.*[A-Z].*)/g.test(e.target.value)?o.children[0].classList.add("passed"):o.children[0].classList.remove("passed"),/(.*[0-9].*)(.*[0-9].*)/g.test(e.target.value)?o.children[1].classList.add("passed"):o.children[1].classList.remove("passed"),e.target.value.length>=8?o.children[2].classList.add("passed"):o.children[2].classList.remove("passed"),Array.from(o.children).every((function(e){return e.classList.contains("passed")}))?(document.querySelector("#complete-password-rule").classList.remove("rules-visible"),document.querySelector("#auth__register__complete").disabled=!1):document.querySelector("#complete-password-rule").classList.add("rules-visible")}));for(var l=[],c=0;c<=9;
2c++)l.push(c+48),l.push(c+96);l.push(8),l.push(9),l.push(46),l.push(37),l.push(39),l.push(187);var u=document.querySelector("#complete-regist-phone");u&&u.addEventListener("keydown",(function(e){l.indexOf(e.keyCode)<0&&e.preventDefault()}))},5221:(e,t,n)=>{var i=n(9755);n(3587),i(document).ready((function(){i.validator.addMethod("emailFormat",(function(e,t){return e.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)}),"Please insert valid email"),i("#contact-form").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{firstname:{required:!0},lastname:{required:!0},email_desktop:{required:!0,emailFormat:!0,email:!0},email_mobile:{required:!0,emailFormat:!0,email:!0},phone_number:{required:!0,minlength:10,maxlength:13},subject:{required:!0},message:{required:!0}},messages:{firstname:{required:"Please insert your name"},lastname:{required:"Please insert your name"},email:{required:"Please input your email"},phone_number:{required:"Please input your phone number",minlength:"Please input a valid number",maxlength:"Phone number must be less than 13 numbers"},subject:{required:"Please choose one of the option"},message:{required:"please insert your message here"}}}),i("#contact-form").on("submit",(function(e){if(i(this).valid()){e.preventDefault();var t=document.querySelector("#contact-form").getAttribute("action"),n=new FormData(document.querySelector("#contact-form"));grecaptcha.ready((function(){grecaptcha.execute("6LcLRrsaAAAAAAU4RuAbxeA0V2P7-e0eP6Fmfw48",{action:"submit"}).then((function(e){fetch(t,{method:"POST",body:n,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(!e.status)throw e;var t=document.querySelector(".contact-form"),n=document.querySelector("#contact-form"),r=document.createElement("div");r.classList.add("alert-success"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-success").remove(),window.location.reload()}),3e3)})).catch((function(e){var t=document.querySelector(".contact-form"),n=document.querySelector("#contact-form"),r=document.createElement("div");r.classList.add("alert-error"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-error").remove()}),3e3)})).finally((function(){grecaptcha.reset(widgetId5)}))}))}))}}))}));for(var r=[],a=0;a<=9;a++)r.push(a+48),r.push(a+96);r.push(8),r.push(9),r.push(46),r.push(37),r.push(39),r.push(187);var s=document.querySelector("#contact-phone-input");s&&s.addEventListener("keydown",(function(e){r.indexOf(e.keyCode)<0&&e.preventDefault()}))},2830:(e,t,n)=>{n(5221)},6673:(e,t,n)=>{n(1070)},1070:(e,t,n)=>{var i=n(9755);if(slick=n(9154),i(".contributor-desktop-list-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("profile-all-article-next"),i(this).find(".slick-prev").addClass("profile-all-article-prev")})),i(".contributor-mobile-list-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("profile-all-article-next"),i(this).find(".slick-prev").addClass("profile-all-article-prev")})),i(document).ready((function(){i(".profile-all-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})})),i(".profile-all-article").find(".filter-item").on("click",(function(){i(".profile-all-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".profile-all-article-category-selected").text(""):i(".profile-all-article-category-selected").text(i(this).text())})),i(".all-video").data("json")){var r=i(".all-video").data("json");r.links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#all-video-content-slick-nav").prepend('<div onclick="return false" class="page-prev slick-prev all-video-content__list__prev '.concat(t," ").concat(n,'"></div>')):i("#all-video-content-slick-nav").prepend('<a href="'.concat(e.url,'#all-video-content"
2class="page-prev slick-prev all-video-content__list__prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label?n?i("#all-video-content-slick-nav").append('<div onclick="return false" class="page-next slick-next all-video-content__list__next '.concat(t," ").concat(n,'"></div>')):i("#all-video-content-slick-nav").append('<a href="'.concat(e.url,'#all-video-content" class="page-next slick-next all-video-content__list__next ').concat(t," ").concat(n,'"></a>')):e.url?i("#all-video-content-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#all-video-content" class="page ').concat(t,'" >').concat(e.label,"</a>")):i("#all-video-content-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#all-video-content" class="page ').concat(t,'" onclick="return false;">').concat(e.label,"</a>"))})),i(".all-video").find(".indicator-page").find(".current").text(r.current_page)}if(i(".all-video-mobile").data("json")){var a=i(".all-video-mobile").data("json");a.links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#all-video-mobile-content-slick-nav").prepend('<div onclick="return false" class="page-prev slick-prev all-video-content__list__prev '.concat(t," ").concat(n,'"></div>')):i("#all-video-mobile-content-slick-nav").prepend('<a href="'.concat(e.url,'#all-video-content" class="page-prev slick-prev all-video-content__list__prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label?n?i("#all-video-mobile-content-slick-nav").append('<div onclick="return false" class="page-next slick-next all-video-content__list__next '.concat(t," ").concat(n,'"></div>')):i("#all-video-mobile-content-slick-nav").append('<a href="'.concat(e.url,'#all-video-content" class="page-next slick-next all-video-content__list__next ').concat(t," ").concat(n,'"></a>')):e.url?i("#all-video-mobile-content-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#all-video-content" class="page ').concat(t,'" >').concat(e.label,"</a>")):i("#all--mobile-video-content-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#all-video-content" class="page ').concat(t,'" onclick="return false;">').concat(e.label,"</a>"))})),i(".all-video-mobile").find(".indicator-page").find(".current").text(a.current_page),i(".all-video-mobile").find(".indicator-page").find(".total-pages").text(a.last_page)}},4169:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=1;i(".events-all-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("events-all-article-next"),i(this).find(".slick-prev").addClass("events-all-article-prev"),i(this).append("<div class='events-all-article-slick-nav'></div>"),i(".events-all-article-slick-nav").append(i(this).find(".slick-prev")),i(".events-all-article-slick-nav").append('<div class="slick-dots-container"></div'),i(".events-all-article-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".events-all-article-slick-nav").append(i(this).find(".slick-next")),i(".events-all-article-next").on("click",(function(){var e=i(".events-all-article").find(".slick-dots").find(".slick-active").find("button").text();if(i(".events-all-article").find(".indicator-page").find(".current").text(e),!i(this).hasClass("slick-disabled")){var t=-24*r;i(".events-all-article").find(".slick-dots").css("transform","translate("+t+"px,0)"),r++}})),i(".events-all-article-prev").on("click",(function(){var e=i(".events-all-article").find(".slick-dots").find(".slick-active").find("button").text();if(i(".events-all-article").find(".indicator-page").find(".current").text(e),!i(this).hasClass("slick-disabled")&&r>=0){var t=-24*r;i(".events-all-article").find(".slick-dots").css("transform","translate("+t+"px,0)"),r--}}))})),i(".events-all-article-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("events-all-article-mobile-next"),i(this).find(".slick-prev").addClass("events-all-article-mobile-prev"),i(this).append("<div class='events-all-article-mobile-slick-nav'></div>"),i(".events-all-article-mobile-slick-nav").append(i(this).find(".slick-prev")),i(".events-all-article-mobile-slick-nav").append('<div class="slick-dots-container"></div'),i(".events-all-article-mobile-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".events-all-article-mobile-slick-nav").append(i(this).find(".slick-next")),i(".events-all-article-mobile-next").on("click",(function(){var e=i(".events-all-article-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".events-all-article-mobile").find(".indicator-page").find(".current").text(e)})),i(".events-all-article-mobile-prev").on("click",(function(){var e=i(".events-all-article-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".events-all-article-mobile").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".events-all-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".events-all-article-mobile-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".events-all-article-content").on("afterChange",(function(e,t,n,r,a){i(".events-all-article").find(".indicator-page").find(".current").text(n+1)})),i(".events-all-article-mobile-content").on("afterChange",(function(e,t,n,r,a){i(".events-all-article-mobile").find(".indicator-page").find(".current").text(n+1)}))}));var a=i(".events-all-article-mobile-page").length;a>1?i(".events-all-article-mobile").find(".indicator-page").find(".total-pages").text(a):i(".events-all-article-mobile").find(".indicator-page").hide()},480:(e,t,n)=>{n(4169),n(1169),n(5879),n(7292)},7292:(e,t,n)=>{var i=n(9755),r=document.querySelector("#join-event-form");r&&r.addEventListener("submit",(function(e){e.preventDefault();var t=new FormData(r);document.querySelector("#join-event_join").textContent="Joining...",document.querySelector("#join-event_join-banner").textContent="Joining...",document.querySelector("#join-event_join").disabled=!0,document.querySelector("#join-event_join-banner").disabled=!0,fetch("/events/join",{method:"POST",body:t,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){if(!e.redirected)return e.json();window.location.replace(e.url)})).then((function(e){if(!e)throw new Error("Please Verify Your Email");if(!e.status)throw e;var t=document.querySelector("#events-detail-content"),n=t.children[1],r=document.createElement("div");r.classList.add("alert-success"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-profile-success").remove(),window.location.reload()}),3e3)})).catch((function(e){console.log(e);var t=document.querySelector("#events-detail-content"),n=t.children[1],r=document.createElement("div");r.classList.add("alert-error"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-profile-error").remove()}),3e3)}))}))},1169:(e,t,n)=>{var i=n(9755);slick=n(9154);i(".ongoing-events-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("ongoing-events-content-next"),i(this).find(".slick-prev").addClass("ongoing-events-content-prev"),i(this).append("<div class='ongoing-events-content-slick-nav'></div>"),i(".ongoing-events-content-slick-nav").append(i(this).find(".slick-prev")),i(".ongoing-events-content-slick-nav").append('<div class="slick-dots-container"></div'),i(".ongoing-events-content-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".ongoing-events-content-slick-nav").append(i(this).find(".slick-next")),i(".ongoing-events-content-next").on("click",(function(){var e=i(".ongoing-events").find(".slick-dots").find(".slick-active").find("button").text();i(".ongoing-events").find(".indicator-page").find(".current").text(e)})),i(".ongoing-events-content-prev").on("click",(function(){var e=i(".ongoing-events").find(".slick-dots").find(".slick-active").find("button").text();i(".ongoing-events").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".ongoing-events-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})}))},5879:(e,t,n)=>{var i=n(9755);slick=n(9154);i(".past-events-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("past-events-content-next"),i(this).find(".slick-prev").addClass("past-events-content-prev"),i(this).append("<div class='past-events-content-slick-nav'></div>"),i(".past-events-content-slick-nav").append(i(this).find(".slick-prev")),i(".past-events-content-slick-nav").append('<div class="slick-dots-container"></div'),i(".past-events-content-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".past-events-content-slick-nav").append(i(this).find(".slick-next")),i(".past-events-content-next").on("click",(function(){var e=i(".past-events").find(".slick-dots").find(".slick-active").find("button").text();i(".past-events").find(".indicator-page").find(".current").text(e)})),i(".past-events-content-prev").on("click",(function(){var e=i(".past-events").find(".slick-dots").find(".slick-active").find("button").text();i(".past-events").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".past-events-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".past-events-content").on("afterChange",(function(e,t,n,r,a){i(".past-events").find(".indicator-page").find(".current").text(n+1)}))}))},7622:(e,t,n)=>{var i=n(9755);slick=n(9154);var r,a=0;Array.from(document.querySelectorAll(".banner-faq-category-item")).length>3&&(r=!0,Array.from(document.querySelectorAll(".banner-faq-category-item"))&&Array.from(document.querySelectorAll(".banner-faq-category-item")).forEac
2h((function(e,t){e.classList.contains("active")&&(a=t)}))),i(document).ready((function(){i(".banner-faq-category").find(".list").slick({infinite:!0,slidesToShow:3,dots:!0,variableWidth:!0,centerMode:r,initialSlide:a,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})}))},4113:(e,t,n)=>{var i=n(9755);i(".faq-content").find(".list").find(".item").on("click",(function(){i(this).toggleClass("active")}))},8370:(e,t,n)=>{n(7622),n(4113)},6177:(e,t,n)=>{var i=n(9755);i(".footer-menu-item").on("click",(function(){i(this).toggleClass("active"),i(this).find(".footer-submenu").toggleClass("active")})),i(".footer-menu-desktop-item").find(".title").on("mouseover",(function(){i(this).hasClass("gold")||i(this).toggleClass("gold")})),i(".footer-menu-desktop-item").find(".title").on("mouseleave",(function(){i(this).toggleClass("gold")})),i(".footer-menu-desktop-item").find(".item").on("mouseover",(function(){i(this).toggleClass("white")})),i(".footer-menu-desktop-item").find(".item").on("mouseleave",(function(){i(this).toggleClass("white")}))},6867:(e,t,n)=>{var i=n(9755);i("#header-burger").on("click",(function(){i("#burger-menu-mobile").toggleClass("active")})),i("#burger-close").on("click",(function(){i("#burger-menu-mobile").removeClass("active")})),i("#search-desktop").on("click",(function(){i(this).toggleClass("active"),i("#search-section-desktop").toggleClass("active")})),i(".desktop-menu-item").on("mouseover",(function(){var e=i(".desktop-menu-item");1==i(this).data("child")&&(e.each((function(){i(this).addClass("nonactive"),i(this).find(".submenu").removeClass("active")})),i(this).find(".submenu").addClass("active")),i(this).removeClass("nonactive")})),i(".desktop-menu-item").on("mouseleave",(function(){i(".desktop-menu-item").each((function(){i(this).removeClass("nonactive")})),i(this).find(".submenu").removeClass("active")})),i("#account-header-mobile").on("click",(function(){i(this).data("href")?window.location.href=i(this).data("href"):(document.querySelector(".auth__overlay").classList.add("auth-active"),i(".auth__container.main__container").addClass("auth-active"),i(".auth__content.login-content").addClass("auth-active"),i(".auth__menu").eq(0).addClass("current"),i("body").addClass("hold"))})),i("#home-reward-login").on("click",(function(){i("#auth_overlay").addClass("auth-active"),i(".auth__container.main__container").addClass("auth-active"),i(".auth__content.login-content").addClass("auth-active"),i(".auth__menu").eq(0).addClass("current"),i("body").addClass("hold")}))},5047:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=["January","February","March","April","May","June","July","August","September","October","November","December"];i(".home-article-content-new").on("init",(function(e,t){}));i(document).ready((function(){})),i(".home-highlights-article").find(".filter-item").on("click",(function(){i(".home-highlights-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active")}));var a=i(".home-article-item").length;i(".home-highlights-article").find(".indicator-page").find(".total-pages").text(a),i(".home-highlights-article").find(".filter-item").on("click",(function(){var e=i(this).data("type"),t=i(this).data("baseurl"),n=i(this).data("storageurl"),a=i(this).text();if("All"==a)e="all",i(".home-highlights-article").find(".see-more").text("More Article");else{a.split("-");i(".home-highlights-article").find(".see-more").text("More ".concat(a," Article")),i(".home-highlights-article").find(".see-more").attr("href",t+"/news/main/"+e)}fetch(t+"/home/filter/articles/"+e).then((function(e){return e.json()})).then((function(e){var a=e.data;i(".section-article1").html(""),i(".section-article2").html(""),a.forEach((function(e,a){if(a<4){var s=(c=new Date(e.published_at)).getDate(),o=r[c.getMonth()],l=c.getFullYear();i(".section-article1").append('<a href="'.concat(t,"/news/").concat(e.slug,'" class="col-12 col-md-6 mb-3 px-2 text-decoration-none">\n <div class="card card-article-height d-flex align-items-start flex-column ">\n <div class="wrapper-image-thumbnail ">\n <img class="img-fluid" loading="lazy" src="').concat(n,"/").concat(e.image,'" alt="').concat(e.image_name,'"></div>\n <div class="wrapper-desc-article mt-auto d-flex flex-column align-items-start">\n <div class="content-badge my-3">
2\n <span class="badge badge-secondary">').concat(e.category,'</span></div>\n <div class="section-desc-article">\n <h3 class="truncate-2-line">').concat(e.title,' </h3>\n <span class="article-date my-4 d-block">').concat(s," ").concat(o," ").concat(l,'</span>\n </div>\n <div class="action-article mt-auto">\n <span class="badge badge-warning d-flex align-items-center">\n <div>Read to Get 2 Point</div>\n <img src="/images/ic-chevron-right.svg" class="img-fluid ml-2" loading="lazy" alt="image arrow">\n </span>\n </div>\n </div>\n </div>\n </div>\n </a>'))}else if(a>4&&a<8){var c,u=(c=new Date(e.published_at)).getDate(),d=r[c.getMonth()],h=c.getFullYear();i(".section-article2").append('<a href="'.concat(t,"/news/").concat(e.slug,'" class="col-12 col-md-4 mb-3 px-2 text-decoration-none">\n <div class="card card-article-height d-flex align-items-start flex-column ">\n <div class="wrapper-image-thumbnail ">\n <img class="img-fluid" loading="lazy" src="').concat(n,"/").concat(e.image,'" alt="').concat(e.image_name,'"></div>\n <div class="wrapper-desc-article mt-auto d-flex flex-column align-items-start">\n <div class="content-badge my-3">\n <span class="badge badge-secondary">').concat(e.category,'</span></div>\n <div class="section-desc-article">\n <h3 class="truncate-2-line">').concat(e.title,' </h3>\n <span class="article-date my-4 d-block">').concat(u," ").concat(d," ").concat(h,'</span>\n </div>\n <div class="action-article mt-auto">\n <span class="badge badge-warning d-flex align-items-center">\n <div>Read to Get 2 Point</div>\n <img src="/images/ic-chevron-right.svg" class="img-fluid ml-2" loading="lazy" alt="image arrow">\n </span>\n </div>\n </div>\n </div>\n </div>\n </a>'))}}))})).catch((function(e){console.log(e)}))})),i(".home-highlights-article").find(".filter-mobile").on("change",(function(){var e=i(this).val(),t=i(this).data("baseurl"),n=i(this).data("storageurl"),a=i(this).val();if("All"==a)e="all",i(".home-highlights-article").find(".see-more").text("More Article");else{var s=a.split("-");i(".home-highlights-article").find(".see-more").text("More "+s[0].toUpperCase()+s[1].toUpperCase()+" Article"),i(".home-highlights-article").find(".see-more").attr("href",t+"/news/main/"+e)}fetch(t+"/home/filter/articles/"+e).then((function(e){return e.json()})).then((function(e){var a=e.data;console.log(a),i(".section-article1").html(""),i(".section-article2").html(""),a.forEach((function(e,a){if(a<4){var s=(c=new Date(e.published_at)).getDate(),o=r[c.getMonth()],l=c.getFullYear();i(".section-article1").append('<a href="'.concat(t,"/news/").concat(e.slug,'" class="col-12 col-md-6 mb-3 px-2 text-decoration-none">\n <div class="card card-article-height d-flex align-items-start flex-column ">\n <div class="wrapper-image-thumbnail ">\n <img class="img-fluid" loading="lazy" src="').concat(n,"/").concat(e.image,'" alt="').concat(e.image_name,'"></div>\n <div class="wrapper-desc-article mt-auto d-flex flex-column align-items-start">\n <div class="content-badge my-3">
2\n <span class="badge badge-secondary">').concat(e.category,'</span></div>\n <div class="section-desc-article">\n <h3 class="truncate-2-line">').concat(e.title,' </h3>\n <span class="article-date my-4 d-block">').concat(s," ").concat(o," ").concat(l,'</span>\n </div>\n <div class="action-article mt-auto">\n <span class="badge badge-warning d-flex align-items-center">\n <div>Read to Get 2 Point</div>\n <img src="/images/ic-chevron-right.svg" class="img-fluid ml-2" loading="lazy" alt="image arrow">\n </span>\n </div>\n </div>\n </div>\n </div>\n </a>'))}else if(a>4&&a<8){var c,u=(c=new Date(e.published_at)).getDate(),d=r[c.getMonth()],h=c.getFullYear();i(".section-article2").append('<a href="'.concat(t,"/news/").concat(e.slug,'" class="col-12 col-md-4 mb-3 px-2 text-decoration-none">\n <div class="card card-article-height d-flex align-items-start flex-column ">\n <div class="wrapper-image-thumbnail ">\n <img class="img-fluid" loading="lazy" src="').concat(n,"/").concat(e.image,'" alt="').concat(e.image_name,'"></div>\n <div class="wrapper-desc-article mt-auto d-flex flex-column align-items-start">\n <div class="content-badge my-3">\n <span class="badge badge-secondary">').concat(e.category,'</span></div>\n <div class="section-desc-article">\n <h3 class="truncate-2-line">').concat(e.title,' </h3>\n <span class="article-date my-4 d-block">').concat(u," ").concat(d," ").concat(h,'</span>\n </div>\n <div class="action-article mt-auto">\n <span class="badge badge-warning d-flex align-items-center">\n <div>Read to Get 2 Point</div>\n <img src="/images/ic-chevron-right.svg" class="img-fluid ml-2" loading="lazy" alt="image arrow">\n </span>\n </div>\n </div>\n </div>\n </div>\n </a>'))}}))})).catch((function(e){console.log(e)}))}))},4516:(e,t,n)=>{var i=n(9755);videojs=n(3364);var r;window.onload=void((r=document.getElementById("home-video-iframe"))&&r.getAttribute("data-src")&&r.setAttribute("src",r.getAttribute("data-src"))),i(".home-highlights-video").find(".filter-item").on("click",(function(){i(".home-highlights-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".home-video-category-selected").text(""):i(".home-video-category-selected").text(i(this).text())})),i(".home-playlist-iframe").ready((function(){i(".ytp-playlist-menu").show()})),0==i(".home-highlights-video").data("videotype")?i(".home-highlights-video").find("#home-video-iframe").hide():i(".home-highlights-video").find("#home-video-player").hide(),i(".home-highlights-video").find(".item").on("click",(function(){i(".wrapper-img-thumbnail").removeClass("d-none").addClass("d-block"),i(".home-highlights-video").find("#home-video-iframe").remove(),i(".home-highlights-video").find("#home-video-player").remove(),i("#home-video-player").trigger("pause"),i("#home-video-player_html5_api").trigger("pause");var e=i(this).data("thumbnail"),t=i(this).data("baseurl"),n=i(this).data("url"),r=i(this).data("title"),a=i(this).data("point");i(".yt-thumbnail").children(".img-thumbnail-youtube").attr("src",t+"/"+e),i(".btn-play-youtube").children("span").text("Watch to Get "+a+" Point"),0==i(this).data("videotype")?(i(".home-highlights-video").find(".video").append('<video id="home-video-player" width="100%" src="'.concat(t,"/").concat(n,'" controls></video>')),i("#home-video-player").load()):(i(".home-highlights-video").find(".video").append('<iframe loading="lazy" id="home-video-iframe" class="category-video-iframe" width="100%" height="220" src="'.concat(n,'" title="').concat(r,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')),i("#home-video-iframe").load())})),i(document).on("click",".btn-play-youtube",(function(e){var t=i("#home-video-iframe").attr("src");return t.includes("?")?(i(".wrapper-img-thumbnail").removeClass("d-block").addClass("d-none"),i("#home-video-iframe").attr("src",t+"&autoplay=1&mute=1&playsinline=1")):(i(".wrapper-img-thumbnail").removeClass("d-block").addClass("d-none"),i("#home-video-iframe").attr("src",t+"?autoplay=1&mute=1&playsinline=1"))})),i(".super-tv").find(".btn-play-youtube").on("click",(function(){var e=i(".super-tv").find(".sports-video-iframe"),t=e.attr("src");return t.includes("?")?(i(".super-tv").find(".wrapper-img-thumbnail").removeClass("d-block").addClass("d-none"),e.attr("src",t+"&autoplay=1&mute=1&playsinline=1")):(i(".super-tv").find(".wrapper-img-thumbnail").removeClass("d-block").addClass("d-none"),e.attr("src",t+"?autoplay=1&mute=1&playsinline=1"))})),i(".home-highlights-video").find(".filter-item").on("click",(function(){var e=i(this).data("type"),t=i(this).data("baseurl"),n=i(this).data("storageurl");
2if("All"==i(this).text())e="all",i(".home-highlights-video").find(".see-more").text("More Video");else{var r=i(this).text().substr(5);i(".home-highlights-video").find(".see-more").text("More "+r+" Video"),i(".home-highlights-video").find(".see-more").attr("href",t+"/"+e+"/video/")}var a="";a="all"!=e?t+"/home/filter/videos/"+e:t+"/home/filter/videos/all",fetch(a).then((function(e){return e.json()})).then((function(e){var t=e.data;current="",i(".home-playlist-content").empty(),document.querySelector("#home-video-iframe").src="".concat(t[0].video_url),document.querySelector("#home-video-iframe").title="".concat(t[0].title),t.forEach((function(e){i(".home-playlist-content").append('<div class="item home-playlist-item" data-title="'.concat(e.title,'" data-thumbnail="').concat(e.image,'" data-baseUrl="').concat(n,'" data-videotype="1" data-url="').concat(e.video_url,'">\n <img src="').concat(n,"/").concat(e.image,'" alt="').concat(e.image_name,'" title="').concat(e.image_name,'>\n <div class="info">\n <div class="title">').concat(e.title,'</div>\n <div class="author">').concat(e.category,"</div>\n </div>\n </div>"))})),i(".home-highlights-video").find(".item").on("click",(function(){i(".home-highlights-video").find("#home-video-iframe").remove(),i(".home-highlights-video").find("#home-video-player").remove(),i("#home-video-player").trigger("pause"),i("#home-video-player_html5_api").trigger("pause");i(this).data("thumbnail");var e=i(this).data("baseurl"),t=i(this).data("url"),n=i(this).data("title");0==i(this).data("videotype")?(i(".home-highlights-video").find(".video").append('<video id="home-video-player" width="100%" src="'.concat(e,"/").concat(t,'" controls></video>')),i("#home-video-player").load()):(i(".home-highlights-video").find(".video").append('<iframe loading="lazy" id="home-video-iframe" class="category-video-iframe" width="100%" height="220" src="'.concat(t,'" title="').concat(n,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')),i("#home-video-iframe").load())}))})).catch((function(e){console.log(e)}))})),i(".home-highlights-video").find(".filter-mobile").on("change",(function(){var e=i(this).val(),t=i(this).data("baseurl"),n=i(this).data("storageurl"),r=i(this).val();if("All"==r)e="all",i(".home-highlights-video").find(".see-more").text("More Video");else{var a=r.split("-")[1];i(".home-highlights-video").find(".see-more").text("More "+a[0].toUpperCase()+a.slice(1)+" Video"),i(".home-highlights-video").find(".see-more").attr("href",t+"/"+e+"/video/")}var s="";s="all"!=e?t+"/home/filter/videos/"+e:t+"/home/filter/videos/all",fetch(s).then((function(e){return e.json()})).then((function(e){var t=e.data;i(".home-playlist-content").empty(),document.querySelector("#home-video-iframe").src="".concat(t[0].video_url),document.querySelector("#home-video-iframe").title="".concat(t[0].title),t.forEach((function(e){i(".home-playlist-content").append('<div class="item home-playlist-item" data-title="'.concat(e.title,'" data-thumbnail="').concat(e.image,'" data-baseUrl="').concat(n,'" data-videotype="1" data-url="').concat(e.video_url,'">\n <img src="').concat(n,"/").concat(e.image,'" alt="').concat(e.image_name,'" title="').concat(e.image_name,'>\n <div class="info">\n <div class="title">').concat(e.title,'</div>\n <div class="author">Supersoccer TV</div>\n </div>\n </div>'))})),i(".home-highlights-video").find(".item").on("click",(function(){i(".wrapper-img-thumbnail").removeClass("d-none").addClass("d-block"),i(".home-highlights-video").find("#home-video-iframe").remove(),i(".home-highlights-video").find("#home-video-player").remove(),i("#home-video-player").trigger("pause"),i("#home-video-player_html5_api").trigger("pause");var e=i(this).data("thumbnail"),t=i(this).data("baseurl"),n=i(this).data("url"),r=i(this).data("title"),a=i(this).data("point");i(".yt-thumbnail").children(".img-thumbnail-youtube").attr("src",t+"/"+e),i(".btn-play-youtube").children("span").text("Watch to Get "+a+" Point"),0==i(this).data("videotype")?(i(".home-highlights-video").find(".video").append('<video id="home-video-player" width="100%" src="'.concat(t,"/").concat(n,'" controls></video>')),i("#home-video-player").load()):(i(".home-highlights-video").find(".video").append('<iframe loading="lazy" id="home-video-iframe" class="category-video-iframe" width="100%" height="220" src="'.concat(n,'" title="').concat(r,'" frameborder="0" allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture" allowfullscreen></iframe>')),i("#home-video-iframe").load())}))})).catch((function(e){console.log(e)}))}))},492:(e,t,n)=>{var i=n(9755);slick=n(9154),i(document).ready((function(){i(".home-events-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,mobileFirst:!0,dots:!1,centerMode:!0,responsive:[{breakpoint:1023,settings:"unslick"}]})}))},1615:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=document.querySelector(".auth__overlay"),a=document.querySelectorAll(".auth__container"),s=document.querySelectorAll(".auth__menu"),o=document.querySelectorAll(".auth__content");i(".home-shop-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("home-shop-next"),i(this).find(".slick-prev").addClass("home-shop-prev"),i(this).append("<div class='home-shop-slick-nav'></div>"),i(".home-shop-slick-nav").append(i(this).find(".slick-prev")),i(".home-shop-slick-nav").append(i(this).find(".slick-dots")),i(".home-shop-slick-nav").append(i(this).find(".slick-next")),i(".home-shop-next").on("click",(function(){var e=i(".home-shop").find(".slick-active").find("button").text();i(".home-shop").find(".indicator-page").find(".current").text(e)})),i(".home-shop-prev").on("click",(function(){var e=i(".home-shop").find(".slick-active").find("button").text();i(".home-shop").find(".indicator-page").find(".current").text(e)})),i(".home-shop-content").on("afterChange",(function(e,t,n,r,a){i(".home-shop").find(".indicator-page").find(".current").text(n+1)})),i(".home-catalog-product").on("click",(function(){i("#welcome-overlay").removeClass("auth-active"),setTimeout((function(){r.classList.add("auth-active"),Array.from(a).forEac
2h((function(e){return e.classList.contains("main__container")?e.style.display="block":e.style.display="none"})),document.body.classList.add("hold"),Array.from(s)[1].classList.remove("current"),Array.from(o)[1].classList.remove("auth-active"),Array.from(s)[0].classList.add("current"),Array.from(o)[0].classList.add("auth-active")}),500),i(".auth__container.main__container").addClass("auth-active"),i("body").addClass("hold")}))})),i(document).ready((function(){i(".home-shop-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})}));var l=i(".home-shop-product").length||i(".home-catalog-product").length;i(".home-shop").find(".indicator-page").find(".total-pages").text(l),i(".home-shop").find(".filter-item").on("click",(function(){i(".home-shop").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active")}))},5662:(e,t,n)=>{n(6867),n(8248),n(8870),n(6177),n(5047),n(4516),n(492),n(1615),n(4595),n(1242),n(9863),n(2719),n(2889),n(3946),n(485),n(2240),n(8370),n(5935),n(9551),n(850),n(480),n(6673),n(6594),n(4548),n(4171),n(2369),n(2830),n(5710),n(8365),n(5863),n(5365),n(1486),n(3063)},2183:(e,t,n)=>{var i=n(9755);slick=n(9154),i(document).ready((function(){i(".banner-matches-category").find(".list").slick({infinite:!1,slidesToShow:1,dots:!0,variableWidth:!0,centerMode:!0})}))},850:(e,t,n)=>{n(2183),n(4718);var i=new URLSearchParams(window.location.search),r=i.get("city")&&i.get("city").replace("_"," "),a=i.get("location")&&i.get("location").replace("-"," ");r?document.querySelector("#match-nobar-city")&&(document.querySelector("#match-nobar-city").textContent=r):document.querySelector("#match-nobar-city")&&(document.querySelector("#match-nobar-city").textContent="All City"),a?document.querySelector("#match-nobar-venue")&&(document.querySelector("#match-nobar-venue").textContent=a):document.querySelector("#match-nobar-venue")&&(document.querySelector("#match-nobar-venue").textContent="All Location")},4718:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".nobar").on("init",(function(e,t){i(this).find(".slick-next").addClass("matches-main-next nobar-next"),i(this).find(".slick-prev").addClass("matches-main-prev nobar-next"),i(".nobar-next").on("click",(function(){var e=i(".nobar").find(".slick-dots").find(".slick-active").find("button").text();i(".matches-main").find(".indicator-nobar").find(".current").text(e)})),i(".nobar-prev").on("click",(function(){var e=i(".nobar").find(".slick-dots").find(".slick-active").find("button").text();i(".matches-main").find(".indicator-nobar").find(".current").text(e)}))})),i(".match").on("init",(function(e,t){i(this).find(".slick-next").addClass("matches-main-next match-next"),i(this).find(".slick-prev").addClass("matches-main-prev match-next"),i(".match-next").on("click",(function(){var e=i(".match").find(".slick-dots").find(".slick-active").find("button").text();i(".matches-main").find(".indicator-match").find(".current").text(e)})),i(".match-prev").on("click",(function(){var e=i(".match").find(".slick-dots").find(".slick-active").find("button").text();i(".matches-main").find(".indicator-match").find(".current").text(e)}))})),i(document).ready((function(){i(".content__schedule__list").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})})),i(".matches-main").find(".filter-item").on("click",(function(){i(".matches-main").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".matches-main-category-selected").text(""):i(".matches-main-category-selected").text(i(this).text())}));var r=i(".match").find(".content__schedule__list__wrapper").length;i(".matches-main").find(".indicator-match").find(".total-pages").text(r);var a=i(".nobar").find(".content__schedule__list__wrapper").length;i(".matches-main").find(".indicator-nobar").find(".total-pages").text(a);var s=new URLSearchParams(window.location.search),o=s.get("date"),l=s.get("location"),c=s.get("city");
2o&&(i("#nobar-date").val(o),i("#match-date").val(o)),l&&setTimeout((function(){i("#nobar-location").val(l).change()}),500),c&&i("#nobar-city").val(c);var u=i("#nobar-city").find(":selected").val()?i("#nobar-city").find(":selected").val():c||null,d=i("#nobar-city").data("baseurl");d&&fetch(d+"/match/"+u+"/vanues").then((function(e){return e.json()})).then((function(e){e.data.forEach((function(e){i("#nobar-location").append('<option class="item" value="'.concat(e.slug,'">').concat(e.name,"</option>"))}))})).catch((function(e){console.log(e)})),i("#nobar-city").on("change",(function(){var e=i(this).val(),t=i(this).data("baseurl");fetch(t+"/match/"+e+"/vanues").then((function(e){return e.json()})).then((function(e){var t=e.data;i("#nobar-location").empty(),i("#nobar-location").append('<option class="item" value="">Select Location</option>'),t.forEach((function(e){i("#nobar-location").append('<option class="item" value="'.concat(e.slug,'">').concat(e.name,"</option>"))}))})).catch((function(e){console.log(e)}))}))},3575:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=0,a=!1,s=0;Array.from(document.querySelectorAll(".banner-music-category-item")).length>3&&(a=!0,Array.from(document.querySelectorAll(".banner-music-category-item")).forEach((function(e,t){e.classList.contains("active")&&(r=t)}))),Array.from(document.querySelectorAll(".banner-music-category-item"))&&Array.from(document.querySelectorAll(".banner-music-category-item")).forEach((function(e,t){e.classList.contains("active")&&(s=t)})),i(document).ready((function(){i(".banner-music-category").find(".list").slick({infinite:!0,slidesToShow:3,dots:!0,variableWidth:!0,centerMode:a,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1,initialSlide:s}}],initialSlide:r})}))},9863:(e,t,n)=>{n(3575),n(8914),n(2143),n(7694),n(3157),n(8959)},7694:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".music-all-article-content").on("init",(function(e,t){i(".category-spotify-all-mobile-item").find(".play-btn").on("click",(function(){i(".category-spotify-all-mobile-item").each((function(){i(this).find(".play-btn").addClass("show"),i(this).find(".image").removeClass("hide"),i(this).find(".iframe-all").removeClass("show"),i(this).find(".spotify-title").addClass("show"),i(this).removeClass("transparent")})),i(this).removeClass("show"),i(this).parent().find(".image").addClass("hide"),i(this).parent().find(".iframe-all").addClass("show"),i(this).parent().find(".spotify-title").removeClass("show"),i(this).parent().addClass("transparent")}))})),i(".music-all-article-content").on("init",(function(e,t){i(".category-spotify-all-item").find(".play-btn").on("click",(function(){i(".category-spotify-all-item").each((function(){i(this).find(".play-btn").addClass("show"),i(this).find(".image").removeClass("hide"),i(this).find(".iframe-all").removeClass("show"),i(this).find(".spotify-title").addClass("show"),i(this).removeClass("transparent")})),i(this).removeClass("show"),i(this).parent().find(".image").addClass("hide"),i(this).parent().find(".iframe-all").addClass("show"),i(this).parent().find(".spotify-title").removeClass("show"),i(this).parent().addClass("transparent")})),i(".category-spotify-all-mobile-item").find(".play-btn").on("click",(function(){i(".category-spotify-all-mobile-item").each((function(){i(this).find(".play-btn").addClass("show"),i(this).find(".image").removeClass("hide"),i(this).find(".iframe-all").removeClass("show"),i(this).find(".spotify-title").addClass("show"),i(this).removeClass("transparent")})),i(this).removeClass("show"),i(this).parent().find(".image").addClass("hide"),i(this).parent().find(".iframe-all").addClass("show"),i(this).parent().find(".spotify-title").removeClass("show"),i(this).parent().addClass("transparent")}))})),i(".music-all-article").find(".filter-item").on("click",(function(){i(".music-all-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".music-all-article-category-selected").text(""):i(".music-all-article-category-selected").text(i(this).text())}));var r=i(".music-all-article-item-wrapper").length;i(".music-all-article").find(".indicator-page").find(".total-pages").text(r),i(".spotify-all-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("spotify-all-mobile-next"),i(this).find(".slick-prev").addClass("spotify-all-mobile-prev"),i(this).find(".slick-next").on("click",(function(){var e=i(".spotify-all-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".spotify-all-mobile").find(".indicator-page").find(".current").text(e)})),i(this).find(".slick-prev").on("click",(function(){var e=i(".spotify-all-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".spotify-all-mobile").find(".indicator-page").find(".current").text(e)})),i(".category-spotify-all-mobile-item").find(".play-btn").on("click",(function(){i(".category-spotify-all-mobile-item").each((function(){i(this).find(".play-btn").addClass("show"),i(this).find(".image").removeClass("hide"),i(this).find(".iframe-all").removeClass("show"),i(this).find(".spotify-title").addClass("show"),i(this).removeClass("transparent")})),i(this).removeClass("show"),i(this).parent().find(".image").addClass("hide"),i(this).parent().find(".iframe-all").addClass("show"),i(this).parent().find(".spotify-title").removeClass("show"),i(this).parent().addClass("transparent")}))})),i(".spotify-talks-all-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("spotify-talks-all-mobile-next"),i(this).find(".slick-prev").addClass("spotify-talks-all-mobile-prev"),i(".spotify-talks-all-mobile-next").on("click",(function(){var e=i(".spotify-talks-all-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".spotify-talks-all-mobile").find(".indicator-page").find(".current").text(e)})),i(this).find(".slick-prev").on("click",(function(){var e=i(".spotify-talks-all-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".spotify-talks-all-mobile").find(".indicator-page").find(".current").text(e)}))})),i(".spotify-talks-all-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("spotify-talks-all-mobile-next"),i(this).find(".slick-prev").addClass("spotify-talks-all-mobile-prev"),i(".spotify-talks-all-mobile-next").on("click",(function(){var e=i(".spotify-talks-all-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".spotify-talks-all-mobile").find(".indicator-page").find(".current").text(e)})),i(this).find(".slick-prev").on("click",(function(){var e=i(".spotify-talks-all-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".spotify-talks-all-mobile").find(".indicator-page").find(".current").text(e)}))})),i(".spotify-talk-all-content").on("init",(function(e,t){i(this).append("<div class='music-all-article-slick-nav'></div>"),i(".music-all-article-slick-nav").append(i(".spotify-talk-all").find(".spotify-all-prev")),i(".music-all-article-slick-nav").append('<div class="slick-dots-container"></div'),i(".music-all-article-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".music-all-article-slick-nav").append(i(".spotify-talk-all").find(".spotify-all-next")),i(".music-all-article-next").on("click",(function(){var e=i(".music-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".music-all-article").find(".indicator-page").find(".current").text(e)})),i(".music-all-article-prev").on("click",(function(){var e=i(".music-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".music-all-article").find(".indicator-page").find(".current").text(e)}))})),i(".spotify-music-all-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("music-all-article-next"),i(this).find(".slick-prev").addClass("music-all-article-prev"),i(this).append("<div class='music-all-article-slick-nav'></div>"),i(".music-all-article-slick-nav").append(i(this).find(".slick-prev")),i(".music-all-article-slick-nav").append('<div class="slick-dots-container"></div'),i(".music-all-article-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".music-all-article-slick-nav").append(i(this).find(".slick-next")),i(".music-all-article-next").on("click",(function(){var e=i(".music-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".music-all-article").find(".indicator-page").find(".current").text(e)})),i(".music-all-article-prev").on("click",(function(){var e=i(".music-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".music-all-article").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".spotify-all-mobile-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0,centerMode:!0}),i(".spotify-all-mobile-content").on("afterChange",(function(e,t,n,r,a){i(".spotify-all-mobile").find(".indicator-page").find(".current").text(n+1)})),i(".spotify-talks-all-mobile-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0,centerMode:!0}),i(".spotify-talks-all-mobile-content").on("afterChange",(function(e,t,n,r,a){i(".spotify-talks-all-mobile").find(".indicator-page").find(".current").text(n+1)})),i(".spotify-talk-all-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0,prevArrow:i(".spotify-all-prev"),nextArrow:i(".spotify-all-next")}),i(".spotify-talk-all-content").on("afterChange",(function(e,t,n,r,a){i(".music-all-article").find(".indicator-page").find(".current").text(n+1)})),i(".spotify-music-all-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".spotify-music-all-content").on("afterChange",(function(e,t,n,r,a){i(".music-all-article").find(".indicator-page").find(".current").text(n+1)}))})),i(".music-all-article-mobile").find(".filter-item").on("click",(function(){i(".music-all-article-mobile").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".music-all-article-mobile-category-selected").text(""):i(".music-all-article-mobile-category-selected").text(i(this).text())}));r=i(".music-all-article-mobile-page").length;(i(".music-all-article-mobile").find(".indicator-page").find(".total-pages").text(r),i(".music-all-article").data("json"))&&i(".music-all-article").data("json").links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#music-all-article-slick-nav").prepend('<div class="page-prev slick-prev '.concat(t," ").concat(n,'"></div>')):i("#music-all-article-slick-nav").prepend('<a href="'.concat(e.url,'#music-all-article" class="page-prev slick-prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label?n?i("#music-all-article-slick-nav").append('<div class="page-next slick-next '.concat(t," ").concat(n,'"></div>')):i("#music-all-article-slick-nav").append('<a href="'.concat(e.url,'#music-all-article" class="page-next slick-next ').concat(t," ").concat(n,'"></a>')):e.url?i("#music-all-article-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#music-all-article" class="page ').concat(t,'">').concat(e.label,"</a>")):i("#music-all-article-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#music-all-article" class="page ').concat(t,'" onclick="return false;">').concat(e.label,"</a>"))}));if(i(".music-all-article-mobile").data("json")){var a=i(".music-all-article-mobile").data("json");a.links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i(".indicator-page").prepend('<div class="page-prev slick-mobile-prev '.concat(t," ").concat(n,'"></div>')):i(".indicator-page").prepend('<a href="'.concat(e.url,'#music-all-article-mobile" class="page-prev slick-mobile-prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label&&(n?i(".indicator-page").append('<div class="page-next slick-mobile-next '.concat(t," ").concat(n,'"></div>')):i(".indicator-page").append('<a href="'.concat(e.url,'#music-all-article-mobile" class="page-next slick-mobile-next ').concat(t," ").concat(n,'"></a>')))})),i(".music-all-article-mobile").find(".indicator-page").find(".current").text(a.current_page)}}
2,2143:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".music-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("music-article-next"),i(this).find(".slick-prev").addClass("music-article-prev"),i(this).append("<div class='music-article-content-slick-nav'></div>"),i(".music-article-content-slick-nav").append(i(this).find(".slick-prev")),i(".music-article-content-slick-nav").append(i(this).find(".slick-dots")),i(".music-article-content-slick-nav").append(i(this).find(".slick-next")),i(".music-article-next").on("click",(function(){var e=i(".music-article").find(".slick-dots").find(".slick-active").find("button").text();i(".music-article").find(".indicator-page").find(".current").text(e)})),i(".music-article-prev").on("click",(function(){var e=i(".music-article").find(".slick-dots").find(".slick-active").find("button").text();i(".music-article").find(".indicator-page").find(".current").text(e)}))})),i(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-music-article-next"),i(this).find(".slick-prev").addClass("filter-music-article-prev")})),i(document).ready((function(){i(".music-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".music-article").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".music-article").find(".filter-item").on("click",(function(){i(".music-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".music-article-category-selected").text(""):i(".music-article-category-selected").text(i(this).text())}));var r=i(".music-article-item").length;i(".music-article").find(".indicator-page").find(".total-pages").text(r)},8914:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".music-events-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("music-events-next"),i(this).find(".slick-prev").addClass("music-events-prev"),i(this).append("<div class='music-events-content-slick-nav'></div>"),i(".music-events-content-slick-nav").append(i(this).find(".slick-prev")),i(".music-events-content-slick-nav").append(i(this).find(".slick-dots")),i(".music-events-content-slick-nav").append(i(this).find(".slick-next")),i(".music-events-next").on("click",(function(){var e=i(".music-events").find(".slick-dots").find(".slick-active").find("button").text();i(".music-events").find(".indicator-page").find(".current").text(e)})),i(".music-events-prev").on("click",(function(){var e=i(".music-events").find(".slick-dots").find(".slick-active").find("button").text();i(".music-events").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".music-events-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,mobileFirst:!0,dots:!0})}));var r=i(".music-events-item").length;i(".music-events").find(".indicator-page").find(".total-pages").text(r)},3157:(e,t,n)=>{var i=n(9755);i(".music-video").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-slide").addClass("filter-desktop-slide")})),i(document).ready((function(){i(".music-video").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".music-video").find(".filter-item").on("click",(function(){i(".music-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(".music-video-iframe").attr("src",i(this).data("video")),i(".music-playlist-iframe").attr("src",i(this).data("playlist")),i(this).addClass("active"),"All"==i(this).text()?i(".music-video-category-selected").text(""):i(".music-video-category-selected").text(i(this).text())})),i(".music-video").find(".filter-item").on("click",(function(){i(".music-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".music-video-category-selected").text(""):i(".music-video-category-selected").text(i(this).text())}))},8959:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".music-spotify-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("music-spotify-next"),i(this).find(".slick-prev").addClass("music-spotify-prev"),i(this).append("<div class='music-spotify-content-slick-nav'></div>
2"),i(".music-spotify-content-slick-nav").append(i(this).find(".slick-prev")),i(".music-spotify-content-slick-nav").append(i(this).find(".slick-dots")),i(".music-spotify-content-slick-nav").append(i(this).find(".slick-next")),i(".music-spotify-next").on("click",(function(){var e=i(".music-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".music-spotify").find(".indicator-page").find(".current").text(e)})),i(".music-spotify-prev").on("click",(function(){var e=i(".music-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".music-spotify").find(".indicator-page").find(".current").text(e)}))})),i(".music-spotify").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("music-filter-spotify-next"),i(this).find(".slick-prev").addClass("music-filter-spotify-prev")})),i(document).ready((function(){i(".music-spotify-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".music-spotify").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".music-spotify").find(".filter-item").on("click",(function(){i(".music-spotify").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active")}));var r=i(".music-spotify-item").length;i(".music-spotify").find(".indicator-page").find(".total-pages").text(r)},6396:(e,t,n)=>{var i=n(9755);slick=n(9154);i(".news-all-article").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-news-article-next"),i(this).find(".slick-prev").addClass("filter-news-article-prev")})),i(document).ready((function(){i(".news-all-article").find(".filter-item").length>6&&i(".news-all-article").find(".filter").slick({infinite:!0,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1})})),i(".news-all-article").find(".filter-item").on("click",(function(){i(".news-all-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".news-all-article-category-selected").text(""):i(".news-all-article-category-selected").text(i(this).text())}));var r=i(".news-all-article-item-wrapper").length;(i(".news-all-article").find(".indicator-page").find(".total-pages").text(r),i(".news-all-article-mobile").find(".filter-item").on("click",(function(){i(".news-all-article-mobile").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".news-all-article-mobile-category-selected").text(""):i(".news-all-article-mobile-category-selected").text(i(this).text())})),i(".news-all-article").data("json"))&&i(".news-all-article").data("json").links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#news-all-article-slick-nav").prepend('<div class="page-prev slick-prev '.concat(t," ").concat(n,'"></div>')):i("#news-all-article-slick-nav").prepend('<a href="'.concat(e.url,'#news-all-article" class="page-prev slick-prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label?n?i("#news-all-article-slick-nav").append('<div class="page-next slick-next '.concat(t," ").concat(n,'"></div>')):i("#news-all-article-slick-nav").append('<a href="'.concat(e.url,'#news-all-article" class="page-next slick-next ').concat(t," ").concat(n,'"></a>')):e.url?i("#news-all-article-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#news-all-article" class="page ').concat(t,'" >').concat(e.label,"</a>")):i("#news-all-article-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#news-all-article" class="page ').concat(t,'" onclick="return false;">').concat(e.label,"</a>"))}));if(i(".news-all-article-mobile").data("json")){var a=i(".news-all-article-mobile").data("json");a.links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i(".indicator-page").prepend('<div class="page-prev slick-mobile-prev '.concat(t," ").concat(n,'"></div>')):i(".indicator-page").prepend('<a href="'.concat(e.url,'#news-all-article-mobile" class="page-prev slick-mobile-prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label&&(n?i(".indicator-page").append('<div class="page-next slick-mobile-next '.concat(t," ").concat(n,'"></div>')):i(".indicator-page").append('<a href="'.concat(e.url,'#news-all-article-mobile" class="page-next slick-mobile-next ').concat(t," ").concat(n,'"></a>')))})),i(".news-all-article-mobile").find(".indicator-page").find(".current").text(a.current_page),i(".news-all-article-mobile").find(".indicator-page").find(".total-pages").text(a.last_page)}},7986:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=0,a=!1,s=0;Array.from(document.querySelectorAll(".banner-news-category-item")).length>3&&(a=!0,Array.from(document.querySelectorAll(".banner-news-category-item")).forEac
2h((function(e,t){e.classList.contains("active")&&(r=t)}))),Array.from(document.querySelectorAll(".banner-news-category-item"))&&Array.from(document.querySelectorAll(".banner-news-category-item")).forEach((function(e,t){e.classList.contains("active")&&(s=t)})),i(document).ready((function(){i(".banner-news-category").find(".list").slick({infinite:!0,slidesToShow:3,dots:!0,variableWidth:!0,centerMode:a,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1,initialSlide:s}}],initialSlide:r})}))},2719:(e,t,n)=>{n(7986),n(117),n(7139),n(6396)},7139:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".news-popular-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("news-popular-article-next"),i(this).find(".slick-prev").addClass("news-popular-article-prev"),i(this).append("<div class='news-popular-article-slick-nav'></div>"),i(".news-popular-article-slick-nav").append(i(this).find(".slick-prev")),i(".news-popular-article-slick-nav").append(i(this).find(".slick-dots")),i(".news-popular-article-slick-nav").append(i(this).find(".slick-next")),i(".news-popular-article-next").on("click",(function(){var e=i(".news-popular-article").find(".slick-dots").find(".slick-active").find("button").text();i(".news-popular-article").find(".indicator-page").find(".current").text(e)})),i(".news-popular-article-prev").on("click",(function(){var e=i(".news-popular-article").find(".slick-dots").find(".slick-active").find("button").text();i(".news-popular-article").find(".indicator-page").find(".current").text(e)}))})),i(".news-popular-article").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-news-article-next"),i(this).find(".slick-prev").addClass("filter-news-article-prev")})),i(document).ready((function(){i(".news-popular-article-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".news-popular-article-content").on("afterChange",(function(e,t,n,r,a){i(".news-popular-article").find(".indicator-page").find(".current").text(n+1)})),i(".news-popular-article").find(".filter-item").length>6&&i(".news-popular-article").find(".filter").slick({infinite:!0,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})})),i(".news-popular-article").find(".filter-item").on("click",(function(){i(".news-popular-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".news-popular-article-category-selected").text(""):i(".news-popular-article-category-selected").text(i(this).text())}));var r=i(".news-popular-article-item").length;i(".news-popular-article").find(".indicator-page").find(".total-pages").text(r)},117:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".news-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("news-article-next"),i(this).find(".slick-prev").addClass("news-article-prev"),i(this).append("<div class='news-article-slick-nav'></div>"),i(".news-article-slick-nav").append(i(this).find(".slick-prev")),i(".news-article-slick-nav").append(i(this).find(".slick-dots")),i(".news-article-slick-nav").append(i(this).find(".slick-next")),i(".news-article-next").on("click",(function(){var e=i(".news-article").find(".slick-dots").find(".slick-active").find("button").text();i(".news-article").find(".indicator-page").find(".current").text(e)})),i(".news-article-prev").on("click",(function(){var e=i(".news-article").find(".slick-dots").find(".slick-active").find("button").text();i(".news-article").find(".indicator-page").find(".current").text(e)}))})),i(".news-article").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-news-article-next"),i(this).find(".slick-prev").addClass("filter-news-article-prev")})),i(document).ready((function(){i(".news-article-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".news-article-content").on("afterChange",(function(e,t,n,r,a){i(".news-article").find(".indicator-page").find(".current").text(n+1)})),i(".news-article").find(".filter-item").length>6&&i(".news-article").find(".filter").slick({infinite:!0,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})})),i(".news-article").find(".filter-item").on("click",(function(){i(".news-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".news-article-category-selected").text(""):i(".news-article-category-selected").text(i(this).text())}));var r=i(".news-article-item").length;i(".news-article").find(".indicator-page").find(".total-pages").text(r)},3063:(e,t,n)=>{var i=n(9755),r=document.querySelector("#auth__otp-resub");r&&r.addEventListener("submit",(function(e){e.preventDefault();var t=new FormData(r);i("#otp-resub-btn").hide(),i(".loader").css("display","block"),fetch("/otp-resubmission/verify",{method:"POST",body:t,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(!e.status)throw e;i("#otp-resub-btn").show(),i(".loader").css("display","none"),window.location.href="/dashboard"})).catch((function(e){var t=document.querySelector(".otp-resubmission-section__body"),n=document.createElement("div");n.classList.add("alert-error"),n.textContent=e.message,t.insertBefore(n,t.children[0]),setTimeout((function(){i(".alert-error").remove()}),3e3),i("#otp-resub-btn").hide(),i(".loader").css("display","block")})).finally((function(){i("#otp-resub-btn").show(),i(".loader").css("display","none")}))})),document.querySelector("#ask-new-otp-btn")&&document.querySelector("#ask-new-otp-btn").addEventListener("click",(function(){i(".mini-loader").css("display","block"),i("#ask-new-otp-btn").css("display","none"),fetch("new/".concat(document.querySelector("#ask-new-otp-btn").dataset.user),{method:"Get",headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(!e.status)throw e;var t=document.querySelector(".otp-resubmission-section__body"),n=document.createElement("div");n.classList.add("alert-success"),n.textContent=e.message,t.insertBefore(n,t.children[0]),setTimeout((function(){i(".mini-loader").css("display","none"),i("#ask-new-otp-btn").css("display","block"),i(".alert-success").remove(),window.location.reload}),3e3)})).catch((function(e){var t=document.querySelector(".otp-resubmission"),n=document.createElement("div");n.classList.add("alert-error"),n.textContent=e.message,t.insertBefore(n,t.children[0]),setTimeout((function(){i(".mini-loader").css("display","none"),i("#ask-new-otp-btn").css("display","block"),i(".alert-error").remove()}),3e3)})).finally((function(){return document.querySelector("#otp-resub-btn").textContent="Verifikasi Email"}))}));var a=document.querySelector("#otp-counter")?document.querySelector("#otp-counter").dataset.otpDate:null,s=new Date(a).getTime();if(s>0)var o=setInterval((function(){var e=(new Date).getTime(),t=s-e,n=Math.floor(t%36e5/6e4),i=Math.floor(t%6e4/1e3);document.getElementById("otp-counter").innerHTML=n+":"+i,t<0&&(clearInterval(o),document.getElementById("otp-counter").innerHTML="EXPIRED",setTimeout((function(){window.location.reload}),2e3))}),1e3);var l=document.getElementById("inputOtpCode");l.addEventListener("input",(function(){""!==l.value.trim()?document.getElementById("otp-resub-btn").disabled=!1:document.getElementById("otp-resub-btn").disabled=!0}))}
2,7829:(e,t,n)=>{var i=n(9755);n(3587);var r=document.querySelector("#change-password-form"),a=(document.querySelector(".city-group"),document.querySelector("#complete-profile")),s=function(e,t){""===document.querySelector("#prof-".concat(t,"-input")).value?document.querySelector("#prof-".concat(t,"-input-error"))||(document.querySelector("#prof-".concat(t,"-alert")).textContent="this field is required",document.querySelector("#prof-".concat(t,"-alert")).classList.add("visible")):document.querySelector("#prof-".concat(t,"-alert")).classList.remove("visible")};document.querySelector("#prof-firstname-input")&&document.querySelector("#prof-firstname-input").addEventListener("change",(function(e){s(0,"firstname")})),document.querySelector("#prof-lastname-input")&&document.querySelector("#prof-lastname-input").addEventListener("change",(function(e){s(0,"lastname")})),document.querySelector("#prof-email-input")&&document.querySelector("#prof-email-input").addEventListener("change",(function(e){s(0,"email")})),document.querySelector("#prof-phone_number-input")&&document.querySelector("#prof-phone_number-input").addEventListener("change",(function(e){s(0,"phone_number")})),i(document).ready((function(){i.validator.addMethod("mustBe18",(function(e,t){return new Date(Date.now()-new Date(e).getTime()).getUTCFullYear()-1970>=18}),"You must be 18 to access this page"),i.validator.addMethod("emailFormat",(function(e,t){return e.match(/[a-z0-9!#$%&'*+/=?^_`{|}~-]+(?:\.[a-z0-9!#$%&'*+/=?^_`{|}~-]+)*@(?:[a-z0-9](?:[a-z0-9-]*[a-z0-9])?\.)+[a-z0-9](?:[a-z0-9-]*[a-z0-9])?/)}),"Please insert valid email"),i("#complete-profile").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{email:{required:!0,emailFormat:!0,email:!0},firstname:{required:!0},lastname:{required:!0},username:{required:!0,minlength:5},date_of_birth:{required:!0,mustBe18:!0},phone_number:{required:!0,minlength:10,maxlength:13},gender:{required:!0},ktp_number:{required:!0,minlength:16,maxlength:16},city_id:{required:!0},postal_code:{required:!0,minlength:5},address:{required:!0}},messages:{phone_number:{minlength:"Please input a valid number",maxlength:"Phone number must be less than 13 numbers"},ktp_number:{required:"Please input your id number",minlength:"ID must be 16 numbers",maxlength:"ID must be 16 numbers"},postal_code:{minlength:"Minimun length 5 characters"},address:{}}}),i("#complete-profile").on("submit",(function(e){if(i(this).valid()){e.preventDefault();var t=new FormData(a);fetch(a.getAttribute("action"),{method:"POST",body:t,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(!e.status)throw e;var t=document.querySelector(".profile-submenu"),n=t.children[1],r=document.createElement("div");r.classList.add("alert-profile-success"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-profile-success").remove(),window.location.reload()}),3e3)})).catch((function(e){e.errors&&(e.errors.phone_number&&(document.querySelector("#prof-phone_number-alert").classList.add("visible"),document.querySelector("#prof-phone_number-alert").textContent=e.errors.phone_number),e.errors.username&&(document.querySelector("#update-uname-alert").classList.add("visible"),document.querySelector("#update-uname-alert").textContent=e.errors.username));var t=document.querySelector(".profile-submenu"),n=t.children[1],r=document.createElement("div");r.classList.add("alert-profile-error"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-profile-error").remove(),Array.from(document.querySelectorAll(".alert")).forEach((function(e){e.classList.remove("visible"),e.style.display="none"}))}),3e3)}))}}))})),i(document).ready((function(){i("#change-password-form").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{oldpassword:{required:!0,minlength:8},newpassword:{required:!0,minlength:8},confirmpassword:{required:!0,minlength:8,equalTo:"#newpassword"}},messages:{oldpassword:{required:"Please enter your old password",minlength:"please input min 8 characters"},newpassword:{required:"Please enter your new password",minlength:"please input min 8 characters"},confirmpassword:{required:"Please enter your new password",minlength:"please input min 8 characters",equalTo:"password doesn't match"}}}),i("#change-password-form").on("submit",(function(e){if(i(this).val
2id()){e.preventDefault();var t=r.getAttribute("action"),n=new FormData(r);fetch(t,{method:"POST",body:n,headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(!e.status)throw e;var t=document.querySelector("#profile-changePass"),n=t.children[1],r=document.createElement("div");r.classList.add("alert-profile-success"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-profile-success").remove(),window.location.reload()}),3e3)})).catch((function(e){var t=document.querySelector("#profile-changePass"),n=t.children[1],r=document.createElement("div");r.classList.add("alert-profile-error"),r.textContent=e.message,t.insertBefore(r,n),setTimeout((function(){i(".alert-profile-error").remove()}),3e3)}))}}))}));var o=document.querySelector(".change-password-rules"),l=document.querySelector("#newpassword");l&&l.addEventListener("focus",(function(){o.style.display="block"})),l&&l.addEventListener("blur",(function(){o.style.display="none"})),l&&l.addEventListener("keyup",(function(e){document.querySelector(".confirm-change-btn").disabled=!0,/(.*[A-Z].*)/g.test(e.target.value)?o.children[0].classList.add("passed"):o.children[0].classList.remove("passed"),/(.*[0-9].*)(.*[0-9].*)/g.test(e.target.value)?o.children[1].classList.add("passed"):o.children[1].classList.remove("passed"),e.target.value.length>=8?o.children[2].classList.add("passed"):o.children[2].classList.remove("passed"),Array.from(o.children).every((function(e){return e.classList.contains("passed")}))?(document.querySelector(".change-password-rules").classList.remove("rules-visible"),document.querySelector(".confirm-change-btn").disabled=!1):document.querySelector(".change-password-rules").classList.add("rules-visible")}))},4548:(e,t,n)=>{var i=n(9755);n(7829),n(7840),n(2312);var r=document.querySelectorAll(".profile__menu__item");Array.from(r).forEach((function(e){e.addEventListener("click",(function(){e.children&&(e.children[1].classList.contains("active")?e.children[1].classList.remove("active"):e.children[1].classList.add("active"))}))}));var a=document.querySelectorAll(".profile-section__main"),s=document.querySelector(".profile-section__side"),o=document.querySelectorAll(".profile-return"),l=document.querySelector(".my-profile__community__menus"),c=document.querySelector("#my-community-menu"),u=document.querySelector("#create-community-menu"),d=document.querySelectorAll(".my-profile__content"),h=(document.querySelectorAll(".menu__header"),document.querySelectorAll(".menu__dropdown__item"),function(){document.querySelector(".header").classList.remove("launch-to-top"),document.querySelector(".footer-menu").classList.remove("launch-to-top"),document.querySelector(".footer-menu-desktop").classList.remove("launch-to-top"),document.querySelector(".footer-links").classList.remove("launch-to-top"),document.querySelector(".footer-links-desktop").classList.remove("launch-to-top")});Array.from(o).forEach((function(e){return e.addEventListener("click",(function(){Array.from(a).forEach((function(e){return e.classList.remove("profile-active")})),s.style.display="block"}))})),c&&c.addEventListener("click",(function(){Array.from(d).forEach((function(e){return e.classList.contains("profile-community")?e.classList.add("profile-active"):e.classList.remove("profile-active")})),Array.from(l.children).forEach((function(e){return"My Community"===e.textContent?e.classList.add("profile-active"):e.classList.remove("profile-active")}))})),u&&u.addEventListener("click",(function(){Array.from(d).forEach((function(e){return e.classList.contains("profile-register")?e.classList.add("profile-active"):e.classList.remove("profile-active")})),Array.from(l.children).forEach((function(e){return"Register a Community"===e.textContent?e.classList.add("profile-active"):e.classList.remove("profile-active")}))}));var f=document.querySelector("#profile-logout");f&&f.addEventListener("click",(function(){window.scrollTo(0,0),document.querySelector("#profile-community__logout").classList.add("auth-active"),document.body.classList.add("hold"),document.querySelector(".header").classList.add("launch-to-top"),document.querySelector(".footer-menu").classList.add("launch-to-top"),document.querySelector(".footer-menu-desktop").classList.add("launch-to-top"),document.querySelector(".footer-links").classList.add("launch-to-top"),document.querySelector(".footer-links-desktop").classList.add("launch-to-top")}));var p=document.querySelector("#profile-community__close");p&&p.addEventListener("click",(function(){document.querySelector("#profile-community__leave").classList.remove("auth-active"),document.body.classList.remove("hold"),h()}));var m=document.querySelector("#leave-communtiy-cancel");m&&m.addEventListener("click",(function(){document.querySelector("#profile-community__leave").classList.remove("auth-active"),document.body.classList.remove("hold"),h()}));var g=document.querySelector("#profile-logout__close");g&&g.addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#profile-community__logout").classList.remove("auth-active"),document.body.classList.remove("hold"),h()}));var v=document.querySelector("#logout-cancel");v&&v.addEventListener("click",(function(e){e.preventDefault(),document.querySelector("#profile-community__logout").classList.remove("auth-active"),document.body.classList.remove("hold"),h()})),Array.from(document.querySelectorAll(".my-profile__forgot")).forEac
2h((function(e){return e.addEventListener("click",(function(e){window.scrollTo(0,0),e.preventDefault(),document.querySelector(".main-container").classList.add("forget__container-opened"),document.querySelector("#overlay-forgot").classList.add("auth-active"),document.querySelector("#overlay-forgot").children[0].classList.add("auth-active"),document.body.classList.add("hold")}))})),slick=n(9154),i(".redeem__history__list").on("init",(function(e,t){i(this).find(".slick-next").addClass("redeem__history__list__next"),i(this).find(".slick-prev").addClass("redeem__history__list__prev"),i(this).append("<div class='redeem__history__slick-nav'></div>"),i(".redeem__history__slick-nav").append(i(this).find(".slick-prev")),i(".redeem__history__slick-nav").append(i(this).find(".slick-dots")),i(".redeem__history__slick-nav").append(i(this).find(".slick-next")),i(".redeem__history__list__next").on("click",(function(){var e=i(".redeem__history").data("json").current_page;i(".redeem__history__slider").find(".indicator-page").find(".current").text(e)})),i(".redeem__history__list__prev").on("click",(function(){var e=i(".redeem__history").data("json").current_page;i(".redeem__history__slider").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".redeem__history__list").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})}));var y=i(".page-container").find(".page").length;i(".redeem__history__slider").find(".indicator-page").find(".total-pages").text(y),Array.from(document.querySelectorAll(".leave-profile-community")).forEach((function(e){return e.addEventListener("click",(function(t){t.preventDefault(),document.querySelector("#profile-community__leave").classList.add("auth-active"),document.body.classList.add("hold"),document.querySelector("#leave-community-confirm").addEventListener("click",(function(){fetch("/community/group/".concat(e.dataset.group,"/member/").concat(e.dataset.member,"/delete"),{method:"GET",headers:{"X-CSRF-TOKEN":document.querySelector('meta[name="csrf-token"]').content,Accept:"application/json"}}).then((function(e){return e.json()})).then((function(e){if(e.errors||!e.status)throw e;window.location.reload()})).catch((function(e){console.log(e)})).finally((function(){}))}))}))}))},7840:()=>{for(var e=[],t=0;t<=9;t++)e.push(t+48),e.push(t+96);e.push(8),e.push(9),e.push(46),e.push(37),e.push(39),e.push(187);var n=document.querySelector("#prof-phone_number-input");n&&n.addEventListener("keydown",(function(t){e.indexOf(t.keyCode)<0&&t.preventDefault()}));var i=["jpg","jpeg","png"],r=document.querySelector("#user-image");r&&r.addEventListener("change",(function(e){var t=e.target.value.split(".")[1],n=!1;if(i.forEach((function(e){String(e).toLowerCase()!==String(t).toLowerCase()||(n=!0)})),!n||e.target.files[0].size>1e6)document.querySelector("#update-img-alert").textContent="file is not acceptable",document.querySelector("#update-img-alert").classList.add("visible"),document.querySelector("#update-confirm-btn").disabled=!0;else{var r=new FileReader;r.onload=function(e){document.querySelector("#user-pic-image").src=e.target.result}
2,r.readAsDataURL(e.target.files[0]),document.querySelector("#update-img-alert").classList.remove("visible"),document.querySelector("#update-confirm-btn").disabled=!1}}))},2312:(e,t,n)=>{var i=n(9755);if(slick=n(9154),i(".redeem__history").data("json")){var r=i(".redeem__history").data("json");r.links.forEach((function(e){var t="",n="";t=e.active?"active":"",n=e.url?"":"disabled","« Previous"==e.label?n?i("#redeem__history-slick-nav").prepend('<div onclick="return false" class="page-prev slick-prev redeem__history__list__prev '.concat(t," ").concat(n,'"></div>')):i("#redeem__history-slick-nav").prepend('<a href="'.concat(e.url,'#redeem__history" class="page-prev slick-prev redeem__history__list__prev ').concat(t," ").concat(n,'"></a>')):"Next »"==e.label?n?i("#redeem__history-slick-nav").append('<div onclick="return false" class="page-next slick-next redeem__history__list__next '.concat(t," ").concat(n,'"></div>')):i("#redeem__history-slick-nav").append('<a href="'.concat(e.url,'#redeem__history" class="page-next slick-next redeem__history__list__next ').concat(t," ").concat(n,'"></a>')):e.url?i("#redeem__history-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#redeem__history" class="page ').concat(t,'" >').concat(e.label,"</a>")):i("#redeem__history-slick-nav").find(".page-container").append('<a href="'.concat(e.url,'#redeem__history" class="page ').concat(t,'" onclick="return false;">').concat(e.label,"</a>"))})),i(".redeem__history__slider").find(".indicator-page").find(".current").text(r.current_page)}},8365:(e,t,n)=>{n(7125)},7125:(e,t,n)=>{var i=n(9755);n(3587),i(document).ready((function(){var e,t,n;i("#reset-password-form-by-email").validate({errorClass:"alert",errorElement:"span",highlight:function(e,t,n){i(e).parents("div.control-group").addClass(t).removeClass(n)},unhighlight:function(e,t,n){i(e).parents(".error").removeClass(t).addClass(n)},rules:{password:{required:!0},password_confirmation:{required:!0,minlength:8,equalTo:"#reset-new-password"}},messages:(e={password_confirmation:{required:"Please insert your password",minlength:"Password must be 8 characters minimal"}},t="password_confirmation",n={required:"Please insert your password",minlength:"Password must be 8 characters minimal",equalTo:"Password doesn't match"},t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e)})}));var r=document.querySelector("#reset-new-password");r&&r.addEventListener("keyup",(function(e){document.querySelector(".confirm-reset-btn").disabled=!0,/(.*[A-Z].*)/g.test(e.target.value)&&/(.*[0-9].*)(.*[0-9].*)/g.test(e.target.value)&&e.target.value.length>=8||""===e.target.value?(document.querySelector("#reset-new-password-alert").classList.remove("visible"),document.querySelector(".confirm-reset-btn").disabled=!1):(document.querySelector("#reset-new-password-alert").textContent="New password must fullfil the hint conditions",document.querySelector("#reset-new-password-alert").classList.add("visible"))}))},5365:(e,t,n)=>{n(865)},865:(e,t,n)=>{var i=n(9755),r=2;i("#load-more-search").on("click",(function(){i("#load-more-search").html("Loading...");var e=i("#search-results").data("current-url")+"?q="+i("#search-results").data("keyword")+"&page="+r;i("#search-results").data("result");fetch(e).then((function(e){return e.text()})).then((function(e){var t=i.parseHTML(e),n=i(t).find(".search-results-content-item");n.length>0?(window.setTimeout((function(){i(".search-results-content").append(n),i("#load-more-search").html("Load More")}),500),r++):i("#load-more-search").hide()})).catch((function(e){console.log(e)}))}))},4171:(e,t,n)=>{var i=n(9755);n(1948);i(".pic-mobile-slider").on("init",(function(e,t){i(this).find(".slick-next").addClass("pic-mobile-slider-next"),i(this).find(".slick-prev").addClass("pic-mobile-slider-prev"),i(this).append("<div class='pic-mobile-slider-slick-nav'><p>Swipe</p></div>"),i(".pic-mobile-slider-slick-nav").append(i(this).find(".slick-prev")),i(".pic-mobile-slider-slick-nav").append('<div class="slick-dots-container"></div'),i(".pic-mobile-slider-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".pic-mobile-slider-slick-nav").append(i(this).find(".slick-next"))})),i(document).ready((function(){i(".pic-mobile-slider").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})}));var r=function(){document.querySelector(".header").classList.remove("launch-to-top")};document.querySelectorAll(".home-shop-product");i(".shop-all-article").find(".filter-item").on("click",(function(){window.location=i(this).data("value")+"#shop-all-article"})),i("#redeem-action").on("click",(function(){i("#redeem-action").attr("disabled",!0),document.querySelector("#redeem").classList.remove("auth-active"),document.body.classList.remove("hold"),r();var e=i(this).data("url");i("#redeem-form").submit((function(t){t.preventDefault(),t.stopImmediatePropagation();var n=new FormData;n.append("reward",i("#redeem-form").find("#reward_id").val()),n.append("size",i("#redeem-form").find("#reward_size").val()),n.append("_token",
2i("#redeem-form").find("input[name='_token']").val()),fetch(e,{method:"POST",body:n,headers:{Accept:"application/json"}}).then((function(e){if(!e.redirected)return e.json();window.location.replace(e.url)})).then((function(e){if(!e)throw new Error("Please Verify Your Email");400==e.code?i("body").prepend('<div class="alert-redeem alert-warning">'.concat(e.message,"</div>")):200==e.code&&i("body").prepend('<div class="alert-redeem alert-success">'.concat(e.message,"</div>")),setTimeout((function(){i(".alert-redeem").remove(),window.location.reload()}),3e3)})).catch((function(e){e.message?i("body").prepend('<div class="alert-redeem alert-error">'.concat(e.message,"</div>")):i("body").prepend('<div class="alert-redeem alert-error">'.concat(e,"</div>")),setTimeout((function(){i(".alert-error").remove(),window.location.reload()}),3e3)}))})),i("#redeem-form").find("#submit-redeem").trigger("click")}));var a=document.querySelector("#product-redeem-close");a&&a.addEventListener("click",(function(){document.querySelector("#reward_size").value="",document.querySelector("#redeem").classList.remove("auth-active"),document.body.classList.remove("hold"),r()}));var s=document.querySelectorAll(".product-pic-thumb"),o=i(".product-pic-main").children();Array.from(s).forEach((function(e){return e.addEventListener("click",(function(){o.attr("src",e.src),Array.from(s).forEach((function(t){t.src==e.src?t.classList.add("active"):t.classList.remove("active")}))}))}));var l=document.querySelectorAll(".size-list__item");Array.from(l).forEach((function(e){return e.addEventListener("click",(function(){Array.from(l).forEach((function(t){t.textContent===e.textContent?t.classList.add("size-active"):t.classList.remove("size-active")}))}))})),i("#reward_size").on("change",(function(){"Pilih Ukuran"==i(this).val()?i("#redeem-action").attr("disabled",!0):i("#redeem-action").attr("disabled",!1)}))},1948:(e,t,n)=>{var i=n(9755);n(9755).data;slick=n(9154);i(".shop-all-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("shop-all-article-next"),i(this).find(".slick-prev").addClass("shop-all-article-prev"),i(this).append("<div class='shop-all-article-slick-nav'></div>"),i(".shop-all-article-slick-nav").append(i(this).find(".slick-prev")),i(".shop-all-article-slick-nav").append('<div class="slick-dots-container"></div'),i(".shop-all-article-slick-nav").find(".slick-dots-container").append(i(this).find(".slick-dots")),i(".shop-all-article-slick-nav").append(i(this).find(".slick-next")),i(".shop-all-article-next").on("click",(function(){var e=i(".shop-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".shop-all-article").find(".indicator-page").find(".current").text(e)})),i(".shop-all-article-prev").on("click",(function(){var e=i(".shop-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".shop-all-article").find(".indicator-page").find(".current").text(e)}))})),i(".shop-all-article").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-shop-article-next"),i(this).find(".slick-prev").addClass("filter-shop-article-prev")})),i(".shop-all-article-mobile").find(".filter").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-shop-article-next"),i(this).find(".slick-prev").addClass("filter-shop-article-prev")})),i(document).ready((function(){i(".shop-all-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".shop-all-article").find(".filter-item").length>=6&&i(".shop-all-article").find(".filter").slick({infinite:!1,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})})),i(".shop-all-article").find(".filter-item").on("click",(function(){i(".shop-all-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".shop-all-article-category-selected").text(""):i(".shop-all-article-category-selected").text(i(this).text())}));var r=i(".shop-all-article-item-wrapper").length;i(".shop-all-article").find(".indicator-page").find(".total-pages").text(r),i(".shop-all-article-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("shop-all-article-mobile-next"),i(this).find(".slick-prev").addClass("shop-all-article-mobile-prev"),i(this).find(".slick-next").on("click",(function(){var e=i(".shop-all-article-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".shop-all-article-mobile").find(".indicator-page").find(".current").text(e)})),i(this).find(".slick-prev").on("click",(function(){var e=i(".shop-all-article-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".shop-all-article-mobile").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".shop-all-article-mobile-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0,centerMode:!0})})),i(".shop-all-article-mobile").find(".filter-item").on("click",(function(){i(".shop-all-article-mobile").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".shop-all-article-mobile-category-selected").text(""):i(".shop-all-article-mobile-category-selected").text(i(this).text())}));r=i(".shop-all-article-mobile-page").length;i(".shop-all-article-mobile").find(".indicator-page").find(".total-pages").text(r)},4595:(e,t,n)=>{var i=n(9755);
2Array.from(document.querySelectorAll(".mobile-socials")).forEach((function(e){e.addEventListener("click",(function(){i("#burger-menu-mobile").removeClass("active"),document.querySelector(".main-container").classList.add("forget__container-opened"),document.querySelector("#overlay-socials").classList.add("auth-active"),document.querySelector("#overlay-socials").children[0].classList.add("auth-active"),document.body.classList.add("hold"),document.querySelector("#socials-container").classList.add("auth-active"),document.body.scrollTop=0,document.documentElement.scrollTop=0,document.querySelector("#mobile-socials-title").textContent=e.dataset.title,document.querySelector("#mobile-socials-text").textContent=e.dataset.title,function(e){if(document.querySelector(".socials-links").innerHTML="","instagram"===e){var t=document.createElement("a");t.href="https://www.instagram.com/mysupersoccer/",t.textContent="Super Soccer's Instagram",t.classList.add("secondary-btn"),t.target="_blank";var n=document.createElement("a");n.href="https://www.instagram.com/superchallenge_id/",n.textContent="Super Challenge's Instagram",n.classList.add("secondary-btn"),n.target="_blank";var i=document.createElement("a");i.href="https://www.instagram.com/superadventure_id/",i.textContent="Super Adventure's Instagram",i.classList.add("secondary-btn"),i.target="_blank";var r=document.createElement("a");r.href="https://www.instagram.com/supermusic_id/",r.textContent="Super Music's Instagram",r.classList.add("secondary-btn"),r.target="_blank",document.querySelector(".socials-l
2inks").appendChild(t),document.querySelector(".socials-links").appendChild(n),document.querySelector(".socials-links").appendChild(i),document.querySelector(".socials-links").appendChild(r)}if("twitter"===e){var a=document.createElement("a");a.href="https://twitter.com/my_supersoccer",a.textContent="Super Soccer's Twitter",a.classList.add("secondary-btn"),a.target="_blank";var s=document.createElement("a");s.href="https://twitter.com/my_supersoccer",s.textContent="Super Challenge's Twitter",s.classList.add("secondary-btn"),s.target="_blank";var o=document.createElement("a");o.href="https://twitter.com/adventure_super/",o.textContent="Super Adventure's Twitter",o.classList.add("secondary-btn"),o.target="_blank";var l=document.createElement("a");l.href="https://twitter.com/SuperMusic_ID",l.textContent="Super Music's Twitter",l.classList.add("secondary-btn"),l.target="_blank",document.querySelector(".socials-links").appendChild(a),document.querySelector(".socials-links").appendChild(s),document.querySelector(".socials-l
2inks").appendChild(o),document.querySelector(".socials-links").appendChild(l)}if("facebook"===e){var c=document.createElement("a");c.href="https://www.facebook.com/TVSuperSoccer",c.textContent="Super Soccer's Facebook",c.classList.add("secondary-btn"),c.target="_blank";var u=document.createElement("a");u.href="https://www.facebook.com/SuperChallengeID/",u.textContent="Super Challenge's Facebook",u.classList.add("secondary-btn"),u.target="_blank";var d=document.createElement("a");d.href="https://www.facebook.com/SuperAdventureID/",d.textContent="Super Adventure's Facebook",d.classList.add("secondary-btn"),d.target="_blank";var h=document.createElement("a");h.href="https://www.facebook.com/SuperMusicID",h.textContent="Super Music's Facebook",h.classList.add("secondary-btn"),h.target="_blank",document.querySelector(".socials-links").appendChild(c),document.querySelector(".socials-links").appendChild(u),document.querySelector(".socials-links").appendChild(d),document.querySelector(".socials-links").appendChild(h)}if("youtube"===e){var f=document.createElement("a");f.href="https://www.youtube.com/channel/UCSM0oVXkkPrnvx902advygA",f.textContent="Super Soccer's Youtube",f.classList.add("secondary-btn"),f.target="_blank";var p=document.createElement("a");p.href="https://www.youtube.com/channel/UCQQ5t_uMS3l6Cq934qSJcYQ",p.textContent="Super Challenge's Youtube",p.classList.add("secondary-btn"),p.target="_blank";var m=document.createElement("a");m.href="https://www.youtube.com/superadventureid",m.textContent="Super Adventure's Youtube",m.classList.add("secondary-btn"),m.target="_blank";var g=document.createElement("a");g.href="https://www.youtube.com/user/SUPERMUSICID",g.textContent="Super Music's Youtube",g.classList.add("secondary-btn"),g.target="_blank";var v=document.createElement("a");v.href="https://www.youtube.com/channel/UCBNibjyWC1zK-4tjw1yCf-A",v.textContent="Super Talk's Youtube",v.classList.add("secondary-btn"),v.target="_blank",document.querySelector(".socials-l
2inks").appendChild(f),document.querySelector(".socials-links").appendChild(p),document.querySelector(".socials-links").appendChild(m),document.querySelector(".socials-links").appendChild(g),document.querySelector(".socials-links").appendChild(v)}}(e.dataset.title)}))}))},1816:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".sports-all-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("sports-all-article-next"),i(this).find(".slick-prev").addClass("sports-all-article-prev"),i(".sports-all-article-next").on("click",(function(){var e=i(".sports-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".sports-all-article").find(".indicator-page").find(".current").text(e)})),i(".sports-all-article-prev").on("click",(function(){var e=i(".sports-all-article").find(".slick-dots").find(".slick-active").find("button").text();i(".sports-all-article").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".sports-all-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0})})),i(".sports-all-article").find(".filter-item").on("click",(function(){i(".sports-all-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".sports-all-article-category-selected").text(""):i(".sports-all-article-category-selected").text(i(this).text())}));var r=i(".sports-all-article-item-wrapper").length;i(".sports-all-article").find(".indicator-page").find(".total-pages").text(r)},2949:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".sports-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("sports-article-next"),i(this).find(".slick-prev").addClass("sports-article-prev"),i(".sports-article-next").on("click",(function(){var e=i(".sports-article").find(".slick-dots").find(".slick-active").find("button").text();i(".sports-article").find(".indicator-page").find(".current").text(e)})),i(".sports-article-prev").on("click",(function(){var e=i(".sports-article").find(".slick-dots").find(".slick-active").find("button").text();i(".sports-article").find(".indicator-page").find(".current").text(e)}))})),i(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("filter-sports-article-next"),i(this).find(".slick-prev").addClass("filter-sports-article-prev")})),i(document).ready((function(){i(".sports-article-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".sports-article").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".sports-article").find(".filter-item").on("click",(function(){i(".sports-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".sports-article-category-selected").text("Sport"):i(".sports-article-category-selected").text(i(this).text())}));var r=i(".sports-article-item").length;i(".sports-article").find(".indicator-page").find(".total-pages").text(r)},4862:(e,t,n)=>{var i=n(9755);slick=n(9154),i(document).ready((function(){i(".banner-sports-category").find(".list").slick({infinite:!1,slidesToShow:1,dots:!0,variableWidth:!0,centerMode:!0})}))},2517:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".sports-events-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("sports-events-next"),i(this).find(".slick-prev").addClass("sports-events-prev");var n=1;i(".sports-events").find(".indicator-page").find(".current").text(n),i(".sports-events-next").on("click",(function(){n=i(".sports-events").find(".slick-dots").find(".slick-active").find("button").text(),i(".sports-events").find(".indicator-page").find(".current").text(n)})),i(".sports-events-prev").on("click",(function(){n=i(".sports-events").find(".slick-dots").find(".slick-active").find("button").text(),i(".sports-events").find(".indicator-page").find(".current").text(n)}))})),i(document).ready((function(){i(".sports-events-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,mobileFirst:!0,dots:!0})}));var r=i(".sports-events-item").length;i(".sports-events").find(".indicator-page").find(".total-pages").text(r)},485:(e,t,n)=>{n(4862),n(2517),n(2949),n(1816),n(156),n(3617),n(6707)},3617:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".sports-matches").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-slide").addClass("filter-desktop-slide")})),i(document).ready((function(){i(".sports-matches").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".sports-matches-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("sports-matches-next"),i(this).find(".slick-prev").addClass("sports-matches-prev");var n=1;i(".sports-matches").find(".indicator-page").find(".current").text(n),i(".sports-matches-next").on("click",(function(){n=i(".sports-matches").find(".slick-dots").find(".slick-active").find("button").text(),i(".sports-matches").find(".indicator-page").find(".current").text(n)})),i(".sports-matches-prev").on("click",(function(){n=i(".sports-matches").find(".slick-dots").find(".slick-active").find("button").text(),i(".sports-matches").find(".indicator-page").find(".current").text(n)}))})),i(document).ready((function(){i(".sports-matches-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,mobileFirst:!0,dots:!0})}));var r=i(".sports-matches-item").length;i(".sports-matches").find(".indicator-page").find(".total-pages").text(r)},6707:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".sports-spotify-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("sports-spotify-next"),i(this).find(".slick-prev").addClass("sports-spotify-prev"),i(".sports-spotify-next").on("click",(function(){var e=i(".sports-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".sports-spotify").find(".indicator-page").find(".current").text(e)})),i(".sports-spotify-prev").on("click",(function(){var e=i(".sports-spotify").find(".slick-dots").find(".slick-active").find("button").text();i(".sports-spotify").find(".indicator-page").find(".current").text(e)}))})),i(".sports-spotify").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-next").addClass("sports-filter-spotify-next"),i(this).find(".slick-prev").addClass("sports-filter-spotify-prev")})),i(document).ready((function(){i(".sports-spotify-content").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!0}),i(".sports-spotify").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".sports-spotify").find(".filter-item").on("click",(function(){i(".sports-spotify").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".sports-spotify-category-selected").text("Sport"):i(".sports-spotify-category-selected").text(i(this).text())}));var r=i(".sports-spotify-item").length;i(".sports-spotify").find(".indicator-page").find(".total-pages").text(r)},156:(e,t,n)=>{var i=n(9755);i(".sports-video").find(".filter-desktop").on("init",(function(e,t){i(this).find(".slick-slide").addClass("filter-desktop-slide")})),i(document).ready((function(){i(".sports-video").find(".filter-desktop").slick({infinite:!1,slidesToShow:1,variableWidth:!0,dots:!1})})),i(".sports-video").find(".filter-item").on("click",(function(){i(".sports-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(".sports-video-iframe").attr("src",i(this).data("video")),i(".sports-playlist-iframe").attr("src",i(this).data("playlist")),i(this).addClass("active"),"All"==i(this).text()?i(".sports-video-category-selected").text(""):i(".sports-video-category-selected").text(i(this).text())})),i(".sports-video").find(".filter-item").on("click",(function(){i(".sports-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".sports-video-category-selected").text("Sport"):i(".sports-video-category-selected").text(i(this).text())}))},3946:(e,t,n)=>{var i=n(9755);n(3161),n(7396);var r=i("#video-detail-content").data("title"),a=i("#video-detail-content").data("url"),s=i("#video-detail-content").data("text"),o=i("#video-detail-content").data("image");i(".share-video").ShareLink({title:r,text:s,image:o,url:a})},3161:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".videos-article-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("videos-article-next"),i(this).find(".slick-prev").addClass("videos-article-prev"),i(this).append("<div class='videos-article-slick-nav'></div>"),i(".videos-article-slick-nav").append(i(this).find(".slick-prev")),i(".videos-article-slick-nav").append(i(this).find(".slick-dots")),i(".videos-article-slick-nav").append(i(this).find(".slick-next")),i(".videos-article-next").on("click",(function(){var e=i(".videos-article").find(".slick-dots").find(".slick-active").find("button").text();i(".videos-article").find(".indicator-page").find(".current").text(e)})),i(".videos-article-prev").on("click",(function(){var e=i(".videos-article").find(".slick-dots").find(".slick-active").find("button").text();i(".videos-article").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".videos-article-content").slick({infinite:!1,slidesToShow:1,dots:!0,variableWidth:!0,centerMode:!1}),i(".videos-article-content").on("afterChange",(function(e,t,n,r,a){i(".videos-article").find(".indicator-page").find(".current").text(n+1)}))})),i(".videos-article").find(".filter-item").on("click",(function(){i(".videos-article").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".videos-article-category-selected").text(""):i(".videos-article-category-selected").text(i(this).text())}));var r=i(".videos-article-item").length;i(".videos-article").find(".indicator-page").find(".total-pages").text(r)},6671:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".all-video-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("all-video-next"),i(this).find(".slick-prev").addClass("all-video-prev"),i(this).append("<div class='all-video-slick-nav'></div>"),i(".all-video-slick-nav").append(i(this).find(".slick-prev")),i(".all-video-slick-nav").append(i(this).find(".slick-dots")),i(".all-video-slick-nav").append(i(this).find(".slick-next")),i(".all-video-next").on("click",(function(){var e=i(".all-video").find(".slick-dots").find(".slick-active").find("button").text();i(".all-video").find(".indicator-page").find(".current").text(e)})),i(".all-video-prev").on("click",(function(){var e=i(".all-video").find(".slick-dots").find(".slick-active").find("button").text();i(".all-video").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".all-video-content").slick({infinite:!1,variableWidth:!0,dots:!0}),i(".all-video").find(".section-filter-item").length>6&&i(".all-video").find(".section-filter").slick({infinite:!0,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1})})),i(".all-video").find(".filter-item").on("click",(function(){i(".all-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".all-video-category-selected").text(""):i(".all-video-category-selected").text(i(this).text())}));var r=i(".all-video-item-wrapper").length;i(".all-video").find(".indicator-page").find(".total-pages").text(r),i(".all-video-mobile-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("all-video-mobile-next"),i(this).find(".slick-prev").addClass("all-video-mobile-prev"),i(this).append("<div class='all-video-mobile-slick-nav'></div>"),i(".all-video-mobile-slick-nav").append(i(this).find(".slick-prev")),i(".all-video-mobile-slick-nav").append(i(this).find(".slick-dots")),i(".all-video-mobile-slick-nav").append(i(this).find(".slick-next")),i(".all-video-mobile-next").on("click",(function(){var e=i(".all-video-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".all-video-mobile").find(".indicator-page").find(".current").text(e)})),i(".all-video-mobile-prev").on("click",(function(){var e=i(".all-video-mobile").find(".slick-dots").find(".slick-active").find("button").text();i(".all-video-mobile").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".all-video-mobile-content").slick({infinite:!1,variableWidth:!0,dots:!0}),i(".all-video-mobile-content").on("afterChange",(function(e,t,n,r,a){i(".all-video-mobile").find(".indicator-page").find(".current").text(n+1)}))})),i(".all-video-mobile").find(".filter-item").on("click",(function(){i(".all-video-mobile").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".all-video-mobile-category-selected").text(""):i(".all-video-mobile-category-selected").text(i(this).text())})),(r=i(".all-video-mobile-page").length)>1?i(".all-video-mobile").find(".indicator-page").find(".total-pages").text(r):i(".all-video-mobile").find(".indicator-page").hide()},8286:(e,t,n)=>{var i=n(9755);slick=n(9154);var r=0,a=!1,s=0;Array.from(document.querySelectorAll(".banner-video-list-category-item")).length>3&&(a=!0,Array.from(document.querySelectorAll(".banner-video-list-category-item")).forEac
2h((function(e,t){e.classList.contains("active")&&(r=t)}))),Array.from(document.querySelectorAll(".banner-video-list-category-item"))&&Array.from(document.querySelectorAll(".banner-video-list-category-item")).forEach((function(e,t){e.classList.contains("active")&&(s=t)})),i(document).ready((function(){i(".banner-video-list-category").find(".list").slick({infinite:!0,slidesToShow:3,dots:!0,variableWidth:!0,centerMode:a,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1,initialSlide:s}}],initialSlide:r})}))},7140:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".highlight-video-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("highlight-video-next"),i(this).find(".slick-prev").addClass("highlight-video-prev"),i(this).append("<div class='highlight-video-slick-nav'></div>"),i(".highlight-video-slick-nav").append(i(this).find(".slick-prev")),i(".highlight-video-slick-nav").append(i(this).find(".slick-dots")),i(".highlight-video-slick-nav").append(i(this).find(".slick-next")),i(".highlight-video-next").on("click",(function(){var e=i(".highlight-video").find(".slick-dots").find(".slick-active").find("button").text();i(".highlight-video").find(".indicator-page").find(".current").text(e)})),i(".highlight-video-prev").on("click",(function(){var e=i(".highlight-video").find(".slick-dots").find(".slick-active").find("button").text();i(".highlight-video").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".highlight-video-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".highlight-video-content").on("afterChange",(function(e,t,n,r,a){i(".highlight-video").find(".indicator-page").find(".current").text(n+1)})),i(".highlight-video").find(".section-filter-item").length>6&&i(".highlight-video").find(".section-filter").slick({infinite:!0,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})})),i(".highlight-video").find(".filter-item").on("click",(function(){i(".highlight-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".highlight-video-category-selected").text(""):i(".highlight-video-category-selected").text(i(this).text())}));var r=i(".highlight-video-item").length;r>1?i(".highlight-video").find(".indicator-page").find(".total-pages").text(r):i(".highlight-video").find(".indicator-page").hide()},2240:(e,t,n)=>{n(8286),n(7140),n(293),n(6671)},293:(e,t,n)=>{var i=n(9755);slick=n(9154),i(".popular-video-content").on("init",(function(e,t){i(this).find(".slick-next").addClass("popular-video-next"),i(this).find(".slick-prev").addClass("popular-video-prev"),i(this).append("<div class='popular-video-slick-nav'></div>"),i(".popular-video-slick-nav").append(i(this).find(".slick-prev")),i(".popular-video-slick-nav").append(i(this).find(".slick-dots")),i(".popular-video-slick-nav").append(i(this).find(".slick-next")),i(".popular-video-next").on("click",(function(){var e=i(".popular-video").find(".slick-dots").find(".slick-active").find("button").text();i(".popular-video").find(".indicator-page").find(".current").text(e)})),i(".popular-video-prev").on("click",(function(){var e=i(".popular-video").find(".slick-dots").find(".slick-active").find("button").text();i(".popular-video").find(".indicator-page").find(".current").text(e)}))})),i(document).ready((function(){i(".popular-video-content").slick({infinite:!1,slidesToShow:4,dots:!0,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]}),i(".popular-video-content").on("afterChange",(function(e,t,n,r,a){i(".popular-video").find(".indicator-page").find(".current").text(n+1)})),i(".popular-video").find(".section-filter-item").length>6&&i(".popular-video").find(".section-filter").slick({infinite:!0,slidesToShow:3,dots:!1,variableWidth:!0,centerMode:!1,responsive:[{breakpoint:480,settings:{centerMode:!0,slidesToShow:1}}]})})),i(".popular-video").find(".filter-item").on("click",(function(){i(".popular-video").find(".filter-item").each((function(){i(this).removeClass("active")})),i(this).addClass("active"),"All"==i(this).text()?i(".popular-video-category-selected").text(""):i(".popular-video-category-selected").text(i(this).text())}));var r=i(".popular-video-item").length;r>1?i(".popular-video").find(".indicator-page").find(".total-pages").text(r):i(".popular-video").find(".indicator-page").hide()},7396:(e,t,n)=>{!function(e){function t(t){return t.classList?t.classList:e(t).attr("class").match(/\S+/gi)}e.fn.ShareLink=function(n){var i={title:"",text:"",image:"",url:window.location.href,class_prefix:"s_"},r=(n=e.extend({},i,n)).class_prefix.length,a={twitter:"https://twitter.com/intent/tweet?url={url}&text={text}",pinterest:"https://www.pinterest.com/pin/create/button/?media={image}&url={url}&description={text}",facebook:"https://www.facebook.com/sharer.php?s=100&p[title]={title}&u={url}&t={title}&p[summary]={text}&p[url]={url}",vk:"https://vkontakte.ru/share.php?url={url}&title={title}&description={text}&image={image}&noparse=true",linkedin:"https://www.linkedin.com/shareArticle?mini=true&url={url}&title={title}&summary={text}&source={url}",myworld:"https://connect.mail.ru/share?url={url}&title={title}&description={text}&imageurl={image}",odnoklassniki:"http://odnoklassniki.ru/dk?st.cmd=addShare&st.s=1&st._surl={url}&st.comments={text}",tumblr:"https://tumblr.com/share?s=&v=3&t={title}&u={url}",blogger:"https://blogger.com/blog-this.g?t={text}&n={title}&u={url}",delicious:"https://delicious.com/save?url={url}&title={title}",plus:"https://plus.google.com/share?url={url}",digg:"https://digg.com/submit?url={url}&title={title}",reddit:"http://reddit.com/submit?url={url}&title={title}",stumbleupon:"https://www.stumbleupon.com/submit?url={url}&title={title}",pocket:"https://getpocket.com/edit?url={url}&title={title}",chiq:"http://www.chiq.com/create/bookmarklet?u={url}&i={image}&d={title}&c={url}",qrifier:"http://qrifier.com/q?inc=qr&type=url&size=350&string={url}",qrsrc:"http://www.qrsrc.com/default.aspx?shareurl={url}",qzone:"http://sns.qzone.qq.com/cgi-bin/qzshare/cgi_qzshare_onekey?url={url}",tulinq:"http://www.tulinq.com/enviar?url={url}&title={title}",misterwong:"http://www.mister-wong.com/index.php?action=addurl&bm_url={url}&bm_description={title}&bm_notice=",sto_zakladok:"http://www.100zakladok.ru/save/?bmurl={url}&bmtitle={title}",two_linkme:"http://www.2linkme.com/?collegamento={url}&id=2lbar",adifni:"http://www.adifni.com/account/bookmark/?bookmark_url={url}",amazonwishlist:"http://www.amazon.com/gp/wishlist/static-add?u={url}&t={title}",amenme:"http://www.amenme.com/AmenMe/Amens/AmenToThis.aspx?url={url}&title={title}",aim:"http://lifestream.aol.com/share/?url={url}&title={title}&description={text}
2 ",aolmail:"http://webmail.aol.com/25045/aol/en-us/Mail/compose-message.aspx?to=&subject={title}&body={{content}}",arto:"http://www.arto.com/section/linkshare/?lu={url}&ln={title}",baidu:"http://cang.baidu.com/do/add?it={title}&iu={url}&fr=ien&dc={text}",bitly:"https://bitly.com/a/bitmarklet?u={url}",bizsugar:"http://www.bizsugar.com/bizsugarthis.php?url={url}",blinklist:"http://www.blinklist.com/blink?u={url}&t={title}&d={text}",blip:"http://blip.pl/dashboard?body={title}%3A%20{url}",blogmarks:"http://blogmarks.net/my/new.php?mini=1&simple=1&url={url}&title={title}&content={text}",blurpalicious:"http://www.blurpalicious.com/submit/?url={url}&title={title}&desc={text}",bobrdobr:"http://bobrdobr.ru/addext.html?url={url}&title={title}&desc={text}",bonzobox:"http://bonzobox.com/toolbar/add?u={url}&t={title}&desc={text}",bookmerkende:"http://www.bookmerken.de/?url={url}&title={title}",box:"https://www.box.net/api/1.0/import?import_as=link&url={url}&name={title}&description={text}",bryderi:"http://bryderi.se/add.html?u={url}",buddymarks:"http://buddymarks.com/add_bookmark.php?bookmark_title={title}&bookmark_url={url}&bookmark_desc={text}",camyoo:"http://www.camyoo.com/note.html?url={url}",care2:"http://www.care2.com/news/compose?sharehint=news&share[share_type]news&bookmarklet=Y&share[title]={title}&share[link_url]={url}&share[content]={text}",citeulike:"http://www.citeulike.org/posturl?url={url}&title={title}",classicalplace:"http://www.classicalplace.com/?u={url}&t={title}&c={text}",cosmiq:"http://www.cosmiq.de/lili/my/add?url={url}",diggita:"http://www.diggita.it/submit.php?url={url}&title={title}",diigo:"http://www.diigo.com/post?url={url}&title={title}&desc={text}",domelhor:"http://domelhor.net/submit.php?url={url}&title={title}",dotnetshoutout:"http://dotnetshoutout.com/Submit?url={url}&title={title}",douban:"http://www.douban.com/recommend/?url={url}&title={title}",dropjack:"http://www.dropjack.com/submit.php?url={url}",edelight:"http://www.edelight.de/geschenk/neu?purl={url}",ekudos:"http://www.ekudos.nl/artikel/nieuw?url={url}&title={title}&desc={text}",elefantapl:"http://elefanta.pl/member/bookmarkNewPage.action?url={url}&title={title}&bookmarkVO.notes=",embarkons:"http://www.embarkons.com/sharer.php?u={url}&t={title}",evernote:"http://www.evernote.com/clip.action?url={url}&title={title}",extraplay:"http://www.extraplay.com/members/share.php?url={url}&title={title}&desc={text}",ezyspot:"http://www.ezyspot.com/submit?url={url}&title={title}",fabulously40:"http://fabulously40.com/writeblog?subject={title}&body={url}",informazione:"http://fai.informazione.it/submit.aspx?url={url}&title={title}&desc={text}",fark:"http://www.fark.com/cgi/farkit.pl?u={url}&h={title}",farkinda:"http://www.farkinda.com/submit?url={url}",favable:"http://www.favable.com/oexchange?url={url}&title={title}&desc={text}",favlogde:"http://www.favlog.de/submit.php?url={url}",flaker:"http://flaker.pl/add2flaker.php?title={title}&url={url}",folkd:"http://www.folkd.com/submit/{url}",fresqui:"http://fresqui.com/enviar?url={url}",friendfeed:"http://friendfeed.com/share?url={url}&title={title}",funp:"http://funp.com/push/submit/?url={url}",fwisp:"http://fwisp.com/submit.php?url={url}",givealink:"http://givealink.org/bookmark/add?url={url}&title={title}",gmail:"http://mail.google.com/mail/?view=cm&fs=1&to=&su={title}&body={text}&ui=1",goodnoows:"http://goodnoows.com/add/?url={url}",google:"http://www.google.com/bookmarks/mark?op=add&bkmk={url}&title={title}&annotation={text}",googletranslate:"http://translate.google.com/translate?hl=en&u={url}&tl=en&sl=auto",greaterdebater:"http://greaterdebater.com/submit/?url={url}&title={title}",hackernews:"http://news.ycombinator.com/submitlink?u={url}&t={title}",hatena:"http://b.hatena.ne.jp/bookmarklet?url={url}&btitle={title}",hedgehogs:"http://www.hedgehogs.net/mod/bookmarks/add.php?address={url}&title={title}",hotmail:"http://www.hotmail.msn.com/secure/start?action=compose&to=&subject={title}&body={{content}}",w3validator:"http://validator.w3.org/check?uri={url}&charset=%28detect+automatically%29&doctype=Inline&group=0",ihavegot:"http://www.ihavegot.com/share/?url={url}&title={title}&desc={text}",instapaper:"http://www.instapaper.com/edit?url={url}&title={title}&summary={text}",isociety:"http://isociety.be/share/?url={url}&title={title}&desc={text}",iwiw:"http://iwiw.hu/pages/share/share.jsp?v=1&u={url}&t={title}",jamespot:"http://www.jamespot.com/?action=spotit&u={url}&t={title}",jumptags:"http://www.jumptags.com/add/?url={url}&title={title}",kaboodle:"http://www.kaboodle.com/grab/addItemWithUrl?url={url}&pidOrRid=pid=&redirectToKPage=true",kaevur:"http://kaevur.com/submit.php?url={url}",kledy:"http://www.kledy.de/submit.php?url={url}&title={title}",librerio:"http://www.librerio.com/inbox?u={url}&t={title}",linkuj:"http://linkuj.cz?id=linkuj&url={url}&title={title}&description={text}&imgsrc=",livejournal:"http://www.livejournal.com/update.bml?subject={title}&event={url}",logger24:"http://logger24.com/?url={url}",mashbord:"http://mashbord.com/plugin-add-bookmark?url={url}",meinvz:"http://www.meinvz.net/Suggest/Selection/?u={url}&desc={title}&prov=addthis.com",mekusharim:"http://mekusharim.walla.co.il/share/share.aspx?url={url}&title={title}",memori:"http://memori.ru/link/?sm=1&u_data[url]={url}",meneame:"http://www.meneame.net/submit.php?url={url}",mixi:"http://mixi.jp/share.pl?u={url}",moemesto:"http://moemesto.ru/post.php?url={url}&title={title}",myspace:"http://www.myspace.com/Modules/PostTo/Pages/?u={url}&t={title}&c=",n4g:"http://www.n4g.com/tips.aspx?url={url}&title={title}",netlog:"http://www.netlog.com/go/manage/links/?view=save&origin=external&url={url}&title={title}&description={text}",netvouz:"http://netvouz.com/action/submitBookmark?url={url}&title={title}&popup=no&description={text}",newstrust:"http://newstrust.net/submit?url={url}&title={title}&ref=addthis",newsvine:"http://www.newsvine.com/_tools/seed&save?u={url}&h={title}&s={text}",nujij:"http://nujij.nl/jij.lynkx?u={url}&t={title}&b={text}",oknotizie:"http://oknotizie.virgilio.it/post?title={title}&url={url}",oyyla:"http://www.oyyla.com/gonder?phase=2&url={url}",pdfonline:"http://savepageaspdf.pdfonline.com/pdfonline/pdfonline.asp?cURL={url}",pdfmyurl:"http://pdfmyurl.com?url={url}",phonefavs:"http://phonefavs.com/bookmarks?action=add&address={url}&title={title}",plaxo:"http://www.plaxo.com/events?share_link={url}&desc={text}",plurk:"http://www.plurk.com/m?content={url}+({title})&qualifier=shares ",posteezy:"http://posteezy.com/node/add/story?title={title}&body={url}",pusha:"http://www.pusha.se/posta?url={url}&title={title}&description={text}",rediff:"http://share.rediff.com/bookmark/addbookmark?title={title}&bookmarkurl={url}",redkum:"http://www.redkum.com/add?url={url}&step=1&title={title}",scoopat:"http://scoop.at/submit?url={url}&title={title}&body={text}",sekoman:"http://sekoman.lv/home?status={title}&url={url}",shaveh:"http://shaveh.co.il/submit.php?url={url}&title={title}",shetoldme:"http://shetoldme.com/publish?url={url}&title={title}&body={text}",sinaweibo:"http://v.t.sina.com.cn/share/share.php?url={url}&title={title}
2",sodahead:"http://www.sodahead.com/news/submit/?url={url}&title={title}",sonico:"http://www.sonico.com/share.php?url={url}&title={title}",springpad:"http://springpadit.com/s?type=lifemanagr.Bookmark&url={url}&name={title}",startaid:"http://www.startaid.com/index.php?st=AddBrowserLink&type=Detail&v=3&urlname={url}&urltitle={title}&urldesc={text}",startlap:"http://www.startlap.hu/sajat_linkek/addlink.php?url={url}&title={title}",studivz:"http://www.studivz.net/Suggest/Selection/?u={url}&desc={title}&prov=addthis.com",stuffpit:"http://www.stuffpit.com/add.php?produrl={url}",stumpedia:"http://www.stumpedia.com/submit?url={url}",svejo:"http://svejo.net/story/submit_by_url?url={url}&title={title}&summary={text}",symbaloo:"http://www.symbaloo.com/en/add/?url={url}&title={title}",thewebblend:"http://thewebblend.com/submit?url={url}&title={title}",thinkfinity:"http://www.thinkfinity.org/favorite-bookmarklet.jspa?url={url}&subject={title}",thisnext:"http://www.thisnext.com/pick/new/submit/url/?description={text}&name={title}&url={url}",tuenti:"http://www.tuenti.com/share?url={url}",typepad:"http://www.typepad.com/services/quickpost/post?v=2&qp_show=ac&qp_title={title}&qp_href={url}&qp_text={text}",viadeo:"http://www.viadeo.com/shareit/share/?url={url}&title={title}&urlaffiliate=32005&encoding=UTF-8",virb:"http://virb.com/share?external&v=2&url={url}&title={title}",visitezmonsite:"http://www.visitezmonsite.com/publier?url={url}&title={title}&body={text}",vybralisme:"http://vybrali.sme.sk/sub.php?url={url}",webnews:"http://www.webnews.de/einstellen?url={url}&title={title}",wirefan:"http://www.wirefan.com/grpost.php?d=&u={url}&h={title}&d={text}",wordpress:"http://wordpress.com/wp-admin/press-this.php?u={url}&t={title}&s={text}&v=2",wowbored:"http://www.wowbored.com/submit.php?url={url}",wykop:"http://www.wykop.pl/dodaj?url={url}&title={title}&desc={text}",yahoobkm:"http://bookmarks.yahoo.com/toolbar/savebm?opener=tb&u={url}&t={title}&d={text}",yahoomail:"http://compose.mail.yahoo.com/?To=&Subject={title}&body={{content}}",yammer:"https://www.yammer.com/home/bookmarklet?bookmarklet_pop=1&u={url}&t={title}",yardbarker:"http://www.yardbarker.com/author/new/?pUrl={url}&pHead={title}",yigg:"http://www.yigg.de/neu?exturl={url}&exttitle={title}&extdesc={text}",yoolink:"http://go.yoolink.to/addorshare?url_value={url}&title={title}",yorumcuyum:"http://www.yorumcuyum.com/?baslik={title}&link={url}",youmob:"http://youmob.com/mobit.aspx?title={title}&mob={url}",zakladoknet:"http://zakladok.net/link/?u={url}&t={title}",ziczac:"http://ziczac.it/a/segnala/?gurl={url}>it={title}",whatsapp:"whatsapp://send?text={url} {title}"};function s(e){var t=a[e];return t=(t=(t=(t=t.replace(/{url}/g,encodeURIComponent(n.url))).replace(/{title}/g,encodeURIComponent(n.title))).replace(/{text}/g,encodeURIComponent(n.text))).replace(/{image}/g,encodeURIComponent(n.image))}return this.each((function(i,o){var l=t(o);for(i=0;i<l.length;i++){var c=l[i];if(c.substr(0,r)==n.class_prefix&&a[c.substr(r)]){var u=s(c.substr(r));e(o).attr("href",u).click((function(){if(-1===e(this).attr("href").indexOf("http://")&&-1===e(this).attr("href").indexOf("https://"))return window.open(e(this).attr("href"))&&!1;var t=screen.width,i=screen.height,r=n.width?n.width:t-.2*t,a=n.height?n.height:i-.2*i,s="toolbar=0,status=0,width="+r+",height="+a+",top="+(i/2-a/2)+",left="+(t/2-r/2);return window.open(e(this).attr("href"),"",s)&&!1}))}}}))},e.fn.ShareCounter=function(n){var r={url:window.location.href,class_prefix:"c_",display_counter_from:0,increment:!1},a=(n=e.extend({},r,n)).class_prefix.length,s={vk:function(t,n){void 0===window.VK&&(VK={CallbackList:[],Share:{count:function(e,t){VK.CallbackList[e](t)}}});var r=VK.CallbackList.length;VK.CallbackList.push(n),e.ajax({type:"GET",dataType:"jsonp",url:"https://vk.com/share.php",data:{act:"count",index:r,url:t}}).fail((function(e,t){if("parsererror"!=t)for(i in VK.CallbackList)VK.CallbackList[i](0)}))},myworld:function(t,n){e.ajax({type:"GET",dataType:"jsonp",url:"https://connect.mail.ru/share_count",jsonp:"func",data:{url_list:t,callback:"1"}}).done((function(e){n(e[t].shares)})).fail((function(e){n(0)}))},linkedin:function(t,n){e.ajax({type:"GET",dataType:"jsonp",url:"https://www.linkedin.com/countserv/count/share",data:{url:t,format:"jsonp"}}).done((function(e){n(e.count)})).fail((function(){n(0)}))},odnoklassniki:function(t,n){void 0===window.ODKL&&(ODKL={CallbackList:[],updateCount:function(e,t){ODKL.CallbackList[parseInt(e)](t)}});var r=ODKL.CallbackList.length;ODKL.CallbackList.push(n),e.ajax({type:"GET",dataType:"jsonp",url:"https://ok.ru/dk",data:{"st.cmd":"extLike",ref:t,uid:r}}).fail((function(e,t){if("parsererror"!=t)for(i in ODKL.CallbackList)ODKL.CallbackList[i](0)}))},pinterest:function(t,n){e.ajax({type:"GET",dataType:"jsonp",url:"https://api.pinterest.com/v1/urls/count.json",data:{url:t}}).done((function(e){n(e.count)})).fail((function(){n(0)}))},plus:function(t,n){e.ajax({type:"POST",url:"https://clients6.google.com/rpc",processData:!0,contentType:"application/json",data:JSON.stringify({method:"pos.plusones.get",id:location.href,params:{nolog:!0,id:t,source:"widget",userId:"@viewer",groupId:"@self"},jsonrpc:"2.0",key:"p",apiVersion:"v1"})}).done((function(e){n(e.result.metadata.globalCounts.count)}
2)).fail((function(){n(0)}))},facebook:function(t,n){e.ajax({type:"GET",dataType:"jsonp",url:"https://graph.facebook.com",data:{id:t}}).done((function(e){null!=e.share&&null!=e.share.share_count&&n(e.share.share_count)})).fail((function(){n(0)}))}};return this.each((function(i,r){var o=t(r);for(i=0;i<o.length;i++){var l=o[i];l.substr(0,a)==n.class_prefix&&s[l.substr(a)]&&s[l.substr(a)](n.url,(function(t){if((t=parseInt(t))>=n.display_counter_from){var i=parseInt(e(r).text());n.increment&&!isNaN(i)&&(t+=i),e(r).text(t)}}))}}))}}(n(9755))},9742:(e,t)=>{"use strict";t.byteLength=function(e){var t=l(e),n=t[0],i=t[1];return 3*(n+i)/4-i},t.toByteArray=function(e){var t,n,a=l(e),s=a[0],o=a[1],c=new r(function(e,t,n){return 3*(t+n)/4-n}(0,s,o)),u=0,d=o>0?s-4:s;for(n=0;n<d;n+=4)t=i[e.charCodeAt(n)]<<18|i[e.charCodeAt(n+1)]<<12|i[e.charCodeAt(n+2)]<<6|i[e.charCodeAt(n+3)],c[u++]=t>>16&255,c[u++]=t>>8&255,c[u++]=255&t;2===o&&(t=i[e.charCodeAt(n)]<<2|i[e.charCodeAt(n+1)]>>4,c[u++]=255&t);1===o&&(t=i[e.charCodeAt(n)]<<10|i[e.charCodeAt(n+1)]<<4|i[e.charCodeAt(n+2)]>>2,c[u++]=t>>8&255,c[u++]=255&t);return c},t.fromByteArray=function(e){for(var t,i=e.length,r=i%3,a=[],s=16383,o=0,l=i-r;o<l;o+=s)a.push(c(e,o,o+s>l?l:o+s));1===r?(t=e[i-1],a.push(n[t>>2]+n[t<<4&63]+"==")):2===r&&(t=(e[i-2]<<8)+e[i-1],a.push(n[t>>10]+n[t>>4&63]+n[t<<2&63]+"="));return a.join("")};for(var n=[],i=[],r="undefined"!=typeof Uint8Array?Uint8Array:Array,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",s=0,o=a.length;s<o;++s)n[s]=a[s],i[a.charCodeAt(s)]=s;function l(e){var t=e.length;if(t%4>0)throw new Error("Invalid string. Length must be a multiple of 4");var n=e.indexOf("=");return-1===n&&(n=t),[n,n===t?0:4-n%4]}function c(e,t,i){for(var r,a,s=[],o=t;o<i;o+=3)r=(e[o]<<16&16711680)+(e[o+1]<<8&65280)+(255&e[o+2]),s.push(n[(a=r)>>18&63]+n[a>>12&63]+n[a>>6&63]+n[63&a]);return s.join("")}i["-".charCodeAt(0)]=62,i["_".charCodeAt(0)]=63},8764:(e,t,n)=>{"use strict";var i=n(9742),r=n(645),a=n(5826);function s(){return l.TYPED_ARRAY_SUPPORT?2147483647:1073741823}function o(e,t){if(s()<t)throw new RangeError("Invalid typed array length");return l.TYPED_ARRAY_SUPPORT?(e=new Uint8Array(t)).__proto__=l.prototype:(null===e&&(e=new l(t)),e.length=t),e}function l(e,t,n){if(!(l.TYPED_ARRAY_SUPPORT||this instanceof l))return new l(e,t,n);if("number"==typeof e){if("string"==typeof t)throw new Error("If encoding is specified then the first argument must be a string");return d(this,e)}return c(this,e,t,n)}function c(e,t,n,i){if("number"==typeof t)throw new TypeError('"value" argument must not be a number');return"undefined"!=typeof ArrayBuffer&&t instanceof ArrayBuffer?function(e,t,n,i){if(t.byteLength,n<0||t.byteLength<n)throw new RangeError("'offset' is out of bounds");if(t.byteLength<n+(i||0))throw new RangeError("'length' is out of bounds");t=void 0===n&&void 0===i?new Uint8Array(t):void 0===i?new Uint8Array(t,n):new Uint8Array(t,n,i);l.TYPED_ARRAY_SUPPORT?(e=t).__proto__=l.prototype:e=h(e,t);return e}(e,t,n,i):"string"==typeof t?function(e,t,n){"string"==typeof n&&""!==n||(n="utf8");if(!l.isEncoding(n))throw new TypeError('"encoding" must be a valid string encoding');var i=0|p(t,n),r=(e=o(e,i)).write(t,n);r!==i&&(e=e.slice(0,r));return e}(e,t,n):function(e,t){if(l.isBuffer(t)){var n=0|f(t.length);return 0===(e=o(e,n)).length||t.copy(e,0,0,n),e}if(t){if("undefined"!=typeof ArrayBuffer&&t.buffer instanceof ArrayBuffer||"length"in t)return"number"!=typeof t.length||(i=t.length)!=i?o(e,0):h(e,t);if("Buffer"===t.type&&a(t.data))return h(e,t.data)}var i;throw new TypeError("First argument must be a string, Buffer, ArrayBuffer, Array, or array-like object.")}(e,t)}function u(e){if("number"!=typeof e)throw new TypeError('"size" argument must be a number');if(e<0)throw new RangeError('"size" argument must not be negative')}function d(e,t){if(u(t),e=o(e,t<0?0:0|f(t)),!l.TYPED_ARRAY_SUPPORT)for(var n=0;n<t;++n)e[n]=0;return e}function h(e,t){var n=t.length<0?0:0|f(t.length);e=o(e,n);for(var i=0;i<n;i+=1)e[i]=255&t[i];return e}function f(e){if(e>=s())throw new RangeError("Attempt to allocate Buffer larger than maximum size: 0x"+s().toString(16)+" bytes");return 0|e}function p(e,t){if(l.isBuffer(e))return e.length;if("undefined"!=typeof ArrayBuffer&&"function"==typeof ArrayBuffer.isView&&
vendor: 16,472 bytes, line 2
2(ArrayBuffer.isView(e)||e instanceof ArrayBuffer))return e.byteLength;"string"!=typeof e&&(e=""+e);var n=e.length;if(0===n)return 0;for(var i=!1;;)switch(t){case"ascii":case"latin1":case"binary":return n;case"utf8":case"utf-8":case void 0:return F(e).length;case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return 2*n;case"hex":return n>>>1;case"base64":return H(e).length;default:if(i)return F(e).length;t=(""+t).toLowerCase(),i=!0}}function m(e,t,n){var i=!1;if((void 0===t||t<0)&&(t=0),t>this.length)return"";if((void 0===n||n>this.length)&&(n=this.length),n<=0)return"";if((n>>>=0)<=(t>>>=0))return"";for(e||(e="utf8");;)switch(e){case"hex":return I(this,t,n);case"utf8":case"utf-8":return C(this,t,n);case"ascii":return A(this,t,n);case"latin1":case"binary":return L(this,t,n);case"base64":return x(this,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return P(this,t,n);default:if(i)throw new TypeError("Unknown encoding: "+e);e=(e+"").toLowerCase(),i=!0}}function g(e,t,n){var i=e[t];e[t]=e[n],e[n]=i}function v(e,t,n,i,r){if(0===e.length)return-1;if("string"==typeof n?(i=n,n=0):n>2147483647?n=2147483647:n<-2147483648&&(n=-2147483648),n=+n,isNaN(n)&&(n=r?0:e.length-1),n<0&&(n=e.length+n),n>=e.length){if(r)return-1;n=e.length-1}else if(n<0){if(!r)return-1;n=0}if("string"==typeof t&&(t=l.from(t,i)),l.isBuffer(t))return 0===t.length?-1:y(e,t,n,i,r);if("number"==typeof t)return t&=255,l.TYPED_ARRAY_SUPPORT&&"function"==typeof Uint8Array.prototype.indexOf?r?Uint8Array.prototype.indexOf.call(e,t,n):Uint8Array.prototype.lastIndexOf.call(e,t,n):y(e,[t],n,i,r);throw new TypeError("val must be string, number or Buffer")}function y(e,t,n,i,r){var a,s=1,o=e.length,l=t.length;if(void 0!==i&&("ucs2"===(i=String(i).toLowerCase())||"ucs-2"===i||"utf16le"===i||"utf-16le"===i)){if(e.length<2||t.length<2)return-1;s=2,o/=2,l/=2,n/=2}function c(e,t){return 1===s?e[t]:e.readUInt16BE(t*s)}if(r){var u=-1;for(a=n;a<o;a++)if(c(e,a)===c(t,-1===u?0:a-u)){if(-1===u&&(u=a),a-u+1===l)return u*s}else-1!==u&&(a-=a-u),u=-1}else for(n+l>o&&(n=o-l),a=n;a>=0;a--){for(var d=!0,h=0;h<l;h++)if(c(e,a+h)!==c(t,h)){d=!1;break}if(d)return a}return-1}function b(e,t,n,i){n=Number(n)||0;var r=e.length-n;i?(i=Number(i))>r&&(i=r):i=r;var a=t.length;if(a%2!=0)throw new TypeError("Invalid hex string");i>a/2&&(i=a/2);for(var s=0;s<i;++s){var o=parseInt(t.substr(2*s,2),16);if(isNaN(o))return s;e[n+s]=o}return s}function _(e,t,n,i){return W(F(t,e.length-n),e,n,i)}function T(e,t,n,i){return W(function(e){for(var t=[],n=0;n<e.length;++n)t.push(255&e.charCodeAt(n));return t}(t),e,n,i)}function k(e,t,n,i){return T(e,t,n,i)}function w(e,t,n,i){return W(H(t),e,n,i)}function S(e,t,n,i){return W(function(e,t){for(var n,i,r,a=[],s=0;s<e.length&&!((t-=2)<0);++s)i=(n=e.charCodeAt(s))>>8,r=n%256,a.push(r),a.push(i);return a}(t,e.length-n),e,n,i)}function x(e,t,n){return 0===t&&n===e.length?i.fromByteArray(e):i.fromByteArray(e.slice(t,n))}function C(e,t,n){n=Math.min(e.length,n);for(var i=[],r=t;r<n;){var a,s,o,l,c=e[r],u=null,d=c>239?4:c>223?3:c>191?2:1;if(r+d<=n)switch(d){case 1:c<128&&(u=c);break;case 2:128==(192&(a=e[r+1]))&&(l=(31&c)<<6|63&a)>127&&(u=l);break;case 3:a=e[r+1],s=e[r+2],128==(192&a)&&128==(192&s)&&(l=(15&c)<<12|(63&a)<<6|63&s)>2047&&(l<55296||l>57343)&&(u=l);break;case 4:a=e[r+1],s=e[r+2],o=e[r+3],128==(192&a)&&128==(192&s)&&128==(192&o)&&(l=(15&c)<<18|(63&a)<<12|(63&s)<<6|63&o)>65535&&l<1114112&&(u=l)}null===u?(u=65533,d=1):u>65535&&(u-=65536,i.push(u>>>10&1023|55296),u=56320|1023&u),i.push(u),r+=d}return function(e){var t=e.length;if(t<=E)return String.fromCharCode.apply(String,e);var n="",i=0;for(;i<t;)n+=String.fromCharCode.apply(String,e.slice(i,i+=E));return n}(i)}t.Buffer=l,t.SlowBuffer=function(e){+e!=e&&(e=0);return l.alloc(+e)},t.INSPECT_MAX_BYTES=50,l.TYPED_ARRAY_SUPPORT=void 0!==n.g.TYPED_ARRAY_SUPPORT?n.g.TYPED_ARRAY_SUPPORT:function(){try{var e=new Uint8Array(1);return e.__proto__={__proto__:Uint8Array.prototype,foo:function(){return 42}},42===e.foo()&&"function"==typeof e.subarray&&0===e.subarray(1,1).byteLength}catch(e){return!1}}(),t.kMaxLength=s(),l.poolSize=8192,l._augment=function(e){return e.__proto__=l.prototype,e},l.from=function(e,t,n){return c(null,e,t,n)},l.TYPED_ARRAY_SUPPORT&&(l.prototype.__proto__=Uint8Array.prototype,l.__proto__=Uint8Array,"undefined"!=typeof Symbol&&Symbol.species&&l[Symbol.species]===l&&Object.defineProperty(l,Symbol.species,{value:null,configurable:!0})),l.alloc=function(e,t,n){return function(e,t,n,i){return u(t),t<=0?o(e,t):void 0!==n?"string"==typeof i?o(e,t).fill(n,i):o(e,t).fill(n):o(e,t)}(null,e,t,n)},l.allocUnsafe=function(e){return d(null,e)},l.allocUnsafeSlow=function(e){return d(null,e)},l.isBuffer=function(e){return!(null==e||!e._isBuffer)},l.compare=function(e,t){if(!l.isBuffer(e)||!l.isBuffer(t))throw new TypeError("Arguments must be Buffers");if(e===t)return 0;for(var n=e.length,i=t.length,r=0,a=Math.min(n,i);r<a;++r)if(e[r]!==t[r]){n=e[r],i=t[r];break}return n<i?-1:i<n?1:0},l.isEncoding=function(e){switch(String(e).toLowerCase()){case"hex":case"utf8":case"utf-8":case"ascii":case"latin1":case"binary":case"base64":case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return!0;default:return!1}},l.concat=function(e,t){if(!a(e))throw new TypeError('"list" argument must be an Array of Buffers');if(0===e.length)return l.alloc(0);var n;if(void 0===t)for(t=0,n=0;n<e.length;++n)t+=e[n].length;var i=l.allocUnsafe(t),r=0;for(n=0;n<e.length;++n){var s=e[n];if(!l.isBuffer(s))throw new TypeError('"list" argument must be an Array of Buffers');s.copy(i,r),r+=s.length}return i},l.byteLength=p,l.prototype._isBuffer=!0,l.prototype.swap16=function(){var e=this.length;if(e%2!=0)throw new RangeError("Buffer size must be a multiple of 16-bits");for(var t=0;t<e;t+=2)g(this,t,t+1);return this},l.prototype.swap32=function(){var e=this.length;if(e%4!=0)throw new RangeError("Buffer size must be a multiple of 32-bits");for(var t=0;t<e;t+=4)g(this,t,t+3),g(this,t+1,t+2);return this},l.prototype.swap64=function(){var e=this.length;if(e%8!=0)throw new RangeError("Buffer size must be a multiple of 64-bits");for(var t=0;t<e;t+=8)g(this,t,t+7),g(this,t+1,t+6),g(this,t+2,t+5),g(this,t+3,t+4);return this},l.prototype.toString=function(){var e=0|this.length;return 0===e?"":0===arguments.length?C(this,0,e):m.apply(this,arguments)},l.prototype.equals=function(e){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");return this===e||0===l.compare(this,e)},l.prototype.inspect=function(){var e="",n=t.INSPECT_MAX_BYTES;return this.length>0&&(e=this.toString("hex",0,n).match(/.{2}/g).join(" "),this.length>n&&(e+=" ... ")),"<Buffer "+e+">"},l.prototype.compare=function(e,t,n,i,r){if(!l.isBuffer(e))throw new TypeError("Argument must be a Buffer");if(void 0===t&&(t=0),void 0===n&&(n=e?e.length:0),void 0===i&&(i=0),void 0===r&&(r=this.length),t<0||n>e.length||i<0||r>this.length)throw new RangeError("out of range index");if(i>=r&&t>=n)return 0;if(i>=r)return-1;if(t>=n)return 1;if(this===e)return 0;for(var a=(r>>>=0)-(i>>>=0),s=(n>>>=0)-(t>>>=0),o=Math.min(a,s),c=this.slice(i,r),u=e.slice(t,n),d=0;d<o;++d)if(c[d]!==u[d]){a=c[d],s=u[d];break}return a<s?-1:s<a?1:0},l.prototype.includes=function(e,t,n){return-1!==this.indexOf(e,t,n)},l.prototype.indexOf=function(e,t,n){return v(this,e,t,n,!0)},l.prototype.lastIndexOf=function(e,t,n){return v(this,e,t,n,!1)},l.prototype.write=function(e,t,n,i){if(void 0===t)i="utf8",n=this.length,t=0;else if(void 0===n&&"string"==typeof t)i=t,n=this.length,t=0;else{if(!isFinite(t))throw new Error("Buffer.write(string, encoding, offset[, length]) is no longer supported");t|=0,isFinite(n)?(n|=0,void 0===i&&(i="utf8")):(i=n,n=void 0)}var r=this.length-t;if((void 0===n||n>r)&&(n=r),e.length>0&&(n<0||t<0)||t>this.length)throw new RangeError("Attempt to write outside buffer bounds");i||(i="utf8");for(var a=!1;;)switch(i){case"hex":return b(this,e,t,n);case"utf8":case"utf-8":return _(this,e,t,n);case"ascii":return T(this,e,t,n);case"latin1":case"binary":return k(this,e,t,n);case"base64":return w(this,e,t,n);case"ucs2":case"ucs-2":case"utf16le":case"utf-16le":return S(this,e,t,n);default:if(a)throw new TypeError("Unknown encoding: "+i);i=(""+i).toLowerCase(),a=!0}},l.prototype.toJSON=function(){return{type:"Buffer",data:Array.prototype.slice.call(this._arr||this,0)}};var E=4096;function A(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(127&e[r]);return i}function L(e,t,n){var i="";n=Math.min(e.length,n);for(var r=t;r<n;++r)i+=String.fromCharCode(e[r]);return i}function I(e,t,n){var i=e.length;(!t||t<0)&&(t=0),(!n||n<0||n>i)&&(n=i);for(var r="",a=t;a<n;++a)r+=B(e[a]);return r}function P(e,t,n){for(var i=e.slice(t,n),r="",a=0;a<i.length;a+=2)r+=String.fromCharCode(i[a]+256*i[a+1]);return r}function O(e,t,n){if(e%1!=0||e<0)throw new RangeError("offset is not uint");if(e+t>n)throw new RangeError("Trying to access beyond buffer length")}function D(e,t,n,i,r,a){if(!l.isBuffer(e))throw new TypeError('"buffer" argument must be a Buffer instance');if(t>r||t<a)throw new RangeError('"value" argument is out of bounds');if(n+i>e.length)throw new RangeError("Index out of range")}function R(e,t,n,i){t<0&&(t=65535+t+1);for(var r=0,a=Math.min(e.length-n,2);r<a;++r)e[n+r]=(t&255<<8*(i?r:1-r))>>>8*(i?r:1-r)}function M(e,t,n,i){t<0&&(t=4294967295+t+1);for(var r=0,a=Math.min(e.length-n,4);r<a;++r)e[n+r]=t>>>8*(i?r:3-r)&255}function N(e,t,n,i,r,a){if(n+i>e.length)throw new RangeError("Index out of range");if(n<0)throw new RangeError("Index out of range")}function q(e,t,n,i,a){return a||N(e,0,n,4),r.write(e,t,n,i,23,4),n+4}function U(e,t,n,i,a){return a||N(e,0,n,8),r.write(e,t,n,i,52,8),n+8}l.prototype.slice=function(e,t){var n,i=this.length;if((e=~~e)<0?(e+=i)<0&&(e=0):e>i&&(e=i),(t=void 0===t?i:~~t)<0?(t+=i)<0&&(t=0):t>i&&(t=i),t<e&&(t=e),l.TYPED_ARRAY_SUPPORT)(n=this.subarray(e,t)).__proto__=l.prototype;else{var r=t-e;n=new l(r,void 0);for(var a=0;a<r;++a)n[a]=this[a+e]}return n},l.prototype.readUIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i},l.prototype.readUIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=this[e+--t],r=1;t>0&&(r*=256);)i+=this[e+--t]*r;return i},l.prototype.readUInt8=function(e,t){return t||O(e,1,this.length),this[e]},l.prototype.readUInt16LE=function(e,t){return t||O(e,2,this.length),this[e]|this[e+1]<<8},l.prototype.readUInt16BE=function(e,t){return t||O(e,2,this.length),this[e]<<8|this[e+1]},l.prototype.readUInt32LE=function(e,t){return t||O(e,4,this.length),(this[e]|this[e+1]<<8|this[e+2]<<16)+16777216*this[e+3]},l.prototype.readUInt32BE=function(e,t){return t||O(e,4,this.length),16777216*this[e]+(this[e+1]<<16|this[e+2]<<8|this[e+3])},l.prototype.readIntLE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=this[e],r=1,a=0;++a<t&&(r*=256);)i+=this[e+a]*r;return i>=(r*=128)&&(i-=Math.pow(2,8*t)),i},l.prototype.readIntBE=function(e,t,n){e|=0,t|=0,n||O(e,t,this.length);for(var i=t,r=1,a=this[e+--i];i>0&&(r*=256);)a+=this[e+--i]*r;return a>=(r*=128)&&(a-=Math.pow(2,8*t)),a},l.prototype.readInt8=function(e,t){return t||O(e,1,this.length),128&this[e]?-1*(255-this[e]+1):this[e]},l.prototype.readInt16LE=function(e,t){t||O(e,2,this.length);var n=this[e]|this[e+1]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt16BE=function(e,t){t||O(e,2,this.length);var n=this[e+1]|this[e]<<8;return 32768&n?4294901760|n:n},l.prototype.readInt32LE=function(e,t){return t||O(e,4,this.length),this[e]|this[e+1]<<8|this[e+2]<<16|this[e+3]<<24},l.prototype.readInt32BE=function(e,t){return t||O(e,4,this.length),this[e]<<24|this[e+1]<<16|this[e+2]<<8|this[e+3]},l.prototype.readFloatLE=function(e,t){return t||O(e,4,this.length),r.read(this,e,!0,23,4)},l.prototype.readFloatBE=function(e,t){return t||O(e,4,this.length),r.read(this,e,!1,23,4)},l.prototype.readDoubleLE=function(e,t){return t||O(e,8,this.length),r.read(this,e,!0,52,8)},l.prototype.readDoubleBE=function(e,t){return t||O(e,8,this.length),r.read(this,e,!1,52,8)},l.prototype.writeUIntLE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=1,a=0;for(this[t]=255&e;++a<n&&(r*=256);)this[t+a]=e/r&255;return t+n},l.prototype.writeUIntBE=function(e,t,n,i){(e=+e,t|=0,n|=0,i)||D(this,e,t,n,Math.pow(2,8*n)-1,0);var r=n-1,a=1;for(this[t+r]=255&e;--r>=0&&(a*=256);)this[t+r]=e/a&255;return t+n},l.prototype.writeUInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,255,0),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),this[t]=255&e,t+1},l.prototype.writeUInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeUInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,65535,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeUInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t+3]=e>>>24,this[t+2]=e>>>16,this[t+1]=e>>>8,this[t]=255&e):M(this,e,t,!0),t+4},l.prototype.writeUInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,4294967295,0),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeIntLE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var a=0,s=1,o=0;for(this[t]=255&e;++a<n&&(s*=256);)e<0&&0===o&&0!==this[t+a-1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},l.prototype.writeIntBE=function(e,t,n,i){if(e=+e,t|=0,!i){var r=Math.pow(2,8*n-1);D(this,e,t,n,r-1,-r)}var a=n-1,s=1,o=0;for(this[t+a]=255&e;--a>=0&&(s*=256);)e<0&&0===o&&0!==this[t+a+1]&&(o=1),this[t+a]=(e/s>>0)-o&255;return t+n},l.prototype.writeInt8=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,1,127,-128),l.TYPED_ARRAY_SUPPORT||(e=Math.floor(e)),e<0&&(e=255+e+1),this[t]=255&e,t+1},l.prototype.writeInt16LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8):R(this,e,t,!0),t+2},l.prototype.writeInt16BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,2,32767,-32768),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>8,this[t+1]=255&e):R(this,e,t,!1),t+2},l.prototype.writeInt32LE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),l.TYPED_ARRAY_SUPPORT?(this[t]=255&e,this[t+1]=e>>>8,this[t+2]=e>>>16,this[t+3]=e>>>24):M(this,e,t,!0),t+4},l.prototype.writeInt32BE=function(e,t,n){return e=+e,t|=0,n||D(this,e,t,4,2147483647,-2147483648),e<0&&(e=4294967295+e+1),l.TYPED_ARRAY_SUPPORT?(this[t]=e>>>24,this[t+1]=e>>>16,this[t+2]=e>>>8,this[t+3]=255&e):M(this,e,t,!1),t+4},l.prototype.writeFloatLE=function(e,t,n){return q(this,e,t,!0,n)},l.prototype.writeFloatBE=function(e,t,n){return q(this,e,t,!1,n)},l.prototype.writeDoubleLE=function(e,t,n){return U(this,e,t,!0,n)},l.prototype.writeDoubleBE=function(e,t,n){return U(this,e,t,!1,n)},l.prototype.copy=function(e,t,n,i){if(n||(n=0),i||0===i||(i=this.length),t>=e.length&&(t=e.length),t||(t=0),i>0&&i<n&&(i=n),i===n)return 0;if(0===e.length||0===this.length)return 0;if(t<0)throw new RangeError("targetStart out of bounds");if(n<0||n>=this.length)throw new RangeError("sourceStart out of bounds");if(i<0)throw new RangeError("sourceEnd out of bounds");i>this.length&&(i=this.length),e.length-t<i-n&&(i=e.length-t+n);var r,a=i-n;if(this===e&&n<t&&t<i)for(r=a-1;r>=0;--r)e[r+t]=this[r+n];else if(a<1e3||!l.TYPED_ARRAY_SUPPORT)for(r=0;r<a;++r)e[r+t]=this[r+n];else Uint8Array.prototype.set.call(e,this.subarray(n,n+a),t);return a},l.prototype.fill=function(e,t,n,i){if("string"==typeof e){if("string"==typeof t?(i=t,t=0,n=this.length):"string"==typeof n&&(i=n,n=this.length),1===e.length){var r=e.charCodeAt(0);r<256&&(e=r)}if(void 0!==i&&"string"!=typeof i)throw new TypeError("encoding must be a string");if("string"==typeof i&&!l.isEncoding(i))throw new TypeError("Unknown encoding: "+i)}else"number"==typeof e&&(e&=255);if(t<0||this.length<t||this.length<n)throw new RangeError("Out of range index");if(n<=t)return this;var a;if(t>>>=0,n=void 0===n?this.length:n>>>0,e||(e=0),"number"==typeof e)for(a=t;a<n;++a)this[a]=e;else{var s=l.isBuffer(e)?e:F(new l(e,i).toString()),o=s.length;for(a=0;a<n-t;++a)this[a+t]=s[a%o]}return this};var j=/[^+\/0-9A-Za-z-_]/g;function B(e){return e<16?"0"+e.toString(16):e.toString(16)}function F(e,t){var n;t=t||1/0;for(var i=e.length,r=null,a=[],s=0;s<i;++s){if((n=e.charCodeAt(s))>55295&&n<57344){if(!r){if(n>56319){(t-=3)>
2-1&&a.push(239,191,189);continue}if(s+1===i){(t-=3)>-1&&a.push(239,191,189);continue}r=n;continue}if(n<56320){(t-=3)>-1&&a.push(239,191,189),r=n;continue}n=65536+(r-55296<<10|n-56320)}else r&&(t-=3)>-1&&a.push(239,191,189);if(r=null,n<128){if((t-=1)<0)break;a.push(n)}else if(n<2048){if((t-=2)<0)break;a.push(n>>6|192,63&n|128)}else if(n<65536){if((t-=3)<0)break;a.push(n>>12|224,n>>6&63|128,63&n|128)}else{if(!(n<1114112))throw new Error("Invalid code point");if((t-=4)<0)break;a.push(n>>18|240,n>>12&63|128,n>>6&63|128,63&n|128)}}return a}function H(e){return i.toByteArray(function(e){if((e=function(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}(e).replace(j,"")).length<2)return"";for(;e.length%4!=0;)e+="=";return e}(e))}function W(e,t,n,i){for(var r=0;r<i&&!(r+n>=t.length||r>=e.length);++r)t[r+n]=e[r];return r}},9144:(e,t,n)=>{var i,r=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},a=n(5893);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=a),e.exports=i},8908:(e,t,n)=>{var i;i="undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},e.exports=i},645:(e,t)=>{t.read=function(e,t,n,i,r){var a,s,o=8*r-i-1,l=(1<<o)-1,c=l>>1,u=-7,d=n?r-1:0,h=n?-1:1,f=e[t+d];for(d+=h,a=f&(1<<-u)-1,f>>=-u,u+=o;u>0;a=256*a+e[t+d],d+=h,u-=8);for(s=a&(1<<-u)-1,a>>=-u,u+=i;u>0;s=256*s+e[t+d],d+=h,u-=8);if(0===a)a=1-c;else{if(a===l)return s?NaN:1/0*(f?-1:1);s+=Math.pow(2,i),a-=c}return(f?-1:1)*s*Math.pow(2,a-i)},t.write=function(e,t,n,i,r,a){var s,o,l,c=8*a-r-1,u=(1<<c)-1,d=u>>1,h=23===r?Math.pow(2,-24)-Math.pow(2,-77):0,f=i?0:a-1,p=i?1:-1,m=t<0||0===t&&1/t<0?1:0;for(t=Math.abs(t),isNaN(t)||t===1/0?(o=isNaN(t)?1:0,s=u):(s=Math.floor(Math.log(t)/Math.LN2),t*(l=Math.pow(2,-s))<1&&(s--,l*=2),(t+=s+d>=1?h/l:h*Math.pow(2,1-d))*l>=2&&(s++,l/=2),s+d>=u?(o=0,s=u):s+d>=1?(o=(t*l-1)*Math.pow(2,r),s+=d):(o=t*Math.pow(2,d-1)*Math.pow(2,r),s=0));r>=8;e[n+f]=255&o,f+=p,o/=256,r-=8);for(s=s<<r|o,c+=r;c>0;e[n+f]=255&s,f+=p,s/=256,c-=8);e[n+f-p]|=128*m}},7376:e=>{e.exports=function(e){if(!e)return!1;var n=t.call(e);return"[object Function]"===n||"function"==typeof e&&"[object RegExp]"!==n||"undefined"!=typeof window&&(e===window.setTimeout||e===window.alert||e===window.confirm||e===window.prompt)};var t=Object.prototype.toString},5826:e=>{var t={}.toString;e.exports=Array.isArray||function(e){return"[object Array]"==t.call(e)}},3587:(e,t,n)=>{var i,r,a;r=[n(9755)],i=function(e){e.extend(e.fn,{validate:function(t){if(this.length){var n=e.data(this[0],"validator");return n||(this.attr("novalidate","novalidate"),n=new e.validator(t,this[0]),e.data(this[0],"validator",n),n.settings.onsubmit&&(this.on("click.validate",":submit",(function(t){n.submitButton=t.currentTarget,e(this).hasClass("cancel")&&(n.cancelSubmit=!0),void 0!==e(this).attr("formnovalidate")&&(n.cancelSubmit=!0)})),this.on("submit.validate",(function(t){function i(){var i,r;return n.submitButton&&(n.settings.submitHandler||n.formSubmitted)&&(i=e("<input type='hidden'/>").attr("name",n.submitButton.name).val(e(n.submitButton).val()).appendTo(n.currentForm)),!(n.settings.submitHandler&&!n.settings.debug)||(r=n.settings.submitHandler.call(n,n.currentForm,t),i&&i.remove(),void 0!==r&&r)}return n.settings.debug&&t.preventDefault(),n.cancelSubmit?(n.cancelSubmit=!1,i()):n.form()?n.pendingRequest?(n.formSubmitted=!0,!1):i():(n.focusInvalid(),!1)}))),n)}t&&t.debug&&window.console&&console.warn("Nothing selected, can't validate, returning nothing.")},valid:function(){var t,n,i;return e(this[0]).is("form")?t=this.validate().form():(i=[],t=!0,n=e(this[0].form).validate(),this.each((function(){(t=n.element(this)&&t)||(i=i.concat(n.errorList))})),n.errorList=i),t},rules:function(t,n){var i,r,a,s,o,l,c=this[0],u=void 0!==this.attr("contenteditable")&&"false"!==this.attr("contenteditable");if(null!=c&&(!c.form&&u&&(c.form=this.closest("form")[0],c.name=this.attr("name")),null!=c.form)){if(t)switch(r=(i=e.data(c.form,"validator").settings).rules,a=e.validator.staticRules(c),t){case"add":e.extend(a,e.validator.normalizeRule(n)),delete a.messages,r[c.name]=a,n.messages&&(i.messages[c.name]=e.extend(i.messages[c.name],n.messages));break;case"remove":return n?(l={},e.each(n.split(/\s/),(function(e,t){l[t]=a[t],delete a[t]})),l):(delete r[c.name],a)}return(s=e.validator.normalizeRules(e.extend({},e.validator.classRules(c),e.validator.attributeRules(c),e.validator.dataRules(c),e.validator.staticRules(c)),c)).required&&(o=s.required,delete s.required,s=e.extend({required:o},s)),s.remote&&(o=s.remote,delete s.remote,s=e.extend(s,{remote:o})),s}}});var t,n=function(e){return e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"")};e.extend(e.expr.pseudos||e.expr[":"],{blank:function(t){return!n(""+e(t).val())},filled:function(t){var i=e(t).val();return null!==i&&!!n(""+i)},unchecked:function(t){return!e(t).prop("checked")}}),e.validator=function(t,n){this.settings=e.extend(!0,{},e.validator.defaults,t),this.currentForm=n,this.init()},e.validator.format=function(t,n){return 1===arguments.length?function(){var n=e.makeArray(arguments);return n.unshift(t),e.validator.format.apply(this,n)}:(void 0===n||(arguments.length>2&&n.constructor!==Array&&(n=e.makeArray(arguments).slice(1)),n.constructor!==Array&&(n=[n]),e.each(n,(function(e,n){t=t.replace(new RegExp("\\{"+e+"\\}","g"),(function(){return n}))}))),t)},e.extend(e.validator,{defaults:{messages:{},groups:{},rules:{},errorClass:"error",pendingClass:"pending",validClass:"valid",errorElement:"label",focusCleanup:!1,focusInvalid:!0,errorContainer:e([]),errorLabelContainer:e([]),onsubmit:!0,ignore:":hidden",ignoreTitle:!1,onfocusin:function(e){this.lastActive=e,this.settings.focusCleanup&&(this.settings.unhighlight&&this.settings.unhighlight.call(this,e,this.settings.errorClass,this.settings.val
2idClass),this.hideThese(this.errorsFor(e)))},onfocusout:function(e){this.checkable(e)||!(e.name in this.submitted)&&this.optional(e)||this.element(e)},onkeyup:function(t,n){var i=[16,17,18,20,35,36,37,38,39,40,45,144,225];9===n.which&&""===this.elementValue(t)||-1!==e.inArray(n.keyCode,i)||(t.name in this.submitted||t.name in this.invalid)&&this.element(t)},onclick:function(e){e.name in this.submitted?this.element(e):e.parentNode.name in this.submitted&&this.element(e.parentNode)},highlight:function(t,n,i){"radio"===t.type?this.findByName(t.name).addClass(n).removeClass(i):e(t).addClass(n).removeClass(i)},unhighlight:function(t,n,i){"radio"===t.type?this.findByName(t.name).removeClass(n).addClass(i):e(t).removeClass(n).addClass(i)}},setDefaults:function(t){e.extend(e.validator.defaults,t)},messages:{required:"This field is required.",remote:"Please fix this field.",email:"Please enter a valid email address.",url:"Please enter a valid URL.",date:"Please enter a valid date.",dateISO:"Please enter a valid date (ISO).",number:"Please enter a valid number.",digits:"Please enter only digits.",equalTo:"Please enter the same value again.",maxlength:e.validator.format("Please enter no more than {0} characters."),minlength:e.validator.format("Please enter at least {0} characters."),rangelength:e.validator.format("Please enter a value between {0} and {1} characters long."),range:e.validator.format("Please enter a value between {0} and {1}."),max:e.validator.format("Please enter a value less than or equal to {0}."),min:e.validator.format("Please enter a value greater than or equal to {0}."),step:e.validator.format("Please enter a multiple of {0}.")},autoCreateRanges:!1,prototype:{init:function(){this.labelContainer=e(this.settings.errorLabelContainer),this.errorContext=this.labelContainer.length&&this.labelContainer||e(this.currentForm),this.containers=e(this.settings.errorContainer).add(this.settings.errorLabelContainer),this.submitted={},this.valueCache={},this.pendingRequest=0,this.pending={},this.invalid={},this.reset();var t,n=this.currentForm,i=this.groups={};function r(t){var i=void 0!==e(this).attr("contenteditable")&&"false"!==e(this).attr("contenteditable");if(!this.form&&i&&(this.form=e(this).closest("form")[0],this.name=e(this).attr("name")),n===this.form){var r=e.data(this.form,"validator"),a="on"+t.type.replace(/^validate/,""),s=r.settings;s[a]&&!e(this).is(s.ignore)&&s[a].call(r,this,t)}}e.each(this.settings.groups,(function(t,n){"string"==typeof n&&(n=n.split(/\s/)),e.each(n,(function(e,n){i[n]=t}))})),t=this.settings.rules,e.each(t,(function(n,i){t[n]=e.validator.normalizeRule(i)})),e(this.currentForm).on("focusin.validate focusout.validate keyup.validate",":text, [type='password'], [type='file'], select, textarea, [type='number'], [type='search'], [type='tel'], [type='url'], [type='email'], [type='datetime'], [type='date'], [type='month'], [type='week'], [type='time'], [type='datetime-local'], [type='range'], [type='color'], [type='radio'], [type='checkbox'], [contenteditable], [type='button']",r).on("click.validate","select, option, [type='radio'], [type='checkbox']",r),this.settings.invalidHandler&&e(this.currentForm).on("invalid-form.validate",this.settings.invalidHandler)},form:function(){return this.checkForm(),e.extend(this.submitted,this.errorMap),this.invalid=e.extend({},this.errorMap),this.valid()||e(this.currentForm).triggerHandler("invalid-form",[this]),this.showErrors(),this.valid()},checkForm:function(){this.prepareForm();for(var e=0,t=this.currentElements=this.elements();t[e];e++)this.check(t[e]);return this.valid()},element:function(t){var n,i,r=this.clean(t),a=this.validationTargetFor(r),s=this,o=!0;return void 0===a?delete this.invalid[r.name]:(this.prepareElement(a),this.currentElements=e(a),(i=this.groups[a.name])&&e.each(this.groups,(function(e,t){t===i&&e!==a.name&&(r=s.validationTargetFor(s.clean(s.findByName(e))))&&r.name in s.invalid&&(s.currentElements.push(r),o=s.check(r)&&o)})),n=!1!==this.check(a),o=o&&n,this.invalid[a.name]=!n,this.numberOfInvalids()||(this.toHide=this.toHide.add(this.containers
2)),this.showErrors(),e(t).attr("aria-invalid",!n)),o},showErrors:function(t){if(t){var n=this;e.extend(this.errorMap,t),this.errorList=e.map(this.errorMap,(function(e,t){return{message:e,element:n.findByName(t)[0]}})),this.successList=e.grep(this.successList,(function(e){return!(e.name in t)}))}this.settings.showErrors?this.settings.showErrors.call(this,this.errorMap,this.errorList):this.defaultShowErrors()},resetForm:function(){e.fn.resetForm&&e(this.currentForm).resetForm(),this.invalid={},this.submitted={},this.prepareForm(),this.hideErrors();var t=this.elements().removeData("previousValue").removeAttr("aria-invalid");this.resetElements(t)},resetElements:function(e){var t;if(this.settings.unhighlight)for(t=0;e[t];t++)this.settings.unhighlight.call(this,e[t],this.settings.errorClass,""),this.findByName(e[t].name).removeClass(this.settings.validClass);else e.removeClass(this.settings.errorClass).removeClass(this.settings.validClass)},numberOfInvalids:function(){return this.objectLength(this.invalid)},objectLength:function(e){var t,n=0;for(t in e)void 0!==e[t]&&null!==e[t]&&!1!==e[t]&&n++;return n},hideErrors:function(){this.hideThese(this.toHide)},hideThese:function(e){e.not(this.containers).text(""),this.addWrapper(e).hide()},valid:function(){return 0===this.size()},size:function(){return this.errorList.length},focusInvalid:function(){if(this.settings.focusInvalid)try{e(this.findLastActive()||this.errorList.length&&this.errorList[0].element||[]).filter(":visible").trigger("focus").trigger("focusin")}catch(e){}},findLastActive:function(){var t=this.lastActive;return t&&1===e.grep(this.errorList,(function(e){return e.element.name===t.name})).length&&t},elements:function(){var t=this,n={};return e(this.currentForm).find("input, select, textarea, [contenteditable]").not(":submit, :reset, :image, :disabled").not(this.settings.ignore).filter((function(){var i=this.name||e(this).attr("name"),r=void 0!==e(this).attr("contenteditable")&&"false"!==e(this).attr("contenteditable");return!i&&t.settings.debug&&window.console&&console.error("%o has no name assigned",this),r&&(this.form=e(this).closest("form")[0],this.name=i),!(this.form!==t.currentForm||i in n||!t.objectLength(e(this).rules())||(n[i]=!0,0))}))},clean:function(t){return e(t)[0]},errors:function(){var t=this.settings.errorClass.split(" ").join(".");return e(this.settings.errorElement+"."+t,this.errorContext)},resetInternals:function(){this.successList=[],this.errorList=[],this.errorMap={},this.toShow=e([]),this.toHide=e([])},reset:function(){this.resetInternals(),this.currentElements=e([])},prepareForm:function(){this.reset(),this.toHide=this.errors().add(this.containers)},prepareElement:function(e){this.reset(),this.toHide=this.errorsFor(e)},elementValue:function(t){var n,i,r=e(t),a=t.type,s=void 0!==r.attr("contenteditable")&&"false"!==r.attr("contenteditable");return"radio"===a||"checkbox"===a?this.findByName(t.name).filter(":checked").val():"number"===a&&void 0!==t.validity?t.validity.badInput?"NaN":r.val():(n=s?r.text():r.val(),"file"===a?"C:\\fakepath\\"===n.substr(0,12)?n.substr(12):(i=n.lastIndexOf("/"))>=0||(i=n.lastIndexOf("\\"))>=0?n.substr(i+1):n:"string"==typeof n?n.replace(/\r/g,""):n)},check:function(t){t=this.validationTargetFor(this.clean(t));var n,i,r,a,s=e(t).rules(),o=e.map(s,(function(e,t){return t})).length,l=!1,c=this.elementValue(t);for(i in"function"==typeof s.normalizer?a=s.normalizer:"function"==typeof this.settings.normalizer&&(a=this.settings.normalizer),a&&(c=a.call(t,c),delete s.normalizer),s){r={method:i,parameters:s[i]};try{if("dependency-mismatch"===(n=e.validator.methods[i].call(this,c,t,r.parameters))&&1===o){l=!0;continue}if(l=!1,"pending"===n)return void(this.toHide=this.toHide.not(this.errorsFor(t)));if(!n)return this.formatAndAdd(t,r),!1}catch(e){throw this.settings.debug&&window.console&&console.log("Exception occurred when checking element "+t.id+", check the '"+r.method+"' method.",e),e instanceof TypeError&&(e.message+=". Exception occurred when checking element "+t.id+", check the '"+r.method+"' method."),e}}if(!l)return this.objectLength(s)&&this.successList.push(t),!0},customDataMessage:function(t,n){return e(t).data("msg"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase())||e(t).data("msg")},customMessage:function(e,t){var n=this.settings.messages[e];return n&&(n.constructor===String?n:n[t])},findDefined:function(){for(var e=0;e<arguments.length;e++)if(void 0!==arguments[e])return arguments[e]},defaultMessage:function(t,n){"string"==typeof n&&(n={method:n});var i=this.findDefined(this.customMessage(t.name,n.method),this.customDataMessage(t,n.method),!this.settings.ignoreTitle&&t.title||void 0,e.validator.messages[n.method],"<strong>Warning: No message defined for "+t.name+"</strong>"),r=/\$?\{(\d+)\}/g;return"function"==typeof i?i=i.call(this,n.parameters,t):r.test(i)&&(i=e.validator.format(i.replace(r,"{$1}"),n.parameters)),i},formatAndAdd:function(e,t){var n=this.defaultMessage(e,t);this.errorList.push({message:n,element:e,method:t.method}),this.errorMap[e.name]=n,this.submitted[e.name]=n},addWrapper:function(e){return this.settings.wrapper&&(e=e.add(e.parent(this.settings.wrapper))),e},defaultShowErrors:function(){var e,t,n;for(e=0;this.errorList[e];e++)n=this.errorList[e],this.settings.highlight&&this.settings.highlight.call(this,n.element,this.settings.errorClass,this.settings.val
2idClass),this.showLabel(n.element,n.message);if(this.errorList.length&&(this.toShow=this.toShow.add(this.containers)),this.settings.success)for(e=0;this.successList[e];e++)this.showLabel(this.successList[e]);if(this.settings.unhighlight)for(e=0,t=this.validElements();t[e];e++)this.settings.unhighlight.call(this,t[e],this.settings.errorClass,this.settings.validClass);this.toHide=this.toHide.not(this.toShow),this.hideErrors(),this.addWrapper(this.toShow).show()},validElements:function(){return this.currentElements.not(this.invalidElements())},invalidElements:function(){return e(this.errorList).map((function(){return this.element}))},showLabel:function(t,n){var i,r,a,s,o=this.errorsFor(t),l=this.idOrName(t),c=e(t).attr("aria-describedby");o.length?(o.removeClass(this.settings.validClass).addClass(this.settings.errorClass),o.html(n)):(i=o=e("<"+this.settings.errorElement+">").attr("id",l+"-error").addClass(this.settings.errorClass).html(n||""),this.settings.wrapper&&(i=o.hide().show().wrap("<"+this.settings.wrapper+"/>").parent()),this.labelContainer.length?this.labelContainer.append(i):this.settings.errorPlacement?this.settings.errorPlacement.call(this,i,e(t)):i.insertAfter(t),o.is("label")?o.attr("for",l):0===o.parents("label[for='"+this.escapeCssMeta(l)+"']").length&&(a=o.attr("id"),c?c.match(new RegExp("\\b"+this.escapeCssMeta(a)+"\\b"))||(c+=" "+a):c=a,e(t).attr("aria-describedby",c),(r=this.groups[t.name])&&(s=this,e.each(s.groups,(function(t,n){n===r&&e("[name='"+s.escapeCssMeta(t)+"']",s.currentForm).attr("aria-describedby",o.attr("id"))}))))),!n&&this.settings.success&&(o.text(""),"string"==typeof this.settings.success?o.addClass(this.settings.success):this.settings.success(o,t)),this.toShow=this.toShow.add(o)},errorsFor:function(t){var n=this.escapeCssMeta(this.idOrName(t)),i=e(t).attr("aria-describedby"),r="label[for='"+n+"'], label[for='"+n+"'] *";return i&&(r=r+", #"+this.escapeCssMeta(i).replace(/\s+/g,", #")),this.errors().filter(r)},escapeCssMeta:function(e){return void 0===e?"":e.replace(/([\\!"#$%&'()*+,./:;<=>?@\[\]^`{|}~])/g,"\\$1")},idOrName:function(e){return this.groups[e.name]||(this.checkable(e)?e.name:e.id||e.name)},validationTargetFor:function(t){return this.checkable(t)&&(t=this.findByName(t.name)),e(t).not(this.settings.ignore)[0]},checkable:function(e){return/radio|checkbox/i.test(e.type)},findByName:function(t){return e(this.currentForm).find("[name='"+this.escapeCssMeta(t)+"']")},getLength:function(t,n){switch(n.nodeName.toLowerCase()){case"select":return e("option:selected",n).length;case"input":if(this.checkable(n))return this.findByName(n.name).filter(":checked").length}return t.length},depend:function(e,t){return!this.dependTypes[typeof e]||this.dependTypes[typeof e](e,t)},dependTypes:{boolean:function(e){return e},string:function(t,n){return!!e(t,n.form).length},function:function(e,t){return e(t)}},optional:function(t){var n=this.elementValue(t);return!e.validator.methods.required.call(this,n,t)&&"dependency-mismatch"},startRequest:function(t){this.pending[t.name]||(this.pendingRequest++,e(t).addClass(this.settings.pendingClass),this.pending[t.name]=!0)},stopRequest:function(t,n){this.pendingRequest--,this.pendingRequest<0&&(this.pendingRequest=0),delete this.pending[t.name],e(t).removeClass(this.settings.pendingClass),n&&0===this.pendingRequest&&this.formSubmitted&&this.form()&&0===this.pendingRequest?(e(this.currentForm).submit(),this.submitButton&&e("input:hidden[name='"+this.submitButton.name+"']",this.currentForm).remove(),this.formSubmitted=!1):!n&&0===this.pendingRequest&&this.formSubmitted&&(e(this.currentForm).triggerHandler("invalid-form",[this]),this.formSubmitted=!1)},previousValue:function(t,n){return n="string"==typeof n&&n||"remote",e.data(t,"previousValue")||e.data(t,"previousValue",{old:null,valid:!0,message:this.defaultMessage(t,{method:n})})},destroy:function(){this.resetForm(),e(this.currentForm).off(".validate").removeData("validator").find(".validate-equalTo-blur").off(".validate-equalTo").removeClass("validate-equalTo-blur").find(".validate-lessThan-blur").off(".validate-lessThan").removeClass("val
2idate-lessThan-blur").find(".validate-lessThanEqual-blur").off(".validate-lessThanEqual").removeClass("validate-lessThanEqual-blur").find(".validate-greaterThanEqual-blur").off(".validate-greaterThanEqual").removeClass("validate-greaterThanEqual-blur").find(".validate-greaterThan-blur").off(".validate-greaterThan").removeClass("validate-greaterThan-blur")}},classRuleSettings:{required:{required:!0},email:{email:!0},url:{url:!0},date:{date:!0},dateISO:{dateISO:!0},number:{number:!0},digits:{digits:!0},creditcard:{creditcard:!0}},addClassRules:function(t,n){t.constructor===String?this.classRuleSettings[t]=n:e.extend(this.classRuleSettings,t)},classRules:function(t){var n={},i=e(t).attr("class");return i&&e.each(i.split(" "),(function(){this in e.validator.classRuleSettings&&e.extend(n,e.validator.classRuleSettings[this])})),n},normalizeAttributeRule:function(e,t,n,i){/min|max|step/.test(n)&&(null===t||/number|range|text/.test(t))&&(i=Number(i),isNaN(i)&&(i=void 0)),i||0===i?e[n]=i:t===n&&"range"!==t&&(e["date"===t?"dateISO":n]=!0)},attributeRules:function(t){var n,i,r={},a=e(t),s=t.getAttribute("type");for(n in e.validator.methods)"required"===n?(""===(i=t.getAttribute(n))&&(i=!0),i=!!i):i=a.attr(n),this.normalizeAttributeRule(r,s,n,i);return r.maxlength&&/-1|2147483647|524288/.test(r.maxlength)&&delete r.maxlength,r},dataRules:function(t){var n,i,r={},a=e(t),s=t.getAttribute("type");for(n in e.validator.methods)""===(i=a.data("rule"+n.charAt(0).toUpperCase()+n.substring(1).toLowerCase()))&&(i=!0),this.normalizeAttributeRule(r,s,n,i);return r},staticRules:function(t){var n={},i=e.data(t.form,"validator");return i.settings.rules&&(n=e.validator.normalizeRule(i.settings.rules[t.name])||{}),n},normalizeRules:function(t,n){return e.each(t,(function(i,r){if(!1!==r){if(r.param||r.depends){var a=!0;switch(typeof r.depends){case"string":a=!!e(r.depends,n.form).length;break;case"function":a=r.depends.call(n,n)}a?t[i]=void 0===r.param||r.param:(e.data(n.form,"validator").resetElements(e(n)),delete t[i])}}else delete t[i]})),e.each(t,(function(e,i){t[e]="function"==typeof i&&"normalizer"!==e?i(n):i})),e.each(["minlength","maxlength"],(function(){t[this]&&(t[this]=Number(t[this]))})),e.each(["rangelength","range"],(function(){var e;t[this]&&(Array.isArray(t[this])?t[this]=[Number(t[this][0]),Number(t[this][1])]:"string"==typeof t[this]&&(e=t[this].replace(/[\[\]]/g,"").split(/[\s,]+/),t[this]=[Number(e[0]),Number(e[1])]))})),e.validator.autoCreateRanges&&(null!=t.min&&null!=t.max&&(t.range=[t.min,t.max],delete t.min,delete t.max),null!=t.minlength&&null!=t.maxlength&&(t.rangelength=[t.minlength,t.maxlength],delete t.minlength,delete t.maxlength)),t},normalizeRule:function(t){if("string"==typeof t){var n={};e.each(t.split(/\s/),(function(){n[this]=!0})),t=n}return t},addMethod:function(t,n,i){e.validator.methods[t]=n,e.validator.messages[t]=void 0!==i?i:e.validator.messages[t],n.length<3&&e.validator.addClassRules(t,e.validator.normalizeRule(t))},methods:{required:function(t,n,i){if(!this.depend(i,n))return"dependency-mismatch";if("select"===n.nodeName.toLowerCase()){var r=e(n).val();return r&&r.length>0}return this.checkable(n)?this.getLength(t,n)>0:null!=t&&t.length>0},email:function(e,t){return this.optional(t)||/^[a-zA-Z0-9.!#$%&'*+\/=?^_`{|}~-]+@[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?(?:\.[a-zA-Z0-9](?:[a-zA-Z0-9-]{0,61}[a-zA-Z0-9])?)*$/.test(e)},url:function(e,t){return this.optional(t)||/^(?:(?:(?:https?|ftp):)?\/\/)(?:\S+(?::\S*)?@)?(?:(?!(?:10|127)(?:\.\d{1,3}){3})(?!(?:169\.254|192\.168)(?:\.\d{1,3}){2})(?!172\.(?:1[6-9]|2\d|3[0-1])(?:\.\d{1,3}){2})(?:[1-9]\d?|1\d\d|2[01]\d|22[0-3])(?:\.(?:1?\d{1,2}|2[0-4]\d|25[0-5])){2}(?:\.(?:[1-9]\d?|1\d\d|2[0-4]\d|25[0-4]))|(?:(?:[a-z0-9\u00a1-\uffff][a-z0-9\u00a1-\uffff_-]{0,62})?[a-z0-9\u00a1-\uffff]\.)+(?:[a-z\u00a1-\uffff]{2,}\.?))(?::\d{2,5})?(?:[/?#]\S*)?$/i.test(e)},date:(t=!1,function(e,n){return t||(t=!0,this.settings.debug&&window.console&&console.warn("The `date` method is deprecated and will be removed in version '2.0.0'.\nPlease don't use it, since it relies on the Date constructor, which\nbehaves very differently across browsers and locales. Use `dateISO`\ninstead or one of the locale specific methods in `localizations/`\nand `additional-methods.js`.")),this.optional(n)||!/Invalid|NaN/.test(new Date(e).toString())}),dateISO:function(e,t){return this.optional(t)||/^\d{4}[\/\-](0?[1-9]|1[012])[\/\-](0?[1-9]|[12][0-9]|3[01])$/.test(e)},number:function(e,t){return this.optional(t)||/^(?:-?\d+|-?\d{1,3}(?:,\d{3})+)?(?:\.\d+)?$/.test(e)},digits:function(e,t){return this.optional(t)||/^\d+$/.test(e)},minlength:function(e,t,n){var i=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i>=n},maxlength:function(e,t,n){var i=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i<=n},rangelength:function(e,t,n){var i=Array.isArray(e)?e.length:this.getLength(e,t);return this.optional(t)||i>=n[0]&&i<=n[1]},min:function(e,t,n){return this.optional(t)||e>=n},max:function(e,t,n){return this.optional(t)||e<=n},range:function(e,t,n){return this.optional(t)||e>=n[0]&&e<=n[1]},step:function(t,n,i){var r,a=e(n).attr("type"),s="Step attribute on input type "+a+" is not supported.",o=["text","number","range"],l=new RegExp("\\b"+a+"\\b"),c=function(e){var t=(""+e).match(/(?:\.(\d+))?$/);return t&&t[1]?t[1].length:0},u=function(e){return Math.round(e*Math.pow(10,r))},d=!0;if(a&&!l.test(o.join()))throw new Error(s);return r=c(i),(c(t)>r||u(t)%u(i)!=0)&&(d=!1),this.optional(n)||d},equalTo:function(t,n,i){var r=e(i);return this.settings.onfocusout&&r.not(".validate-equalTo-blur").length&&r.addClass("val
2idate-equalTo-blur").on("blur.validate-equalTo",(function(){e(n).valid()})),t===r.val()},remote:function(t,n,i,r){if(this.optional(n))return"dependency-mismatch";r="string"==typeof r&&r||"remote";var a,s,o,l=this.previousValue(n,r);return this.settings.messages[n.name]||(this.settings.messages[n.name]={}),l.originalMessage=l.originalMessage||this.settings.messages[n.name][r],this.settings.messages[n.name][r]=l.message,i="string"==typeof i&&{url:i}||i,o=e.param(e.extend({data:t},i.data)),l.old===o?l.valid:(l.old=o,a=this,this.startRequest(n),(s={})[n.name]=t,e.ajax(e.extend(!0,{mode:"abort",port:"validate"+n.name,dataType:"json",data:s,context:a.currentForm,success:function(e){var i,s,o,c=!0===e||"true"===e;a.settings.messages[n.name][r]=l.originalMessage,c?(o=a.formSubmitted,a.resetInternals(),a.toHide=a.errorsFor(n),a.formSubmitted=o,a.successList.push(n),a.invalid[n.name]=!1,a.showErrors()):(i={},s=e||a.defaultMessage(n,{method:r,parameters:t}),i[n.name]=l.message=s,a.invalid[n.name]=!0,a.showErrors(i)),l.valid=c,a.stopRequest(n,c)}},i)),"pending")}}});var i,r={};return e.ajaxPrefilter?e.ajaxPrefilter((function(e,t,n){var i=e.port;"abort"===e.mode&&(r[i]&&r[i].abort(),r[i]=n)})):(i=e.ajax,e.ajax=function(t){var n=("mode"in t?t:e.ajaxSettings).mode,a=("port"in t?t:e.ajaxSettings).port;return"abort"===n?(r[a]&&r[a].abort(),r[a]=i.apply(this,arguments),r[a]):i.apply(this,arguments)}),e},void 0===(a="function"==typeof i?i.apply(t,r):i)||(e.exports=a)},9755:function(e,t){var n;!function(t,n){"use strict";"object"==typeof e.exports?e.exports=t.document?n(t,!0):function(e){if(!e.document)throw new Error("jQuery requires a window with a document");return n(e)}:n(t)}("undefined"!=typeof window?window:this,(function(i,r){"use strict";var a=[],s=Object.getPrototypeOf,o=a.slice,l=a.flat?function(e){return a.flat.call(e)}:function(e){return a.concat.apply([],e)},c=a.push,u=a.indexOf,d={},h=d.toString,f=d.hasOwnProperty,p=f.toString,m=p.call(Object),g={},v=function(e){return"function"==typeof e&&"number"!=typeof e.nodeType&&"function"!=typeof e.item},y=function(e){return null!=e&&e===e.window},b=i.document,_={type:!0,src:!0,nonce:!0,noModule:!0};function T(e,t,n){var i,r,a=(n=n||b).createElement("script");if(a.text=e,t)for(i in _)(r=t[i]||t.getAttribute&&t.getAttribute(i))&&a.setAttribute(i,r);n.head.appendChild(a).parentNode.removeChild(a)}function k(e){return null==e?e+"":"object"==typeof e||"function"==typeof e?d[h.call(e)]||"object":typeof e}var w="3.7.1",S=/HTML$/i,x=function(e,t){return new x.fn.init(e,t)};function C(e){var t=!!e&&"length"in e&&e.length,n=k(e);return!v(e)&&!y(e)&&("array"===n||0===t||"number"==typeof t&&t>0&&t-1 in e)}function E(e,t){return e.nodeName&&e.nodeName.toLowerCase()===t.toLowerCase()}x.fn=x.prototype={jquery:w,constructor:x,length:0,toArray:function(){return o.call(this)},get:function(e){return null==e?o.call(this):e<0?this[e+this.length]:this[e]},pushStack:function(e){var t=x.merge(this.constructor(),e);return t.prevObject=this,t},each:function(e){return x.each(this,e)},map:function(e){return this.pushStack(x.map(this,(function(t,n){return e.call(t,n,t)})))},slice:function(){return this.pushStack(o.apply(this,arguments))},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},even:function(){return this.pushStack(x.grep(this,(function(e,t){return(t+1)%2})))},odd:function(){return this.pushStack(x.grep(this,(function(e,t){return t%2})))},eq:function(e){var t=this.length,n=+e+(e<0?t:0);return this.pushStack(n>=0&&n<t?[this[n]]:[])},end:function(){return this.prevObject||this.constructor()},push:c,sort:a.sort,splice:a.splice},x.extend=x.fn.extend=function(){var e,t,n,i,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||v(s)||(s={}),o===l&&(s=this,o--);o<l;o++)if(null!=(e=arguments[o]))for(t in e)i=e[t],"__proto__"!==t&&s!==i&&(c&&i&&(x.isPlainObject(i)||(r=Array.isArray(i)))?(n=s[t],a=r&&!Array.isArray(n)?[]:r||x.isPlainObject(n)?n:{},r=!1,s[t]=x.extend(c,a,i)):void 0!==i&&(s[t]=i));return s},x.extend({expando:"jQuery"+(w+Math.random()).replace(/\D/g,""),isReady:!0,error:function(e){throw new Error(e)},noop:function(){},isPlainObject:function(e){var t,n;
vendor: 5,564 bytes, line 2
2return!(!e||"[object Object]"!==h.call(e))&&(!(t=s(e))||"function"==typeof(n=f.call(t,"constructor")&&t.constructor)&&p.call(n)===m)},isEmptyObject:function(e){var t;for(t in e)return!1;return!0},globalEval:function(e,t,n){T(e,{nonce:t&&t.nonce},n)},each:function(e,t){var n,i=0;if(C(e))for(n=e.length;i<n&&!1!==t.call(e[i],i,e[i]);i++);else for(i in e)if(!1===t.call(e[i],i,e[i]))break;return e},text:function(e){var t,n="",i=0,r=e.nodeType;if(!r)for(;t=e[i++];)n+=x.text(t);return 1===r||11===r?e.textContent:9===r?e.documentElement.textContent:3===r||4===r?e.nodeValue:n},makeArray:function(e,t){var n=t||[];return null!=e&&(C(Object(e))?x.merge(n,"string"==typeof e?[e]:e):c.call(n,e)),n},inArray:function(e,t,n){return null==t?-1:u.call(t,e,n)},isXMLDoc:function(e){var t=e&&e.namespaceURI,n=e&&(e.ownerDocument||e).documentElement;return!S.test(t||n&&n.nodeName||"HTML")},merge:function(e,t){for(var n=+t.length,i=0,r=e.length;i<n;i++)e[r++]=t[i];return e.length=r,e},grep:function(e,t,n){for(var i=[],r=0,a=e.length,s=!n;r<a;r++)!t(e[r],r)!==s&&i.push(e[r]);return i},map:function(e,t,n){var i,r,a=0,s=[];if(C(e))for(i=e.length;a<i;a++)null!=(r=t(e[a],a,n))&&s.push(r);else for(a in e)null!=(r=t(e[a],a,n))&&s.push(r);return l(s)},guid:1,support:g}),"function"==typeof Symbol&&(x.fn[Symbol.iterator]=a[Symbol.iterator]),x.each("Boolean Number String Function Array Date RegExp Object Error Symbol".split(" "),(function(e,t){d["[object "+t+"]"]=t.toLowerCase()}));var A=a.pop,L=a.sort,I=a.splice,P="[\\x20\\t\\r\\n\\f]",O=new RegExp("^[\\x20\\t\\r\\n\\f]+|((?:^|[^\\\\])(?:\\\\.)*)[\\x20\\t\\r\\n\\f]+$","g");x.contains=function(e,t){var n=t&&t.parentNode;return e===n||!(!n||1!==n.nodeType||!(e.contains?e.contains(n):e.compareDocumentPosition&&16&e.compareDocumentPosition(n)))};var D=/([\0-\x1f\x7f]|^-?\d)|^-$|[^\x80-\uFFFF\w-]/g;function R(e,t){return t?"\0"===e?"�":e.slice(0,-1)+"\\"+e.charCodeAt(e.length-1).toString(16)+" ":"\\"+e}x.escapeSelector=function(e){return(e+"").replace(D,R)};var M=b,N=c;!function(){var e,t,n,r,s,l,c,d,h,p,m=N,v=x.expando,y=0,b=0,_=ee(),T=ee(),k=ee(),w=ee(),S=function(e,t){return e===t&&(s=!0),0},C="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",D="(?:\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\[^\\r\\n\\f]|[\\w-]|[^\0-\\x7f])+",R="\\[[\\x20\\t\\r\\n\\f]*("+D+")(?:"+P+"*([*^$|!~]?=)"+P+"*(?:'((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\"|("+D+"))|)"+P+"*\\]",q=":("+D+")(?:\\((('((?:\\\\.|[^\\\\'])*)'|\"((?:\\\\.|[^\\\\\"])*)\")|((?:\\\\.|[^\\\\()[\\]]|"+R+")*)|.*)\\)|)",U=new RegExp(P+"+","g"),j=new RegExp("^[\\x20\\t\\r\\n\\f]*,[\\x20\\t\\r\\n\\f]*"),B=new RegExp("^[\\x20\\t\\r\\n\\f]*([>+~]|[\\x20\\t\\r\\n\\f])[\\x20\\t\\r\\n\\f]*"),F=new RegExp(P+"|>"),H=new RegExp(q),W=new RegExp("^"+D+"$"),z={ID:new RegExp("^#("+D+")"),CLASS:new RegExp("^\\.("+D+")"),TAG:new RegExp("^("+D+"|[*])"),ATTR:new RegExp("^"+R),PSEUDO:new RegExp("^"+q),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\([\\x20\\t\\r\\n\\f]*(even|odd|(([+-]|)(\\d*)n|)[\\x20\\t\\r\\n\\f]*(?:([+-]|)[\\x20\\t\\r\\n\\f]*(\\d+)|))[\\x20\\t\\r\\n\\f]*\\)|)","i"),bool:new RegExp("^(?:"+C+")$","i"),needsContext:new RegExp("^[\\x20\\t\\r\\n\\f]*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\([\\x20\\t\\r\\n\\f]*((?:-\\d)?\\d*)[\\x20\\t\\r\\n\\f]*\\)|)(?=[^-]|$)","i")},V=/^(?:input|select|textarea|button)$/i,$=/^h\d$/i,X=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,G=/[+~]/,K=new RegExp("\\\\[\\da-fA-F]{1,6}[\\x20\\t\\r\\n\\f]?|\\\\([^\\r\\n\\f])","g"),Y=function(e,t){var n="0x"+e.slice(1)-65536;return t||(n<0?String.fromCharCode(n+65536):String.fromCharCode(n>>10|55296,1023&n|56320))},Q=function(){le()},J=he((function(e){return!0===e.disabled&&E(e,"fieldset")}),{dir:"parentNode",next:"legend"});try{m.apply(a=o.call(M.childNodes),M.childNodes),a[M.childNodes.length].nodeType}catch(e){m={apply:function(e,t){N.apply(e,o.call(t))},call:function(e){N.apply(e,o.call(arguments,1))}}}function Z(e,t,n,i){var r,a,s,o,c,u,f,p=t&&t.ownerDocument,y=t?t.nodeType:9;if(n=n||[],"string"!=typeof e||!e||1!==y&&9!==y&&11!==y)return n;if(!i&&(le(t),t=t||l,d)){if(11!==y&&(c=X.exec(e)))if(r=c[1]){if(9===y){if(!(s=t.getElementById(r)))return n;if(s.id===r)return m.call(n,s),n}else if(p&&(s=p.getElementById(r))&&Z.contains(t,s)&&s.id===r)return m.call(n,s),n}else{if(c[2])return m.apply(n,t.getElementsByTagName(e)),n;if((r=c[3])&&t.getElementsByClassName)return m.apply(n,t.getElementsByClassName(r)),n}if(!(w[e+" "]||h&&h.test(e))){if(f=e,p=t,1===y&&(F.test(e)||B.test(e))){for((p=G.test(e)&&oe(t.parentNode)||t)==t&&g.scope||((o=t.getAttribute("id"))?o=x.escapeSelector(o):t.setAttribute("id",o=v)),a=(u=ue(e)).length;a--;)u[a]=(o?"#"+o:":scope")+" "+de(u[a]);f=u.join(",")}try{return m.apply(n,p.querySelectorAll(f)),n}catch(t){w(e,!0)}finally{o===v&&t.removeAttribute("id")}}}return ye(e.replace(O,"$1"),t,n,i)}function ee(){var e=[];return function n(i,r){return e.push(i+" ")>t.cacheLength&&delete n[e.shift()],n[i+" "]=r}}function te(e){return e[v]=!0,e}function ne(e){var t=l.createElement("fieldset");try{return!!e(t)}catch(e){return!1}finally{t.parentNode&&t.parentNode.removeChild(t),t=null}}function ie(e){return function(t){return E(t,"input")&&t.type===e}}function re(e){return function(t){return(E(t,"input")||E(t,"button"))&&t.type===e}}function ae(e){return function(t){return"form"in t?t.parentNode&&!1===t.disabled?"label"in t?"label"in t.parentNode?t.parentNode.disabled===e:t.disabled===e:t.isDisabled===e||t.isDisabled!==!e&&J(t)===e
vendor: 35,877 bytes, line 2
2:t.disabled===e:"label"in t&&t.disabled===e}}function se(e){return te((function(t){return t=+t,te((function(n,i){for(var r,a=e([],n.length,t),s=a.length;s--;)n[r=a[s]]&&(n[r]=!(i[r]=n[r]))}))}))}function oe(e){return e&&void 0!==e.getElementsByTagName&&e}function le(e){var n,i=e?e.ownerDocument||e:M;return i!=l&&9===i.nodeType&&i.documentElement?(c=(l=i).documentElement,d=!x.isXMLDoc(l),p=c.matches||c.webkitMatchesSelector||c.msMatchesSelector,c.msMatchesSelector&&M!=l&&(n=l.defaultView)&&n.top!==n&&n.addEventListener("unload",Q),g.getById=ne((function(e){return c.appendChild(e).id=x.expando,!l.getElementsByName||!l.getElementsByName(x.expando).length})),g.disconnectedMatch=ne((function(e){return p.call(e,"*")})),g.scope=ne((function(){return l.querySelectorAll(":scope")})),g.cssHas=ne((function(){try{return l.querySelector(":has(*,:jqfake)"),!1}catch(e){return!0}})),g.getById?(t.filter.ID=function(e){var t=e.replace(K,Y);return function(e){return e.getAttribute("id")===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n=t.getElementById(e);return n?[n]:[]}}):(t.filter.ID=function(e){var t=e.replace(K,Y);return function(e){var n=void 0!==e.getAttributeNode&&e.getAttributeNode("id");return n&&n.value===t}},t.find.ID=function(e,t){if(void 0!==t.getElementById&&d){var n,i,r,a=t.getElementById(e);if(a){if((n=a.getAttributeNode("id"))&&n.value===e)return[a];for(r=t.getElementsByName(e),i=0;a=r[i++];)if((n=a.getAttributeNode("id"))&&n.value===e)return[a]}return[]}}),t.find.TAG=function(e,t){return void 0!==t.getElementsByTagName?t.getElementsByTagName(e):t.querySelectorAll(e)},t.find.CLASS=function(e,t){if(void 0!==t.getElementsByClassName&&d)return t.getElementsByClassName(e)},h=[],ne((function(e){var t;c.appendChild(e).innerHTML="<a id='"+v+"' href='' disabled='disabled'></a><select id='"+v+"-\r\\' disabled='disabled'><option selected=''></option></select>",e.querySelectorAll("[selected]").length||h.push("\\[[\\x20\\t\\r\\n\\f]*(?:value|"+C+")"),e.querySelectorAll("[id~="+v+"-]").length||h.push("~="),e.querySelectorAll("a#"+v+"+*").length||h.push(".#.+[+~]"),e.querySelectorAll(":checked").length||h.push(":checked"),(t=l.createElement("input")).setAttribute("type","hidden"),e.appendChild(t).setAttribute("name","D"),c.appendChild(e).disabled=!0,2!==e.querySelectorAll(":disabled").length&&h.push(":enabled",":disabled"),(t=l.createElement("input")).setAttribute("name",""),e.appendChild(t),e.querySelectorAll("[name='']").length||h.push("\\[[\\x20\\t\\r\\n\\f]*name[\\x20\\t\\r\\n\\f]*=[\\x20\\t\\r\\n\\f]*(?:''|\"\")")})),g.cssHas||h.push(":has"),h=h.length&&new RegExp(h.join("|")),S=function(e,t){if(e===t)return s=!0,0;var n=!e.compareDocumentPosition-!t.compareDocumentPosition;return n||(1&(n=(e.ownerDocument||e)==(t.ownerDocument||t)?e.compareDocumentPosition(t):1)||!g.sortDetached&&t.compareDocumentPosition(e)===n?e===l||e.ownerDocument==M&&Z.contains(M,e)?-1:t===l||t.ownerDocument==M&&Z.contains(M,t)?1:r?u.call(r,e)-u.call(r,t):0:4&n?-1:1)},l):l}for(e in Z.matches=function(e,t){return Z(e,null,null,t)},Z.matchesSelector=function(e,t){if(le(e),d&&!w[t+" "]&&(!h||!h.test(t)))try{var n=p.call(e,t);if(n||g.disconnectedMatch||e.document&&11!==e.document.nodeType)return n}catch(e){w(t,!0)}return Z(t,l,null,[e]).length>0},Z.contains=function(e,t){return(e.ownerDocument||e)!=l&&le(e),x.contains(e,t)},Z.attr=function(e,n){(e.ownerDocument||e)!=l&&le(e);var i=t.attrHandle[n.toLowerCase()],r=i&&f.call(t.attrHandle,n.toLowerCase())?i(e,n,!d):void 0;return void 0!==r?r:e.getAttribute(n)},Z.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},x.uniqueSort=function(e){var t,n=[],i=0,a=0;if(s=!g.sortStable,r=!g.sortStable&&o.call(e,0),L.call(e,S),s){for(;t=e[a++];)t===e[a]&&(i=n.push(a));for(;i--;)I.call(e,n[i],1)}return r=null,e},x.fn.uniqueSort=function(){return this.pushStack(x.uniqueSort(o.apply(this)))},t=x.expr={cacheLength:50,createPseudo:te,match:z,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(K,Y),e[3]=(e[3]||e[4]||e[5]||"").replace(K,Y),"~="===e[2]&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),"nth"===e[1].slice(0,3)?(e[3]||Z.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*("even"===e[3]||"odd"===e[3])),e[5]=+(e[7]+e[8]||"odd"===e[3])):e[3]&&Z.error(e[0]),e},PSEUDO:function(e){var t,n=!e[6]&&e[2];return z.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":n&&H.test(n)&&(t=ue(n,!0))&&(t=n.indexOf(")",n.length-t)-n.length)&&(e[0]=e[0].slice(0,t),e[2]=n.slice(0,t)),e.slice(0,3))}},filter:{TAG:function(e){var t=e.replace(K,Y).toLowerCase();return"*"===e?function(){return!0}:function(e){return E(e,t)}},CLASS:function(e){var t=_[e+" "];return t||(t=new RegExp("(^|[\\x20\\t\\r\\n\\f])"+e+"("+P+"|$)"))&&_(e,(function(e){return t.test("string"==typeof e.className&&e.className||void 0!==e.getAttribute&&e.getAttribute("class")||"")}))},ATTR:function(e,t,n){return function(i){var r=Z.attr(i,e);return null==r?"!="===t:!t||(r+="","="===t?r===n:"!="===t?r!==n:"^="===t?n&&0===r.indexOf(n):"*="===t?n&&r.indexOf(n)>-1:"$="===t?n&&r.slice(-n.length)===n:"~="===t?(" "+r.replace(U," ")+" ").indexOf(n)>-1:"|="===t&&(r===n||r.slice(0,n.length+1)===n+"-"))}},CHILD:function(e,t,n,i,r){var a="nth"!==e.slice(0,3),s="last"!==e.slice(-4),o="of-type"===t;return 1===i&&0===r?function(e){return!!e.parentNode}:function(t,n,l){var c,u,d,h,f,p=a!==s?"nextSibling":"previousSibling",m=t.parentNode,g=o&&t.nodeName.toLowerCase(),b=!l&&!o,_=!1;if(m){if(a){for(;p;){for(d=t;d=d[p];)if(o?E(d,g):1===d.nodeType)return!1;f=p="only"===e&&!f&&"nextSibling"}return!0}if(f=[s?m.firstChild:m.lastChild],s&&b){for(_=(h=(c=(u=m[v]||(m[v]={}))[e]||[])[0]===y&&c[1])&&c[2],d=h&&m.childNodes[h];d=++h&&d&&d[p]||(_=h=0)||f.pop();)if(1===d.nodeType&&++_&&d===t){u[e]=[y,h,_];break}}else if(b&&(_=h=(c=(u=t[v]||(t[v]={}))[e]||[])[0]===y&&c[1]),!1===_)for(;(d=++h&&d&&d[p]||(_=h=0)||f.pop())&&(!(o?E(d,g):1===d.nodeType)||!++_||(b&&((u=d[v]||(d[v]={}))[e]=[y,_]),d!==t)););return(_-=r)===i||_%i==0&&_/i>=0}}},PSEUDO:function(e,n){var i,r=t.pseudos[e]||t.setFilters[e.toLowerCase()]||Z.error("unsupported pseudo: "+e);return r[v]?r(n):r.length>1?(i=[e,e,"",n],t.setFilters.hasOwnProperty(e.toLowerCase())?te((function(e,t){for(var i,a=r(e,n),s=a.length;s--;)e[i=u.call(e,a[s])]=!(t[i]=a[s])})):function(e){return r(e,0,i)}):r}},pseudos:{not:te((function(e){var t=[],n=[],i=ve(e.replace(O,"$1"));return i[v]?te((function(e,t,n,r){for(var a,s=i(e,null,r,[]),o=e.length;o--;)(a=s[o])&&(e[o]=!(t[o]=a))})):function(e,r,a){return t[0]=e,i(t,null,a,n),t[0]=null,!n.pop()}})),has:te((function(e){return function(t){return Z(e,t).length>0}})),contains:te((function(e){return e=e.replace(K,Y),function(t){return(t.textContent||x.text(t)).indexOf(e)>-1}})),lang:te((function(e){return W.test(e||"")||Z.error("unsupported lang: "+e),e=e.replace(K,Y).toLowerCase(),function(t){var n;do{if(n=d?t.lang:t.getAttribute("xml:lang")||t.getAttribute("lang"))return(n=n.toLowerCase())===e||0===n.indexOf(e+"-")}while((t=t.parentNode)&&1===t.nodeType);return!1}})),target:function(e){var t=i.location&&i.location.hash;return t&&t.slice(1)===e.id},root:function(e){return e===c},focus:function(e){return e===function(){try{return l.activeElement}catch(e){}}()&&l.hasFocus()&&!!(e.type||e.href||~e.tabIndex)},enabled:ae(!1),disabled:ae(!0),checked:function(e){return E(e,"input")&&!!e.checked||E(e,"option")&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,!0===e.selected},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!t.pseudos.empty(e)},header:function(e){return $.test(e.nodeName)},input:function(e){return V.test(e.nodeName)},button:function(e){return E(e,"input")&&"button"===e.type||E(e,"button")},text:function(e){var t;return E(e,"input")&&"text"===e.type&&(null==(t=e.getAttribute("type"))||"text"===t.toLowerCase())},first:se((function(){return[0]})),last:se((function(e,t){return[t-1]})),eq:se((function(e,t,n){return[n<0?n+t:n]})),even:se((function(e,t){for(var n=0;n<t;n+=2)e.push(n);return e})),odd:se((function(e,t){for(var n=1;n<t;n+=2)e.push(n);return e})),lt:se((function(e,t,n){var i;for(i=n<0?n+t:n>t?t:n;--i>=0;)e.push(i);return e})),gt:se((function(e,t,n){for(var i=n<0?n+t:n;++i<t;)e.push(i);return e}))}},t.pseudos.nth=t.pseudos.eq,{radio:!0,checkbox:!0,file:!0,password:!0,image:!0})t.pseudos[e]=ie(e);for(e in{submit:!0,reset:!0})t.pseudos[e]=re(e);function ce(){}function ue(e,n){var i,r,a,s,o,l,c,u=T[e+" "];if(u)return n?0:u.slice(0);for(o=e,l=[],c=t.preFilter;o;){for(s in i&&!(r=j.exec(o))||(r&&(o=o.slice(r[0].length)||o),l.push(a=[])),i=!1,(r=B.exec(o))&&(i=r.shift(),a.push({value:i,type:r[0].replace(O," ")}),o=o.slice(i.length)),t.filter)!(r=z[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 n?o.length:o?Z.error(e):T(e,l).slice(0)}function de(e){for(var t=0,n=e.length,i="";t<n;t++)i+=e[t].value;return i}function he(e,t,n){var i=t.dir,r=t.next,a=r||i,s=n&&"parentNode"===a,o=b++;return t.first?function(t,n,r){for(;t=t[i];)if(1===t.nodeType||s)return e(t,n,r);return!1}:function(t,n,l){var c,u,d=[y,o];if(l){for(;t=t[i];)if((1===t.nodeType||s)&&e(t,n,l))return!0}else for(;t=t[i];)if(1===t.nodeType||s)if(u=t[v]||(t[v]={}),r&&E(t,r))t=t[i]||t;else{if((c=u[a])&&c[0]===y&&c[1]===o)return d[2]=c[2];if(u[a]=d,d[2]=e(t,n,l))return!0}return!1}}function fe(e){return e.length>1?function(t,n,i){for(var r=e.length;r--;)if(!e[r](t,n,i))return!1;return!0}:e[0]}function pe(e,t,n,i,r){for(var a,s=[],o=0,l=e.length,c=null!=t;o<l;o++)(a=e[o])&&(n&&!n(a,i,r)||(s.push(a),c&&t.push(o)));return s}function me(e,t,n,i,r,a){return i&&!i[v]&&(i=me(i)),r&&!r[v]&&(r=me(r,a)),te((function(a,s,o,l){var c,d,h,f,p=[],g=[],v=s.length,y=a||function(e,t,n){for(var i=0,r=t.length;i<r;i++)Z(e,t[i],n);return n}(t||"*",o.nodeType?[o]:o,[]),b=!e||!a&&t?y:pe(y,p,e,o,l);if(n?n(b,f=r||(a?e:v||i)?[]:s,o,l):f=b,i)for(c=pe(f,g),i(c,[],o,l),d=c.length;d--;)(h=c[d])&&(f[g[d]]=!(b[g[d]]=h));if(a){if(r||e){if(r){for(c=[],d=f.length;d--;)(h=f[d])&&c.push(b[d]=h);r(null,f=[],c,l)}for(d=f.length;d--;)(h=f[d])&&(c=r?u.call(a,h):p[d])>-1&&(a[c]=!(s[c]=h))}}else f=pe(f===s?f.splice(v,f.length):f),r?r(null,s,f,l):m.apply(s,f)}))}function ge(e){for(var i,r,a,s=e.length,o=t.relative[e[0].type],l=o||t.relative[" "],c=o?1:0,d=he((function(e){return e===i}),l,!0),h=he((function(e){return u.call(i,e)>-1}),l,!0),f=[function(e,t,r){var a=!o&&(r||t!=n)||((i=t).nodeType?d(e,t,r):h(e,t,r));return i=null,a}];c<s;c++)if(r=t.relative[e[c].type])f=[he(fe(f),r)];else{if((r=t.filter[e[c].type].apply(null,e[c].matches))[v]){for(a=++c;a<s&&!t.relative[e[a].type];a++);return me(c>1&&fe(f),c>1&&de(e.slice(0,c-1).concat({value:" "===e[c-2].type?"*":""})).replace(O,"$1"),r,c<a&&ge(e.slice(c,a)),a<s&&ge(e=e.slice(a)),a<s&&de(e))}f.push(r)}return fe(f)}function ve(e,i){var r,a=[],s=[],o=k[e+" "];if(!o){for(i||(i=ue(e)),r=i.length;r--;)(o=ge(i[r]))[v]?a.push(o):s.push(o);o=k(e,function(e,i){var r=i.length>0,a=e.length>0,s=function(s,o,c,u,h){var f,p,g,v=0,b="0",_=s&&[],T=[],k=n,w=s||a&&t.find.TAG("*",h),S=y+=null==k?1:Math.random()||.1,C=w.length;for(h&&(n=o==l||o||h);b!==C&&null!=(f=w[b]);b++){if(a&&f){for(p=0,o||f.ownerDocument==l||(le(f),c=!d);g=e[p++];)if(g(f,o||l,c)){m.call(u,f);break}h&&(y=S)}r&&((f=!g&&f)&&v--,s&&_.push(f))}if(v+=b,r&&b!==v){for(p=0;g=i[p++];)g(_,T,o,c);if(s){if(v>0)for(;b--;)_[b]||T[b]||(T[b]=A.call(u));T=pe(T)}m.apply(u,T),h&&!s&&T.length>0&&v+i.length>1&&x.uniqueSort(u)}return h&&(y=S,n=k),_};return r?te(s):s}(s,a)),o.selector=e}return o}function ye(e,n,i,r){var a,s,o,l,c,u="function"==typeof e&&e,h=!r&&ue(e=u.selector||e);if(i=i||[],1===h.length){if((s=h[0]=h[0].slice(0)).length>2&&"ID"===(o=s[0]).type&&9===n.nodeType&&d&&t.relative[s[1].type]){if(!(n=(t.find.ID(o.matches[0].replace(K,Y),n)||[])[0]))return i;u&&(n=n.parentNode),e=e.slice(s.shift().value.length)}for(a=z.needsContext.test(e)?0:s.length;a--&&(o=s[a],!t.relative[l=o.type]);)if((c=t.find[l])&&(r=c(o.matches[0].replace(K,Y),G.test(s[0].type)&&oe(n.parentNode)||n))){if(s.splice(a,1),!(e=r.length&&de(s)))return m.apply(i,r),i;break}}return(u||ve(e,h))(r,n,!d,i,!n||G.test(e)&&oe(n.parentNode)||n),i}ce.prototype=t.filters=t.pseudos,t.setFilters=new ce,g.sortStable=v.split("").sort(S).join("")===v,le(),g.sortDetached=ne((function(e){return 1&e.compareDocumentPosition(l.createElement("fieldset"))})),x.find=Z,x.expr[":"]=x.expr.pseudos,x.unique=x.uniqueSort,Z.compile=ve,Z.select=ye,Z.setDocument=le,Z.tokenize=ue,Z.escape=x.escapeSelector,Z.getText=x.text,Z.isXML=x.isXMLDoc,Z.selectors=x.expr,Z.support=x.support,Z.uniqueSort=x.uniqueSort}();var q=function(e,t,n){for(var i=[],r=void 0!==n;(e=e[t])&&9!==e.nodeType;)if(1===e.nodeType){if(r&&x(e).is(n))break;i.push(e)}return i},U=function(e,t){for(var n=[];e;e=e.nextSibling)1===e.nodeType&&e!==t&&n.push(e);return n},j=x.expr.match.needsContext,B=/^<([a-z][^\/\0>:\x20\t\r\n\f]*)[\x20\t\r\n\f]*\/?>(?:<\/\1>|)$/i;function F(e,t,n){return v(t)?x.grep(e,(function(e,i){return!!t.call(e,i,e)!==n})):t.nodeType?x.grep(e,(function(e){return e===t!==n})):"string"!=typeof t?x.grep(e,(function(e){return u.call(t,e)>-1!==n})):x.filter(t,e,n)}x.filter=function(e,t,n){var i=t[0];return n&&(e=":not("+e+")"),1===t.length&&1===i.nodeType?x.find.matchesSelector(i,e)?[i]:[]:x.find.matches(e,x.grep(t,(function(e){return 1===e.nodeType})))},x.fn.extend({find:function(e){var t,n,i=this.length,r=this;if("string"!=typeof e)return this.pushStack(x(e).filter((function(){for(t=0;t<i;t++)if(x.contains(r[t],this))return!0})));for(n=this.pushStack([]),t=0;t<i;t++)x.find(e,r[t],n);return i>1?x.uniqueSort(n):n},filter:function(e){return this.pushStack(F(this,e||[],!1))},not:function(e){return this.pushStack(F(this,e||[],!0))},is:function(e){return!!F(this,"string"==typeof e&&j.test(e)?x(e):e||[],!1).length}});var H,W=/^(?:\s*(<[\w\W]+>)[^>]*|#([\w-]+))$/;(x.fn.init=function(e,t,n){var i,r;if(!e)return this;if(n=n||H,"string"==typeof e){if(!(i="<"===e[0]&&">"===e[e.length-1]&&e.length>=3?[null,e,null]:W.exec(e))||!i[1]&&t)return!t||t.jquery?(t||n).find(e):this.constructor(t).find(e);if(i[1]){if(t=t instanceof x?t[0]:t,x.merge(this,x.parseHTML(i[1],t&&t.nodeType?t.ownerDocument||t:b,!0)),B.test(i[1])&&x.isPlainObject(t))for(i in t)v(this[i])?this[i](t[i]):this.attr(i,t[i]);return this}return(r=b.getElementById(i[2]))&&(this[0]=r,this.length=1),this}return e.nodeType?(this[0]=e,this.length=1,this):v(e)?void 0!==n.ready?n.ready(e):e(x):x.makeArray(e,this)}).prototype=x.fn,H=x(b);var z=/^(?:parents|prev(?:Until|All))/,V={children:!0,contents:!0,next:!0,prev:!0};function $(e,t){for(;(e=e[t])&&1!==e.nodeType;);return e}x.fn.extend({has:function(e){var t=x(e,this),n=t.length;return this.filter((function(){for(var e=0;e<n;e++)if(x.contains(this,t[e]))return!0}))},closest:function(e,t){var n,i=0,r=this.length,a=[],s="string"!=typeof e&&x(e);if(!j.test(e))for(;i<r;i++)for(n=this[i];n&&n!==t;n=n.parentNode)if(n.nodeType<11&&(s?s.index(n)>-1:1===n.nodeType&&x.find.matchesSelector(n,e))){a.push(n);break}return this.pushStack(a.length>1?x.uniqueSort(a):a)},index:function(e){return e?"string"==typeof e?u.call(x(e),this[0]):u.call(this,e.jquery?e[0]:e):this[0]&&this[0].parentNode?this.first().prevAll().length:-1},add:function(e,t){return this.pushStack(x.uniqueSort(x.merge(this.get(),x(e,t))))},addBack:function(e){return this.add(null==e?this.prevObject:this.prevObject.filter(e))}}),x.each({parent:function(e){var t=e.parentNode;return t&&11!==t.nodeType?t:null},parents:function(e){return q(e,"parentNode")},parentsUntil:function(e,t,n){return q(e,"parentNode",n)},next:function(e){return $(e,"nextSibling")},prev:function(e){return $(e,"previousSibling")},nextAll:function(e){return q(e,"nextSibling")},prevAll:function(e){return q(e,"previousSibling")},nextUntil:function(e,t,n){return q(e,"nextSibling",n)},prevUntil:function(e,t,n){return q(e,"previousSibling",n)},siblings:function(e){return U((e.parentNode||{}).firstChild,e)},children:function(e){return U(e.firstChild)},contents:function(e){return null!=e.contentDocument&&s(e.contentDocument)?e.contentDocument:(E(e,"template")&&(e=e.content||e),x.merge([],e.childNodes))}},(function(e,t){x.fn[e]=function(n,i){var r=x.map(this,t,n);return"Until"!==e.slice(-5)&&(i=n),i&&"string"==typeof i&&(r=x.filter(i,r)),this.length>1&&(V[e]||x.uniqueSort(r),z.test(e)&&r.reverse()),this.pushStack(r)}}));var X=/[^\x20\t\r\n\f]+/g;function G(e){return e}function K(e){throw e}function Y(e,t,n,i){var r;try{e&&v(r=e.promise)?r.call(e).done(t).fail(n):e&&v(r=e.then)?r.call(e,t,n):t.apply(void 0,[e].slice(i))}catch(e){n.apply(void 0,[e])}}x.Callbacks=function(e){e="string"==typeof e?function(e){var t={};return x.each(e.match(X)||[],(function(e,n){t[n]=!0})),t}(e):x.extend({},e);var t,n,i,r,a=[],s=[],o=-1,l=function(){for(r=r||e.once,i=t=!0;s.length;o=-1)for(n=s.shift();++o<a.length;)!1===a[o].apply(n[0],n[1])&&e.stopOnFalse&&(o=a.length,n=!1);e.memory||(n=!1),t=!1,r&&(a=n?[]:"")},c={add:function(){return a&&(n&&!t&&(o=a.length-1,s.push(n)),function t(n){x.each(n,(function(n,i){v(i)?e.unique&&c.has(i)||a.push(i):i&&i.length&&"string"!==k(i)&&t(i)}))}(arguments),n&&!t&&l()),this},remove:function(){return x.each(arguments,(function(e,t){for(var n;(n=x.inArray(t,a,n))>-1;)a.splice(n,1),n<=o&&o--})),this},has:function(e){return e?x.inArray(e,a)>-1:a.length>0},empty:function(){return a&&(a=[]),this},disable:function(){return r=s=[],a=n="",this},disabled:function(){return!a},lock:function(){return r=s=[],n||t||(a=n=""),this},locked:function(){return!!r},fireWith:function(e,n){return r||(n=[e,(n=n||[]).slice?n.slice():n],s.push(n),t||l()),this},fire:function(){return c.fireWith(this,arguments),this},fired:function(){return!!i}};return c},x.extend({Deferred:function(e){var t=[["notify","progress",x.Callbacks("memory"),x.Callbacks("memory"),2],["resolve","done",x.Callbacks("once memory"),x.Callbacks("once memory"),0,"resolved"],["reject","fail",x.Callbacks("once memory"),x.Callbacks("once memory"),1,"rejected"]],n="pending",r={state:function(){return n},always:function(){return a.done(arguments).fail(arguments),this},catch:function(e){return r.then(null,e)},pipe:function(){var e=arguments;return x.Deferred((function(n){x.each(t,(function(t,i){var r=v(e[i[4]])&&e[i[4]];a[i[1]]((function(){var e=r&&r.apply(this,arguments);e&&v(e.promise)?e.promise().progress(n.notify).done(n.resolve).fail(n.reject):n[i[0]+"With"](this,r?[e]:arguments)}))})),e=null})).promise()},then:function(e,n,r){var a=0;function s(e,t,n,r){return function(){var o=this,l=arguments,c=function(){var i,c;if(!(e<a)){if((i=n.apply(o,l))===t.promise())throw new TypeError("Thenable self-resolution");c=i&&("object"==typeof i||"function"==typeof i)&&i.then,v(c)?r?c.call(i,s(a,t,G,r),s(a,t,K,r)):(a++,c.call(i,s(a,t,G,r),s(a,t,K,r),s(a,t,G,t.notifyWith))):(n!==G&&(o=void 0,l=[i]),(r||t.resolveWith)(o,l))}},u=r?c:function(){try{c()}catch(i){x.Deferred.exceptionHook&&x.Deferred.exceptionHook(i,u.error),e+1>=a&&(n!==K&&(o=void 0,l=[i]),t.rejectWith(o,l))}};e?u():(x.Deferred.getErrorHook?u.error=x.Deferred.getErrorHook():x.Deferred.getStackHook&&(u.error=x.Deferred.getStackHook()),i.setTimeout(u))}}return x.Deferred((function(i){t[0][3].add(s(0,i,v(r)?r:G,i.notifyWith)),t[1][3].add(s(0,i,v(e)?e:G)),t[2][3].add(s(0,i,v(n)?n:K))})).promise()},promise:function(e){return null!=e?x.extend(e,r):r}},a={};return x.each(t,(function(e,i){var s=i[2],o=i[5];r[i[1]]=s.add,o&&s.add((function(){n=o}),t[3-e][2].disable,t[3-e][3].disable,t[0][2].lock,t[0][3].lock),s.add(i[3].fire),a[i[0]]=function(){return a[i[0]+"With"](this===a?void 0:this,arguments),this},a[i[0]+"With"]=s.fireWith})),r.promise(a),e&&e.call(a,a),a},when:function(e){var t=arguments.length,n=t,i=Array(n),r=o.call(arguments),a=x.Deferred(),s=function(e){return function(n){i[e]=this,r[e]=arguments.length>1?o.call(arguments):n,--t||a.resolveWith(i,r)}};if(t<=1&&(Y(e,a.done(s(n)).resolve,a.reject,!t),"pending"===a.state()||v(r[n]&&r[n].then)))return a.then();for(;n--;)Y(r[n],s(n),a.reject);return a.promise()}});var Q=/^(Eval|Internal|Range|Reference|Syntax|Type|URI)Error$/;x.Deferred.exceptionHook=function(e,t){i.console&&i.console.warn&&e&&Q.test(e.name)&&i.console.warn("jQuery.Deferred exception: "+e.message,e.stack,t)},x.readyException=function(e){i.setTimeout((function(){throw e}))};var J=x.Deferred();function Z(){b.removeEventListener("DOMContentLoaded",Z),i.removeEventListener("load",Z),x.ready()}x.fn.ready=function(e){return J.then(e).catch((function(e){x.readyException(e)})),this},x.extend({isReady:!1,readyWait:1,ready:function(e){(!0===e?--x.readyWait:x.isReady)||(x.isReady=!0,!0!==e&&--x.readyWait>0||J.resolveWith(b,[x]))}}),x.ready.then=J.then,"complete"===b.readyState||"loading"!==b.readyState&&!b.documentElement.doScroll?i.setTimeout(x.ready):(b.addEventListener("DOMContentLoaded",Z),i.addEventListener("load",Z));var ee=function(e,t,n,i,r,a,s){var o=0,l=e.length,c=null==n;if("object"===k(n))for(o in r=!0,n)ee(e,t,o,n[o],!0,a,s);else if(void 0!==i&&(r=!0,v(i)||(s=!0),c&&(s?(t.call(e,i),t=null):(c=t,t=function(e,t,n){return c.call(x(e),n)})),t))for(;o<l;o++)t(e[o],n,s?i:i.call(e[o],o,t(e[o],n)));return r?e:c?t.call(e):l?t(e[0],n):a},te=/^-ms-/,ne=/-([a-z])/g;function ie(e,t){return t.toUpperCase()}function re(e){return e.replace(te,"ms-").replace(ne,ie)}var ae=function(e){return 1===e.nodeType||9===e.nodeType||!+e.nodeType};function se(){this.expando=x.expando+se.uid++}se.uid=1,se.prototype={cache:function(e){var t=e[this.expando];return t||(t={},ae(e)&&(e.nodeType?e[this.expando]=t:Object.defineProperty(e,this.expando,{value:t,configurable:!0}))),t},set:function(e,t,n){var i,r=this.cache(e);if("string"==typeof t)r[re(t)]=n;else for(i in t)r[re(i)]=t[i];return r},get:function(e,t){return void 0===t?this.cache(e):e[this.expando]&&e[this.expando][re(t)]},access:function(e,t,n){return void 0===t||t&&"string"==typeof t&&void 0===n?this.get(e,t):(this.set(e,t,n),void 0!==n?n:t)},remove:function(e,t){var n,i=e[this.expando];if(void 0!==i){if(void 0!==t){n=(t=Array.isArray(t)?t.map(re):(t=re(t))in i?[t]:t.match(X)||[]).length;for(;n--;)delete i[t[n]]}(void 0===t||x.isEmptyObject(i))&&(e.nodeType?e[this.expando]=void 0:delete e[this.expando])}},hasData:function(e){var t=e[this.expando];return void 0!==t&&!x.isEmptyObject(t)}};var oe=new se,le=new se,ce=/^(?:\{[\w\W]*\}|\[[\w\W]*\])$/,ue=/[A-Z]/g;function de(e,t,n){var i;if(void 0===n&&1===e.nodeType)if(i="data-"+t.replace(ue,"-$&").toLowerCase(),"string"==typeof(n=e.getAttribute(i))){try{n=function(e){return"true"===e||"false"!==e&&("null"===e?null:e===+e+""?+e:ce.test(e)?JSON.parse(e):e)}(n)}catch(e){}le.set(e,t,n)}else n=void 0;return n}x.extend({hasData:function(e){return le.hasData(e)||oe.hasData(e)},data:function(e,t,n){return le.access(e,t,n)},removeData:function(e,t){le.remove(e,t)},_data:function(e,t,n){return oe.access(e,t,n)},_removeData:function(e,t){oe.remove(e,t)}}),x.fn.extend({data:function(e,t){var n,i,r,a=this[0],s=a&&a.attributes;if(void 0===e){if(this.length&&(r=le.get(a),1===a.nodeType&&!oe.get(a,"hasDataAttrs"))){for(n=s.length;n--;)s[n]&&0===(i=s[n].name).indexOf("data-")&&(i=re(i.slice(5)),de(a,i,r[i]));oe.set(a,"hasDataAttrs",!0)}return r}return"object"==typeof e?this.each((function(){le.set(this,e)})):ee(this,(function(t){var n;if(a&&void 0===t)return void 0!==(n=le.get(a,e))||void 0!==(n=de(a,e))?n:void 0;this.each((function(){le.set(this,e,t)}))}),null,t,arguments.length>1,null,!0)},removeData:function(e){return this.each((function(){le.remove(this,e)}))}}),x.extend({queue:function(e,t,n){var i;if(e)return t=(t||"fx")+"queue",i=oe.get(e,t),n&&(!i||Array.isArray(n)?i=oe.access(e,t,x.makeArray(n)):i.push(n)),i||[]},dequeue:function(e,t){t=t||"fx";var n=x.queue(e,t),i=n.length,r=n.shift(),a=x._queueHooks(e,t);"inprogress"===r&&(r=n.shift(),i--),r&&("fx"===t&&n.unshift("inprogress"),delete a.stop,r.call(e,(function(){x.dequeue(e,t)}),a)),!i&&a&&a.empty.fire()},_queueHooks:function(e,t){var n=t+"queueHooks";return oe.get(e,n)||oe.access(e,n,{empty:x.Callbacks("once memory").add((function(){oe.remove(e,[t+"queue",n])}))})}}),x.fn.extend({queue:function(e,t){var n=2;return"string"!=typeof e&&(t=e,e="fx",n--),arguments.length<n?x.queue(this[0],e):void 0===t?this:this.each((function(){var n=x.queue(this,e,t);x._queueHooks(this,e),"fx"===e&&"inprogress"!==n[0]&&x.dequeue(this,e)}))},dequeue:function(e){return this.each((function(){x.dequeue(this,e)}))},clearQueue:function(e){return this.queue(e||"fx",[])},promise:function(e,t){var n,i=1,r=x.Deferred(),a=this,s=this.length,o=function(){--i||r.resolveWith(a,[a])};for("string"!=typeof e&&(t=e,e=void 0),e=e||"fx";s--;)(n=oe.get(a[s],e+"queueHooks"))&&n.empty&&(i++,n.empty.add(o));return o(),r.promise(t)}});var he=/[+-]?(?:\d*\.|)\d+(?:[eE][+-]?\d+|)/.source,fe=new RegExp("^(?:([+-])=|)("+he+")([a-z%]*)$","i"),pe=["Top","Right","Bottom","Left"],me=b.documentElement,ge=function(e){return x.contains(e.ownerDocument,e)},ve={composed:!0};me.getRootNode&&(ge=function(e){return x.contains(e.ownerDocument,e)||e.getRootNode(ve)===e.ownerDocument});var ye=function(e,t){return"none"===(e=t||e).style.display||""===e.style.display&&ge(e)&&"none"===x.css(e,"display")};function be(e,t,n,i){var r,a,s=20,o=i?function(){return i.cur()}:function(){return x.css(e,t,"")},l=o(),c=n&&n[3]||(x.cssNumber[t]?"":"px"),u=e.nodeType&&(x.cssNumber[t]||"px"!==c&&+l)&&fe.exec(x.css(e,t));if(u&&u[3]!==c){for(l/=2,c=c||u[3],u=+l||1;s--;)x.style(e,t,u+c),(1-a)*(1-(a=o()/l||.5))<=0&&(s=0),u/=a;u*=2,x.style(e,t,u+c),n=n||[]}return n&&(u=+u||+l||0,r=n[1]?u+(n[1]+1)*n[2]:+n[2],i&&(i.unit=c,i.start=u,i.end=r)),r}var _e={};function Te(e){var t,n=e.ownerDocument,i=e.nodeName,r=_e[i];return r||(t=n.body.appendChild(n.createElement(i)),r=x.css(t,"display"),t.parentNode.removeChild(t),"none"===r&&(r="block"),_e[i]=r,r)}function ke(e,t){for(var n,i,r=[],a=0,s=e.length;a<s;a++)(i=e[a]).style&&(n=i.style.display,t?("none"===n&&(r[a]=oe.get(i,"display")||null,r[a]||(i.style.display="")),""===i.style.display&&ye(i)&&(r[a]=Te(i))):"none"!==n&&(r[a]="none",oe.set(i,"display",n)));for(a=0;a<s;a++)null!=r[a]&&(e[a].style.display=r[a]);return e}x.fn.extend({show:function(){return ke(this,!0)},hide:function(){return ke(this)},toggle:function(e){return"boolean"==typeof e?e?this.show():this.hide():this.each((function(){ye(this)?x(this).show():x(this).hide()}))}});var we,Se,xe=/^(?:checkbox|radio)$/i,Ce=/<([a-z][^\/\0>\x20\t\r\n\f]*)/i,Ee=/^$|^module$|\/(?:java|ecma)script/i;we=b.createDocumentFragment().appendChild(b.createElement("div")),(Se=b.createElement("input")).setAttribute("type","radio"),Se.setAttribute("checked","checked"),Se.setAttribute("name","t"),we.appendChild(Se),g.checkClone=we.cloneNode(!0).cloneNode(!0).lastChild.checked,we.innerHTML="<textarea>x</textarea>",g.noCloneChecked=!!we.cloneNode(!0).lastChild.defaultValue,we.innerHTML="<option></option>",g.option=!!we.lastChild;var Ae={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 Le(e,t){var n;return n=void 0!==e.getElementsByTagName?e.getElementsByTagName(t||"*"):void 0!==e.querySelectorAll?e.querySelectorAll(t||"*"):[],void 0===t||t&&E(e,t)?x.merge([e],n):n}function Ie(e,t){for(var n=0,i=e.length;n<i;n++)oe.set(e[n],"globalEval",!t||oe.get(t[n],"globalEval"))}Ae.tbody=Ae.tfoot=Ae.colgroup=Ae.caption=Ae.thead,Ae.th=Ae.td,g.option||(Ae.optgroup=Ae.option=[1,"<select multiple='multiple'>","</select>"]);var Pe=/<|&#?\w+;/;function Oe(e,t,n,i,r){for(var a,s,o,l,c,u,d=t.createDocumentFragment(),h=[],f=0,p=e.length;f<p;f++)if((a=e[f])||0===a)if("object"===k(a))x.merge(h,a.nodeType?[a]:a);else if(Pe.test(a)){for(s=s||d.appendChild(t.createElement("div")),o=(Ce.exec(a)||["",""])[1].toLowerCase(),l=Ae[o]||Ae._default,s.innerHTML=l[1]+x.htmlPrefilter(a)+l[2],u=l[0];u--;)s=s.lastChild;x.merge(h,s.childNodes),(s=d.firstChild).textContent=""}else h.push(t.createTextNode(a));for(d.textContent="",f=0;a=h[f++];)if(i&&x.inArray(a,i)>-1)r&&r.push(a);else if(c=ge(a),s=Le(d.appendChild(a),"script"),c&&Ie(s),n)for(u=0;a=s[u++];)Ee.test(a.type||"")&&n.push(a);return d}var De=/^([^.]*)(?:\.(.+)|)/;function Re(){return!0}function Me(){return!1}function Ne(e,t,n,i,r,a){var s,o;if("object"==typeof t){for(o in"string"!=typeof n&&(i=i||n,n=void 0),t)Ne(e,o,n,i,t[o],a);return e}if(null==i&&null==r?(r=n,i=n=void 0):null==r&&("string"==typeof n?(r=i,i=void 0):(r=i,i=n,n=void 0)),!1===r)r=Me;else if(!r)return e;return 1===a&&(s=r,r=function(e){return x().off(e),s.apply(this,arguments)},r.guid=s.guid||(s.guid=x.guid++)),e.each((function(){x.event.add(this,t,r,i,n)}))}function qe(e,t,n){n?(oe.set(e,t,!1),x.event.add(e,t,{namespace:!1,handler:function(e){var n,i=oe.get(this,t);if(1&e.isTrigger&&this[t]){if(i)(x.event.special[t]||{}).delegateType&&e.stopPropagation();else if(i=o.call(arguments),oe.set(this,t,i),this[t](),n=oe.get(this,t),oe.set(this,t,!1),i!==n)return e.stopImmediatePropagation(),e.preventDefault(),n}else i&&(oe.set(this,t,x.event.trigger(i[0],i.slice(1),this)),e.stopPropagation(),e.isImmediatePropagationStopped=Re)}})):void 0===oe.get(e,t)&&x.event.add(e,t,Re)}x.event={global:{},add:function(e,t,n,i,r){var a,s,o,l,c,u,d,h,f,p,m,g=oe.get(e);if(ae(e))for(n.handler&&(n=(a=n).handler,r=a.selector),r&&x.find.matchesSelector(me,r),n.guid||(n.guid=x.guid++),(l=g.events)||(l=g.events=Object.create(null)),(s=g.handle)||(s=g.handle=function(t){return void 0!==x&&x.event.triggered!==t.type?x.event.dispatch.apply(e,arguments):void 0}),c=(t=(t||"").match(X)||[""]).length;c--;)f=m=(o=De.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),f&&(d=x.event.special[f]||{},f=(r?d.delegateType:d.bindType)||f,d=x.event.special[f]||{},u=x.extend({type:f,origType:m,data:i,handler:n,guid:n.guid,selector:r,needsContext:r&&x.expr.match.needsContext.test(r),namespace:p.join(".")},a),(h=l[f])||((h=l[f]=[]).delegateCount=0,d.setup&&!1!==d.setup.call(e,i,p,s)||e.addEventListener&&e.addEventListener(f,s)),d.add&&(d.add.call(e,u),u.handler.guid||(u.handler.guid=n.guid)),r?h.splice(h.delegateCount++,0,u):h.push(u),x.event.global[f]=!0)},remove:function(e,t,n,i,r){var a,s,o,l,c,u,d,h,f,p,m,g=oe.hasData(e)&&oe.get(e);if(g&&(l=g.events)){for(c=(t=(t||"").match(X)||[""]).length;c--;)if(f=m=(o=De.exec(t[c])||[])[1],p=(o[2]||"").split(".").sort(),f){for(d=x.event.special[f]||{},h=l[f=(i?d.delegateType:d.bindType)||f]||[],o=o[2]&&new RegExp("(^|\\.)"+p.join("\\.(?:.*\\.|)")+"(\\.|$)"),s=a=h.length;a--;)u=h[a],!r&&m!==u.origType||n&&n.guid!==u.guid||o&&!o.test(u.namespace)||i&&i!==u.selector&&("**"!==i||!u.selector)||(h.splice(a,1),u.selector&&h.delegateCount--,d.remove&&d.remove.call(e,u));s&&!h.length&&(d.teardown&&!1!==d.teardown.call(e,p,g.handle)||x.removeEvent(e,f,g.handle),delete l[f])}else for(f in l)x.event.remove(e,f+t[c],n,i,!0);x.isEmptyObject(l)&&oe.remove(e,"handle events")}},dispatch:function(e){var t,n,i,r,a,s,o=new Array(arguments.length),l=x.event.fix(e),c=(oe.get(this,"events")||Object.create(null))[l.type]||[],u=x.event.special[l.type]||{};for(o[0]=l,t=1;t<arguments.length;t++)o[t]=arguments[t];if(l.delegateTarget=this,!u.preDispatch||!1!==u.preDispatch.call(this,l)){for(s=x.event.handlers.call(this,l,c),t=0;(r=s[t++])&&!l.isPropagationStopped();)for(l.currentTarget=r.elem,n=0;(a=r.handlers[n++])&&!l.isImmediatePropagationStopped();)l.rnamespace&&!1!==a.namespace&&!l.rnamespace.test(a.namespace)||(l.handleObj=a,l.data=a.data,void 0!==(i=((x.event.special[a.origType]||{}).handle||a.handler).apply(r.elem,o))&&!1===(l.result=i)&&(l.preventDefault(),l.stopPropagation()));return u.postDispatch&&u.postDispatch.call(this,l),l.result}},handlers:function(e,t){var n,i,r,a,s,o=[],l=t.delegateCount,c=e.target;if(l&&c.nodeType&&!("click"===e.type&&e.button>=1))for(;c!==this;c=c.parentNode||this)if(1===c.nodeType&&("click"!==e.type||!0!==c.disabled)){for(a=[],s={},n=0;n<l;n++)void 0===s[r=(i=t[n]).selector+" "]&&(s[r]=i.needsContext?x(r,this).index(c)>-1:x.find(r,this,null,[c]).length),s[r]&&a.push(i);a.length&&o.push({elem:c,handlers:a})}return c=this,l<t.length&&o.push({elem:c,handlers:t.slice(l)}),o},addProp:function(e,t){Object.defineProperty(x.Event.prototype,e,{enumerable:!0,configurable:!0,get:v(t)?function(){if(this.originalEvent)return t(this.originalEvent)}:function(){if(this.originalEvent)return this.originalEvent[e]},set:function(t){Object.defineProperty(this,e,{enumerable:!0,configurable:!0,writable:!0,value:t})}})},fix:function(e){return e[x.expando]?e:new x.Event(e)},special:{load:{noBubble:!0},click:{setup:function(e){var t=this||e;return xe.test(t.type)&&t.click&&E(t,"input")&&qe(t,"click",!0),!1},trigger:function(e){var t=this||e;return xe.test(t.type)&&t.click&&E(t,"input")&&qe(t,"click"),!0},_default:function(e){var t=e.target;return xe.test(t.type)&&t.click&&E(t,"input")&&oe.get(t,"click")||E(t,"a")}},beforeunload:{postDispatch:function(e){void 0!==e.result&&e.originalEvent&&(e.originalEvent.returnValue=e.result)}}}},x.removeEvent=function(e,t,n){e.removeEventListener&&e.removeEventListener(t,n)},x.Event=function(e,t){if(!(this instanceof x.Event))return new x.Event(e,t);e&&e.type?(this.originalEvent=e,this.type=e.type,this.isDefaultPrevented=e.defaultPrevented||void 0===e.defaultPrevented&&!1===e.returnValue?Re:Me,this.target=e.target&&3===e.target.nodeType?e.target.parentNode:e.target,this.currentTarget=e.currentTarget,this.relatedTarget=e.relatedTarget):this.type=e,t&&x.extend(this,t),this.timeStamp=e&&e.timeStamp||Date.now(),this[x.expando]=!0},x.Event.prototype={constructor:x.Event,isDefaultPrevented:Me,isPropagationStopped:Me,isImmediatePropagationStopped:Me,isSimulated:!1,preventDefault:function(){var e=this.originalEvent;this.isDefaultPrevented=Re,e&&!this.isSimulated&&e.preventDefault()},stopPropagation:function(){var e=this.originalEvent;this.isPropagationStopped=Re,e&&!this.isSimulated&&e.stopPropagation()},stopImmediatePropagation:function(){var e=this.originalEvent;this.isImmediatePropagationStopped=Re,e&&!this.isSimulated&&e.stopImmediatePropagation(),this.stopPropagation()}},x.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},x.event.addProp),x.each({focus:"focusin",blur:"focusout"},(function(e,t){function n(e){if(b.documentMode){var n=oe.get(this,"handle"),i=x.event.fix(e);i.type="focusin"===e.type?"focus":"blur",i.isSimulated=!0,n(e),i.target===i.currentTarget&&n(i)}else x.event.simulate(t,e.target,x.event.fix(e))}x.event.special[e]={setup:function(){var i;if(qe(this,e,!0),!b.documentMode)return!1;(i=oe.get(this,t))||this.addEventListener(t,n),oe.set(this,t,(i||0)+1)},trigger:function(){return qe(this,e),!0},teardown:function(){var e;if(!b.documentMode)return!1;(e=oe.get(this,t)-1)?oe.set(this,t,e):(this.removeEventListener(t,n),oe.remove(this,t))},_default:function(t){return oe.get(t.target,e)},delegateType:t},x.event.special[t]={setup:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,a=oe.get(r,t);a||(b.documentMode?this.addEventListener(t,n):i.addEventListener(e,n,!0)),oe.set(r,t,(a||0)+1)},teardown:function(){var i=this.ownerDocument||this.document||this,r=b.documentMode?this:i,a=oe.get(r,t)-1;a?oe.set(r,t,a):(b.documentMode?this.removeEventListener(t,n):i.removeEventListener(e,n,!0),oe.remove(r,t))}}}
vendor: 5,979 bytes, line 2
2)),x.each({mouseenter:"mouseover",mouseleave:"mouseout",pointerenter:"pointerover",pointerleave:"pointerout"},(function(e,t){x.event.special[e]={delegateType:t,bindType:t,handle:function(e){var n,i=this,r=e.relatedTarget,a=e.handleObj;return r&&(r===i||x.contains(i,r))||(e.type=a.origType,n=a.handler.apply(this,arguments),e.type=t),n}}})),x.fn.extend({on:function(e,t,n,i){return Ne(this,e,t,n,i)},one:function(e,t,n,i){return Ne(this,e,t,n,i,1)},off:function(e,t,n){var i,r;if(e&&e.preventDefault&&e.handleObj)return i=e.handleObj,x(e.delegateTarget).off(i.namespace?i.origType+"."+i.namespace:i.origType,i.selector,i.handler),this;if("object"==typeof e){for(r in e)this.off(r,t,e[r]);return this}return!1!==t&&"function"!=typeof t||(n=t,t=void 0),!1===n&&(n=Me),this.each((function(){x.event.remove(this,e,n,t)}))}});var Ue=/<script|<style|<link/i,je=/checked\s*(?:[^=]|=\s*.checked.)/i,Be=/^\s*<!\[CDATA\[|\]\]>\s*$/g;function Fe(e,t){return E(e,"table")&&E(11!==t.nodeType?t:t.firstChild,"tr")&&x(e).children("tbody")[0]||e}function He(e){return e.type=(null!==e.getAttribute("type"))+"/"+e.type,e}function We(e){return"true/"===(e.type||"").slice(0,5)?e.type=e.type.slice(5):e.removeAttribute("type"),e}function ze(e,t){var n,i,r,a,s,o;if(1===t.nodeType){if(oe.hasData(e)&&(o=oe.get(e).events))for(r in oe.remove(t,"handle events"),o)for(n=0,i=o[r].length;n<i;n++)x.event.add(t,r,o[r][n]);le.hasData(e)&&(a=le.access(e),s=x.extend({},a),le.set(t,s))}}function Ve(e,t){var n=t.nodeName.toLowerCase();"input"===n&&xe.test(e.type)?t.checked=e.checked:"input"!==n&&"textarea"!==n||(t.defaultValue=e.defaultValue)}function $e(e,t,n,i){t=l(t);var r,a,s,o,c,u,d=0,h=e.length,f=h-1,p=t[0],m=v(p);if(m||h>1&&"string"==typeof p&&!g.checkClone&&je.test(p))return e.each((function(r){var a=e.eq(r);m&&(t[0]=p.call(this,r,a.html())),$e(a,t,n,i)}));if(h&&(a=(r=Oe(t,e[0].ownerDocument,!1,e,i)).firstChild,1===r.childNodes.length&&(r=a),a||i)){for(o=(s=x.map(Le(r,"script"),He)).length;d<h;d++)c=r,d!==f&&(c=x.clone(c,!0,!0),o&&x.merge(s,Le(c,"script"))),n.call(e[d],c,d);if(o)for(u=s[s.length-1].ownerDocument,x.map(s,We),d=0;d<o;d++)c=s[d],Ee.test(c.type||"")&&!oe.access(c,"globalEval")&&x.contains(u,c)&&(c.src&&"module"!==(c.type||"").toLowerCase()?x._evalUrl&&!c.noModule&&x._evalUrl(c.src,{nonce:c.nonce||c.getAttribute("nonce")},u):T(c.textContent.replace(Be,""),c,u))}return e}function Xe(e,t,n){for(var i,r=t?x.filter(t,e):e,a=0;null!=(i=r[a]);a++)n||1!==i.nodeType||x.cleanData(Le(i)),i.parentNode&&(n&&ge(i)&&Ie(Le(i,"script")),i.parentNode.removeChild(i));return e}x.extend({htmlPrefilter:function(e){return e},clone:function(e,t,n){var i,r,a,s,o=e.cloneNode(!0),l=ge(e);if(!(g.noCloneChecked||1!==e.nodeType&&11!==e.nodeType||x.isXMLDoc(e)))for(s=Le(o),i=0,r=(a=Le(e)).length;i<r;i++)Ve(a[i],s[i]);if(t)if(n)for(a=a||Le(e),s=s||Le(o),i=0,r=a.length;i<r;i++)ze(a[i],s[i]);else ze(e,o);return(s=Le(o,"script")).length>0&&Ie(s,!l&&Le(e,"script")),o},cleanData:function(e){for(var t,n,i,r=x.event.special,a=0;void 0!==(n=e[a]);a++)if(ae(n)){if(t=n[oe.expando]){if(t.events)for(i in t.events)r[i]?x.event.remove(n,i):x.removeEvent(n,i,t.handle);n[oe.expando]=void 0}n[le.expando]&&(n[le.expando]=void 0)}}}),x.fn.extend({detach:function(e){return Xe(this,e,!0)},remove:function(e){return Xe(this,e)},text:function(e){return ee(this,(function(e){return void 0===e?x.text(this):this.empty().each((function(){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||(this.textContent=e)}))}),null,e,arguments.length)},append:function(){return $e(this,arguments,(function(e){1!==this.nodeType&&11!==this.nodeType&&9!==this.nodeType||Fe(this,e).appendChild(e)}))},prepend:function(){return $e(this,arguments,(function(e){if(1===this.nodeType||11===this.nodeType||9===this.nodeType){var t=Fe(this,e);t.insertBefore(e,t.firstChild)}}))},before:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this)}))},after:function(){return $e(this,arguments,(function(e){this.parentNode&&this.parentNode.insertBefore(e,this.nextSibling)}))},empty:function(){for(var e,t=0;null!=(e=this[t]);t++)1===e.nodeType&&(x.cleanData(Le(e,!1)),e.textContent="");return this},clone:function(e,t){return e=null!=e&&e,t=null==t?e:t,this.map((function(){return x.clone(this,e,t)}))},html:function(e){return ee(this,(function(e){var t=this[0]||{},n=0,i=this.length;if(void 0===e&&1===t.nodeType)return t.innerHTML;if("string"==typeof e&&!Ue.test(e)&&!Ae[(Ce.exec(e)||["",""])[1].toLowerCase()]){e=x.htmlPrefilter(e);try{for(;n<i;n++)1===(t=this[n]||{}).nodeType&&(x.cleanData(Le(t,!1)),t.innerHTML=e);t=0}catch(e){}}t&&this.empty().append(e)}),null,e,arguments.length)},replaceWith:function(){var e=[];return $e(this,arguments,(function(t){var n=this.parentNode;x.inArray(this,e)<0&&(x.cleanData(Le(this)),n&&n.replaceChild(t,this))}),e)}}),x.each({appendTo:"append",prependTo:"prepend",insertBefore:"before",insertAfter:"after",replaceAll:"replaceWith"},(function(e,t){x.fn[e]=function(e){for(var n,i=[],r=x(e),a=r.length-1,s=0;s<=a;s++)n=s===a?this:this.clone(!0),x(r[s])[t](n),c.apply(i,n.get());return this.pushStack(i)}}));var Ge=new RegExp("^("+he+")(?!px)[a-z%]+$","i"),Ke=/^--/,Ye=function(e){var t=e.ownerDocument.defaultView;return t&&t.opener||(t=i),t.getComputedStyle(e)},Qe=function(e,t,n){var i,r,a={};for(r in t)a[r]=e.style[r],e.style[r]=t[r];for(r in i=n.call(e),t)e.style[r]=a[r];return i},Je=new RegExp(pe.join("|"),"i");function Ze(e,t,n){var i,r,a,s,o=Ke.test(t),l=e.style;return(n=n||Ye(e))&&(s=n.getPropertyValue(t)||n[t],o&&s&&(s=s.replace(O,"$1")||void 0),""!==s||ge(e)||(s=x.style(e,t)),!g.pixelBoxStyles()&&Ge.test(s)&&Je.test(t)&&(i=l.width,r=l.minWidth,a=l.maxWidth,l.minWidth=l.maxWidth=l.width=s,s=n.width,l.width=i,l.minWidth=r,l.maxWidth=a)),void 0!==s?s+"":s}function et(e,t){return{get:function(){if(!e())return(this.get=t).apply(this,arguments);delete this.get}}}!function(){function e(){if(u){c.style.cssText="position:absolute;
2left:-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%",me.appendChild(c).appendChild(u);var e=i.getComputedStyle(u);n="1%"!==e.top,l=12===t(e.marginLeft),u.style.right="60%",s=36===t(e.right),r=36===t(e.width),u.style.position="absolute",a=12===t(u.offsetWidth/3),me.removeChild(c),u=null}}function t(e){return Math.round(parseFloat(e))}var n,r,a,s,o,l,c=b.createElement("div"),u=b.createElement("div");u.style&&(u.style.backgroundClip="content-box",u.cloneNode(!0).style.backgroundClip="",g.clearCloneStyle="content-box"===u.style.backgroundClip,x.extend(g,{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,t,n,r;return null==o&&(e=b.createElement("table"),t=b.createElement("tr"),n=b.createElement("div"),e.style.cssText="position:absolute;left:-11111px;border-collapse:separate",t.style.cssText="box-sizing:content-box;border:1px solid",t.style.height="1px",n.style.height="9px",n.style.display="block",me.appendChild(e).appendChild(t).appendChild(n),r=i.getComputedStyle(t),o=parseInt(r.height,10)+parseInt(r.borderTopWidth,10)+parseInt(r.borderBottomWidth,10)===t.offsetHeight,me.removeChild(e)),o}}))}();var tt=["Webkit","Moz","ms"],nt=b.createElement("div").style,it={};function rt(e){var t=x.cssProps[e]||it[e];return t||(e in nt?e:it[e]=function(e){for(var t=e[0].toUpperCase()+e.slice(1),n=tt.length;n--;)if((e=tt[n]+t)in nt)return e}(e)||e)}var at=/^(none|table(?!-c[ea]).+)/,st={position:"absolute",visibility:"hidden",display:"block"},ot={letterSpacing:"0",fontWeight:"400"};function lt(e,t,n){var i=fe.exec(t);return i?Math.max(0,i[2]-(n||0))+(i[3]||"px"):t}function ct(e,t,n,i,r,a){var s="width"===t?1:0,o=0,l=0,c=0;if(n===(i?"border":"content"))return 0;for(;s<4;s+=2)"margin"===n&&(c+=x.css(e,n+pe[s],!0,r)),i?("content"===n&&(l-=x.css(e,"padding"+pe[s],!0,r)),"margin"!==n&&(l-=x.css(e,"border"+pe[s]+"Width",!0,r))):(l+=x.css(e,"padding"+pe[s],!0,r),"padding"!==n?l+=x.css(e,"border"+pe[s]+"Width",!0,r):o+=x.css(e,"border"+pe[s]+"Width",!0,r));return!i&&a>=0&&(l+=Math.max(0,Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-a-l-o-.5))||0),l+c}function ut(e,t,n){var i=Ye(e),r=(!g.boxSizingReliable()||n)&&"border-box"===x.css(e,"boxSizing",!1,i),a=r,s=Ze(e,t,i),o="offset"+t[0].toUpperCase()+t.slice(1);if(Ge.test(s)){if(!n)return s;s="auto"}return(!g.boxSizingReliable()&&r||!g.reliableTrDimensions()&&E(e,"tr")||"auto"===s||!parseFloat(s)&&"inline"===x.css(e,"display",!1,i))&&e.getClientRects().length&&(r="border-box"===x.css(e,"boxSizing",!1,i),(a=o in e)&&(s=e[o])),(s=parseFloat(s)||0)+ct(e,t,n||(r?"border":"content"),a,i,s)+"px"}function dt(e,t,n,i,r){return new dt.prototype.init(e,t,n,i,r)}x.extend({cssHooks:{opacity:{get:function(e,t){if(t){var n=Ze(e,"opacity");return""===n?"1":n}}}},cssNumber:{animationIterationCount:!0,aspectRatio:!0,borderImageSlice:!0,columnCount:!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,scale:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeMiterlimit:!0,strokeOpacity:!0},cssProps:{},style:function(e,t,n,i){if(e&&3!==e.nodeType&&8!==e.nodeType&&e.style){var r,a,s,o=re(t),l=Ke.test(t),c=e.style;if(l||(t=rt(o)),s=x.cssHooks[t]||x.cssHooks[o],void 0===n)return s&&"get"in s&&void 0!==(r=s.get(e,!1,i))?r:c[t];"string"===(a=typeof n)&&(r=fe.exec(n))&&r[1]&&(n=be(e,t,r),a="number"),null!=n&&n==n&&("number"!==a||l||(n+=r&&r[3]||(x.cssNumber[o]?"":"px")),g.clearCloneStyle||""!==n||0!==t.indexOf("background")||(c[t]="inherit"),s&&"set"in s&&void 0===(n=s.set(e,n,i))||(l?c.setProperty(t,n):c[t]=n))}},css:function(e,t,n,i){var r,a,s,o=re(t);return Ke.test(t)||(t=rt(o)),(s=x.cssHooks[t]||x.cssHooks[o])&&"get"in s&&(r=s.get(e,!0,n)),void 0===r&&(r=Ze(e,t,i)),"normal"===r&&t in ot&&(r=ot[t]),""===n||n?(a=parseFloat(r),!0===n||isFinite(a)?a||0:r):r}}),x.each(["height","width"],(function(e,t){x.cssHooks[t]={get:function(e,n,i){if(n)return!at.test(x.css(e,"display"))||e.getClientRects().length&&e.getBoundingClientRect().width?ut(e,t,i):Qe(e,st,(function(){return ut(e,t,i)}))},set:function(e,n,i){var r,a=Ye(e),s=!g.scrollboxSize()&&"absolute"===a.position,o=(s||i)&&"border-box"===x.css(e,"boxSizing",!1,a),l=i?ct(e,t,i,o,a):0;return o&&s&&(l-=Math.ceil(e["offset"+t[0].toUpperCase()+t.slice(1)]-parseFloat(a[t])-ct(e,t,"border",!1,a)-.5)),l&&(r=fe.exec(n))&&"px"!==(r[3]||"px")&&(e.style[t]=n,n=x.css(e,t)),lt(0,n,l)}}})),x.cssHooks.marginLeft=et(g.reliableMarginLeft,(function(e,t){if(t)return(parseFloat(Ze(e,"marginLeft"))||e.getBoundingClientRect().left-Qe(e,{marginLeft:0},(function(){return e.getBoundingClientRect().left})))+"px"})),x.each({margin:"",padding:"",border:"Width"},(function(e,t){x.cssHooks[e+t]={expand:function(n){for(var i=0,r={},a="string"==typeof n?n.split(" "):[n];i<4;i++)r[e+pe[i]+t]=a[i]||a[i-2]||a[0];return r}},"margin"!==e&&(x.cssHooks[e+t].set=lt)})),x.fn.extend({css:function(e,t){return ee(this,(function(e,t,n){var i,r,a={},s=0;if(Array.isArray(t)){for(i=Ye(e),r=t.length;s<r;s++)a[t[s]]=x.css(e,t[s],!1,i);return a}return void 0!==n?x.style(e,t,n):x.css(e,t)}),e,t,arguments.length>1)}}),x.Tween=dt,dt.prototype={constructor:dt,init:function(e,t,n,i,r,a){this.elem=e,this.prop=n,this.easing=r||x.easing._default,this.options=t,this.start=this.now=this.cur(),this.end=i,this.unit=a||(x.cssNumber[n]?"":"px")},cur:function(){var e=dt.propHooks[this.prop];return e&&e.get?e.get(this):dt.propHooks._default.get(this)},run:function(e){var t,n=dt.propHooks[this.prop];return this.options.duration?this.pos=t=x.easing[this.easing](e,this.options.duration*e,0,1,this.options.duration):this.pos=t=e,this.now=(this.end-this.start)*t+this.start,this.options.step&&this.options.step.call(this.elem,this.now,this),n&&n.set?n.set(this):dt.propHooks._default.set(this),this}},dt.prototype.init.prototype=dt.prototype,dt.propHooks={_default:{get:function(e){var t;return 1!==e.elem.nodeType||null!=e.elem[e.prop]&&null==e.elem.style[e.prop]?e.elem[e.prop]:(t=x.css(e.elem,e.prop,""))&&"auto"!==t?t:0},set:function(e){x.fx.step[e.prop]?x.fx.step[e.prop](e):1!==e.elem.nodeType||!x.cssHooks[e.prop]&&null==e.elem.style[rt(e.prop)]?e.elem[e.prop]=e.now:x.style(e.elem,e.prop,e.now+e.unit)}}},dt.propHooks.scrollTop=dt.propHooks.scrollLeft={set:function(e){e.elem.nodeType&&e.elem.parentNode&&(e.elem[e.prop]=e.now)}},x.easing={linear:function(e){return e},swing:function(e){return.5-Math.cos(e*Math.PI)/2},_default:"swing"},x.fx=dt.prototype.init,x.fx.step={};var ht,ft,pt=/^(?:toggle|show|hide)$/,mt=/queueHooks$/;function gt(){ft&&(!1===b.hidden&&i.requestAnimationFrame?i.requestAnimationFrame(gt):i.setTimeout(gt,x.fx.interval),x.fx.tick())}function vt(){return i.setTimeout((function(){ht=void 0})),ht=Date.now()}function yt(e,t){var n,i=0,r={height:e};for(t=t?1:0;i<4;i+=2-t)r["margin"+(n=pe[i])]=r["padding"+n]=e;return t&&(r.opacity=r.width=e),r}function bt(e,t,n){for(var i,r=(_t.tweeners[t]||[]).concat(_t.tweeners["*"]),a=0,s=r.length;a<s;a++)if(i=r[a].call(n,t,e))return i}function _t(e,t,n){var i,r,a=0,s=_t.prefilters.length,o=x.Deferred().always((function(){delete l.elem})),l=function(){if(r)return!1;for(var t=ht||vt(),n=Math.max(0,c.startTime+c.duration-t),i=1-(n/c.duration||0),a=0,s=c.tweens.length;a<s;a++)c.tweens[a].run(i);return o.notifyWith(e,[c,i,n]),i<1&&s?n:(s||o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c]),!1)},c=o.promise({elem:e,props:x.extend({},t),opts:x.extend(!0,{specialEasing:{},easing:x.easing._default},n),originalProperties:t,originalOptions:n,startTime:ht||vt(),duration:n.duration,tweens:[],createTween:function(t,n){var i=x.Tween(e,c.opts,t,n,c.opts.specialEasing[t]||
vendor: 25,256 bytes, line 2
2c.opts.easing);return c.tweens.push(i),i},stop:function(t){var n=0,i=t?c.tweens.length:0;if(r)return this;for(r=!0;n<i;n++)c.tweens[n].run(1);return t?(o.notifyWith(e,[c,1,0]),o.resolveWith(e,[c,t])):o.rejectWith(e,[c,t]),this}}),u=c.props;for(!function(e,t){var n,i,r,a,s;for(n in e)if(r=t[i=re(n)],a=e[n],Array.isArray(a)&&(r=a[1],a=e[n]=a[0]),n!==i&&(e[i]=a,delete e[n]),(s=x.cssHooks[i])&&"expand"in s)for(n in a=s.expand(a),delete e[i],a)n in e||(e[n]=a[n],t[n]=r);else t[i]=r}(u,c.opts.specialEasing);a<s;a++)if(i=_t.prefilters[a].call(c,e,u,c.opts))return v(i.stop)&&(x._queueHooks(c.elem,c.opts.queue).stop=i.stop.bind(i)),i;return x.map(u,bt,c),v(c.opts.start)&&c.opts.start.call(e,c),c.progress(c.opts.progress).done(c.opts.done,c.opts.complete).fail(c.opts.fail).always(c.opts.always),x.fx.timer(x.extend(l,{elem:e,anim:c,queue:c.opts.queue})),c}x.Animation=x.extend(_t,{tweeners:{"*":[function(e,t){var n=this.createTween(e,t);return be(n.elem,e,fe.exec(t),n),n}]},tweener:function(e,t){v(e)?(t=e,e=["*"]):e=e.match(X);for(var n,i=0,r=e.length;i<r;i++)n=e[i],_t.tweeners[n]=_t.tweeners[n]||[],_t.tweeners[n].unshift(t)},prefilters:[function(e,t,n){var i,r,a,s,o,l,c,u,d="width"in t||"height"in t,h=this,f={},p=e.style,m=e.nodeType&&ye(e),g=oe.get(e,"fxshow");for(i in n.queue||(null==(s=x._queueHooks(e,"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--,x.queue(e,"fx").length||s.empty.fire()}))}))),t)if(r=t[i],pt.test(r)){if(delete t[i],a=a||"toggle"===r,r===(m?"hide":"show")){if("show"!==r||!g||void 0===g[i])continue;m=!0}f[i]=g&&g[i]||x.style(e,i)}if((l=!x.isEmptyObject(t))||!x.isEmptyObject(f))for(i in d&&1===e.nodeType&&(n.overflow=[p.overflow,p.overflowX,p.overflowY],null==(c=g&&g.display)&&(c=oe.get(e,"display")),"none"===(u=x.css(e,"display"))&&(c?u=c:(ke([e],!0),c=e.style.display||c,u=x.css(e,"display"),ke([e]))),("inline"===u||"inline-block"===u&&null!=c)&&"none"===x.css(e,"float")&&(l||(h.done((function(){p.display=c})),null==c&&(u=p.display,c="none"===u?"":u)),p.display="inline-block")),n.overflow&&(p.overflow="hidden",h.always((function(){p.overflow=n.overflow[0],p.overflowX=n.overflow[1],p.overflowY=n.overflow[2]}))),l=!1,f)l||(g?"hidden"in g&&(m=g.hidden):g=oe.access(e,"fxshow",{display:c}),a&&(g.hidden=!m),m&&ke([e],!0),h.done((function(){for(i in m||ke([e]),oe.remove(e,"fxshow"),f)x.style(e,i,f[i])}))),l=bt(m?g[i]:0,i,h),i in g||(g[i]=l.start,m&&(l.end=l.start,l.start=0))}],prefilter:function(e,t){t?_t.prefilters.unshift(e):_t.prefilters.push(e)}}),x.speed=function(e,t,n){var i=e&&"object"==typeof e?x.extend({},e):{complete:n||!n&&t||v(e)&&e,duration:e,easing:n&&t||t&&!v(t)&&t};return x.fx.off?i.duration=0:"number"!=typeof i.duration&&(i.duration in x.fx.speeds?i.duration=x.fx.speeds[i.duration]:i.duration=x.fx.speeds._default),null!=i.queue&&!0!==i.queue||(i.queue="fx"),i.old=i.complete,i.complete=function(){v(i.old)&&i.old.call(this),i.queue&&x.dequeue(this,i.queue)},i},x.fn.extend({fadeTo:function(e,t,n,i){return this.filter(ye).css("opacity",0).show().end().animate({opacity:t},e,n,i)},animate:function(e,t,n,i){var r=x.isEmptyObject(e),a=x.speed(t,n,i),s=function(){var t=_t(this,x.extend({},e),a);(r||oe.get(this,"finish"))&&t.stop(!0)};return s.finish=s,r||!1===a.queue?this.each(s):this.queue(a.queue,s)},stop:function(e,t,n){var i=function(e){var t=e.stop;delete e.stop,t(n)};return"string"!=typeof e&&(n=t,t=e,e=void 0),t&&this.queue(e||"fx",[]),this.each((function(){var t=!0,r=null!=e&&e+"queueHooks",a=x.timers,s=oe.get(this);if(r)s[r]&&s[r].stop&&i(s[r]);else for(r in s)s[r]&&s[r].stop&&mt.test(r)&&i(s[r]);for(r=a.length;r--;)a[r].elem!==this||null!=e&&a[r].queue!==e||(a[r].anim.stop(n),t=!1,a.splice(r,1));!t&&n||x.dequeue(this,e)}))},finish:function(e){return!1!==e&&(e=e||"fx"),this.each((function(){var t,n=oe.get(this),i=n[e+"queue"],r=n[e+"queueHooks"],a=x.timers,s=i?i.length:0;for(n.finish=!0,x.queue(this,e,[]),r&&r.stop&&r.stop.call(this,!0),t=a.length;t--;)a[t].elem===this&&a[t].queue===e&&(a[t].anim.stop(!0),a.splice(t,1));for(t=0;t<s;t++)i[t]&&i[t].finish&&i[t].finish.call(this);delete n.finish}))}}),x.each(["toggle","show","hide"],(function(e,t){var n=x.fn[t];x.fn[t]=function(e,i,r){return null==e||"boolean"==typeof e?n.apply(this,arguments):this.animate(yt(t,!0),e,i,r)}})),x.each({slideDown:yt("show"),slideUp:yt("hide"),slideToggle:yt("toggle"),fadeIn:{opacity:"show"},fadeOut:{opacity:"hide"},fadeToggle:{opacity:"toggle"}},(function(e,t){x.fn[e]=function(e,n,i){return this.animate(t,e,n,i)}})),x.timers=[],x.fx.tick=function(){var e,t=0,n=x.timers;for(ht=Date.now();t<n.length;t++)(e=n[t])()||n[t]!==e||n.splice(t--,1);n.length||x.fx.stop(),ht=void 0},x.fx.timer=function(e){x.timers.push(e),x.fx.start()},x.fx.interval=13,x.fx.start=function(){ft||(ft=!0,gt())},x.fx.stop=function(){ft=null},x.fx.speeds={slow:600,fast:200,_default:400},x.fn.delay=function(e,t){return e=x.fx&&x.fx.speeds[e]||e,t=t||"fx",this.queue(t,(function(t,n){var r=i.setTimeout(t,e);n.stop=function(){i.clearTimeout(r)}}))},function(){var e=b.createElement("input"),t=b.createElement("select").appendChild(b.createElement("option"));e.type="checkbox",g.checkOn=""!==e.value,g.optSelected=t.selected,(e=b.createElement("input")).value="t",e.type="radio",g.radioValue="t"===e.value}();var Tt,kt=x.expr.attrHandle;x.fn.extend({attr:function(e,t){return ee(this,x.attr,e,t,arguments.length>1)},removeAttr:function(e){return this.each((function(){x.removeAttr(this,e)}))}}),x.extend({attr:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return void 0===e.getAttribute?x.prop(e,t,n):(1===a&&x.isXMLDoc(e)||(r=x.attrHooks[t.toLowerCase()]||(x.expr.match.bool.test(t)?Tt:void 0)),void 0!==n?null===n?void x.removeAttr(e,t):r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:(e.setAttribute(t,n+""),n):r&&"get"in r&&null!==(i=r.get(e,t))?i:null==(i=x.find.attr(e,t))?void 0:i)},attrHooks:{type:{set:function(e,t){if(!g.radioValue&&"radio"===t&&E(e,"input")){var n=e.value;return e.setAttribute("type",t),n&&(e.value=n),t}}}},removeAttr:function(e,t){var n,i=0,r=t&&t.match(X);if(r&&1===e.nodeType)for(;n=r[i++];)e.removeAttribute(n)}}),Tt={set:function(e,t,n){return!1===t?x.removeAttr(e,n):e.setAttribute(n,n),n}},x.each(x.expr.match.bool.source.match(/\w+/g),(function(e,t){var n=kt[t]||x.find.attr;kt[t]=function(e,t,i){var r,a,s=t.toLowerCase();return i||(a=kt[s],kt[s]=r,r=null!=n(e,t,i)?s:null,kt[s]=a),r}}));var wt=/^(?:input|select|textarea|button)$/i,St=/^(?:a|area)$/i;function xt(e){return(e.match(X)||[]).join(" ")}function Ct(e){return e.getAttribute&&e.getAttribute("class")||""}function Et(e){return Array.isArray(e)?e:"string"==typeof e&&e.match(X)||[]}x.fn.extend({prop:function(e,t){return ee(this,x.prop,e,t,arguments.length>1)},removeProp:function(e){return this.each((function(){delete this[x.propFix[e]||e]}))}}),x.extend({prop:function(e,t,n){var i,r,a=e.nodeType;if(3!==a&&8!==a&&2!==a)return 1===a&&x.isXMLDoc(e)||(t=x.propFix[t]||t,r=x.propHooks[t]),void 0!==n?r&&"set"in r&&void 0!==(i=r.set(e,n,t))?i:e[t]=n:r&&"get"in r&&null!==(i=r.get(e,t))?i:e[t]},propHooks:{tabIndex:{get:function(e){var t=x.find.attr(e,"tabindex");return t?parseInt(t,10):wt.test(e.nodeName)||St.test(e.nodeName)&&e.href?0:-1}}},propFix:{for:"htmlFor",class:"className"}}),g.optSelected||(x.propHooks.selected={get:function(e){var t=e.parentNode;return t&&t.parentNode&&t.parentNode.selectedIndex,null},set:function(e){var t=e.parentNode;t&&(t.selectedIndex,t.parentNode&&t.parentNode.selectedIndex)}}),x.each(["tabIndex","readOnly","maxLength","cellSpacing","cellPadding","rowSpan","colSpan","useMap","frameBorder","contentEditable"],(function(){x.propFix[this.toLowerCase()]=this})),x.fn.extend({addClass:function(e){var t,n,i,r,a,s;return v(e)?this.each((function(t){x(this).addClass(e.call(this,t,Ct(this)))})):(t=Et(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+xt(i)+" "){for(a=0;a<t.length;a++)r=t[a],n.indexOf(" "+r+" ")<0&&(n+=r+" ");s=xt(n),i!==s&&this.setAttribute("class",s)}})):this},removeClass:function(e){var t,n,i,r,a,s;return v(e)?this.each((function(t){x(this).removeClass(e.call(this,t,Ct(this)))})):arguments.length?(t=Et(e)).length?this.each((function(){if(i=Ct(this),n=1===this.nodeType&&" "+xt(i)+" "){for(a=0;a<t.length;a++)for(r=t[a];n.indexOf(" "+r+" ")>-1;)n=n.replace(" "+r+" "," ");s=xt(n),i!==s&&this.setAttribute("class",s)}})):this:this.attr("class","")},toggleClass:function(e,t){var n,i,r,a,s=typeof e,o="string"===s||Array.isArray(e);return v(e)?this.each((function(n){x(this).toggleClass(e.call(this,n,Ct(this),t),t)})):"boolean"==typeof t&&o?t?this.addClass(e):this.removeClass(e):(n=Et(e),this.each((function(){if(o)for(a=x(this),r=0;r<n.length;r++)i=n[r],a.hasClass(i)?a.removeClass(i):a.addClass(i);else void 0!==e&&"boolean"!==s||((i=Ct(this))&&oe.set(this,"__className__",i),this.setAttribute&&this.setAttribute("class",i||!1===e?"":oe.get(this,"__className__")||""))})))},hasClass:function(e){var t,n,i=0;for(t=" "+e+" ";n=this[i++];)if(1===n.nodeType&&(" "+xt(Ct(n))+" ").indexOf(t)>-1)return!0;return!1}});var At=/\r/g;x.fn.extend({val:function(e){var t,n,i,r=this[0];return arguments.length?(i=v(e),this.each((function(n){var r;1===this.nodeType&&(null==(r=i?e.call(this,n,x(this).val()):e)?r="":"number"==typeof r?r+="":Array.isArray(r)&&(r=x.map(r,(function(e){return null==e?"":e+""}))),(t=x.valHooks[this.type]||x.valHooks[this.nodeName.toLowerCase()])&&"set"in t&&void 0!==t.set(this,r,"value")||(this.value=r))}))):r?(t=x.valHooks[r.type]||x.valHooks[r.nodeName.toLowerCase()])&&"get"in t&&void 0!==(n=t.get(r,"value"))?n:"string"==typeof(n=r.value)?n.replace(At,""):null==n?"":n:void 0}}),x.extend({valHooks:{option:{get:function(e){var t=x.find.attr(e,"value");return null!=t?t:xt(x.text(e))}},select:{get:function(e){var t,n,i,r=e.options,a=e.selectedIndex,s="select-one"===e.type,o=s?null:[],l=s?a+1:r.length;for(i=a<0?l:s?a:0;i<l;i++)if(((n=r[i]).selected||i===a)&&!n.disabled&&(!n.parentNode.disabled||!E(n.parentNode,"optgroup"))){if(t=x(n).val(),s)return t;o.push(t)}return o},set:function(e,t){for(var n,i,r=e.options,a=x.makeArray(t),s=r.length;s--;)((i=r[s]).selected=x.inArray(x.valHooks.option.get(i),a)>-1)&&(n=!0);return n||(e.selectedIndex=-1),a}}}}),x.each(["radio","checkbox"],(function(){x.valHooks[this]={set:function(e,t){if(Array.isArray(t))return e.checked=x.inArray(x(e).val(),t)>-1}},g.checkOn||(x.valHooks[this].get=function(e){return null===e.getAttribute("value")?"on":e.value})}));var Lt=i.location,It={guid:Date.now()},Pt=/\?/;x.parseXML=function(e){var t,n;if(!e||"string"!=typeof e)return null;try{t=(new i.DOMParser).parseFromString(e,"text/xml")}catch(e){}return n=t&&t.getElementsByTagName("parsererror")[0],t&&!n||x.error("Invalid XML: "+(n?x.map(n.childNodes,(function(e){return e.textContent})).join("\n"):e)),t};var Ot=/^(?:focusinfocus|focusoutblur)$/,Dt=function(e){e.stopPropagation()};x.extend(x.event,{trigger:function(e,t,n,r){var a,s,o,l,c,u,d,h,p=[n||b],m=f.call(e,"type")?e.type:e,g=f.call(e,"namespace")?e.namespace.split("."):[];if(s=h=o=n=n||b,3!==n.nodeType&&8!==n.nodeType&&!Ot.test(m+x.event.triggered)&&(m.indexOf(".")>-1&&(g=m.split("."),m=g.shift(),g.sort()),c=m.indexOf(":")<0&&"on"+m,(e=e[x.expando]?e:new x.Event(m,"object"==typeof e&&e)).isTrigger=r?2:3,e.namespace=g.join("."),e.rnamespace=e.namespace?new RegExp("(^|\\.)"+g.join("\\.(?:.*\\.|)")+"(\\.|$)"):null,e.result=void 0,e.target||(e.target=n),t=null==t?[e]:x.makeArray(t,[e]),d=x.event.special[m]||{},r||!d.trigger||!1!==d.trigger.apply(n,t))){if(!r&&!d.noBubble&&!y(n)){for(l=d.delegateType||m,Ot.test(l+m)||(s=s.parentNode);s;s=s.parentNode)p.push(s),o=s;o===(n.ownerDocument||b)&&p.push(o.defaultView||o.parentWindow||i)}for(a=0;(s=p[a++])&&!e.isPropagationStopped();)h=s,e.type=a>1?l:d.bindType||m,(u=(oe.get(s,"events")||Object.create(null))[e.type]&&oe.get(s,"handle"))&&u.apply(s,t),(u=c&&s[c])&&u.apply&&ae(s)&&(e.result=u.apply(s,t),!1===e.result&&e.preventDefault());return e.type=m,r||e.isDefaultPrevented()||d._default&&!1!==d._default.apply(p.pop(),t)||!ae(n)||c&&v(n[m])&&!y(n)&&((o=n[c])&&(n[c]=null),x.event.triggered=m,e.isPropagationStopped()&&h.addEventListener(m,Dt),n[m](),e.isPropagationStopped()&&h.removeEventListener(m,Dt),x.event.triggered=void 0,o&&(n[c]=o)),e.result}},simulate:function(e,t,n){var i=x.extend(new x.Event,n,{type:e,isSimulated:!0});x.event.trigger(i,null,t)}}),x.fn.extend({trigger:function(e,t){return this.each((function(){x.event.trigger(e,t,this)}))},triggerHandler:function(e,t){var n=this[0];if(n)return x.event.trigger(e,t,n,!0)}});var Rt=/\[\]$/,Mt=/\r?\n/g,Nt=/^(?:submit|button|image|reset|file)$/i,qt=/^(?:input|select|textarea|keygen)/i;function Ut(e,t,n,i){var r;if(Array.isArray(t))x.each(t,(function(t,r){n||Rt.test(e)?i(e,r):Ut(e+"["+("object"==typeof r&&null!=r?t:"")+"]",r,n,i)}));else if(n||"object"!==k(t))i(e,t);else for(r in t)Ut(e+"["+r+"]",t[r],n,i)}x.param=function(e,t){var n,i=[],r=function(e,t){var n=v(t)?t():t;i[i.length]=encodeURIComponent(e)+"="+encodeURIComponent(null==n?"":n)};if(null==e)return"";if(Array.isArray(e)||e.jquery&&!x.isPlainObject(e))x.each(e,(function(){r(this.name,this.value)}));else for(n in e)Ut(n,e[n],t,r);return i.join("&")},x.fn.extend({serialize:function(){return x.param(this.serializeArray())},serializeArray:function(){return this.map((function(){var e=x.prop(this,"elements");return e?x.makeArray(e):this})).filter((function(){var e=this.type;return this.name&&!x(this).is(":disabled")&&qt.test(this.nodeName)&&!Nt.test(e)&&(this.checked||!xe.test(e))})).map((function(e,t){var n=x(this).val();return null==n?null:Array.isArray(n)?x.map(n,(function(e){return{name:t.name,value:e.replace(Mt,"\r\n")}})):{name:t.name,value:n.replace(Mt,"\r\n")}})).get()}});var jt=/%20/g,Bt=/#.*$/,Ft=/([?&])_=[^&]*/,Ht=/^(.*?):[ \t]*([^\r\n]*)$/gm,Wt=/^(?:GET|HEAD)$/,zt=/^\/\//,Vt={},$t={},Xt="*/".concat("*"),Gt=b.createElement("a");function Kt(e){return function(t,n){"string"!=typeof t&&(n=t,t="*");var i,r=0,a=t.toLowerCase().match(X)||[];if(v(n))for(;i=a[r++];)"+"===i[0]?(i=i.slice(1)||"*",(e[i]=e[i]||[]).unshift(n)):(e[i]=e[i]||[]).push(n)}}function Yt(e,t,n,i){var r={},a=e===$t;function s(o){var l;return r[o]=!0,x.each(e[o]||[],(function(e,o){var c=o(t,n,i);return"string"!=typeof c||a||r[c]?a?!(l=c):void 0:(t.dataTypes.unshift(c),s(c),!1)})),l}return s(t.dataTypes[0])||!r["*"]&&s("*")}function Qt(e,t){var n,i,r=x.ajaxSettings.flatOptions||{};for(n in t)void 0!==t[n]&&((r[n]?e:i||(i={}))[n]=t[n]);return i&&x.extend(!0,e,i),e}Gt.href=Lt.href,x.extend({active:0,lastModified:{},etag:{},ajaxSettings:{url:Lt.href,type:"GET",isLocal:/^(?:about|app|app-storage|.+-extension|file|res|widget):$/.test(Lt.protocol),global:!0,processData:!0,async:!0,contentType:"application/x-www-form-urlencoded; charset=UTF-8",accepts:{"*":Xt,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":x.parseXML},flatOptions:{url:!0,context:!0}},ajaxSetup:function(e,t){return t?Qt(Qt(e,x.ajaxSettings),t):Qt(x.ajaxSettings,e)},ajaxPrefilter:Kt(Vt),ajaxTransport:Kt($t),ajax:function(e,t){"object"==typeof e&&(t=e,e=void 0),t=t||{};var n,r,a,s,o,l,c,u,d,h,f=x.ajaxSetup({},t),p=f.context||f,m=f.context&&(p.nodeType||p.jquery)?x(p):x.event,g=x.Deferred(),v=x.Callbacks("once memory"),y=f.statusCode||{},_={},T={},k="canceled",w={readyState:0,getResponseHeader:function(e){var t;if(c){if(!s)for(s={};t=Ht.exec(a);)s[t[1].toLowerCase()+" "]=(s[t[1].toLowerCase()+" "]||[]).concat(t[2]);t=s[e.toLowerCase()+" "]}return null==t?null:t.join(", ")},getAllResponseHeaders:function(){return c?a:null},setRequestHeader:function(e,t){return null==c&&(e=T[e.toLowerCase()]=T[e.toLowerCase()]||e,_[e]=t),this},overrideMimeType:function(e){return null==c&&(f.mimeType=e),this},statusCode:function(e){var t;if(e)if(c)w.always(e[w.status]);else for(t in e)y[t]=[y[t],e[t]];return this},abort:function(e){var t=e||k;return n&&n.abort(t),S(0,t),this}};if(g.promise(w),f.url=((e||f.url||Lt.href)+"").replace(zt,Lt.protocol+"//"),f.type=t.method||t.type||f.method||f.type,f.dataTypes=(f.dataType||"*").toLowerCase().match(X)||[""],null==f.crossDomain){l=b.createElement("a");try{l.href=f.url,l.href=l.href,f.crossDomain=Gt.protocol+"//"+Gt.host!=l.protocol+"//"+l.host}catch(e){f.crossDomain=!0}}if(f.data&&f.processData&&"string"!=typeof f.data&&(f.data=x.param(f.data,f.traditional)),Yt(Vt,f,t,w),c)return w;for(d in(u=x.event&&f.global)&&0==x.active++&&x.event.trigger("ajaxStart"),f.type=f.type.toUpperCase(),f.hasContent=!Wt.test(f.type),r=f.url.replace(Bt,""),f.hasContent?f.data&&f.processData&&0===(f.contentType||"").indexOf("application/x-www-form-urlencoded")&&(f.data=f.data.replace(jt,"+")):(h=f.url.slice(r.length),f.data&&(f.processData||"string"==typeof f.data)&&(r+=(Pt.test(r)?"&":"?")+f.data,delete f.data),!1===f.cache&&(r=r.replace(Ft,"$1"),h=(Pt.test(r)?"&":"?")+"_="+It.guid+++h),f.url=r+h),f.ifModified&&(x.lastModified[r]&&w.setRequestHeader("If-Modified-Since",x.lastModified[r]),x.etag[r]&&w.setRequestHeader("If-None-Match",x.etag[r])),(f.data&&f.hasContent&&!1!==f.contentType||t.contentType)&&w.setRequestHeader("Content-Type",f.contentType),w.setRequestHeader("Accept",f.dataTypes[0]&&f.accepts[f.dataTypes[0]]?f.accepts[f.dataTypes[0]]+("*"!==f.dataTypes[0]?", "+Xt+"; q=0.01":""):f.accepts["*"]),f.headers)w.setRequestHeader(d,f.headers[d]);if(f.beforeSend&&(!1===f.beforeSend.call(p,w,f)||c))return w.abort();if(k="abort",v.add(f.complete),w.done(f.success),w.fail(f.error),n=Yt($t,f,t,w)){if(w.readyState=1,u&&m.trigger("ajaxSend",[w,f]),c)return w;f.async&&f.timeout>0&&(o=i.setTimeout((function(){w.abort("timeout")}),f.timeout));try{c=!1,n.send(_,S)}catch(e){if(c)throw e;S(-1,e)}}else S(-1,"No Transport");function S(e,t,s,l){var d,h,b,_,T,k=t;c||(c=!0,o&&i.clearTimeout(o),n=void 0,a=l||"",w.readyState=e>0?4:0,d=e>=200&&e<300||304===e,s&&(_=function(e,t,n){for(var i,r,a,s,o=e.contents,l=e.dataTypes;"*"===l[0];)l.shift(),void 0===i&&(i=e.mimeType||t.getResponseHeader("Content-Type"));if(i)for(r in o)if(o[r]&&o[r].test(i)){l.unshift(r);break}if(l[0]in n)a=l[0];else{for(r in n){if(!l[0]||e.converters[r+" "+l[0]]){a=r;break}s||(s=r)}a=a||s}if(a)return a!==l[0]&&l.unshift(a),n[a]}(f,w,s)),!d&&x.inArray("script",f.dataTypes)>-1&&x.inArray("json",f.dataTypes)<0&&(f.converters["text script"]=function(){}),_=function(e,t,n,i){var r,a,s,o,l,c={},u=e.dataTypes.slice();if(u[1])for(s in e.converters)c[s.toLowerCase()]=e.converters[s];for(a=u.shift();a;)if(e.responseFields[a]&&(n[e.responseFields[a]]=t),!l&&i&&e.dataFilter&&(t=e.dataFilter(t,e.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&&e.throws)t=s(t);else try{t=s(t)}catch(e){return{state:"parsererror",error:s?e:"No conversion from "+l+" to "+a}}}return{state:"success",data:t}}(f,_,w,d),d?(f.ifModified&&((T=w.getResponseHeader("Last-Modified"))&&(x.lastModified[r]=T),(T=w.getResponseHeader("etag"))&&(x.etag[r]=T)),204===e||"HEAD"===f.type?k="nocontent":304===e?k="notmodified":(k=_.state,h=_.data,d=!(b=_.error))):(b=k,!e&&k||(k="error",e<0&&(e=0))),w.status=e,w.statusText=(t||k)+"",d?g.resolveWith(p,[h,k,w]):g.rejectWith(p,[w,k,b]),w.statusCode(y),y=void 0,u&&m.trigger(d?"ajaxSuccess":"ajaxError",[w,f,d?h:b]),v.fireWith(p,[w,k]),u&&(m.trigger("ajaxComplete",[w,f]),--x.active||x.event.trigger("ajaxStop")))}return w},getJSON:function(e,t,n){return x.get(e,t,n,"json")},getScript:function(e,t){return x.get(e,void 0,t,"script")}}),x.each(["get","post"],(function(e,t){x[t]=function(e,n,i,r){return v(n)&&(r=r||i,i=n,n=void 0),x.ajax(x.extend({url:e,type:t,dataType:r,data:n,success:i},x.isPlainObject(e)&&e))}})),x.ajaxPrefilter((function(e){var t;for(t in e.headers)"content-type"===t.toLowerCase()&&(e.contentType=e.headers[t]||"")})),x._evalUrl=function(e,t,n){return x.ajax({url:e,type:"GET",dataType:"script",cache:!0,async:!1,global:!1,converters:{"text script":function(){}},dataFilter:function(e){x.globalEval(e,t,n)}})},x.fn.extend({wrapAll:function(e){var t;return this[0]&&(v(e)&&(e=e.call(this[0])),t=x(e,this[0].ownerDocument).eq(0).clone(!0),this[0].parentNode&&t.insertBefore(this[0]),t.map((function(){for(var e=this;e.firstElementChild;)e=e.firstElementChild;return e})).append(this)),this},wrapInner:function(e){return v(e)?this.each((function(t){x(this).wrapInner(e.call(this,t))})):this.each((function(){var t=x(this),n=t.contents();n.length?n.wrapAll(e):t.append(e)}))},wrap:function(e){var t=v(e);return this.each((function(n){x(this).wrapAll(t?e.call(this,n):e)}))},unwrap:function(e){return this.parent(e).not("body").each((function(){x(this).replaceWith(this.childNodes)})),this}}),x.expr.pseudos.hidden=function(e){return!x.expr.pseudos.visible(e)},x.expr.pseudos.visible=function(e){return!!(e.offsetWidth||e.offsetHeight||e.getClientRects().length)},x.ajaxSettings.xhr=function(){try{return new i.XMLHttpRequest}catch(e){}};var Jt={0:200,1223:204},Zt=x.ajaxSettings.xhr();g.cors=!!Zt&&"withCredentials"in Zt,g.ajax=Zt=!!Zt,x.ajaxTransport((function(e){var t,n;if(g.cors||Zt&&!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]);t=function(e){return function(){t&&(t=n=o.onload=o.onerror=o.onabort=o.ontimeout=o.onreadystatechange=null,"abort"===e?o.abort():"error"===e?"number"!=typeof o.status?a(0,"error"):a(o.status,o.statusText):a(Jt[o.status]||o.status,o.statusText,"text"!==(o.responseType||"text")||"string"!=typeof o.responseText?{binary:o.response}:{text:o.responseText},o.getAllResponseHeaders()))}},o.onload=t(),n=o.onerror=o.ontimeout=t("error"),void 0!==o.onabort?o.onabort=n:o.onreadystatechange=function(){4===o.readyState&&i.setTimeout((function(){t&&n()}))},t=t("abort");try{o.send(e.hasContent&&e.data||null)}catch(e){if(t)throw e}},abort:function(){t&&t()}}})),x.ajaxPrefilter((function(e){e.crossDomain&&(e.contents.script=!1)})),x.ajaxSetup({accepts:{script:"text/javascript, application/javascript, application/ecmascript, application/x-ecmascript"},contents:{script:/\b(?:java|ecma)script\b/},converters:{"text script":function(e){return x.globalEval(e),e}}}),x.ajaxPrefilter("script",(function(e){void 0===e.cache&&(e.cache=!1),e.crossDomain&&(e.type="GET")})),x.ajaxTransport("script",(function(e){var t,n;if(e.crossDomain||e.scriptAttrs)return{send:function(i,r){t=x("<script>").attr(e.scriptAttrs||{}).prop({charset:e.scriptCharset,src:e.url}).on("load error",n=function(e){t.remove(),n=null,e&&r("error"===e.type?404:200,e.type)}),b.head.appendChild(t[0])},abort:function(){n&&n()}}}));var en,tn=[],nn=/(=)\?(?=&|$)|\?\?/;x.ajaxSetup({jsonp:"callback",jsonpCallback:function(){var e=tn.pop()||x.expando+"_"+It.guid++;return this[e]=!0,e}}),x.ajaxPrefilter("json jsonp",(function(e,t,n){var r,a,s,o=!1!==e.jsonp&&(nn.test(e.url)?"url":"string"==typeof e.data&&0===(e.contentType||"").indexOf("application/x-www-form-urlencoded")&&nn.test(e.data)&&"data");if(o||"jsonp"===e.dataTypes[0])return r=e.jsonpCallback=v(e.jsonpCallback)?e.jsonpCallback():e.jsonpCallback,o?e[o]=e[o].replace(nn,"$1"+r):!1!==e.jsonp&&(e.url+=(Pt.test(e.url)?"&":"?")+e.jsonp+"="+r),e.converters["script json"]=function(){return s||x.error(r+" was not called"),s[0]},e.dataTypes[0]="json",a=i[r],i[r]=function(){s=arguments},n.always((function(){void 0===a?x(i).removeProp(r):i[r]=a,e[r]&&(e.jsonpCallback=t.jsonpCallback,tn.push(r)),s&&v(a)&&a(s[0]),s=a=void 0})),"script"})),g.createHTMLDocument=((en=b.implementation.createHTMLDocument("").body).innerHTML="<form></form><form></form>",2===en.childNodes.length),x.parseHTML=function(e,t,n){return"string"!=typeof e?[]:("boolean"==typeof t&&(n=t,t=!1),t||(g.createHTMLDocument?((i=(t=b.implementation.createHTMLDocument("")).createElement("base")).href=b.location.href,t.head.appendChild(i)):t=b),a=!n&&[],(r=B.exec(e))?[t.createElement(r[1])]:(r=Oe([e],t,a),a&&a.length&&x(a).remove(),x.merge([],r.childNodes)));var i,r,a},x.fn.load=function(e,t,n){var i,r,a,s=this,o=e.indexOf(" ");return o>-1&&(i=xt(e.slice(o)),e=e.slice(0,o)),v(t)?(n=t,t=void 0):t&&"object"==typeof t&&(r="POST"),s.length>0&&x.ajax({url:e,type:r||"GET",dataType:"html",data:t}).done((function(e){a=arguments,s.html(i?x("<div>").append(x.parseHTML(e)).find(i):e)})).always(n&&function(e,t){s.each((function(){n.apply(this,a||[e.responseText,t,e])}))}),this},x.expr.pseudos.animated=function(e){return x.grep(x.timers,(function(t){return e===t.elem})).length},x.offset={setOffset:function(e,t,n){var i,r,a,s,o,l,c=x.css(e,"position"),u=x(e),d={};"static"===c&&(e.style.position="relative"),o=u.offset(),a=x.css(e,"to
2p"),l=x.css(e,"left"),("absolute"===c||"fixed"===c)&&(a+l).indexOf("auto")>-1?(s=(i=u.position()).top,r=i.left):(s=parseFloat(a)||0,r=parseFloat(l)||0),v(t)&&(t=t.call(e,n,x.extend({},o))),null!=t.top&&(d.top=t.top-o.top+s),null!=t.left&&(d.left=t.left-o.left+r),"using"in t?t.using.call(e,d):u.css(d)}},x.fn.extend({offset:function(e){if(arguments.length)return void 0===e?this:this.each((function(t){x.offset.setOffset(this,e,t)}));var t,n,i=this[0];return i?i.getClientRects().length?(t=i.getBoundingClientRect(),n=i.ownerDocument.defaultView,{top:t.top+n.pageYOffset,left:t.left+n.pageXOffset}):{top:0,left:0}:void 0},position:function(){if(this[0]){var e,t,n,i=this[0],r={top:0,left:0};if("fixed"===x.css(i,"position"))t=i.getBoundingClientRect();else{for(t=this.offset(),n=i.ownerDocument,e=i.offsetParent||n.documentElement;e&&(e===n.body||e===n.documentElement)&&"static"===x.css(e,"position");)e=e.parentNode;e&&e!==i&&1===e.nodeType&&((r=x(e).offset()).top+=x.css(e,"borderTopWidth",!0),r.left+=x.css(e,"borderLeftWidth",!0))}return{top:t.top-r.top-x.css(i,"marginTop",!0),left:t.left-r.left-x.css(i,"marginLeft",!0)}}},offsetParent:function(){return this.map((function(){for(var e=this.offsetParent;e&&"static"===x.css(e,"position");)e=e.offsetParent;return e||me}))}}),x.each({scrollLeft:"pageXOffset",scrollTop:"pageYOffset"},(function(e,t){var n="pageYOffset"===t;x.fn[e]=function(i){return ee(this,(function(e,i,r){var a;if(y(e)?a=e:9===e.nodeType&&(a=e.defaultView),void 0===r)return a?a[t]:e[i];a?a.scrollTo(n?a.pageXOffset:r,n?r:a.pageYOffset):e[i]=r}),e,i,arguments.length)}})),x.each(["top","left"],(function(e,t){x.cssHooks[t]=et(g.pixelPosition,(function(e,n){if(n)return n=Ze(e,t),Ge.test(n)?x(e).position()[t]+"px":n}))})),x.each({Height:"height",Width:"width"},(function(e,t){x.each({padding:"inner"+e,content:t,"":"outer"+e},(function(n,i){x.fn[i]=function(r,a){var s=arguments.length&&(n||"boolean"!=typeof r),o=n||(!0===r||!0===a?"margin":"border");return ee(this,(function(t,n,r){var a;return y(t)?0===i.indexOf("outer")?t["inner"+e]:t.document.documentElement["client"+e]:9===t.nodeType?(a=t.documentElement,Math.max(t.body["scroll"+e],a["scroll"+e],t.body["offset"+e],a["offset"+e],a["client"+e])):void 0===r?x.css(t,n,o):x.style(t,n,r,o)}),t,s?r:void 0,s)}}))})),x.each(["ajaxStart","ajaxStop","ajaxComplete","ajaxError","ajaxSuccess","ajaxSend"],(function(e,t){x.fn[t]=function(e){return this.on(t,e)}})),x.fn.extend({bind:function(e,t,n){return this.on(e,null,t,n)},unbind:function(e,t){return this.off(e,null,t)},delegate:function(e,t,n,i){return this.on(t,e,n,i)},undelegate:function(e,t,n){return 1===arguments.length?this.off(e,"**"):this.off(t,e||"**",n)},hover:function(e,t){return this.on("mouseenter",e).on("mouseleave",t||e)}}),x.each("blur focus focusin focusout resize scroll click dblclick mousedown mouseup mousemove mouseover mouseout mouseenter mouseleave change select submit keydown keypress keyup contextmenu".split(" "),(function(e,t){x.fn[t]=function(e,n){return arguments.length>0?this.on(t,null,e,n):this.trigger(t)}}));var rn=/^[\s\uFEFF\xA0]+|([^\s\uFEFF\xA0])[\s\uFEFF\xA0]+$/g;x.proxy=function(e,t){var n,i,r;if("string"==typeof t&&(n=e[t],t=e,e=n),v(e))return i=o.call(arguments,2),r=function(){return e.apply(t||this,i.concat(o.call(arguments)))},r.guid=e.guid=e.guid||x.guid++,r},x.holdReady=function(e){e?x.readyWait++:x.ready(!0)},x.isArray=Array.isArray,x.parseJSON=JSON.parse,x.nodeName=E,x.isFunction=v,x.isWindow=y,x.camelCase=re,x.type=k,x.now=Date.now,x.isNumeric=function(e){var t=x.type(e);return("number"===t||"string"===t)&&!isNaN(e-parseFloat(e))},x.trim=function(e){return null==e?"":(e+"").replace(rn,"$1")},void 0===(n=function(){return x}.apply(t,[]))||(e.exports=n);var an=i.jQuery,sn=i.$;return x.noConflict=function(e){return i.$===x&&(i.$=sn),e&&i.jQuery===x&&(i.jQuery=an),x},void 0===r&&(i.jQuery=i.$=x),x}))},7537:(e,t)=>{function n(e){if(e&&"object"==typeof e){var t=e.which||e.keyCode||e.charCode;t&&(e=t)}if("number"==typeof e)return s[e];var n,a=String(e);return(n=i[a.toLowerCase()])?n:(n=r[a.toLowerCase()])||(1===a.length?a.charCodeAt(0):void 0)}n.isEventKey=function(e,t){if(e&&"object"==typeof e){var n=e.which||e.keyCode||e.charCode;if(null==n)return!1;if("string"==typeof t){var a;if(a=i[t.toLowerCase()])return a===n;if(a=r[t.toLowerCase()])return a===n}else if("number"==typeof t)return t===n;return!1}};
2var i=(t=e.exports=n).code=t.codes={backspace:8,tab:9,enter:13,shift:16,ctrl:17,alt:18,"pause/break":19,"caps lock":20,esc:27,space:32,"page up":33,"page down":34,end:35,home:36,left:37,up:38,right:39,down:40,insert:45,delete:46,command:91,"left command":91,"right command":93,"numpad *":106,"numpad +":107,"numpad -":109,"numpad .":110,"numpad /":111,"num lock":144,"scroll lock":145,"my computer":182,"my calculator":183,";":186,"=":187,",":188,"-":189,".":190,"/":191,"`":192,"[":219,"\\":220,"]":221,"'":222},r=t.aliases={windows:91,"â§":16,"â¥":18,"â":17,"â":91,ctl:17,control:17,option:18,pause:19,break:19,caps:20,return:13,escape:27,spc:32,spacebar:32,pgup:33,pgdn:34,ins:45,del:46,cmd:91};for(a=97;a<123;a++)i[String.fromCharCode(a)]=a-32;for(var a=48;a<58;a++)i[a-48]=a;for(a=1;a<13;a++)i["f"+a]=a+111;for(a=0;a<10;a++)i["numpad "+a]=a+96;var s=t.names=t.title={};for(a in i)s[i[a]]=a;for(var o in r)i[o]=r[o]},6486:function(e,t,n){var i;e=n.nmd(e),function(){var r,a="Expected a function",s="__lodash_hash_undefined__",o="__lodash_placeholder__",l=16,c=32,u=64,d=128,h=256,f=1/0,p=9007199254740991,m=NaN,g=4294967295,v=[["ary",d],["bind",1],["bindKey",2],["curry",8],["curryRight",l],["flip",512],["partial",c],["partialRight",u],["rearg",h]],y="[object Arguments]",b="[object Array]",_="[object Boolean]",T="[object Date]",k="[object Error]",w="[object Function]",S="[object GeneratorFunction]",x="[object Map]",C="[object Number]",E="[object Object]",A="[object Promise]",L="[object RegExp]",I="[object Set]",P="[object String]",O="[object Symbol]",D="[object WeakMap]",R="[object ArrayBuffer]",M="[object DataView]",N="[object Float32Array]",q="[object Float64Array]",U="[object Int8Array]",j="[object Int16Array]",B="[object Int32Array]",F="[object Uint8Array]",H="[object Uint8ClampedArray]",W="[object Uint16Array]",z="[object Uint32Array]",V=/\b__p \+= '';/g,$=/\b(__p \+=) '' \+/g,X=/(__e\(.*?\)|\b__t\)) \+\n'';/g,G=/&(?:amp|lt|gt|quot|#39);/g,K=/[&<>"']/g,Y=RegExp(G.source),Q=RegExp(K.source),J=/<%-([\s\S]+?)%>/g,Z=/<%([\s\S]+?)%>/g,ee=/<%=([\s\S]+?)%>/g,te=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,ne=/^\w*$/,ie=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,re=/[\\^$.*+?()[\]{}|]/g,ae=RegExp(re.source),se=/^\s+/,oe=/\s/,le=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,ce=/\{\n\/\* \[wrapped with (.+)\] \*/,ue=/,? & /,de=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,he=/[()=,{}\[\]\/\s]/,fe=/\\(\\)?/g,pe=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,me=/\w*$/,ge=/^[-+]0x[0-9a-f]+$/i,ve=/^0b[01]+$/i,ye=/^\[object .+?Constructor\]$/,be=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,Te=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 7,901 bytes, line 2
27f]/g,ke=/($^)/,we=/['\n\r\u2028\u2029\\]/g,Se="\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff",xe="\\u2700-\\u27bf",Ce="a-z\\xdf-\\xf6\\xf8-\\xff",Ee="A-Z\\xc0-\\xd6\\xd8-\\xde",Ae="\\ufe0e\\ufe0f",Le="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Ie="['â]",Pe="[\\ud800-\\udfff]",Oe="["+Le+"]",De="["+Se+"]",Re="\\d+",Me="[\\u2700-\\u27bf]",Ne="["+Ce+"]",qe="[^\\ud800-\\udfff"+Le+Re+xe+Ce+Ee+"]",Ue="\\ud83c[\\udffb-\\udfff]",je="[^\\ud800-\\udfff]",Be="(?:\\ud83c[\\udde6-\\uddff]){2}",Fe="[\\ud800-\\udbff][\\udc00-\\udfff]",He="["+Ee+"]",We="(?:"+Ne+"|"+qe+")",ze="(?:"+He+"|"+qe+")",Ve="(?:['â](?:d|ll|m|re|s|t|ve))?",$e="(?:['â](?:D|LL|M|RE|S|T|VE))?",Xe="(?:"+De+"|"+Ue+")"+"?",Ge="[\\ufe0e\\ufe0f]?",Ke=Ge+Xe+("(?:\\u200d(?:"+[je,Be,Fe].join("|")+")"+Ge+Xe+")*"),Ye="(?:"+[Me,Be,Fe].join("|")+")"+Ke,Qe="(?:"+[je+De+"?",De,Be,Fe,Pe].join("|")+")",Je=RegExp(Ie,"g"),Ze=RegExp(De,"g"),et=RegExp(Ue+"(?="+Ue+")|"+Qe+Ke,"g"),tt=RegExp([He+"?"+Ne+"+"+Ve+"(?="+[Oe,He,"$"].join("|")+")",ze+"+"+$e+"(?="+[Oe,He+We,"$"].join("|")+")",He+"?"+We+"+"+Ve,He+"+"+$e,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Re,Ye].join("|"),"g"),nt=RegExp("[\\u200d\\ud800-\\udfff"+Se+Ae+"]"),it=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,rt=["Array","Buffer","DataView","Date","Error","Float32Array","Float64Array","Function","Int8Array","Int16Array","Int32Array","Map","Math","Object","Promise","RegExp","Set","String","Symbol","TypeError","Uint8Array","Uint8ClampedArray","Uint16Array","Uint32Array","WeakMap","_","clearTimeout","isFinite","parseInt","setTimeout"],at=-1,st={};st[N]=st[q]=st[U]=st[j]=st[B]=st[F]=st[H]=st[W]=st[z]=!0,st[y]=st[b]=st[R]=st[_]=st[M]=st[T]=st[k]=st[w]=st[x]=st[C]=st[E]=st[L]=st[I]=st[P]=st[D]=!1;var ot={};ot[y]=ot[b]=ot[R]=ot[M]=ot[_]=ot[T]=ot[N]=ot[q]=ot[U]=ot[j]=ot[B]=ot[x]=ot[C]=ot[E]=ot[L]=ot[I]=ot[P]=ot[O]=ot[F]=ot[H]=ot[W]=ot[z]=!0,ot[k]=ot[w]=ot[D]=!1;var lt={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},ct=parseFloat,ut=parseInt,dt="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g,ht="object"==typeof self&&self&&self.Object===Object&&self,ft=dt||ht||Function("return this")(),pt=t&&!t.nodeType&&t,mt=pt&&e&&!e.nodeType&&e,gt=mt&&mt.exports===pt,vt=gt&&dt.process,yt=function(){try{var e=mt&&mt.require&&mt.require("util").types;return e||vt&&vt.binding&&vt.binding("util")}catch(e){}}(),bt=yt&&yt.isArrayBuffer,_t=yt&&yt.isDate,Tt=yt&&yt.isMap,kt=yt&&yt.isRegExp,wt=yt&&yt.isSet,St=yt&&yt.isTypedArray;function xt(e,t,n){switch(n.length){case 0:return e.call(t);case 1:return e.call(t,n[0]);case 2:return e.call(t,n[0],n[1]);case 3:return e.call(t,n[0],n[1],n[2])}return e.apply(t,n)}function Ct(e,t,n,i){for(var r=-1,a=null==e?0:e.length;++r<a;){var s=e[r];t(i,s,n(s),e)}return i}function Et(e,t){for(var n=-1,i=null==e?0:e.length;++n<i&&!1!==t(e[n],n,e););return e}function At(e,t){for(var n=null==e?0:e.length;n--&&!1!==t(e[n],n,e););return e}function Lt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(!t(e[n],n,e))return!1;return!0}function It(e,t){for(var n=-1,i=null==e?0:e.length,r=0,a=[];++n<i;){var s=e[n];t(s,n,e)&&(a[r++]=s)}return a}function Pt(e,t){return!!(null==e?0:e.length)&&Ft(e,t,0)>-1}function Ot(e,t,n){for(var i=-1,r=null==e?0:e.length;++i<r;)if(n(t,e[i]))return!0;return!1}function Dt(e,t){for(var n=-1,i=null==e?0:e.length,r=Array(i);++n<i;)r[n]=t(e[n],n,e);return r}function Rt(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}function Mt(e,t,n,i){var r=-1,a=null==e?0:e.length;for(i&&a&&(n=e[++r]);++r<a;)n=t(n,e[r],r,e);return n}function Nt(e,t,n,i){var r=null==e?0:e.length;for(i&&r&&(n=e[--r]);r--;)n=t(n,e[r],r,e);return n}function qt(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}var Ut=Vt("length");function jt(e,t,n){var i;return n(e,(function(e,n,r){if(t(e,n,r))return i=n,!1})),i}function Bt(e,t,n,i){for(var r=e.length,a=n+(i?1:-1);i?a--:++a<r;)if(t(e[a],a,e))return a;return-1}function Ft(e,t,n){return t==t?function(e,t,n){var i=n-1,r=e.length;for(;++i<r;)if(e[i]===t)return i;return-1}(e,t,n):Bt(e,Wt,n)}function Ht(e,t,n,i){for(var r=n-1,a=e.length;++r<a;)if(i(e[r],t))return r;return-1}function Wt(e){return e!=e}function zt(e,t){var n=null==e?0:e.length;return n?Gt(e,t)/n:m}function Vt(e){return function(t){return null==t?r:t[e]}}function $t(e){return function(t){return null==e?r:e[t]}}function Xt(e,t,n,i,r){return r(e,(function(e,r,a){n=i?(i=!1,e):t(n,e,r,a)})),n}function Gt(e,t){for(var n,i=-1,a=e.length;++i<a;){var s=t(e[i]);s!==r&&(n=n===r?s:n+s)}return n}function Kt(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}function Yt(e){return e?e.slice(0,mn(e)+1).replace(se,""):e}function Qt(e){return function(t){return e(t)}}function Jt(e,t){return Dt(t,(function(t){return e[t]}))}function Zt(e,t){return e.has(t)}function en(e,t){for(var n=-1,i=e.length;++n<i&&Ft(t,e[n],0)>-1;);return n}function tn(e,t){for(var n=e.length;n--&&Ft(t,e[n],0)>-1;);return n}function nn(e,t){for(var n=e.length,i=0;n--;)e[n]===t&&++i;return i}var rn=$t({Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã:"A",Ã
:"A",à :"a",á:"a",â:"a",ã:"a",ä:"a",Ã¥:"a",Ã:"C",ç:"c",Ã:"D",ð:"d",Ã:"E",Ã:"E",Ã:"E",Ã:"E",è:"e",é:"e",ê:"e",ë:"e",Ã:"I",Ã:"I",Ã:"I",Ã:"I",ì:"i",Ã:"i",î:"i",ï:"i",Ã:"N",ñ:"n",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",Ã:"O",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",Ã:"U",Ã:"U",Ã:"U",Ã:"U",ù:"u",ú:"u",û:"u",ü:"u",Ã:"Y",ý:"y",ÿ:"y",Ã:"Ae",æ:"ae",Ã:"Th",þ:"th",Ã:"ss",Ä:"A",Ä:"A",Ä:"A",Ä:"a",Ä:"a",Ä
:"a",Ä:"C",Ä:"C",Ä:"C",Ä:"C",Ä:"c",Ä:"c",Ä:"c",Ä:"c",Ä:"D",Ä:"D",Ä:"d",Ä:"d",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"E",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"e",Ä:"G",Ä:"G",Ä :"G",Ä¢:"G",Ä:"g",Ä:"g",Ä¡:"g",Ä£:"g",Ĥ:"H",Ħ:"H",Ä¥:"h",ħ:"h",Ĩ:"I",Ī:"I",Ĭ:"I",Ä®:"I",İ:"I",Ä©:"i",Ä«:"i",Ä:"i",į:"i",ı:"i",Ä´:"J",ĵ:"j",Ķ:"K",Ä·:"k",ĸ:"k",Ĺ:"L",Ä»:"L",Ľ:"L",Ä¿:"L",Å:"L",ĺ:"l",ļ:"l",ľ:"l",Å:"l",Å:"l",Å:"N",Å
:"N",Å:"N",Å:"N",Å:"n",Å:"n",Å:"n",Å:"n",Å:"O",Å:"O",Å:"O",Å:"o",Å:"o",Å:"o",Å:"R",Å:"R",Å:"R",Å:"r",Å:"r",Å:"r",Å:"S",Å:"S",Å:"S",Å :"S",Å:"s",Å:"s",Å:"s",Å¡:"s",Å¢:"T",Ť:"T",Ŧ:"T",Å£:"t",Å¥:"t",ŧ:"t",Ũ:"U",Ū:"U",Ŭ:"U",Å®:"U",Ű:"U",Ų:"U",Å©:"u",Å«:"u",Å:"u",ů:"u",ű:"u",ų:"u",Å´:"W",ŵ:"w",Ŷ:"Y",Å·:"y",Ÿ:"Y",Ź:"Z",Å»:"Z",Ž:"Z",ź:"z",ż:"z",ž:"z",IJ:"IJ",ij:"ij",Å:"Oe",Å:"oe",Å:"'n",Å¿:"s"}),an=$t({"&":"&","<":"<",">":">",'"':""","'":"'"});function sn(e){return"\\"+lt[e]}function on(e){return nt.test(e)}function ln(e){var t=-1,n=Array(e.size);return e.forEach((function(e,i){n[++t]=[i,e]})),n}function cn(e,t){return function(n){return e(t(n))}}function un(e,t){for(var n=-1,i=e.length,r=0,a=[];++n<i;){var s=e[n];s!==t&&s!==o||(e[n]=o,a[r++]=n)}return a}function dn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=e})),n}function hn(e){var t=-1,n=Array(e.size);return e.forEach((function(e){n[++t]=[e,e]})),n}function fn(e){return on(e)?function(e){var t=et.lastIndex=0;for(;et.test(e);)++t;return t}(e):Ut(e)}function pn(e){return on(e)?function(e){return e.match(et)||[]}(e):function(e){return e.split("")}(e)}function mn(e){for(var t=e.length;t--&&oe.test(e.charAt(t)););return t}var gn=$t({"&":"&","<":"<",">":">",""":'"',"'":"'"});var vn=function e(t){var n,i=(t=null==t?ft:vn.defaults(ft.Object(),t,vn.pick(ft,rt))).Array,oe=t.Date,Se=t.Error,xe=t.Function,Ce=t.Math,Ee=t.Object,Ae=t.RegExp,Le=t.String,Ie=t.TypeError,Pe=i.prototype,Oe=xe.prototype,De=Ee.prototype,Re=t["__core-js_shared__"],Me=Oe.toString,Ne=De.hasOwnProperty,qe=0,Ue=(n=/[^.]+$/.exec(Re&&Re.keys&&Re.keys.IE_PROTO||""))?"Symbol(sr
2c)_1."+n:"",je=De.toString,Be=Me.call(Ee),Fe=ft._,He=Ae("^"+Me.call(Ne).replace(re,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),We=gt?t.Buffer:r,ze=t.Symbol,Ve=t.Uint8Array,$e=We?We.allocUnsafe:r,Xe=cn(Ee.getPrototypeOf,Ee),Ge=Ee.create,Ke=De.propertyIsEnumerable,Ye=Pe.splice,Qe=ze?ze.isConcatSpreadable:r,et=ze?ze.iterator:r,nt=ze?ze.toStringTag:r,lt=function(){try{var e=fa(Ee,"defineProperty");return e({},"",{}),e}catch(e){}}(),dt=t.clearTimeout!==ft.clearTimeout&&t.clearTimeout,ht=oe&&oe.now!==ft.Date.now&&oe.now,pt=t.setTimeout!==ft.setTimeout&&t.setTimeout,mt=Ce.ceil,vt=Ce.floor,yt=Ee.getOwnPropertySymbols,Ut=We?We.isBuffer:r,$t=t.isFinite,yn=Pe.join,bn=cn(Ee.keys,Ee),_n=Ce.max,Tn=Ce.min,kn=oe.now,wn=t.parseInt,Sn=Ce.random,xn=Pe.reverse,Cn=fa(t,"DataView"),En=fa(t,"Map"),An=fa(t,"Promise"),Ln=fa(t,"Set"),In=fa(t,"WeakMap"),Pn=fa(Ee,"create"),On=In&&new In,Dn={},Rn=Ba(Cn),Mn=Ba(En),Nn=Ba(An),qn=Ba(Ln),Un=Ba(In),jn=ze?ze.prototype:r,Bn=jn?jn.valueOf:r,Fn=jn?jn.toString:r;function Hn(e){if(io(e)&&!$s(e)&&!(e instanceof $n)){if(e instanceof Vn)return e;if(Ne.call(e,"__wrapped__"))return Fa(e)}return new Vn(e)}var Wn=function(){function e(){}return function(t){if(!no(t))return{};if(Ge)return Ge(t);e.prototype=t;var n=new e;return e.prototype=r,n}}();function zn(){}function Vn(e,t){this.__wrapped__=e,this.__actions__=[],this.__chain__=!!t,this.__index__=0,this.__values__=r}function $n(e){this.__wrapped__=e,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=g,this.__views__=[]}function Xn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Gn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Kn(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t<n;){var i=e[t];this.set(i[0],i[1])}}function Yn(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new Kn;++t<n;)this.add(e[t])}function Qn(e){var t=this.__data__=new Gn(e);this.size=t.size}function Jn(e,t){var n=$s(e),i=!n&&Vs(e),r=!n&&!i&&Ys(e),a=!n&&!i&&!r&&ho(e),s=n||i||r||a,o=s?Kt(e.length,Le):[],l=o.length;for(var c in e)!t&&!Ne.call(e,c)||s&&("length"==c||r&&("offset"==c||"parent"==c)||a&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||_a(c,l))||o.push(c);return o}function Zn(e){var t=e.length;return t?e[Yi(0,t-1)]:r}function ei(e,t){return qa(Pr(e),ci(t,0,e.length))}function ti(e){return qa(Pr(e))}function ni(e,t,n){(n!==r&&!Hs(e[t],n)||n===r&&!(t in e))&&oi(e,t,n)}function ii(e,t,n){var i=e[t];Ne.call(e,t)&&Hs(i,n)&&(n!==r||t in e)||oi(e,t,n)}function ri(e,t){for(var n=e.length;n--;)if(Hs(e[n][0],t))return n;return-1}function ai(e,t,n,i){return pi(e,(function(e,r,a){t(i,e,n(e),a)})),i}function si(e,t){return e&&Or(t,Ro(t),e)}function oi(e,t,n){"__proto__"==t&<?lt(e,t,{configurable:!0,enumerable:!0,value:n,writable:!0}):e[t]=n}function li(e,t){for(var n=-1,a=t.length,s=i(a),o=null==e;++n<a;)s[n]=o?r:Lo(e,t[n]);return s}function ci(e,t,n){return e==e&&(n!==r&&(e=e<=n?e:n),t!==r&&(e=e>=t?e:t)),e}function ui(e,t,n,i,a,s){var o,l=1&t,c=2&t,u=4&t;if(n&&(o=a?n(e,i,a,s):n(e)),o!==r)return o;if(!no(e))return e;var d=$s(e);if(d){if(o=function(e){var t=e.length,n=new e.constructor(t);t&&"string"==typeof e[0]&&Ne.call(e,"index")&&(n.index=e.index,n.input=e.input);return n}(e),!l)return Pr(e,o)}else{var h=ga(e),f=h==w||h==S;if(Ys(e))return xr(e,l);if(h==E||h==y||f&&!a){if(o=c||f?{}:ya(e),!l)return c?function(e,t){return Or(e,ma(e),t)}(e,function(e,t){return e&&Or(t,Mo(t),e)}(o,e)):function(e,t){return Or(e,pa(e),t)}(e,si(o,e))}else{if(!ot[h])return a?e:{};o=function(e,t,n){var i=e.constructor;switch(t){case R:return Cr(e);case _:case T:return new i(+e);case M:return function(e,t){var n=t?Cr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.byteLength)}(e,n);case N:case q:case U:case j:case B:case F:case H:case W:case z:return Er(e,n);case x:return new i;case C:case P:return new i(e);case L:return function(e){var t=new e.constructor(e.source,me.exec(e));return t.lastIndex=e.lastIndex,t}(e);case I:return new i;case O:return r=e,Bn?Ee(Bn.call(r)):{}}
vendor: 8,876 bytes, line 2
2var r}(e,h,l)}}s||(s=new Qn);var p=s.get(e);if(p)return p;s.set(e,o),lo(e)?e.forEach((function(i){o.add(ui(i,t,n,i,e,s))})):ro(e)&&e.forEach((function(i,r){o.set(r,ui(i,t,n,r,e,s))}));var m=d?r:(u?c?sa:aa:c?Mo:Ro)(e);return Et(m||e,(function(i,r){m&&(i=e[r=i]),ii(o,r,ui(i,t,n,r,e,s))})),o}function di(e,t,n){var i=n.length;if(null==e)return!i;for(e=Ee(e);i--;){var a=n[i],s=t[a],o=e[a];if(o===r&&!(a in e)||!s(o))return!1}return!0}function hi(e,t,n){if("function"!=typeof e)throw new Ie(a);return Da((function(){e.apply(r,n)}),t)}function fi(e,t,n,i){var r=-1,a=Pt,s=!0,o=e.length,l=[],c=t.length;if(!o)return l;n&&(t=Dt(t,Qt(n))),i?(a=Ot,s=!1):t.length>=200&&(a=Zt,s=!1,t=new Yn(t));e:for(;++r<o;){var u=e[r],d=null==n?u:n(u);if(u=i||0!==u?u:0,s&&d==d){for(var h=c;h--;)if(t[h]===d)continue e;l.push(u)}else a(t,d,i)||l.push(u)}return l}Hn.templateSettings={escape:J,evaluate:Z,interpolate:ee,variable:"",imports:{_:Hn}},Hn.prototype=zn.prototype,Hn.prototype.constructor=Hn,Vn.prototype=Wn(zn.prototype),Vn.prototype.constructor=Vn,$n.prototype=Wn(zn.prototype),$n.prototype.constructor=$n,Xn.prototype.clear=function(){this.__data__=Pn?Pn(null):{},this.size=0},Xn.prototype.delete=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t},Xn.prototype.get=function(e){var t=this.__data__;if(Pn){var n=t[e];return n===s?r:n}return Ne.call(t,e)?t[e]:r},Xn.prototype.has=function(e){var t=this.__data__;return Pn?t[e]!==r:Ne.call(t,e)},Xn.prototype.set=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=Pn&&t===r?s:t,this},Gn.prototype.clear=function(){this.__data__=[],this.size=0},Gn.prototype.delete=function(e){var t=this.__data__,n=ri(t,e);return!(n<0)&&(n==t.length-1?t.pop():Ye.call(t,n,1),--this.size,!0)},Gn.prototype.get=function(e){var t=this.__data__,n=ri(t,e);return n<0?r:t[n][1]},Gn.prototype.has=function(e){return ri(this.__data__,e)>-1},Gn.prototype.set=function(e,t){var n=this.__data__,i=ri(n,e);return i<0?(++this.size,n.push([e,t])):n[i][1]=t,this},Kn.prototype.clear=function(){this.size=0,this.__data__={hash:new Xn,map:new(En||Gn),string:new Xn}},Kn.prototype.delete=function(e){var t=da(this,e).delete(e);return this.size-=t?1:0,t},Kn.prototype.get=function(e){return da(this,e).get(e)},Kn.prototype.has=function(e){return da(this,e).has(e)},Kn.prototype.set=function(e,t){var n=da(this,e),i=n.size;return n.set(e,t),this.size+=n.size==i?0:1,this},Yn.prototype.add=Yn.prototype.push=function(e){return this.__data__.set(e,s),this},Yn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.clear=function(){this.__data__=new Gn,this.size=0},Qn.prototype.delete=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n},Qn.prototype.get=function(e){return this.__data__.get(e)},Qn.prototype.has=function(e){return this.__data__.has(e)},Qn.prototype.set=function(e,t){var n=this.__data__;if(n instanceof Gn){var i=n.__data__;if(!En||i.length<199)return i.push([e,t]),this.size=++n.size,this;n=this.__data__=new Kn(i)}return n.set(e,t),this.size=n.size,this};var pi=Mr(ki),mi=Mr(wi,!0);function gi(e,t){var n=!0;return pi(e,(function(e,i,r){return n=!!t(e,i,r)})),n}function vi(e,t,n){for(var i=-1,a=e.length;++i<a;){var s=e[i],o=t(s);if(null!=o&&(l===r?o==o&&!uo(o):n(o,l)))var l=o,c=s}return c}function yi(e,t){var n=[];return pi(e,(function(e,i,r){t(e,i,r)&&n.push(e)})),n}function bi(e,t,n,i,r){var a=-1,s=e.length;for(n||(n=ba),r||(r=[]);++a<s;){var o=e[a];t>0&&n(o)?t>1?bi(o,t-1,n,i,r):Rt(r,o):i||(r[r.length]=o)}return r}var _i=Nr(),Ti=Nr(!0);function ki(e,t){return e&&_i(e,t,Ro)}function wi(e,t){return e&&Ti(e,t,Ro)}function Si(e,t){return It(t,(function(t){return Zs(e[t])}))}function xi(e,t){for(var n=0,i=(t=Tr(t,e)).length;null!=e&&n<i;)e=e[ja(t[n++])];return n&&n==i?e:r}function Ci(e,t,n){var i=t(e);return $s(e)?i:Rt(i,n(e))}function Ei(e){return null==e?e===r?"[object Undefined]":"[object Null]":nt&&nt in Ee(e)?function(e){var t=Ne.call(e,nt),n=e[nt];try{e[nt]=r;var i=!0}catch(e){}var a=je.call(e);i&&(t?e[nt]=n:delete e[nt]);return a}(e):function(e){return je.call(e)}(e)}function Ai(e,t){return e>t}function Li(e,t){return null!=e&&Ne.call(e,t)}function Ii(e,t){return null!=e&&t in Ee(e)}function Pi(e,t,n){for(var a=n?Ot:Pt,s=e[0].length,o=e.length,l=o,c=i(o),u=1/0,d=[];l--;){var h=e[l];l&&t&&(h=Dt(h,Qt(t))),u=Tn(h.length,u),c[l]=!n&&(t||s>=120&&h.length>=120)?new Yn(l&&h):r}h=e[0];var f=-1,p=c[0];e:for(;++f<s&&d.length<u;){var m=h[f],g=t?t(m):m;if(m=n||0!==m?m:0,!(p?Zt(p,g):a(d,g,n))){for(l=o;--l;){var v=c[l];if(!(v?Zt(v,g):a(e[l],g,n)))continue e}p&&p.push(g),d.push(m)}}return d}function Oi(e,t,n){var i=null==(e=La(e,t=Tr(t,e)))?e:e[ja(Ja(t))];return null==i?r:xt(i,e,n)}function Di(e){return io(e)&&Ei(e)==y}function Ri(e,t,n,i,a){return e===t||(null==e||null==t||!io(e)&&!io(t)?e!=e&&t!=t:function(e,t,n,i,a,s){var o=$s(e),l=$s(t),c=o?b:ga(e),u=l?b:ga(t),d=(c=c==y?E:c)==E,h=(u=u==y?E:u)==E,f=c==u;if(f&&Ys(e)){if(!Ys(t))return!1;o=!0,d=!1}if(f&&!d)return s||(s=new Qn),o||ho(e)?ia(e,t,n,i,a,s):function(e,t,n,i,r,a,s){switch(n){case M:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case R:return!(e.byteLength!=t.byteLength||!a(new Ve(e),new Ve(t)));case _:case T:case C:return Hs(+e,+t);case k:return e.name==t.name&&e.message==t.message;case L:case P:return e==t+"";case x:var o=ln;case I:var l=1&i;if(o||(o=dn),e.size!=t.size&&!l)return!1;var c=s.get(e);if(c)return c==t;i|=2,s.set(e,t);var u=ia(o(e),o(t),i,r,a,s);return s.delete(e),u;case O:if(Bn)return Bn.call(e)==Bn.call(t)}return!1}(e,t,c,n,i,a,s);if(!(1&n)){var p=d&&Ne.call(e,"__wrapped__"),m=h&&Ne.call(t,"__wrapped__");if(p||m){var g=p?e.value():e,v=m?t.value():t;return s||(s=new Qn),a(g,v,n,i,s)}}if(!f)return!1;return s||(s=new Qn),function(e,t,n,i,a,s){var o=1&n,l=aa(e),c=l.length,u=aa(t).length;if(c!=u&&!o)return!1;var d=c;for(;d--;){var h=l[d];if(!(o?h in t:Ne.call(t,h)))return!1}var f=s.get(e),p=s.get(t);if(f&&p)return f==t&&p==e;var m=!0;s.set(e,t),s.set(t,e);var g=o;for(;++d<c;){var v=e[h=l[d]],y=t[h];if(i)var b=o?i(y,v,h,t,e,s):i(v,y,h,e,t,s);if(!(b===r?v===y||a(v,y,n,i,s):b)){m=!1;break}g||(g="constructor"==h)}if(m&&!g){var _=e.constructor,T=t.constructor;_==T||!("constructor"in e)||!("constructor"in t)||"function"==typeof _&&_ instanceof _&&"function"==typeof T&&T instanceof T||(m=!1)}return s.delete(e),s.delete(t),m}(e,t,n,i,a,s)}(e,t,n,i,Ri,a))}function Mi(e,t,n,i){var a=n.length,s=a,o=!i;if(null==e)return!s;for(e=Ee(e);a--;){var l=n[a];if(o&&l[2]?l[1]!==e[l[0]]:!(l[0]in e))return!1}for(;++a<s;){var c=(l=n[a])[0],u=e[c],d=l[1];if(o&&l[2]){if(u===r&&!(c in e))return!1}else{var h=new Qn;if(i)var f=i(u,d,c,e,t,h);if(!(f===r?Ri(d,u,3,i,h):f))return!1}}return!0}function Ni(e){return!(!no(e)||(t=e,Ue&&Ue in t))&&(Zs(e)?He:ye).test(Ba(e));var t}function qi(e){return"function"==typeof e?e:null==e?sl:"object"==typeof e?$s(e)?Wi(e[0],e[1]):Hi(e):ml(e)}function Ui(e){if(!xa(e))return bn(e);var t=[];for(var n in Ee(e))Ne.call(e,n)&&"constructor"!=n&&t.push(n);return t}function ji(e){if(!no(e))return function(e){var t=[];if(null!=e)for(var n in Ee(e))t.push(n);return t}(e);var t=xa(e),n=[];for(var i in e)("constructor"!=i||!t&&Ne.call(e,i))&&n.push(i);return n}function Bi(e,t){return e<t}function Fi(e,t){var n=-1,r=Gs(e)?i(e.length):[];return pi(e,(function(e,i,a){r[++n]=t(e,i,a)})),r}function Hi(e){var t=ha(e);return 1==t.length&&t[0][2]?Ea(t[0][0],t[0][1]):function(n){return n===e||Mi(n,e,t)}}function Wi(e,t){return ka(e)&&Ca(t)?Ea(ja(e),t):function(n){var i=Lo(n,e);return i===r&&i===t?Io(n,e):Ri(t,i,3)}}function zi(e,t,n,i,a){e!==t&&_i(t,(function(s,o){if(a||(a=new Qn),no(s))!function(e,t,n,i,a,s,o){var l=Pa(e,n),c=Pa(t,n),u=o.get(c);if(u)return void ni(e,n,u);var d=s?s(l,c,n+"",e,t,o):r,h=d===r;if(h){var f=$s(c),p=!f&&Ys(c),m=!f&&!p&&ho(c);d=c,f||p||m?$s(l)?d=l:Ks(l)?d=Pr(l):p?(h=!1,d=xr(c,!0)):m?(h=!1,d=Er(c,!0)):d=[]:so(c)||Vs(c)?(d=l,Vs(l)?d=_o(l):no(l)&&!Zs(l)||(d=ya(c))):h=!1}h&&(o.set(c,d),a(d,c,i,s,o),o.delete(c));ni(e,n,d)}(e,t,o,n,zi,i,a);else{var l=i?i(Pa(e,o),s,o+"",e,t,a):r;l===r&&(l=s),ni(e,o,l)}}),Mo)}function Vi(e,t){var n=e.length;if(n)return _a(t+=t<0?n:0,n)?e[t]:r}function $i(e,t,n){t=t.length?Dt(t,(function(e){return $s(e)?function(t){return xi(t,1===e.length?e[0]:e)}:e})):[sl];var i=-1;t=Dt(t,Qt(ua()));var r=Fi(e,(function(e,n,r){var a=Dt(t,(function(t){return t(e)}));return{criteria:a,index:++i,value:e}}));return function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}(r,(function(e,t){return function(e,t,n){var i=-1,r=e.criteria,a=t.criteria,s=r.length,o=n.length;for(;++i<s;){var l=Ar(r[i],a[i]);if(l)return i>=o?l:l*("desc"==n[i]?-1:1)}return e.index-t.index}(e,t,n)}))}function Xi(e,t,n){for(var i=-1,r=t.length,a={};++i<r;){var s=t[i],o=xi(e,s);n(o,s)&&tr(a,Tr(s,e),o)}return a}function Gi(e,t,n,i){var r=i?Ht:Ft,a=-1,s=t.length,o=e;
vendor: 4,821 bytes, line 2
2for(e===t&&(t=Pr(t)),n&&(o=Dt(e,Qt(n)));++a<s;)for(var l=0,c=t[a],u=n?n(c):c;(l=r(o,u,l,i))>-1;)o!==e&&Ye.call(o,l,1),Ye.call(e,l,1);return e}function Ki(e,t){for(var n=e?t.length:0,i=n-1;n--;){var r=t[n];if(n==i||r!==a){var a=r;_a(r)?Ye.call(e,r,1):fr(e,r)}}return e}function Yi(e,t){return e+vt(Sn()*(t-e+1))}function Qi(e,t){var n="";if(!e||t<1||t>p)return n;do{t%2&&(n+=e),(t=vt(t/2))&&(e+=e)}while(t);return n}function Ji(e,t){return Ra(Aa(e,t,sl),e+"")}function Zi(e){return Zn(Wo(e))}function er(e,t){var n=Wo(e);return qa(n,ci(t,0,n.length))}function tr(e,t,n,i){if(!no(e))return e;for(var a=-1,s=(t=Tr(t,e)).length,o=s-1,l=e;null!=l&&++a<s;){var c=ja(t[a]),u=n;if("__proto__"===c||"constructor"===c||"prototype"===c)return e;if(a!=o){var d=l[c];(u=i?i(d,c,l):r)===r&&(u=no(d)?d:_a(t[a+1])?[]:{})}ii(l,c,u),l=l[c]}return e}var nr=On?function(e,t){return On.set(e,t),e}:sl,ir=lt?function(e,t){return lt(e,"toString",{configurable:!0,enumerable:!1,value:il(t),writable:!0})}:sl;function rr(e){return qa(Wo(e))}function ar(e,t,n){var r=-1,a=e.length;t<0&&(t=-t>a?0:a+t),(n=n>a?a:n)<0&&(n+=a),a=t>n?0:n-t>>>0,t>>>=0;for(var s=i(a);++r<a;)s[r]=e[r+t];return s}function sr(e,t){var n;return pi(e,(function(e,i,r){return!(n=t(e,i,r))})),!!n}function or(e,t,n){var i=0,r=null==e?i:e.length;if("number"==typeof t&&t==t&&r<=2147483647){for(;i<r;){var a=i+r>>>1,s=e[a];null!==s&&!uo(s)&&(n?s<=t:s<t)?i=a+1:r=a}return r}return lr(e,t,sl,n)}function lr(e,t,n,i){var a=0,s=null==e?0:e.length;if(0===s)return 0;for(var o=(t=n(t))!=t,l=null===t,c=uo(t),u=t===r;a<s;){var d=vt((a+s)/2),h=n(e[d]),f=h!==r,p=null===h,m=h==h,g=uo(h);if(o)var v=i||m;else v=u?m&&(i||f):l?m&&f&&(i||!p):c?m&&f&&!p&&(i||!g):!p&&!g&&(i?h<=t:h<t);v?a=d+1:s=d}return Tn(s,4294967294)}function cr(e,t){for(var n=-1,i=e.length,r=0,a=[];++n<i;){var s=e[n],o=t?t(s):s;if(!n||!Hs(o,l)){var l=o;a[r++]=0===s?0:s}}return a}function ur(e){return"number"==typeof e?e:uo(e)?m:+e}function dr(e){if("string"==typeof e)return e;if($s(e))return Dt(e,dr)+"";if(uo(e))return Fn?Fn.call(e):"";var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function hr(e,t,n){var i=-1,r=Pt,a=e.length,s=!0,o=[],l=o;if(n)s=!1,r=Ot;else if(a>=200){var c=t?null:Qr(e);if(c)return dn(c);s=!1,r=Zt,l=new Yn}else l=t?[]:o;e:for(;++i<a;){var u=e[i],d=t?t(u):u;if(u=n||0!==u?u:0,s&&d==d){for(var h=l.length;h--;)if(l[h]===d)continue e;t&&l.push(d),o.push(u)}else r(l,d,n)||(l!==o&&l.push(d),o.push(u))}return o}function fr(e,t){return null==(e=La(e,t=Tr(t,e)))||delete e[ja(Ja(t))]}function pr(e,t,n,i){return tr(e,t,n(xi(e,t)),i)}function mr(e,t,n,i){for(var r=e.length,a=i?r:-1;(i?a--:++a<r)&&t(e[a],a,e););return n?ar(e,i?0:a,i?a+1:r):ar(e,i?a+1:0,i?r:a)}function gr(e,t){var n=e;return n instanceof $n&&(n=n.value()),Mt(t,(function(e,t){return t.func.apply(t.thisArg,Rt([e],t.args))}),n)}function vr(e,t,n){var r=e.length;if(r<2)return r?hr(e[0]):[];for(var a=-1,s=i(r);++a<r;)for(var o=e[a],l=-1;++l<r;)l!=a&&(s[a]=fi(s[a]||o,e[l],t,n));return hr(bi(s,1),t,n)}function yr(e,t,n){for(var i=-1,a=e.length,s=t.length,o={};++i<a;){var l=i<s?t[i]:r;n(o,e[i],l)}return o}function br(e){return Ks(e)?e:[]}function _r(e){return"function"==typeof e?e:sl}function Tr(e,t){return $s(e)?e:ka(e,t)?[e]:Ua(To(e))}var kr=Ji;function wr(e,t,n){var i=e.length;return n=n===r?i:n,!t&&n>=i?e:ar(e,t,n)}var Sr=dt||function(e){return ft.clearTimeout(e)};function xr(e,t){if(t)return e.slice();var n=e.length,i=$e?$e(n):new e.constructor(n);return e.copy(i),i}function Cr(e){var t=new e.constructor(e.byteLength);return new Ve(t).set(new Ve(e)),t}function Er(e,t){var n=t?Cr(e.buffer):e.buffer;return new e.constructor(n,e.byteOffset,e.length)}function Ar(e,t){if(e!==t){var n=e!==r,i=null===e,a=e==e,s=uo(e),o=t!==r,l=null===t,c=t==t,u=uo(t);if(!l&&!u&&!s&&e>t||s&&o&&c&&!l&&!u||i&&o&&c||!n&&c||!a)return 1;if(!i&&!s&&!u&&e<t||u&&n&&a&&!i&&!s||l&&n&&a||!o&&a||!c)return-1}return 0}function Lr(e,t,n,r){for(var a=-1,s=e.length,o=n.length,l=-1,c=t.length,u=_n(s-o,0),d=i(c+u),h=!r;++l<c;)d[l]=t[l];for(;++a<o;)(h||a<s)&&(d[n[a]]=e[a]);for(;u--;)d[l++]=e[a++];return d}function Ir(e,t,n,r){for(var a=-1,s=e.length,o=-1,l=n.length,c=-1,u=t.length,d=_n(s-l,0),h=i(d+u),f=!r;++a<d;)h[a]=e[a];for(var p=a;++c<u;)h[p+c]=t[c];for(;++o<l;)(f||a<s)&&(h[p+n[o]]=e[a++]);return h}function Pr(e,t){var n=-1,r=e.length;for(t||(t=i(r));++n<r;)t[n]=e[n];return t}function Or(e,t,n,i){var a=!n;n||(n={});for(var s=-1,o=t.length;++s<o;){var l=t[s],c=i?i(n[l],e[l],l,n,e):r;c===r&&(c=e[l]),a?oi(n,l,c):ii(n,l,c)}return n}function Dr(e,t){return function(n,i){var r=$s(n)?Ct:ai,a=t?t():{};return r(n,e,ua(i,2),a)}}function Rr(e){return Ji((function(t,n){var i=-1,a=n.length,s=a>1?n[a-1]:r,o=a>2?n[2]:r;for(s=e.length>3&&"function"==typeof s?(a--,s):r,o&&Ta(n[0],n[1],o)&&(s=a<3?r:s,a=1),t=Ee(t);++i<a;){var l=n[i];l&&e(t,l,i,s)}return t}))}
vendor: 35,395 bytes, line 2
2function Mr(e,t){return function(n,i){if(null==n)return n;if(!Gs(n))return e(n,i);for(var r=n.length,a=t?r:-1,s=Ee(n);(t?a--:++a<r)&&!1!==i(s[a],a,s););return n}}function Nr(e){return function(t,n,i){for(var r=-1,a=Ee(t),s=i(t),o=s.length;o--;){var l=s[e?o:++r];if(!1===n(a[l],l,a))break}return t}}function qr(e){return function(t){var n=on(t=To(t))?pn(t):r,i=n?n[0]:t.charAt(0),a=n?wr(n,1).join(""):t.slice(1);return i[e]()+a}}function Ur(e){return function(t){return Mt(el($o(t).replace(Je,"")),e,"")}}function jr(e){return function(){var t=arguments;switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3]);case 5:return new e(t[0],t[1],t[2],t[3],t[4]);case 6:return new e(t[0],t[1],t[2],t[3],t[4],t[5]);case 7:return new e(t[0],t[1],t[2],t[3],t[4],t[5],t[6])}var n=Wn(e.prototype),i=e.apply(n,t);return no(i)?i:n}}function Br(e){return function(t,n,i){var a=Ee(t);if(!Gs(t)){var s=ua(n,3);t=Ro(t),n=function(e){return s(a[e],e,a)}}var o=e(t,n,i);return o>-1?a[s?t[o]:o]:r}}function Fr(e){return ra((function(t){var n=t.length,i=n,s=Vn.prototype.thru;for(e&&t.reverse();i--;){var o=t[i];if("function"!=typeof o)throw new Ie(a);if(s&&!l&&"wrapper"==la(o))var l=new Vn([],!0)}for(i=l?i:n;++i<n;){var c=la(o=t[i]),u="wrapper"==c?oa(o):r;l=u&&wa(u[0])&&424==u[1]&&!u[4].length&&1==u[9]?l[la(u[0])].apply(l,u[3]):1==o.length&&wa(o)?l[c]():l.thru(o)}return function(){var e=arguments,i=e[0];if(l&&1==e.length&&$s(i))return l.plant(i).value();for(var r=0,a=n?t[r].apply(this,e):i;++r<n;)a=t[r].call(this,a);return a}}))}function Hr(e,t,n,a,s,o,l,c,u,h){var f=t&d,p=1&t,m=2&t,g=24&t,v=512&t,y=m?r:jr(e);return function r(){for(var d=arguments.length,b=i(d),_=d;_--;)b[_]=arguments[_];if(g)var T=ca(r),k=nn(b,T);if(a&&(b=Lr(b,a,s,g)),o&&(b=Ir(b,o,l,g)),d-=k,g&&d<h){var w=un(b,T);return Kr(e,t,Hr,r.placeholder,n,b,w,c,u,h-d)}var S=p?n:this,x=m?S[e]:e;return d=b.length,c?b=Ia(b,c):v&&d>1&&b.reverse(),f&&u<d&&(b.length=u),this&&this!==ft&&this instanceof r&&(x=y||jr(x)),x.apply(S,b)}}function Wr(e,t){return function(n,i){return function(e,t,n,i){return ki(e,(function(e,r,a){t(i,n(e),r,a)})),i}(n,e,t(i),{})}}function zr(e,t){return function(n,i){var a;if(n===r&&i===r)return t;if(n!==r&&(a=n),i!==r){if(a===r)return i;"string"==typeof n||"string"==typeof i?(n=dr(n),i=dr(i)):(n=ur(n),i=ur(i)),a=e(n,i)}return a}}function Vr(e){return ra((function(t){return t=Dt(t,Qt(ua())),Ji((function(n){var i=this;return e(t,(function(e){return xt(e,i,n)}))}))}))}function $r(e,t){var n=(t=t===r?" ":dr(t)).length;if(n<2)return n?Qi(t,e):t;var i=Qi(t,mt(e/fn(t)));return on(t)?wr(pn(i),0,e).join(""):i.slice(0,e)}function Xr(e){return function(t,n,a){return a&&"number"!=typeof a&&Ta(t,n,a)&&(n=a=r),t=go(t),n===r?(n=t,t=0):n=go(n),function(e,t,n,r){for(var a=-1,s=_n(mt((t-e)/(n||1)),0),o=i(s);s--;)o[r?s:++a]=e,e+=n;return o}(t,n,a=a===r?t<n?1:-1:go(a),e)}}function Gr(e){return function(t,n){return"string"==typeof t&&"string"==typeof n||(t=bo(t),n=bo(n)),e(t,n)}}function Kr(e,t,n,i,a,s,o,l,d,h){var f=8&t;t|=f?c:u,4&(t&=~(f?u:c))||(t&=-4);var p=[e,t,a,f?s:r,f?o:r,f?r:s,f?r:o,l,d,h],m=n.apply(r,p);return wa(e)&&Oa(m,p),m.placeholder=i,Ma(m,e,t)}function Yr(e){var t=Ce[e];return function(e,n){if(e=bo(e),(n=null==n?0:Tn(vo(n),292))&&$t(e)){var i=(To(e)+"e").split("e");return+((i=(To(t(i[0]+"e"+(+i[1]+n)))+"e").split("e"))[0]+"e"+(+i[1]-n))}return t(e)}}var Qr=Ln&&1/dn(new Ln([,-0]))[1]==f?function(e){return new Ln(e)}:dl;function Jr(e){return function(t){var n=ga(t);return n==x?ln(t):n==I?hn(t):function(e,t){return Dt(t,(function(t){return[t,e[t]]}))}(t,e(t))}}function Zr(e,t,n,s,f,p,m,g){var v=2&t;if(!v&&"function"!=typeof e)throw new Ie(a);var y=s?s.length:0;if(y||(t&=-97,s=f=r),m=m===r?m:_n(vo(m),0),g=g===r?g:vo(g),y-=f?f.length:0,t&u){var b=s,_=f;s=f=r}var T=v?r:oa(e),k=[e,t,n,s,f,b,_,p,m,g];if(T&&function(e,t){var n=e[1],i=t[1],r=n|i,a=r<131,s=i==d&&8==n||i==d&&n==h&&e[7].length<=t[8]||384==i&&t[7].length<=t[8]&&8==n;if(!a&&!s)return e;1&i&&(e[2]=t[2],r|=1&n?0:4);var l=t[3];if(l){var c=e[3];e[3]=c?Lr(c,l,t[4]):l,e[4]=c?un(e[3],o):t[4]}(l=t[5])&&(c=e[5],e[5]=c?Ir(c,l,t[6]):l,e[6]=c?un(e[5],o):t[6]);(l=t[7])&&(e[7]=l);i&d&&(e[8]=null==e[8]?t[8]:Tn(e[8],t[8]));null==e[9]&&(e[9]=t[9]);e[0]=t[0],e[1]=r}(k,T),e=k[0],t=k[1],n=k[2],s=k[3],f=k[4],!(g=k[9]=k[9]===r?v?0:e.length:_n(k[9]-y,0))&&24&t&&(t&=-25),t&&1!=t)w=8==t||t==l?function(e,t,n){var a=jr(e);return function s(){for(var o=arguments.length,l=i(o),c=o,u=ca(s);c--;)l[c]=arguments[c];var d=o<3&&l[0]!==u&&l[o-1]!==u?[]:un(l,u);return(o-=d.length)<n?Kr(e,t,Hr,s.placeholder,r,l,d,r,r,n-o):xt(this&&this!==ft&&this instanceof s?a:e,this,l)}}(e,t,g):t!=c&&33!=t||f.length?Hr.apply(r,k):function(e,t,n,r){var a=1&t,s=jr(e);return function t(){for(var o=-1,l=arguments.length,c=-1,u=r.length,d=i(u+l),h=this&&this!==ft&&this instanceof t?s:e;++c<u;)d[c]=r[c];for(;l--;)d[c++]=arguments[++o];return xt(h,a?n:this,d)}}(e,t,n,s);else var w=function(e,t,n){var i=1&t,r=jr(e);return function t(){return(this&&this!==ft&&this instanceof t?r:e).apply(i?n:this,arguments)}}(e,t,n);return Ma((T?nr:Oa)(w,k),e,t)}function ea(e,t,n,i){return e===r||Hs(e,De[n])&&!Ne.call(i,n)?t:e}function ta(e,t,n,i,a,s){return no(e)&&no(t)&&(s.set(t,e),zi(e,t,r,ta,s),s.delete(t)),e}function na(e){return so(e)?r:e}function ia(e,t,n,i,a,s){var o=1&n,l=e.length,c=t.length;if(l!=c&&!(o&&c>l))return!1;var u=s.get(e),d=s.get(t);if(u&&d)return u==t&&d==e;var h=-1,f=!0,p=2&n?new Yn:r;for(s.set(e,t),s.set(t,e);++h<l;){var m=e[h],g=t[h];if(i)var v=o?i(g,m,h,t,e,s):i(m,g,h,e,t,s);if(v!==r){if(v)continue;f=!1;break}if(p){if(!qt(t,(function(e,t){if(!Zt(p,t)&&(m===e||a(m,e,n,i,s)))return p.push(t)}))){f=!1;break}}else if(m!==g&&!a(m,g,n,i,s)){f=!1;break}}return s.delete(e),s.delete(t),f}function ra(e){return Ra(Aa(e,r,Xa),e+"")}function aa(e){return Ci(e,Ro,pa)}function sa(e){return Ci(e,Mo,ma)}var oa=On?function(e){return On.get(e)}:dl;function la(e){for(var t=e.name+"",n=Dn[t],i=Ne.call(Dn,t)?n.length:0;i--;){var r=n[i],a=r.func;if(null==a||a==e)return r.name}return t}function ca(e){return(Ne.call(Hn,"placeholder")?Hn:e).placeholder}function ua(){var e=Hn.iteratee||ol;return e=e===ol?qi:e,arguments.length?e(arguments[0],arguments[1]):e}function da(e,t){var n,i,r=e.__data__;return("string"==(i=typeof(n=t))||"number"==i||"symbol"==i||"boolean"==i?"__proto__"!==n:null===n)?r["string"==typeof t?"string":"hash"]:r.map}function ha(e){for(var t=Ro(e),n=t.length;n--;){var i=t[n],r=e[i];t[n]=[i,r,Ca(r)]}return t}function fa(e,t){var n=function(e,t){return null==e?r:e[t]}(e,t);return Ni(n)?n:r}var pa=yt?function(e){return null==e?[]:(e=Ee(e),It(yt(e),(function(t){return Ke.call(e,t)})))}:yl,ma=yt?function(e){for(var t=[];e;)Rt(t,pa(e)),e=Xe(e);return t}:yl,ga=Ei;function va(e,t,n){for(var i=-1,r=(t=Tr(t,e)).length,a=!1;++i<r;){var s=ja(t[i]);if(!(a=null!=e&&n(e,s)))break;e=e[s]}return a||++i!=r?a:!!(r=null==e?0:e.length)&&to(r)&&_a(s,r)&&($s(e)||Vs(e))}function ya(e){return"function"!=typeof e.constructor||xa(e)?{}:Wn(Xe(e))}function ba(e){return $s(e)||Vs(e)||!!(Qe&&e&&e[Qe])}function _a(e,t){var n=typeof e;return!!(t=null==t?p:t)&&("number"==n||"symbol"!=n&&_e.test(e))&&e>-1&&e%1==0&&e<t}function Ta(e,t,n){if(!no(n))return!1;var i=typeof t;return!!("number"==i?Gs(n)&&_a(t,n.length):"string"==i&&t in n)&&Hs(n[t],e)}function ka(e,t){if($s(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!uo(e))||(ne.test(e)||!te.test(e)||null!=t&&e in Ee(t))}function wa(e){var t=la(e),n=Hn[t];if("function"!=typeof n||!(t in $n.prototype))return!1;if(e===n)return!0;var i=oa(n);return!!i&&e===i[0]}(Cn&&ga(new Cn(new ArrayBuffer(1)))!=M||En&&ga(new En)!=x||An&&ga(An.resolve())!=A||Ln&&ga(new Ln)!=I||In&&ga(new In)!=D)&&(ga=function(e){var t=Ei(e),n=t==E?e.constructor:r,i=n?Ba(n):"";if(i)switch(i){case Rn:return M;case Mn:return x;case Nn:return A;case qn:return I;case Un:return D}return t});var Sa=Re?Zs:bl;function xa(e){var t=e&&e.constructor;return e===("function"==typeof t&&t.prototype||De)}function Ca(e){return e==e&&!no(e)}function Ea(e,t){return function(n){return null!=n&&(n[e]===t&&(t!==r||e in Ee(n)))}}function Aa(e,t,n){return t=_n(t===r?e.length-1:t,0),function(){for(var r=arguments,a=-1,s=_n(r.length-t,0),o=i(s);++a<s;)o[a]=r[t+a];a=-1;for(var l=i(t+1);++a<t;)l[a]=r[a];return l[t]=n(o),xt(e,this,l)}}function La(e,t){return t.length<2?e:xi(e,ar(t,0,-1))}function Ia(e,t){for(var n=e.length,i=Tn(t.length,n),a=Pr(e);i--;){var s=t[i];e[i]=_a(s,n)?a[s]:r}return e}function Pa(e,t){if(("constructor"!==t||"function"!=typeof e[t])&&"__proto__"!=t)return e[t]}var Oa=Na(nr),Da=pt||function(e,t){return ft.setTimeout(e,t)},Ra=Na(ir);function Ma(e,t,n){var i=t+"";return Ra(e,function(e,t){var n=t.length;if(!n)return e;var i=n-1;return t[i]=(n>1?"& ":"")+t[i],t=t.join(n>2?", ":" "),e.replace(le,"{\n/* [wrapped with "+t+"] */\n")}(i,function(e,t){return Et(v,(function(n){var i="_."+n[0];t&n[1]&&!Pt(e,i)&&e.push(i)})),e.sort()}(function(e){var t=e.match(ce);return t?t[1].split(ue):[]}(i),n)))}function Na(e){var t=0,n=0;return function(){var i=kn(),a=16-(i-n);if(n=i,a>0){if(++t>=800)return arguments[0]}else t=0;return e.apply(r,arguments)}}function qa(e,t){var n=-1,i=e.length,a=i-1;for(t=t===r?i:t;++n<t;){var s=Yi(n,a),o=e[s];e[s]=e[n],e[n]=o}return e.length=t,e}var Ua=function(e){var t=Ns(e,(function(e){return 500===n.size&&n.clear(),e})),n=t.cache;return t}((function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(ie,(function(e,n,i,r){t.push(i?r.replace(fe,"$1"):n||e)})),t}));function ja(e){if("string"==typeof e||uo(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}function Ba(e){if(null!=e){try{return Me.call(e)}catch(e){}try{return e+""}catch(e){}}return""}function Fa(e){if(e instanceof $n)return e.clone();var t=new Vn(e.__wrapped__,e.__chain__);return t.__actions__=Pr(e.__actions__),t.__index__=e.__index__,t.__values__=e.__values__,t}var Ha=Ji((function(e,t){return Ks(e)?fi(e,bi(t,1,Ks,!0)):[]})),Wa=Ji((function(e,t){var n=Ja(t);return Ks(n)&&(n=r),Ks(e)?fi(e,bi(t,1,Ks,!0),ua(n,2)):[]})),za=Ji((function(e,t){var n=Ja(t);return Ks(n)&&(n=r),Ks(e)?fi(e,bi(t,1,Ks,!0),r,n):[]}));function Va(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:vo(n);return r<0&&(r=_n(i+r,0)),Bt(e,ua(t,3),r)}function $a(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i-1;return n!==r&&(a=vo(n),a=n<0?_n(i+a,0):Tn(a,i-1)),Bt(e,ua(t,3),a,!0)}function Xa(e){return(null==e?0:e.length)?bi(e,1):[]}function Ga(e){return e&&e.length?e[0]:r}var Ka=Ji((function(e){var t=Dt(e,br);return t.length&&t[0]===e[0]?Pi(t):[]})),Ya=Ji((function(e){var t=Ja(e),n=Dt(e,br);return t===Ja(n)?t=r:n.pop(),n.length&&n[0]===e[0]?Pi(n,ua(t,2)):[]})),Qa=Ji((function(e){var t=Ja(e),n=Dt(e,br);return(t="function"==typeof t?t:r)&&n.pop(),n.length&&n[0]===e[0]?Pi(n,r,t):[]}));function Ja(e){var t=null==e?0:e.length;return t?e[t-1]:r}var Za=Ji(es);function es(e,t){return e&&e.length&&t&&t.length?Gi(e,t):e}var ts=ra((function(e,t){var n=null==e?0:e.length,i=li(e,t);return Ki(e,Dt(t,(function(e){return _a(e,n)?+e:e})).sort(Ar)),i}));function ns(e){return null==e?e:xn.call(e)}var is=Ji((function(e){return hr(bi(e,1,Ks,!0))})),rs=Ji((function(e){var t=Ja(e);return Ks(t)&&(t=r),hr(bi(e,1,Ks,!0),ua(t,2))})),as=Ji((function(e){var t=Ja(e);return t="function"==typeof t?t:r,hr(bi(e,1,Ks,!0),r,t)}));function ss(e){if(!e||!e.length)return[];var t=0;return e=It(e,(function(e){if(Ks(e))return t=_n(e.length,t),!0})),Kt(t,(function(t){return Dt(e,Vt(t))}))}function os(e,t){if(!e||!e.length)return[];var n=ss(e);return null==t?n:Dt(n,(function(e){return xt(t,r,e)}))}var ls=Ji((function(e,t){return Ks(e)?fi(e,t):[]})),cs=Ji((function(e){return vr(It(e,Ks))})),us=Ji((function(e){var t=Ja(e);return Ks(t)&&(t=r),vr(It(e,Ks),ua(t,2))})),ds=Ji((function(e){var t=Ja(e);return t="function"==typeof t?t:r,vr(It(e,Ks),r,t)})),hs=Ji(ss);var fs=Ji((function(e){var t=e.length,n=t>1?e[t-1]:r;return n="function"==typeof n?(e.pop(),n):r,os(e,n)}));function ps(e){var t=Hn(e);return t.__chain__=!0,t}function ms(e,t){return t(e)}var gs=ra((function(e){var t=e.length,n=t?e[0]:0,i=this.__wrapped__,a=function(t){return li(t,e)};return!(t>1||this.__actions__.length)&&i instanceof $n&&_a(n)?((i=i.slice(n,+n+(t?1:0))).__actions__.push({func:ms,args:[a],thisArg:r}),new Vn(i,this.__chain__).thru((function(e){return t&&!e.length&&e.push(r),e}))):this.thru(a)}));var vs=Dr((function(e,t,n){Ne.call(e,n)?++e[n]:oi(e,n,1)}));var ys=Br(Va),bs=Br($a);function _s(e,t){return($s(e)?Et:pi)(e,ua(t,3))}function Ts(e,t){return($s(e)?At:mi)(e,ua(t,3))}var ks=Dr((function(e,t,n){Ne.call(e,n)?e[n].push(t):oi(e,n,[t])}));var ws=Ji((function(e,t,n){var r=-1,a="function"==typeof t,s=Gs(e)?i(e.length):[];return pi(e,(function(e){s[++r]=a?xt(t,e,n):Oi(e,t,n)})),s})),Ss=Dr((function(e,t,n){oi(e,n,t)}));function xs(e,t){return($s(e)?Dt:Fi)(e,ua(t,3))}var Cs=Dr((function(e,t,n){e[n?0:1].push(t)}),(function(){return[[],[]]}));var Es=Ji((function(e,t){if(null==e)return[];var n=t.length;return n>1&&Ta(e,t[0],t[1])?t=[]:n>2&&Ta(t[0],t[1],t[2])&&(t=[t[0]]),$i(e,bi(t,1),[])})),As=ht||function(){return ft.Date.now()};function Ls(e,t,n){return t=n?r:t,t=e&&null==t?e.length:t,Zr(e,d,r,r,r,r,t)}function Is(e,t){var n;if("function"!=typeof t)throw new Ie(a);return e=vo(e),function(){return--e>0&&(n=t.apply(this,arguments)),e<=1&&(t=r),n}}var Ps=Ji((function(e,t,n){var i=1;if(n.length){var r=un(n,ca(Ps));i|=c}return Zr(e,i,t,n,r)})),Os=Ji((function(e,t,n){var i=3;if(n.length){var r=un(n,ca(Os));i|=c}return Zr(t,i,e,n,r)}));function Ds(e,t,n){var i,s,o,l,c,u,d=0,h=!1,f=!1,p=!0;if("function"!=typeof e)throw new Ie(a);function m(t){var n=i,a=s;return i=s=r,d=t,l=e.apply(a,n)}function g(e){return d=e,c=Da(y,t),h?m(e):l}function v(e){var n=e-u;return u===r||n>=t||n<0||f&&e-d>=o}function y(){var e=As();if(v(e))return b(e);c=Da(y,function(e){var n=t-(e-u);return f?Tn(n,o-(e-d)):n}(e))}function b(e){return c=r,p&&i?m(e):(i=s=r,l)}function _(){var e=As(),n=v(e);if(i=arguments,s=this,u=e,n){if(c===r)return g(u);if(f)return Sr(c),c=Da(y,t),m(u)}return c===r&&(c=Da(y,t)),l}return t=bo(t)||0,no(n)&&(h=!!n.leading,o=(f="maxWait"in n)?_n(bo(n.maxWait)||0,t):o,p="trailing"in n?!!n.trailing:p),_.cancel=function(){c!==r&&Sr(c),d=0,i=u=s=c=r},_.flush=function(){return c===r?l:b(As())},_}var Rs=Ji((function(e,t){return hi(e,1,t)})),Ms=Ji((function(e,t,n){return hi(e,bo(t)||0,n)}));function Ns(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new Ie(a);var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],a=n.cache;if(a.has(r))return a.get(r);var s=e.apply(this,i);return n.cache=a.set(r,s)||a,s};return n.cache=new(Ns.Cache||Kn),n}function qs(e){if("function"!=typeof e)throw new Ie(a);return function(){var t=arguments;switch(t.length){case 0:return!e.call(this);case 1:return!e.call(this,t[0]);case 2:return!e.call(this,t[0],t[1]);case 3:return!e.call(this,t[0],t[1],t[2])}return!e.apply(this,t)}}Ns.Cache=Kn;var Us=kr((function(e,t){var n=(t=1==t.length&&$s(t[0])?Dt(t[0],Qt(ua())):Dt(bi(t,1),Qt(ua()))).length;return Ji((function(i){for(var r=-1,a=Tn(i.length,n);++r<a;)i[r]=t[r].call(this,i[r]);return xt(e,this,i)}))})),js=Ji((function(e,t){var n=un(t,ca(js));return Zr(e,c,r,t,n)})),Bs=Ji((function(e,t){var n=un(t,ca(Bs));return Zr(e,u,r,t,n)})),Fs=ra((function(e,t){return Zr(e,h,r,r,r,t)}));function Hs(e,t){return e===t||e!=e&&t!=t}var Ws=Gr(Ai),zs=Gr((function(e,t){return e>=t})),Vs=Di(function(){return arguments}())?Di:function(e){return io(e)&&Ne.call(e,"callee")&&!Ke.call(e,"callee")},$s=i.isArray,Xs=bt?Qt(bt):function(e){return io(e)&&Ei(e)==R};function Gs(e){return null!=e&&to(e.length)&&!Zs(e)}function Ks(e){return io(e)&&Gs(e)}var Ys=Ut||bl,Qs=_t?Qt(_t):function(e){return io(e)&&Ei(e)==T};function Js(e){if(!io(e))return!1;var t=Ei(e);return t==k||"[object DOMException]"==t||"string"==typeof e.message&&"string"==typeof e.name&&!so(e)}function Zs(e){if(!no(e))return!1;var t=Ei(e);return t==w||t==S||"[object AsyncFunction]"==t||"[object Proxy]"==t}function eo(e){return"number"==typeof e&&e==vo(e)}function to(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=p}function no(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}function io(e){return null!=e&&"object"==typeof e}var ro=Tt?Qt(Tt):function(e){return io(e)&&ga(e)==x};function ao(e){return"number"==typeof e||io(e)&&Ei(e)==C}function so(e){if(!io(e)||Ei(e)!=E)return!1;var t=Xe(e);if(null===t)return!0;var n=Ne.call(t,"constructor")&&t.constructor;return"function"==typeof n&&n instanceof n&&Me.call(n)==Be}var oo=kt?Qt(kt):function(e){return io(e)&&Ei(e)==L};var lo=wt?Qt(wt):function(e){return io(e)&&ga(e)==I};function co(e){return"string"==typeof e||!$s(e)&&io(e)&&Ei(e)==P}function uo(e){return"symbol"==typeof e||io(e)&&Ei(e)==O}var ho=St?Qt(St):function(e){return io(e)&&to(e.length)&&!!st[Ei(e)]};var fo=Gr(Bi),po=Gr((function(e,t){return e<=t}));function mo(e){if(!e)return[];if(Gs(e))return co(e)?pn(e):Pr(e);if(et&&e[et])return function(e){for(var t,n=[];!(t=e.next()).done;)n.push(t.value);return n}(e[et]());var t=ga(e);return(t==x?ln:t==I?dn:Wo)(e)}function go(e){return e?(e=bo(e))===f||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}function vo(e){var t=go(e),n=t%1;return t==t?n?t-n:t:0}function yo(e){return e?ci(vo(e),0,g):0}function bo(e){if("number"==typeof e)return e;if(uo(e))return m;if(no(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=no(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=Yt(e);var n=ve.test(e);return n||be.test(e)?ut(e.slice(2),n?2:8):ge.test(e)?m:+e}function _o(e){return Or(e,Mo(e))}function To(e){return null==e?"":dr(e)}var ko=Rr((function(e,t){if(xa(t)||Gs(t))Or(t,Ro(t),e);else for(var n in t)Ne.call(t,n)&&ii(e,n,t[n])})),wo=Rr((function(e,t){Or(t,Mo(t),e)})),So=Rr((function(e,t,n,i){Or(t,Mo(t),e,i)})),xo=Rr((function(e,t,n,i){Or(t,Ro(t),e,i)})),Co=ra(li);var Eo=Ji((function(e,t){e=Ee(e);var n=-1,i=t.length,a=i>2?t[2]:r;for(a&&Ta(t[0],t[1],a)&&(i=1);++n<i;)for(var s=t[n],o=Mo(s),l=-1,c=o.length;++l<c;){var u=o[l],d=e[u];(d===r||Hs(d,De[u])&&!Ne.call(e,u))&&(e[u]=s[u])}return e})),Ao=Ji((function(e){return e.push(r,ta),xt(qo,r,e)}));function Lo(e,t,n){var i=null==e?r:xi(e,t);return i===r?n:i}function Io(e,t){return null!=e&&va(e,t,Ii)}var Po=Wr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),e[t]=n}),il(sl)),Oo=Wr((function(e,t,n){null!=t&&"function"!=typeof t.toString&&(t=je.call(t)),Ne.call(e,t)?e[t].push(n):e[t]=[n]}),ua),Do=Ji(Oi);function Ro(e){return Gs(e)?Jn(e):Ui(e)}function Mo(e){return Gs(e)?Jn(e,!0):ji(e)}var No=Rr((function(e,t,n){zi(e,t,n)})),qo=Rr((function(e,t,n,i){zi(e,t,n,i)})),Uo=ra((function(e,t){var n={};if(null==e)return n;var i=!1;t=Dt(t,(function(t){return t=Tr(t,e),i||(i=t.length>1),t})),Or(e,sa(e),n),i&&(n=ui(n,7,na));for(var r=t.length;r--;)fr(n,t[r]);return n}));var jo=ra((function(e,t){return null==e?{}:function(e,t){return Xi(e,t,(function(t,n){return Io(e,n)}))}(e,t)}));function Bo(e,t){if(null==e)return{};var n=Dt(sa(e),(function(e){return[e]}));return t=ua(t),Xi(e,n,(function(e,n){return t(e,n[0])}))}var Fo=Jr(Ro),Ho=Jr(Mo);function Wo(e){return null==e?[]:Jt(e,Ro(e))}var zo=Ur((function(e,t,n){return t=t.toLowerCase(),e+(n?Vo(t):t)}));function Vo(e){return Zo(To(e).toLowerCase())}function $o(e){return(e=To(e))&&e.replace(Te,rn).replace(Ze,"")}var Xo=Ur((function(e,t,n){return e+(n?"-":"")+t.toLowerCase()})),Go=Ur((function(e,t,n){return e+(n?" ":"")+t.toLowerCase()})),Ko=qr("toLowerCase");var Yo=Ur((function(e,t,n){return e+(n?"_":"")+t.toLowerCase()}));var Qo=Ur((function(e,t,n){return e+(n?" ":"")+Zo(t)}));var Jo=Ur((function(e,t,n){return e+(n?" ":"")+t.toUpperCase()})),Zo=qr("toUpperCase");function el(e,t,n){return e=To(e),(t=n?r:t)===r?function(e){return it.test(e)}(e)?function(e){return e.match(tt)||[]}(e):function(e){return e.match(de)||[]}(e):e.match(t)||[]}var tl=Ji((function(e,t){try{return xt(e,r,t)}catch(e){return Js(e)?e:new Se(e)}})),nl=ra((function(e,t){return Et(t,(function(t){t=ja(t),oi(e,t,Ps(e[t],e))})),e}));function il(e){return function(){return e}}var rl=Fr(),al=Fr(!0);function sl(e){return e}function ol(e){return qi("function"==typeof e?e:ui(e,1))}var ll=Ji((function(e,t){return function(n){return Oi(n,e,t)}})),cl=Ji((function(e,t){return function(n){return Oi(e,n,t)}}));function ul(e,t,n){var i=Ro(t),r=Si(t,i);null!=n||no(t)&&(r.length||!i.length)||(n=t,t=e,e=this,r=Si(t,Ro(t)));var a=!(no(n)&&"chain"in n&&!n.chain),s=Zs(e);return Et(r,(function(n){var i=t[n];e[n]=i,s&&(e.prototype[n]=function(){var t=this.__chain__;if(a||t){var n=e(this.__wrapped__),r=n.__actions__=Pr(this.__actions__);return r.push({func:i,args:arguments,thisArg:e}),n.__chain__=t,n}return i.apply(e,Rt([this.value()],arguments))})})),e}function dl(){}var hl=Vr(Dt),fl=Vr(Lt),pl=Vr(qt);function ml(e){return ka(e)?Vt(ja(e)):function(e){return function(t){return xi(t,e)}}(e)}var gl=Xr(),vl=Xr(!0);function yl(){return[]}function bl(){return!1}var _l=zr((function(e,t){return e+t}),0),Tl=Yr("ceil"),kl=zr((function(e,t){return e/t}),1),wl=Yr("floor");var Sl,xl=zr((function(e,t){return e*t}),1),Cl=Yr("round"),El=zr((function(e,t){return e-t}),0);return Hn.after=function(e,t){if("function"!=typeof t)throw new Ie(a);return e=vo(e),function(){if(--e<1)return t.apply(this,arguments)}},Hn.ary=Ls,Hn.assign=ko,Hn.assignIn=wo,Hn.assignInWith=So,Hn.assignWith=xo,Hn.at=Co,Hn.before=Is,Hn.bind=Ps,Hn.bindAll=nl,Hn.bindKey=Os,Hn.castArray=function(){if(!arguments.length)return[];var e=arguments[0];return $s(e)?e:[e]},Hn.chain=ps,Hn.chunk=function(e,t,n){t=(n?Ta(e,t,n):t===r)?1:_n(vo(t),0);var a=null==e?0:e.length;if(!a||t<1)return[];for(var s=0,o=0,l=i(mt(a/t));s<a;)l[o++]=ar(e,s,s+=t);return l},Hn.compact=function(e){for(var t=-1,n=null==e?0:e.length,i=0,r=[];++t<n;){var a=e[t];a&&(r[i++]=a)}return r},Hn.concat=function(){var e=arguments.length;if(!e)return[];for(var t=i(e-1),n=arguments[0],r=e;r--;)t[r-1]=arguments[r];return Rt($s(n)?Pr(n):[n],bi(t,1))},Hn.cond=function(e){var t=null==e?0:e.length,n=ua();return e=t?Dt(e,(function(e){if("function"!=typeof e[1])throw new Ie(a);return[n(e[0]),e[1]]})):[],Ji((function(n){for(var i=-1;++i<t;){var r=e[i];if(xt(r[0],this,n))return xt(r[1],this,n)}}))},Hn.conforms=function(e){return function(e){var t=Ro(e);return function(n){return di(n,e,t)}}(ui(e,1))},Hn.constant=il,Hn.countBy=vs,Hn.create=function(e,t){var n=Wn(e);return null==t?n:si(n,t)},Hn.curry=function e(t,n,i){var a=Zr(t,8,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Hn.curryRight=function e(t,n,i){var a=Zr(t,l,r,r,r,r,r,n=i?r:n);return a.placeholder=e.placeholder,a},Hn.debounce=Ds,Hn.defaults=Eo,Hn.defaultsDeep=Ao,Hn.defer=Rs,Hn.delay=Ms,Hn.difference=Ha,Hn.differenceBy=Wa,Hn.differenceWith=za,Hn.drop=function(e,t,n){var i=null==e?0:e.length;return i?ar(e,(t=n||t===r?1:vo(t))<0?0:t,i):[]},Hn.dropRight=function(e,t,n){var i=null==e?0:e.length;return i?ar(e,0,(t=i-(t=n||t===r?1:vo(t)))<0?0:t):[]},Hn.dropRightWhile=function(e,t){return e&&e.length?mr(e,ua(t,3),!0,!0):[]},Hn.dropWhile=function(e,t){return e&&e.length?mr(e,ua(t,3),!0):[]},Hn.fill=function(e,t,n,i){var a=null==e?0:e.length;return a?(n&&"number"!=typeof n&&Ta(e,t,n)&&(n=0,i=a),function(e,t,n,i){var a=e.length;for((n=vo(n))<0&&(n=-n>a?0:a+n),(i=i===r||i>a?a:vo(i))<0&&(i+=a),i=n>i?0:yo(i);n<i;)e[n++]=t;return e}(e,t,n,i)):[]},Hn.filter=function(e,t){return($s(e)?It:yi)(e,ua(t,3))},Hn.flatMap=function(e,t){return bi(xs(e,t),1)},Hn.flatMapDeep=function(e,t){return bi(xs(e,t),f)},Hn.flatMapDepth=function(e,t,n){return n=n===r?1:vo(n),bi(xs(e,t),n)},Hn.flatten=Xa,Hn.flattenDeep=function(e){return(null==e?0:e.length)?bi(e,f):[]},Hn.flattenDepth=function(e,t){return(null==e?0:e.length)?bi(e,t=t===r?1:vo(t)):[]},Hn.flip=function(e){return Zr(e,512)},Hn.flow=rl,Hn.flowRight=al,Hn.fromPairs=function(e){for(var t=-1,n=null==e?0:e.length,i={};++t<n;){var r=e[t];i[r[0]]=r[1]}return i},Hn.functions=function(e){return null==e?[]:Si(e,Ro(e))},Hn.functionsIn=function(e){return null==e?[]:Si(e,Mo(e))},Hn.groupBy=ks,Hn.initial=function(e){return(null==e?0:e.length)?ar(e,0,-1):[]},Hn.intersection=Ka,Hn.intersectionBy=Ya,Hn.intersectionWith=Qa,Hn.invert=Po,Hn.invertBy=Oo,Hn.invokeMap=ws,Hn.iteratee=ol,Hn.keyBy=Ss,Hn.keys=Ro,Hn.keysIn=Mo,Hn.map=xs,Hn.mapKeys=function(e,t){var n={};return t=ua(t,3),ki(e,(function(e,i,r){oi(n,t(e,i,r),e)})),n},Hn.mapValues=function(e,t){var n={};return t=ua(t,3),ki(e,(function(e,i,r){oi(n,i,t(e,i,r))})),n},Hn.matches=function(e){return Hi(ui(e,1))},Hn.matchesProperty=function(e,t){return Wi(e,ui(t,1))},Hn.memoize=Ns,Hn.merge=No,Hn.mergeWith=qo,Hn.method=ll,Hn.methodOf=cl,Hn.mixin=ul,Hn.negate=qs,Hn.nthArg=function(e){return e=vo(e),Ji((function(t){return Vi(t,e)}))},Hn.omit=Uo,Hn.omitBy=function(e,t){return Bo(e,qs(ua(t)))},Hn.once=function(e){return Is(2,e)},Hn.orderBy=function(e,t,n,i){return null==e?[]:($s(t)||(t=null==t?[]:[t]),$s(n=i?r:n)||(n=null==n?[]:[n]),$i(e,t,n))},Hn.over=hl,Hn.overArgs=Us,Hn.overEvery=fl,Hn.overSome=pl,Hn.partial=js,Hn.partialRight=Bs,Hn.partition=Cs,Hn.pick=jo,Hn.pickBy=Bo,Hn.property=ml,Hn.propertyOf=function(e){return function(t){return null==e?r:xi(e,t)}},Hn.pull=Za,Hn.pullAll=es,Hn.pullAllBy=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,ua(n,2)):e},Hn.pullAllWith=function(e,t,n){return e&&e.length&&t&&t.length?Gi(e,t,r,n):e},Hn.pullAt=ts,Hn.range=gl,Hn.rangeRight=vl,Hn.rearg=Fs,Hn.reject=function(e,t){return($s(e)?It:yi)(e,qs(ua(t,3)))},Hn.remove=function(e,t){var n=[];if(!e||!e.length)return n;var i=-1,r=[],a=e.length;for(t=ua(t,3);++i<a;){var s=e[i];t(s,i,e)&&(n.push(s),r.push(i))}return Ki(e,r),n},Hn.rest=function(e,t){if("function"!=typeof e)throw new Ie(a);return Ji(e,t=t===r?t:vo(t))},Hn.reverse=ns,Hn.sampleSize=function(e,t,n){return t=(n?Ta(e,t,n):t===r)?1:vo(t),($s(e)?ei:er)(e,t)},Hn.set=function(e,t,n){return null==e?e:tr(e,t,n)},Hn.setWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:tr(e,t,n,i)},Hn.shuffle=function(e){return($s(e)?ti:rr)(e)},Hn.slice=function(e,t,n){var i=null==e?0:e.length;return i?(n&&"number"!=typeof n&&Ta(e,t,n)?(t=0,n=i):(t=null==t?0:vo(t),n=n===r?i:vo(n)),ar(e,t,n)):[]},Hn.sortBy=Es,Hn.sortedUniq=function(e){return e&&e.length?cr(e):[]},Hn.sortedUniqBy=function(e,t){return e&&e.length?cr(e,ua(t,2)):[]},Hn.split=function(e,t,n){return n&&"number"!=typeof n&&Ta(e,t,n)&&(t=n=r),(n=n===r?g:n>>>0)?(e=To(e))&&("string"==typeof t||null!=t&&!oo(t))&&!(t=dr(t))&&on(e)?wr(pn(e),0,n):e.split(t,n):[]},Hn.spread=function(e,t){if("function"!=typeof e)throw new Ie(a);return t=null==t?0:_n(vo(t),0),Ji((function(n){var i=n[t],r=wr(n,0,t);return i&&Rt(r,i),xt(e,this,r)}))},Hn.tail=function(e){var t=null==e?0:e.length;return t?ar(e,1,t):[]},Hn.take=function(e,t,n){return e&&e.length?ar(e,0,(t=n||t===r?1:vo(t))<0?0:t):[]},Hn.takeRight=function(e,t,n){var i=null==e?0:e.length;return i?ar(e,(t=i-(t=n||t===r?1:vo(t)))<0?0:t,i):[]},Hn.takeRightWhile=function(e,t){return e&&e.length?mr(e,ua(t,3),!1,!0):[]},Hn.takeWhile=function(e,t){return e&&e.length?mr(e,ua(t,3)):[]},Hn.tap=function(e,t){return t(e),e},Hn.throttle=function(e,t,n){var i=!0,r=!0;if("function"!=typeof e)throw new Ie(a);return no(n)&&(i="leading"in n?!!n.leading:i,r="trailing"in n?!!n.trailing:r),Ds(e,t,{leading:i,maxWait:t,trailing:r})},Hn.thru=ms,Hn.toArray=mo,Hn.toPairs=Fo,Hn.toPairsIn=Ho,Hn.toPath=function(e){return $s(e)?Dt(e,ja):uo(e)?[e]:Pr(Ua(To(e)))},Hn.toPlainObject=_o,Hn.transform=function(e,t,n){var i=$s(e),r=i||Ys(e)||ho(e);if(t=ua(t,4),null==n){var a=e&&e.constructor;n=r?i?new a:[]:no(e)&&Zs(a)?Wn(Xe(e)):{}}return(r?Et:ki)(e,(function(e,i,r){return t(n,e,i,r)})),n},Hn.unary=function(e){return Ls(e,1)},Hn.union=is,Hn.unionBy=rs,Hn.unionWith=as,Hn.uniq=function(e){return e&&e.length?hr(e):[]},Hn.uniqBy=function(e,t){return e&&e.length?hr(e,ua(t,2)):[]},Hn.uniqWith=function(e,t){return t="function"==typeof t?t:r,e&&e.length?hr(e,r,t):[]},Hn.unset=function(e,t){return null==e||fr(e,t)},Hn.unzip=ss,Hn.unzipWith=os,Hn.update=function(e,t,n){return null==e?e:pr(e,t,_r(n))},Hn.updateWith=function(e,t,n,i){return i="function"==typeof i?i:r,null==e?e:pr(e,t,_r(n),i)},Hn.values=Wo,Hn.valuesIn=function(e){return null==e?[]:Jt(e,Mo(e))},Hn.without=ls,Hn.words=el,Hn.wrap=function(e,t){return js(_r(t),e)},Hn.xor=cs,Hn.xorBy=us,Hn.xorWith=ds,Hn.zip=hs,Hn.zipObject=function(e,t){return yr(e||[],t||[],ii)},Hn.zipObjectDeep=function(e,t){return yr(e||[],t||[],tr)},Hn.zipWith=fs,Hn.entries=Fo,Hn.entriesIn=Ho,Hn.extend=wo,Hn.extendWith=So,ul(Hn,Hn),Hn.add=_l,Hn.attempt=tl,Hn.camelCase=zo,Hn.capitalize=Vo,Hn.ceil=Tl,Hn.clamp=function(e,t,n){return n===r&&(n=t,t=r),n!==r&&(n=(n=bo(n))==n?n:0),t!==r&&(t=(t=bo(t))==t?t:0),ci(bo(e),t,n)},Hn.clone=function(e){return ui(e,4)},Hn.cloneDeep=function(e){return ui(e,5)},Hn.cloneDeepWith=function(e,t){return ui(e,5,t="function"==typeof t?t:r)},Hn.cloneWith=function(e,t){return ui(e,4,t="function"==typeof t?t:r)},Hn.conformsTo=function(e,t){return null==t||di(e,t,Ro(t))},Hn.deburr=$o,Hn.defaultTo=function(e,t){return null==e||e!=e?t:e},Hn.divide=kl,Hn.endsWith=function(e,t,n){e=To(e),t=dr(t);var i=e.length,a=n=n===r?i:ci(vo(n),0,i);return(n-=t.length)>=0&&e.slice(n,a)==t},Hn.eq=Hs,Hn.escape=function(e){return(e=To(e))&&Q.test(e)?e.replace(K,an):e},Hn.escapeRegExp=function(e){return(e=To(e))&&ae.test(e)?e.replace(re,"\\$&"):e},Hn.every=function(e,t,n){var i=$s(e)?Lt:gi;return n&&Ta(e,t,n)&&(t=r),i(e,ua(t,3))},Hn.find=ys,Hn.findIndex=Va,Hn.findKey=function(e,t){return jt(e,ua(t,3),ki)},Hn.findLast=bs,Hn.findLastIndex=$a,Hn.findLastKey=function(e,t){return jt(e,ua(t,3),wi)},Hn.floor=wl,Hn.forEach=_s,Hn.forEachRight=Ts,Hn.forIn=function(e,t){return null==e?e:_i(e,ua(t,3),Mo)},Hn.forInRight=function(e,t){return null==e?e:Ti(e,ua(t,3),Mo)},Hn.forOwn=function(e,t){return e&&ki(e,ua(t,3))},Hn.forOwnRight=function(e,t){return e&&wi(e,ua(t,3))},Hn.get=Lo,Hn.gt=Ws,Hn.gte=zs,Hn.has=function(e,t){return null!=e&&va(e,t,Li)},Hn.hasIn=Io,Hn.head=Ga,Hn.identity=sl,Hn.includes=function(e,t,n,i){e=Gs(e)?e:Wo(e),n=n&&!i?vo(n):0;var r=e.length;return n<0&&(n=_n(r+n,0)),co(e)?n<=r&&e.indexOf(t,n)>-1:!!r&&Ft(e,t,n)>-1},Hn.indexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var r=null==n?0:vo(n);return r<0&&(r=_n(i+r,0)),Ft(e,t,r)},Hn.inRange=function(e,t,n){return t=go(t),n===r?(n=t,t=0):n=go(n),function(e,t,n){return e>=Tn(t,n)&&e<_n(t,n)}(e=bo(e),t,n)},Hn.invoke=Do,Hn.isArguments=Vs,Hn.isArray=$s,Hn.isArrayBuffer=Xs,Hn.isArrayLike=Gs,Hn.isArrayLikeObject=Ks,Hn.isBoolean=function(e){return!0===e||!1===e||io(e)&&Ei(e)==_},Hn.isBuffer=Ys,Hn.isDate=Qs,Hn.isElement=function(e){return io(e)&&1===e.nodeType&&!so(e)},Hn.isEmpty=function(e){if(null==e)return!0;if(Gs(e)&&($s(e)||"string"==typeof e||"function"==typeof e.splice||Ys(e)||ho(e)||Vs(e)))return!e.length;var t=ga(e);if(t==x||t==I)return!e.size;if(xa(e))return!Ui(e).length;for(var n in e)if(Ne.call(e,n))return!1;return!0},Hn.isEqual=function(e,t){return Ri(e,t)},Hn.isEqualWith=function(e,t,n){var i=(n="function"==typeof n?n:r)?n(e,t):r;return i===r?Ri(e,t,r,n):!!i},Hn.isError=Js,Hn.isFinite=function(e){return"number"==typeof e&&$t(e)},Hn.isFunction=Zs,Hn.isInteger=eo,Hn.isLength=to,Hn.isMap=ro,Hn.isMatch=function(e,t){return e===t||Mi(e,t,ha(t))},Hn.isMatchWith=function(e,t,n){return n="function"==typeof n?n:r,Mi(e,t,ha(t),n)},Hn.isNaN=function(e){return ao(e)&&e!=+e},Hn.isNative=function(e){if(Sa(e))throw new Se("Unsupported core-js use. Try https://npms.io/search?q=ponyfill.");return Ni(e)},Hn.isNil=function(e){return null==e},Hn.isNull=function(e){return null===e},Hn.isNumber=ao,Hn.isObject=no,Hn.isObjectLike=io,Hn.isPlainObject=so,Hn.isRegExp=oo,Hn.isSafeInteger=function(e){return eo(e)&&e>=-9007199254740991&&e<=p},Hn.isSet=lo,Hn.isString=co,Hn.isSymbol=uo,Hn.isTypedArray=ho,Hn.isUndefined=function(e){return e===r},Hn.isWeakMap=function(e){return io(e)&&ga(e)==D},Hn.isWeakSet=function(e){return io(e)&&"[object WeakSet]"==Ei(e)},Hn.join=function(e,t){return null==e?"":yn.call(e,t)},Hn.kebabCase=Xo,Hn.last=Ja,Hn.lastIndexOf=function(e,t,n){var i=null==e?0:e.length;if(!i)return-1;var a=i;return n!==r&&(a=(a=vo(n))<0?_n(i+a,0):Tn(a,i-1)),t==t?function(e,t,n){for(var i=n+1;i--;)if(e[i]===t)return i;return i}(e,t,a):Bt(e,Wt,a,!0)},Hn.lowerCase=Go,Hn.lowerFirst=Ko,Hn.lt=fo,Hn.lte=po,Hn.max=function(e){return e&&e.length?vi(e,sl,Ai):r},Hn.maxBy=function(e,t){return e&&e.length?vi(e,ua(t,2),Ai):r},Hn.mean=function(e){return zt(e,sl)},Hn.meanBy=function(e,t){return zt(e,ua(t,2))},Hn.min=function(e){return e&&e.length?vi(e,sl,Bi):r},Hn.minBy=function(e,t){return e&&e.length?vi(e,ua(t,2),Bi):r},Hn.stubArray=yl,Hn.stubFalse=bl,Hn.stubObject=function(){return{}},Hn.stubString=function(){return""},Hn.stubTrue=function(){return!0},Hn.multiply=xl,Hn.nth=function(e,t){return e&&e.length?Vi(e,vo(t)):r},Hn.noConflict=function(){return ft._===this&&(ft._=Fe),this},Hn.noop=dl,Hn.now=As,Hn.pad=function(e,t,n){e=To(e);var i=(t=vo(t))?fn(e):0;if(!t||i>=t)return e;var r=(t-i)/2;return $r(vt(r),n)+e+$r(mt(r),n)},Hn.padEnd=function(e,t,n){e=To(e);var i=(t=vo(t))?fn(e):0;return t&&i<t?e+$r(t-i,n):e},Hn.padStart=function(e,t,n){e=To(e);var i=(t=vo(t))?fn(e):0;return t&&i<t?$r(t-i,n)+e:e},Hn.parseInt=function(e,t,n){return n||null==t?t=0:t&&(t=+t),wn(To(e).replace(se,""),t||0)},Hn.random=function(e,t,n){if(n&&"boolean"!=typeof n&&Ta(e,t,n)&&(t=n=r),n===r&&("boolean"==typeof t?(n=t,t=r):"boolean"==typeof e&&(n=e,e=r)),e===r&&t===r?(e=0,t=1):(e=go(e),t===r?(t=e,e=0):t=go(t)),e>t){var i=e;e=t,t=i}if(n||e%1||t%1){var a=Sn();return Tn(e+a*(t-e+ct("1e-"+((a+"").length-1))),t)}return Yi(e,t)},Hn.reduce=function(e,t,n){var i=$s(e)?Mt:Xt,r=arguments.length<3;return i(e,ua(t,4),n,r,pi)},Hn.reduceRight=function(e,t,n){var i=$s(e)?Nt:Xt,r=arguments.length<3;return i(e,ua(t,4),n,r,mi)},Hn.repeat=function(e,t,n){return t=(n?Ta(e,t,n):t===r)?1:vo(t),Qi(To(e),t)},Hn.replace=function(){var e=arguments,t=To(e[0]);return e.length<3?t:t.replace(e[1],e[2])},Hn.result=function(e,t,n){var i=-1,a=(t=Tr(t,e)).length;for(a||(a=1,e=r);++i<a;){var s=null==e?r:e[ja(t[i])];s===r&&(i=a,s=n),e=Zs(s)?s.call(e):s}return e},Hn.round=Cl,Hn.runInContext=e,Hn.sample=function(e){return($s(e)?Zn:Zi)(e)},Hn.size=function(e){if(null==e)return 0;if(Gs(e))return co(e)?fn(e):e.length;var t=ga(e);return t==x||t==I?e.size:Ui(e).length},Hn.snakeCase=Yo,Hn.some=function(e,t,n){var i=$s(e)?qt:sr;return n&&Ta(e,t,n)&&(t=r),i(e,ua(t,3))},Hn.sortedIndex=function(e,t){return or(e,t)},Hn.sortedIndexBy=function(e,t,n){return lr(e,t,ua(n,2))},Hn.sortedIndexOf=function(e,t){var n=null==e?0:e.length;if(n){var i=or(e,t);if(i<n&&Hs(e[i],t))return i}return-1},Hn.sortedLastIndex=function(e,t){return or(e,t,!0)},Hn.sortedLastIndexBy=function(e,t,n){return lr(e,t,ua(n,2),!0)},Hn.sortedLastIndexOf=function(e,t){if(null==e?0:e.length){var n=or(e,t,!0)-1;if(Hs(e[n],t))return n}return-1},Hn.startCase=Qo,Hn.startsWith=function(e,t,n){return e=To(e),n=null==n?0:ci(vo(n),0,e.length),t=dr(t),e.slice(n,n+t.length)==t},Hn.subtract=El,Hn.sum=function(e){return e&&e.length?Gt(e,sl):0},Hn.sumBy=function(e,t){return e&&e.length?Gt(e,ua(t,2)):0},Hn.template=function(e,t,n){var i=Hn.templateSettings;n&&Ta(e,t,n)&&(t=r),e=To(e),t=So({},t,i,ea);var a,s,o=So({},t.imports,i.imports,ea),l=Ro(o),c=Jt(o,l),u=0,d=t.interpolate||ke,h="__p += '",f=Ae((t.escape||
vendor: 2,532 bytes, line 2
2ke).source+"|"+d.source+"|"+(d===ee?pe:ke).source+"|"+(t.evaluate||ke).source+"|$","g"),p="//# sourceURL="+(Ne.call(t,"sourceURL")?(t.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++at+"]")+"\n";e.replace(f,(function(t,n,i,r,o,l){return i||(i=r),h+=e.slice(u,l).replace(we,sn),n&&(a=!0,h+="' +\n__e("+n+") +\n'"),o&&(s=!0,h+="';\n"+o+";\n__p += '"),i&&(h+="' +\n((__t = ("+i+")) == null ? '' : __t) +\n'"),u=l+t.length,t})),h+="';\n";var m=Ne.call(t,"variable")&&t.variable;if(m){if(he.test(m))throw new Se("Invalid `variable` option passed into `_.template`")}else h="with (obj) {\n"+h+"\n}\n";h=(s?h.replace(V,""):h).replace($,"$1").replace(X,"$1;"),h="function("+(m||"obj")+") {\n"+(m?"":"obj || (obj = {});\n")+"var __t, __p = ''"+(a?", __e = _.escape":"")+(s?", __j = Array.prototype.join;\nfunction print() { __p += __j.call(arguments, '') }\n":";\n")+h+"return __p\n}";var g=tl((function(){return xe(l,p+"return "+h).apply(r,c)}));if(g.source=h,Js(g))throw g;return g},Hn.times=function(e,t){if((e=vo(e))<1||e>p)return[];var n=g,i=Tn(e,g);t=ua(t),e-=g;for(var r=Kt(i,t);++n<e;)t(n);return r},Hn.toFinite=go,Hn.toInteger=vo,Hn.toLength=yo,Hn.toLower=function(e){return To(e).toLowerCase()},Hn.toNumber=bo,Hn.toSafeInteger=function(e){return e?ci(vo(e),-9007199254740991,p):0===e?e:0},Hn.toString=To,Hn.toUpper=function(e){return To(e).toUpperCase()},Hn.trim=function(e,t,n){if((e=To(e))&&(n||t===r))return Yt(e);if(!e||!(t=dr(t)))return e;var i=pn(e),a=pn(t);return wr(i,en(i,a),tn(i,a)+1).join("")},Hn.trimEnd=function(e,t,n){if((e=To(e))&&(n||t===r))return e.slice(0,mn(e)+1);if(!e||!(t=dr(t)))return e;var i=pn(e);return wr(i,0,tn(i,pn(t))+1).join("")},Hn.trimStart=function(e,t,n){if((e=To(e))&&(n||t===r))return e.replace(se,"");if(!e||!(t=dr(t)))return e;var i=pn(e);return wr(i,en(i,pn(t))).join("")},Hn.truncate=function(e,t){var n=30,i="...";if(no(t)){var a="separator"in t?t.separator:a;n="length"in t?vo(t.length):n,i="omission"in t?dr(t.omission):i}var s=(e=To(e)).length;if(on(e)){var o=pn(e);s=o.length}if(n>=s)return e;var l=n-fn(i);if(l<1)return i;var c=o?wr(o,0,l).join(""):e.slice(0,l);if(a===r)return c+i;if(o&&(l+=c.length-l),oo(a)){if(e.slice(l).search(a)){var u,d=c;for(a.global||(a=Ae(a.source,To(me.exec(a))+"g")),a.lastIndex=0;u=a.exec(d);)var h=u.index;c=c.slice(0,h===r?l:h)}}else if(e.indexOf(dr(a),l)!=l){var f=c.lastIndexOf(a);f>-1&&(c=c.slice(0,f))}return c+i},Hn.unescape=function(e){return(e=To(e))&&Y.test(e)?e.replace(G,gn):e},Hn.uniqueId=function(e){var t=++qe;return To(e)+t}
2,Hn.upperCase=Jo,Hn.upperFirst=Zo,Hn.each=_s,Hn.eachRight=Ts,Hn.first=Ga,ul(Hn,(Sl={},ki(Hn,(function(e,t){Ne.call(Hn.prototype,t)||(Sl[t]=e)})),Sl),{chain:!1}),Hn.VERSION="4.17.21",Et(["bind","bindKey","curry","curryRight","partial","partialRight"],(function(e){Hn[e].placeholder=Hn})),Et(["drop","take"],(function(e,t){$n.prototype[e]=function(n){n=n===r?1:_n(vo(n),0);var i=this.__filtered__&&!t?new $n(this):this.clone();return i.__filtered__?i.__takeCount__=Tn(n,i.__takeCount__):i.__views__.push({size:Tn(n,g),type:e+(i.__dir__<0?"Right":"")}),i},$n.prototype[e+"Right"]=function(t){return this.reverse()[e](t).reverse()}})),Et(["filter","map","takeWhile"],(function(e,t){var n=t+1,i=1==n||3==n;$n.prototype[e]=function(e){var t=this.clone();return t.__iteratees__.push({iteratee:ua(e,3),type:n}),t.__filtered__=t.__filtered__||i,t}})),Et(["head","last"],(function(e,t){var n="take"+(t?"Right":"");$n.prototype[e]=function(){return this[n](1).value()[0]}})),Et(["initial","tail"],(function(e,t){var n="drop"+(t?"":"Right");$n.prototype[e]=function(){return this.__filtered__?new $n(this):this[n](1)}})),$n.prototype.compact=function(){return this.filter(sl)},$n.prototype.find=function(e){return this.filter(e).head()},$n.prototype.findLast=function(e){return this.reverse().find(e)},$n.prototype.invokeMap=Ji((function(e,t){return"function"==typeof e?new $n(this):this.map((function(n){return Oi(n,e,t)}))})),$n.prototype.reject=function(e){return this.filter(qs(ua(e)))},$n.prototype.slice=function(e,t){e=vo(e);var n=this;return n.__filtered__&&(e>0||t<0)?new $n(n):(e<0?n=n.takeRight(-e):e&&(n=n.drop(e)),t!==r&&(n=(t=vo(t))<0?n.dropRight(-t):n.take(t-e)),n)},$n.prototype.takeRightWhile=function(e){return this.reverse().takeWhile(e).reverse()},$n.prototype.toArray=function(){return this.take(g)},ki($n.prototype,(function(e,t){var n=/^(?:filter|find|map|reject)|While$/.test(t),i=/^(?:head|last)$/.test(t),a=Hn[i?"take"+("last"==t?"Right":""):t],s=i||/^find/.test(t);a&&(Hn.prototype[t]=function(){var t=this.__wrapped__,o=i?[1]:arguments,l=t instanceof $n,c=o[0],u=l||$s(t),d=function(e){var t=a.apply(Hn,Rt([e],o));return i&&h?t[0]:t};u&&n&&"function"==typeof c&&1!=c.length&&(l=u=!1);var h=this.__chain__,f=!!this.__actions__.length,p=s&&!h,m=l&&!f;if(!s&&u){t=m?t:new $n(this);var g=e.apply(t,o);return g.__actions__.push({func:ms,args:[d],thisArg:r}),new Vn(g,h)}return p&&m?e.apply(this,o):(g=this.thru(d),p?i?g.value()[0]:g.value():g)})})),Et(["pop","push","shift","sort","splice","unshift"],(function(e){var t=Pe[e],n=/^(?:push|sort|unshift)$/.test(e)?"tap":"thru",i=/^(?:pop|shift)$/.test(e);Hn.prototype[e]=function(){var e=arguments;if(i&&!this.__chain__){var r=this.value();return t.apply($s(r)?r:[],e)}return this[n]((function(n){return t.apply($s(n)?n:[],e)}))}})),ki($n.prototype,(function(e,t){var n=Hn[t];if(n){var i=n.name+"";Ne.call(Dn,i)||(Dn[i]=[]),Dn[i].push({name:t,func:n})}})),Dn[Hr(r,2).name]=[{name:"wrapper",func:r}],$n.prototype.clone=function(){var e=new $n(this.__wrapped__);return e.__actions__=Pr(this.__actions__),e.__dir__=this.__dir__,e.__filtered__=this.__filtered__,e.__iteratees__=Pr(this.__iteratees__),e.__takeCount__=this.__takeCount__,e.__views__=Pr(this.__views__),e},$n.prototype.reverse=function(){if(this.__filtered__){var e=new $n(this);e.__dir__=-1,e.__filtered__=!0}else(e=this.clone()).__dir__*=-1;return e},$n.prototype.value=function(){var e=this.__wrapped__.value(),t=this.__dir__,n=$s(e),i=t<0,r=n?e.length:0,a=function(e,t,n){var i=-1,r=n.length;for(;++i<r;){var a=n[i],s=a.size;switch(a.type){case"drop":e+=s;break;case"dropRight":t-=s;break;case"take":t=Tn(t,e+s);break;case"takeRight":e=_n(e,t-s)}}return{start:e,end:t}}(0,r,this.__views__),s=a.start,o=a.end,l=o-s,c=i?o:s-1,u=this.__iteratees__,d=u.length,h=0,f=Tn(l,this.__takeCount__);if(!n||!i&&r==l&&f==l)return gr(e,this.__actions__);var p=[];e:for(;l--&&h<f;){for(var m=-1,g=e[c+=t];++m<d;){var v=u[m],y=v.iteratee,b=v.type,_=y(g);if(2==b)g=_;else if(!_){if(1==b)continue e;break e}}p[h++]=g}return p},Hn.prototype.at=gs,Hn.prototype.chain=function(){return ps(this)},Hn.prototype.commit=function(){return new Vn(this.value(),this.__chain__)},Hn.prototype.next=function(){this.__values__===r&&(this.__values__=mo(this.value()));var e=this.__index__>=this.__values__.length;return{done:e,value:e?r:this.__values__[this.__index__++]}},Hn.prototype.plant=function(e){for(var t,n=this;n instanceof zn;){var i=Fa(n);i.__index__=0,i.__values__=r,t?a.__wrapped__=i:t=i;var a=i;n=n.__wrapped__}return a.__wrapped__=e,t},Hn.prototype.reverse=function(){var e=this.__wrapped__;if(e instanceof $n){var t=e;return this.__actions__.length&&(t=new $n(this)),(t=t.reverse()).__actions__.push({func:ms,args:[ns],thisArg:r}),new Vn(t,this.__chain__)}return this.thru(ns)},Hn.prototype.toJSON=Hn.prototype.valueOf=Hn.prototype.value=function(){return gr(this.__wrapped__,this.__actions__)},Hn.prototype.first=Hn.prototype.head,et&&(Hn.prototype[et]=function(){return this}),Hn}();ft._=vn,(i=function(){return vn}.call(t,n,t,e))===r||(e.exports=i)}.call(this)},3282:()=>{},641:()=>{},5123:()=>{},5553:()=>{},8589:()=>{},4221:(e,t,n)=>{var i=n(6894).getUint64;e.exports=function(e){var t=new DataView(e.buffer,e.byteOffset,e.byteLength),n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),references:[],referenceId:t.getUint32(4),timescale:t.getUint32(8)},r=12;0===n.version?(n.earliestPresentationTime=t.getUint32(r),n.firstOffset=t.getUint32(r+4),r+=8):(n.earliestPresentationTime=i(e.subarray(r)),n.firstOffset=i(e.subarray(r+8)),r+=16),r+=2;var a=t.getUint16(r);for(r+=2;a>0;r+=12,a--)n.references.push({referenceType:(128&e[r])>>>7,referencedSize:2147483647&t.getUint32(r),subsegmentDuration:t.getUint32(r+4),startsWithSap:!!(128&e[r+8]),sapType:(112&e[r+8])>>>4,sapDeltaTime:268435455&t.getUint32(r+8)});return n}},1489:e=>{var t,n,i,r,a,s,o,l=9e4;t=function(e){return e*l},n=function(e,t){return e*t},i=function(e){return e/l},r=function(e,t){return e/t},a=function(e,n){return t(r(e,n))},s=function(e,t){return n(i(e),t)},o=function(e,t,n){return i(n?e:e-t)},e.exports={ONE_SECOND_IN_TS:l,secondsToVideoTs:t,secondsToAudioTs:n,videoTsToSeconds:i,audioTsToSeconds:r,audioTsToVideoTs:a,videoTsToAudioTs:s,metadataTsToSeconds:o}},6894:e=>{var t=Math.pow(2,32);e.exports={getUint64:function(e){var n,i=new DataView(e.buffer,e.byteOffset,e.byteLength);return i.getBigUint64?(n=i.getBigUint64(0))<Number.MAX_SAFE_INTEGER?
2Number(n):n:i.getUint32(0)*t+i.getUint32(4)},MAX_UINT32:t}},4155:e=>{var t,n,i=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function s(e){if(t===setTimeout)return setTimeout(e,0);if((t===r||!t)&&setTimeout)return t=setTimeout,setTimeout(e,0);try{return t(e,0)}catch(n){try{return t.call(null,e,0)}catch(n){return t.call(this,e,0)}}}!function(){try{t="function"==typeof setTimeout?setTimeout:r}catch(e){t=r}try{n="function"==typeof clearTimeout?clearTimeout:a}catch(e){n=a}}();var o,l=[],c=!1,u=-1;function d(){c&&o&&(c=!1,o.length?l=o.concat(l):u=-1,l.length&&h())}function h(){if(!c){var e=s(d);c=!0;for(var t=l.length;t;){for(o=l,l=[];++u<t;)o&&o[u].run();u=-1,t=l.length}o=null,c=!1,function(e){if(n===clearTimeout)return clearTimeout(e);if((n===a||!n)&&clearTimeout)return n=clearTimeout,clearTimeout(e);try{n(e)}catch(t){try{return n.call(null,e)}catch(t){return n.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function p(){}i.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];l.push(new f(e,t)),1!==l.length||c||s(h)},f.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=p,i.addListener=p,i.once=p,i.off=p,i.removeListener=p,i.removeAllListeners=p,i.emit=p,i.prependListener=p,i.prependOnceListener=p,i.listeners=function(e){return[]},i.binding=function(e){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(e){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},5974:e=>{e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},9154:(e,t,n)=>{var i,r,a;!function(s){"use strict";r=[n(9755)],i=function(e){var t=window.Slick||{};(t=function(){var t=0;function n(n,i){var r,a=this;a.defaults={accessibility:!0,adaptiveHeight:!1,appendArrows:e(n),appendDots:e(n),arrows:!0,asNavFor:null,prevArrow:'<button class="slick-prev" aria-label="Previous" type="button">Previous</button>',nextArrow:'<button class="slick-next" aria-label="Next" type="button">Next</button>',autoplay:!1,autoplaySpeed:3e3,centerMode:!1,centerPadding:"50px",cssEase:"ease",customPaging:function(t,n){return e('<button type="button" />').text(n+1)},dots:!1,dotsClass:"slick-dots",draggable:!0,easing:"linear",edgeFriction:.35,fade:!1,focusOnSelect:!1,focusOnChange:!1,infinite:!0,initialSlide:0,lazyLoad:"ondemand",mobileFirst:!1,pauseOnHover:!0,pauseOnFocus:!0,pauseOnDotsHover:!1,respondTo:"window",responsive:null,rows:1,rtl:!1,slide:"",slidesPerRow:1,slidesToShow:1,slidesToScroll:1,speed:500,swipe:!0,swipeToSlide:!1,touchMove:!0,touchThreshold:5,useCSS:!0,useTransform:!0,variableWidth:!1,vertical:!1,verticalSwiping:!1,waitForAnimate:!0,zIndex:1e3},a.initials={animating:!1,dragging:!1,autoPlayTimer:null,currentDirection:0,currentLeft:null,currentSlide:0,direction:1,$dots:null,listWidth:null,listHeight:null,loadIndex:0,$nextArrow:null,$prevArrow:null,scrolling:!1,slideCount:null,slideWidth:null,$slideTrack:null,$slides:null,sliding:!1,slideOffset:0,swipeLeft:null,swiping:!1,$list:null,touchObject:{},transformsEnabled:!1,unslicked:!1},e.extend(a,a.initials),a.activeBreakpoint=null,a.animType=null,a.animProp=null,a.breakpoints=[],a.breakpointSettings=[],a.cssTransitions=!1,a.focussed=!1,a.interrupted=!1,a.hidden="hidden",a.paused=!0,a.positionProp=null,a.respondTo=null,a.rowCount=1,a.shouldClick=!0,a.$slider=e(n),a.$slidesCache=null,a.transformType=null,a.transitionType=null,a.visibilityChange="visibilitychange",a.windowWidth=0,a.windowTimer=null,r=e(n).data("slick")||{},a.options=e.extend({},a.defaults,i,r),a.currentSlide=a.options.initialSlide,a.originalSettings=a.options,void 0!==document.mozHidden?(a.hidden="mozHidden",a.visibilityChange="mozvisibilitychange"):void 0!==document.webkitHidden&&(a.hidden="webkitHidden",a.visibilityChange="webkitvisibilitychange"),a.autoPlay=e.proxy(a.autoPlay,a),a.autoPlayClear=e.proxy(a.autoPlayClear,a),a.autoPlayIterator=e.proxy(a.autoPlayIterator,a),a.changeSlide=e.proxy(a.changeSlide,a),a.clickHandler=e.proxy(a.clickHandler,a),a.selectHandler=e.proxy(a.selectHandler,a),a.setPosition=e.proxy(a.setPosition,a),a.swipeHandler=e.proxy(a.swipeHandler,a),a.dragHandler=e.proxy(a.dragHandler,a),a.keyHandler=e.proxy(a.keyHandler,a),a.instanceUid=t++,a.htmlExpr=/^(?:\s*(<[\w\W]+>)[^>]*)$/,a.registerBreakpoints(),a.init(!0)}return n}()).prototype.activateADA=function(){this.$slideTrack.find(".slick-active").attr({"aria-hidden":"false"}).find("a, input, button, select").attr({tabindex:"0"})},t.prototype.addSlide=t.prototype.slickAdd=function(t,n,i){var r=this;if("boolean"==typeof n)i=n,n=null;else if(n<0||n>=r.slideCount)return!1;r.unload(),"number"==typeof n?0===n&&0===r.$slides.length?e(t).appendTo(r.$slideTrack):i?e(t).insertBefore(r.$slides.eq(n)):e(t).insertAfter(r.$slides.eq(n)):!0===i?e(t).prependTo(r.$slideTrack):e(t).appendTo(r.$slideTrack),r.$slides=r.$slideTrack.children(this.options.slide),r.$slideTrack.children(this.options.slide).detach(),r.$slideTrack.append(r.$slides),r.$slides.each((function(t,n){e(n).attr("data-slick-index",t)})),r.$slidesCache=r.$slides,r.reinit()},t.prototype.animateHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.animate({height:t},e.options.speed)}},t.prototype.animateSlide=function(t,n){var i={},r=this;r.animateHeight(),!0===r.options.rtl&&!1===r.options.vertical&&(t=-t),!1===r.transformsEnabled?!1===r.options.vertical?r.$slideTrack.animate({left:t},r.options.speed,r.options.easing,n):r.$slideTrack.animate({top:t},r.options.speed,r.options.easing,n):!1===r.cssTransitions?(!0===r.options.rtl&&(r.currentLeft=-r.currentLeft),e({animStart:r.currentLeft}).animate({animStart:t},{duration:r.options.speed,easing:r.options.easing,step:function(e){e=Math.ceil(e),!1===r.options.vertical?(i[r.animType]="translate("+e+"px, 0px)",r.$slideTrack.css(i)):(i[r.animType]="translate(0px,"+e+"px)",r.$slideTrack.css(i))},complete:function(){n&&n.call()}})):(r.applyTransition(),t=Math.ceil(t),!1===r.options.vertical?i[r.animType]="translate3d("+t+"px, 0px, 0px)":i[r.animType]="translate3d(0px,"+t+"px, 0px)",r.$slideTrack.css(i),n&&setTimeout((function(){r.disableTransition(),n.call()}),r.options.speed))},t.prototype.getNavTarget=function(){var t=this,n=t.options.asNavFor;return n&&null!==n&&(n=e(n).not(t.$slider)),n},t.prototype.asNavFor=function(t){var n=this.getNavTarget();null!==n&&"object"==typeof n&&n.each((function(){var n=e(this).slick("getSlick");n.unslicked||n.slideHandler(t,!0)}))},t.prototype.applyTransition=function(e){var t=this,n={};!1===t.options.fade?n[t.transitionType]=t.transformType+" "+t.options.speed+"ms "+t.options.cssEase:n[t.transitionType]="opacity "+t.options.speed+"ms "+t.options.cssEase,!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.autoPlay=function(){var e=this;e.autoPlayClear(),e.slideCount>e.options.slidesToShow&&(e.autoPlayTimer=setInterval(e.autoPlayIterator,e.options.autoplaySpeed))},t.prototype.autoPlayClear=function(){var e=this;e.autoPlayTimer&&clearInterval(e.autoPlayTimer)},t.prototype.autoPlayIterator=function(){var e=this,t=e.currentSlide+e.options.slidesToScroll;e.paused||e.interrupted||e.focussed||(!1===e.options.infinite&&(1===e.direction&&e.currentSlide+1===e.slideCount-1?e.direction=0:0===e.direction&&(t=e.currentSlide-e.options.slidesToScroll,e.currentSlide-1==0&&(e.direction=1))),e.slideHandler(t))},t.prototype.buildArrows=function(){var t=this;!0===t.options.arrows&&(t.$prevArrow=e(t.options.prevArrow).addClass("slick-arrow"),t.$nextArrow=e(t.options.nextArrow).addClass("slick-arrow"),t.slideCount>t.options.slidesToShow?(t.$prevArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.$nextArrow.removeClass("slick-hidden").removeAttr("aria-hidden tabindex"),t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.prependTo(t.options.appendArrows),t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.appendTo(t.options.appendArrows),!0!==t.options.infinite&&t.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true")):t.$prevArrow.add(t.$nextArrow).addClass("slick-hidden").attr({"aria-disabled":"true",tabindex:"-1"}))},t.prototype.buildDots=function(){var t,n,i=this;if(!0===i.options.dots&&i.slideCount>i.options.slidesToShow){for(i.$slider.addClass("slick-dotted"),n=e("<ul />").addClass(i.options.dotsClass),t=0;t<=i.getDotCount();t+=1)n.append(e("<li />").append(i.options.customPaging.call(this,i,t)));i.$dots=n.appendTo(i.options.appendDots),i.$dots.find("li").first().addClass("slick-active")}},t.prototype.buildOut=function(){var t=this;t.$slides=t.$slider.children(t.options.slide+":not(.slick-cloned)").addClass("slick-slide"),t.slideCount=t.$slides.length,t.$slides.each((function(t,n){e(n).attr("data-slick-index",t).data("originalStyling",e(n).attr("style")||"")})),t.$slider.addClass("slick-slider"),t.$slideTrack=0===t.slideCount?e('<div class="slick-track"/>').appendTo(t.$slider):t.$slides.wrapAll('<div class="slick-track"/>').parent(),t.$list=t.$slideTrack.wrap('<div class="slick-list"/>').parent(),t.$slideTrack.css("opacity",0),!0!==t.options.centerMode&&!0!==t.options.swipeToSlide||(t.options.slidesToScroll=1),e("img[data-lazy]",t.$slider).not("[src]").addClass("slick-loading"),t.setupInfinite(),t.buildArrows(),t.buildDots(),t.updateDots(),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),!0===t.options.draggable&&t.$list.addClass("draggable")},t.prototype.buildRows=function(){var e,t,n,i,r,a,s,o=this;if(i=document.createDocumentFragment(),a=o.$slider.children(),o.options.rows>0){for(s=o.options.slidesPerRow*o.options.rows,r=Math.ceil(a.length/s),e=0;e<r;e++){var l=document.createElement("div");for(t=0;t<o.options.rows;t++){var c=document.createElement("div");for(n=0;n<o.options.slidesPerRow;n++){var u=e*s+(t*o.options.slidesPerRow+n);a.get(u)&&c.appendChild(a.get(u))}l.appendChild(c)}i.appendChild(l)}o.$slider.empty().append(i),o.$slider.children().children().children().css({width:100/o.options.slidesPerRow+"%",display:"inline-block"})}},t.prototype.checkResponsive=function(t,n){var i,r,a,s=this,o=!1,l=s.$slider.width(),c=window.innerWidth||e(window).width();if("window"===s.respondTo?a=c:"slider"===s.respondTo?a=l:"min"===s.respondTo&&(a=Math.min(c,l)),s.options.responsive&&s.options.responsive.length&&null!==s.options.responsive){for(i in r=null,s.breakpoints)s.breakpoints.hasOwnProperty(i)&&(!1===s.originalSettings.mobileFirst?a<s.breakpoints[i]&&(r=s.breakpoints[i]):a>s.breakpoints[i]&&(r=s.breakpoints[i]));null!==r?null!==s.activeBreakpoint?(r!==s.activeBreakpoint||n)&&(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[r]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),o=r):(s.activeBreakpoint=r,"unslick"===s.breakpointSettings[r]?s.unslick(r):(s.options=e.extend({},s.originalSettings,s.breakpointSettings[r]),!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t)),o=r):null!==s.activeBreakpoint&&(s.activeBreakpoint=null,s.options=s.originalSettings,!0===t&&(s.currentSlide=s.options.initialSlide),s.refresh(t),o=r),t||!1===o||s.$slider.trigger("breakpoint",[s,o])}},t.prototype.changeSlide=function(t,n){var i,r,a=this,s=e(t.currentTarget);switch(s.is("a")&&t.preventDefault(),s.is("li")||(s=s.closest("li")),i=a.slideCount%a.options.slidesToScroll!=0?0:(a.slideCount-a.currentSlide)%a.options.slidesToScroll,t.data.message){case"previous":r=0===i?a.options.slidesToScroll:a.options.slidesToShow-i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide-r,!1,n);break;case"next":r=0===i?a.options.slidesToScroll:i,a.slideCount>a.options.slidesToShow&&a.slideHandler(a.currentSlide+r,!1,n);break;case"index":var o=0===t.data.index?0:t.data.index||s.index()*a.options.slidesToScroll;a.slideHandler(a.checkNavigable(o),!1,n),s.children().trigger("focus");break;default:return}},t.prototype.checkNavigable=function(e){var t,n;if(n=0,e>(t=this.getNavigableIndexes())[t.length-1])e=t[t.length-1];else for(var i in t){if(e<t[i]){e=n;break}n=t[i]}return e},t.prototype.cleanUpEvents=function(){var t=this;t.options.dots&&null!==t.$dots&&(e("li",t.$dots).off("click.slick",t.changeSlide).off("mouseenter.slick",e.proxy(t.
2interrupt,t,!0)).off("mouseleave.slick",e.proxy(t.interrupt,t,!1)),!0===t.options.accessibility&&t.$dots.off("keydown.slick",t.keyHandler)),t.$slider.off("focus.slick blur.slick"),!0===t.options.arrows&&t.slideCount>t.options.slidesToShow&&(t.$prevArrow&&t.$prevArrow.off("click.slick",t.changeSlide),t.$nextArrow&&t.$nextArrow.off("click.slick",t.changeSlide),!0===t.options.accessibility&&(t.$prevArrow&&t.$prevArrow.off("keydown.slick",t.keyHandler),t.$nextArrow&&t.$nextArrow.off("keydown.slick",t.keyHandler))),t.$list.off("touchstart.slick mousedown.slick",t.swipeHandler),t.$list.off("touchmove.slick mousemove.slick",t.swipeHandler),t.$list.off("touchend.slick mouseup.slick",t.swipeHandler),t.$list.off("touchcancel.slick mouseleave.slick",t.swipeHandler),t.$list.off("click.slick",t.clickHandler),e(document).off(t.visibilityChange,t.visibility),t.cleanUpSlideEvents(),!0===t.options.accessibility&&t.$list.off("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().off("click.slick",t.selectHandler),e(window).off("orientationchange.slick.slick-"+t.instanceUid,t.orientationChange),e(window).off("resize.slick.slick-"+t.instanceUid,t.resize),e("[draggable!=true]",t.$slideTrack).off("dragstart",t.preventDefault),e(window).off("load.slick.slick-"+t.instanceUid,t.setPosition)},t.prototype.cleanUpSlideEvents=function(){var t=this;t.$list.off("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.off("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.cleanUpRows=function(){var e,t=this;t.options.rows>0&&((e=t.$slides.children().children()).removeAttr("style"),t.$slider.empty().append(e))},t.prototype.clickHandler=function(e){!1===this.shouldClick&&(e.stopImmediatePropagation(),e.stopPropagation(),e.preventDefault())},t.prototype.destroy=function(t){var n=this;n.autoPlayClear(),n.touchObject={},n.cleanUpEvents(),e(".slick-cloned",n.$slider).detach(),n.$dots&&n.$dots.remove(),n.$prevArrow&&n.$prevArrow.length&&(n.$prevArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.prevArrow)&&n.$prevArrow.remove()),n.$nextArrow&&n.$nextArrow.length&&(n.$nextArrow.removeClass("slick-disabled slick-arrow slick-hidden").removeAttr("aria-hidden aria-disabled tabindex").css("display",""),n.htmlExpr.test(n.options.nextArrow)&&n.$nextArrow.remove()),n.$slides&&(n.$slides.removeClass("slick-slide slick-active slick-center slick-visible slick-current").removeAttr("aria-hidden").removeAttr("data-slick-index").each((function(){e(this).attr("style",e(this).data("originalStyling"))})),n.$slideTrack.children(this.options.slide).detach(),n.$slideTrack.detach(),n.$list.detach(),n.$slider.append(n.$slides)),n.cleanUpRows(),n.$slider.removeClass("slick-slider"),n.$slider.removeClass("slick-initialized"),n.$slider.removeClass("slick-dotted"),n.unslicked=!0,t||n.$slider.trigger("destroy",[n])},t.prototype.disableTransition=function(e){var t=this,n={};n[t.transitionType]="",!1===t.options.fade?t.$slideTrack.css(n):t.$slides.eq(e).css(n)},t.prototype.fadeSlide=function(e,t){var n=this;!1===n.cssTransitions?(n.$slides.eq(e).css({zIndex:n.options.zIndex}),n.$slides.eq(e).animate({opacity:1},n.options.speed,n.options.easing,t)):(n.applyTransition(e),n.$slides.eq(e).css({opacity:1,zIndex:n.options.zIndex}),t&&setTimeout((function(){n.disableTransition(e),t.call()}),n.options.speed))},t.prototype.fadeSlideOut=function(e){var t=this;!1===t.cssTransitions?t.$slides.eq(e).animate({opacity:0,zIndex:t.options.zIndex-2},t.options.speed,t.options.easing):(t.applyTransition(e),t.$slides.eq(e).css({opacity:0,zIndex:t.options.zIndex-2}))},t.prototype.filterSlides=t.prototype.slickFilter=function(e){var t=this;null!==e&&(t.$slidesCache=t.$slides,t.unload(),t.$slideTrack.children(this.options.slide).detach(),t.$slidesCache.filter(e).appendTo(t.$slideTrack),t.reinit())},t.prototype.focusHandler=function(){var t=this;t.$slider.off("focus.slick blur.slick").on("focus.slick blur.slick","*",(function(n){n.stopImmediatePropagation();var i=e(this);setTimeout((function(){t.options.pauseOnFocus&&(t.focussed=i.is(":focus"),t.autoPlay())}),0)}))},t.prototype.getCurrent=t.prototype.slickCurrentSlide=function(){return this.currentSlide},t.prototype.getDotCount=function(){var e=this,t=0,n=0,i=0;if(!0===e.options.infinite)if(e.slideCount<=e.options.slidesToShow)++i;else for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else if(!0===e.options.centerMode)i=e.slideCount;else if(e.options.asNavFor)for(;t<e.slideCount;)++i,t=n+e.options.slidesToScroll,n+=e.options.slidesToScroll<=e.options.slidesToShow?e.options.slidesToScroll:e.options.slidesToShow;else i=1+Math.ceil((e.slideCount-e.options.slidesToShow)/e.options.slidesToScroll);return i-1},t.prototype.getLeft=function(e){var t,n,i,r,a=this,s=0;return a.slideOffset=0,n=a.$slides.first().outerHeight(!0),!0===a.options.infinite?(a.slideCount>a.options.slidesToShow&&(a.slideOffset=a.slideWidth*a.options.slidesToShow*-1,r=-1,!0===a.options.vertical&&!0===a.options.centerMode&&(2===a.options.slidesToShow?r=-1.5:1===a.options.slidesToShow&&(r=-2)),s=n*a.options.slidesToShow*r),a.slideCount%a.options.slidesToScroll!=0&&e+a.options.slidesToScroll>a.slideCount&&a.slideCount>a.options.slidesToShow&&(e>a.slideCount?(a.slideOffset=(a.options.slidesToShow-(e-a.slideCount))*a.slideWidth*-1,s=(a.options.slidesToShow-(e-a.slideCount))*n*-1):(a.slideOffset=a.slideCount%a.options.slidesToScroll*a.slideWidth*-1,s=a.slideCount%a.options.slidesToScroll*n*-1))):e+a.options.slidesToShow>a.slideCount&&(a.slideOffset=(e+a.options.slidesToShow-a.slideCount)*a.slideWidth,s=(e+a.options.slidesToShow-a.slideCount)*n),a.slideCount<=a.options.slidesToShow&&(a.slideOffset=0,s=0),!0===a.options.centerMode&&a.slideCount<=a.options.slidesToShow?a.slideOffset=a.slideWidth*Math.floor(a.options.slidesToShow)/2-a.slideWidth*a.slideCount/2:!0===a.options.centerMode&&!0===a.options.infinite?a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)-a.slideWidth:!0===a.options.centerMode&&(a.slideOffset=0,a.slideOffset+=a.slideWidth*Math.floor(a.options.slidesToShow/2)),t=!1===a.options.vertical?e*a.slideWidth*-1+a.slideOffset:e*n*-1+s,!0===a.options.variableWidth&&(i=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(e):a.$slideTrack.children(".slick-slide").eq(e+a.options.slidesToShow),t=!0===a.options.rtl?i[0]?-1*(a.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,!0===a.options.centerMode&&(i=a.slideCount<=a.options.slidesToShow||!1===a.options.infinite?a.$slideTrack.children(".slick-slide").eq(e):a.$slideTrack.children(".slick-slide").eq(e+a.options.slidesToShow+1),t=!0===a.options.rtl?i[0]?-1*(a.$slideTrack.width()-i[0].offsetLeft-i.width()):0:i[0]?-1*i[0].offsetLeft:0,t+=(a.$list.width()-i.outerWidth())/2)),t},t.prototype.getOption=t.prototype.slickGetOption=function(e){return this.options[e]},t.prototype.getNavigableIndexes=function(){var e,t=this,n=0,i=0,r=[];for(!1===t.options.infinite?e=t.slideCount:(n=-1*t.options.slidesToScroll,i=-1*t.options.slidesToScroll,e=2*t.slideCount);n<e;)r.push(n),n=i+t.options.slidesToScroll,i+=t.options.slidesToScroll<=t.options.slidesToShow?t.options.slidesToScroll:t.options.slidesToShow;return r},t.prototype.getSlick=function(){return this},t.prototype.getSlideCount=function(){var t,n,i=this;return n=!0===i.options.centerMode?i.slideWidth*Math.floor(i.options.slidesToShow/2):0,!0===i.options.swipeToSlide?(i.$slideTrack.find(".slick-slide").each((function(r,a){
2if(a.offsetLeft-n+e(a).outerWidth()/2>-1*i.swipeLeft)return t=a,!1})),Math.abs(e(t).attr("data-slick-index")-i.currentSlide)||1):i.options.slidesToScroll},t.prototype.goTo=t.prototype.slickGoTo=function(e,t){this.changeSlide({data:{message:"index",index:parseInt(e)}},t)},t.prototype.init=function(t){var n=this;e(n.$slider).hasClass("slick-initialized")||(e(n.$slider).addClass("slick-initialized"),n.buildRows(),n.buildOut(),n.setProps(),n.startLoad(),n.loadSlider(),n.initializeEvents(),n.updateArrows(),n.updateDots(),n.checkResponsive(!0),n.focusHandler()),t&&n.$slider.trigger("init",[n]),!0===n.options.accessibility&&n.initADA(),n.options.autoplay&&(n.paused=!1,n.autoPlay())},t.prototype.initADA=function(){var t=this,n=Math.ceil(t.slideCount/t.options.slidesToShow),i=t.getNavigableIndexes().filter((function(e){return e>=0&&e<t.slideCount}));t.$slides.add(t.$slideTrack.find(".slick-cloned")).attr({"aria-hidden":"true",tabindex:"-1"}).find("a, input, button, select").attr({tabindex:"-1"}),null!==t.$dots&&(t.$slides.not(t.$slideTrack.find(".slick-cloned")).each((function(n){var r=i.indexOf(n);if(e(this).attr({role:"tabpanel",id:"slick-slide"+t.instanceUid+n,tabindex:-1}),-1!==r){var a="slick-slide-control"+t.instanceUid+r;e("#"+a).length&&e(this).attr({"aria-describedby":a})}})),t.$dots.attr("role","tablist").find("li").each((function(r){var a=i[r];e(this).attr({role:"presentation"}),e(this).find("button").first().attr({role:"tab",id:"slick-slide-control"+t.instanceUid+r,"aria-controls":"slick-slide"+t.instanceUid+a,"aria-label":r+1+" of "+n,"aria-selected":null,tabindex:"-1"})})).eq(t.currentSlide).find("button").attr({"aria-selected":"true",tabindex:"0"}).end());for(var r=t.currentSlide,a=r+t.options.slidesToShow;r<a;r++)t.options.focusOnChange?t.$slides.eq(r).attr({tabindex:"0"}):t.$slides.eq(r).removeAttr("tabindex");t.activateADA()},t.prototype.initArrowEvents=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.off("click.slick").on("click.slick",{message:"previous"},e.changeSlide),e.$nextArrow.off("click.slick").on("click.slick",{message:"next"},e.changeSlide),!0===e.options.accessibility&&(e.$prevArrow.on("keydown.slick",e.keyHandler),e.$nextArrow.on("keydown.slick",e.keyHandler)))},t.prototype.initDotEvents=function(){var t=this;!0===t.options.dots&&t.slideCount>t.options.slidesToShow&&(e("li",t.$dots).on("click.slick",{message:"index"},t.changeSlide),!0===t.options.accessibility&&t.$dots.on("keydown.slick",t.keyHandler)),!0===t.options.dots&&!0===t.options.pauseOnDotsHover&&t.slideCount>t.options.slidesToShow&&e("li",t.$dots).on("mouseenter.slick",e.proxy(t.interrupt,t,!0)).on("mouseleave.slick",e.proxy(t.interrupt,t,!1))},t.prototype.initSlideEvents=function(){var t=this;t.options.pauseOnHover&&(t.$list.on("mouseenter.slick",e.proxy(t.interrupt,t,!0)),t.$list.on("mouseleave.slick",e.proxy(t.interrupt,t,!1)))},t.prototype.initializeEvents=function(){var t=this;t.initArrowEvents(),t.initDotEvents(),t.initSlideEvents(),t.$list.on("touchstart.slick mousedown.slick",{action:"start"},t.swipeHandler),t.$list.on("touchmove.slick mousemove.slick",{action:"move"},t.swipeHandler),t.$list.on("touchend.slick mouseup.slick",{action:"end"}
2,t.swipeHandler),t.$list.on("touchcancel.slick mouseleave.slick",{action:"end"},t.swipeHandler),t.$list.on("click.slick",t.clickHandler),e(document).on(t.visibilityChange,e.proxy(t.visibility,t)),!0===t.options.accessibility&&t.$list.on("keydown.slick",t.keyHandler),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),e(window).on("orientationchange.slick.slick-"+t.instanceUid,e.proxy(t.orientationChange,t)),e(window).on("resize.slick.slick-"+t.instanceUid,e.proxy(t.resize,t)),e("[draggable!=true]",t.$slideTrack).on("dragstart",t.preventDefault),e(window).on("load.slick.slick-"+t.instanceUid,t.setPosition),e(t.setPosition)},t.prototype.initUI=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.show(),e.$nextArrow.show()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.show()},t.prototype.keyHandler=function(e){var t=this;e.target.tagName.match("TEXTAREA|INPUT|SELECT")||(37===e.keyCode&&!0===t.options.accessibility?t.changeSlide({data:{message:!0===t.options.rtl?"next":"previous"}}):39===e.keyCode&&!0===t.options.accessibility&&t.changeSlide({data:{message:!0===t.options.rtl?"previous":"next"}}))},t.prototype.lazyLoad=function(){var t,n,i,r=this;function a(t){e("img[data-lazy]",t).each((function(){var t=e(this),n=e(this).attr("data-lazy"),i=e(this).attr("data-srcset"),a=e(this).attr("data-sizes")||r.$slider.attr("data-sizes"),s=document.createElement("img");s.onload=function(){t.animate({opacity:0}
2,100,(function(){i&&(t.attr("srcset",i),a&&t.attr("sizes",a)),t.attr("src",n).animate({opacity:1},200,(function(){t.removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading")})),r.$slider.trigger("lazyLoaded",[r,t,n])}))},s.onerror=function(){t.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),r.$slider.trigger("lazyLoadError",[r,t,n])},s.src=n}))}if(!0===r.options.centerMode?!0===r.options.infinite?i=(n=r.currentSlide+(r.options.slidesToShow/2+1))+r.options.slidesToShow+2:(n=Math.max(0,r.currentSlide-(r.options.slidesToShow/2+1)),i=r.options.slidesToShow/2+1+2+r.currentSlide):(n=r.options.infinite?r.options.slidesToShow+r.currentSlide:r.currentSlide,i=Math.ceil(n+r.options.slidesToShow),!0===r.options.fade&&(n>0&&n--,i<=r.slideCount&&i++)),t=r.$slider.find(".slick-slide").slice(n,i),"anticipated"===r.options.lazyLoad)for(var s=n-1,o=i,l=r.$slider.find(".slick-slide"),c=0;c<r.options.slidesToScroll;c++)s<0&&(s=r.slideCount-1),t=(t=t.add(l.eq(s))).add(l.eq(o)),s--,o++;a(t),r.slideCount<=r.options.slidesToShow?a(r.$slider.find(".slick-slide")):r.currentSlide>=r.slideCount-r.options.slidesToShow?a(r.$slider.find(".slick-cloned").slice(0,r.options.slidesToShow)):0===r.currentSlide&&a(r.$slider.find(".slick-cloned").slice(-1*r.options.slidesToShow))},t.prototype.loadSlider=function(){var e=this;e.setPosition(),e.$slideTrack.css({opacity:1}),e.$slider.removeClass("slick-loading"),e.initUI(),"progressive"===e.options.lazyLoad&&e.progressiveLazyLoad()},t.prototype.next=t.prototype.slickNext=function(){this.changeSlide({data:{message:"next"}})},t.prototype.orientationChange=function(){var e=this;e.checkResponsive(),e.setPosition()},t.prototype.pause=t.prototype.slickPause=function(){var e=this;e.autoPlayClear(),e.paused=!0},t.prototype.play=t.prototype.slickPlay=function(){var e=this;e.autoPlay(),e.options.autoplay=!0,e.paused=!1,e.focussed=!1,e.interrupted=!1},t.prototype.postSlide=function(t){var n=this;n.unslicked||(n.$slider.trigger("afterChange",[n,t]),n.animating=!1,n.slideCount>n.options.slidesToShow&&n.setPosition(),n.swipeLeft=null,n.options.autoplay&&n.autoPlay(),!0===n.options.accessibility&&(n.initADA(),n.options.focusOnChange&&e(n.$slides.get(n.currentSlide)).attr("tabindex",0).focus()))},t.prototype.prev=t.prototype.slickPrev=function(){this.changeSlide({data:{message:"previous"}})},t.prototype.preventDefault=function(e){e.preventDefault()},t.prototype.progressiveLazyLoad=function(t){t=t||1;var n,i,r,a,s,o=this,l=e("img[data-lazy]",o.$slider);l.length?(n=l.first(),i=n.attr("data-lazy"),r=n.attr("data-srcset"),a=n.attr("data-sizes")||o.$slider.attr("data-sizes"),(s=document.createElement("img")).onload=function(){r&&(n.attr("srcset",r),a&&n.attr("sizes",a)),n.attr("src",i).removeAttr("data-lazy data-srcset data-sizes").removeClass("slick-loading"),!0===o.options.adaptiveHeight&&o.setPosition(),o.$slider.trigger("lazyLoaded",[o,n,i]),o.progressiveLazyLoad()},s.onerror=function(){t<3?setTimeout((function(){o.progressiveLazyLoad(t+1)}),500):(n.removeAttr("data-lazy").removeClass("slick-loading").addClass("slick-lazyload-error"),o.$slider.trigger("lazyLoadError",[o,n,i]),o.progressiveLazyLoad())},s.src=i):o.$slider.trigger("allImagesLoaded",[o])},t.prototype.refresh=function(t){var n,i,r=this;i=r.slideCount-r.options.slidesToShow,!r.options.infinite&&r.currentSlide>i&&(r.currentSlide=i),r.slideCount<=r.options.slidesToShow&&(r.currentSlide=0),n=r.currentSlide,r.destroy(!0),e.extend(r,r.initials,{currentSlide:n}),r.init(),t||r.changeSlide({data:{message:"index",index:n}},!1)},t.prototype.registerBreakpoints=function(){var t,n,i,r=this,a=r.options.responsive||null;if("array"===e.type(a)&&a.length){for(t in r.respondTo=r.options.respondTo||"window",a)if(i=r.breakpoints.length-1,a.hasOwnProperty(t)){for(n=a[t].breakpoint;i>=0;)r.breakpoints[i]&&r.breakpoints[i]===n&&r.breakpoints.splice(i,1),i--;r.breakpoints.push(n),r.breakpointSettings[n]=a[t].settings}r.breakpoints.sort((function(e,t){return r.options.mobileFirst?e-t:t-e}))}},t.prototype.reinit=function(){var t=this;t.$slides=t.$slideTrack.children(t.options.slide).addClass("slick-slide"),t.slideCount=t.$slides.length,t.currentSlide>=t.slideCount&&0!==t.currentSlide&&(t.currentSlide=t.currentSlide-t.options.slidesToScroll),t.slideCount<=t.options.slidesToShow&&(t.currentSlide=0),t.registerBreakpoints(),t.setProps(),t.setupInfinite(),t.buildArrows(),t.updateArrows(),t.initArrowEvents(),t.buildDots(),t.updateDots(),t.initDotEvents(),t.cleanUpSlideEvents(),t.initSlideEvents(),t.checkResponsive(!1,!0),!0===t.options.focusOnSelect&&e(t.$slideTrack).children().on("click.slick",t.selectHandler),t.setSlideClasses("number"==typeof t.currentSlide?t.currentSlide:0),t.setPosition(),t.focusHandler(),t.paused=!t.o
2ptions.autoplay,t.autoPlay(),t.$slider.trigger("reInit",[t])},t.prototype.resize=function(){var t=this;e(window).width()!==t.windowWidth&&(clearTimeout(t.windowDelay),t.windowDelay=window.setTimeout((function(){t.windowWidth=e(window).width(),t.checkResponsive(),t.unslicked||t.setPosition()}),50))},t.prototype.removeSlide=t.prototype.slickRemove=function(e,t,n){var i=this;if(e="boolean"==typeof e?!0===(t=e)?0:i.slideCount-1:!0===t?--e:e,i.slideCount<1||e<0||e>i.slideCount-1)return!1;i.unload(),!0===n?i.$slideTrack.children().remove():i.$slideTrack.children(this.options.slide).eq(e).remove(),i.$slides=i.$slideTrack.children(this.options.slide),i.$slideTrack.children(this.options.slide).detach(),i.$slideTrack.append(i.$slides),i.$slidesCache=i.$slides,i.reinit()},t.prototype.setCSS=function(e){var t,n,i=this,r={};!0===i.options.rtl&&(e=-e),t="left"==i.positionProp?Math.ceil(e)+"px":"0px",n="top"==i.positionProp?Math.ceil(e)+"px":"0px",r[i.positionProp]=e,!1===i.transformsEnabled?i.$slideTrack.css(r):(r={},!1===i.cssTransitions?(r[i.animType]="translate("+t+", "+n+")",i.$slideTrack.css(r)):(r[i.animType]="translate3d("+t+", "+n+", 0px)",i.$slideTrack.css(r)))},t.prototype.setDimensions=function(){var e=this;!1===e.options.vertical?!0===e.options.centerMode&&e.$list.css({padding:"0px "+e.options.centerPadding}):(e.$list.height(e.$slides.first().outerHeight(!0)*e.options.slidesToShow),!0===e.options.centerMode&&e.$list.css({padding:e.options.centerPadding+" 0px"})),e.listWidth=e.$list.width(),e.listHeight=e.$list.height(),!1===e.options.vertical&&!1===e.options.variableWidth?(e.slideWidth=Math.ceil(e.listWidth/e.options.slidesToShow),e.$slideTrack.width(Math.ceil(e.slideWidth*e.$slideTrack.children(".slick-slide").length))):!0===e.options.variableWidth?e.$slideTrack.width(5e3*e.slideCount):(e.slideWidth=Math.ceil(e.listWidth),e.$slideTrack.height(Math.ceil(e.$slides.first().outerHeight(!0)*e.$slideTrack.children(".slick-slide").length)));var t=e.$slides.first().outerWidth(!0)-e.$slides.first().width();!1===e.options.variableWidth&&e.$slideTrack.children(".slick-slide").width(e.slideWidth-t)},t.prototype.setFade=function(){var t,n=this;n.$slides.each((function(i,r){t=n.slideWidth*i*-1,!0===n.options.rtl?e(r).css({position:"relative",right:t,top:0,zIndex:n.options.zIndex-2,opacity:0}
2):e(r).css({position:"relative",left:t,top:0,zIndex:n.options.zIndex-2,opacity:0})})),n.$slides.eq(n.currentSlide).css({zIndex:n.options.zIndex-1,opacity:1})},t.prototype.setHeight=function(){var e=this;if(1===e.options.slidesToShow&&!0===e.options.adaptiveHeight&&!1===e.options.vertical){var t=e.$slides.eq(e.currentSlide).outerHeight(!0);e.$list.css("height",t)}},t.prototype.setOption=t.prototype.slickSetOption=function(){var t,n,i,r,a,s=this,o=!1;if("object"===e.type(arguments[0])?(i=arguments[0],o=arguments[1],a="multiple"):"string"===e.type(arguments[0])&&(i=arguments[0],r=arguments[1],o=arguments[2],"responsive"===arguments[0]&&"array"===e.type(arguments[1])?a="responsive":void 0!==arguments[1]&&(a="single")),"single"===a)s.options[i]=r;else if("multiple"===a)e.each(i,(function(e,t){s.options[e]=t}));else if("responsive"===a)for(n in r)if("array"!==e.type(s.options.responsive))s.options.responsive=[r[n]];else{for(t=s.options.responsive.length-1;t>=0;)s.options.responsive[t].breakpoint===r[n].breakpoint&&s.options.responsive.splice(t,1),t--;s.options.responsive.push(r[n])}o&&(s.unload(),s.reinit())},t.prototype.setPosition=function(){var e=this;e.setDimensions(),e.setHeight(),!1===e.options.fade?e.setCSS(e.getLeft(e.currentSlide)):e.setFade(),e.$slider.trigger("setPosition",[e])},t.prototype.setProps=function(){var e=this,t=document.body.style;e.positionProp=!0===e.options.vertical?"top":"left","top"===e.positionProp?e.$slider.addClass("slick-vertical"):e.$slider.removeClass("slick-vertical"),void 0===t.WebkitTransition&&void 0===t.MozTransition&&void 0===t.msTransition||!0===e.options.useCSS&&(e.cssTransitions=!0),e.options.fade&&("number"==typeof e.options.zIndex?e.options.zIndex<3&&(e.options.zIndex=3):e.options.zIndex=e.defaults.zIndex),void 0!==t.OTransform&&(e.animType="OTransform",e.transformType="-o-transform",e.transitionType="OTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.MozTransform&&(e.animType="MozTransform",e.transformType="-moz-transform",e.transitionType="MozTransition",void 0===t.perspectiveProperty&&void 0===t.MozPerspective&&(e.animType=!1)),void 0!==t.webkitTransform&&(e.animType="webkitTransform",e.transformType="-webkit-transform",e.transitionType="webkitTransition",void 0===t.perspectiveProperty&&void 0===t.webkitPerspective&&(e.animType=!1)),void 0!==t.msTransform&&(e.animType="msTransform",e.transformType="-ms-transform",e.transitionType="msTransition",void 0===t.msTransform&&(e.animType=!1)),void 0!==t.transform&&!1!==e.animType&&(e.animType="transform",e.transformType="transform",e.transitionType="transition"),e.transformsEnabled=e.options.useTransform&&null!==e.animType&&!1!==e.animType},t.prototype.setSlideClasses=function(e){var t,n,i,r,a=this;if(n=a.$slider.find(".slick-slide").removeClass("slick-active slick-center slick-current").attr("aria-hidden","true"),a.$slides.eq(e).addClass("slick-current"),!0===a.options.centerMode){var s=a.options.slidesToShow%2==0?1:0;t=Math.floor(a.options.slidesToShow/2),!0===a.options.infinite&&(e>=t&&e<=a.slideCount-1-t?a.$slides.slice(e-t+s,e+t+1).addClass("slick-active").attr("aria-hidden","false"):(i=a.options.slidesToShow+e,n.slice(i-t+1+s,i+t+2).addClass("slick-active").attr("aria-hidden","false")),0===e?n.eq(n.length-1-a.options.slidesToShow).addClass("slick-center"):e===a.slideCount-1&&n.eq(a.options.slidesToShow).addClass("slick-center")),a.$slides.eq(e).addClass("slick-center")}else e>=0&&e<=a.slideCount-a.options.slidesToShow?a.$slides.slice(e,e+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"):n.length<=a.options.slidesToShow?n.addClass("slick-active").attr("aria-hidden","false"):(r=a.slideCount%a.options.slidesToShow,i=!0===a.options.infinite?a.options.slidesToShow+e:e,a.options.slidesToShow==a.options.slidesToScroll&&a.slideCount-e<a.options.slidesToShow?n.slice(i-(a.options.slidesToShow-r),i+r).addClass("slick-active").attr("aria-hidden","false"):n.slice(i,i+a.options.slidesToShow).addClass("slick-active").attr("aria-hidden","false"));"ondemand"!==a.options.lazyLoad&&"anticipated"!==a.options.lazyLoad||a.lazyLoad()},t.prototype.setupInfinite=function(){var t,n,i,r=this;if(!0===r.options.fade&&(r.options.centerMode=!1),!0===r.options.infinite&&!1===r.options.fade&&(n=null,r.slideCount>r.options.slidesToShow)){for(i=!0===r.options.centerMode?r.options.slidesToShow+1:r.options.slidesToShow,t=r.slideCount;t>r.slideCount-i;t-=1)n=t-1,e(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n-r.slideCount).prependTo(r.$slideTrack).addClass("slick-cloned");for(t=0;t<i+r.slideCount;t+=1)n=t,e(r.$slides[n]).clone(!0).attr("id","").attr("data-slick-index",n+r.slideCount).appendTo(r.$slideTrack).addClass("slick-cloned");r.$slideTrack.find(".slick-cloned").find("[id]").each((function(){e(this).attr("id","")}))}},t.prototype.interrupt=function(e){var t=this;e||t.autoPlay(),t.interrupted=e},t.prototype.selectHandler=function(t){var n=this,i=e(t.target).is(".slick-slide")?e(t.target):e(t.target).parents(".slick-slide"),r=parseInt(i.attr("data-slick-index"));r||(r=0),n.slideCount<=n.options.slidesToShow?n.slideHandler(r,!1,!0):n.slideHandler(r)},t.prototype.slideHandler=function(e,t,n){var i,r,a,s,o,l=null,c=this;if(t=t||!1,!(!0===c.animating&&!0===c.options.waitForAnimate||!0===c.options.fade&&c.currentSlide===e))if(!1===t&&c.asNavFor(e),i=e,l=c.getLeft(i),s=c.getLeft(c.
2currentSlide),c.currentLeft=null===c.swipeLeft?s:c.swipeLeft,!1===c.options.infinite&&!1===c.options.centerMode&&(e<0||e>c.getDotCount()*c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(i)})):c.postSlide(i));else if(!1===c.options.infinite&&!0===c.options.centerMode&&(e<0||e>c.slideCount-c.options.slidesToScroll))!1===c.options.fade&&(i=c.currentSlide,!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(s,(function(){c.postSlide(i)})):c.postSlide(i));else{if(c.options.autoplay&&clearInterval(c.autoPlayTimer),r=i<0?c.slideCount%c.options.slidesToScroll!=0?c.slideCount-c.slideCount%c.options.slidesToScroll:c.slideCount+i:i>=c.slideCount?c.slideCount%c.options.slidesToScroll!=0?0:i-c.slideCount:i,c.animating=!0,c.$slider.trigger("beforeChange",[c,c.currentSlide,r]),a=c.currentSlide,c.currentSlide=r,c.setSlideClasses(c.currentSlide),c.options.asNavFor&&(o=(o=c.getNavTarget()).slick("getSlick")).slideCount<=o.options.slidesToShow&&o.setSlideClasses(c.currentSlide),c.updateDots(),c.updateArrows(),!0===c.options.fade)return!0!==n?(c.fadeSlideOut(a),c.fadeSlide(r,(function(){c.postSlide(r)}))):c.postSlide(r),void c.animateHeight();!0!==n&&c.slideCount>c.options.slidesToShow?c.animateSlide(l,(function(){c.postSlide(r)})):c.postSlide(r)}},t.prototype.startLoad=function(){var e=this;!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&(e.$prevArrow.hide(),e.$nextArrow.hide()),!0===e.options.dots&&e.slideCount>e.options.slidesToShow&&e.$dots.hide(),e.$slider.addClass("slick-loading")},t.prototype.swipeDirection=function(){var e,t,n,i,r=this;return e=r.touchObject.startX-r.touchObject.curX,t=r.touchObject.startY-r.touchObject.curY,n=Math.atan2(t,e),(i=Math.round(180*n/Math.PI))<0&&(i=360-Math.abs(i)),i<=45&&i>=0||i<=360&&i>=315?!1===r.options.rtl?"left":"right":i>=135&&i<=225?!1===r.options.rtl?"right":"left":!0===r.options.verticalSwiping?i>=35&&i<=135?"down":"up":"vertical"},t.prototype.swipeEnd=function(e){var t,n,i=this;if(i.dragging=!1,i.swiping=!1,i.scrolling)return i.scrolling=!1,!1;if(i.interrupted=!1,i.shouldClick=!(i.touchObject.swipeLength>10),void 0===i.touchObject.curX)return!1;if(!0===i.touchObject.edgeHit&&i.$slider.trigger("edge",[i,i.swipeDirection()]),i.touchObject.swipeLength>=i.touchObject.minSwipe){switch(n=i.swipeDirection()){case"left":case"down":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide+i.getSlideCount()):i.currentSlide+i.getSlideCount(),i.currentDirection=0;break;case"right":case"up":t=i.options.swipeToSlide?i.checkNavigable(i.currentSlide-i.getSlideCount()):i.currentSlide-i.getSlideCount(),i.currentDirection=1}"vertical"!=n&&(i.slideHandler(t),i.touchObject={},i.$slider.trigger("swipe",[i,n]))}else i.touchObject.startX!==i.touchObject.curX&&(i.slideHandler(i.currentSlide),i.touchObject={})},t.prototype.swipeHandler=function(e){var t=this;if(!(!1===t.options.swipe||"ontouchend"in document&&!1===t.options.swipe||!1===t.options.draggable&&-1!==e.type.indexOf("mouse")))switch(t.touchObject.fingerCount=e.originalEvent&&void 0!==e.originalEvent.touches?e.originalEvent.touches.length:1,t.touchObject.minSwipe=t.listWidth/t.options.touchThreshold,!0===t.options.verticalSwiping&&(t.touchObject.minSwipe=t.listHeight/t.options.touchThreshold),e.data.action){case"start":t.swipeStart(e);break;case"move":t.swipeMove(e);break;case"end":t.swipeEnd(e)}},t.prototype.swipeMove=function(e){var t,n,i,r,a,s,o=this;return a=void 0!==e.originalEvent?e.originalEvent.touches:null,!(!o.dragging||o.scrolling||a&&1!==a.length)&&(t=o.getLeft(o.currentSlide),o.touchObject.curX=void 0!==a?a[0].pageX:e.clientX,o.touchObject.curY=void 0!==a?a[0].pageY:e.clientY,o.touchObject.swipeLength=Math.round(Math.sqrt(Math.pow(o.touchObject.curX-o.touchObject.startX,2))),s=Math.round(Math.sqrt(Math.pow(o.touchObject.curY-o.touchObject.startY,2))),!o.options.verticalSwiping&&!o.swiping&&s>4?(o.scrolling=!0,!1):(!0===o.options.verticalSwiping&&(o.touchObject.swipeLength=s),n=o.swipeDirection(),void 0!==e.originalEvent&&o.touchObject.swipeLength>4&&(o.swiping=!0,e.preventDefault()),r=(!1===o.options.rtl?1:-1)*(o.touchObject.curX>o.touchObject.startX?1:-1),!0===o.options.verticalSwiping&&(r=o.touchObject.curY>o.touchObject.startY?1:-1),i=o.touchObject.swipeLength,o.touchObject.edgeHit=!1,!1===o.options.infinite&&(0===o.currentSlide&&"right"===n||o.currentSlide>=o.getDotCount()&&"left"===n)&&(i=o.touchObject.swipeLength*o.options.edgeFriction,o.touchObject.edgeHit=!0),!1===o.options.vertical?o.swipeLeft=t+i*r:o.swipeLeft=t+i*(o.$list.height()/o.listWidth)*r,!0===o.options.verticalSwiping&&(o.swipeLeft=t+i*r),!0!==o.options.fade&&!1!==o.options.touchMove&&(!0===o.animating?(o.swipeLeft=null,!1):void o.setCSS(o.swipeLeft))))},t.prototype.swipeStart=function(e){var t,n=this;if(n.interrupted=!0,1!==n.touchObject.fingerCount||n.slideCount<=n.options.slidesToShow)return n.touchObject={},!1;void 0!==e.originalEvent&&void 0!==e.originalEvent.touches&&(t=e.originalEvent.touches[0]),n.touchObject.startX=n.touchObject.curX=void 0!==t?t.pageX:e.clientX,n.touchObject.startY=n.touchObject.curY=void 0!==t?t.pageY:e.clientY,n.dragging=!0},t.prototype.unfilterSlides=t.prototype.slickUnfilter=function(){var e=this;null!==e.$slidesCache&&(e.unload(),e.$slideTrack.children(this.options.slide).detach(),e.$slidesCache.appendTo(e.$slideTrack),e.reinit())},t.prototype.unload=function(){var t=this;e(".slick-cloned",t.$slider).remove(),t.$dots&&t.$dots.remove(),t.$prevArrow&&t.htmlExpr.test(t.options.prevArrow)&&t.$prevArrow.remove(),t.$nextArrow&&t.htmlExpr.test(t.options.nextArrow)&&t.$nextArrow.remove(),t.$slides.removeClass("slick-slide slick-active slick-visible slick-current").attr("aria-hidden","true").css("width","")}
2,t.prototype.unslick=function(e){var t=this;t.$slider.trigger("unslick",[t,e]),t.destroy()},t.prototype.updateArrows=function(){var e=this;Math.floor(e.options.slidesToShow/2),!0===e.options.arrows&&e.slideCount>e.options.slidesToShow&&!e.options.infinite&&(e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false"),0===e.currentSlide?(e.$prevArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$nextArrow.removeClass("slick-disabled").attr("aria-disabled","false")):(e.currentSlide>=e.slideCount-e.options.slidesToShow&&!1===e.options.centerMode||e.currentSlide>=e.slideCount-1&&!0===e.options.centerMode)&&(e.$nextArrow.addClass("slick-disabled").attr("aria-disabled","true"),e.$prevArrow.removeClass("slick-disabled").attr("aria-disabled","false")))},t.prototype.updateDots=function(){var e=this;null!==e.$dots&&(e.$dots.find("li").removeClass("slick-active").end(),e.$dots.find("li").eq(Math.floor(e.currentSlide/e.options.slidesToScroll)).addClass("slick-active"))},t.prototype.visibility=function(){var e=this;e.options.autoplay&&(document[e.hidden]?e.interrupted=!0:e.interrupted=!1)},e.fn.slick=function(){var e,n,i=this,r=arguments[0],a=Array.prototype.slice.call(arguments,1),s=i.length;for(e=0;e<s;e++)if("object"==typeof r||void 0===r?i[e].slick=new t(i[e],r):n=i[e].slick[r].apply(i[e].slick,a),void 0!==n)return n;return i}},void 0===(a="function"==typeof i?i.apply(t,r):i)||(e.exports=a)}()},9945:function(e){var t,n,i,r,a;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,a={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var r=a.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=a.normalizePath(r.path),a.buildURLFromParts(r)}var s=a.parseURL(t);if(!s)throw new Error("Error trying to parse relative URL.");if(s.scheme)return i.alwaysNormalize?(s.path=a.normalizePath(s.path),a.buildURLFromParts(s)):t;var o=a.parseURL(e);if(!o)throw new Error("Error trying to parse base URL.");if(!o.netLoc&&o.path&&"/"!==o.path[0]){var l=n.exec(o.path);o.netLoc=l[1],o.path=l[2]}o.netLoc&&!o.path&&(o.path="/");var c={scheme:o.scheme,netLoc:s.netLoc,path:null,params:s.params,query:s.query,fragment:s.fragment};if(!s.netLoc&&(c.netLoc=o.netLoc,"/"!==s.path[0]))if(s.path){var u=o.path,d=u.substring(0,u.lastIndexOf("/")+1)+s.path;c.path=a.normalizePath(d)}else c.path=o.path,s.params||(c.params=o.params,s.query||(c.query=o.query));return null===c.path&&(c.path=i.alwaysNormalize?a.normalizePath(s.path):s.path),a.buildURLFromParts(c)},parseURL:function(e){var n=t.exec(e);return n?{scheme:n[1]||"",netLoc:n[2]||"",path:n[3]||"",params:n[4]||"",query:n[5]||"",fragment:n[6]||""}:null},normalizePath:function(e){for(e=e.split("").reverse().join("").replace(i,"");e.length!==(e=e.replace(r,"")).length;);return e.split("").reverse().join("")},buildURLFromParts:function(e){return e.scheme+e.netLoc+e.path+e.params+e.query+e.fragment}},e.exports=a},3364:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>ou});var i=n(8908),r=n.n(i),a=n(9144),s=n.n(a);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(e[i]=n[i])}return e},o.apply(this,arguments)}var l=n(7537),c=n.n(l);function u(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function d(e,t){return d=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},d(e,t)}function h(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,d(e,t)}var f=n(5974),p=n.n(f),m=n(9603),g=n.n(m),v=n(3407),y=n.n(v);function b(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}function _(e,t,n){return _=b()?Reflect.construct.bind():function(e,t,n){var i=[null];i.push.apply(i,t);var r=new(Function.bind.apply(e,i));return n&&d(r,n.prototype),r},_.apply(null,arguments)}var T=n(9945),k=n.n(T),w="http://example.com";const S=function(e,t){if(/^[a-z]+:/i.test(t))return t;/^data:/.test(e)&&(e=r().location&&r().location.href||"");var n="function"==typeof r().URL,i=/^\/\//.test(e),a=!r().location&&!/\/\//i.test(e);
2if(n?e=new(r().URL)(e,r().location||w):/\/\//i.test(e)||(e=k().buildAbsoluteURL(r().location&&r().location.href||"",e)),n){var s=new URL(t,e);return a?s.href.slice(w.length):i?s.href.slice(s.protocol.length):s.href}return k().buildAbsoluteURL(e,t)};var x=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}(),C=n(8764).Buffer;function E(e){for(var t,n=(t=e,r().atob?r().atob(t):C.from(t,"base64").toString("binary")),i=new Uint8Array(n.length),a=0;a<n.length;a++)i[a]=n.charCodeAt(a);return i}var A,L,I,P=function(e){function t(){var t;return(t=e.call(this)||this).buffer="",t}return h(t,e),t.prototype.push=function(e){var t;for(this.buffer+=e,t=this.buffer.indexOf("\n");t>-1;t=this.buffer.indexOf("\n"))this.trigger("data",this.buffer.substring(0,t)),this.buffer=this.buffer.substring(t+1)},t}(x),O=String.fromCharCode(9),D=function(e){var t=/([0-9.]*)?@?([0-9.]*)?/.exec(e||""),n={};return t[1]&&(n.length=parseInt(t[1],10)),t[2]&&(n.offset=parseInt(t[2],10)),n},R=function(e){for(var t,n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))')),i={},r=n.length;r--;)""!==n[r]&&((t=/([^=]*)=(.*)/.exec(n[r]).slice(1))[0]=t[0].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^\s+|\s+$/g,""),t[1]=t[1].replace(/^['"](.*)['"]$/g,"$1"),i[t[0]]=t[1]);return i},M=function(e){function t(){var t;return(t=e.call(this)||this).customParsers=[],t.tagMappers=[],t}h(t,e);var n=t.prototype;return n.push=function(e){var t,n,i=this;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((function(t,n){var i=n(e);return i===e?t:t.concat([i])}),[e]).forEach((function(e){for(var r=0;r<i.customParsers.length;r++)if(i.customParsers[r].call(i,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e))i.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:?([0-9\.]*)?,?(.*)?$/.exec(e))return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void i.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-VERSION:?([0-9.]*)?/.exec(e))return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:?(\-?[0-9.]*)?/.exec(e))return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void i.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:?(.*)?$/.exec(e))return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void i.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:?(.*)?$/.exec(e))return n=o(D(t[1]),{type:"tag",tagType:"byterange"}),void i.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:?(YES|NO)?/.exec(e))return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-MAP:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"map"},t[1]){var a=R(t[1]);a.URI&&(n.uri=a.URI),a.BYTERANGE&&(n.byterange=D(a.BYTERANGE))}i.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:?(.*)$/.exec(e)){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=R(t[1]),n.attributes.RESOLUTION){var s=n.attributes.RESOLUTION.split("x"),l={};s[0]&&(l.width=parseInt(s[0],10)),s[1]&&(l.height=parseInt(s[1],10)),n.attributes.RESOLUTION=l}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}i.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:?(.*)$/.exec(e))return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=R(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e))i.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e))i.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:?(.*)$/.exec(e))return n={type:"tag",tagType:"program-date-time"}
2,t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void i.trigger("data",n);if(t=/^#EXT-X-KEY:?(.*)$/.exec(e))return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=R(t[1]),n.attributes.IV&&("0x"===n.attributes.IV.substring(0,2).toLowerCase()&&(n.attributes.IV=n.attributes.IV.substring(2)),n.attributes.IV=n.attributes.IV.match(/.{8}/g),n.attributes.IV[0]=parseInt(n.attributes.IV[0],16),n.attributes.IV[1]=parseInt(n.attributes.IV[1],16),n.attributes.IV[2]=parseInt(n.attributes.IV[2],16),n.attributes.IV[3]=parseInt(n.attributes.IV[3],16),n.attributes.IV=new Uint32Array(n.attributes.IV))),void i.trigger("data",n);if(t=/^#EXT-X-START:?(.*)$/.exec(e))return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=R(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if(t=/^#EXT-X-CUE-IN:?(.*)?$/.exec(e))return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void i.trigger("data",n);if((t=/^#EXT-X-SKIP:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"skip"}).attributes=R(t[1]),n.attributes.hasOwnProperty("SKIPPED-SEGMENTS")&&(n.attributes["SKIPPED-SEGMENTS"]=parseInt(n.attributes["SKIPPED-SEGMENTS"],10)),n.attributes.hasOwnProperty("RECENTLY-REMOVED-DATERANGES")&&(n.attributes["RECENTLY-REMOVED-DATERANGES"]=n.attributes["RECENTLY-REMOVED-DATERANGES"].split(O)),void i.trigger("data",n);if((t=/^#EXT-X-PART:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part"}).attributes=R(t[1]),["DURATION"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["INDEPENDENT","GAP"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),n.attributes.hasOwnProperty("BYTERANGE")&&(n.attributes.byterange=D(n.attributes.BYTERANGE)),void i.trigger("data",n);if((t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"server-control"}).attributes=R(t[1]),["CAN-SKIP-UNTIL","PART-HOLD-BACK","HOLD-BACK"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),["CAN-SKIP-DATERANGES","CAN-BLOCK-RELOAD"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/.test(n.attributes[e]))})),void i.trigger("data",n);if((t=/^#EXT-X-PART-INF:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"part-inf"}).attributes=R(t[1]),["PART-TARGET"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))})),void i.trigger("data",n);if((t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"preload-hint"}).attributes=R(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach((function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);var t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}})),void i.trigger("data",n);if((t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e))&&t[1])return(n={type:"tag",tagType:"rendition-report"}).attributes=R(t[1]),["LAST-MSN","LAST-PART"].forEach((function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))})),void i.trigger("data",n);i.trigger("data",{type:"tag",data:e.slice(4)})}}}else i.trigger("data",{type:"comment",text:e.slice(1)})})):this.trigger("data",{type:"uri",uri:e}))},n.addParser=function(e){var t=this,n=e.expression,i=e.customType,r=e.dataParser,a=e.segment;"function"!=typeof r&&(r=function(e){return e}),this.customParsers.push((function(e){if(n.exec(e))return t.trigger("data",{type:"custom",data:r(e),customType:i,segment:a}),!0}))},n.addTagMapper=function(e){var t=e.expression,n=e.map;this.tagMappers.push((function(e){return t.test(e)?n(e):e}))},t}(x),N=function(e){var t={};return Object.keys(e).forEach((function(n){var i;t[(i=n,i.toLowerCase().replace(/-(\w)/g,(function(e){return e[1].toUpperCase()})))]=e[n]})),t},q=function(e){var t=e.serverControl,n=e.targetDuration,i=e.partTargetDuration;
2if(t){var r="#EXT-X-SERVER-CONTROL",a="holdBack",s="partHoldBack",o=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(a)&&(t[a]=o,this.trigger("info",{message:r+" defaulting HOLD-BACK to targetDuration * 3 ("+o+")."})),o&&t[a]<o&&(this.trigger("warn",{message:r+" clamping HOLD-BACK ("+t[a]+") to targetDuration * 3 ("+o+")"}),t[a]=o),i&&!t.hasOwnProperty(s)&&(t[s]=3*i,this.trigger("info",{message:r+" defaulting PART-HOLD-BACK to partTargetDuration * 3 ("+t[s]+")."})),i&&t[s]<l&&(this.trigger("warn",{message:r+" clamping PART-HOLD-BACK ("+t[s]+") to partTargetDuration * 2 ("+l+")."}),t[s]=l)}},U=function(e){function t(){var t;(t=e.call(this)||this).lineStream=new P,t.parseStream=new M,t.lineStream.pipe(t.parseStream);var n,i,r=u(t),a=[],s={},l=!1,c=function(){},d={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},h=0;t.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};var f=0,p=0;return t.on("end",(function(){s.uri||!s.parts&&!s.preloadHints||(!s.map&&n&&(s.map=n),!s.key&&i&&(s.key=i),s.timeline||"number"!=typeof h||(s.timeline=h),t.manifest.preloadSegment=s)})),t.parseStream.on("data",(function(e){var t,u;({tag:function(){({version:function(){e.version&&(this.manifest.version=e.version)},"allow-cache":function(){this.manifest.allowCache=e.allowed,"allowed"in e||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange:function(){var t={};"length"in e&&(s.byterange=t,t.length=e.length,"offset"in e||(e.offset=f)),"offset"in e&&(s.byterange=t,t.offset=e.offset),f=t.offset+t.length},endlist:function(){this.manifest.endList=!0},inf:function(){"mediaSequence"in this.manifest||(this.manifest.mediaSequence=0,this.trigger("info",{message:"defaulting media sequence to zero"})),"discontinuitySequence"in this.manifest||(this.manifest.discontinuitySequence=0,this.trigger("info",{message:"defaulting discontinuity sequence to zero"})),e.duration>0&&(s.duration=e.duration),0===e.duration&&(s.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=a},key:function(){if(e.attributes)if("NONE"!==e.attributes.METHOD)if(e.attributes.URI){if("com.apple.streamingkeydelivery"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:e.attributes});if("com.microsoft.playready"===e.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:e.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===e.attributes.KEYFORMAT){return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(e.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===e.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==e.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):e.attributes.KEYID&&"0x"===e.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:e.attributes.KEYFORMAT,keyId:e.attributes.KEYID.substring(2)},pssh:E(e.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}))}e.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:e.attributes.METHOD||"AES-128",uri:e.attributes.URI},void 0!==e.attributes.IV&&(i.iv=e.attributes.IV)}else this.trigger("warn",{message:"ignoring key declaration without URI"});else i=null;else this.trigger("warn",{message:"ignoring key declaration without attribute list"})},"media-sequence":function(){isFinite(e.number)?this.manifest.mediaSequence=e.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+e.number})},"discontinuity-sequence":function(){isFinite(e.number)?(this.manifest.discontinuitySequence=e.number,h=e.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+e.number})},"playlist-type":function(){/VOD|EVENT/.test(e.playlistType)?this.manifest.playlistType=e.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+e.playlist})},map:function(){n={}
2,e.uri&&(n.uri=e.uri),e.byterange&&(n.byterange=e.byterange),i&&(n.key=i)},"stream-inf":function(){this.manifest.playlists=a,this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes?(s.attributes||(s.attributes={}),o(s.attributes,e.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media:function(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||d,e.attributes&&e.attributes.TYPE&&e.attributes["GROUP-ID"]&&e.attributes.NAME){var n=this.manifest.mediaGroups[e.attributes.TYPE];n[e.attributes["GROUP-ID"]]=n[e.attributes["GROUP-ID"]]||{},t=n[e.attributes["GROUP-ID"]],(u={default:/yes/i.test(e.attributes.DEFAULT)}).default?u.autoselect=!0:u.autoselect=/yes/i.test(e.attributes.AUTOSELECT),e.attributes.LANGUAGE&&(u.language=e.attributes.LANGUAGE),e.attributes.URI&&(u.uri=e.attributes.URI),e.attributes["INSTREAM-ID"]&&(u.instreamId=e.attributes["INSTREAM-ID"]),e.attributes.CHARACTERISTICS&&(u.characteristics=e.attributes.CHARACTERISTICS),e.attributes.FORCED&&(u.forced=/yes/i.test(e.attributes.FORCED)),t[e.attributes.NAME]=u}else this.trigger("warn",{message:"ignoring incomplete or missing media group"})},discontinuity:function(){h+=1,s.discontinuity=!0,this.manifest.discontinuityStarts.push(a.length)},"program-date-time":function(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=e.dateTimeString,this.manifest.dateTimeObject=e.dateTimeObject),s.dateTimeString=e.dateTimeString,s.dateTimeObject=e.dateTimeObject},targetduration:function(){!isFinite(e.duration)||e.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+e.duration}):(this.manifest.targetDuration=e.duration,q.call(this,this.manifest))},start:function(){e.attributes&&!isNaN(e.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:e.attributes["TIME-OFFSET"],precise:e.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out":function(){s.cueOut=e.data},"cue-out-cont":function(){s.cueOutCont=e.data},"cue-in":function(){s.cueIn=e.data},skip:function(){this.manifest.skip=N(e.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",e.attributes,["SKIPPED-SEGMENTS"])},part:function(){var t=this;l=!0;var n=this.manifest.segments.length,i=N(e.attributes);s.parts=s.parts||[],s.parts.push(i),i.byterange&&(i.byterange.hasOwnProperty("offset")||(i.byterange.offset=p),p=i.byterange.offset+i.byterange.length);var r=s.parts.length-1;this.warnOnMissingAttributes_("#EXT-X-PART #"+r+" for segment #"+n,e.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((function(e,n){e.hasOwnProperty("lastPart")||t.trigger("warn",{message:"#EXT-X-RENDITION-REPORT #"+n+" lacks required attribute(s): LAST-PART"})}))},"server-control":function(){var t=this.manifest.serverControl=N(e.attributes);t.hasOwnProperty("canBlockReload")||(t.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),q.call(this,this.manifest),t.canSkipDateranges&&!t.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint":function(){var t=this.manifest.segments.length,n=N(e.attributes),i=n.type&&"PART"===n.type;s.preloadHints=s.preloadHints||[],s.preloadHints.push(n),n.byterange&&(n.byterange.hasOwnProperty("offset")||(n.byterange.offset=i?p:0,i&&(p=n.byterange.offset+n.byterange.length)));var r=s.preloadHints.length-1;if(this.warnOnMissingAttributes_("#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t,e.attributes,["TYPE","URI"]),n.type)for(var a=0;a<s.preloadHints.length-1;a++){var o=s.preloadHints[a];o.type&&(o.type===n.type&&this.trigger("warn",{message:"#EXT-X-PRELOAD-HINT #"+r+" for segment #"+t+" has the same TYPE "+n.type+" as preload hint #"+a}))}},"rendition-report":function(){var t=N(e.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(t);var n=this.manifest.renditionReports.length-1,i=["LAST-MSN","URI"];l&&i.push("LAST-PART"),this.warnOnMissingAttributes_("#EXT-X-RENDITION-REPORT #"+n,e.attributes,i)},"part-inf":function(){this.manifest.partInf=N(e.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",e.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),q.call(this,this.manifest)}}[e.tagType]||c).call(r)}
2,uri:function(){s.uri=e.uri,a.push(s),this.manifest.targetDuration&&!("duration"in s)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),s.duration=this.manifest.targetDuration),i&&(s.key=i),s.timeline=h,n&&(s.map=n),p=0,s={}},comment:function(){},custom:function(){e.segment?(s.custom=s.custom||{},s.custom[e.customType]=e.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[e.customType]=e.data)}})[e.type].call(r)})),t}h(t,e);var n=t.prototype;return n.warnOnMissingAttributes_=function(e,t,n){var i=[];n.forEach((function(e){t.hasOwnProperty(e)||i.push(e)})),i.length&&this.trigger("warn",{message:e+" lacks required attribute(s): "+i.join(", ")})},n.push=function(e){this.lineStream.push(e)},n.end=function(){this.lineStream.push("\n"),this.trigger("end")},n.addParser=function(e){this.parseStream.addParser(e)},n.addTagMapper=function(e){this.parseStream.addTagMapper(e)},t}(x),j={mp4:/^(av0?1|avc0?[1234]|vp0?9|flac|opus|mp3|mp4a|mp4v|stpp.ttml.im1t)/,webm:/^(vp0?[89]|av0?1|opus|vorbis)/,ogg:/^(vp0?[89]|theora|flac|opus|vorbis)/,video:/^(av0?1|avc0?[1234]|vp0?[89]|hvc1|hev1|theora|mp4v)/,audio:/^(mp4a|flac|vorbis|opus|ac-[34]|ec-3|alac|mp3|speex|aac)/,text:/^(stpp.ttml.im1t)/,muxerVideo:/^(avc0?1)/,muxerAudio:/^(mp4a)/,muxerText:/a^/},B=["video","audio","text"],F=["Video","Audio","Text"],H=function(e){return e?e.replace(/avc1\.(\d+)\.(\d+)/i,(function(e,t,n){return"avc1."+("00"+Number(t).toString(16)).slice(-2)+"00"+("00"+Number(n).toString(16)).slice(-2)})):e},W=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach((function(e){var t;e=e.trim(),B.forEach((function(i){var r=j[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var a=e.substring(0,r[1].length),s=e.replace(a,"");n.push({type:a,details:s,mediaType:i})}})),t||n.push({type:e,details:"",mediaType:"unknown"})})),n},z=function(e){return void 0===e&&(e=""),j.audio.test(e.trim().toLowerCase())},V=function(e){if(e&&"string"==typeof e){var t,n=e.toLowerCase().split(",").map((function(e){return H(e.trim())})),i="video";1===n.length&&z(n[0])?i="audio":1===n.length&&(void 0===(t=n[0])&&(t=""),j.text.test(t.trim().toLowerCase()))&&(i="application");var r="mp4";return n.every((function(e){return j.mp4.test(e)}))?r="mp4":n.every((function(e){return j.webm.test(e)}))?r="webm":n.every((function(e){return j.ogg.test(e)}))&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},$=function(e){return void 0===e&&(e=""),r().MediaSource&&r().MediaSource.isTypeSupported&&r().MediaSource.isTypeSupported(V(e))||!1},X=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every((function(e){e=e.trim();for(var t=0;t<F.length;t++){if(j["muxer"+F[t]].test(e))return!0}return!1}))},G="mp4a.40.2",K=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,Y=/^application\/dash\+xml/i,Q=function(e){return K.test(e)?"hls":Y.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},J=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},Z=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||J(e)||e instanceof ArrayBuffer||(e="number"!=typeof e||"number"==typeof e&&e!=e?0:[e]),new Uint8Array(e&&e.buffer||e,e&&e.byteOffset||0,e&&e.byteLength||0))},ee=r().BigInt||Number,te=[ee("0x1"),ee("0x100"),ee("0x10000"),ee("0x1000000"),ee("0x100000000"),ee("0x10000000000"),ee("0x1000000000000"),ee("0x100000000000000"),ee("0x10000000000000000")],ne=(A=new Uint16Array([65484]),255===(L=new Uint8Array(A.buffer,A.byteOffset,A.byteLength))[0]||L[0],function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,a=n.le,s=void 0!==a&&a;e=Z(e);var o=s?"reduce":"reduceRight",l=(e[o]?e[o]:Array.prototype[o]).call(e,(function(t,n,i){var r=s?i:Math.abs(i+1-e.length);return t+ee(n)*te[r]}),ee(0));if(r){var c=te[e.length]/ee(2)-ee(1);(l=ee(l))>c&&(l-=c,l-=c,l-=ee(2))}return Number(l)}),ie=function(e,t){var n=(void 0===t?{}:t).le,i=void 0!==n&&n;("bigint"!=typeof e&&"number"!=typeof e||"number"==typeof e&&e!=e)&&(e=0),e=ee(e);for(var r,a=(r=e,Math.ceil(function(e){return e.toString(2).length}(r)/8)),s=new Uint8Array(new ArrayBuffer(a)),o=0;o<a;o++){var l=i?o:Math.abs(o+1-s.length);s[l]=Number(e/te[o]&ee(255)),e<0&&(s[l]=Math.abs(~s[l]),s[l]-=0===o?1:2)}return s},re=function(e,t){if("string"!=typeof e&&e&&"function"==typeof e.toString&&(e=e.toString()),"string"!=typeof e)return new Uint8Array;t||(e=unescape(encodeURIComponent(e)));for(var n=new Uint8Array(e.length),i=0;i<e.length;i++)n[i]=e.charCodeAt(i);return n},ae=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,a=void 0===r?0:r,s=i.mask,o=void 0===s?[]:s;e=Z(e);var l=(t=Z(t)).every?t.every:Array.prototype.every;return t.length&&e.length-a>=t.length&&l.call(t,(function(t,n){return t===(o[n]?o[n]&e[a+n]:e[a+n])}))},se=n(3969),oe=function(e){return!!e&&"object"==typeof e},le=function e(){for(var t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.reduce((function(t,n){return"object"!=typeof n||Object.keys(n).forEac
2h((function(i){Array.isArray(t[i])&&Array.isArray(n[i])?t[i]=t[i].concat(n[i]):oe(t[i])&&oe(n[i])?t[i]=e(t[i],n[i]):t[i]=n[i]})),t}),{})},ce=function(e){return Object.keys(e).map((function(t){return e[t]}))},ue=function(e){return e.reduce((function(e,t){return e.concat(t)}),[])},de=function(e){if(!e.length)return[];for(var t=[],n=0;n<e.length;n++)t.push(e[n]);return t},he=function(e,t){for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1},fe="INVALID_NUMBER_OF_PERIOD",pe="DASH_EMPTY_MANIFEST",me="DASH_INVALID_XML",ge="NO_BASE_URL",ve="SEGMENT_TIME_UNSPECIFIED",ye="UNSUPPORTED_UTC_TIMING_SCHEME",be=function(e){var t=e.baseUrl,n=void 0===t?"":t,i=e.source,a=void 0===i?"":i,s=e.range,o=void 0===s?"":s,l=e.indexRange,c=void 0===l?"":l,u={uri:a,resolvedUri:S(n||"",a)};if(o||c){var d,h=(o||c).split("-"),f=r().BigInt?r().BigInt(h[0]):parseInt(h[0],10),p=r().BigInt?r().BigInt(h[1]):parseInt(h[1],10);f<Number.MAX_SAFE_INTEGER&&"bigint"==typeof f&&(f=Number(f)),p<Number.MAX_SAFE_INTEGER&&"bigint"==typeof p&&(p=Number(p)),"bigint"==typeof(d="bigint"==typeof p||"bigint"==typeof f?r().BigInt(p)-r().BigInt(f)+r().BigInt(1):p-f+1)&&d<Number.MAX_SAFE_INTEGER&&(d=Number(d)),u.byterange={length:d,offset:f}}return u},_e=function(e){return e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e},Te={static:function(e){var t=e.duration,n=e.timescale,i=void 0===n?1:n,r=e.sourceDuration,a=e.periodDuration,s=_e(e.endNumber),o=t/i;return"number"==typeof s?{start:0,end:s}:"number"==typeof a?{start:0,end:a/o}:{start:0,end:r/o}},dynamic:function(e){var t=e.NOW,n=e.clientOffset,i=e.availabilityStartTime,r=e.timescale,a=void 0===r?1:r,s=e.duration,o=e.periodStart,l=void 0===o?0:o,c=e.minimumUpdatePeriod,u=void 0===c?0:c,d=e.timeShiftBufferDepth,h=void 0===d?1/0:d,f=_e(e.endNumber),p=(t+n)/1e3,m=i+l,g=p+u-m,v=Math.ceil(g*a/s),y=Math.floor((p-m-h)*a/s),b=Math.floor((p-m)*a/s);return{start:Math.max(0,y),end:"number"==typeof f?f:Math.min(v,b)}}},ke=function(e){var t=e.type,n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodDuration,s=e.sourceDuration,o=Te[t](e),l=function(e,t){for(var n=[],i=e;i<t;i++)n.push(i);return n}(o.start,o.end).map(function(e){return function(t){var n=e.duration,i=e.timescale,r=void 0===i?1:i,a=e.periodStart,s=e.startNumber;return{number:(void 0===s?1:s)+t,duration:n/r,timeline:a,time:t*n}}}(e));if("static"===t){var c=l.length-1,u="number"==typeof a?a:s;l[c].duration=u-n/r*c}return l},we=function(e){var t=e.baseUrl,n=e.initialization,i=void 0===n?{}:n,r=e.sourceDuration,a=e.indexRange,s=void 0===a?"":a,o=e.periodStart,l=e.presentationTime,c=e.number,u=void 0===c?0:c,d=e.duration;if(!t)throw new Error(ge);var h=be({baseUrl:t,source:i.sourceURL,range:i.range}),f=be({baseUrl:t,source:t,indexRange:s});if(f.map=h,d){var p=ke(e);p.length&&(f.duration=p[0].duration,f.timeline=p[0].timeline)}else r&&(f.duration=r,f.timeline=o);return f.presentationTime=l||o,f.number=u,[f]},Se=function(e,t,n){var i,a=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,o=e.timeline||0,l=e.sidx.byterange,c=l.offset+l.length,u=t.timescale,d=t.references.filter((function(e){return 1!==e.referenceType})),h=[],f=e.endList?"static":"dynamic",p=e.sidx.timeline,m=p,g=e.mediaSequence||0;i="bigint"==typeof t.firstOffset?r().BigInt(c)+t.firstOffset:c+t.firstOffset;for(var v=0;v<d.length;v++){var y=t.references[v],b=y.referencedSize,_=y.subsegmentDuration,T=void 0;T="bigint"==typeof i?i+r().BigInt(b)-r().BigInt(1):i+b-1;var k=we({baseUrl:n,timescale:u,timeline:o,periodStart:p,presentationTime:m,number:g,duration:_,sourceDuration:s,indexRange:i+"-"+T,type:f})[0];a&&(k.map=a),h.push(k),i+="bigint"==typeof i?r().BigInt(b):b,m+=_/u,g++}return e.segments=h,e},xe=["AUDIO","SUBTITLES"],Ce=function(e){return(t=e,n=function(e){return e.timeline},ce(t.reduce((function(e,t){return t.forEach((function(t){e[n(t)]=t})),e}),{}))).sort((function(e,t){return e.timeline>t.timeline?1:-1}));var t,n},Ee=function(e){var t,n,i=[];return t=e,n=function(e,t,n,r){i=i.concat(e.playlists||[])},xe.forEach((function(e){for(var i in t.mediaGroups[e])for(var r in t.mediaGroups[e][i]){var a=t.mediaGroups[e][i][r];n(a,e,i,r)}})),i},Ae=function(e){var t=e.playlist,n=e.mediaSequence;
2t.mediaSequence=n,t.segments.forEach((function(e,n){e.number=t.mediaSequence+n}))},Le=function(e){var t=e.oldManifest,n=e.newManifest,i=t.playlists.concat(Ee(t)),r=n.playlists.concat(Ee(n));return n.timelineStarts=Ce([t.timelineStarts,n.timelineStarts]),function(e){var t=e.oldPlaylists,n=e.newPlaylists,i=e.timelineStarts;n.forEach((function(e){e.discontinuitySequence=he(i,(function(t){return t.timeline===e.timeline}));var n=function(e,t){for(var n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null}(t,e.attributes.NAME);if(n&&!e.sidx){var r=e.segments[0],a=he(n.segments,(function(e){return Math.abs(e.presentationTime-r.presentationTime)<.016666666666666666}));if(-1===a)return Ae({playlist:e,mediaSequence:n.mediaSequence+n.segments.length}),e.segments[0].discontinuity=!0,e.discontinuityStarts.unshift(0),void((!n.segments.length&&e.timeline>n.timeline||n.segments.length&&e.timeline>n.segments[n.segments.length-1].timeline)&&e.discontinuitySequence--);n.segments[a].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,e.discontinuityStarts.unshift(0),e.discontinuitySequence--),Ae({playlist:e,mediaSequence:n.segments[a].number})}}))}({oldPlaylists:i,newPlaylists:r,timelineStarts:n.timelineStarts}),n},Ie=function(e){return e&&e.uri+"-"+(t=e.byterange,n="bigint"==typeof t.offset||"bigint"==typeof t.length?r().BigInt(t.offset)+r().BigInt(t.length)-r().BigInt(1):t.offset+t.length-1,t.offset+"-"+n);var t,n},Pe=function(e){return ce(e.reduce((function(e,t){var n=t.attributes.id+(t.attributes.lang||"");if(e[n]){var i;if(t.segments)t.segments[0]&&(t.segments[0].discontinuity=!0),(i=e[n].segments).push.apply(i,t.segments);t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)}else e[n]=t,e[n].attributes.timelineStarts=[];return e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e}),{})).map((function(e){var t,n;return e.discontinuityStarts=(t=e.segments||[],n="discontinuity",t.reduce((function(e,t,i){return t[n]&&e.push(i),e}),[])),e}))},Oe=function(e,t){var n=Ie(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&Se(e,i,e.sidx.resolvedUri),e},De=function(e,t){if(void 0===t&&(t={}),!Object.keys(t).length)return e;for(var n in e)e[n]=Oe(e[n],t);return e},Re=function(e){var t,n=e.attributes,i=e.segments,r=e.sidx,a=e.discontinuityStarts,s={attributes:(t={NAME:n.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:n.width,height:n.height},CODECS:n.codecs,BANDWIDTH:n.bandwidth},t["PROGRAM-ID"]=1,t),uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:"",targetDuration:n.duration,discontinuityStarts:a,timelineStarts:n.timelineStarts,segments:i};return n.contentProtection&&(s.contentProtection=n.contentProtection),r&&(s.sidx=r),s},Me=function(e){var t=e.attributes;return"video/mp4"===t.mimeType||"video/webm"===t.mimeType||"video"===t.contentType},Ne=function(e){var t=e.attributes;return"audio/mp4"===t.mimeType||"audio/webm"===t.mimeType||"audio"===t.contentType},qe=function(e){var t=e.attributes;return"text/vtt"===t.mimeType||"text"===t.contentType},Ue=function(e){return e?Object.keys(e).reduce((function(t,n){var i=e[n];return t.concat(i.playlists)}),[]):[]},je=function(e){var t,n=e.dashPlaylists,i=e.locations,r=e.sidxMapping,a=void 0===r?{}:r,s=e.previousManifest;if(!n.length)return{};var o=n[0].attributes,l=o.sourceDuration,c=o.type,u=o.suggestedPresentationDelay,d=o.minimumUpdatePeriod,h=Pe(n.filter(Me)).map(Re),f=Pe(n.filter(Ne)),p=Pe(n.filter(qe)),m=n.map((function(e){return e.attributes.captionServices})).filter(Boolean),g={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:(t={AUDIO:{},VIDEO:{}},t["CLOSED-CAPTIONS"]={},t.SUBTITLES={},t),uri:"",duration:l,playlists:De(h,a)};d>=0&&(g.minimumUpdatePeriod=1e3*d),i&&(g.locations=i),"dynamic"===c&&(g.suggestedPresentationDelay=u);var v,y,b=0===g.playlists.length,_=f.length?function(e,t,n){var i;void 0===t&&(t={}),void 0===n&&(n=!1);var r=e.reduce((function(e,r){var a=r.attributes.role&&r.attributes.role.value||"",s=r.attributes.lang||"",o=r.attributes.label||"main";if(s&&!r.attributes.label){var l=a?" ("+a+")":"";o=""+r.attributes.lang+l}e[o]||(e[o]={language:s,autoselect:!0,default:"main"===a,playlists:[],uri:""});var c=Oe(function(e,t){var n,i=e.attributes,r=e.segments,a=e.sidx,s=e.mediaSequence,o=e.discontinuitySequence,l=e.discontinuityStarts,c={attributes:(n={NAME:i.id,BANDWIDTH:i.bandwidth,CODECS:i.codecs}
2,n["PROGRAM-ID"]=1,n),uri:"",endList:"static"===i.type,timeline:i.periodStart,resolvedUri:"",targetDuration:i.duration,discontinuitySequence:o,discontinuityStarts:l,timelineStarts:i.timelineStarts,mediaSequence:s,segments:r};return i.contentProtection&&(c.contentProtection=i.contentProtection),a&&(c.sidx=a),t&&(c.attributes.AUDIO="audio",c.attributes.SUBTITLES="subs"),c}(r,n),t);return e[o].playlists.push(c),void 0===i&&"main"===a&&((i=r).default=!0),e}),{});return i||(r[Object.keys(r)[0]].default=!0),r}(f,a,b):null,T=p.length?function(e,t){return void 0===t&&(t={}),e.reduce((function(e,n){var i=n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(Oe(function(e){var t,n=e.attributes,i=e.segments,r=e.mediaSequence,a=e.discontinuityStarts,s=e.discontinuitySequence;void 0===i&&(i=[{uri:n.baseUrl,timeline:n.periodStart,resolvedUri:n.baseUrl||"",duration:n.sourceDuration,number:0}],n.duration=n.sourceDuration);var o=((t={NAME:n.id,BANDWIDTH:n.bandwidth})["PROGRAM-ID"]=1,t);return n.codecs&&(o.CODECS=n.codecs),{attributes:o,uri:"",endList:"static"===n.type,timeline:n.periodStart,resolvedUri:n.baseUrl||"",targetDuration:n.duration,timelineStarts:n.timelineStarts,discontinuityStarts:a,discontinuitySequence:s,mediaSequence:r,segments:i}}(n),t)),e}),{})}(p,a):null,k=h.concat(Ue(_),Ue(T)),w=k.map((function(e){return e.timelineStarts}));return g.timelineStarts=Ce(w),v=k,y=g.timelineStarts,v.forEach((function(e){e.mediaSequence=0,e.discontinuitySequence=he(y,(function(t){return t.timeline===e.timeline})),e.segments&&e.segments.forEach((function(e,t){e.number=t}))})),_&&(g.mediaGroups.AUDIO.audio=_),T&&(g.mediaGroups.SUBTITLES.subs=T),m.length&&(g.mediaGroups["CLOSED-CAPTIONS"].cc=m.reduce((function(e,t){return t?(t.forEach((function(t){var n=t.channel,i=t.language;e[i]={autoselect:!1,default:!1,instreamId:n,language:i},t.hasOwnProperty("aspectRatio")&&(e[i].aspectRatio=t.aspectRatio),t.hasOwnProperty("easyReader")&&(e[i].easyReader=t.easyReader),t.hasOwnProperty("3D")&&(e[i]["3D"]=t["3D"])})),e):e}),{})),s?Le({oldManifest:s,newManifest:g}):g},Be=function(e,t,n){var i=e.NOW,r=e.clientOffset,a=e.availabilityStartTime,s=e.timescale,o=void 0===s?1:s,l=e.periodStart,c=void 0===l?0:l,u=e.minimumUpdatePeriod,d=(i+r)/1e3+(void 0===u?0:u)-(a+c);return Math.ceil((d*o-t)/n)},Fe=function(e,t){for(var n=e.type,i=e.minimumUpdatePeriod,r=void 0===i?0:i,a=e.media,s=void 0===a?"":a,o=e.sourceDuration,l=e.timescale,c=void 0===l?1:l,u=e.startNumber,d=void 0===u?1:u,h=e.periodStart,f=[],p=-1,m=0;m<t.length;m++){var g=t[m],v=g.d,y=g.r||0,b=g.t||0;p<0&&(p=b),b&&b>p&&(p=b);var _=void 0;if(y<0){var T=m+1;_=T===t.length?"dynamic"===n&&r>0&&s.indexOf("$Number$")>0?Be(e,p,v):(o*c-p)/v:(t[T].t-p)/v}else _=y+1;for(var k=d+f.length+_,w=d+f.length;w<k;)f.push({number:w,duration:v/c,time:p,timeline:h}),p+=v,w++}return f},He=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,We=function(e,t){return e.replace(He,function(e){return function(t,n,i,r){if("$$"===t)return"$";if(void 0===e[n])return t;var a=""+e[n];return"RepresentationID"===n?a:(r=i?parseInt(r,10):1,a.length>=r?a:""+new Array(r-a.length+1).join("0")+a)}}(t))},ze=function(e,t){var n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},i=e.initialization,r=void 0===i?{sourceURL:"",range:""}:i,a=be({baseUrl:e.baseUrl,source:We(r.sourceURL,n),range:r.range}),s=function(e,t){return e.duration||t?e.duration?ke(e):Fe(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}]}(e,t);return s.map((function(t){n.Number=t.number,n.Time=t.time;var i=We(e.media||"",n),r=e.timescale||1,s=e.presentationTimeOffset||0,o=e.periodStart+(t.time-s)/r;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:S(e.baseUrl||"",i),map:a,number:t.number,presentationTime:o}}))},Ve=function(e,t){var n=e.duration,i=e.segmentUrls,r=void 0===i?[]:i,a=e.periodStart;if(!n&&!t||n&&t)throw new Error(ve);var s,o=r.map((function(t){return function(e,t){var n=e.baseUrl,i=e.initialization,r=void 0===i?{}:i,a=be({baseUrl:n,source:r.sourceURL,range:r.range}),s=be({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=a,s}(e,t)}));return n&&(s=ke(e)),t&&(s=Fe(e,t)),s.map((function(t,n){if(o[n]){var i=o[n],r=e.timescale||1,s=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=a+(t.time-s)/r,i}})).filter((function(e){return e}))},$e=function(e){var t,n,i=e.attributes,r=e.segmentInfo;r.template?(n=ze,t=le(i,r.template)):r.base?(n=we,t=le(i,r.base)):r.list&&(n=Ve,t=le(i,r.list));var a={attributes:i};if(!n)return a;var s=n(t,r.segmentTimeline);if(t.duration){var o=t,l=o.duration,c=o.timescale,u=void 0===c?1:c;t.duration=l/u}else s.length?t.duration=s.reduce((function(e,t){return Math.max(e,Math.ceil(t.duration))}),0):t.duration=0;return a.attributes=t,a.segments=s,r.base&&t.indexRange&&(a.sidx=s[0],a.segments=[]),a},Xe=function(e,t){return de(e.childNodes).filter((function(e){return e.tagName===t}))},Ge=function(e){return e.textContent.trim()},Ke=function(e){var t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;var n=t.slice(1),i=n[0],r=n[1],a=n[2],s=n[3],o=n[4],l=n[5];
2return 31536e3*parseFloat(i||0)+2592e3*parseFloat(r||0)+86400*parseFloat(a||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(l||0)},Ye={mediaPresentationDuration:function(e){return Ke(e)},availabilityStartTime:function(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:function(e){return Ke(e)},suggestedPresentationDelay:function(e){return Ke(e)},type:function(e){return e},timeShiftBufferDepth:function(e){return Ke(e)},start:function(e){return Ke(e)},width:function(e){return parseInt(e,10)},height:function(e){return parseInt(e,10)},bandwidth:function(e){return parseInt(e,10)},startNumber:function(e){return parseInt(e,10)},timescale:function(e){return parseInt(e,10)},presentationTimeOffset:function(e){return parseInt(e,10)},duration:function(e){var t=parseInt(e,10);return isNaN(t)?Ke(e):t},d:function(e){return parseInt(e,10)},t:function(e){return parseInt(e,10)},r:function(e){return parseInt(e,10)},DEFAULT:function(e){return e}},Qe=function(e){return e&&e.attributes?de(e.attributes).reduce((function(e,t){var n=Ye[t.name]||Ye.DEFAULT;return e[t.name]=n(t.value),e}),{}):{}},Je={"urn:uuid:1077efec-c0b2-4d02-ace3-3c1e52e2fb4b":"org.w3.clearkey","urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed":"com.widevine.alpha","urn:uuid:9a04f079-9840-4286-ab92-e65be0885f95":"com.microsoft.playready","urn:uuid:f239e769-efa3-4850-9c16-a903c6932efb":"com.adobe.primetime"},Ze=function(e,t){return t.length?ue(e.map((function(e){return t.map((function(t){return S(e,Ge(t))}))}))):e},et=function(e){var t=Xe(e,"SegmentTemplate")[0],n=Xe(e,"SegmentList")[0],i=n&&Xe(n,"SegmentURL").map((function(e){return le({tag:"SegmentURL"},Qe(e))})),r=Xe(e,"SegmentBase")[0],a=n||t,s=a&&Xe(a,"SegmentTimeline")[0],o=n||r||t,l=o&&Xe(o,"Initialization")[0],c=t&&Qe(t);c&&l?c.initialization=l&&Qe(l):c&&c.initialization&&(c.initialization={sourceURL:c.initialization});var u={template:c,segmentTimeline:s&&Xe(s,"S").map((function(e){return Qe(e)})),list:n&&le(Qe(n),{segmentUrls:i,initialization:Qe(l)}),base:r&&le(Qe(r),{initialization:Qe(l)})};return Object.keys(u).forEach((function(e){u[e]||delete u[e]})),u},tt=function(e,t,n){return function(i){var r,a=Qe(i),s=Ze(t,Xe(i,"BaseURL")),o=Xe(i,"Role")[0],l={role:Qe(o)},c=le(e,a,l),u=Xe(i,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(r=Qe(u)).schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(e){var t,n;if(n=e,/^CC\d=/.test(e)){var i=e.split("=");t=i[0],n=i[1]}else/^CC\d$/.test(e)&&(t=e);return{channel:t,language:n}})):"urn:scte:dash:cc:cea-708:2015"===r.schemeIdUri?("string"!=typeof r.value?[]:r.value.split(";")).map((function(e){var t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){var n=e.split("="),i=n[0],r=n[1],a=void 0===r?"":r;t.channel=i,t.language=e,a.split(",").forEach((function(e){var n=e.split(":"),i=n[0],r=n[1];"lang"===i?t.language=r:"er"===i?t.easyReader=Number(r):"war"===i?t.aspectRatio=Number(r):"3D"===i&&(t["3D"]=Number(r))}))}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t})):void 0;d&&(c=le(c,{captionServices:d}));var h=Xe(i,"Label")[0];if(h&&h.childNodes.length){var f=h.childNodes[0].nodeValue.trim();c=le(c,{label:f})}var p=Xe(i,"ContentProtection").reduce((function(e,t){var n=Qe(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());var i=Je[n.schemeIdUri];if(i){e[i]={attributes:n};
2var r=Xe(t,"cenc:pssh")[0];if(r){var a=Ge(r);e[i].pssh=a&&E(a)}}return e}),{});Object.keys(p).length&&(c=le(c,{contentProtection:p}));var m=et(i),g=Xe(i,"Representation"),v=le(n,m);return ue(g.map(function(e,t,n){return function(i){var r=Xe(i,"BaseURL"),a=Ze(t,r),s=le(e,Qe(i)),o=et(i);return a.map((function(e){return{segmentInfo:le(n,o),attributes:le(s,{baseUrl:e})}}))}}(c,s,v)))}},nt=function(e,t){return function(n,i){var r=Ze(t,Xe(n.node,"BaseURL")),a=le(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(a.periodDuration=n.attributes.duration);var s=Xe(n.node,"AdaptationSet"),o=et(n.node);return ue(s.map(tt(a,r,o)))}},it=function(e){if(""===e)throw new Error(pe);var t,n,i=new se.DOMParser;try{n=(t=i.parseFromString(e,"application/xml"))&&"MPD"===t.documentElement.tagName?t.documentElement:null}catch(e){}if(!n||n&&n.getElementsByTagName("parsererror").length>0)throw new Error(me);return n},rt=function(e,t){void 0===t&&(t={});var n=function(e,t){void 0===t&&(t={});var n=t,i=n.manifestUri,r=void 0===i?"":i,a=n.NOW,s=void 0===a?Date.now():a,o=n.clientOffset,l=void 0===o?0:o,c=Xe(e,"Period");if(!c.length)throw new Error(fe);var u=Xe(e,"Location"),d=Qe(e),h=Ze([r],Xe(e,"BaseURL"));d.type=d.type||"static",d.sourceDuration=d.mediaPresentationDuration||0,d.NOW=s,d.clientOffset=l,u.length&&(d.locations=u.map(Ge));var f=[];return c.forEach((function(e,t){var n=Qe(e),i=f[t-1];n.start=function(e){var t=e.attributes,n=e.priorPeriodAttributes,i=e.mpdType;return"number"==typeof t.start?t.start:n&&"number"==typeof n.start&&"number"==typeof n.duration?n.start+n.duration:n||"static"!==i?null:0}({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:d.type}),f.push({node:e,attributes:n})})),{locations:d.locations,representationInfo:ue(f.map(nt(d,h)))}}(it(e),t),i=n.representationInfo.map($e);return je({dashPlaylists:i,locations:n.locations,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest})},at=function(e){return function(e){var t=Xe(e,"UTCTiming")[0];if(!t)return null;var n=Qe(t);switch(n.schemeIdUri){case"urn:mpeg:dash:utc:http-head:2014":case"urn:mpeg:dash:utc:http-head:2012":n.method="HEAD";break;case"urn:mpeg:dash:utc:http-xsdate:2014":case"urn:mpeg:dash:utc:http-iso:2014":case"urn:mpeg:dash:utc:http-xsdate:2012":case"urn:mpeg:dash:utc:http-iso:2012":n.method="GET";break;case"urn:mpeg:dash:utc:direct:2014":case"urn:mpeg:dash:utc:direct:2012":n.method="DIRECT",n.value=Date.parse(n.value);break;default:throw new Error(ye)}return n}(it(e))},st=n(4221),ot=n.n(st),lt=Z([73,68,51]),ct=function e(t,n){return void 0===n&&(n=0),(t=Z(t)).length-n<10||!ae(t,lt,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=Z(e))[t+5],i=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return(16&n)>>4?i+20:i+10}(t,n),e(t,n))},ut=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?re(e):e}),dt=function(e){e=Z(e);for(var t=[],n=0;e.length>n;){var i=e[n],r=0,a=0,s=e[++a];for(a++;128&s;)r=(127&s)<<7,s=e[a],a++;r+=127&s;for(var o=0;o<I.length;o++){var l=I[o],c=l.id,u=l.parser;if(i===c){t.push(u(e.subarray(a,a+r)));break}}n+=r+a}return t};I=[{id:3,parser:function(e){var t={tag:3,id:e[0]<<8|e[1],flags:e[2],size:3,dependsOnEsId:0,ocrEsId:0,descriptors:[],url:""};if(128&t.flags&&(t.dependsOnEsId=e[t.size]<<8|e[t.size+1],t.size+=2),64&t.flags){var n=e[t.size];t.url=function(e){if(!e)return"";e=Array.prototype.slice.call(e);var t=String.fromCharCode.apply(null,Z(e));try{return decodeURIComponent(escape(t))}catch(e){}return t}(e.subarray(t.size+1,t.size+1+n)),t.size+=n}return 32&t.flags&&(t.ocrEsId=e[t.size]<<8|e[t.size+1],t.size+=2),t.descriptors=dt(e.subarray(t.size))||[],t}},{id:4,parser:function(e){return{tag:4,oti:e[0],streamType:e[1],bufferSize:e[2]<<16|e[3]<<8|e[4],maxBitrate:e[5]<<24|e[6]<<16|e[7]<<8|e[8],avgBitrate:e[9]<<24|e[10]<<16|e[11]<<8|e[12],descriptors:dt(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var ht=function e(t,n,i){void 0===i&&(i=!1),n=function(e){return Array.isArray(e)?e.map((function(e){return ut(e)})):[ut(e)]}(n),t=Z(t);var r=[];if(!n.length)return r;for(var a=0;a<t.length;){var s=(t[a]<<24|t[a+1]<<16|t[a+2]<<8|t[a+3])>>>0,o=t.subarray(a+4,a+8);if(0===s)break;var l=a+s;if(l>t.length){if(i)break;l=t.length}var c=t.subarray(a+8,l);ae(o,n[0])&&(1===n.length?r.push(c):r.push.apply(r,e(c,n.slice(1),i))),a=l}return r},ft={EBML:Z([26,69,223,163]),DocType:Z([66,130]),Segment:Z([24,83,128,103]),SegmentInfo:Z([21,73,169,102]),Tracks:Z([22,84,174,107]),Track:Z([174]),TrackNumber:Z([215]),DefaultDuration:Z([35,227,131]),TrackEntry:Z([174]),TrackType:Z([131]),FlagDefault:Z([136]),CodecID:Z([134]),CodecPr
2ivate:Z([99,162]),VideoTrack:Z([224]),AudioTrack:Z([225]),Cluster:Z([31,67,182,117]),Timestamp:Z([231]),TimestampScale:Z([42,215,177]),BlockGroup:Z([160]),BlockDuration:Z([155]),Block:Z([161]),SimpleBlock:Z([163])},pt=[128,64,32,16,8,4,2,1],mt=function(e,t,n,i){void 0===n&&(n=!0),void 0===i&&(i=!1);var r=function(e){for(var t=1,n=0;n<pt.length&&!(e&pt[n]);n++)t++;return t}(e[t]),a=e.subarray(t,t+r);return n&&((a=Array.prototype.slice.call(e,t,t+r))[0]^=pt[r-1]),{length:r,value:ne(a,{signed:i}),bytes:a}},gt=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map((function(t){return e(t)})):"number"==typeof t?ie(t):t},vt=function e(t,n,i){if(i>=n.length)return n.length;var r=mt(n,i,!1);if(ae(t.bytes,r.bytes))return i;var a=mt(n,i+r.length);return e(t,n,i+a.length+a.value+r.length)},yt=function e(t,n){n=function(e){return Array.isArray(e)?e.map((function(e){return gt(e)})):[gt(e)]}(n),t=Z(t);var i=[];if(!n.length)return i;for(var r=0;r<t.length;){var a=mt(t,r,!1),s=mt(t,r+a.length),o=r+a.length+s.length;127===s.value&&(s.value=vt(a,t,o),s.value!==t.length&&(s.value-=o));var l=o+s.value>t.length?t.length:o+s.value,c=t.subarray(o,l);ae(n[0],a.bytes)&&(1===n.length?i.push(c):i=i.concat(e(c,n.slice(1)))),r+=a.length+s.length+c.length}return i},bt=Z([0,0,0,1]),_t=Z([0,0,1]),Tt=Z([0,0,3]),kt=function(e){for(var t=[],n=1;n<e.length-2;)ae(e.subarray(n,n+3),Tt)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),a=0;for(n=0;n<i;a++,n++)a===t[0]&&(a++,t.shift()),r[n]=e[a];return r},wt=function(e,t,n,i){void 0===i&&(i=1/0),e=Z(e),n=[].concat(n);for(var r,a=0,s=0;a<e.length&&(s<i||r);){var o=void 0;if(ae(e.subarray(a),bt)?o=4:ae(e.subarray(a),_t)&&(o=3),o){if(s++,r)return kt(e.subarray(r,a));var l=void 0;"h264"===t?l=31&e[a+o]:"h265"===t&&(l=e[a+o]>>1&63),-1!==n.indexOf(l)&&(r=a+o),a+=o+("h264"===t?1:2)}else a++}return e.subarray(0,0)},St={webm:Z([119,101,98,109]),matroska:Z([109,97,116,114,111,115,107,97]),flac:Z([102,76,97,67]),ogg:Z([79,103,103,83]),ac3:Z([11,119]),riff:Z([82,73,70,70]),avi:Z([65,86,73]),wav:Z([87,65,86,69]),"3gp":Z([102,116,121,112,51,103]),mp4:Z([102,116,121,112]),fmp4:Z([115,116,121,112]),mov:Z([102,116,121,112,113,116]),moov:Z([109,111,111,118]),moof:Z([109,111,111,102])},xt={aac:function(e){var t=ct(e);return ae(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=ct(e);return ae(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=yt(e,[ft.EBML,ft.DocType])[0];return ae(t,St.webm)},mkv:function(e){var t=yt(e,[ft.EBML,ft.DocType])[0];return ae(t,St.matroska)},mp4:function(e){return!xt["3gp"](e)&&!xt.mov(e)&&(!(!ae(e,St.mp4,{offset:4})&&!ae(e,St.fmp4,{offset:4}))||(!(!ae(e,St.moof,{offset:4})&&!ae(e,St.moov,{offset:4}))||void 0))},mov:function(e){return ae(e,St.mov,{offset:4})},"3gp":function(e){return ae(e,St["3gp"],{offset:4})},ac3:function(e){var t=ct(e);return ae(e,St.ac3,{offset:t})},ts:function(e){if(e.length<189&&e.length>=1)return 71===e[0];for(var t=0;t+188<e.length&&t<188;){if(71===e[t]&&71===e[t+188])return!0;t+=1}return!1},flac:function(e){var t=ct(e);return ae(e,St.flac,{offset:t})},ogg:function(e){return ae(e,St.ogg)},avi:function(e){return ae(e,St.riff)&&ae(e,St.avi,{offset:8})},wav:function(e){return ae(e,St.riff)&&ae(e,St.wav,{offset:8})},h264:function(e){return function(e,t,n){return wt(e,"h264",t,n)}(e,7,3).length},h265:function(e){return function(e,t,n){return wt(e,"h265",t,n)}(e,[32,33],3).length}},Ct=Object.keys(xt).filter((function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e})).concat(["ts","h264","h265"]);Ct.forEach((function(e){var t=xt[e];xt[e]=function(e){return t(Z(e))}}));for(var Et,At=xt,Lt=function(e){e=Z(e);for(var t=0;t<Ct.length;t++){var n=Ct[t];if(At[n](e))return n}return""},It=n(1489),Pt="7.19.2",Ot={},Dt=function(e,t){return Ot[e]=Ot[e]||[],t&&(Ot[e]=Ot[e].concat(t)),Ot[e]},Rt=function(e,t){var n=Dt(e).indexOf(t);return!(n<=-1)&&(Ot[e]=Ot[e].slice(),Ot[e].splice(n,1),!0)},Mt={prefixed:!0},Nt=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror","-moz-full-screen"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError","-ms-fullscreen"]],qt=Nt[0],Ut=0;Ut<Nt.length;Ut++)if(Nt[Ut][1]in s()){Et=Nt[Ut];break}if(Et){for(var jt=0;jt<Et.length;jt++)Mt[qt[jt]]=Et[jt];Mt.prefixed=Et[0]!==qt[0]}var Bt=[];var Ft=function e(t){var n,i="info",a=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];n("log",i,t)};return n=function(e,t){return function(n,i,a){var s=t.levels[i],o=new RegExp("^("+s+")$");if("log"!==n&&a.unshift(n.toUpperCase()+":"),a.unshift(e+":"),Bt){Bt.push([].concat(a));var l=Bt.length-1e3;Bt.splice(0,l>0?l:0)}if(r().console){var c=r().console[n];c||"debug"!==n||(c=r().console.info||r().console.log),c&&s&&o.test(n)&&c[Array.isArray(a)?"apply":"call"](r().console,a)}}}(t,a),a.createLogger=function(n){return e(t+": "+n)},a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:i},a.level=function(e){if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error('"'+e+'" in not a valid log level');i=e}return i},(a.history=function(){return Bt?[].concat(Bt):[]}).filter=function(e){return(Bt||[]).filter((function(t){return new RegExp(".*"+e+".*").test(t[0])}))},a.history.clear=function(){Bt&&(Bt.length=0)},a.history.disable=function(){null!==Bt&&(Bt.length=0,Bt=null)},a.history.enable=function(){null===Bt&&(Bt=[])},a.error=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("error",i,t)},a.warn=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("warn",i,t)},a.debug=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return n("debug",i,t)},a}("VIDEOJS"),Ht=Ft.createLogger,Wt=Object.prototype.toString,zt=function(e){return Xt(e)?Object.keys(e):[]};function Vt(e,t){zt(e).forEach((function(n){return t(e[n],n)}))}function $t(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),i=1;i<t;i++)n[i-1]=arguments[i];return Object.assign?o.apply(void 0,[e].concat(n)):(n.forEach((function(t){t&&Vt(t,(function(t,n){e[n]=t}))})),e)}function Xt(e){return!!e&&"object"==typeof e}function Gt(e){return Xt(e)&&"[object Object]"===Wt.call(e)&&e.constructor===Object}function Kt(e,t){if(!e||!t)return"";if("function"==typeof r().getComputedStyle){var n;try{n=r().getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}var Yt,Qt=r().navigator&&r().navigator.userAgent||"",Jt=/AppleWeb
2Kit\/([\d.]+)/i.exec(Qt),Zt=Jt?parseFloat(Jt.pop()):null,en=/iPod/i.test(Qt),tn=(Yt=Qt.match(/OS (\d+)_/i))&&Yt[1]?Yt[1]:null,nn=/Android/i.test(Qt),rn=function(){var e=Qt.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!e)return null;var t=e[1]&&parseFloat(e[1]),n=e[2]&&parseFloat(e[2]);return t&&n?parseFloat(e[1]+"."+e[2]):t||null}(),an=nn&&rn<5&&Zt<537,sn=/Firefox/i.test(Qt),on=/Edg/i.test(Qt),ln=!on&&(/Chrome/i.test(Qt)||/CriOS/i.test(Qt)),cn=function(){var e=Qt.match(/(Chrome|CriOS)\/(\d+)/);return e&&e[2]?parseFloat(e[2]):null}(),un=function(){var e=/MSIE\s(\d+)\.\d/.exec(Qt),t=e&&parseFloat(e[1]);return!t&&/Trident\/7.0/i.test(Qt)&&/rv:11.0/.test(Qt)&&(t=11),t}(),dn=/Safari/i.test(Qt)&&!ln&&!nn&&!on,hn=/Windows/i.test(Qt),fn=Boolean(Tn()&&("ontouchstart"in r()||r().navigator.maxTouchPoints||r().DocumentTouch&&r().document instanceof r().DocumentTouch)),pn=/iPad/i.test(Qt)||dn&&fn&&!/iPhone/i.test(Qt),mn=/iPhone/i.test(Qt)&&!pn,gn=mn||pn||en,vn=(dn||gn)&&!ln,yn=Object.freeze({__proto__:null,IS_IPOD:en,IOS_VERSION:tn,IS_ANDROID:nn,ANDROID_VERSION:rn,IS_NATIVE_ANDROID:an,IS_FIREFOX:sn,IS_EDGE:on,IS_CHROME:ln,CHROME_VERSION:cn,IE_VERSION:un,IS_SAFARI:dn,IS_WINDOWS:hn,TOUCH_ENABLED:fn,IS_IPAD:pn,IS_IPHONE:mn,IS_IOS:gn,IS_ANY_SAFARI:vn});function bn(e){return"string"==typeof e&&Boolean(e.trim())}function _n(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}function Tn(){return s()===r().document}function kn(e){return Xt(e)&&1===e.nodeType}function wn(){try{return r().parent!==r().self}catch(e){return!0}}function Sn(e){return function(t,n){if(!bn(t))return s()[e](null);bn(n)&&(n=s().querySelector(n));var i=kn(n)?n:s();return i[e]&&i[e](t)}}function xn(e,t,n,i){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={});var r=s().createElement(e);return Object.getOwnPropertyNames(t).forEach((function(e){var n=t[e];-1!==e.indexOf("aria-")||"role"===e||"type"===e?(Ft.warn("Setting attributes in the second argument of createEl()\nhas been deprecated. Use the third argument instead.\ncreateEl(type, properties, attributes). Attempting to set "+e+" to "+n+"."),r.setAttribute(e,n)):"textContent"===e?Cn(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)})),Object.getOwnPropertyNames(n).forEach((function(e){r.setAttribute(e,n[e])})),i&&Vn(r,i),r}function Cn(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function En(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function An(e,t){return _n(t),e.classList?e.classList.contains(t):(n=t,new RegExp("(^|\\s)"+n+"($|\\s)")).test(e.className);var n}function Ln(e,t){return e.classList?e.classList.add(t):An(e,t)||(e.className=(e.className+" "+t).trim()),e}function In(e,t){return e?(e.classList?e.classList.remove(t):(_n(t),e.className=e.className.split(/\s+/).filter((function(e){return e!==t})).join(" ")),e):(Ft.warn("removeClass was called with an element that doesn't exist"),null)}function Pn(e,t,n){var i=An(e,t);if("function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=!i),n!==i)return n?Ln(e,t):In(e,t),e}function On(e,t){Object.getOwnPropertyNames(t).forEach((function(n){var i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)}))}function Dn(e){var t={},n=",autoplay,controls,playsinline,loop,muted,default,defaultMuted,";if(e&&e.attributes&&e.attributes.length>0)for(var i=e.attributes,r=i.length-1;r>=0;r--){var a=i[r].name,s=i[r].value;"boolean"!=typeof e[a]&&-1===n.indexOf(","+a+",")||(s=null!==s),t[a]=s}return t}function Rn(e,t){return e.getAttribute(t)}function Mn(e,t,n){e.setAttribute(t,n)}function Nn(e,t){e.removeAttribute(t)}function qn(){s().body.focus(),s().onselectstart=function(){return!1}}function Un(){s().onselectstart=function(){return!0}}function jn(e){if(e&&e.getBoundingClientRect&&e.parentNode){var t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach((function(e){void 0!==t[e]&&(n[e]=t[e])})),n.height||(n.height=parseFloat(Kt(e,"height"))),n.width||(n.width=parseFloat(Kt(e,"width"))),n}}function Bn(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};for(var t=e.offsetWidth,n=e.offsetHeight,i=0,r=0;e.offsetParent&&e!==s()[Mt.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function Fn(e,t){var n={x:0,y:0};if(gn)for(var i=e;i&&"html"!==i.nodeName.toLowerCase();){var r=Kt(i,"transform");
2if(/^matrix/.test(r)){var a=r.slice(7,-1).split(/,\s/).map(Number);n.x+=a[4],n.y+=a[5]}else if(/^matrix3d/.test(r)){var s=r.slice(9,-1).split(/,\s/).map(Number);n.x+=s[12],n.y+=s[13]}i=i.parentNode}var o={},l=Bn(t.target),c=Bn(e),u=c.width,d=c.height,h=t.offsetY-(c.top-l.top),f=t.offsetX-(c.left-l.left);return t.changedTouches&&(f=t.changedTouches[0].pageX-c.left,h=t.changedTouches[0].pageY+c.top,gn&&(f-=n.x,h-=n.y)),o.y=1-Math.max(0,Math.min(1,h/d)),o.x=Math.max(0,Math.min(1,f/u)),o}function Hn(e){return Xt(e)&&3===e.nodeType}function Wn(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function zn(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map((function(e){return"function"==typeof e&&(e=e()),kn(e)||Hn(e)?e:"string"==typeof e&&/\S/.test(e)?s().createTextNode(e):void 0})).filter((function(e){return e}))}function Vn(e,t){return zn(t).forEach((function(t){return e.appendChild(t)})),e}function $n(e,t){return Vn(Wn(e),t)}function Xn(e){return void 0===e.button&&void 0===e.buttons||(0===e.button&&void 0===e.buttons||("mouseup"===e.type&&0===e.button&&0===e.buttons||0===e.button&&1===e.buttons))}var Gn,Kn=Sn("querySelector"),Yn=Sn("querySelectorAll"),Qn=Object.freeze({__proto__:null,isReal:Tn,isEl:kn,isInFrame:wn,createEl:xn,textContent:Cn,prependTo:En,hasClass:An,addClass:Ln,removeClass:In,toggleClass:Pn,setAttributes:On,getAttributes:Dn,getAttribute:Rn,setAttribute:Mn,removeAttribute:Nn,blockTextSelection:qn,unblockTextSelection:Un,getBoundingClientRect:jn,findPosition:Bn,getPointerPosition:Fn,isTextNode:Hn,emptyEl:Wn,normalizeContent:zn,appendContent:Vn,insertContent:$n,isSingleLeftClick:Xn,$:Kn,$$:Yn}),Jn=!1,Zn=function(){if(!1!==Gn.options.autoSetup){var e=Array.prototype.slice.call(s().getElementsByTagName("video")),t=Array.prototype.slice.call(s().getElementsByTagName("audio")),n=Array.prototype.slice.call(s().getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(var r=0,a=i.length;r<a;r++){var o=i[r];if(!o||!o.getAttribute){ei(1);break}void 0===o.player&&null!==o.getAttribute("data-setup")&&Gn(o)}else Jn||ei(1)}};function ei(e,t){Tn()&&(t&&(Gn=t),r().setTimeout(Zn,e))}function ti(){Jn=!0,r().removeEventListener("load",ti)}Tn()&&("complete"===s().readyState?ti():r().addEventListener("load",ti));var ni,ii=function(e){var t=s().createElement("style");return t.className=e,t},ri=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t},ai=3;function si(){return ai++}r().WeakMap||(ni=function(){function e(){this.vdata="vdata"+Math.floor(r().performance&&r().performance.now()||Date.now()),this.data={}}var t=e.prototype;return t.set=function(e,t){var n=e[this.vdata]||si();return e[this.vdata]||(e[this.vdata]=n),this.data[n]=t,this},t.get=function(e){var t=e[this.vdata];if(t)return this.data[t];Ft("We have no data for this element",e)},t.has=function(e){return e[this.vdata]in this.data},t.delete=function(e){var t=e[this.vdata];t&&(delete this.data[t],delete e[this.vdata])},e}());var oi,li=r().WeakMap?new WeakMap:new ni;function ci(e,t){if(li.has(e)){var n=li.get(e);0===n.handlers[t].length&&(delete n.handlers[t],e.removeEventListener?e.removeEventListener(t,n.dispatcher,!1):e.detachEvent&&e.detachEvent("on"+t,n.dispatcher)),Object.getOwnPropertyNames(n.handlers).length<=0&&(delete n.handlers,delete n.dispatcher,delete n.disabled),0===Object.getOwnPropertyNames(n).length&&li.delete(e)}}function ui(e,t,n,i){n.forEach((function(n){e(t,n,i)}))}function di(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){var i=e||r().event;for(var a in e={},i)"layerX"!==a&&"layerY"!==a&&"keyLocation"!==a&&"webkitMovementX"!==a&&"webkitMovementY"!==a&&("returnValue"===a&&i.preventDefault||(e[a]=i[a]));if(e.target||(e.target=e.srcElement||s()),e.relatedTarget||(e.relatedTarget=e.fromElement===e.target?e.toElement:e.fromElement),e.preventDefault=function(){i.preventDefault&&i.preventDefault(),e.returnValue=!1,i.returnValue=!1,e.defaultPrevented=!0},e.defaultPrevented=!1,e.stopPropagation=function(){i.stopPropagation&&i.stopPropagation(),e.cancelBubble=!0,i.cancelBubble=!0,e.isPropagationStopped=t},e.isPropagationStopped=n,e.stopImmediatePropagation=function(){i.stopImmediatePropagation&&i.stopImmediatePropagation(),e.isImmediatePropagationStopped=t,e.stopPropagation()},e.isImmediatePropagationStopped=n,null!==e.clientX&&void 0!==e.clientX){var o=s().documentElement,l=s().body;e.pageX=e.clientX+(o&&o.scrollLeft||l&&l.scrollLeft||0)-(o&&o.clientLeft||l&&l.clientLeft||0),e.pageY=e.clientY+(o&&o.scrollTop||l&&l.scrollTop||0)-(o&&o.clientTop||l&&l.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}var hi=["touchstart","touchmove"];function fi(e,t,n){if(Array.isArray(t))return ui(fi,e,t,n);li.has(e)||li.set(e,{});var i=li.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=si()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(!i.disabled){t=di(t);var r=i.handlers[t.type];if(r)for(var a=r.slice(0),s=0,o=a.length;s<o&&!t.isImmediatePropagationStopped();s++)try{a[s].call(e,t,n)}catch(e){Ft.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){var a=!1;(function(){if("boolean"!=typeof oi){oi=!1;try{var e=Object.defineProperty({},"passive",{get:function(){oi=!0}});r().addEventListener("test",null,e),r().removeEventListener("test",null,e)}catch(e){}}return oi})()&&hi.indexOf(t)>-1&&(a={passive:!0}),e.addEventListener(t,i.dispatcher,a)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function pi(e,t,n){if(li.has(e)){var i=li.get(e);if(i.handlers){if(Array.isArray(t))return ui(pi,e,t,n);var r=function(e,t){i.handlers[t]=[],ci(e,t)};if(void 0!==t){var a=i.handlers[t];if(a)if(n){if(n.guid)for(var s=0;s<a.length;s++)a[s].guid===n.guid&&a.splice(s--,1);ci(e,t)}else r(e,t)}else for(var o in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},o)&&r(e,o)}}}
2function mi(e,t,n){var i=li.has(e)?li.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=di(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)mi.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){li.has(t.target)||li.set(t.target,{});var a=li.get(t.target);t.target[t.type]&&(a.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),a.disabled=!1)}return!t.defaultPrevented}function gi(e,t,n){if(Array.isArray(t))return ui(gi,e,t,n);var i=function i(){pi(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||si(),fi(e,t,i)}function vi(e,t,n){var i=function i(){pi(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||si(),fi(e,t,i)}var yi,bi=Object.freeze({__proto__:null,fixEvent:di,on:fi,off:pi,trigger:mi,one:gi,any:vi}),_i=30,Ti=function(e,t,n){t.guid||(t.guid=si());var i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},ki=function(e,t){var n=r().performance.now();return function(){var i=r().performance.now();i-n>=t&&(e.apply(void 0,arguments),n=i)}},wi=function(){};wi.prototype.allowedEvents_={},wi.prototype.on=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},fi(this,e,t),this.addEventListener=n},wi.prototype.addEventListener=wi.prototype.on,wi.prototype.off=function(e,t){pi(this,e,t)},wi.prototype.removeEventListener=wi.prototype.off,wi.prototype.one=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},gi(this,e,t),this.addEventListener=n},wi.prototype.any=function(e,t){var n=this.addEventListener;this.addEventListener=function(){},vi(this,e,t),this.addEventListener=n},wi.prototype.trigger=function(e){var t=e.type||e;"string"==typeof e&&(e={type:t}),e=di(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),mi(this,e)},wi.prototype.dispatchEvent=wi.prototype.trigger,wi.prototype.queueTrigger=function(e){var t=this;yi||(yi=new Map);var n=e.type||e,i=yi.get(this);i||(i=new Map,yi.set(this,i));var a=i.get(n);i.delete(n),r().clearTimeout(a);var s=r().setTimeout((function(){0===i.size&&(i=null,yi.delete(t)),t.trigger(e)}),0);i.set(n,s)};var Si=function(e){return"function"==typeof e.name?e.name():"string"==typeof e.name?e.name:e.name_?e.name_:e.constructor&&e.constructor.name?e.constructor.name:typeof e},xi=function(e){return e instanceof wi||!!e.eventBusEl_&&["on","one","off","trigger"].every((function(t){return"function"==typeof e[t]}))},Ci=function(e){return"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length},Ei=function(e,t,n){if(!e||!e.nodeName&&!xi(e))throw new Error("Invalid target for "+Si(t)+"#"+n+"; must be a DOM node or evented object.")},Ai=function(e,t,n){if(!Ci(e))throw new Error("Invalid event type for "+Si(t)+"#"+n+"; must be a non-empty string or array.")},Li=function(e,t,n){if("function"!=typeof e)throw new Error("Invalid listener for "+Si(t)+"#"+n+"; must be a function.")},Ii=function(e,t,n){var i,r,a,s=t.length<3||t[0]===e||t[0]===e.eventBusEl_;return s?(i=e.eventBusEl_,t.length>=3&&t.shift(),r=t[0],a=t[1]):(i=t[0],r=t[1],a=t[2]),Ei(i,e,n),Ai(r,e,n),Li(a,e,n),{isTargetingSelf:s,target:i,type:r,listener:a=Ti(e,a)}},Pi=function(e,t,n,i){Ei(e,e,t),e.nodeName?bi[t](e,n,i):e[t](n,i)},Oi={on:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Ii(this,n,"on"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(Pi(s,"on",o,l),!a){var c=function(){return e.off(s,o,l)};c.guid=l.guid;var u=function(){return e.off("dispose",c)};u.guid=l.guid,Pi(this,"on","dispose",c),Pi(s,"on","dispose",u)}},one:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Ii(this,n,"one"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)Pi(s,"one",o,l);else{var c=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};c.guid=l.guid,Pi(s,"one",o,c)}},any:function(){for(var e=this,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];var r=Ii(this,n,"any"),a=r.isTargetingSelf,s=r.target,o=r.type,l=r.listener;if(a)Pi(s,"any",o,l);else{var c=function t(){e.off(s,o,t);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];l.apply(null,i)};c.guid=l.guid,Pi(s,"any",o,c)}},off:function(e,t,n){if(!e||Ci(e))pi(this.eventBusEl_,e,t);else{var i=e,r=t;Ei(i,this,"off"),Ai(r,this,"off"),Li(n,this,"off"),n=Ti(this,n),this.off("dispose",n),i.nodeName?(pi(i,r,n),pi(i,"dis
2pose",n)):xi(i)&&(i.off(r,n),i.off("dispose",n))}},trigger:function(e,t){Ei(this.eventBusEl_,this,"trigger");var n=e&&"string"!=typeof e?e.type:e;if(!Ci(n)){var i="Invalid event type for "+Si(this)+"#trigger; must be a non-empty string or object with a type key that has a non-empty value.";if(!e)throw new Error(i);(this.log||Ft).error(i)}return mi(this.eventBusEl_,e,t)}};function Di(e,t){void 0===t&&(t={});var n=t.eventBusKey;if(n){if(!e[n].nodeName)throw new Error('The eventBusKey "'+n+'" does not refer to an element.');e.eventBusEl_=e[n]}else e.eventBusEl_=xn("span",{className:"vjs-event-bus"});return $t(e,Oi),e.eventedCallbacks&&e.eventedCallbacks.forEach((function(e){e()})),e.on("dispose",(function(){e.off(),[e,e.el_,e.eventBusEl_].forEach((function(e){e&&li.has(e)&&li.delete(e)})),r().setTimeout((function(){e.eventBusEl_=null}),0)})),e}var Ri={state:{},setState:function(e){var t,n=this;return"function"==typeof e&&(e=e()),Vt(e,(function(e,i){n.state[i]!==e&&((t=t||{})[i]={from:n.state[i],to:e}),n.state[i]=e})),t&&xi(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function Mi(e,t){return $t(e,Ri),e.state=$t({},e.state,t),"function"==typeof e.handleStateChanged&&xi(e)&&e.on("statechanged",e.handleStateChanged),e}var Ni=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toLowerCase()}))},qi=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))};function Ui(){for(var e={},t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];return n.forEach((function(t){t&&Vt(t,(function(t,n){Gt(t)?(Gt(e[n])||(e[n]={}),e[n]=Ui(e[n],t)):e[n]=t}))})),e}var ji=function(){function e(){this.map_={}}var t=e.prototype;return t.has=function(e){return e in this.map_},t.delete=function(e){var t=this.has(e);return delete this.map_[e],t},t.set=function(e,t){return this.map_[e]=t,this},t.forEach=function(e,t){for(var n in this.map_)e.call(t,this.map_[n],n,this)},e}(),Bi=r().Map?r().Map:ji,Fi=function(){function e(){this.set_={}}var t=e.prototype;return t.has=function(e){return e in this.set_},t.delete=function(e){var t=this.has(e);return delete this.set_[e],t},t.add=function(e){return this.set_[e]=1,this},t.forEach=function(e,t){for(var n in this.set_)e.call(t,n,n,this)},e}(),Hi=r().Set?r().Set:Fi,Wi=function(){function e(e,t,n){var i=this;if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=Ui({},this.options_),t=this.options_=Ui(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){var r=e&&e.id&&e.id()||"no_player";this.id_=r+"_component_"+si()}this.name_=t.name||null,t.el?this.el_=t.el:!1!==t.createEl&&(this.el_=this.createEl()),t.className&&this.el_&&t.className.split(" ").forEach((function(e){return i.addClass(e)})),!1!==t.evented&&(Di(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),Mi(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Hi,this.setIntervalIds_=new Hi,this.rafIds_=new Hi,this.namedRafs_=new Bi,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}var t=e.prototype;return t.dispose=function(){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(var e=this.children_.length-1;e>=0;e--)this.children_[e].dispose&&this.children_[e].dispose();this.children_=null,this.childIndex_=null,this.childNameIndex_=null,this.parentComponent_=null,this.el_&&(this.el_.parentNode&&this.el_.parentNode.removeChild(this.el_),this.el_=null),this.player_=null}},t.isDisposed=function(){return Boolean(this.isDisposed_)},t.player=function(){return this.player_},t.options=function(e){return e?(this.options_=Ui(this.options_,e),this.options_):this.options_},t.el=function(){return this.el_},t.createEl=function(e,t,n){return xn(e,t,n)},t.localize=function(e,t,n){void 0===n&&(n=e);var i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),a=r&&r[i],s=i&&i.split("-")[0],o=r&&r[s],l=n;return a&&a[e]?l=a[e]:o&&o[e]&&(l=o[e]),t&&(l=l.replace(/\{(\d+)\}/g,(function(e,n){var i=t[n-1],r=i;return void 0===i&&(r=e),r}))),l},t.handleLanguagechange=function(){},t.contentEl=function(){return this.contentEl_||this.el_},t.id=function(){return this.id_},t.name=function(){return this.name_},t.children=function(){return this.children_},t.getChildById=function(e){return this.childIndex_[e]},t.getChild=function(e){if(e)return this.childNameIndex_[e]},t.getDescendant=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t=t.reduce((function(e,t){return e.concat(t)}),[]);for(var i=this,r=0;r<t.length;r++)if(!(i=i.getChild(t[r]))||!i.getChild)return;return i},t.addChild=function(t,n,i){var r,a;if(void 0===n&&(n={}),void 0===i&&(i=this.children_.length),"string"==typeof t){a=qi(t);var s=n.componentClass||a;n.name=a;var o=e.getComponent(s);if(!o)throw new Error("Component "+s+" does not exist");if("function"!=typeof o)return null;r=new o(this.player_||this,n)}else r=t;if(r.parentComponent_&&r.parentComponent_.removeChild(r),this.children_.splice(i,0,r),r.parentComponent_=this,"function"==typeof r.id&&(this.childIndex_[r.id()]=r),(a=a||r.name&&qi(r.name()))&&(this.childNameIndex_[a]=r,this.childNameIndex_[Ni(a)]=r),"function"==typeof r.el&&r.el()){var l=null;this.children_[i+1]&&(this.children_[i+1].el_?l=this.children_[i+1].el_:kn(this.children_[i+1])&&(l=this.children_[i+1])),this.contentEl().insertBefore(r.el(),l)}return r},t.removeChild=function(e){if("string"==typeof e&&(e=this.getChild(e)),e&&this.children_){for(var t=!1,n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(t){e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[qi(e.name())]=null,this.childNameIndex_[Ni(e.name())]=null;var i=e.el();i&&i.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}}},t.initChildren=function(){var t=this,n=this.options_.children;if(n){var i,r=this.options_,a=e.getComponent("Tech");(i=Array.isArray(n)?n:Object.keys(n)).concat(Object.keys(this.options_).filter((function(e){return!i.some((function(t){return"string"==typeof t?e===t:e===t.name}))}))).map((function(e){var i,r;return"string"==typeof e?r=n[i=e]||t.options_[i]||{}:(i=e.name,r=e),{name:i,opts:r}})).filter((function(t){var n=e.getComponent(t.opts.componentClass||qi(t.name));return n&&!a.isTech(n)}
2)).forEach((function(e){var n=e.name,i=e.opts;if(void 0!==r[n]&&(i=r[n]),!1!==i){!0===i&&(i={}),i.playerOptions=t.options_.playerOptions;var a=t.addChild(n,i);a&&(t[n]=a)}}))}},t.buildCSSClass=function(){return""},t.ready=function(e,t){if(void 0===t&&(t=!1),e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))},t.triggerReady=function(){this.isReady_=!0,this.setTimeout((function(){var e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach((function(e){e.call(this)}),this),this.trigger("ready")}),1)},t.$=function(e,t){return Kn(e,t||this.contentEl())},t.$$=function(e,t){return Yn(e,t||this.contentEl())},t.hasClass=function(e){return An(this.el_,e)},t.addClass=function(e){Ln(this.el_,e)},t.removeClass=function(e){In(this.el_,e)},t.toggleClass=function(e,t){Pn(this.el_,e,t)},t.show=function(){this.removeClass("vjs-hidden")},t.hide=function(){this.addClass("vjs-hidden")},t.lockShowing=function(){this.addClass("vjs-lock-showing")},t.unlockShowing=function(){this.removeClass("vjs-lock-showing")},t.getAttribute=function(e){return Rn(this.el_,e)},t.setAttribute=function(e,t){Mn(this.el_,e,t)},t.removeAttribute=function(e){Nn(this.el_,e)},t.width=function(e,t){return this.dimension("width",e,t)},t.height=function(e,t){return this.dimension("height",e,t)},t.dimensions=function(e,t){this.width(e,!0),this.height(t)},t.dimension=function(e,t,n){if(void 0!==t)return null!==t&&t==t||(t=0),-1!==(""+t).indexOf("%")||-1!==(""+t).indexOf("px")?this.el_.style[e]=t:this.el_.style[e]="auto"===t?"":t+"px",void(n||this.trigger("componentresize"));if(!this.el_)return 0;var i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+qi(e)],10)},t.currentDimension=function(e){var t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=Kt(this.el_,e),0===(t=parseFloat(t))||isNaN(t)){var n="offset"+qi(e);t=this.el_[n]}return t},t.currentDimensions=function(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}},t.currentWidth=function(){return this.currentDimension("width")},t.currentHeight=function(){return this.currentDimension("height")},t.focus=function(){this.el_.focus()},t.blur=function(){this.el_.blur()},t.handleKeyDown=function(e){this.player_&&(c().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))},t.handleKeyPress=function(e){this.handleKeyDown(e)},t.emitTapEvents=function(){var e,t=0,n=null;this.on("touchstart",(function(i){1===i.touches.length&&(n={pageX:i.touches[0].pageX,pageY:i.touches[0].pageY},t=r().performance.now(),e=!0)})),this.on("touchmove",(function(t){if(t.touches.length>1)e=!1;else if(n){var i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(e=!1)}}));var i=function(){e=!1};this.on("touchleave",i),this.on("touchcancel",i),this.on("touchend",(function(i){(n=null,!0===e)&&(r().performance.now()-t<200&&(i.preventDefault(),this.trigger("tap")))}))},t.enableTouchActivity=function(){if(this.player()&&this.player().reportUserActivity){var e,t=Ti(this.player(),this.player().reportUserActivity);this.on("touchstart",(function(){t(),this.clearInterval(e),e=this.setInterval(t,250)}));var n=function(n){t(),this.clearInterval(e)};this.on("touchmove",t),this.on("touchend",n),this.on("touchcancel",n)}},t.setTimeout=function(e,t){var n,i=this;return e=Ti(this,e),this.clearTimersOnDispose_(),n=r().setTimeout((function(){i.setTimeoutIds_.has(n)&&i.setTimeoutIds_.delete(n),e()}),t),this.setTimeoutIds_.add(n),n},t.clearTimeout=function(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),r().clearTimeout(e)),e},t.setInterval=function(e,t){e=Ti(this,e),this.clearTimersOnDispose_();var n=r().setInterval(e,t);return this.setIntervalIds_.add(n),n},t.clearInterval=function(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),r().clearInterval(e)),e},t.requestAnimationFrame=function(e){var t,n=this;return this.supportsRaf_?(this.clearTimersOnDispose_(),e=Ti(this,e),t=r().requestAnimationFrame((function(){n.rafIds_.has(t)&&n.rafIds_.delete(t),e()})),this.rafIds_.add(t),t):this.setTimeout(e,1e3/60)},t.requestNamedAnimationFrame=function(e,t){var n=this;if(!this.namedRafs_.has(e)){this.clearTimersOnDispose_(),t=Ti(this,t);var i=this.requestAnimationFrame((function(){t(),n.namedRafs_.has(e)&&n.namedRafs_.delete(e)}));return this.namedRafs_.set(e,i),e}},t.cancelNamedAnimationFrame=function(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))},t.cancelAnimationFrame=function(e){return this.supportsRaf_?(this.rafIds_.has(e)&&(this.rafIds_.delete(e),r().cancelAnimationFrame(e)),e):this.clearTimeout(e)},t.clearTimersOnDispose_=function(){var e=this;this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",(function(){[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
2h((function(t){var n=t[0],i=t[1];e[n].forEach((function(t,n){return e[i](n)}))})),e.clearingTimersOnDispose_=!1})))},e.registerComponent=function(t,n){if("string"!=typeof t||!t)throw new Error('Illegal component name, "'+t+'"; must be a non-empty string.');var i,r=e.getComponent("Tech"),a=r&&r.isTech(n),s=e===n||e.prototype.isPrototypeOf(n.prototype);if(a||!s)throw i=a?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error('Illegal component, "'+t+'"; '+i+".");t=qi(t),e.components_||(e.components_={});var o=e.getComponent("Player");if("Player"===t&&o&&o.players){var l=o.players,c=Object.keys(l);if(l&&c.length>0&&c.map((function(e){return l[e]})).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return e.components_[t]=n,e.components_[Ni(t)]=n,n},e.getComponent=function(t){if(t&&e.components_)return e.components_[t]},e}();function zi(e,t,n,i){return function(e,t,n){if("number"!=typeof t||t<0||t>n)throw new Error("Failed to execute '"+e+"' on 'TimeRanges': The index provided ("+t+") is non-numeric or out of bounds (0-"+n+").")}(e,i,n.length-1),n[i][t]}function Vi(e){var t;return t=void 0===e||0===e.length?{length:0,start:function(){throw new Error("This TimeRanges object is empty")},end:function(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:zi.bind(null,"start",0,e),end:zi.bind(null,"end",1,e)},r().Symbol&&r().Symbol.iterator&&(t[r().Symbol.iterator]=function(){return(e||[]).values()}),t}function $i(e,t){return Array.isArray(e)?Vi(e):void 0===e||void 0===t?Vi():Vi([[e,t]])}function Xi(e,t){var n,i,r=0;if(!t)return 0;e&&e.length||(e=$i(0,0));for(var a=0;a<e.length;a++)n=e.start(a),(i=e.end(a))>t&&(i=t),r+=i-n;return r/t}function Gi(e){if(e instanceof Gi)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:Xt(e)&&("number"==typeof e.code&&(this.code=e.code),$t(this,e)),this.message||(this.message=Gi.defaultMessages[this.code]||"")}Wi.prototype.supportsRaf_="function"==typeof r().requestAnimationFrame&&"function"==typeof r().cancelAnimationFrame,Wi.registerComponent("Component",Wi),Gi.prototype.code=0,Gi.prototype.message="",Gi.prototype.status=null,Gi.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],Gi.defaultMessages={1:"You aborted the media playback",2:"A network error caused the media download to fail part-way.",3:"The media playback was aborted due to a corruption problem or because the media used features your browser did not support.",4:"The media could not be loaded, either because the server or network failed or because the format is not supported.",5:"The media is encrypted and we do not have the keys to decrypt it."};for(var Ki=0;Ki<Gi.errorTypes.length;Ki++)Gi[Gi.errorTypes[Ki]]=Ki,Gi.prototype[Gi.errorTypes[Ki]]=Ki;function Yi(e){return null!=e&&"function"==typeof e.then}function Qi(e){Yi(e)&&e.then(null,(function(e){}))}var Ji=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((function(t,n,i){return e[n]&&(t[n]=e[n]),t}),{cues:e.cues&&Array.prototype.map.call(e.cues,(function(e){return{startTime:e.startTime,endTime:e.endTime,text:e.text,id:e.id}}))})},Zi=function(e){var t=e.$$("track"),n=Array.prototype.map.call(t,(function(e){return e.track}));return Array.prototype.map.call(t,(function(e){var t=Ji(e.track);return e.src&&(t.src=e.src),t})).concat(Array.prototype.filter.call(e.textTracks(),(function(e){return-1===n.indexOf(e)})).map(Ji))},er=function(e,t){return e.forEach((function(e){var n=t.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach((function(e){return n.addCue(e)}))})),t.textTracks()},tr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleKeyDown_=function(e){return i.handleKeyDown(e)},i.close_=function(e){return i.close(e)},i.opened_=i.hasBeenOpened_=i.hasBeenFilled_=!1,i.closeable(!i.options_.uncloseable),i.content(i.options_.content),i.contentEl_=xn("div",{className:"vjs-modal-dialog-content"},{role:"document"}),i.descEl_=xn("p",{className:"vjs-modal-dialog-description vjs-control-text",id:i.el().getAttribute("aria-describedby")}),Cn(i.descEl_,i.description()),i.el_.appendChild(i.descEl_),i.el_.appendChild(i.contentEl_),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":this.id()+"_description","aria-hidden":"true","aria-label":this.label(),role:"dialog"})},n.dispose=function(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-modal-dialog vjs-hidden "+e.prototype.buildCSSClass.call(this)},n.label=function(){return this.localize(this.options_.label||"Modal Window")},n.description=function(){var e=this.options_.description||this.localize("This is a modal window.");return this.closeable()&&(e+=" "+this.localize("This modal can be closed by pressing the Escape key or activating the close button.")),e},n.open=function(){if(!this.opened_){var e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpe
2n&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}},n.opened=function(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_},n.close=function(){if(this.opened_){var e=this.player();this.trigger("beforemodalclose"),this.opened_=!1,this.wasPlaying_&&this.options_.pauseOnOpen&&e.play(),this.off("keydown",this.handleKeyDown_),this.hadControls_&&e.controls(!0),this.hide(),this.el().setAttribute("aria-hidden","true"),this.trigger("modalclose"),this.conditionalBlur_(),this.options_.temporary&&this.dispose()}},n.closeable=function(e){if("boolean"==typeof e){var t=this.closeable_=!!e,n=this.getChild("closeButton");if(t&&!n){var i=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=i,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_},n.fill=function(){this.fillWith(this.content())},n.fillWith=function(e){var t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),$n(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);var r=this.getChild("closeButton");r&&n.appendChild(r.el_)},n.empty=function(){this.trigger("beforemodalempty"),Wn(this.contentEl()),this.trigger("modalempty")},n.content=function(e){return void 0!==e&&(this.content_=e),this.content_},n.conditionalFocus_=function(){var e=s().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())},n.conditionalBlur_=function(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)},n.handleKeyDown=function(e){if(e.stopPropagation(),c().isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(c().isEventKey(e,"Tab")){for(var t,n=this.focusableEls_(),i=this.el_.querySelector(":focus"),r=0;r<n.length;r++)if(i===n[r]){t=r;break}s().activeElement===this.el_&&(t=0),e.shiftKey&&0===t?(n[n.length-1].focus(),e.preventDefault()):e.shiftKey||t!==n.length-1||(n[0].focus(),e.preventDefault())}},n.focusableEls_=function(){var e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,(function(e){return(e instanceof r().HTMLAnchorElement||e instanceof r().HTMLAreaElement)&&e.hasAttribute("href")||(e instanceof r().HTMLInputElement||e instanceof r().HTMLSelectElement||e instanceof r().HTMLTextAreaElement||e instanceof r().HTMLButtonElement)&&!e.hasAttribute("disabled")||e instanceof r().HTMLIFrameElement||e instanceof r().HTMLObjectElement||e instanceof r().HTMLEmbedElement||e.hasAttribute("tabindex")&&-1!==e.getAttribute("tabindex")||e.hasAttribute("contenteditable")}))},t}(Wi);tr.prototype.options_={pauseOnOpen:!0,temporary:!0},Wi.registerComponent("ModalDialog",tr);var nr=function(e){function t(t){var n;void 0===t&&(t=[]),(n=e.call(this)||this).tracks_=[],Object.defineProperty(u(n),"length",{get:function(){return this.tracks_.length}});for(var i=0;i<t.length;i++)n.addTrack(t[i]);return n}h(t,e);var n=t.prototype;return n.addTrack=function(e){var t=this,n=this.tracks_.length;""+n in this||Object.defineProperty(this,n,{get:function(){return this.tracks_[n]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=function(){t.trigger({track:e,type:"labelchange",target:t})},xi(e)&&e.addEventListener("labelchange",e.labelchange_)},n.removeTrack=function(e){for(var t,n=0,i=this.length;n<i;n++)if(this[n]===e){(t=this[n]).off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})},n.getTrackById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},t}(wi);for(var ir in nr.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"},nr.prototype.allowedEvents_)nr.prototype["on"+ir]=null;var rr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},ar=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].enabled){rr(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,n}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.enabled&&rr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.enabledChange_=function(){n.changing_||(n.changing_=!0,rr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("enabledchange",t.enabledChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.enabledChange_&&(t.removeEventListener("enabledchange",t.enabledChange_),t.enabledChange_=null)},t}(nr),sr=function(e,t){for(var n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)},or=function(e){function t(t){var n;void 0===t&&(t=[]);for(var i=t.length-1;i>=0;i--)if(t[i].selected){sr(t,t[i]);break}return(n=e.call(this,t)||this).changing_=!1,Object.defineProperty(u(n),"selectedIndex",{get:function(){for(var e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set:function(){}}),n}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;t.selected&&sr(this,t),e.prototype.addTrack.call(this,t),t.addEventListener&&(t.selectedChange_=function(){n.changing_||(n.changing_=!0,sr(n,t),n.changing_=!1,n.trigger("change"))},t.addEventListener("selectedchange",t.selectedChange_))},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&t.selectedChange_&&(t.removeEventListener("selectedchange",t.selectedChange_),t.selectedChange_=null)},t}(nr),lr=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.addTrack=function(t){var n=this;e.prototype.addTrack.call(this,t),this.queueChange_||(this.queueChange_=function(){return n.queueTrigger("change")}),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=function(){return n.trigger("selectedlanguagechange")}),t.addEventListener("modechange",this.queueChange_);-1===["metadata","chapters"].indexOf(t.kind)&&t.addEventListener("modechange",this.triggerSelectedlanguagechange_)},n.removeTrack=function(t){e.prototype.removeTrack.call(this,t),t.removeEventListener&&(this.queueChange_&&t.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&t.removeEventListener("modechange",this.triggerSelectedlanguagechange_))},t}(nr),cr=function(){function e(e){void 0===e&&(e=[]),this.trackElements_=[],Object.defineProperty(this,"length",{get:function(){return this.trackElements_.length}});for(var t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}var t=e.prototype;return t.addTrackElement_=function(e){var t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get:function(){return this.trackElements_[t]}}
2),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)},t.getTrackElementByTrack_=function(e){for(var t,n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t},t.removeTrackElement_=function(e){for(var t=0,n=this.trackElements_.length;t<n;t++)if(e===this.trackElements_[t]){this.trackElements_[t].track&&"function"==typeof this.trackElements_[t].track.off&&this.trackElements_[t].track.off(),"function"==typeof this.trackElements_[t].off&&this.trackElements_[t].off(),this.trackElements_.splice(t,1);break}},e}(),ur=function(){function e(t){e.prototype.setCues_.call(this,t),Object.defineProperty(this,"length",{get:function(){return this.length_}})}var t=e.prototype;return t.setCues_=function(e){var t=this.length||0,n=0,i=e.length;this.cues_=e,this.length_=e.length;var r=function(e){""+e in this||Object.defineProperty(this,""+e,{get:function(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;n++)r.call(this,n)},t.getCueById=function(e){for(var t=null,n=0,i=this.length;n<i;n++){var r=this[n];if(r.id===e){t=r;break}}return t},e}(),dr={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},hr={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},fr={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},pr={disabled:"disabled",hidden:"hidden",showing:"showing"},mr=function(e){function t(t){var n;void 0===t&&(t={}),n=e.call(this)||this;var i={id:t.id||"vjs_track_"+si(),kind:t.kind||"",language:t.language||""},r=t.label||"",a=function(e){Object.defineProperty(u(n),e,{get:function(){return i[e]},set:function(){}})};for(var s in i)a(s);return Object.defineProperty(u(n),"label",{get:function(){return r},set:function(e){e!==r&&(r=e,this.trigger("labelchange"))}}),n}return h(t,e),t}(wi),gr=function(e){var t=["protocol","hostname","port","pathname","search","hash","host"],n=s().createElement("a");n.href=e;for(var i={},a=0;a<t.length;a++)i[t[a]]=n[t[a]];return"http:"===i.protocol&&(i.host=i.host.replace(/:80$/,"")),"https:"===i.protocol&&(i.host=i.host.replace(/:443$/,"")),i.protocol||(i.protocol=r().location.protocol),i.host||(i.host=r().location.host),i},vr=function(e){if(!e.match(/^https?:\/\//)){var t=s().createElement("a");t.href=e,e=t.href}return e},yr=function(e){if("string"==typeof e){var t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},br=function(e,t){void 0===t&&(t=r().location);var n=gr(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host},_r=Object.freeze({__proto__:null,parseUrl:gr,getAbsoluteURL:vr,getFileExtension:yr,isCrossOrigin:br}
2),Tr=function(e,t){var n=new(r().WebVTT.Parser)(r(),r().vttjs,r().WebVTT.StringDecoder()),i=[];n.oncue=function(e){t.addCue(e)},n.onparsingerror=function(e){i.push(e)},n.onflush=function(){t.trigger({type:"loadeddata",target:t})},n.parse(e),i.length>0&&(r().console&&r().console.groupCollapsed&&r().console.groupCollapsed("Text Track parsing errors for "+t.src),i.forEach((function(e){return Ft.error(e)})),r().console&&r().console.groupEnd&&r().console.groupEnd()),n.flush()},kr=function(e,t){var n={uri:e},i=br(e);i&&(n.cors=i);var a="use-credentials"===t.tech_.crossOrigin();a&&(n.withCredentials=a),g()(n,Ti(this,(function(e,n,i){if(e)return Ft.error(e,n);t.loaded_=!0,"function"!=typeof r().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],(function(e){if("vttjserror"!==e.type)return Tr(i,t);Ft.error("vttjs failed to load, stopping trying to process "+t.src)})):Tr(i,t)})))},wr=function(e){function t(t){var n;if(void 0===t&&(t={}),!t.tech)throw new Error("A tech was not provided.");var i=Ui(t,{kind:fr[t.kind]||"subtitles",language:t.language||t.srclang||""}),r=pr[i.mode]||"disabled",a=i.default;"metadata"!==i.kind&&"chapters"!==i.kind||(r="hidden"),(n=e.call(this,i)||this).tech_=i.tech,n.cues_=[],n.activeCues_=[],n.preload_=!1!==n.tech_.preloadTextTracks;var s=new ur(n.cues_),o=new ur(n.activeCues_),l=!1;n.timeupdateHandler=Ti(u(n),(function(){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,l&&(this.trigger("cuechange"),l=!1),this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)):this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))}));return n.tech_.one("dispose",(function(){n.stopTracking()})),"disabled"!==r&&n.startTracking(),Object.defineProperties(u(n),{default:{get:function(){return a}
2,set:function(){}},mode:{get:function(){return r},set:function(e){pr[e]&&r!==e&&(r=e,this.preload_||"disabled"===r||0!==this.cues.length||kr(this.src,this),this.stopTracking(),"disabled"!==r&&this.startTracking(),this.trigger("modechange"))}},cues:{get:function(){return this.loaded_?s:null},set:function(){}},activeCues:{get:function(){if(!this.loaded_)return null;if(0===this.cues.length)return o;for(var e=this.tech_.currentTime(),t=[],n=0,i=this.cues.length;n<i;n++){var r=this.cues[n];(r.startTime<=e&&r.endTime>=e||r.startTime===r.endTime&&r.startTime<=e&&r.startTime+.5>=e)&&t.push(r)}if(l=!1,t.length!==this.activeCues_.length)l=!0;else for(var a=0;a<t.length;a++)-1===this.activeCues_.indexOf(t[a])&&(l=!0);return this.activeCues_=t,o.setCues_(this.activeCues_),o},set:function(){}}}),i.src?(n.src=i.src,n.preload_||(n.loaded_=!0),(n.preload_||"subtitles"!==i.kind&&"captions"!==i.kind)&&kr(n.src,u(n))):n.loaded_=!0,n}h(t,e);var n=t.prototype;return n.startTracking=function(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)},n.stopTracking=function(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0)},n.addCue=function(e){var t=e;if(r().vttjs&&!(e instanceof r().vttjs.VTTCue)){for(var n in t=new(r().vttjs.VTTCue)(e.startTime,e.endTime,e.text),e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}for(var i=this.tech_.textTracks(),a=0;a<i.length;a++)i[a]!==this&&i[a].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)},n.removeCue=function(e){for(var t=this.cues_.length;t--;){var n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}},t}(mr);wr.prototype.allowedEvents_={cuechange:"cuechange"};var Sr=function(e){function t(t){var n;void 0===t&&(t={});var i=Ui(t,{kind:hr[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(u(n),"enabled",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("enabledchange"))}}),i.enabled&&(n.enabled=i.enabled),n.loaded_=!0,n}return h(t,e),t}(mr),xr=function(e){function t(t){var n;void 0===t&&(t={});var i=Ui(t,{kind:dr[t.kind]||""});n=e.call(this,i)||this;var r=!1;return Object.defineProperty(u(n),"selected",{get:function(){return r},set:function(e){"boolean"==typeof e&&e!==r&&(r=e,this.trigger("selectedchange"))}}),i.selected&&(n.selected=i.selected),n}return h(t,e),t}(mr),Cr=function(e){function t(t){var n,i;void 0===t&&(t={}),n=e.call(this)||this;var r=new wr(t);return n.kind=r.kind,n.src=r.src,n.srclang=r.language,n.label=r.label,n.default=r.default,Object.defineProperties(u(n),{readyState:{get:function(){return i}},track:{get:function(){return r}}}),i=0,r.addEventListener("loadeddata",(function(){i=2,n.trigger({type:"load",target:u(n)})})),n}return h(t,e),t}(wi);Cr.prototype.allowedEvents_={load:"load"},Cr.NONE=0,Cr.LOADING=1,Cr.LOADED=2,Cr.ERROR=3;var Er={audio:{ListClass:ar,TrackClass:Sr,capitalName:"Audio"},video:{ListClass:or,TrackClass:xr,capitalName:"Video"},text:{ListClass:lr,TrackClass:wr,capitalName:"Text"}};Object.keys(Er).forEach((function(e){Er[e].getterName=e+"Tracks",Er[e].privateName=e+"Tracks_"}));var Ar={remoteText:{ListClass:lr,TrackClass:wr,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:cr,TrackClass:Cr,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},Lr=o({},Er,Ar);Ar.names=Object.keys(Ar),Er.names=Object.keys(Er),Lr.names=[].concat(Ar.names).concat(Er.names);var Ir=function(e){function t(t,n){var i;return void 0===t&&(t={}),void 0===n&&(n=function(){}),t.reportTouchActivity=!1,(i=e.call(this,null,t,n)||this).onDurationChange_=function(e){return i.onDurationChange(e)},i.trackProgress_=function(e){return i.trackProgress(e)},i.trackCurrentTime_=function(e){return i.trackCurrentTime(e)},i.stopTrackingCurrentTime_=function(e){return i.stopTrackingCurrentTime(e)},i.disposeSourceHandler_=function(e){return i.disposeSourceHandler(e)},i.queuedHanders_=new Set,i.hasStarted_=!1,i.on("playing",(function(){this.hasStarted_=!0})),i.on("loadstart",(function(){this.hasStarted_=!1}
2)),Lr.names.forEach((function(e){var n=Lr[e];t&&t[n.getterName]&&(i[n.privateName]=t[n.getterName])})),i.featuresProgressEvents||i.manualProgressOn(),i.featuresTimeupdateEvents||i.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach((function(e){!1===t["native"+e+"Tracks"]&&(i["featuresNative"+e+"Tracks"]=!1)})),!1===t.nativeCaptions||!1===t.nativeTextTracks?i.featuresNativeTextTracks=!1:!0!==t.nativeCaptions&&!0!==t.nativeTextTracks||(i.featuresNativeTextTracks=!0),i.featuresNativeTextTracks||i.emulateTextTracks(),i.preloadTextTracks=!1!==t.preloadTextTracks,i.autoRemoteTextTracks_=new Lr.text.ListClass,i.initTrackListeners(),t.nativeControlsForTouch||i.emitTapEvents(),i.constructor&&(i.name_=i.constructor.name||"Unknown Tech"),i}h(t,e);var n=t.prototype;return n.triggerSourceset=function(e){var t=this;this.isReady_||this.one("ready",(function(){return t.setTimeout((function(){return t.triggerSourceset(e)}),1)})),this.trigger({src:e,type:"sourceset"})},n.manualProgressOn=function(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)},n.manualProgressOff=function(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)},n.trackProgress=function(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(Ti(this,(function(){var e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()})),500)},n.onDurationChange=function(e){this.duration_=this.duration()},n.buffered=function(){return $i(0,0)},n.bufferedPercent=function(){return Xi(this.buffered(),this.duration_)},n.stopTrackingProgress=function(){this.clearInterval(this.progressInterval)},n.manualTimeUpdatesOn=function(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)},n.manualTimeUpdatesOff=function(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)},n.trackCurrentTime=function(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval((function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}),250)},n.stopTrackingCurrentTime=function(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.dispose=function(){this.clearTracks(Er.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),e.prototype.dispose.call(this)},n.clearTracks=function(e){var t=this;
2(e=[].concat(e)).forEach((function(e){for(var n=t[e+"Tracks"]()||[],i=n.length;i--;){var r=n[i];"text"===e&&t.removeRemoteTextTrack(r),n.removeTrack(r)}}))},n.cleanupAutoTextTracks=function(){for(var e=this.autoRemoteTextTracks_||[],t=e.length;t--;){var n=e[t];this.removeRemoteTextTrack(n)}},n.reset=function(){},n.crossOrigin=function(){},n.setCrossOrigin=function(){},n.error=function(e){return void 0!==e&&(this.error_=new Gi(e),this.trigger("error")),this.error_},n.played=function(){return this.hasStarted_?$i(0,0):$i()},n.play=function(){},n.setScrubbing=function(){},n.scrubbing=function(){},n.setCurrentTime=function(){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},n.initTrackListeners=function(){var e=this;Er.names.forEach((function(t){var n=Er[t],i=function(){e.trigger(t+"trackchange")},r=e[n.getterName]();r.addEventListener("removetrack",i),r.addEventListener("addtrack",i),e.on("dispose",(function(){r.removeEventListener("removetrack",i),r.removeEventListener("addtrack",i)}))}))},n.addWebVttScript_=function(){var e=this;if(!r().WebVTT)if(s().body.contains(this.el())){if(!this.options_["vtt.js"]&&Gt(y())&&Object.keys(y()).length>0)return void this.trigger("vttjsloaded");var t=s().createElement("script");t.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",t.onload=function(){e.trigger("vttjsloaded")},t.onerror=function(){e.trigger("vttjserror")},this.on("dispose",(function(){t.onload=null,t.onerror=null})),r().WebVTT=!0,this.el().parentNode.appendChild(t)}else this.ready(this.addWebVttScript_)},n.emulateTextTracks=function(){var e=this,t=this.textTracks(),n=this.remoteTextTracks(),i=function(e){return t.addTrack(e.track)},r=function(e){return t.removeTrack(e.track)};n.on("addtrack",i),n.on("removetrack",r),this.addWebVttScript_();var a=function(){return e.trigger("texttrackchange")},s=function(){a();for(var e=0;e<t.length;e++){var n=t[e];n.removeEventListener("cuechange",a),"showing"===n.mode&&n.addEventListener("cuechange",a)}};s(),t.addEventListener("change",s),t.addEventListener("addtrack",s),t.addEventListener("removetrack",s),this.on("dispose",(function(){n.off("addtrack",i),n.off("removetrack",r),t.removeEventListener("change",s),t.removeEventListener("addtrack",s),t.removeEventListener("removetrack",s);for(var e=0;e<t.length;e++){t[e].removeEventListener("cuechange",a)}}))},n.addTextTrack=function(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i,r){void 0===r&&(r={});var a=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;var s=new Lr.text.TrackClass(r);return a.addTrack(s),s}(this,e,t,n)},n.createRemoteTextTrack=function(e){var t=Ui(e,{tech:this});return new Ar.remoteTextEl.TrackClass(t)},n.addRemoteTextTrack=function(e,t){var n=this;void 0===e&&(e={});var i=this.createRemoteTextTrack(e);return!0!==t&&!1!==t&&(Ft.warn('Calling addRemoteTextTrack without explicitly setting the "manualCleanup" parameter to `true` is deprecated and default to `false` in future version of video.js'),t=!0),this.remoteTextTrackEls().addTrackElement_(i),this.remoteTextTracks().addTrack(i.track),!0!==t&&this.ready((function(){return n.autoRemoteTextTracks_.addTrack(i.track)})),i},n.removeRemoteTextTrack=function(e){var t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)},n.getVideoPlaybackQuality=function(){return{}},n.requestPictureInPicture=function(){var e=this.options_.Promise||r().Promise;if(e)return e.reject()},n.disablePictureInPicture=function(){return!0},n.setDisablePictureInPicture=function(){},n.requestVideoFrameCallback=function(e){var t=this,n=si();return this.paused()?(this.queuedHanders_.add(n),this.one("playing",(function(){t.queuedHanders_.has(n)&&(t.queuedH
2anders_.delete(n),e())}))):this.requestNamedAnimationFrame(n,e),n},n.cancelVideoFrameCallback=function(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)},n.setPoster=function(){},n.playsinline=function(){},n.setPlaysinline=function(){},n.overrideNativeAudioTracks=function(){},n.overrideNativeVideoTracks=function(){},n.canPlayType=function(){return""},t.canPlayType=function(){return""},t.canPlaySource=function(e,n){return t.canPlayType(e.type)},t.isTech=function(e){return e.prototype instanceof t||e instanceof t||e===t},t.registerTech=function(e,n){if(t.techs_||(t.techs_={}),!t.isTech(n))throw new Error("Tech "+e+" must be a Tech");if(!t.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!t.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=qi(e),t.techs_[e]=n,t.techs_[Ni(e)]=n,"Tech"!==e&&t.defaultTechOrder_.push(e),n},t.getTech=function(e){if(e)return t.techs_&&t.techs_[e]?t.techs_[e]:(e=qi(e),r()&&r().videojs&&r().videojs[e]?(Ft.warn("The "+e+" tech was added to the videojs object when it should be registered using videojs.registerTech(name, tech)"),r().videojs[e]):void 0)},t}(Wi);Lr.names.forEach((function(e){var t=Lr[e];Ir.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}})),Ir.prototype.featuresVolumeControl=!0,Ir.prototype.featuresMuteControl=!0,Ir.prototype.featuresFullscreenResize=!1,Ir.prototype.featuresPlaybackRate=!1,Ir.prototype.featuresProgressEvents=!1,Ir.prototype.featuresSourceset=!1,Ir.prototype.featuresTimeupdateEvents=!1,Ir.prototype.featuresNativeTextTracks=!1,Ir.prototype.featuresVideoFrameCallback=!1,Ir.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){var i=e.sourceHandlers;
2i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){for(var n,i=e.sourceHandlers||[],r=0;r<i.length;r++)if(n=i[r].canPlayType(t))return n;return""},e.selectSourceHandler=function(t,n){for(var i=e.sourceHandlers||[],r=0;r<i.length;r++)if(i[r].canHandleSource(t,n))return i[r];return null},e.canPlaySource=function(t,n){var i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""};["seekable","seeking","duration"].forEach((function(e){var t=this[e];"function"==typeof t&&(this[e]=function(){return this.sourceHandler_&&this.sourceHandler_[e]?this.sourceHandler_[e].apply(this.sourceHandler_,arguments):t.apply(this,arguments)})}),e.prototype),e.prototype.setSource=function(t){var n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:Ft.error("No source handler found for the current source.")),this.disposeSourceHandler(),this.off("dispose",this.disposeSourceHandler_),n!==e.nativeSourceHandler&&(this.currentSource_=t),this.sourceHandler_=n.handleSource(t,this,this.options_),this.one("dispose",this.disposeSourceHandler_)},e.prototype.disposeSourceHandler=function(){this.currentSource_&&(this.clearTracks(["audio","video"]),this.currentSource_=null),this.cleanupAutoTextTracks(),this.sourceHandler_&&(this.sourceHandler_.dispose&&this.sourceHandler_.dispose(),this.sourceHandler_=null)}},Wi.registerComponent("Tech",Ir),Ir.registerTech("Tech",Ir),Ir.defaultTechOrder_=[];var Pr={},Or={},Dr={};function Rr(e,t,n){e.setTimeout((function(){return Br(t,Pr[t.type],n,e)}),1)}function Mr(e,t,n,i){void 0===i&&(i=null);var r="call"+qi(n),a=e.reduce(jr(r),i),s=a===Dr,o=s?null:t[n](a);return function(e,t,n,i){for(var r=e.length-1;r>=0;r--){var a=e[r];a[t]&&a[t](i,n)}}(e,n,o,s),o}var Nr={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},qr={setCurrentTime:1,setMuted:1,setVolume:1},Ur={play:1,pause:1};function jr(e){return function(t,n){return t===Dr?Dr:n[e]?n[e](t):t}}function Br(e,t,n,i,r,a){void 0===e&&(e={}),void 0===t&&(t=[]),void 0===r&&(r=[]),void 0===a&&(a=!1);var s=t,o=s[0],l=s.slice(1);if("string"==typeof o)Br(e,Pr[o],n,i,r,a);else if(o){var c=function(e,t){var n=Or[e.id()],i=null;if(null==n)return i=t(e),Or[e.id()]=[[t,i]],i;for(var r=0;r<n.length;r++){var a=n[r],s=a[0],o=a[1];s===t&&(i=o)}return null===i&&(i=t(e),n.push([t,i])),i}(i,o);if(!c.setSource)return r.push(c),Br(e,l,n,i,r,a);c.setSource($t({},e),(function(t,s){if(t)return Br(e,l,n,i,r,a);r.push(c),Br(s,e.type===s.type?l:Pr[s.type],n,i,r,a)}))}else l.length?Br(e,l,n,i,r,a):a?n(e,r):Br(e,Pr["*"],n,i,r,!0)}var Fr={opus:"video/ogg",ogv:"video/ogg",mp4:"video/mp4",mov:"video/mp4",m4v:"video/mp4",mkv:"video/x-matroska",m4a:"audio/mp4",mp3:"audio/mpeg",aac:"audio/aac",caf:"audio/x-caf",flac:"audio/flac",oga:"audio/ogg",wav:"audio/wav",m3u8:"application/x-mpegURL",mpd:"application/dash+xml",jpg:"image/jpeg",jpeg:"image/jpeg",gif:"image/gif",png:"image/png",svg:"image/svg+xml",webp:"image/webp"},Hr=function(e){void 0===e&&(e="");var t=yr(e);return Fr[t.toLowerCase()]||""},Wr=function e(t){if(Array.isArray(t)){var n=[];t.forEach((function(t){t=e(t),Array.isArray(t)?n=n.concat(t):Xt(t)&&n.push(t)})),t=n}else t="string"==typeof t&&t.trim()?[zr({src:t})]:Xt(t)&&"string"==typeof t.src&&t.src&&t.src.trim()?[zr(t)]:[];return t};function zr(e){if(!e.type){var t=Hr(e.src);t&&(e.type=t)}return e}var Vr=function(e){function t(t,n,i){var r,a=Ui({createEl:!1},n);if(r=e.call(this,t,a,i)||this,n.playerOptions.sources&&0!==n.playerOptions.sources.length)t.src(n.playerOptions.sources);else for(var s=0,o=n.playerOptions.techOrder;s<o.length;s++){var l=qi(o[s]),c=Ir.getTech(l);if(l||(c=Wi.getComponent(l)),c&&c.isSupported()){t.loadTech_(l);break}}return r}return h(t,e),t}(Wi);Wi.registerComponent("MediaLoader",Vr);var $r=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).options_.controlText&&i.controlText(i.options_.controlText),i.handleMouseOver_=function(e){return i.handleMouseOver(e)},i.handleMouseOut_=function(e){return i.handleMouseOut(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.emitTapEvents(),i.enable(),i}h(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===e&&(e="div"),void 0===t&&(t={}),void 0===n&&(n={}),t=$t({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&Ft.error("Creating a ClickableComponent with an HTML element of "+e+" is not supported; use a Button instead."),n=$t({role:"button"},n),this.tabIndex_=t.tabIndex;var i=xn(e,t,n);return i.appendChild(xn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.dispose=function(){this.controlTextEl_=null,e.prototype.dispose.call(this)},n.createControlTextEl=function(e){return this.controlTextEl_=xn("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_},n.controlText=function(e,t){if(void 0===t&&(t=this.el()),void 0===e)return this.controlText_||"Need Text";var n=this.localize(e);this.controlText_=e,Cn(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)},n.buildCSSClass=function(){return"vjs-control vjs-button "+e.prototype.buildCSSClass.call(this)},n.enable=function(){this.enabled_||(this.enabled_=!0,this.removeClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","false"),void 0!==this.tabIndex_&&this.el_.setAttribute("tabIndex",this.tabIndex_),this.on(["tap","click"],this.handleClick_),this.on("keydown",this.handleKeyDown_))},n.disable=function(){this.enabled_=!1,this.addClass("vjs-disabled"),this.el_.setAttribute("aria-disabled","true"),void 0!==this.tabIndex_&&this.el_.removeAttribute("tabIndex"),this.off("mouseover",this.handleMouseOver_),this.off("mouseout",this.handleMouseOut_),this.off(["tap","click"],this.handleClick_),this.off("keydown",this.handleKeyDown_)},n.handleLanguagechange=function(){this.controlText(this.controlText_)},n.handleClick=function(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)},n.handleKeyDown=function(t){c().isEventKey(t,"Space")||c().isEventKey(t,"Enter")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Wi);Wi.registerComponent("ClickableComponent",$r);var Xr=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update(),i.update_=function(e){return i.update(e)},t.on("posterchange",i.update_),i}h(t,e);var n=t.prototype;return n.dispose=function(){this.player().off("posterchange",this.update_),e.prototype.dispose.call(this)},n.createEl=function(){return xn("div",{className:"vjs-poster",tabIndex:-1})},n.update=function(e){var t=this.player().poster();this.setSrc(t),t?this.show():this.hide()},n.setSrc=function(e){var t="";e&&(t='url("'+e+'")'),this.el_.style.backgroundImage=t},n.handleClick=function(e){if(this.player_.controls()){var t=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;!this.player_.tech(!0)||(un||on)&&t||this.player_.tech(!0).focus(),this.player_.paused()?Qi(this.player_.play()):this.player_.pause()}},t}($r);Wi.registerComponent("PosterImage",Xr);var Gr={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',
2script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function Kr(e,t){var n;if(4===e.length)n=e[1]+e[1]+e[2]+e[2]+e[3]+e[3];else{if(7!==e.length)throw new Error("Invalid color code provided, "+e+"; must be formatted as e.g. #f0e or #f604e2.");n=e.slice(1)}return"rgba("+parseInt(n.slice(0,2),16)+","+parseInt(n.slice(2,4),16)+","+parseInt(n.slice(4,6),16)+","+t+")"}function Yr(e,t,n){try{e.style[t]=n}catch(e){return}}var Qr=function(e){function t(t,n,i){var a;a=e.call(this,t,n,i)||this;var s=function(e){return a.updateDisplay(e)};return t.on("loadstart",(function(e){return a.toggleDisplay(e)})),t.on("texttrackchange",s),t.on("loadedmetadata",(function(e){return a.preselectTrack(e)})),t.ready(Ti(u(a),(function(){if(t.tech_&&t.tech_.featuresNativeTextTracks)this.hide();else{t.on("fullscreenchange",s),t.on("playerresize",s),r().addEventListener("orientationchange",s),t.on("dispose",(function(){return r().removeEventListener("orientationchange",s)}));for(var e=this.options_.playerOptions.tracks||[],n=0;n<e.length;n++)this.player_.addRemoteTextTrack(e[n],!0);this.preselectTrack()}}))),a}h(t,e);var n=t.prototype;return n.preselectTrack=function(){for(var e,t,n,i={captions:1,subtitles:1},r=this.player_.textTracks(),a=this.player_.cache_.selectedLanguage,s=0;s<r.length;s++){var o=r[s];a&&a.enabled&&a.language&&a.language===o.language&&o.kind in i?o.kind===a.kind?n=o:n||(n=o):a&&!a.enabled?(n=null,e=null,t=null):o.default&&("descriptions"!==o.kind||e?o.kind in i&&!t&&(t=o):e=o)}n?n.mode="showing":t?t.mode="showing":e&&(e.mode="showing")},n.toggleDisplay=function(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})},n.clearDisplay=function(){"function"==typeof r().WebVTT&&r().WebVTT.processCues(r(),[],this.el_)},n.updateDisplay=function(){var e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){for(var n=[],i=0;i<e.length;++i){var r=e[i];"showing"===r.mode&&n.push(r)}this.updateForTrack(n)}else{for(var a=null,s=null,o=e.length;o--;){var l=e[o];"showing"===l.mode&&("descriptions"===l.kind?a=l:s=l)}s?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(s)):a&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(a))}},n.updateDisplayState=function(e){for(var t=this.player_.textTrackSettings.getValues(),n=e.activeCues,i=n.length;i--;){var a=n[i];if(a){var s=a.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&Yr(s.firstChild,"color",Kr(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&Yr(s.firstChild,"backgroundColor",Kr(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?Yr(s,"backgroundColor",Kr(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow="2px 2px 3px #222, 2px 2px 4px #222, 2px 2px 5px #222":"raised"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #222, 2px 2px #222, 3px 3px #222":"depressed"===t.edgeStyle?s.firstChild.style.textShadow="1px 1px #ccc, 0 1px #ccc, -1px -1px #222, 0 -1px #222":"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow="0 0 4px #222, 0 0 4px #222, 0 0 4px #222, 0 0 4px #222")),t.fontPercent&&1!==t.fontPercent){var o=r().parseFloat(s.style.fontSize);s.style.fontSize=o*t.fontPercent+"px",s.style.height="auto",s.style.top="auto"}t.fontFamily&&"default"!==t.fontFamily&&("small-caps"===t.fontFamily?s.firstChild.style.fontVariant="small-caps":s.firstChild.style.fontFamily=Gr[t.fontFamily])}}},n.updateForTrack=function(e){if(Array.isArray(e)||(e=[e]),"function"==typeof r().WebVTT&&!e.every((function(e){return!e.activeCues}))){for(var t=[],n=0;n<e.length;++n)for(var i=e[n],a=0;a<i.activeCues.length;++a)t.push(i.activeCues[a]);r().WebVTT.processCues(r(),t,this.el_);for(var s=0;s<e.length;++s){for(var o=e[s],l=0;l<o.activeCues.length;++l){var c=o.activeCues[l].displayState;Ln(c,"vjs-text-track-cue"),Ln(c,"vjs-text-track-cue-"+(o.language?o.language:s)),o.language&&Mn(c,"lang",o.language)}this.player_.textTrackSettings&&this.updateDisplayState(o)}}},t}(Wi);Wi.registerComponent("TextTrackDisplay",Qr);var Jr=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){var t=this.player_.isAudio(),n=this.localize(t?"Audio Player":"
2Video Player"),i=xn("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[n])}),r=e.prototype.createEl.call(this,"div",{className:"vjs-loading-spinner",dir:"ltr"});return r.appendChild(i),r},t}(Wi);Wi.registerComponent("LoadingSpinner",Jr);var Zr=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.createEl=function(e,t,n){void 0===t&&(t={}),void 0===n&&(n={});var i=xn("button",t=$t({className:this.buildCSSClass()},t),n=$t({type:"button"},n));return i.appendChild(xn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i},n.addChild=function(e,t){void 0===t&&(t={});var n=this.constructor.name;return Ft.warn("Adding an actionable (user controllable) child to a Button ("+n+") is not supported; use a ClickableComponent instead."),Wi.prototype.addChild.call(this,e,t)},n.enable=function(){e.prototype.enable.call(this),this.el_.removeAttribute("disabled")},n.disable=function(){e.prototype.disable.call(this),this.el_.setAttribute("disabled","disabled")},n.handleKeyDown=function(t){c().isEventKey(t,"Space")||c().isEventKey(t,"Enter")?t.stopPropagation():e.prototype.handleKeyDown.call(this,t)},t}($r);Wi.registerComponent("Button",Zr);var ea=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).mouseused_=!1,i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-big-play-button"},n.handleClick=function(e){var t=this.player_.play();if(this.mouseused_&&e.clientX&&e.clientY){var n=this.player_.usingPlugin("eme")&&this.player_.eme.sessions&&this.player_.eme.sessions.length>0;return Qi(t),void(!this.player_.tech(!0)||(un||on)&&n||this.player_.tech(!0).focus())}var i=this.player_.getChild("controlBar"),r=i&&i.getChild("playToggle");if(r){var a=function(){return r.focus()};Yi(t)?t.then(a,(function(){})):this.setTimeout(a,1)}else this.player_.tech(!0).focus()},n.handleKeyDown=function(t){this.mouseused_=!1,e.prototype.handleKeyDown.call(this,t)},n.handleMouseDown=function(e){this.mouseused_=!0},t}(Zr);ea.prototype.controlText_="Play Video",Wi.registerComponent("BigPlayButton",ea);var ta=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).controlText(n&&n.controlText||i.localize("Close")),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-close-button "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.trigger({type:"close",bubbles:!1})},n.handleKeyDown=function(t){c().isEventKey(t,"Esc")?(t.preventDefault(),t.stopPropagation(),this.trigger("click")):e.prototype.handleKeyDown.call(this,t)},t}(Zr);Wi.registerComponent("CloseButton",ta);var na=function(e){function t(t,n){var i;return void 0===n&&(n={}),i=e.call(this,t,n)||this,n.replay=void 0===n.replay||n.replay,i.on(t,"play",(function(e){return i.handlePlay(e)})),i.on(t,"pause",(function(e){return i.handlePause(e)})),n.replay&&i.on(t,"ended",(function(e){return i.handleEnded(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-play-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){this.player_.paused()?Qi(this.player_.play()):this.player_.pause()},n.handleSeeked=function(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)},n.handlePlay=function(e){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.controlText("Pause")},n.handlePause=function(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.controlText("Play")},n.handleEnded=function(e){var t=this;this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.controlText("Replay"),this.one(this.player_,"seeked",(function(e){return t.handleSeeked(e)}))},t}(Zr);na.prototype.controlText_="Play",Wi.registerComponent("PlayToggle",na);var ia=function(e,t){e=e<0?0:e;var n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600),a=Math.floor(t/60%60),s=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),(r=r>0||s>0?r+":":"")+(i=((r||a>=10)&&i<10?"0"+i:i)+":")+(n=n<10?"0"+n:n)},ra=ia;function aa(e,t){return void 0===t&&(t=e),ra(e,t)}var sa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["timeupdate","ended"],(function(e){return i.updateContent(e)})),i.updateTextNode_(),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=this.buildCSSClass(),n=e.prototype.createEl.call(this,"div",{className:t+" vjs-time-control vjs-control"}),i=xn("span",{className:"vjs-control-text",textContent:this.localize(this.labelText_)+"Â "},{role:"presentation"});return n.appendChild(i),this.contentEl_=xn("span",{className:t+"-display"},{"aria-live":"off",role:"presentation"}),n.appendChild(this.contentEl_),n},n.dispose=function(){this.contentEl_=null,this.textNode_=null,e.prototype.dispose.call(this)},n.updateTextNode_=function(e){var t=this;
2void 0===e&&(e=0),e=aa(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",(function(){if(t.contentEl_){var e=t.textNode_;e&&t.contentEl_.firstChild!==e&&(e=null,Ft.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),t.textNode_=s().createTextNode(t.formattedTime_),t.textNode_&&(e?t.contentEl_.replaceChild(t.textNode_,e):t.contentEl_.appendChild(t.textNode_))}})))},n.updateContent=function(e){},t}(Wi);sa.prototype.labelText_="Time",sa.prototype.controlText_="Time",Wi.registerComponent("TimeDisplay",sa);var oa=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-current-time"},n.updateContent=function(e){var t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)},t}(sa);oa.prototype.labelText_="Current Time",oa.prototype.controlText_="Current Time",Wi.registerComponent("CurrentTimeDisplay",oa);var la=function(e){function t(t,n){var i,r=function(e){return i.updateContent(e)};return(i=e.call(this,t,n)||this).on(t,"durationchange",r),i.on(t,"loadstart",r),i.on(t,"loadedmetadata",r),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-duration"},n.updateContent=function(e){var t=this.player_.duration();this.updateTextNode_(t)},t}(sa);la.prototype.labelText_="Duration",la.prototype.controlText_="Duration",Wi.registerComponent("DurationDisplay",la);var ca=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),n=e.prototype.createEl.call(this,"div"),i=e.prototype.createEl.call(this,"span",{textContent:"/"});return n.appendChild(i),t.appendChild(n),t},t}(Wi);Wi.registerComponent("TimeDivider",ca);var ua=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"durationchange",(function(e){return i.updateContent(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-remaining-time"},n.createEl=function(){var t=e.prototype.createEl.call(this);return!1!==this.options_.displayNegative&&t.insertBefore(xn("span",{},{"aria-hidden":!0},"-"),this.contentEl_),t},n.updateContent=function(e){var t;"number"==typeof this.player_.duration()&&(t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t))},t}(sa);ua.prototype.labelText_="Remaining Time",ua.prototype.controlText_="Remaining Time",Wi.registerComponent("RemainingTimeDisplay",ua);var da=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateShowing(),i.on(i.player(),"durationchange",(function(e){return i.updateShowing(e)})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-live-control vjs-control"});return this.contentEl_=xn("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(xn("span",{className:"vjs-control-text",textContent:this.localize("Stream Type")+"Â "})),this.contentEl_.appendChild(s().createTextNode(this.localize("LIVE"))),t.appendChild(this.contentEl_),t},n.dispose=function(){this.contentEl_=null,e.prototype.dispose.call(this)},n.updateShowing=function(e){this.player().duration()===1/0?this.show():this.hide()},t}(Wi);Wi.registerComponent("LiveDisplay",da);var ha=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).updateLiveEdgeStatus(),i.player_.liveTracker&&(i.updateLiveEdgeStatusHandler_=function(e){return i.updateLiveEdgeStatus(e)},i.on(i.player_.liveTracker,"liveedgechange",i.updateLiveEdgeStatusHandler_)),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"button",{className:"vjs-seek-to-live-control vjs-control"});return this.textEl_=xn("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),t.appendChild(this.textEl_),t},n.updateLiveEdgeStatus=function(){!this.player_.liveTracker||this.player_.liveTracker.atLiveEdge()?(this.setAttribute("aria-disabled",!0),this.addClass("vjs-at-live-edge"),this.controlText("Seek to live, currently playing live")):(this.setAttribute("aria-disabled",!1),this.removeClass("vjs-at-live-edge"),this.controlText("Seek to live, currently behind live"))},n.handleClick=function(){this.player_.liveTracker.seekToLiveEdge()},n.dispose=function(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,e.prototype.dispose.call(this)},t}(Zr);ha.prototype.controlText_="Seek to live, currently playing live",Wi.registerComponent("SeekToLive",ha);var fa=function(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))},pa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseDown_=function(e){return i.handleMouseDown(e)},i.handleMouseUp_=function(e){return i.handleMouseUp(e)},i.handleKeyDown_=function(e){return i.handleKeyDown(e)},i.handleClick_=function(e){return i.handleClick(e)},i.handleMouseMove_=function(e){return i.handleMouseMove(e)},i.update_=function(e){return i.update(e)},i.bar=i.getChild(i.options_.barName),i.vertical(!!i.options_.vertical),i.enable(),i}h(t,e);var n=t.prototype;return n.enabled=function(){return this.enabled_},n.enable=function(){this.enabled()||(this.on("mousedown",this.handleMouseDown_),this.on("touchstart",this.handleMouseDown_),this.on("keydown",this.handleKeyDown_),this.on("click",this.handleClick_),this.on(this.player_,"controlsvisible",this.update),this.playerEvent&&this.on(this.player_,this.playerEvent,this.update),this.removeClass("disabled"),this.setAttribute("tabindex",0),this.enabled_=!0)},n.disable=function(){if(this.enabled()){var e=this.bar.el_.ownerDocument;this.off("mousedown",this.handleMouseDown_),this.off("touchstart",this.handleMouseDown_),this.off("keydown",this.handleKeyDown_),this.off("click",this.handleClick_),this.off(this.player_,"controlsvisible",this.update_),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.removeAttribute("tabindex"),this.addClass("disabled"),this.playerEvent&&this.off(this.player_,this.playerEvent,this.update),this.enabled_=!1}},n.createEl=function(t,n,i){return void 0===n&&(n={}),void 0===i&&(i={}),n.className=n.className+" vjs-slider",n=$t({tabIndex:0},n),i=$t({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100,tabIndex:0},i),e.prototype.createEl.call(this,t,n,i)},n.handleMouseDown=function(e){var t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||ln||e.preventDefault(),qn(),this.addClass("vjs-sliding"),this.trigger("slideractive"),this.on(t,"mousemove",this.handleMouseMove_),this.on(t,"mouseup",this.handleMouseUp_),this.on(t,"touchmove",this.handleMouseMove_),this.on(t,"touchend",this.handleMouseUp_),this.handleMouseMove(e,!0)},n.handleMouseMove=function(e){},n.handleMouseUp=function(){var e=this.bar.el_.ownerDocument;Un(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(e,"mousemove",this.handleMouseMove_),this.off(e,"mouseup",this.handleMouseUp_),this.off(e,"touchmove",this.handleMouseMove_),this.off(e,"touchend",this.handleMouseUp_),this.update()},n.update=function(){var e=this;if(this.el_&&this.bar){var t=this.getProgress();return t===this.progress_||(this.progress_=t,this.requestNamedAnimationFrame("Slider#update",(function(){var n=e.vertical()?"height":"width";e.bar.el().style[n]=(100*t).toFixed(2)+"%"}))),t}}
2,n.getProgress=function(){return Number(fa(this.getPercent(),0,1).toFixed(4))},n.calculateDistance=function(e){var t=Fn(this.el_,e);return this.vertical()?t.y:t.x},n.handleKeyDown=function(t){c().isEventKey(t,"Left")||c().isEventKey(t,"Down")?(t.preventDefault(),t.stopPropagation(),this.stepBack()):c().isEventKey(t,"Right")||c().isEventKey(t,"Up")?(t.preventDefault(),t.stopPropagation(),this.stepForward()):e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){e.stopPropagation(),e.preventDefault()},n.vertical=function(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")},t}(Wi);Wi.registerComponent("Slider",pa);var ma=function(e,t){return fa(e/t*100,0,100).toFixed(2)+"%"},ga=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).partEls_=[],i.on(t,"progress",(function(e){return i.update(e)})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-load-progress"}),n=xn("span",{className:"vjs-control-text"}),i=xn("span",{textContent:this.localize("Loaded")}),r=s().createTextNode(": ");return this.percentageEl_=xn("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),t.appendChild(n),n.appendChild(i),n.appendChild(r),n.appendChild(this.percentageEl_),t},n.dispose=function(){this.partEls_=null,this.percentageEl_=null,e.prototype.dispose.call(this)},n.update=function(e){var t=this;this.requestNamedAnimationFrame("LoadProgressBar#update",(function(){var e=t.player_.liveTracker,n=t.player_.buffered(),i=e&&e.isLive()?e.seekableEnd():t.player_.duration(),r=t.player_.bufferedEnd(),a=t.partEls_,s=ma(r,i);t.percent_!==s&&(t.el_.style.width=s,Cn(t.percentageEl_,s),t.percent_=s);for(var o=0;o<n.length;o++){var l=n.start(o),c=n.end(o),u=a[o];u||(u=t.el_.appendChild(xn()),a[o]=u),u.dataset.start===l&&u.dataset.end===c||(u.dataset.start=l,u.dataset.end=c,u.style.left=ma(l,r),u.style.width=ma(c-l,r))}for(var d=a.length;d>n.length;d--)t.el_.removeChild(a[d-1]);a.length=n.length}))},t}(Wi);Wi.registerComponent("LoadProgressBar",ga);var va=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=ki(Ti(u(i),i.update),_i),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n){var i=Bn(this.el_),r=jn(this.player_.el()),a=e.width*t;if(r&&i){var s=e.left-r.left+a,o=e.width-a+(r.right-e.right),l=i.width/2;s<l?l+=l-s:o<l&&(l=o),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right="-"+l+"px",this.write(n)}},n.write=function(e){Cn(this.el_,e)},n.updateTime=function(e,t,n,i){var r=this;this.requestNamedAnimationFrame("TimeTooltip#updateTime",(function(){var a,s=r.player_.duration();if(r.player_.liveTracker&&r.player_.liveTracker.isLive()){var o=r.player_.liveTracker.liveWindow(),l=o-t*o;a=(l<1?"":"-")+aa(l,o)}else a=aa(n,s);r.update(e,t,a),i&&i()}))},t}(Wi);Wi.registerComponent("TimeTooltip",va);var ya=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=ki(Ti(u(i),i.update),_i),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})},n.update=function(e,t){var n=this.getChild("timeTooltip");if(n){var i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}},t}(Wi);ya.prototype.options_={children:[]},gn||nn||ya.prototype.options_.children.push("timeTooltip"),Wi.registerComponent("PlayProgressBar",ya);var ba=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=ki(Ti(u(i),i.update),_i),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t){var n=this,i=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,i,(function(){n.el_.style.left=e.width*t+"px"}))},t}(Wi);ba.prototype.options_={children:["timeTooltip"]},Wi.registerComponent("MouseTimeDisplay",ba);var _a=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).setEventHandlers_(),i}h(t,e);var n=t.prototype;return n.setEventHandlers_=function(){var e=this;this.update_=Ti(this,this.update),this.update=ki(this.update_,_i),this.on(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.on(this.player_.liveTracker,"liveedgechange",this.update),this.updateInterval=null,this.enableIntervalHandler_=function(t){return e.enableInterval_(t)},this.disableIntervalHandler_=function(t){return e.disableInterval_(t)},this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s()&&"visibilityState"in s()&&this.on(s(),"visibilitychange",this.toggleVisibility_)},n.toggleVisibility_=function(e){"hidden"===s().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())},n.enableInterval_=function(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,_i))},n.disableInterval_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})},n.update=function(t){var n=this;if("hidden"!==s().visibilityState){var i=e.prototype.update.call(this);return this.requestNamedAnimationFrame("SeekBar#update",(function(){var e=n.player_.ended()?n.player_.duration():n.getCurrentTime_(),t=n.player_.liveTracker,r=n.player_.duration();
2t&&t.isLive()&&(r=n.player_.liveTracker.liveCurrentTime()),n.percent_!==i&&(n.el_.setAttribute("aria-valuenow",(100*i).toFixed(2)),n.percent_=i),n.currentTime_===e&&n.duration_===r||(n.el_.setAttribute("aria-valuetext",n.localize("progress bar timing: currentTime={1} duration={2}",[aa(e,r),aa(r,r)],"{1} of {2}")),n.currentTime_=e,n.duration_=r),n.bar&&n.bar.update(jn(n.el()),n.getProgress())})),i}},n.userSeek_=function(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)},n.getCurrentTime_=function(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()},n.getPercent=function(){var e,t=this.getCurrentTime_(),n=this.player_.liveTracker;return n&&n.isLive()?(e=(t-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(e=1)):e=t/this.player_.duration(),e},n.handleMouseDown=function(t){Xn(t)&&(t.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),e.prototype.handleMouseDown.call(this,t))},n.handleMouseMove=function(e,t){if(void 0===t&&(t=!1),Xn(e)){var n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);var i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();var a=r.seekableStart(),s=r.liveCurrentTime();if((n=a+i*r.liveWindow())>=s&&(n=s),n<=a&&(n=a+.1),n===1/0)return}else(n=i*this.player_.duration())===this.player_.duration()&&(n-=.1);this.userSeek_(n)}},n.enable=function(){e.prototype.enable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.show()},n.disable=function(){e.prototype.disable.call(this);var t=this.getChild("mouseTimeDisplay");t&&t.hide()},n.handleMouseUp=function(t){e.prototype.handleMouseUp.call(this,t),t&&t.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?Qi(this.player_.play()):this.update_()},n.stepForward=function(){this.userSeek_(this.player_.currentTime()+5)},n.stepBack=function(){this.userSeek_(this.player_.currentTime()-5)},n.handleAction=function(e){this.player_.paused()?this.player_.play():this.player_.pause()},n.handleKeyDown=function(t){var n=this.player_.liveTracker;if(c().isEventKey(t,"Space")||c().isEventKey(t,"Enter"))t.preventDefault(),t.stopPropagation(),this.handleAction(t);else if(c().isEventKey(t,"Home"))t.preventDefault(),t.stopPropagation(),this.userSeek_(0);else if(c().isEventKey(t,"End"))t.preventDefault(),t.stopPropagation(),n&&n.isLive()?this.userSeek_(n.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(c()(t))){t.preventDefault(),t.stopPropagation();var i=10*(c().codes[c()(t)]-c().codes[0])/100;n&&n.isLive()?this.userSeek_(n.seekableStart()+n.liveWindow()*i):this.userSeek_(this.player_.duration()*i)}else c().isEventKey(t,"PgDn")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):c().isEventKey(t,"PgUp")?(t.preventDefault(),t.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):e.prototype.handleKeyDown.call(this,t)},n.dispose=function(){this.disableInterval_(),this.off(this.player_,["ended","durationchange","timeupdate"],this.update),this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.update),this.off(this.player_,["playing"],this.enableIntervalHandler_),this.off(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in s()&&"visibilityState"in s()&&this.off(s(),"visibilitychange",this.toggleVisibility_),e.prototype.dispose.call(this)},t}(pa);_a.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},gn||nn||_a.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),Wi.registerComponent("SeekBar",_a);var Ta=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).handleMouseMove=ki(Ti(u(i),i.handleMouseMove),_i),i.throttledHandleMouseSeek=ki(Ti(u(i),i.handleMouseSeek),_i),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.handleMouseDownHandler_=function(e){return i.handleMouseDown(e)},i.enable(),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-progress-control vjs-control"})},n.handleMouseMove=function(e){var t=this.getChild("seekBar");if(t){var n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(n||i){var r=t.el(),a=Bn(r),s=Fn(r,e).x;s=fa(s,0,1),i&&i.update(a,s),n&&n.update(a,t.getProgress())}}},n.handleMouseSeek=function(e){var t=this.getChild("seekBar");t&&t.handleMouseMove(e)},n.enabled=function(){return this.enabled_}
2,n.disable=function(){if(this.children().forEach((function(e){return e.disable&&e.disable()})),this.enabled()&&(this.off(["mousedown","touchstart"],this.handleMouseDownHandler_),this.off(this.el_,"mousemove",this.handleMouseMove),this.removeListenersAddedOnMousedownAndTouchstart(),this.addClass("disabled"),this.enabled_=!1,this.player_.scrubbing())){var e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&Qi(this.player_.play())}},n.enable=function(){this.children().forEach((function(e){return e.enable&&e.enable()})),this.enabled()||(this.on(["mousedown","touchstart"],this.handleMouseDownHandler_),this.on(this.el_,"mousemove",this.handleMouseMove),this.removeClass("disabled"),this.enabled_=!0)},n.removeListenersAddedOnMousedownAndTouchstart=function(){var e=this.el_.ownerDocument;this.off(e,"mousemove",this.throttledHandleMouseSeek),this.off(e,"touchmove",this.throttledHandleMouseSeek),this.off(e,"mouseup",this.handleMouseUpHandler_),this.off(e,"touchend",this.handleMouseUpHandler_)},n.handleMouseDown=function(e){var t=this.el_.ownerDocument,n=this.getChild("seekBar");n&&n.handleMouseDown(e),this.on(t,"mousemove",this.throttledHandleMouseSeek),this.on(t,"touchmove",this.throttledHandleMouseSeek),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()},t}(Wi);Ta.prototype.options_={children:["seekBar"]},Wi.registerComponent("ProgressControl",Ta);var ka=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,["enterpictureinpicture","leavepictureinpicture"],(function(e){return i.handlePictureInPictureChange(e)})),i.on(t,["disablepictureinpicturechanged","loadedmetadata"],(function(e){return i.handlePictureInPictureEnabledChange(e)})),i.on(t,["loadedmetadata","audioonlymodechange","audiopostermodechange"],(function(){"audio"===t.currentType().substring(0,5)||t.audioPosterMode()||t.audioOnlyMode()?(t.isInPictureInPicture()&&t.exitPictureInPicture(),i.hide()):i.show()})),i.disable(),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-picture-in-picture-control "+e.prototype.buildCSSClass.call(this)},n.handlePictureInPictureEnabledChange=function(){s().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()?this.enable():this.disable()},n.handlePictureInPictureChange=function(e){this.player_.isInPictureInPicture()?this.controlText("Exit Picture-in-Picture"):this.controlText("Picture-in-Picture"),this.handlePictureInPictureEnabledChange()},n.handleClick=function(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()},t}(Zr);ka.prototype.controlText_="Picture-in-Picture",Wi.registerComponent("PictureInPictureToggle",ka);var wa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"fullscreenchange",(function(e){return i.handleFullscreenChange(e)})),!1===s()[t.fsApi_.fullscreenEnabled]&&i.disable(),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-fullscreen-control "+e.prototype.buildCSSClass.call(this)},n.handleFullscreenChange=function(e){this.player_.isFullscreen()?this.controlText("Non-Fullscreen"):this.controlText("Fullscreen")},n.handleClick=function(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()},t}(Zr);wa.prototype.controlText_="Fullscreen",Wi.registerComponent("FullscreenToggle",wa);var Sa=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){var t=e.prototype.createEl.call(this,"div",{className:"vjs-volume-level"});return t.appendChild(e.prototype.createEl.call(this,"span",{className:"vjs-control-text"})),t},t}(Wi);Wi.registerComponent("VolumeLevel",Sa);var xa=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=ki(Ti(u(i),i.update),_i),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})},n.update=function(e,t,n,i){if(!n){var r=jn(this.el_),a=jn(this.player_.el()),s=e.width*t;if(!a||!r)return;var o=e.left-a.left+s,l=e.width-s+(a.right-e.right),c=r.width/2;o<c?c+=c-o:l<c&&(c=l),c<0?c=0:c>r.width&&(c=r.width),this.el_.style.right="-"+c+"px"}this.write(i+"%")},n.write=function(e){Cn(this.el_,e)},n.updateVolume=function(e,t,n,i,r){var a=this;this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",(function(){a.update(e,t,n,i.toFixed(0)),r&&r()}))},t}(Wi);
2Wi.registerComponent("VolumeLevelTooltip",xa);var Ca=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).update=ki(Ti(u(i),i.update),_i),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-mouse-display"})},n.update=function(e,t,n){var i=this,r=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,r,(function(){n?i.el_.style.bottom=e.height*t+"px":i.el_.style.left=e.width*t+"px"}))},t}(Wi);Ca.prototype.options_={children:["volumeLevelTooltip"]},Wi.registerComponent("MouseVolumeLevelDisplay",Ca);var Ea=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on("slideractive",(function(e){return i.updateLastVolume_(e)})),i.on(t,"volumechange",(function(e){return i.updateARIAAttributes(e)})),t.ready((function(){return i.updateARIAAttributes()})),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})},n.handleMouseDown=function(t){Xn(t)&&e.prototype.handleMouseDown.call(this,t)},n.handleMouseMove=function(e){var t=this.getChild("mouseVolumeLevelDisplay");if(t){var n=this.el(),i=jn(n),r=this.vertical(),a=Fn(n,e);a=r?a.y:a.x,a=fa(a,0,1),t.update(i,a,r)}Xn(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))},n.checkMuted=function(){this.player_.muted()&&this.player_.muted(!1)},n.getPercent=function(){return this.player_.muted()?0:this.player_.volume()},n.stepForward=function(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)},n.stepBack=function(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)},n.updateARIAAttributes=function(e){var t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")},n.volumeAsPercentage_=function(){return Math.round(100*this.player_.volume())},n.updateLastVolume_=function(){var e=this,t=this.player_.volume();this.one("sliderinactive",(function(){0===e.player_.volume()&&e.player_.lastVolume_(t)}))},t}(pa);Ea.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},gn||nn||Ea.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),Ea.prototype.playerEvent="volumechange",Wi.registerComponent("VolumeBar",Ea);var Aa=function(e){function t(t,n){var i;return void 0===n&&(n={}),n.vertical=n.vertical||!1,(void 0===n.volumeBar||Gt(n.volumeBar))&&(n.volumeBar=n.volumeBar||{},n.volumeBar.vertical=n.vertical),function(e,t){t.tech_&&!t.tech_.featuresVolumeControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresVolumeControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(u(i=e.call(this,t,n)||this),t),i.throttledHandleMouseMove=ki(Ti(u(i),i.handleMouseMove),_i),i.handleMouseUpHandler_=function(e){return i.handleMouseUp(e)},i.on("mousedown",(function(e){return i.handleMouseDown(e)})),i.on("touchstart",(function(e){return i.handleMouseDown(e)})),i.on("mousemove",(function(e){return i.handleMouseMove(e)})),i.on(i.volumeBar,["focus","slideractive"],(function(){i.volumeBar.addClass("vjs-slider-active"),i.addClass("vjs-slider-active"),i.trigger("slideractive")})),i.on(i.volumeBar,["blur","sliderinactive"],(function(){i.volumeBar.removeClass("vjs-slider-active"),i.removeClass("vjs-slider-active"),i.trigger("sliderinactive")})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t="vjs-volume-horizontal";return this.options_.vertical&&(t="vjs-volume-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-control vjs-control "+t})},n.handleMouseDown=function(e){var t=this.el_.ownerDocument;this.on(t,"mousemove",this.throttledHandleMouseMove),this.on(t,"touchmove",this.throttledHandleMouseMove),this.on(t,"mouseup",this.handleMouseUpHandler_),this.on(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseUp=function(e){var t=this.el_.ownerDocument;this.off(t,"mousemove",this.throttledHandleMouseMove),this.off(t,"touchmove",this.throttledHandleMouseMove),this.off(t,"mouseup",this.handleMouseUpHandler_),this.off(t,"touchend",this.handleMouseUpHandler_)},n.handleMouseMove=function(e){this.volumeBar.handleMouseMove(e)},t}(Wi);Aa.prototype.options_={children:["volumeBar"]}
2,Wi.registerComponent("VolumeControl",Aa);var La=function(e){function t(t,n){var i;return function(e,t){t.tech_&&!t.tech_.featuresMuteControl&&e.addClass("vjs-hidden"),e.on(t,"loadstart",(function(){t.tech_.featuresMuteControl?e.removeClass("vjs-hidden"):e.addClass("vjs-hidden")}))}(u(i=e.call(this,t,n)||this),t),i.on(t,["loadstart","volumechange"],(function(e){return i.update(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-mute-control "+e.prototype.buildCSSClass.call(this)},n.handleClick=function(e){var t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){var i=n<.1?.1:n;this.player_.volume(i),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())},n.update=function(e){this.updateIcon_(),this.updateControlText_()},n.updateIcon_=function(){var e=this.player_.volume(),t=3;gn&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?t=0:e<.33?t=1:e<.67&&(t=2);for(var n=0;n<4;n++)In(this.el_,"vjs-vol-"+n);Ln(this.el_,"vjs-vol-"+t)},n.updateControlText_=function(){var e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)},t}(Zr);La.prototype.controlText_="Mute",Wi.registerComponent("MuteToggle",La);var Ia=function(e){function t(t,n){var i;return void 0===n&&(n={}),void 0!==n.inline?n.inline=n.inline:n.inline=!0,(void 0===n.volumeControl||Gt(n.volumeControl))&&(n.volumeControl=n.volumeControl||{},n.volumeControl.vertical=!n.inline),(i=e.call(this,t,n)||this).handleKeyPressHandler_=function(e){return i.handleKeyPress(e)},i.on(t,["loadstart"],(function(e){return i.volumePanelState_(e)})),i.on(i.muteToggle,"keyup",(function(e){return i.handleKeyPress(e)})),i.on(i.volumeControl,"keyup",(function(e){return i.handleVolumeControlKeyUp(e)})),i.on("keydown",(function(e){return i.handleKeyPress(e)})),i.on("mouseover",(function(e){return i.handleMouseOver(e)})),i.on("mouseout",(function(e){return i.handleMouseOut(e)})),i.on(i.volumeControl,["slideractive"],i.sliderActive_),i.on(i.volumeControl,["sliderinactive"],i.sliderInactive_),i}h(t,e);var n=t.prototype;return n.sliderActive_=function(){this.addClass("vjs-slider-active")},n.sliderInactive_=function(){this.removeClass("vjs-slider-active")},n.volumePanelState_=function(){this.volumeControl.hasClass("vjs-hidden")&&this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-hidden"),this.volumeControl.hasClass("vjs-hidden")&&!this.muteToggle.hasClass("vjs-hidden")&&this.addClass("vjs-mute-toggle-only")},n.createEl=function(){var t="vjs-volume-panel-horizontal";return this.options_.inline||(t="vjs-volume-panel-vertical"),e.prototype.createEl.call(this,"div",{className:"vjs-volume-panel vjs-control "+t})},n.dispose=function(){this.handleMouseOut(),e.prototype.dispose.call(this)},n.handleVolumeControlKeyUp=function(e){c().isEventKey(e,"Esc")&&this.muteToggle.focus()},n.handleMouseOver=function(e){this.addClass("vjs-hover"),fi(s(),"keyup",this.handleKeyPressHandler_)},n.handleMouseOut=function(e){this.removeClass("vjs-hover"),pi(s(),"keyup",this.handleKeyPressHandler_)},n.handleKeyPress=function(e){c().isEventKey(e,"Esc")&&this.handleMouseOut()},t}(Wi);Ia.prototype.options_={children:["muteToggle","volumeControl"]},Wi.registerComponent("VolumePanel",Ia);var Pa=function(e){function t(t,n){var i;return i=e.call(this,t,n)||this,n&&(i.menuButton_=n.menuButton),i.focusedChild_=-1,i.on("keydown",(function(e){return i.handleKeyDown(e)})),i.boundHandleBlur_=function(e){return i.handleBlur(e)},i.boundHandleTapClick_=function(e){return i.handleTapClick(e)},i}h(t,e);var n=t.prototype;return n.addEventListenerForItem=function(e){e instanceof Wi&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))},n.removeEventListenerForItem=function(e){e instanceof Wi&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))},n.removeChild=function(t){"string"==typeof t&&(t=this.getChild(t)),this.removeEventListenerForItem(t),e.prototype.removeChild.call(this,t)},n.addItem=function(e){var t=this.addChild(e);t&&this.addEventListenerForItem(t)},n.createEl=function(){var t=this.options_.contentElType||"ul";this.contentEl_=xn(t,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");var n=e.prototype.createEl.call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return n.appendChild(this.contentEl_),fi(n,"click",(function(e){e.preventDefault(),e.stopImmediatePropagation()})),n},n.dispose=function(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,e.prototype.dispose.call(this)},n.handleBlur=function(e){var t=e.relatedTarget||s().activeElement;if(!this.children().some((function(e){return e.el()===t}))){var n=this.menuButton_;n&&n.buttonPressed_&&t!==n.el().firstChild&&n.unpressButton()}},n.handleTapClick=function(e){if(this.menuButton_){this.menuButton_.unpressButton();var t=this.children();if(!Array.isArray(t))return;var n=t.filter((function(t){return t.el()===e.target}))[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}},n.handleKeyDown=function(e){c().isEventKey(e,"Left")||c().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(c().isEventKey(e,"Right")||c().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())},n.stepForward=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)},n.stepBack=function(){var e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)},n.focus=function(e){void 0===e&&(e=0);var t=this.children().slice();t.length&&t[0].hasClass("vjs-menu-title")&&t.shift(),t.length>0&&(e<0?e=0:e>=t.length&&(e=t.length-1),this.focusedChild_=e,t[e].el_.focus())},t}(Wi);Wi.registerComponent("Menu",Pa);var Oa=function(e){function t(t,n){var i;void 0===n&&(n={}),(i=e.call(this,t,n)||this).menuButton_=new Zr(t,n),i.menuButton_.controlText(i.controlText_),i.menuButton_.el_.setAttribute("aria-haspopup","true");var r=Zr.prototype.buildCSSClass();i.menuButton_.el_.className=i.buildCSSClass()+" "+r,i.menuButton_.removeClass("vjs-control"),i.addChild(i.menuButton_),i.update(),i.enabled_=!0;var a=function(e){return i.handleClick(e)};return i.handleMenuKeyUp_=function(e){return i.handleMenuKeyUp(e)},i.on(i.menuButton_,"tap",a),i.on(i.menuButton_,"click",a),i.on(i.menuButton_,"keydown",(function(e){return i.handleKeyDown(e)})),i.on(i.menuButton_,"mouseenter",(function(){i.addClass("vjs-hover"),i.menu.show(),fi(s(),"keyup",i.handleMenuKeyUp_)}
2)),i.on("mouseleave",(function(e){return i.handleMouseLeave(e)})),i.on("keydown",(function(e){return i.handleSubmenuKeyDown(e)})),i}h(t,e);var n=t.prototype;return n.update=function(){var e=this.createMenu();this.menu&&(this.menu.dispose(),this.removeChild(this.menu)),this.menu=e,this.addChild(e),this.buttonPressed_=!1,this.menuButton_.el_.setAttribute("aria-expanded","false"),this.items&&this.items.length<=this.hideThreshold_?(this.hide(),this.menu.contentEl_.removeAttribute("role")):(this.show(),this.menu.contentEl_.setAttribute("role","menu"))},n.createMenu=function(){var e=new Pa(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){var t=xn("li",{className:"vjs-menu-title",textContent:qi(this.options_.title),tabIndex:-1}),n=new Wi(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(var i=0;i<this.items.length;i++)e.addItem(this.items[i]);return e},n.createItems=function(){},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildWrapperCSSClass()},{})},n.buildWrapperCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+Zr.prototype.buildCSSClass()+" "+e.prototype.buildCSSClass.call(this)},n.buildCSSClass=function(){var t="vjs-menu-button";return!0===this.options_.inline?t+="-inline":t+="-popup","vjs-menu-button "+t+" "+e.prototype.buildCSSClass.call(this)},n.controlText=function(e,t){return void 0===t&&(t=this.menuButton_.el()),this.menuButton_.controlText(e,t)},n.dispose=function(){this.handleMouseLeave(),e.prototype.dispose.call(this)},n.handleClick=function(e){this.buttonPressed_?this.unpressButton():this.pressButton()},n.handleMouseLeave=function(e){this.removeClass("vjs-hover"),pi(s(),"keyup",this.handleMenuKeyUp_)},n.focus=function(){this.menuButton_.focus()},n.blur=function(){this.menuButton_.blur()},n.handleKeyDown=function(e){c().isEventKey(e,"Esc")||c().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),c().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(c().isEventKey(e,"Up")||c().isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))},n.handleMenuKeyUp=function(e){(c().isEventKey(e,"Esc")||c().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")},n.handleSubmenuKeyPress=function(e){this.handleSubmenuKeyDown(e)},n.handleSubmenuKeyDown=function(e){(c().isEventKey(e,"Esc")||c().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),c().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))},n.pressButton=function(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),gn&&wn())return;this.menu.focus()}},n.unpressButton=function(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))},n.disable=function(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()},n.enable=function(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()},t}(Wi);Wi.registerComponent("MenuButton",Oa);var Da=function(e){function t(t,n){var i,r=n.tracks;if((i=e.call(this,t,n)||this).items.length<=1&&i.hide(),!r)return u(i);var a=Ti(u(i),i.update);return r.addEventListener("removetrack",a),r.addEventListener("addtrack",a),r.addEventListener("labelchange",a),i.player_.on("ready",a),i.player_.on("dispose",(function(){r.removeEventListener("removetrack",a),r.removeEventListener("addtrack",a),r.removeEventListener("labelchange",a)})),i}return h(t,e),t}(Oa);Wi.registerComponent("TrackButton",Da);var Ra=["Tab","Esc","Up","Down","Right","Left"],Ma=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).selectable=n.selectable,i.isSelected_=n.selected||!1,i.multiSelectable=n.multiSelectable,i.selected(i.isSelected_),i.selectable?i.multiSelectable?i.el_.setAttribute("role","menuitemcheckbox"):i.el_.setAttribute("role","menuitemradio"):i.el_.setAttribute("role","menuitem"),i}h(t,e);var n=t.prototype;
2return n.createEl=function(t,n,i){this.nonIconControl=!0;var r=e.prototype.createEl.call(this,"li",$t({className:"vjs-menu-item",tabIndex:-1},n),i);return r.replaceChild(xn("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)}),r.querySelector(".vjs-icon-placeholder")),r},n.handleKeyDown=function(t){Ra.some((function(e){return c().isEventKey(t,e)}))||e.prototype.handleKeyDown.call(this,t)},n.handleClick=function(e){this.selected(!0)},n.selected=function(e){this.selectable&&(e?(this.addClass("vjs-selected"),this.el_.setAttribute("aria-checked","true"),this.controlText(", selected"),this.isSelected_=!0):(this.removeClass("vjs-selected"),this.el_.setAttribute("aria-checked","false"),this.controlText(""),this.isSelected_=!1))},t}($r);Wi.registerComponent("MenuItem",Ma);var Na=function(e){function t(t,n){var i,a=n.track,o=t.textTracks();n.label=a.label||a.language||"Unknown",n.selected="showing"===a.mode,(i=e.call(this,t,n)||this).track=a,i.kinds=(n.kinds||[n.kind||i.track.kind]).filter(Boolean);var l,c=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(u(i),t)},d=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleSelectedLanguageChange.apply(u(i),t)};(t.on(["loadstart","texttrackchange"],c),o.addEventListener("change",c),o.addEventListener("selectedlanguagechange",d),i.on("dispose",(function(){t.off(["loadstart","texttrackchange"],c),o.removeEventListener("change",c),o.removeEventListener("selectedlanguagechange",d)})),void 0===o.onchange)&&i.on(["tap","click"],(function(){if("object"!=typeof r().Event)try{l=new(r().Event)("change")}catch(e){}l||(l=s().createEvent("Event")).initEvent("change",!0,!0),o.dispatchEvent(l)}));return i.handleTracksChange(),i}h(t,e);var n=t.prototype;return n.handleClick=function(t){var n=this.track,i=this.player_.textTracks();if(e.prototype.handleClick.call(this,t),i)for(var r=0;r<i.length;r++){var a=i[r];-1!==this.kinds.indexOf(a.kind)&&(a===n?"showing"!==a.mode&&(a.mode="showing"):"disabled"!==a.mode&&(a.mode="disabled"))}},n.handleTracksChange=function(e){var t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)},n.handleSelectedLanguageChange=function(e){if("showing"===this.track.mode){var t=this.player_.cache_.selectedLanguage;if(t&&t.enabled&&t.language===this.track.language&&t.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}},n.dispose=function(){this.track=null,e.prototype.dispose.call(this)},t}(Ma);Wi.registerComponent("TextTrackMenuItem",Na);var qa=function(e){function t(t,n){return n.track={player:t,kind:n.kind,kinds:n.kinds,default:!1,mode:"disabled"},n.kinds||(n.kinds=[n.kind]),n.label?n.track.label=n.label:n.track.label=n.kinds.join(" and ")+" off",n.selectable=!0,n.multiSelectable=!1,e.call(this,t,n)||this}h(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(this.options_.kinds.indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)},n.handleSelectedLanguageChange=function(e){for(var t=this.player().textTracks(),n=!0,i=0,r=t.length;i<r;i++){var a=t[i];if(["captions","descriptions","subtitles"].indexOf(a.kind)>-1&&"showing"===a.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})},t}(Na);Wi.registerComponent("OffTextTrackMenuItem",qa);var Ua=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.textTracks(),e.call(this,t,n)||this}return h(t,e),t.prototype.createItems=function(e,t){var n;void 0===e&&(e=[]),void 0===t&&(t=Na),this.label_&&(n=this.label_+" off"),e.push(new qa(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;var i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(var r=0;r<i.length;r++){var a=i[r];if(this.kinds_.indexOf(a.kind)>-1){var s=new t(this.player_,{track:a,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});s.addClass("vjs-"+a.kind+"-menu-item"),e.push(s)}}return e},t}(Da);Wi.registerComponent("TextTrackButton",Ua);var ja=function(e){function t(t,n){var i,r=n.track,a=n.cue,s=t.currentTime();return n.selectable=!0,n.multiSelectable=!1,n.label=a.text,n.selected=a.startTime<=s&&s<a.endTime,(i=e.call(this,t,n)||this).track=r,
2i.cue=a,i}return h(t,e),t.prototype.handleClick=function(t){e.prototype.handleClick.call(this),this.player_.currentTime(this.cue.startTime)},t}(Ma);Wi.registerComponent("ChaptersTrackMenuItem",ja);var Ba=function(e){function t(t,n,i){var r;return(r=e.call(this,t,n,i)||this).selectCurrentItem_=function(){r.items.forEach((function(e){e.selected(r.track_.activeCues[0]===e.cue)}))},r}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-chapters-button "+e.prototype.buildWrapperCSSClass.call(this)},n.update=function(t){if(!t||!t.track||"chapters"===t.track.kind){var n=this.findChaptersTrack();n!==this.track_?(this.setTrack(n),e.prototype.update.call(this)):(!this.items||n&&n.cues&&n.cues.length!==this.items.length)&&e.prototype.update.call(this)}},n.setTrack=function(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){var t=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);t&&t.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";var n=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);n&&n.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}},n.findChaptersTrack=function(){for(var e=this.player_.textTracks()||[],t=e.length-1;t>=0;t--){var n=e[t];if(n.kind===this.kind_)return n}},n.getMenuCaption=function(){return this.track_&&this.track_.label?this.track_.label:this.localize(qi(this.kind_))},n.createMenu=function(){return this.options_.title=this.getMenuCaption(),e.prototype.createMenu.call(this)},n.createItems=function(){var e=[];if(!this.track_)return e;var t=this.track_.cues;if(!t)return e;for(var n=0,i=t.length;n<i;n++){var r=t[n],a=new ja(this.player_,{track:this.track_,cue:r});e.push(a)}return e},t}(Ua);Ba.prototype.kind_="chapters",Ba.prototype.controlText_="Chapters",Wi.registerComponent("ChaptersButton",Ba);var Fa=function(e){function t(t,n,i){var r;r=e.call(this,t,n,i)||this;var a=t.textTracks(),s=Ti(u(r),r.handleTracksChange);return a.addEventListener("change",s),r.on("dispose",(function(){a.removeEventListener("change",s)})),r}h(t,e);var n=t.prototype;return n.handleTracksChange=function(e){for(var t=this.player().textTracks(),n=!1,i=0,r=t.length;i<r;i++){var a=t[i];if(a.kind!==this.kind_&&"showing"===a.mode){n=!0;break}}n?this.disable():this.enable()},n.buildCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-descriptions-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ua);Fa.prototype.kind_="descriptions",Fa.prototype.controlText_="Descriptions",Wi.registerComponent("DescriptionsButton",Fa);var Ha=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subtitles-button "+e.prototype.buildWrapperCSSClass.call(this)},t}(Ua);Ha.prototype.kind_="subtitles",Ha.prototype.controlText_="Subtitles",Wi.registerComponent("SubtitlesButton",Ha);var Wa=function(e){function t(t,n){var i;return n.track={player:t,kind:n.kind,label:n.kind+" settings",selectable:!1,default:!1,mode:"disabled"},n.selectable=!1,n.name="CaptionSettingsMenuItem",(i=e.call(this,t,n)||this).addClass("vjs-texttrack-settings"),i.controlText(", opens "+n.kind+" settings dialog"),i}return h(t,e),t.prototype.handleClick=function(e){this.player().getChild("textTrackSettings").open()},t}(Na);Wi.registerComponent("CaptionSettingsMenuItem",Wa);var za=function(e){function t(t,n,i){return e.call(this,t,n,i)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-captions-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-captions-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Wa(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),e.prototype.createItems.call(this,t)},t}(Ua);za.prototype.kind_="captions",za.prototype.controlText_="Captions",Wi.registerComponent("CaptionsButton",za);var Va=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(a.appendChild(xn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(xn("span",{className:"vjs-control-text",textContent:" "+this.localize("Captions")}))),r},t}(Na);Wi.registerComponent("SubsCapsMenuItem",Va);var $a=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).label_="subtitles",["en","en-us","en-ca","fr-ca"].indexOf(i.player_.language_)>-1&&(i.label_="captions"),i.menuButton_.controlText(qi(i.label_)),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-subs-caps-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){var t=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(t.push(new Wa(this.player_,{kind:this.label_})),this.hideThreshold_+=1),t=e.prototype.createItems.call(this,t,Va)},t}(Ua);$a.prototype.kinds_=["captions","subtitles"],$a.prototype.controlText_="Subtitles",Wi.registerComponent("SubsCapsButton",$a);var Xa=function(e){function t(t,n){var i,r=n.track,a=t.audioTracks();n.label=r.label||r.language||"Unknown",n.selected=r.enabled,(i=e.call(this,t,n)||this).track=r,
2i.addClass("vjs-"+r.kind+"-menu-item");var s=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];i.handleTracksChange.apply(u(i),t)};return a.addEventListener("change",s),i.on("dispose",(function(){a.removeEventListener("change",s)})),i}h(t,e);var n=t.prototype;return n.createEl=function(t,n,i){var r=e.prototype.createEl.call(this,t,n,i),a=r.querySelector(".vjs-menu-item-text");return"main-desc"===this.options_.track.kind&&(a.appendChild(xn("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),a.appendChild(xn("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),r},n.handleClick=function(t){if(e.prototype.handleClick.call(this,t),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks)for(var n=this.player_.audioTracks(),i=0;i<n.length;i++){var r=n[i];r!==this.track&&(r.enabled=r===this.track)}},n.handleTracksChange=function(e){this.selected(this.track.enabled)},t}(Ma);Wi.registerComponent("AudioTrackMenuItem",Xa);var Ga=function(e){function t(t,n){return void 0===n&&(n={}),n.tracks=t.audioTracks(),e.call(this,t,n)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-audio-button "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-audio-button "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(e){void 0===e&&(e=[]),this.hideThreshold_=1;for(var t=this.player_.audioTracks(),n=0;n<t.length;n++){var i=t[n];e.push(new Xa(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e},t}(Da);Ga.prototype.controlText_="Audio Track",Wi.registerComponent("AudioTrackButton",Ga);var Ka=function(e){function t(t,n){var i,r=n.rate,a=parseFloat(r,10);return n.label=r,n.selected=a===t.playbackRate(),n.selectable=!0,n.multiSelectable=!1,(i=e.call(this,t,n)||this).label=r,i.rate=a,i.on(t,"ratechange",(function(e){return i.update(e)})),i}h(t,e);var n=t.prototype;return n.handleClick=function(t){e.prototype.handleClick.call(this),this.player().playbackRate(this.rate)},n.update=function(e){this.selected(this.player().playbackRate()===this.rate)},t}(Ma);Ka.prototype.contentElType="button",Wi.registerComponent("PlaybackRateMenuItem",Ka);var Ya=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).menuButton_.el_.setAttribute("aria-describedby",i.labelElId_),i.updateVisibility(),i.updateLabel(),i.on(t,"loadstart",(function(e){return i.updateVisibility(e)})),i.on(t,"ratechange",(function(e){return i.updateLabel(e)})),i.on(t,"playbackrateschange",(function(e){return i.handlePlaybackRateschange(e)})),i}h(t,e);var n=t.prototype;return n.createEl=function(){var t=e.prototype.createEl.call(this);return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=xn("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),t.appendChild(this.labelEl_),t},n.dispose=function(){this.labelEl_=null,e.prototype.dispose.call(this)},n.buildCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildCSSClass.call(this)},n.buildWrapperCSSClass=function(){return"vjs-playback-rate "+e.prototype.buildWrapperCSSClass.call(this)},n.createItems=function(){for(var e=this.playbackRates(),t=[],n=e.length-1;n>=0;n--)t.push(new Ka(this.player(),{rate:e[n]+"x"}));return t},n.updateARIAAttributes=function(){this.el().setAttribute("aria-valuenow",this.player().playbackRate())},n.handleClick=function(e){var t=this.player().playbackRate(),n=this.playbackRates(),i=(n.indexOf(t)+1)%n.length;this.player().playbackRate(n[i])},n.handlePlaybackRateschange=function(e){this.update()},n.playbackRates=function(){var e=this.player();return e.playbackRates&&e.playbackRates()||[]},n.playbackRateSupported=function(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0},n.updateVisibility=function(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")},n.updateLabel=function(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")},t}(Oa);
2Ya.prototype.controlText_="Playback Rate",Wi.registerComponent("PlaybackRateMenuButton",Ya);var Qa=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(t,n,i){return void 0===t&&(t="div"),void 0===n&&(n={}),void 0===i&&(i={}),n.className||(n.className=this.buildCSSClass()),e.prototype.createEl.call(this,t,n,i)},t}(Wi);Wi.registerComponent("Spacer",Qa);var Ja=function(e){function t(){return e.apply(this,arguments)||this}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-custom-control-spacer "+e.prototype.buildCSSClass.call(this)},n.createEl=function(){return e.prototype.createEl.call(this,"div",{className:this.buildCSSClass(),textContent:"Â "})},t}(Qa);Wi.registerComponent("CustomControlSpacer",Ja);var Za=function(e){function t(){return e.apply(this,arguments)||this}return h(t,e),t.prototype.createEl=function(){return e.prototype.createEl.call(this,"div",{className:"vjs-control-bar",dir:"ltr"})},t}(Wi);Za.prototype.options_={children:["playToggle","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","fullscreenToggle"]},"exitPictureInPicture"in s()&&Za.prototype.options_.children.splice(Za.prototype.options_.children.length-1,0,"pictureInPictureToggle"),Wi.registerComponent("ControlBar",Za);var es=function(e){function t(t,n){var i;return(i=e.call(this,t,n)||this).on(t,"error",(function(e){return i.open(e)})),i}h(t,e);var n=t.prototype;return n.buildCSSClass=function(){return"vjs-error-display "+e.prototype.buildCSSClass.call(this)},n.content=function(){var e=this.player().error();return e?this.localize(e.message):""},t}(tr);es.prototype.options_=o({},tr.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),Wi.registerComponent("ErrorDisplay",es);var ts="vjs-text-track-settings",ns=["#000","Black"],is=["#00F","Blue"],rs=["#0FF","Cyan"],as=["#0F0","Green"],ss=["#F0F","Magenta"],os=["#F00","Red"],ls=["#FFF","White"],cs=["#FF0","Yellow"],us=["1","Opaque"],ds=["0.5","Semi-Transparent"],hs=["0","Transparent"],fs={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[ns,ls,os,as,is,cs,ss,rs]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Transparency",options:[us,ds,hs]},color:{selector:".vjs-fg-color > select",id:"captions-foreground-color-%s",label:"Color",options:[ls,ns,os,as,is,cs,ss,rs]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Dropshadow"]]},fontFamily:{selector:".vjs-font-family > select",id:"captions-font-family-%s",label:"Font Family",options:[["proportionalSansSerif","Proportional Sans-Serif"],["monospaceSansSerif","Monospace Sans-Serif"],["proportionalSerif","Proportional Serif"],["monospaceSerif","Monospace Serif"],["casual","Casual"],["script","Script"],["small-caps","Small Caps"]]},fontPercent:{selector:".vjs-font-percent > select",id:"captions-font-size-%s",label:"Font Size",options:[["0.50","50%"],["0.75","75%"],["1.00","100%"],["1.25","125%"],["1.50","150%"],["1.75","175%"],["2.00","200%"],["3.00","300%"],["4.00","400%"]],default:2,parser:function(e){return"1.00"===e?null:Number(e)}},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Transparency",options:[us,ds]},windowColor:{selector:".vjs-window-color > select",id:"captions-window-color-%s",label:"Color"},windowOpacity:{selector:".vjs-window-opacity > select",id:"captions-window-opacity-%s",label:"Transparency",options:[hs,ds,us]}};function ps(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}fs.windowColor.options=fs.backgroundColor.options;var ms=function(e){function t(t,n){var i;return n.temporary=!1,(i=e.call(this,t,n)||this).updateDisplay=i.updateDisplay.bind(u(i)),i.fill(),i.hasBeenOpened_=i.hasBeenFilled_=!0,i.endDialog=xn("p",{className:"vjs-control-text",textContent:i.localize("End of dialog window.")}),i.el().appendChild(i.endDialog),i.setDefaults(),void 0===n.persistTextTrackSettings&&(i.options_.persistTextTrackSettings=i.options_.playerOptions.persistTextTrackSettings),i.on(i.$(".vjs-done-button"),"click",(function(){i.saveSettings(),i.close()})),i.on(i.$(".vjs-default-button"),"click",(function(){i.setDefaults(),i.updateDisplay()})),Vt(fs,(function(e){i.on(i.$(e.selector),"change",i.updateDisplay)})),i.options_.persistTextTrackSettings&&i.restoreSettings(),i}h(t,e);var n=t.prototype;return n.dispose=function(){this.endDialog=null,e.prototype.dispose.call(this)},n.createElSelect_=function(e,t,n){var i=this;void 0===t&&(t=""),void 0===n&&(n="label");var r=fs[e],a=r.id.replace("%s",this.id_),s=[t,a].join(" ").trim();return["<"+n+' id="'+a+'" class="'+("label"===n?"vjs-label":"")+'">',this.localize(r.label),"</"+n+">",'<select aria-labelledby="'+s+'">'].concat(r.options.map((function(e){var t=a+"-"+e[1].replace(/\W+/g,"");return['<option id="'+t+'" value="'+e[0]+'" ','aria-labelledby="'+s+" "+t+'">',i.localize(e[1]),"</option>"].join("")}))).concat("</select>").join("")},n.createElFgColor_=function(){var e="captions-text-legend-"+this.id_;return['<fieldset class="vjs-fg-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Text"),"</legend>",this.createElSelect_("color",e),'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")},n.createElBgColor_=function(){var e="captions-background-"+this.id_;return['<fieldset class="vjs-bg-color vjs-track-setting">','<legend id="'+e+'">
2',this.localize("Background"),"</legend>",this.createElSelect_("backgroundColor",e),'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")},n.createElWinColor_=function(){var e="captions-window-"+this.id_;return['<fieldset class="vjs-window-color vjs-track-setting">','<legend id="'+e+'">',this.localize("Window"),"</legend>",this.createElSelect_("windowColor",e),'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")},n.createElColors_=function(){return xn("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})},n.createElFont_=function(){return xn("div",{className:"vjs-track-settings-font",innerHTML:['<fieldset class="vjs-font-percent vjs-track-setting">',this.createElSelect_("fontPercent","","legend"),"</fieldset>",'<fieldset class="vjs-edge-style vjs-track-setting">',this.createElSelect_("edgeStyle","","legend"),"</fieldset>",'<fieldset class="vjs-font-family vjs-track-setting">',this.createElSelect_("fontFamily","","legend"),"</fieldset>"].join("")})},n.createElControls_=function(){var e=this.localize("restore all settings to the default values");return xn("div",{className:"vjs-track-settings-controls",innerHTML:['<button type="button" class="vjs-default-button" title="'+e+'">',this.localize("Reset"),'<span class="vjs-control-text"> '+e+"</span>","</button>",'<button type="button" class="vjs-done-button">'+this.localize("Done")+"</button>"].join("")})},n.content=function(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]},n.label=function(){return this.localize("Caption Settings Dialog")},n.description=function(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")},n.buildCSSClass=function(){return e.prototype.buildCSSClass.call(this)+" vjs-text-track-settings"},n.getValues=function(){var e,t,n,i=this;return t=function(e,t,n){var r,a,s=(r=i.$(t.selector),a=t.parser,ps(r.options[r.options.selectedIndex].value,a));return void 0!==s&&(e[n]=s),e},void 0===(n={})&&(n=0),zt(e=fs).reduce((function(n,i){return t(n,e[i],i)}),n)},n.setValues=function(e){var t=this;Vt(fs,(function(n,i){!function(e,t,n){if(t)for(var i=0;i<e.options.length;i++)if(ps(e.options[i].value,n)===t){e.selectedIndex=i;break}}(t.$(n.selector),e[i],n.parser)}))},n.setDefaults=function(){var e=this;Vt(fs,(function(t){var n=t.hasOwnProperty("default")?t.default:0;e.$(t.selector).selectedIndex=n}))},n.restoreSettings=function(){var e;try{e=JSON.parse(r().localStorage.getItem(ts))}catch(e){Ft.warn(e)}e&&this.setValues(e)},n.saveSettings=function(){if(this.options_.persistTextTrackSettings){var e=this.getValues();try{Object.keys(e).length?r().localStorage.setItem(ts,JSON.stringify(e)):r().localStorage.removeItem(ts)}catch(e){Ft.warn(e)}}},n.updateDisplay=function(){var e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()},n.conditionalBlur_=function(){this.previouslyActiveEl_=null;var e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()},t}(tr);Wi.registerComponent("TextTrackSettings",ms);var gs=function(e){function t(t,n){var i,a=n.ResizeObserver||r().ResizeObserver;null===n.ResizeObserver&&(a=!1);var s=Ui({createEl:!a,reportTouchActivity:!1},n);return(i=e.call(this,t,s)||this).ResizeObserver=n.ResizeObserver||r().ResizeObserver,i.loadListener_=null,i.resizeObserver_=null,i.debouncedHandler_=function(e,t,n,i){var a;void 0===i&&(i=r());var s=function(){var r=this,s=arguments,o=function(){a=null,o=null,n||e.apply(r,s)};!a&&n&&e.apply(r,s),i.clearTimeout(a),a=i.setTimeout(o,t)};return s.cancel=function(){i.clearTimeout(a),a=null},s}((function(){i.resizeHandler()}),100,!1,u(i)),a?(i.resizeObserver_=new i.ResizeObserver(i.debouncedHandler_),i.resizeObserver_.observe(t.el())):(i.loadListener_=function(){if(i.el_&&i.el_.contentWindow){var e=i.debouncedHandler_,t=i.unloadListener_=function(){pi(this,"resize",e),pi(this,"unload",t),t=null};fi(i.el_.contentWindow,"unload",t),fi(i.el_.contentWindow,"resize",e)}},i.one("load",i.loadListener_)),i}h(t,e);var n=t.prototype;return n.createEl=function(){return e.prototype.createEl.call(this,"iframe",{className:"vjs-resize-manager",tabIndex:-1},{"aria-hidden":"true"})},n.resizeHandler=function(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")},n.dispose=function(){this.debouncedHandler_&&this.debouncedHandler_.cancel(),this.resizeObserver_&&(this.player_.el()&&this.resizeObserver_.unobserve(this.player_.el()),this.resizeObserver_.disconnect()),this.loadListener_&&this.off("load",this.loadListener_),this.el_&&this.el_.contentWindow&&this.unloadListener_&&this.unloadListener_.call(this.el_.contentWindow),this.ResizeObserver=null,this.resizeObserver=null,this.debouncedHandler_=null,this.loadListener_=null,e.prototype.dispose.call(this)},t}(Wi);Wi.registerComponent("ResizeManager",gs);var vs={trackingThreshold:20,liveTolerance:15},ys=function(e){function t(t,n){var i,r=Ui(vs,n,{createEl:!1});return(i=e.call(this,t,r)||this).handleVisibilityChange_=function(e){return i.handleVisibilityChange(e)},i.trackLiveHandler_=function(){return i.trackLive_()},i.handlePlay_=function(e){return i.handlePlay(e)},i.handleFirstTimeupdate_=function(e){return i.handleFirstTimeupdate(e)},i.handleSeeked_=function(e){return i.handleSeeked(e)},i.seekToLiveEdge_=function(e){return i.seekToLiveEdge(e)},i.reset_(),i.on(i.player_,"durationchange",(function(e){return i.handleDurationchange(e)}
2)),i.on(i.player_,"canplay",(function(){return i.toggleTracking()})),un&&"hidden"in s()&&"visibilityState"in s()&&i.on(s(),"visibilitychange",i.handleVisibilityChange_),i}h(t,e);var n=t.prototype;return n.handleVisibilityChange=function(){this.player_.duration()===1/0&&(s().hidden?this.stopTracking():this.startTracking())},n.trackLive_=function(){var e=this.player_.seekable();if(e&&e.length){var t=Number(r().performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;var i=this.liveCurrentTime(),a=this.player_.currentTime(),s=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-a)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(s=!1),s!==this.behindLiveEdge_&&(this.behindLiveEdge_=s,this.trigger("liveedgechange"))}},n.handleDurationchange=function(){this.toggleTracking()},n.toggleTracking=function(){this.player_.duration()===1/0&&this.liveWindow()>=this.options_.trackingThreshold?(this.player_.options_.liveui&&this.player_.addClass("vjs-liveui"),this.startTracking()):(this.player_.removeClass("vjs-liveui"),this.stopTracking())},n.startTracking=function(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,_i),this.trackLive_(),this.on(this.player_,["play","pause"],this.trackLiveHandler_),this.timeupdateSeen_?this.on(this.player_,"seeked",this.handleSeeked_):(this.one(this.player_,"play",this.handlePlay_),this.one(this.player_,"timeupdate",this.handleFirstTimeupdate_)))},n.handleFirstTimeupdate=function(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)},n.handleSeeked=function(){var e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()},n.handlePlay=function(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)},n.reset_=function(){this.lastTime_=-1,this.pastSeekEnd_=0,this.lastSeekEnd_=-1,this.behindLiveEdge_=!0,this.timeupdateSeen_=!1,this.seekedBehindLive_=!1,this.nextSeekedFromUser_=!1,this.clearInterval(this.trackingInterval_),this.trackingInterval_=null,this.off(this.player_,["play","pause"],this.trackLiveHandler_),this.off(this.player_,"seeked",this.handleSeeked_),this.off(this.player_,"play",this.handlePlay_),this.off(this.player_,"timeupdate",this.handleFirstTimeupdate_),this.off(this.player_,"timeupdate",this.seekToLiveEdge_)},n.nextSeekedFromUser=function(){this.nextSeekedFromUser_=!0},n.stopTracking=function(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))},n.seekableEnd=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0},n.seekableStart=function(){for(var e=this.player_.seekable(),t=[],n=e?e.length:0;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0},n.liveWindow=function(){var e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()},n.isLive=function(){return this.isTracking()},n.atLiveEdge=function(){return!this.behindLiveEdge()},n.liveCurrentTime=function(){return this.pastSeekEnd()+this.seekableEnd()},n.pastSeekEnd=function(){var e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_},n.behindLiveEdge=function(){return this.behindLiveEdge_},n.isTracking=function(){return"number"==typeof this.trackingInterval_},n.seekToLiveEdge=function(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))},n.dispose=function(){this.off(s(),"visibilitychange",this.handleVisibilityChange_),this.stopTracking(),e.prototype.dispose.call(this)},t}(Wi);Wi.registerComponent("LiveTracker",ys);var bs,_s=function(e){var t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;var n=e.$$("source"),i=[],r="";if(!n.length)return!1;for(var a=0;a<n.length;a++){var s=n[a].src;s&&-1===i.indexOf(s)&&i.push(s)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},Ts=Object.defineProperty({},"innerHTML",{get:function(){return this.cloneNode(!0).innerHTML},set:function(e){var t=s().createElement(this.nodeName.toLowerCase());t.innerHTML=e;for(var n=s().createDocumentFragment();t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",r().Element.prototype.appendChild.call(this,n),this.innerHTML}}),ks=function(e,t){for(var n={},i=0;i<e.length&&!((n=Object.getOwnPropertyDescriptor(e[i],t))&&n.set&&n.get);i++);return n.enumerable=!0,n.configurable=!0,n}
2,ws=function(e){var t=e.el();if(!t.resetSourceWatch_){var n={},i=function(e){return ks([e.el(),r().HTMLMediaElement.prototype,r().Element.prototype,Ts],"innerHTML")}(e),a=function(n){return function(){for(var i=arguments.length,r=new Array(i),a=0;a<i;a++)r[a]=arguments[a];var s=n.apply(t,r);return _s(e),s}};["append","appendChild","insertAdjacentHTML"].forEach((function(e){t[e]&&(n[e]=t[e],t[e]=a(n[e]))})),Object.defineProperty(t,"innerHTML",Ui(i,{set:a(i.set)})),t.resetSourceWatch_=function(){t.resetSourceWatch_=null,Object.keys(n).forEach((function(e){t[e]=n[e]})),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)}},Ss=Object.defineProperty({},"src",{get:function(){return this.hasAttribute("src")?vr(r().Element.prototype.getAttribute.call(this,"src")):""},set:function(e){return r().Element.prototype.setAttribute.call(this,"src",e),e}}),xs=function(e){if(e.featuresSourceset){var t=e.el();if(!t.resetSourceset_){var n=function(e){return ks([e.el(),r().HTMLMediaElement.prototype,Ss],"src")}(e),i=t.setAttribute,a=t.load;Object.defineProperty(t,"src",Ui(n,{set:function(i){var r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=function(n,r){var a=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),a},t.load=function(){var n=a.call(t);return _s(e)||(e.triggerSourceset(""),ws(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):_s(e)||ws(e),t.resetSourceset_=function(){t.resetSourceset_=null,t.load=a,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}}},Cs=function(e,t,n,i){void 0===i&&(i=!0);var r=function(n){return Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0})},a={configurable:!0,enumerable:!0,get:function(){var e=n();return r(e),e}};return i&&(a.set=r),Object.defineProperty(e,t,a)},Es=function(e){function t(t,n){var i;i=e.call(this,t,n)||this;var r=t.source,a=!1;if(r&&(i.el_.currentSrc!==r.src||t.tag&&3===t.tag.initNetworkState_)?i.setSource(r):i.handleLateInit_(i.el_),t.enableSourceset&&i.setupSourcesetHandling_(),i.isScrubbing_=!1,i.el_.hasChildNodes()){for(var s=i.el_.childNodes,o=s.length,l=[];o--;){var c=s[o];"track"===c.nodeName.toLowerCase()&&(i.featuresNativeTextTracks?(i.remoteTextTrackEls().addTrackElement_(c),i.remoteTextTracks().addTrack(c.track),i.textTracks().addTrack(c.track),a||i.el_.hasAttribute("crossorigin")||!br(c.src)||(a=!0)):l.push(c))}for(var u=0;u<l.length;u++)i.el_.removeChild(l[u])}return i.proxyNativeTracks_(),i.featuresNativeTextTracks&&a&&Ft.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),i.restoreMetadataTracksInIOSNativePlayer_(),(fn||mn||an)&&!0===t.nativeControlsForTouch&&i.setControls(!0),i.proxyWebkitFullscreen_(),i.triggerReady(),i}h(t,e);var n=t.prototype;return n.dispose=function(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),t.dis
2poseMediaElement(this.el_),this.options_=null,e.prototype.dispose.call(this)},n.setupSourcesetHandling_=function(){xs(this)},n.restoreMetadataTracksInIOSNativePlayer_=function(){var e,t=this.textTracks(),n=function(){e=[];for(var n=0;n<t.length;n++){var i=t[n];"metadata"===i.kind&&e.push({track:i,storedMode:i.mode})}};n(),t.addEventListener("change",n),this.on("dispose",(function(){return t.removeEventListener("change",n)}));var i=function n(){for(var i=0;i<e.length;i++){var r=e[i];"disabled"===r.track.mode&&r.track.mode!==r.storedMode&&(r.track.mode=r.storedMode)}t.removeEventListener("change",n)};this.on("webkitbeginfullscreen",(function(){t.removeEventListener("change",n),t.removeEventListener("change",i),t.addEventListener("change",i)})),this.on("webkitendfullscreen",(function(){t.removeEventListener("change",n),t.addEventListener("change",n),t.removeEventListener("change",i)}))},n.overrideNative_=function(e,t){var n=this;if(t===this["featuresNative"+e+"Tracks"]){var i=e.toLowerCase();this[i+"TracksListeners_"]&&Object.keys(this[i+"TracksListeners_"]).forEach((function(e){n.el()[i+"Tracks"].removeEventListener(e,n[i+"TracksListeners_"][e])})),this["featuresNative"+e+"Tracks"]=!t,this[i+"TracksListeners_"]=null,this.proxyNativeTracksForType_(i)}},n.overrideNativeAudioTracks=function(e){this.overrideNative_("Audio",e)},n.overrideNativeVideoTracks=function(e){this.overrideNative_("Video",e)},n.proxyNativeTracksForType_=function(e){var t=this,n=Er[e],i=this.el()[n.getterName],r=this[n.getterName]();if(this["featuresNative"+n.capitalName+"Tracks"]&&i&&i.addEventListener){var a={change:function(n){var i={type:"change",target:r,currentTarget:r,srcElement:r};r.trigger(i),"text"===e&&t[Ar.remoteText.getterName]().trigger(i)},addtrack:function(e){r.addTrack(e.track)},removetrack:function(e){r.removeTrack(e.track)}},s=function(){for(var e=[],t=0;t<r.length;t++){for(var n=!1,a=0;a<i.length;a++)if(i[a]===r[t]){n=!0;break}n||e.push(r[t])}for(;e.length;)r.removeTrack(e.shift())};this[n.getterName+"Listeners_"]=a,Object.keys(a).forEach((function(e){var n=a[e];i.addEventListener(e,n),t.on("dispose",(function(t){return i.removeEventListener(e,n)}))})),this.on("loadstart",s),this.on("dispose",(function(e){return t.off("loadstart",s)}))}},n.proxyNativeTracks_=function(){var e=this;Er.names.forEach((function(t){e.proxyNativeTracksForType_(t)}))},n.createEl=function(){var e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){var n=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(n,e),t.disposeMediaElement(e),e=n}else{e=s().createElement("video");var i=Ui({},this.options_.tag&&Dn(this.options_.tag));fn&&!0===this.options_.nativeControlsForTouch||delete i.controls,On(e,$t(i,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&Mn(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);for(var r=["loop","muted","playsinline","autoplay"],a=0;a<r.length;a++){var o=r[a],l=this.options_[o];void 0!==l&&(l?Mn(e,o,o):Nn(e,o),e[o]=l)}return e},n.handleLateInit_=function(e){if(0!==e.networkState&&3!==e.networkState){if(0===e.readyState){var t=!1,n=function(){t=!0};this.on("loadstart",n);var i=function(){t||this.trigger("loadstart")};return this.on("loadedmetadata",i),void this.ready((function(){this.off("loadstart",n),this.off("loadedmetadata",i),t||this.trigger("loadstart")}))}var r=["loadstart"];r.push("loadedmetadata"),e.readyState>=2&&r.push("loadeddata"),e.readyState>=3&&r.push("canplay"),e.readyState>=4&&r.push("canplaythrough"),this.ready((function(){r.forEach((function(e){this.trigger(e)}),this)}))}},n.setScrubbing=function(e){this.isScrubbing_=e},n.scrubbing=function(){return this.isScrubbing_},n.setCurrentTime=function(e){try{this.isScrubbing_&&this.el_.fastSeek&&vn?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){Ft(e,"Video is not ready. (Video.js)")}},n.duration=function(){var e=this;if(this.el_.duration===1/0&&nn&&ln&&0===this.el_.currentTime){return this.on("timeupdate",(function t(){e.el_.currentTime>0&&(e.el_.duration===1/0&&e.trigger("durationchange"),e.off("timeupdate",t))})),NaN}return this.el_.duration||NaN},n.width=function(){return this.el_.offsetWidth},n.height=function(){return this.el_.offsetHeight},n.proxyWebkitFullscreen_=function(){var e=this;if("webkitDisplayingFullscreen"in this.el_){var t=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},n=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",t),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",n),this.on("dispose",(function(){e.off("webkitbeginfullscreen",n),e.off("webkitendfullscreen",t)}))}},n.supportsFullScreen=function(){if("function"==typeof this.el_.webkitEnterFullScreen){var e=r().navigator&&r().navigator.userAgent||"";if(/Android/.test(e)||!/Chrome|Mac OS X 10.5/.test(e))return!0}return!1},n.enterFullScreen=function(){var e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)Qi(this.el_.play()),this.setTimeout((function(){e.pause();try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}}),0);else try{e.webkitEnterFullScreen()}catch(e){this.trigger("fullscreenerror",e)}},n.exitFullScreen=function(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))},n.requestPictureInPicture=function(){return this.el_.requestPictureInPicture()},n.requestVideoFrameCallback=function(t){return this.featuresVideoFrameCallback?this.el_.requestVideoFrameCallback(t):e.prototype.requestVideoFrameCallback.call(this,t)},n.cancelVideoFrameCallback=function(t){this.featuresVideoFrameCallback?this.el_.cancelVideoFrameCallback(t):e.prototype.cancelVideoFrameCallback.call(this,t)},n.src=function(e){if(void 0===e)return this.el_.src;this.setSrc(e)},n.reset=function(){t.resetMediaElement(this.el_)},n.currentSrc=function(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc},n.setControls=function(e){this.el_.controls=!!e},n.addTextTrack=function(t,n,i){return this.featuresNativeTextTracks?this.el_.addTextTrack(t,n,i):e.prototype.addTextTrack.call(this,t,n,i)},n.createRemoteTextTrack=function(t){if(!this.featuresNativeTextTracks)return e.prototype.createRemoteTextTrack.call(this,t);var n=s().createElement("track");return t.kind&&(n.kind=t.kind),t.label&&(n.label=t.label),(t.language||t.srclang)&&(n.srclang=t.language||t.srclang),t.default&&(n.default=t.default),t.id&&(n.id=t.id),t.src&&(n.src=t.src),n},n.addRemoteTextTrack=function(t,n){var i=e.prototype.addRemoteTextTrack.call(this,t,n);return this.featuresNativeTextTracks&&this.el().appendChild(i),i},n.removeRemoteTextTrack=function(t){if(e.prototype.removeRemoteTextTrack.call(this,t),this.featuresNativeTextTracks)for(var n=this.$$("track"),i=n.length;i--;)t!==n[i]&&t!==n[i].track||this.el().removeChild(n[i])},n.getVideoPlaybackQuality=function(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();var e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r().performance&&"function"==typeof r().performance.now?e.creationTime=r().performance.now():r().performance&&r().performance.timing&&"number"==typeof r().performance.timing.navigationStart&&(e.creationTime=r().Date.now()-r().performance.timing.navigationStart),e},t}(Ir);Cs(Es,"TEST_VID",(function(){if(Tn()){var e=s().createElement("video"),t=s().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}})),Es.isSupported=function(){try{Es.TEST_VID.volume=.5}catch(e){return!1}
2return!(!Es.TEST_VID||!Es.TEST_VID.canPlayType)},Es.canPlayType=function(e){return Es.TEST_VID.canPlayType(e)},Es.canPlaySource=function(e,t){return Es.canPlayType(e.type)},Es.canControlVolume=function(){try{var e=Es.TEST_VID.volume;Es.TEST_VID.volume=e/2+.1;var t=e!==Es.TEST_VID.volume;return t&&gn?(r().setTimeout((function(){Es&&Es.prototype&&(Es.prototype.featuresVolumeControl=e!==Es.TEST_VID.volume)})),!1):t}catch(e){return!1}},Es.canMuteVolume=function(){try{var e=Es.TEST_VID.muted;return Es.TEST_VID.muted=!e,Es.TEST_VID.muted?Mn(Es.TEST_VID,"muted","muted"):Nn(Es.TEST_VID,"muted"),e!==Es.TEST_VID.muted}catch(e){return!1}},Es.canControlPlaybackRate=function(){if(nn&&ln&&cn<58)return!1;try{var e=Es.TEST_VID.playbackRate;return Es.TEST_VID.playbackRate=e/2+.1,e!==Es.TEST_VID.playbackRate}catch(e){return!1}},Es.canOverrideAttributes=function(){try{var e=function(){};Object.defineProperty(s().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(s().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(s().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(s().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},Es.supportsNativeTextTracks=function(){return vn||gn&&ln},Es.supportsNativeVideoTracks=function(){return!(!Es.TEST_VID||!Es.TEST_VID.videoTracks)},Es.supportsNativeAudioTracks=function(){return!(!Es.TEST_VID||!Es.TEST_VID.audioTracks)},Es.Events=["loadstart","suspend","abort","error","emptied","stalled","loadedmetadata","loadeddata","canplay","canplaythrough","playing","waiting","seeking","seeked","ended","durationchange","timeupdate","progress","play","pause","ratechange","resize","volumechange"],[["featuresMuteControl","canMuteVolume"],["featuresPlaybackRate","canControlPlaybackRate"],["featuresSourceset","canOverrideAttributes"],["featuresNativeTextTracks","supportsNativeTextTracks"],["featuresNativeVideoTracks","supportsNativeVideoTracks"],["featuresNativeAudioTracks","supportsNativeAudioTracks"]].forEach((function(e){var t=e[0],n=e[1];Cs(Es.prototype,t,(function(){return Es[n]()}),!0)})),Es.prototype.featuresVolumeControl=Es.canControlVolume(),Es.prototype.movingMediaElementInDOM=!gn,Es.prototype.featuresFullscreenResize=!0,Es.prototype.featuresProgressEvents=!0,Es.prototype.featuresTimeupdateEvents=!0,Es.prototype.featuresVideoFrameCallback=!(!Es.TEST_VID||!Es.TEST_VID.requestVideoFrameCallback),Es.patchCanPlayType=function(){rn>=4&&!sn&&!ln&&(bs=Es.TEST_VID&&Es.TEST_VID.constructor.prototype.canPlayType,Es.TEST_VID.constructor.prototype.canPlayType=function(e){return e&&/^application\/(?:x-|vnd\.apple\.)mpegurl/i.test(e)?"maybe":bs.call(this,e)})},Es.unpatchCanPlayType=function(){var e=Es.TEST_VID.constructor.prototype.canPlayType;return bs&&(Es.TEST_VID.constructor.prototype.canPlayType=bs),e},Es.patchCanPlayType(),Es.disposeMediaElement=function(e){if(e){for(e.parentNode&&e.parentNode.removeChild(e);e.hasChildNodes();)e.removeChild(e.firstChild);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},Es.resetMediaElement=function(e){if(e){for(var t=e.querySelectorAll("source"),n=t.length;n--;)e.removeChild(t[n]);e.removeAttribute("src"),"function"==typeof e.load&&function(){try{e.load()}catch(e){}}()}},["muted","defaultMuted","autoplay","controls","loop","playsinline"].forEach((function(e){Es.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}})),["muted","defaultMuted","autoplay","loop","playsinline"].forEach((function(e){Es.prototype["set"+qi(e)]=function(t){this.el_[e]=t,t?this.el_.setAttribute(e,e):this.el_.removeAttribute(e)}})),["paused","currentTime","buffered","volume","poster","preload","error","seeking","seekable","ended","playbackRate","defaultPlaybackRate","disablePictureInPicture","played","networkState","readyState","videoWidth","videoHeight","crossOrigin"].forEach((function(e){Es.prototype[e]=function(){return this.el_[e]}})),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach((function(e){Es.prototype["set"+qi(e)]=function(t){this.el_[e]=t}})),["pause","load","play"].forEach((function(e){Es.prototype[e]=function(){return this.el_[e]()}})),Ir.withSourceHandlers(Es),Es.nativeSourceHandler={},Es.nativeSourceHandler.canPlayType=function(e){try{return Es.TEST_VID.canPlayType(e)}catch(e){return""}},Es.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return Es.nativeSourceHandler.canPlayType(e.type);if(e.src){var n=yr(e.src);return Es.nativeSourceHandler.canPlayType("video/"+n)}return""},Es.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},Es.nativeSourceHandler.dispose=function(){},Es.registerSourceHandler(Es.nativeSourceHandler),Ir.registerTech("Html5",Es);var As=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],Ls={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},Is=["tiny","xsmall","small","medium","large","xlarge","huge"],Ps={};Is.forEach((function(e){var t="x"===e.charAt(0)?"x-"+e.substring(1):e;Ps[e]="vjs-layout-"+t}));var Os={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0},Ds=function(e){function t(n,i,r){var a;if(n.id=n.id||i.id||"vjs_video_"+si(),(i=$t(t.getTagSettings(n),i)).initChildren=!1,i.createEl=!1,i.evented=!1,i.reportTouchActivity=!1,!i.language)if("function"==typeof n.closest){var o=n.closest("[lang]");o&&o.getAttribute&&(i.language=o.getAttribute("lang"))}else for(var l=n;l&&1===l.nodeType;){if(Dn(l).hasOwnProperty("lang")){i.language=l.getAttribute("lang");break}l=l.parentNode}if((a=e.call(this,null,i,r)||this).boundDocumentFullscreenChange_=function(e){return a.documentFullscreenChange_(e)},a.boundFullWindowOnEscKey_=function(e){return a.fullWindowOnEscKey(e)},a.boundUpdateStyleEl_=function(e){return a.updateStyleEl_(e)},a.boundApplyInitTime_=function(e){return a.applyInitTime_(e)},a.boundUpdateCurrentBreakpoint_=function(e){return a.updateCurrentBreakpoint_(e)},a.boundHandleTechClick_=function(e){return a.handleTechClick_(e)},a.boundHandleTechDoubleClick_=function(e){return a.handleTechDoubleClick_(e)},a.boundHandleTechTouchStart_=function(e){return a.handleTechTouchStart_(e)},a.boundHandleTechTouchMove_=function(e){return a.handleTechTouchMove_(e)},a.boundHandleTechTouchEnd_=function(e){return a.handleTechTouchEnd_(e)},a.boundHandleTechTap_=function(e){return a.handleTechTap_(e)},a.isFullscreen_=!1,a.log=Ht(a.id_),a.fsApi_=Mt,a.isPosterFromTech_=!1,a.queuedCallbacks_=[],a.isReady_=!1,a.hasStarted_=!1,a.userActive_=!1,a.debugEnabled_=!1,a.audioOnlyMode_=!1,a.audioPosterMode_=!1,a.audioOnlyCache_={playerHe
2ight:null,hiddenChildren:[]},!a.options_||!a.options_.techOrder||!a.options_.techOrder.length)throw new Error("No techOrder specified. Did you overwrite videojs.options instead of just changing the properties you want to override?");if(a.tag=n,a.tagAttributes=n&&Dn(n),a.language(a.options_.language),i.languages){var c={};Object.getOwnPropertyNames(i.languages).forEach((function(e){c[e.toLowerCase()]=i.languages[e]})),a.languages_=c}else a.languages_=t.prototype.options_.languages;a.resetCache_(),a.poster_=i.poster||"",a.controls_=!!i.controls,n.controls=!1,n.removeAttribute("controls"),a.changingSrc_=!1,a.playCallbacks_=[],a.playTerminatedQueue_=[],n.hasAttribute("autoplay")?a.autoplay(!0):a.autoplay(a.options_.autoplay),i.plugins&&Object.keys(i.plugins).forEach((function(e){if("function"!=typeof a[e])throw new Error('plugin "'+e+'" does not exist')})),a.scrubbing_=!1,a.el_=a.createEl(),Di(u(a),{eventBusKey:"el_"}),a.fsApi_.requestFullscreen&&(fi(s(),a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_),a.on(a.fsApi_.fullscreenchange,a.boundDocumentFullscreenChange_)),a.fluid_&&a.on(["playerreset","resize"],a.boundUpdateStyleEl_);var d=Ui(a.options_);i.plugins&&Object.keys(i.plugins).forEach((function(e){a[e](i.plugins[e])})),i.debug&&a.debug(!0),a.options_.playerOptions=d,a.middleware_=[],a.playbackRates(i.playbackRates),a.initChildren(),a.isAudio("audio"===n.nodeName.toLowerCase()),a.controls()?a.addClass("vjs-controls-enabled"):a.addClass("vjs-controls-disabled"),a.el_.setAttribute("role","region"),a.isAudio()?a.el_.setAttribute("aria-label",a.localize("Audio Player")):a.el_.setAttribute("aria-label",a.localize("Video Player")),a.isAudio()&&a.addClass("vjs-audio"),a.flexNotSupported_()&&a.addClass("vjs-no-flex"),fn&&a.addClass("vjs-touch-enabled"),gn||a.addClass("vjs-workinghover"),t.players[a.id_]=u(a);var h=Pt.split(".")[0];return a.addClass("vjs-v"+h),a.userActive(!0),a.reportUserActivity(),a.one("play",(function(e){return a.listenForUserActivity_(e)})),a.on("stageclick",(function(e){return a.handleStageClick_(e)})),a.on("keydown",(function(e){return a.handleKeyDown(e)})),a.on("languagechange",(function(e){return a.handleLanguagechange(e)})),a.breakpoints(a.options_.breakpoints),a.responsive(a.options_.responsive),a.on("ready",(function(){a.audioPosterMode(a.options_.audioPosterMode),a.audioOnlyMode(a.options_.audioOnlyMode)})),a}h(t,e);var n=t.prototype;return n.dispose=function(){var n=this;this.trigger("dispose"),this.off("dispose"),pi(s(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),pi(s(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),t.players[this.id_]=null,this.tag&&this.tag.player&&(this.tag.player=null),this.el_&&this.el_.player&&(this.el_.player=null),this.tech_&&(this.tech_.dispose(),this.isPosterFromTech_=!1,this.poster_=""),this.playerElIngest_&&(this.playerElIngest_=null),this.tag&&(this.tag=null),Or[this.id()]=null,Lr.names.forEach((function(e){var t=Lr[e],i=n[t.getterName]();i&&i.off&&i.off()})),e.prototype.dispose.call(this)},n.createEl=function(){var t,n=this.tag,i=this.playerElIngest_=n.parentNode&&n.parentNode.hasAttribute&&n.parentNode.hasAttribute("data-vjs-player"),a="video-js"===this.tag.tagName.toLowerCase();i?t=this.el_=n.parentNode:a||(t=this.el_=e.prototype.createEl.call(this,"div"));var o=Dn(n);if(a){for(t=this.el_=n,n=this.tag=s().createElement("video");t.children.length;)n.appendChild(t.firstChild);An(t,"video-js")||Ln(t,"video-js"),t.appendChild(n),i=this.playerElIngest_=t,Object.keys(t).forEach((function(e){try{n[e]=t[e]}catch(e){}}))}if(n.setAttribute("tabindex","-1"),o.tabindex="-1",(un||ln&&hn)&&(n.setAttribute("role","application"),o.role="application"),n.removeAttribute("width"),n.removeAttribute("height"),"width"in o&&delete o.width,"height"in o&&delete o.height,Object.getOwnPropertyNames(o).forEach((function(e){a&&"class"===e||t.setAttribute(e,o[e]),a&&n.setAttribute(e,o[e])})),n.playerId=n.id,n.id+="_html5_api",n.className="vjs-tech",n.player=t.player=this,this.addClass("vjs-paused"),!0!==r().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=ii("vjs-styles-dimensions");var l=Kn(".vjs-styles-defaults"),c=Kn("head");c.insertBefore(this.styleEl_,l?l.nextSibling:c.firstChild)}this.fill_=!1,this.fluid_=!1,this.width(this.options_.width),this.height(this.options_.height),this.fill(this.options_.fill),this.fluid(this.options_.fluid),this.aspectRatio(this.options_.aspectRatio),this.crossOrigin(this.options_.crossOrigin||this.options_.crossorigin);for(var u=n.getElementsByTagName("a"),d=0;d<u.length;d++){var h=u.item(d);Ln(h,"vjs-hidden"),h.setAttribute("hidden","hidden")}return n.initNetworkState_=n.networkState,n.parentNode&&!i&&n.parentNode.insertBefore(t,n),En(n,t),this.children_.unshift(n),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=t,t},n.crossOrigin=function(e){if(!e)return this.techGet_("crossOrigin");"anonymous"===e||"use-credentials"===e?this.techCall_("setCrossOrigin",e):Ft.warn('crossOrigin must be "anonymous" or "use-credentials", given "'+e+'"')},n.width=function(e){return this.dimension("width",e)},n.height=function(e){return this.dimension("height",e)},n.dimension=function(e,t){var n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();var i=parseFloat(t);isNaN(i)?Ft.error('Improper value "'+t+'" supplied for for '+e):(this[n]=i,this.updateStyleEl_())},n.fluid=function(e){var t,n,i=this;if(void 0===e)return!!this.fluid_;this.fluid_=!!e,xi(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=function(){i.on(["playerreset","resize"],i.boundUpdateStyleEl_)},xi(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()},n.fill=function(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")},n.aspectRatio=function(e){if(void 0===e)return this.aspectRatio_;if(!/^\d+\:\d+$/.test(e))throw new Error("Improper value supplied for aspect ratio. The format should be width:height, for example 16:9.");this.aspectRatio_=e,this.fluid(!0),this.updateStyleEl_()},n.updateStyleEl_=function(){if(!0!==r().VIDEOJS_NO_DYNAMIC_STYLE){var e,t,n,i=(void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9").split(":"),a=i[1]/i[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/a:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*a,n=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(n),ri(this.styleEl_,"\n ."+n+" {\n width: "+e+"px;\n height: "+t+"px;\n }\n\n ."+n+".vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: "+100*a+"%;\n }\n ")}else{var s="number"==typeof this.width_?this.width_:this.options_.width,o="number"==typeof this.height_?this.height_:this.options_.height,l=this.tech_&&this.tech_.el();l&&(s>=0&&(l.width=s),o>
2=0&&(l.height=o))}},n.loadTech_=function(e,t){var n=this;this.tech_&&this.unloadTech_();var i=qi(e),r=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==i&&this.tag&&(Ir.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=i,this.isReady_=!1;var a=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(a=!1);var s={source:t,autoplay:a,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:this.id()+"_"+r+"_api",playsinline:this.options_.playsinline,preload:this.options_.preload,loop:this.options_.loop,disablePictureInPicture:this.options_.disablePictureInPicture,muted:this.options_.muted,poster:this.poster(),language:this.language(),playerElIngest:this.playerElIngest_||!1,"vtt.js":this.options_["vtt.js"],canOverridePoster:!!this.options_.techCanOverridePoster,enableSourceset:this.options_.enableSourceset,Promise:this.options_.Promise};Lr.names.forEach((function(e){var t=Lr[e];s[t.getterName]=n[t.privateName]})),$t(s,this.options_[i]),$t(s,this.options_[r]),$t(s,this.options_[e.toLowerCase()]),this.tag&&(s.tag=this.tag),t&&t.src===this.cache_.src&&this.cache_.currentTime>0&&(s.startTime=this.cache_.currentTime);var o=Ir.getTech(e);if(!o)throw new Error("No Tech named '"+i+"' exists! '"+i+"' should be registered using videojs.registerTech()'");this.tech_=new o(s),this.tech_.ready(Ti(this,this.handleTechReady_),!0),er(this.textTracksJson_||[],this.tech_),As.forEac
2h((function(e){n.on(n.tech_,e,(function(t){return n["handleTech"+qi(e)+"_"](t)}))})),Object.keys(Ls).forEach((function(e){n.on(n.tech_,e,(function(t){0===n.tech_.playbackRate()&&n.tech_.seeking()?n.queuedCallbacks_.push({callback:n["handleTech"+Ls[e]+"_"].bind(n),event:t}):n["handleTech"+Ls[e]+"_"](t)}))})),this.on(this.tech_,"loadstart",(function(e){return n.handleTechLoadStart_(e)})),this.on(this.tech_,"sourceset",(function(e){return n.handleTechSourceset_(e)})),this.on(this.tech_,"waiting",(function(e){return n.handleTechWaiting_(e)})),this.on(this.tech_,"ended",(function(e){return n.handleTechEnded_(e)})),this.on(this.tech_,"seeking",(function(e){return n.handleTechSeeking_(e)})),this.on(this.tech_,"play",(function(e){return n.handleTechPlay_(e)})),this.on(this.tech_,"firstplay",(function(e){return n.handleTechFirstPlay_(e)})),this.on(this.tech_,"pause",(function(e){return n.handleTechPause_(e)})),this.on(this.tech_,"durationchange",(function(e){return n.handleTechDurationChange_(e)})),this.on(this.tech_,"fullscreenchange",(function(e,t){return n.handleTechFullscreenChange_(e,t)})),this.on(this.tech_,"fullscreenerror",(function(e,t){return n.handleTechFullscreenError_(e,t)})),this.on(this.tech_,"enterpictureinpicture",(function(e){return n.handleTechEnterPictureInPicture_(e)})),this.on(this.tech_,"leavepictureinpicture",(function(e){return n.handleTechLeavePictureInPicture_(e)})),this.on(this.tech_,"error",(function(e){return n.handleTechError_(e)})),this.on(this.tech_,"posterchange",(function(e){return n.handleTechPosterChange_(e)})),this.on(this.tech_,"textdata",(function(e){return n.handleTechTextData_(e)})),this.on(this.tech_,"ratechange",(function(e){return n.handleTechRateChange_(e)})),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===i&&this.tag||En(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)},n.unloadTech_=function(){var e=this;Lr.names.forEach((function(t){var n=Lr[t];e[n.privateName]=e[n.getterName]()})),this.textTracksJson_=Zi(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1},n.tech=function(e){return void 0===e&&Ft.warn("Using the tech directly can be dangerous. I hope you know
2what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_},n.addTechControlsListeners_=function(){this.removeTechControlsListeners_(),this.on(this.tech_,"click",this.boundHandleTechClick_),this.on(this.tech_,"dblclick",this.boundHandleTechDoubleClick_),this.on(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.on(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.on(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.on(this.tech_,"tap",this.boundHandleTechTap_)},n.removeTechControlsListeners_=function(){this.off(this.tech_,"tap",this.boundHandleTechTap_),this.off(this.tech_,"touchstart",this.boundHandleTechTouchStart_),this.off(this.tech_,"touchmove",this.boundHandleTechTouchMove_),this.off(this.tech_,"touchend",this.boundHandleTechTouchEnd_),this.off(this.tech_,"click",this.boundHandleTechClick_),this.off(this.tech_,"dblclick",this.boundHandleTechDoubleClick_)},n.handleTechReady_=function(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()},n.handleTechLoadStart_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):(this.trigger("loadstart"),this.trigger("firstplay")),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())},n.manualAutoplay_=function(e){var t=this;if(this.tech_&&"string"==typeof e){var n,i=function(){var e=t.muted();t.muted(!0);var n=function(){t.muted(e)};t.playTerminatedQueue_.push(n);var i=t.play();if(Yi(i))return i.catch((function(e){throw n(),new Error("Rejection at manualAutoplay. Restoring muted value. "+(e||""))}))};if("any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():i():Yi(n=this.play())&&(n=n.catch(i)),Yi(n))return n.then((function(){t.trigger({type:"autoplay-success",autoplay:e})})).catch((function(){t.trigger({type:"autoplay-failure",autoplay:e})}))}},n.updateSourceCaches_=function(e){void 0===e&&(e="");var t=e,n="";"string"!=typeof t&&(t=e.src,n=e.type),this.cache_.source=this.cache_.source||{},this.cache_.sources=this.cache_.sources||[],t&&!n&&(n=function(e,t){if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;var n=e.cache_.sources.filter((function(e){return e.src===t}));if(n.length)return n[0].type;for(var i=e.$$("source"),r=0;r<i.length;r++){var a=i[r];if(a.type&&a.src&&a.src===t)return a.type}return Hr(t)}(this,t)),this.cache_.source=Ui({},e,{src:t,type:n});for(var i=this.cache_.sources.filter((function(e){return e.src&&e.src===t})),r=[],a=this.$$("source"),s=[],o=0;o<a.length;o++){var l=Dn(a[o]);r.push(l),l.src&&l.src===t&&s.push(l.src)}s.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t},n.handleTechSourceset_=function(e){var t=this;if(!this.changingSrc_){var n=function(e){return t.updateSourceCaches_(e)},i=this.currentSource().src,r=e.src;i&&!/^blob:/.test(i)&&/^blob:/.test(r)&&(!this.lastSource_||this.lastSource_.tech!==r&&this.lastSource_.player!==i)&&(n=function(){}),n(r),e.src||this.tech_.any(["sourceset","loadstart"],(function(e){if("sourceset"!==e.type){var n=t.techGet("currentSrc");t.lastSource_.tech=n,t.updateSourceCaches_(n)}}))}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})},n.hasStarted=function(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?(this.addClass("vjs-has-started"),this.trigger("firstplay")):this.removeClass("vjs-has-started"))},n.handleTechPlay_=function(){this.removeClass("vjs-ended"),this.removeClass("vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")},n.handleTechRateChange_=function(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach((function(e){return e.callback(e.event)})),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")},n.handleTechWaiting_=function(){var e=this;this.addClass("vjs-waiting"),this.trigger("waiting");var t=this.currentTime();this.on("timeupdate",(function n(){t!==e.currentTime()&&(e.removeClass("vjs-waiting"),e.off("timeupdate",n))}))},n.handleTechCanPlay_=function(){this.removeClass("vjs-waiting"),this.trigger("canplay")},n.handleTechCanPlayThrough_=function(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")},n.handleTechPlaying_=function(){this.removeClass("vjs-waiting"),this.trigger("playing")},n.handleTechSeeking_=function(){this.addClass("vjs-seeking"),this.trigger("seeking")},n.handleTechSeeked_=function(){this.removeClass("vjs-seeking"),this.removeClass("vjs-ended"),this.trigger("seeked")},n.handleTechFirstPlay_=function(){this.options_.starttime&&(Ft.warn("Passing the `starttime` option to the player will be deprecated
2in 6.0"),this.currentTime(this.options_.starttime)),this.addClass("vjs-has-started"),this.trigger("firstplay")},n.handleTechPause_=function(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")},n.handleTechEnded_=function(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")},n.handleTechDurationChange_=function(){this.duration(this.techGet_("duration"))},n.handleTechClick_=function(e){this.controls_&&(void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.click&&!1===this.options_.userActions.click||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.click?this.options_.userActions.click.call(this,e):this.paused()?Qi(this.play()):this.pause()))},n.handleTechDoubleClick_=function(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),(function(t){return t.contains(e.target)}))||void 0!==this.options_&&void 0!==this.options_.userActions&&void 0!==this.options_.userActions.doubleClick&&!1===this.options_.userActions.doubleClick||(void 0!==this.options_&&void 0!==this.options_.userActions&&"function"==typeof this.options_.userActions.doubleClick?this.options_.userActions.doubleClick.call(this,e):this.isFullscreen()?this.exitFullscreen():this.requestFullscreen()))},n.handleTechTap_=function(){this.userActive(!this.userActive())},n.handleTechTouchStart_=function(){this.userWasActive=this.userActive()},n.handleTechTouchMove_=function(){this.userWasActive&&this.reportUserActivity()},n.handleTechTouchEnd_=function(e){e.cancelable&&e.preventDefault()},n.handleStageClick_=function(){this.reportUserActivity()},n.toggleFullscreenClass_=function(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")},n.documentFullscreenChange_=function(e){var t=e.target.player;if(!t||t===this){var n=this.el(),i=s()[this.fsApi_.fullscreenElement]===n;!i&&n.matches?i=n.matches(":"+this.fsApi_.fullscreen):!i&&n.msMatchesSelector&&(i=n.msMatchesSelector(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}},n.handleTechFullscreenChange_=function(e,t){var n=this;t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",(function(){n.removeClass("vjs-ios-native-fs")}))),this.isFullscreen(t.isFullscreen))},n.handleTechFullscreenError_=function(e,t){this.trigger("fullscreenerror",t)},n.togglePictureInPictureClass_=function(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")},n.handleTechEnterPictureInPicture_=function(e){this.isInPictureInPicture(!0)},n.handleTechLeavePictureInPicture_=function(e){this.isInPictureInPicture(!1)},n.handleTechError_=function(){var e=this.tech_.error();this.error(e)},n.handleTechTextData_=function(){var e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)},n.getCache=function(){return this.cache_},n.resetCache_=function(){this.cache_={currentTime:0,initTime:0,inactivityTimeout:this.options_.inactivityTimeout,duration:NaN,lastVolume:1,lastPlaybackRate:this.defaultPlaybackRate(),media:null,src:"",source:{},sources:[],playbackRates:[],volume:1}},n.techCall_=function(e,t){this.ready((function(){if(e in qr)return function(e,t,n,i){return t[n](e.reduce(jr(n),i))}(this.middleware_,this.tech_,e,t);if(e in Ur)return Mr(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw Ft(e),e}}),!0)},n.techGet_=function(e){if(this.tech_&&this.tech_.isReady_){if(e in Nr)return function(e,t,n){return e.reduceRight(jr(n),t[n]())}(this.middleware_,this.tech_,e);if(e in Ur)return Mr(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw Ft("Video.js: "+e+" method not defined for "+this.techName_+" playback technology.",t),t;if("TypeError"===t.name)throw Ft("Video.js: "+e+" unavailable on "+this.techName_+" playback technology element.",t),this.tech_.isReady_=!1,t;throw Ft(t),t}}},n.play=function(){var e=this,t=this.options_.Promise||r().Promise;return t?new t((function(t){e.play_(t)})):this.play_()},n.play_=function(e){var t=this;void 0===e&&(e=Qi),this.playCallbacks_.push(e);var n=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc()));if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!n)return this.waitToPlay_=function(e){t.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(n||!vn&&!gn||this.load());var i=this.techGet_("play");null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)},n.runPlayTerminatedQueue_=function(){var e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach((function(e){e()}
2))},n.runPlayCallbacks_=function(e){var t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach((function(t){t(e)}))},n.pause=function(){this.techCall_("pause")},n.paused=function(){return!1!==this.techGet_("paused")},n.played=function(){return this.techGet_("played")||$i(0,0)},n.scrubbing=function(e){if(void 0===e)return this.scrubbing_;this.scrubbing_=!!e,this.techCall_("setScrubbing",this.scrubbing_),e?this.addClass("vjs-scrubbing"):this.removeClass("vjs-scrubbing")},n.currentTime=function(e){return void 0!==e?(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),void(this.cache_.initTime=0)):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_))):(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime)},n.applyInitTime_=function(){this.currentTime(this.cache_.initTime)},n.duration=function(e){if(void 0===e)return void 0!==this.cache_.duration?this.cache_.duration:NaN;(e=parseFloat(e))<0&&(e=1/0),e!==this.cache_.duration&&(this.cache_.duration=e,e===1/0?this.addClass("vjs-live"):this.removeClass("vjs-live"),isNaN(e)||this.trigger("durationchange"))},n.remainingTime=function(){return this.duration()-this.currentTime()},n.remainingTimeDisplay=function(){return Math.floor(this.duration())-Math.floor(this.currentTime())},n.buffered=function(){var e=this.techGet_("buffered");return e&&e.length||(e=$i(0,0)),e},n.bufferedPercent=function(){return Xi(this.buffered(),this.duration())},n.bufferedEnd=function(){var e=this.buffered(),t=this.duration(),n=e.end(e.length-1);return n>t&&(n=t),n},n.volume=function(e){var t;return void 0!==e?(t=Math.max(0,Math.min(1,parseFloat(e))),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)},n.muted=function(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)},n.defaultMuted=function(e){return void 0!==e?this.techCall_("setDefaultMuted",e):this.techGet_("defaultMuted")||!1},n.lastVolume_=function(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e},n.supportsFullScreen=function(){return this.techGet_("supportsFullScreen")||!1},n.isFullscreen=function(e){if(void 0!==e){var t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_},n.requestFullscreen=function(e){var t=this.options_.Promise||r().Promise;if(t){var n=this;return new t((function(t,i){function r(){n.off("fullscreenerror",s),n.off("fullscreenchange",a)}function a(){r(),t()}function s(e,t){r(),i(t)}n.one("fullscreenchange",a),n.one("fullscreenerror",s);var o=n.requestFullscreenHelper_(e);o&&(o.then(r,r),o.then(t,i))}))}return this.requestFullscreenHelper_()},n.requestFullscreenHelper_=function(e){var t,n=this;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){var i=this.el_[this.fsApi_.requestFullscreen](t);return i&&i.then((function(){return n.isFullscreen(!0)}),(function(){return n.isFullscreen(!1)})),i}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()},n.exitFullscreen=function(){var e=this.options_.Promise||r().Promise;if(e){var t=this;return new e((function(e,n){function i(){t.off("fullscreenerror",a),t.off("fullscreenchange",r)}function r(){i(),e()}function a(e,t){i(),n(t)}t.one("fullscreenchange",r),t.one("fullscreenerror",a);var s=t.exitFullscreenHelper_();s&&(s.then(i,i),s.then(e,n))}))}return this.exitFullscreenHelper_()},n.exitFullscreenHelper_=function(){var e=this;if(this.fsApi_.requestFullscreen){var t=s()[this.fsApi_.exitFullscreen]();return t&&Qi(t.then((function(){return e.isFullscreen(!1)}))),t}this.tech_.supportsFullScreen()&&!0==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()},n.enterFullWindow=function(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=s().documentElement.style.overflow,fi(s(),"keydown",this.boundFullWindowOnEscKey_),s().documentElement.style.overflow="hidden",Ln(s().body,"vjs-full-window"),this.trigger("enterFullWindow")},n.fullWindowOnEscKey=function(e){c().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())},n.exitFullWindow=function(){this.isFullscreen(!1),this.isFullWindow=!1,pi(s(),"keydown",this.boundFullWindowOnEscKey_),s().documentElement.style.overflow=this.docOrigOverflow,In(s().body,"vjs-full-window"),this.trigger("exitFullWindow")},n.disablePictureInPicture=function(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")},n.isInPictureInPicture=function(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_},n.requestPictureInPicture=function(){if("pictureInPictureEnabled"in s()&&!1===this.disablePictureInPicture())return this.techGet_("requestPictureInPicture")},n.exitPictureInPicture=function(){if("pictureInPictureEnabled"in s())return s().exitPictureInPicture()},n.handleKeyDown=function(e){var t=this.options_.userActions;if(t&&t.hotkeys){(function(e){var t=e.tagName.toLowerCase();if(e.isContentEditable)return!0;
2if("input"===t)return-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type);return-1!==["textarea"].indexOf(t)})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e))}},n.handleHotkeys=function(e){var t=this.options_.userActions?this.options_.userActions.hotkeys:{},n=t.fullscreenKey,i=void 0===n?function(e){return c().isEventKey(e,"f")}:n,r=t.muteKey,a=void 0===r?function(e){return c().isEventKey(e,"m")}:r,o=t.playPauseKey,l=void 0===o?function(e){return c().isEventKey(e,"k")||c().isEventKey(e,"Space")}:o;if(i.call(this,e)){e.preventDefault(),e.stopPropagation();var u=Wi.getComponent("FullscreenToggle");!1!==s()[this.fsApi_.fullscreenEnabled]&&u.prototype.handleClick.call(this,e)}else if(a.call(this,e)){e.preventDefault(),e.stopPropagation(),Wi.getComponent("MuteToggle").prototype.handleClick.call(this,e)}else if(l.call(this,e)){e.preventDefault(),e.stopPropagation(),Wi.getComponent("PlayToggle").prototype.handleClick.call(this,e)}},n.canPlayType=function(e){for(var t,n=0,i=this.options_.techOrder;n<i.length;n++){var r=i[n],a=Ir.getTech(r);if(a||(a=Wi.getComponent(r)),a){if(a.isSupported()&&(t=a.canPlayType(e)))return t}else Ft.error('The "'+r+'" tech is undefined. Skipped browser support check for that tech.')}return""},n.selectSource=function(e){var t,n,i=this,r=this.options_.techOrder.map((function(e){return[e,Ir.getTech(e)]})).filter((function(e){var t=e[0],n=e[1];return n?n.isSupported():(Ft.error('The "'+t+'" tech is undefined. Skipped browser support check for that tech.'),!1)})),a=function(e,t,n){var i;return e.some((function(e){return t.some((function(t){if(i=n(e,t))return!0}))})),i},s=function(e,t){var n=e[0];if(e[1].canPlaySource(t,i.options_[n.toLowerCase()]))return{source:t,tech:n}};return t=this.options_.sourceOrder?a(e,r,(n=s,function(e,t){return n(t,e)})):a(r,e,s),t||!1},n.handleSrc_=function(e,t){var n=this;if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();var i=Wr(e);if(i.length){if(this.changingSrc_=!0,t||(this.cache_.sources=i),this.updateSourceCaches_(i[0]),Rr(this,i[0],(function(e,r){var a,s;if(n.middleware_=r,t||(n.cache_.sources=i),n.updateSourceCaches_(e),n.src_(e))return i.length>1?n.handleSrc_(i.slice(1)):(n.changingSrc_=!1,n.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0),void n.triggerReady());a=r,s=n.tech_,a.forEach((function(e){return e.setTech&&e.setTech(s)}))})),this.options_.retryOnError&&i.length>1){var r=function(){n.error(null),n.handleSrc_(i.slice(1),!0)},a=function(){n.off("error",r)};this.one("error",r),this.one("playing",a),this.resetRetryOnError_=function(){n.off("error",r),n.off("playing",a)}}}else this.setTimeout((function(){this.error({code:4,message:this.localize(this.options_.notSupportedMessage)})}),0)},n.src=function(e){return this.handleSrc_(e,!1)},n.src_=function(e){var t,n,i=this,r=this.selectSource([e]);return!r||(t=r.tech,n=this.techName_,qi(t)!==qi(n)?(this.changingSrc_=!0,this.loadTech_(r.tech,r.source),this.tech_.ready((function(){i.changingSrc_=!1})),!1):(this.ready((function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1}),!0),!1))},n.load=function(){this.techCall_("load")},n.reset=function(){var e=this,t=this.options_.Promise||r().Promise;this.paused()||!t?this.doReset_():Qi(this.play().then((function(){return e.doReset_()})))},n.doReset_=function(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),xi(this)&&this.trigger("playerreset")},n.resetControlBarUI_=function(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()},n.resetProgressBar_=function(){this.currentTime(0);var e=this.controlBar,t=e.durationDisplay,n=e.remainingTimeDisplay;t&&t.updateContent(),n&&n.updateContent()},n.resetPlaybackRate_=function(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()},n.resetVolumeBar_=function(){this.volume(1),this.trigger("volumechange")},n.currentSources=function(){var e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t},n.currentSource=function(){return this.cache_.source||{}},n.currentSrc=function(){return this.currentSource()&&this.currentSource().src||""},n.currentType=function(){return this.currentSource()&&this.currentSource().type||""},n.preload=function(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")},n.autoplay=function(e){if(void 0===e)return this.options_.autoplay||!1;var t;"string"==typeof e&&/(any|play|muted)/.test(e)||!0===e&&this.options_.normalizeAutoplay?(this.options_.autoplay=e,this.manualAutoplay_("string"==typeof e?e:"play"),t=!1):this.options_.autoplay=!!e,t=void 0===t?this.options_.autoplay:t,this.tech_&&this.techCall_("setAutoplay",t)},n.playsinline=function(e){return void 0!==e?(this.techCall_("setPlaysinline",e),this.options_.playsinline=e,this):this.techGet_("playsinline")},n.loop=function(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")},n.poster=function(e){if(void 0===e)return this.poster_;e||(e=""),e!==this.poster_&&(this.poster_=e,this.techCall_("setPoster",e),this.isPosterFromTech_=!1,this.trigger("posterchange"))},n.handleTechPosterChange_=function(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){var e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}},n.controls=function(e){if(void 0===e)return!!this.controls_;e=!!e,this.controls_!==e&&(this.controls_=e,this.usingNativeControls()&&this.techCall_("setControls",e),this.controls_?(this.removeClass("vjs-controls-disabled"),this.addClass("vjs-controls-enabled"),this.trigger("controlsenabled"),this.usingNativeControls()||this.addTechControl
2sListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))},n.usingNativeControls=function(e){if(void 0===e)return!!this.usingNativeControls_;e=!!e,this.usingNativeControls_!==e&&(this.usingNativeControls_=e,this.usingNativeControls_?(this.addClass("vjs-using-native-controls"),this.trigger("usingnativecontrols")):(this.removeClass("vjs-using-native-controls"),this.trigger("usingcustomcontrols")))},n.error=function(e){var t=this;if(void 0===e)return this.error_||null;if(Dt("beforeerror").forEach((function(n){var i=n(t,e);Xt(i)&&!Array.isArray(i)||"string"==typeof i||"number"==typeof i||null===i?e=i:t.log.error("please return a value that MediaError expects in beforeerror hooks")})),this.options_.suppressNotSupportedError&&e&&4===e.code){var n=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],n),void this.one("loadstart",(function(){this.off(["click","touchstart"],n)}))}if(null===e)return this.error_=e,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new Gi(e),this.addClass("vjs-error"),Ft.error("(CODE:"+this.error_.code+" "+Gi.errorTypes[this.error_.code]+")",this.error_.message,this.error_),this.trigger("error"),Dt("error").forEach((function(e){return e(t,t.error_)}))},n.reportUserActivity=function(e){this.userActivity_=!0},n.userActive=function(e){if(void 0===e)return this.userActive_;if((e=!!e)!==this.userActive_){if(this.userActive_=e,this.userActive_)return this.userActivity_=!0,this.removeClass("vjs-user-inactive"),this.addClass("vjs-user-active"),void this.trigger("useractive");this.tech_&&this.tech_.one("mousemove",(function(e){e.stopPropagation(),e.preventDefault()})),this.userActivity_=!1,this.removeClass("vjs-user-active"),this.addClass("vjs-user-inactive"),this.trigger("userinactive")}},n.listenForUserActivity_=function(){var e,t,n,i=Ti(this,this.reportUserActivity),r=function(t){i(),this.clearInterval(e)};this.on("mousedown",(function(){i(),this.clearInterval(e),e=this.setInterval(i,250)})),this.on("mousemove",(function(e){e.screenX===t&&e.screenY===n||(t=e.screenX,n=e.screenY,i())})),this.on("mouseup",r),this.on("mouseleave",r);var a,s=this.getChild("controlBar");!s||gn||nn||(s.on("mouseenter",(function(e){0!==this.player().options_.inactivityTimeout&&(this.player().cache_.inactivityTimeout=this.player().options_.inactivityTimeout),this.player().options_.inactivityTimeout=0})),s.on("mouseleave",(function(e){this.player().options_.inactivityTimeout=this.player().cache_.inactivityTimeout}))),this.on("keydown",i),this.on("keyup",i),this.setInterval((function(){if(this.userActivity_){this.userActivity_=!1,this.userActive(!0),this.clearTimeout(a);var e=this.options_.inactivityTimeout;e<=0||(a=this.setTimeout((function(){this.userActivity_||this.userActive(!1)}),e))}}),250)},n.playbackRate=function(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)},n.defaultPlaybackRate=function(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1},n.isAudio=function(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e},n.enableAudioOnlyUI_=function(){var e=this;this.addClass("vjs-audio-only-mode");var t=this.children(),n=this.getChild("ControlBar"),i=n&&n.currentHeight();t.forEach((function(t){t!==n&&t.el_&&!t.hasClass("vjs-hidden")&&(t.hide(),e.audioOnlyCache_.hiddenChildren.push(t))})),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(i),this.trigger("audioonlymodechange")},n.disableAudioOnlyUI_=function(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach((function(e){return e.show()})),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")},n.audioOnlyMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;this.audioOnlyMode_=e;var n=this.options_.Promise||r().Promise;if(n){if(e){var i=[];return this.isInPictureInPicture()&&i.push(this.exitPictureInPicture()),this.isFullscreen()&&i.push(this.exitFullscreen()),this.audioPosterMode()&&i.push(this.audioPosterMode(!1)),n.all(i).then((function(){return t.enableAudioOnlyUI_()}))}return n.resolve().then((function(){return t.disableAudioOnlyUI_()}))}e?(this.isInPictureInPicture()&&this.exitPictureInPicture(),this.isFullscreen()&&this.exitFullscreen(),this.enableAudioOnlyUI_()):this.disableAudioOnlyUI_()},n.enablePosterModeUI_=function(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.disablePosterModeUI_=function(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")},n.audioPosterMode=function(e){var t=this;if("boolean"!=typeof e||e===this.audioPosterMode_)return this.audioPosterMode_;this.audioPosterMode_=e;var n=this.options_.Promise||r().Promise;return n?e?this.audioOnlyMode()?this.audioOnlyMode(!1).then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.enablePosterModeUI_()})):n.resolve().then((function(){t.disablePosterModeUI_()})):e?(this.audioOnlyMode()&&this.audioOnlyMode(!1),void this.enablePosterModeUI_()):void this.disablePosterModeUI_()},n.addTextTrack=function(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)},n.addRemoteTextTrack=function(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)},n.removeRemoteTextTrack=function(e){void 0===e&&(e={});var t=e.track;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)},n.getVideoPlaybackQuality=function(){return this.techGet_("getVideoPlaybackQuality")},n.videoWidth=function(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0},n.videoHeight=function(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0},n.language=function(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),xi(this)&&this.trigger("languagechange"))},n.languages=function(){return Ui(t.prototype.options_.languages,this.languages_)},n.toJSON=function(){var e=Ui(this.options_),t=e.tracks;e.tracks=[];for(var n=0;n<t.length;n++){var i=t[n];(i=Ui(i)).player=void 0,e.tracks[n]=i}return e},n.createModal=function(e,t){var n=this;(t=t||{}).content=e||"";var i=new tr(this,t);return this.addChild(i),i.on("dispose",(function(){n.removeChild(i)})),i.open(),i},n.updateCurrentBreakpoint_=function(){if(this.responsive())for(var e=this.currentBreakpoint(),t=this.currentWidth(),n=0;n<Is.length;n++){var i=Is[n];
2if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(Ps[e]),this.addClass(Ps[i]),this.breakpoint_=i;break}}},n.removeCurrentBreakpoint_=function(){var e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)},n.breakpoints=function(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=$t({},Os,e),this.updateCurrentBreakpoint_()),$t(this.breakpoints_)},n.responsive=function(e){return void 0===e?this.responsive_:(e=Boolean(e))!==this.responsive_?(this.responsive_=e,e?(this.on("playerresize",this.boundUpdateCurrentBreakpoint_),this.updateCurrentBreakpoint_()):(this.off("playerresize",this.boundUpdateCurrentBreakpoint_),this.removeCurrentBreakpoint_()),e):void 0},n.currentBreakpoint=function(){return this.breakpoint_},n.currentBreakpointClass=function(){return Ps[this.breakpoint_]||""},n.loadMedia=function(e,t){var n=this;if(e&&"object"==typeof e){this.reset(),this.cache_.media=Ui(e);var i=this.cache_.media,r=i.artwork,a=i.poster,s=i.src,o=i.textTracks;!r&&a&&(this.cache_.media.artwork=[{src:a,type:Hr(a)}]),s&&this.src(s),a&&this.poster(a),Array.isArray(o)&&o.forEach((function(e){return n.addRemoteTextTrack(e,!1)})),this.ready(t)}},n.getMedia=function(){if(!this.cache_.media){var e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),(function(e){return{kind:e.kind,label:e.label,language:e.language,src:e.src}}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:Hr(t.poster)}]),t}return Ui(this.cache_.media)},t.getTagSettings=function(e){var t={sources:[],tracks:[]},n=Dn(e),i=n["data-setup"];if(An(e,"vjs-fill")&&(n.fill=!0),An(e,"vjs-fluid")&&(n.fluid=!0),null!==i){var r=p()(i||"{}"),a=r[0],s=r[1];a&&Ft.error(a),$t(n,s)}if($t(t,n),e.hasChildNodes())for(var o=e.childNodes,l=0,c=o.length;l<c;l++){var u=o[l],d=u.nodeName.toLowerCase();"source"===d?t.sources.push(Dn(u)):"track"===d&&t.tracks.push(Dn(u))}return t},n.flexNotSupported_=function(){var e=s().createElement("i");return!("flexBasis"in e.style||"webkitFlexBasis"in e.style||"mozFlexBasis"in e.style||"msFlexBasis"in e.style||"msFlexOrder"in e.style)},n.debug=function(e){if(void 0===e)return this.debugEnabled_;e?(this.trigger("debugon"),this.previousLogLevel_=this.log.level,this.log.level("debug"),this.debugEnabled_=!0):(this.trigger("debugoff"),this.log.level(this.previousLogLevel_),this.previousLogLevel_=void 0,this.debugEnabled_=!1)},n.playbackRates=function(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every((function(e){return"number"==typeof e}))&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))},t}(Wi);Lr.names.forEach((function(e){var t=Lr[e];Ds.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}})),Ds.prototype.crossorigin=Ds.prototype.crossOrigin,Ds.players={};var Rs=r().navigator;Ds.prototype.options_={techOrder:Ir.defaultTechOrder_,html5:{},inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:Rs&&(Rs.languages&&Rs.languages[0]||Rs.userLanguage||Rs.language)||"en",languages:{},notSupportedMessage:"No compatible source was found for this media.",normalizeAutoplay:!1,fullscreen:{options:{navigationUI:"hide"}},breakpoints:{},responsive:!1,audioOnlyMode:!1,audioPosterMode:!1},["ended","seeking","seekable","networkState","readyState"].forEach((function(e){Ds.prototype[e]=function(){return this.techGet_(e)}})),As.forEach((function(e){Ds.prototype["handleTech"+qi(e)+"_"]=function(){return this.trigger(e)}})),Wi.registerComponent("Player",Ds);var Ms="plugin",Ns={},qs=function(e){return Ns.hasOwnProperty(e)},Us=function(e){return qs(e)?Ns[e]:void 0},js=function(e,t){e.activePlugins_=e.activePlugins_||{},e.activePlugins_[t]=!0},Bs=function(e,t,n){var i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},Fs=function(e,t){return t.prototype.name=e,function(){Bs(this,{name:e,plugin:t,instance:null},!0);for(var n=arguments.length,i=new Array(n),r=0;r<n;r++)i[r]=arguments[r];var a=_(t,[this].concat(i));return this[e]=function(){return a},Bs(this,a.getEventHash()),a}},Hs=function(){function e(t){if(this.constructor===e)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=t,this.log||(this.log=this.player.log.createLogger(this.name)),Di(this),delete this.trigger,Mi(this,this.constructor.defaultState),js(t,this.name),this.dispose=this.dispose.bind(this),t.on("dispose",this.dispose)}var t=e.prototype;return t.version=function(){return this.constructor.VERSION},t.getEventHash=function(e){return void 0===e&&(e={}),e.name=this.name,e.plugin=this.constructor,e.instance=this,e},t.trigger=function(e,t){return void 0===t&&(t={}),mi(this.eventBusEl_,e,this.getEventHash(t))},t.handleStateChanged=function(e){},t.dispose=function(){var e=this.name,t=this.player;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t.activePlugins_[e]=!1,this.player=this.state=null,t[e]=Fs(e,Ns[e])},e.isBasic=function(t){var n="string"==typeof t?Us(t):t;return"function"==typeof n&&!e.prototype.isPrototypeOf(n.prototype)},e.registerPlugin=function(t,n){if("string"!=typeof t)throw new Error('Illegal plugin name, "'+t+'", must be a string, was '+typeof t+".");if(qs(t))Ft.warn('A plugin named "'+t+'" already exists. You may want to avoid re-registering plugins!');else if(Ds.prototype.hasOwnProperty(t))throw new Error('Illegal plugin name, "'+t+'", cannot share a name with an existing player method!');if("function"!=typeof n)throw new Error('Illegal plugin for "'+t+'", must be a function, was '+typeof n+".");return Ns[t]=n,t!==Ms&&(e.isBasic(n)?Ds.prototype[t]=function(e,t){var n=function(){Bs(this,{name:e,plugin:t,instance:null},!0);var n=t.apply(this,arguments);return js(this,e),Bs(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach((function(e){n[e]=t[e]})),n}(t,n):Ds.prototype[t]=Fs(t,n)),n},e.deregisterPlugin=function(e){if(e===Ms)throw new Error("Cannot de-register base plugin.");qs(e)&&(delete Ns[e],delete Ds.prototype[e])},e.getPlugins=function(e){var t;return void 0===e&&(e=Object.keys(Ns)),e.forEach((function(e){var n=Us(e);n&&((t=t||{})[e]=n)})),t},e.getPluginVersion=function(e){var t=Us(e);return t&&t.VERSION||""},e}();Hs.getPlugin=Us,Hs.BASE_PLUGIN_NAME=Ms,Hs.registerPlugin(Ms,Hs),Ds.prototype.usingPlugin=function(e){return!!this.activePlugins_&&!0===this.activePlugins_[e]},Ds.prototype.hasPlugin=function(e){return!!qs(e)};var Ws=function(e){return 0===e.indexOf("#")?e.slice(1):e};function zs(e,t,n){var i=zs.getPlayer(e);if(i)return t&&Ft.warn('Player "'+e+'" is already initialised. Options will not be applied.'),n&&i.ready(n),i;var r="string"==typeof e?Kn("#"+Ws(e)):e;if(!kn(r))throw new TypeError("The element or ID supplied is not val
2id. (videojs)");r.ownerDocument.defaultView&&r.ownerDocument.body.contains(r)||Ft.warn("The element supplied is not included in the DOM"),t=t||{},Dt("beforesetup").forEach((function(e){var n=e(r,Ui(t));Xt(n)&&!Array.isArray(n)?t=Ui(t,n):Ft.error("please return an object in beforesetup hooks")}));var a=Wi.getComponent("Player");return i=new a(r,t,n),Dt("setup").forEach((function(e){return e(i)})),i}if(zs.hooks_=Ot,zs.hooks=Dt,zs.hook=function(e,t){Dt(e,t)},zs.hookOnce=function(e,t){Dt(e,[].concat(t).map((function(t){return function n(){return Rt(e,n),t.apply(void 0,arguments)}})))},zs.removeHook=Rt,!0!==r().VIDEOJS_NO_DYNAMIC_STYLE&&Tn()){var Vs=Kn(".vjs-styles-defaults");if(!Vs){Vs=ii("vjs-styles-defaults");var $s=Kn("head");$s&&$s.insertBefore(Vs,$s.firstChild),ri(Vs,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}ei(1,zs),zs.VERSION=Pt,zs.options=Ds.prototype.options_,zs.getPlayers=function(){return Ds.players},zs.getPlayer=function(e){var t,n=Ds.players;if("string"==typeof e){var i=Ws(e),r=n[i];if(r)return r;t=Kn("#"+i)}else t=e;if(kn(t)){var a=t,s=a.player,o=a.playerId;if(s||n[o])return s||n[o]}},zs.getAllPlayers=function(){return Object.keys(Ds.players).map((function(e){return Ds.players[e]})).filter(Boolean)},zs.players=Ds.players,zs.getComponent=Wi.getComponent,zs.registerComponent=function(e,t){Ir.isTech(t)&&Ft.warn("The "+e+" tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)"),Wi.registerComponent.call(Wi,e,t)},zs.getTech=Ir.getTech,zs.registerTech=Ir.registerTech,zs.use=function(e,t){Pr[e]=Pr[e]||[],Pr[e].push(t)},Object.defineProperty(zs,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(zs.middleware,"TERMINATOR",{value:Dr,writeable:!1,enumerable:!0}),zs.browser=yn,zs.TOUCH_ENABLED=fn,zs.extend=function(e,t){void 0===t&&(t={});var n=function(){e.apply(this,arguments)},i={};for(var r in"object"==typeof t?(t.constructor!==Object.prototype.constructor&&(n=t.constructor),i=t):"function"==typeof t&&(n=t),function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(n,e),e&&(n.super_=e),i)i.hasOwnProperty(r)&&(n.prototype[r]=i[r]);return n},zs.mergeOptions=Ui,zs.bind=Ti,zs.registerPlugin=Hs.registerPlugin,zs.deregisterPlugin=Hs.deregisterPlugin,zs.plugin=function(e,t){return Ft.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),Hs.registerPlugin(e,t)},zs.getPlugins=Hs.getPlugins,zs.getPlugin=Hs.getPlugin,zs.getPluginVersion=Hs.getPluginVersion,zs.addLanguage=function(e,t){var n;return e=(""+e).toLowerCase(),zs.options.languages=Ui(zs.options.languages,((n={})[e]=t,n)),zs.options.languages[e]},zs.log=Ft,zs.createLogger=Ht,zs.createTimeRange=zs.createTimeRanges=$i,zs.formatTime=aa,zs.setFormatTime=function(e){ra=e},zs.resetFormatTime=function(){ra=ia},zs.parseUrl=gr,zs.isCrossOrigin=br,zs.EventTarget=wi,zs.on=fi,zs.one=gi,zs.off=pi,zs.trigger=mi,zs.xhr=g(),zs.TextTrack=wr,zs.AudioTrack=Sr,zs.VideoTrack=xr,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach((function(e){zs[e]=function(){return Ft.warn("videojs."+e+"() is deprecated; use videojs.dom."+e+"() instead"),Qn[e].apply(null,arguments)}})),zs.computedStyle=Kt,zs.dom=Qn,zs.url=_r,zs.defineLazyProperty=Cs,zs.addLanguage("en",{"Non-Fullscreen":"Exit Fullscreen"});var Xs=S,Gs=function(e,t,n){return e&&n&&n.responseURL&&t!==n.responseURL?n.responseURL:t},Ks=function(e){return zs.log.debug?zs.log.debug.bind(zs,"VHS:",e+" >"):function(){}},Ys=1/30,Qs=.1,Js=function(e,t){var n,i=[];if(e&&e.length)for(n=0;n<e.length;n++)t(e.start(n),e.end(n))&&i.push([e.start(n),e.end(n)]);return zs.createTimeRanges(i)},Zs=function(e,t){return Js(e,(function(e,n){return e-Qs<=t&&n+Qs>=t}))},eo=function(e,t){return Js(e,(function(e){return e-Ys>=t}))},to=function(e){var t=[];if(!e||!e.length)return"";for(var n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},no=function(e){for(var t=[],n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},io=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},ro=function(e,t){var n=0;if(!e||!e.length)return n;for(var i=0;i<e.length;i++){var r=e.start(i),a=e.end(i);t>a||(n+=t>r&&t<=a?a-t:a-r)}return n},ao=zs.createTimeRange,so=function(e,t){if(!t.preload)return t.duration;var n=0;
2return(t.parts||[]).forEach((function(e){n+=e.duration})),(t.preloadHints||[]).forEach((function(t){"PART"===t.type&&(n+=e.partTargetDuration)})),n},oo=function(e){return(e.segments||[]).reduce((function(e,t,n){return t.parts?t.parts.forEach((function(i,r){e.push({duration:i.duration,segmentIndex:n,partIndex:r,part:i,segment:t})})):e.push({duration:t.duration,segmentIndex:n,partIndex:null,segment:t,part:null}),e}),[])},lo=function(e){var t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},co=function(e){var t=e.preloadSegment;if(t){var n=t.parts,i=(t.preloadHints||[]).reduce((function(e,t){return e+("PART"===t.type?1:0)}),0);return i+=n&&n.length?n.length:0}},uo=function(e,t){if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;var n=lo(t).length>0;return n&&t.serverControl&&t.serverControl.partHoldBack?t.serverControl.partHoldBack:n&&t.partTargetDuration?3*t.partTargetDuration:t.serverControl&&t.serverControl.holdBack?t.serverControl.holdBack:t.targetDuration?3*t.targetDuration:0},ho=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;var i=function(e,t){var n=0,i=t-e.mediaSequence,r=e.segments[i];if(r){if(void 0!==r.start)return{result:r.start,precise:!0};if(void 0!==r.end)return{result:r.end-r.duration,precise:!0}}for(;i--;){if(void 0!==(r=e.segments[i]).end)return{result:n+r.end,precise:!0};if(n+=so(e,r),void 0!==r.start)return{result:n+r.start,precise:!0}}return{result:n,precise:!1}}(e,t);if(i.precise)return i.result;var r=function(e,t){for(var n,i=0,r=t-e.mediaSequence;r<e.segments.length;r++){if(void 0!==(n=e.segments[r]).start)return{result:n.start-i,precise:!0};if(i+=so(e,n),void 0!==n.end)return{result:n.end-i,precise:!0}}return{result:-1,precise:!1}}(e,t);return r.precise?r.result:i.result+n},fo=function(e,t,n){if(!e)return 0;if("number"!=typeof n&&(n=0),void 0===t){if(e.totalDuration)return e.totalDuration;if(!e.endList)return r()[1/0]}
2return ho(e,t,n)},po=function(e){var t=e.defaultDuration,n=e.durationList,i=e.startIndex,r=e.endIndex,a=0;if(i>r){var s=[r,i];i=s[0],r=s[1]}if(i<0){for(var o=i;o<Math.min(0,r);o++)a+=t;i=0}for(var l=i;l<r;l++)a+=n[l].duration;return a},mo=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return fo(e);if(null===t)return null;t=t||0;var r=ho(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:uo(null,e)),Math.max(0,r)},go=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},vo=function(e){return e.excludeUntil&&e.excludeUntil===1/0},yo=function(e){var t=go(e);return!e.disabled&&!t},bo=function(e,t){return t.attributes&&t.attributes[e]},_o=function(e,t){if(1===e.playlists.length)return!0;var n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter((function(e){return!!yo(e)&&(e.attributes.BANDWIDTH||0)<n})).length},To=function(e,t){return!(!e&&!t||!e&&t||e&&!t)&&(e===t||(!(!e.id||!t.id||e.id!==t.id)||(!(!e.resolvedUri||!t.resolvedUri||e.resolvedUri!==t.resolvedUri)||!(!e.uri||!t.uri||e.uri!==t.uri))))},ko=function(e,t){var n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{},i=!1;for(var r in n){for(var a in n[r])if(i=t(n[r][a]))break;if(i)break}return!!i},wo=function(e){if(!e||!e.playlists||!e.playlists.length)return ko(e,(function(e){return e.playlists&&e.playlists.length||e.uri}));for(var t=function(t){var n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;return i&&i.split(",").every((function(e){return z(e)}))||ko(e,(function(e){return To(n,e)}))?"continue":{v:!1}},n=0;n<e.playlists.length;n++){var i=t(n);if("continue"!==i&&"object"==typeof i)return i.v}return!0},So={liveEdgeDelay:uo,duration:fo,seekable:function(e,t,n){var i=t||0,r=mo(e,t,!0,n);return null===r?ao():ao(i,r)},getMediaInfoForTime:function(e){for(var t=e.playlist,n=e.currentTime,i=e.startingSegmentIndex,r=e.startingPartIndex,a=e.startTime,s=e.experimentalExactManifestTimings,o=n-a,l=oo(t),c=0,u=0;u<l.length;u++){var d=l[u];if(i===d.segmentIndex&&("number"!=typeof r||"number"!=typeof d.partIndex||r===d.partIndex)){c=u;break}}if(o<0){if(c>0)for(var h=c-1;h>=0;h--){var f=l[h];if(o+=f.duration,s){if(o<0)continue}else if(o+Ys<=0)continue;return{partIndex:f.partIndex,segmentIndex:f.segmentIndex,startTime:a-po({defaultDuration:t.targetDuration,durationList:l,startIndex:c,endIndex:h})}}return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n}}if(c<0){for(var p=c;p<0;p++)if((o-=t.targetDuration)<0)return{partIndex:l[0]&&l[0].partIndex||null,segmentIndex:l[0]&&l[0].segmentIndex||0,startTime:n};c=0}for(var m=c;m<l.length;m++){var g=l[m];if(o-=g.duration,s){if(o>0)continue}else if(o-Ys>=0)continue;return{partIndex:g.partIndex,segmentIndex:g.segmentIndex,startTime:a+po({defaultDuration:t.targetDuration,durationList:l,startIndex:c,endIndex:m})}}return{segmentIndex:l[l.length-1].segmentIndex,partIndex:l[l.length-1].partIndex,startTime:n}},isEnabled:yo,isDisabled:function(e){return e.disabled},isBlacklisted:go,isIncompatible:vo,playlistEnd:mo,isAes:function(e){for(var t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:bo,estimateSegmentRequestTime:function(e,t,n,i){return void 0===i&&(i=0),bo("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:_o,isAudioOnly:wo,playlistMatch:To,segmentDurationWithParts:so},xo=zs.log,Co=function(e,t){return e+"-"+t},Eo=function(e,t){e.mediaGroups&&["AUDIO","SUBTITLES"].forEach((function(n){if(e.mediaGroups[n])for(var i in e.mediaGroups[n])for(var r in e.mediaGroups[n][i]){var a=e.mediaGroups[n][i][r];t(a,n,i,r)}}))},Ao=function(e){var t=e.playlist,n=e.uri,i=e.id;t.id=i,t.playlistErrors_=0,n&&(t.uri=n),t.attributes=t.attributes||{}},Lo=function(e,t){e.uri=t;for(var n=0;n<e.playlists.length;n++)if(!e.playlists[n].uri){var i="placeholder-uri-"+n;e.playlists[n].uri=i}var r=wo(e);Eo(e,(function(t,n,i,a){var s="placeholder-uri-"+n+"-"+i+"-"+a;if(!t.playlists||!t.playlists.length){if(r&&"AUDIO"===n&&!t.uri)for(var l=0;l<e.playlists.length;l++){var c=e.playlists[l];if(c.attributes&&c.attributes.AUDIO&&c.attributes.AUDIO===i)return}t.playlists=[o({},t)]}
2t.playlists.forEach((function(t,n){var i=Co(n,s);t.uri?t.resolvedUri=t.resolvedUri||Xs(e.uri,t.uri):(t.uri=0===n?s:i,t.resolvedUri=t.uri),t.id=t.id||i,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t}))})),function(e){for(var t=e.playlists.length;t--;){var n=e.playlists[t];Ao({playlist:n,id:Co(t,n.uri)}),n.resolvedUri=Xs(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||xo.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}}(e),function(e){Eo(e,(function(t){t.uri&&(t.resolvedUri=Xs(e.uri,t.uri))}))}(e)},Io=zs.mergeOptions,Po=zs.EventTarget,Oo=function(e,t){if(!e)return t;var n=Io(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(var i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=Io(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},Do=function(e,t){!e.resolvedUri&&e.uri&&(e.resolvedUri=Xs(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=Xs(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=Xs(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=Xs(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach((function(e){e.resolvedUri||(e.resolvedUri=Xs(t,e.uri))})),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach((function(e){e.resolvedUri||(e.resolvedUri=Xs(t,e.uri))}))},Ro=function(e){var t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints)for(var i=0;i<n.preloadHints.length;i++)if("MAP"===n.preloadHints[i].type)return t;n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},Mo=function(e,t){return e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment},No=function(e,t,n){void 0===n&&(n=Mo);var i=Io(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=Ro(t);var a=Io(r,t);if(a.preloadSegment&&!t.preloadSegment&&delete a.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(var s=0;s<t.skip.skippedSegments;s++)t.segments.unshift({skipped:!0})}a.segments=function(e,t,n){var i=e.slice(),r=t.slice();n=n||0;for(var a,s=[],o=0;o<r.length;o++){var l=i[o+n],c=r[o];l?(a=l.map||a,s.push(Oo(l,c))):(a&&!c.map&&(c.map=a),s.push(c))}return s}(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}a.segments.forEach((function(e){Do(e,a.resolvedUri)}));for(var o=0;o<i.playlists.length;o++)i.playlists[o].id===t.id&&(i.playlists[o]=a);return i.playlists[t.id]=a,i.playlists[t.uri]=a,Eo(e,(function(e,n,i,r){if(e.playlists)for(var s=0;s<e.playlists.length;s++)t.id===e.playlists[s].id&&(e.playlists[s]=a)})),i},qo=function(e,t){var n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],a=r&&r.duration||i&&i.duration;return t&&a?1e3*a:500*(e.partTargetDuration||e.targetDuration||10)},Uo=function(e){function t(t,n,i){var r;if(void 0===i&&(i={}),r=e.call(this)||this,!t)throw new Error("A non-empty playlist URL or object is required");r.logger_=Ks("PlaylistLoader");var a=i,s=a.withCredentials,o=void 0!==s&&s,l=a.handleManifestRedirects,c=void 0!==l&&l;r.src=t,r.vhs_=n,r.withCredentials=o,r.handleManifestRedirects=c;var d=n.options_;return r.customTagParsers=d&&d.customTagParsers||[],r.customTagMappers=d&&d.customTagMappers||[],r.experimentalLLHLS=d&&d.experimentalLLHLS||!1,zs.browser.IE_VERSION&&(r.experimentalLLHLS=!1),r.state="HAVE_NOTHING",r.handleMediaupdatetimeout_=r.handleMediaupdatetimeout_.bind(u(r)),r.on("mediaupdatetimeout",r.handleMediaupdatetimeout_),r}h(t,e);var n=t.prototype;return n.handleMediaupdatetimeout_=function(){var e=this;if("HAVE_METADATA"===this.state){var t=this.media(),n=Xs(this.master.uri,t.uri);this.experimentalLLHLS&&(n=function(e,t){if(t.endList||!t.serverControl)return e;var n={};if(t.serverControl.canBlockReload){var i=t.preloadSegment,a=t.mediaSequence+t.segments.length;if(i){var s=i.parts||[],o=co(t)-1;o>-1&&o!==s.length-1&&(n._HLS_part=o),(o>-1||s.length)&&a--}n._HLS_msn=a}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){var l=new(r().URL)(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach((function(e){n.hasOwnProperty(e)&&l.searchParams.set(e,n[e])})),e=l.toString()}return e}(n,t)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:n,withCredentials:this.withCredentials},(function(t,n){if(e.request)return t?e.playlistRequestError(e.request,e.media(),"HAVE_METADATA"):void e.haveMetadata({playlistString:e.request.responseText,url:e.media().uri,id:e.media().id})}))}},n.playlistRequestError=function(e,t,n){var i=t.uri,r=t.id;this.request=null,n&&(this.state=n),this.error={playlist:this.master.playlists[r],status:e.status,message:"HLS playlist request error at URL: "+i+".",responseText:e.responseText,code:e.status>=500?4:2},this.trigger("error")},n.parseManifest_=function(e){var t=this,n=e.url;return function(e){var t=e.onwarn,n=e.oninfo,i=e.manifestString,r=e.customTagParsers,a=void 0===r?[]:r,s=e.customTagMappers,o=void 0===s?[]:s,l=e.experimentalLLHLS,c=new U;t&&c.on("warn",t),n&&c.on("info",n),a.forEach((function(e){return c.addParser(e)})),o.forEach((function(e){return c.addTagMapper(e)})),c.push(i),c.end();var u=c.manifest;if(l||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach((function(e){u.hasOwnProperty(e)&&delete u[e]}
2)),u.segments&&u.segments.forEach((function(e){["parts","preloadHints"].forEach((function(t){e.hasOwnProperty(t)&&delete e[t]}))}))),!u.targetDuration){var d=10;u.segments&&u.segments.length&&(d=u.segments.reduce((function(e,t){return Math.max(e,t.duration)}),0)),t&&t("manifest has no targetDuration defaulting to "+d),u.targetDuration=d}var h=lo(u);if(h.length&&!u.partTargetDuration){var f=h.reduce((function(e,t){return Math.max(e,t.duration)}),0);t&&(t("manifest has no partTargetDuration defaulting to "+f),xo.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),u.partTargetDuration=f}return u}({onwarn:function(e){var i=e.message;return t.logger_("m3u8-parser warn for "+n+": "+i)},oninfo:function(e){var i=e.message;return t.logger_("m3u8-parser info for "+n+": "+i)},manifestString:e.manifestString,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,experimentalLLHLS:this.experimentalLLHLS})},n.haveMetadata=function(e){var t=e.playlistString,n=e.playlistObject,i=e.url,r=e.id;this.request=null,this.state="HAVE_METADATA";var a=n||this.parseManifest_({url:i,manifestString:t});a.lastRequest=Date.now(),Ao({playlist:a,uri:i,id:r});var s=No(this.master,a);this.targetDuration=a.partTargetDuration||a.targetDuration,this.pendingMedia_=null,s?(this.master=s,this.media_=this.master.playlists[r]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(qo(this.media(),!!s)),this.trigger("loadedplaylist")},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),r().clearTimeout(this.mediaUpdateTimeout),r().clearTimeout(this.finalRenditionTimeout),this.off()},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e,t){var n=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);if("string"==typeof e){if(!this.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.master.playlists[e]}if(r().clearTimeout(this.finalRenditionTimeout),t){var i=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;this.finalRenditionTimeout=r().setTimeout(this.media.bind(this,e,!1),i)}else{var a=this.state,s=!this.media_||e.id!==this.media_.id,o=this.master.playlists[e.id];if(o&&o.endList||e.endList&&e.segments.length)return this.request&&(this.request.onreadystatechange=null,this.request.abort(),this.request=null),this.state="HAVE_METADATA",this.media_=e,void(s&&(this.trigger("mediachanging"),"HAVE_MASTER"===a?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(qo(e,!0)),s){if(this.state="SWITCHING_MEDIA",this.request){if(e.resolvedUri===this.request.url)return;this.request.onreadystatechange=null,this.request.abort(),this.request=null}this.media_&&this.trigger("mediachanging"),this.pendingMedia_=e,this.request=this.vhs_.xhr({uri:e.resolvedUri,withCredentials:this.withCredentials},(function(t,i){if(n.request){if(e.lastRequest=Date.now(),e.resolvedUri=Gs(n.handleManifestRedirects,e.resolvedUri,i),t)return n.playlistRequestError(n.request,e,a);n.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MASTER"===a?n.trigger("loadedmetadata"):n.trigger("mediachange")}}))}}},n.pause=function(){this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.stopRequest(),"HAVE_NOTHING"===this.state&&(this.started=!1),"SWITCHING_MEDIA"===this.state?this.media_?this.state="HAVE_METADATA":this.state="HAVE_MASTER":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")},n.load=function(e){var t=this;this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);var n=this.media();if(e){var i=n?(n.partTargetDuration||n.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=r().setTimeout((function(){t.mediaUpdateTimeout=null,t.load()}),i)}else this.started?n&&!n.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()},n.updateMediaUpdateTimeout_=function(e){var t=this;this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=r().setTimeout((function(){t.mediaUpdateTimeout=null,t.trigger("mediaupdatetimeout"),t.updateMediaUpdateTimeout_(e)}),e))},n.start=function(){var e=this;
2if(this.started=!0,"object"==typeof this.src)return this.src.uri||(this.src.uri=r().location.href),this.src.resolvedUri=this.src.uri,void setTimeout((function(){e.setupInitialPlaylist(e.src)}),0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(function(t,n){if(e.request){if(e.request=null,t)return e.error={status:n.status,message:"HLS playlist request error at URL: "+e.src+".",responseText:n.responseText,code:2},"HAVE_NOTHING"===e.state&&(e.started=!1),e.trigger("error");e.src=Gs(e.handleManifestRedirects,e.src,n);var i=e.parseManifest_({manifestString:n.responseText,url:e.src});e.setupInitialPlaylist(i)}}))},n.srcUri=function(){return"string"==typeof this.src?this.src:this.src.uri},n.setupInitialPlaylist=function(e){if(this.state="HAVE_MASTER",e.playlists)return this.master=e,Lo(this.master,this.srcUri()),e.playlists.forEach((function(e){e.segments=Ro(e),e.segments.forEach((function(t){Do(t,e.resolvedUri)}))})),this.trigger("loadedplaylist"),void(this.request||this.media(this.master.playlists[0]));var t=this.srcUri()||r().location.href;this.master=function(e,t){var n=Co(0,t),i={mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:r().location.href,resolvedUri:r().location.href,playlists:[{uri:t,id:n,resolvedUri:t,attributes:{}}]};return i.playlists[n]=i.playlists[0],i.playlists[t]=i.playlists[0],i}(0,t),this.haveMetadata({playlistObject:e,url:t,id:this.master.playlists[0].id}),this.trigger("loadedmetadata")},t}(Po),jo=zs.xhr,Bo=zs.mergeOptions,Fo=function(e,t,n,i){var r="arraybuffer"===e.responseType?e.response:e.responseText;!t&&r&&(e.responseTime=Date.now(),e.roundTripTime=e.responseTime-e.requestTime,e.bytesReceived=r.byteLength||r.length,e.bandwidth||(e.bandwidth=Math.floor(e.bytesReceived/e.roundTripTime*8*1e3))),n.headers&&(e.responseHeaders=n.headers),t&&"ETIMEDOUT"===t.code&&(e.timedout=!0),t||e.aborted||200===n.statusCode||206===n.statusCode||0===n.statusCode||(t=new Error("XHR Failed with a response of: "+(e&&(r||e.responseText)))),i(t,e)},Ho=function(){var e=function e(t,n){t=Bo({timeout:45e3},t);var i=e.beforeRequest||zs.Vhs.xhr.beforeRequest;if(i&&"function"==typeof i){var r=i(t);r&&(t=r)}var a=(!0===zs.Vhs.xhr.original?jo:zs.Vhs.xhr)(t,(function(e,t){return Fo(a,e,t,n)})),s=a.abort;return a.abort=function(){return a.aborted=!0,s.apply(a,arguments)},a.uri=t.uri,a.requestTime=Date.now(),a};return e.original=!0,e},Wo=function(e){var t,n={};return e.byterange&&(n.Range="bytes="+(t=e.byterange).offset+"-"+("bigint"==typeof t.offset||"bigint"==typeof t.length?r().BigInt(t.offset)+r().BigInt(t.length)-r().BigInt(1):t.offset+t.length-1)),n},zo=function(e,t){return e.start(t)+"-"+e.end(t)},Vo=function(e,t){var n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},$o=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},Xo=function(e){var t={};return Object.keys(e).forEach((function(n){var i=e[n];J(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i})),t},Go=function(e){var t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},Ko=function(e){return e.resolvedUri},Yo=function(e){for(var t=Array.prototype.slice.call(e),n=16,i="",r=0;r<t.length/n;r++)i+=t.slice(r*n,r*n+n).map(Vo).join("")+" "+t.slice(r*n,r*n+n).map($o).join("")+"\n";return i},Qo=Object.freeze({__proto__:null,createTransferableMessage:Xo,initSegmentId:Go,segmentKeyId:Ko,hexDump:Yo,tagDump:function(e){var t=e.bytes;return Yo(t)},textRanges:function(e){var t,n="";for(t=0;t<e.length;t++)n+=zo(e,t)+" ";return n}}),Jo=function(e){var t=e.playlist,n=e.time,i=void 0===n?void 0:n,r=e.callback;if(!r)throw new Error("getProgramTime: callback must be provided");if(!t||void 0===i)return r({message:"getProgramTime: playlist and time must be provided"});var a=function(e,t){if(!t||!t.segments||0===t.segments.length)return null;for(var n,i=0,r=0;r<t.segments.length&&!(e<=(i=(n=t.segments[r]).videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration));r++);var a=t.segments[t.segments.length-1];if(a.videoTimingInfo&&a.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*a.duration)return null;n=a}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}}(i,t);if(!a)return r({message:"valid programTime was not found"});if("estimate"===a.type)return r({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:a.estimatedStart});var s={mediaSeconds:i},o=function(e,t){if(!t.dateTimeObject)return null;var n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)}(i,a.segment);return o&&(s.programDateTime=o.toISOString()),r(null,s)},Zo=function e(t){var n=t.programTime,i=t.playlist,r=t.retryCount,a=void 0===r?2:r,
2s=t.seekTo,o=t.pauseAfterSeek,l=void 0===o||o,c=t.tech,u=t.callback;if(!u)throw new Error("seekToProgramTime: callback must be provided");if(void 0===n||!i||!s)return u({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!i.endList&&!c.hasStarted_)return u({message:"player must be playing a live stream to start buffering"});if(!function(e){if(!e.segments||0===e.segments.length)return!1;for(var t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0}(i))return u({message:"programDateTime tags must be provided in the manifest "+i.resolvedUri});var d=function(e,t){var n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;var i=t.segments[0];if(n<i.dateTimeObject)return null;for(var r=0;r<t.segments.length-1&&(i=t.segments[r],!(n<t.segments[r+1].dateTimeObject));r++);var a,s=t.segments[t.segments.length-1],o=s.dateTimeObject,l=s.videoTimingInfo?(a=s.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:s.duration+.25*s.duration;return n>new Date(o.getTime()+1e3*l)?null:(n>o&&(i=s),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:So.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})}(n,i);if(!d)return u({message:n+" was not found in the stream"});var h=d.segment,f=function(e,t){var n,i;try{n=new Date(e),i=new Date(t)}catch(e){}var r=n.getTime();return(i.getTime()-r)/1e3}(h.dateTimeObject,n);if("estimate"===d.type)return 0===a?u({message:n+" is not buffered yet. Try again"}):(s(d.estimatedStart+f),void c.one("seeked",(function(){e({programTime:n,playlist:i,retryCount:a-1,seekTo:s,pauseAfterSeek:l,tech:c,callback:u})})));var p=h.start+f;c.one("seeked",(function(){return u(null,c.currentTime())})),l&&c.pause(),s(p)},el=function(e,t){if(4===e.readyState)return t()},tl=function(e,t,n){var i,r=[],a=!1,s=function(e,t,i,r){return t.abort(),a=!0,n(e,t,i,r)},o=function(e,t){if(!a){if(e)return s(e,t,"",r);var n=t.responseText.substring(r&&r.byteLength||0,t.responseText.length);if(r=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];if(t=t.filter((function(e){return e&&(e.byteLength||e.length)&&"string"!=typeof e})),t.length<=1)return Z(t[0]);var i=t.reduce((function(e,t,n){return e+(t.byteLength||t.length)}),0),r=new Uint8Array(i),a=0;return t.forEach((function(e){e=Z(e),r.set(e,a),a+=e.byteLength})),r}(r,re(n,!0)),i=i||ct(r),r.length<10||i&&r.length<i+2)return el(t,(function(){return s(e,t,"",r)}));var o=Lt(r);return"ts"===o&&r.length<188||!o&&r.length<376?el(t,(function(){return s(e,t,"",r)})):s(null,t,o,r)}},l={uri:e,beforeSend:function(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",(function(t){return t.total,t.loaded,Fo(e,null,{statusCode:e.status},o)}))}},c=t(l,(function(e,t){return Fo(c,e,t,o)}));return c},nl=zs.EventTarget,il=zs.mergeOptions,rl=function(e,t){if(!Mo(e,t))return!1;if(e.sidx&&t.sidx&&(e.sidx.offset!==t.sidx.offset||e.sidx.length!==t.sidx.length))return!1;if(!e.sidx&&t.sidx||e.sidx&&!t.sidx)return!1;if(e.segments&&!t.segments||!e.segments&&t.segments)return!1;if(!e.segments&&!t.segments)return!0;for(var n=0;n<e.segments.length;n++){var i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(i.byterange||r.byterange){var a=i.byterange,s=r.byterange;if(a&&!s||!a&&s)return!1;if(a.offset!==s.offset||a.length!==s.length)return!1}}return!0},al=function(e,t){return(Boolean(!e.map&&!t.map)||Boolean(e.map&&t.map&&e.map.byterange.offset===t.map.byterange.offset&&e.map.byterange.length===t.map.byterange.length))&&e.uri===t.uri&&e.byterange.offset===t.byterange.offset&&e.byterange.length===t.byterange.length},sl=function(e,t){var n={};for(var i in e){var r=e[i].sidx;if(r){var a=Ie(r);if(!t[a])break;var s=t[a].sidxInfo;al(s,r)&&(n[a]=t[a])}}return n},ol=function(e){function t(t,n,i,r){var a;void 0===i&&(i={}),(a=e.call(this)||this).masterPlaylistLoader_=r||u(a),r||(a.isMaster_=!0);var s=i,o=s.withCredentials,l=void 0!==o&&o,c=s.handleManifestRedirects,d=void 0!==c&&c;if(a.vhs_=n,a.withCredentials=l,a.handleManifestRedirects=d,!t)throw new Error("A non-empty playlist URL or object is required");return a.on("minimumUpdatePeriod",(function(){a.refreshXml_()})),a.on("mediaupdatetimeout",(function(){a.refreshMedia_(a.media().id)})),a.state="HAVE_NOTHING",a.loadedPlaylists_={},a.logger_=Ks("DashPlaylistLoader"),a.isMaster_?(a.masterPlaylistLoader_.srcUrl=t,a.masterPlaylistLoader_.sidxMapping_={}):a.childPlaylist_=t,a}h(t,e);var n=t.prototype;return n.requestErrored_=function(e,t,n){return!this.request||(this.request=null,e?(this.error="object"!=typeof e||e instanceof Error?{status:t.status,message:"DASH request error at URL: "+t.uri,response:t.response,code:2}:e,n&&(this.state=n),this.trigger("error"),!0):void 0)},n.addSidxSegments_=function(e,t,n){var i=this,a=e.sidx&&Ie(e.sidx);if(e.sidx&&a&&!this.masterPlaylistLoader_.sidxMapping_[a]){var s=Gs(this.handleManifestRedirects,e.sidx.resolvedUri),o=function(r,s){if(!i.requestErrored_(r,s,t)){var o,l=i.masterPlaylistLoader_.sidxMapping_;try{o=ot()(Z(s.response).subarray(8))}catch(e){return void i.requestErrored_(e,s,t)}return l[a]={sidxInfo:e.sidx,sidx:o},Se(e,o,e.sidx.resolvedUri),n(!0)}};this.request=tl(s,this.vhs_.xhr,(function(t,n,r,a){if(t)return o(t,n);if(!r||"mp4"!==r)return o({status:n.status,message:"Unsupported "+(r||"unknown")+" container type for sidx segment at URL: "+s,response:"",playlist:e,internal:!0,blackl
2istDuration:1/0,code:2},n);var l=e.sidx.byterange,c=l.offset,u=l.length;if(a.length>=u+c)return o(t,{response:a.subarray(c,c+u),status:n.status,uri:n.uri});i.request=i.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:Wo({byterange:e.sidx.byterange})},o)}))}else this.mediaRequest_=r().setTimeout((function(){return n(!1)}),0)},n.dispose=function(){this.trigger("dispose"),this.stopRequest(),this.loadedPlaylists_={},r().clearTimeout(this.minimumUpdatePeriodTimeout_),r().clearTimeout(this.mediaRequest_),r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.mediaRequest_=null,this.minimumUpdatePeriodTimeout_=null,this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.off()},n.hasPendingRequest=function(){return this.request||this.mediaRequest_},n.stopRequest=function(){if(this.request){var e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}},n.media=function(e){var t=this;if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);var n=this.state;if("string"==typeof e){if(!this.masterPlaylistLoader_.master.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.masterPlaylistLoader_.master.playlists[e]}var i=!this.media_||e.id!==this.media_.id;if(i&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(i&&(this.trigger("mediachanging"),this.trigger("mediachange")));i&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,n,(function(i){t.haveMetadata({startingState:n,playlist:e})})))},n.haveMetadata=function(e){var t=e.startingState,n=e.playlist;this.state="HAVE_METADATA",this.loadedPlaylists_[n.id]=n,this.mediaRequest_=null,this.refreshMedia_(n.id),"HAVE_MASTER"===t?this.trigger("loadedmetadata"):this.trigger("mediachange")},n.pause=function(){this.masterPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.masterPlaylistLoader_.createMupOnMedia_),this.masterPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMaster_&&(r().clearTimeout(this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_),this.masterPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)},n.load=function(e){var t=this;r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;var n=this.media();if(e){var i=n?n.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=r().setTimeout((function(){return t.load()}),i)}else this.started?n&&!n.endList?(this.isMaster_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()},n.start=function(){var e=this;this.started=!0,this.isMaster_?this.requestMaster_((function(t,n){e.haveMaster_(),e.hasPendingRequest()||e.media_||e.media(e.masterPlaylistLoader_.master.playlists[0])})):this.mediaRequest_=r().setTimeout((function(){return e.haveMaster_()}),0)},n.requestMaster_=function(e){var t=this;this.request=this.vhs_.xhr({uri:this.masterPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(function(n,i){if(!t.requestErrored_(n,i)){var r=i.responseText!==t.masterPlaylistLoader_.masterXml_;return t.masterPlaylistLoader_.masterXml_=i.responseText,i.responseHeaders&&i.responseHeaders.date?t.masterLoaded_=Date.parse(i.responseHeaders.date):t.masterLoaded_=Date.now(),t.masterPlaylistLoader_.srcUrl=Gs(t.handleManifestRedirects,t.masterPlaylistLoader_.srcUrl,i),r?(t.handleMaster_(),void t.syncClientServerClock_((function(){return e(i,r)}))):e(i,r)}"HAVE_NOTHING"===t.state&&(t.started=!1)}))},n.syncClientServerClock_=function(e){var t=this,n=at(this.masterPlaylistLoader_.masterXml_);return null===n?(this.masterPlaylistLoader_.clientOffset_=this.masterLoaded_-Date.now(),e()):"DIRECT"===n.method?(this.masterPlaylistLoader_.clientOffset_=n.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:Xs(this.masterPlaylistLoader_.srcUrl,n.value),method:n.method,withCredentials:this.withCredentials},(function(i,r){if(t.request){if(i)return t.masterPlaylistLoader_.clientOffset_=t.masterLoaded_-Date.now(),e();var a;a="HEAD"===n.method?r.responseHeaders&&r.responseHeaders.date?Date.parse(r.responseHeaders.date):t.masterLoaded_:Date.parse(r.responseText),t.masterPlaylistLoader_.clientOffset_=a-Date.now(),e()}})))},n.haveMaster_=function(){this.state="HAVE_MASTER",this.isMaster_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)},n.handleMaster_=function(){this.mediaRequest_=null;var e,t,n,i,r,a,s,o=this.masterPlaylistLoader_.master,l=(e={masterXml:this.masterPlaylistLoader_.masterXml_,srcUrl:this.masterPlaylistLoader_.srcUrl,clientOffset:this.masterPlaylistLoader_.clientOffset_,sidxMapping:this.masterPlaylistLoader_.sidxMapping_,previousManifest:o},t=e.masterXml,n=e.srcUrl,i=e.clientOffset,r=e.sidxMapping,a=e.previousManifest,s=rt(t,{manifestUri:n,clientOffset:i,sidxMapping:r,previousManifest:a}),Lo(s,n),s);o&&(l=function(e,t,n){for(var i=!0,r=il(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts}),a=0;a<t.playlists.length;a++){var s=t.playlists[a];if(s.sidx){var o=Ie(s.sidx);n&&n[o]&&n[o].sidx&&Se(s,n[o].sidx,s.sidx.resolvedUri)}var l=No(r,s,rl);l&&(r=l,i=!1)}return Eo(t,(function(e,t,n,a){if(e.playlists&&e.playlists.length){var s=e.playlists[0].id,o=No(r,e.playlists[0],rl);o&&((r=o).mediaGroups[t][n][a].playlists[0]=r.playlists[s],i=!1)}})),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r}(o,l,this.masterPlaylistLoader_.sidxMapping_)),this.masterPlaylistLoader_.master=l||o;var c=this.masterPlaylistLoader_.master.locations&&this.masterPlaylistLoader_.master.locations[0];return c&&c!==this.masterPlaylistLoader_.srcUrl&&(this.masterPlaylistLoader_.srcUrl=c),(!o||l&&l.minimumUpdatePeriod!==o.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),Boolean(l)},n.updateMinimumUpdatePeriodTimeout_=function(){var e=this.masterPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(r().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);var t=e.master&&e.master.minimumUpdatePeriod;
20===t&&(e.media()?t=1e3*e.media().targetDuration:(e.createMupOnMedia_=e.updateMinimumUpdatePeriodTimeout_,e.one("loadedmetadata",e.createMupOnMedia_))),"number"!=typeof t||t<=0?t<0&&this.logger_("found invalid minimumUpdatePeriod of "+t+", not setting a timeout"):this.createMUPTimeout_(t)},n.createMUPTimeout_=function(e){var t=this.masterPlaylistLoader_;t.minimumUpdatePeriodTimeout_=r().setTimeout((function(){t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)}),e)},n.refreshXml_=function(){var e=this;this.requestMaster_((function(t,n){var i,r,a;n&&(e.media_&&(e.media_=e.masterPlaylistLoader_.master.playlists[e.media_.id]),e.masterPlaylistLoader_.sidxMapping_=(i=e.masterPlaylistLoader_.master,r=e.masterPlaylistLoader_.sidxMapping_,a=sl(i.playlists,r),Eo(i,(function(e,t,n,i){if(e.playlists&&e.playlists.length){var s=e.playlists;a=il(a,sl(s,r))}})),a),e.addSidxSegments_(e.media(),e.state,(function(t){e.refreshMedia_(e.media().id)})))}))},n.refreshMedia_=function(e){var t=this;if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMaster_&&this.handleMaster_();var n=this.masterPlaylistLoader_.master.playlists,i=!this.media_||this.media_!==n[e];if(i?this.media_=n[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){!function e(){t.media().endList||(t.mediaUpdateTimeout=r().setTimeout((function(){t.trigger("mediaupdatetimeout"),e()}),qo(t.media(),Boolean(i))))}()}this.trigger("loadedplaylist")},t}(nl),ll={GOAL_BUFFER_LENGTH:30,MAX_GOAL_BUFFER_LENGTH:60,BACK_BUFFER_LENGTH:30,GOAL_BUFFER_LENGTH_RATE:1,INITIAL_BANDWIDTH:4194304,BANDWIDTH_VARIANCE:1.2,BUFFER_LOW_WATER_LINE:0,MAX_BUFFER_LOW_WATER_LINE:30,EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:16,BUFFER_LOW_WATER_LINE_RATE:1,BUFFER_HIGH_WATER_LINE:30},cl=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},ul=function(e){return function(){var t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){var t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=cl(new Worker(t));n.objURL=t;var i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},dl=function(e){return"var browserWorkerPolyFill = "+cl.toString()+";\nbrowserWorkerPolyFill(self);\n"+e},hl=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},fl=dl(hl((function(){var e=function(){this.init=function(){var e={};this.on=function(t,n){e[t]||(e[t]=[]),e[t]=e[t].concat(n)},this.off=function(t,n){var i;return!!e[t]&&(i=e[t].indexOf(n),e[t]=e[t].slice(),e[t].splice(i,1),i>-1)},this.trigger=function(t){var n,i,r,a;if(n=e[t])if(2===arguments.length)for(r=n.length,i=0;i<r;++i)n[i].call(this,arguments[1]);else{for(a=[],i=arguments.length,i=1;i<arguments.length;++i)a.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,a)}},this.dispose=function(){e={}}}};e.prototype.pipe=function(e){return this.on("data",(function(t){e.push(t)})),this.on("done",(function(t){e.flush(t)})),this.on("partialdone",(function(t){e.partialFlush(t)})),this.on("endedtimeline",(function(t){e.endTimeline(t)})),this.on("reset",(function(t){e.reset(t)})),e},e.prototype.push=function(e){this.trigger("data",e)},e.prototype.flush=function(e){this.trigger("done",e)},e.prototype.partialFlush=function(e){this.trigger("partialdone",e)},e.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},e.prototype.reset=function(e){this.trigger("reset",e)};var t,i,r,a,s,o,l,c,u,d,h,f,p,m,g,v,y,b,_,T,k,w,S,x,C,E,A,L,I,P,O,D,R,M,N,q,U,j,B,F,H=e,W=Math.pow(2,32),z={getUint64:function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength);return n.getBigUint64?(t=n.getBigUint64(0))<Number.MAX_SAFE_INTEGER?Number(t):t:n.getUint32(0)*W+n.getUint32(4)},MAX_UINT32:W},V=z.MAX_UINT32;!function(){var e;if(w={avc1:[],avcC:[],btrt:[],dinf:[],dref:[],esds:[],ftyp:[],hdlr:[],mdat:[],mdhd:[],mdia:[],mfhd:[],minf:[],moof:[],moov:[],mp4a:[],mvex:[],mvhd:[],pasp:[],sdtp:[],smhd:[],stbl:[],stco:[],stsc:[],stsd:[],stsz:[],stts:[],styp:[],tfdt:[],tfhd:[],traf:[],trak:[],trun:[],trex:[],tkhd:[],vmhd:[]},"undefined"!=typeof Uint8Array){for(e in w)w.hasOwnProperty(e)&&(w[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);S=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),C=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),x=new Uint8Array([0,0,0,1]),E=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]),A=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]),L={video:E,audio:A},O=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),P=new Uint8Array([0,0,0,0,0,0,0,0]),D=new Uint8Array([0,0,0,0,0,0,0,0]),R=D,M=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),N=D,I=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),t=function(e){var t,n,i=[],r=0;for(t=1;t<arguments.length;t++)i.push(arguments[t]);for(t=i.length;t--;)r+=i[t].byteLength;for(n=new Uint8Array(r+8),new DataView(n.buffer,n.byteOffset,n.byteLength).setUint32(0,n.byteLength),n.set(e,4),t=0,r=8;t<i.length;t++)n.set(i[t],r),r+=i[t].byteLength;return n},i=function(){return t(w.dinf,t(w.dref,O))},r=function(e){return t(w.esds,new Uint8Array([0,0,0,0,3,25,0,0,0,4,17,64,21,0,6,0,0,0,218,192,0,0,218,192,5,2,e.audioobjecttype<<3|e.samplingfrequencyindex>>>1,e.samplingfrequencyindex<<7|e.channelcount<<3,6,1,2]))},g=function(e){return t(w.hdlr,L[e])},m=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(n[12]=e.samplerate>>>24&255,n[13]=e.samplerate>>>16&255,n[14]=e.samplerate>>>8&255,n[15]=255&e.samplerate),t(w.mdhd,n)},p=function(e){return t(w.mdia,m(e),g(e.type),o(e))},s=function(e){return t(w.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},o=function(e){return t(w.minf,"video"===e.type?t(w.vmhd,I):t(w.smhd,P),i(),y(e))},l=function(e,n){for(var i=[],r=n.length;r--;)i[r]=_(n[r]);return t.apply(null,[w.moof,s(e)].concat(i))},c=function(e){for(var n=e.length,i=[];n--;)i[n]=h(e[n]);
vendor: 12,140 bytes, line 2
2return t.apply(null,[w.moov,d(4294967295)].concat(i).concat(u(e)))},u=function(e){for(var n=e.length,i=[];n--;)i[n]=T(e[n]);return t.apply(null,[w.mvex].concat(i))},d=function(e){var n=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,2,0,1,95,144,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e,0,1,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,255,255,255,255]);return t(w.mvhd,n)},v=function(e){var n,i,r=e.samples||[],a=new Uint8Array(4+r.length);for(i=0;i<r.length;i++)n=r[i].flags,a[i+4]=n.dependsOn<<4|n.isDependedOn<<2|n.hasRedundancy;return t(w.sdtp,a)},y=function(e){return t(w.stbl,b(e),t(w.stts,N),t(w.stsc,R),t(w.stsz,M),t(w.stco,D))},b=function(e){return t(w.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?q(e):U(e))},q=function(e){var n,i,r=e.sps||[],a=e.pps||[],s=[],o=[];for(n=0;n<r.length;n++)s.push((65280&r[n].byteLength)>>>8),s.push(255&r[n].byteLength),s=s.concat(Array.prototype.slice.call(r[n]));for(n=0;n<a.length;n++)o.push((65280&a[n].byteLength)>>>8),o.push(255&a[n].byteLength),o=o.concat(Array.prototype.slice.call(a[n]));if(i=[w.avc1,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,(65280&e.width)>>8,255&e.width,(65280&e.height)>>8,255&e.height,0,72,0,0,0,72,0,0,0,0,0,0,0,1,19,118,105,100,101,111,106,115,45,99,111,110,116,114,105,98,45,104,108,115,0,0,0,0,0,0,0,0,0,0,0,0,0,24,17,17]),t(w.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],s,[a.length],o))),t(w.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.sarRatio[0],c=e.sarRatio[1];i.push(t(w.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&c)>>24,(16711680&c)>>16,(65280&c)>>8,255&c])))}return t.apply(null,i)},U=function(e){return t(w.mp4a,new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,(65280&e.channelcount)>>8,255&e.channelcount,(65280&e.samplesize)>>8,255&e.samplesize,0,0,0,0,(65280&e.samplerate)>>8,255&e.samplerate,0,0]),r(e))},f=function(e){var n=new Uint8Array([0,0,0,7,0,0,0,0,0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,0,(4278190080&e.duration)>>24,(16711680&e.duration)>>16,(65280&e.duration)>>8,255&e.duration,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0,0,0,64,0,0,0,(65280&e.width)>>8,255&e.width,0,0,(65280&e.height)>>8,255&e.height,0,0]);return t(w.tkhd,n)},_=function(e){var n,i,r,a,s,o;return n=t(w.tfhd,new Uint8Array([0,0,0,58,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,0,0,0])),s=Math.floor(e.baseMediaDecodeTime/V),o=Math.floor(e.baseMediaDecodeTime%V),i=t(w.tfdt,new Uint8Array([1,0,0,0,s>>>24&255,s>>>16&255,s>>>8&255,255&s,o>>>24&255,o>>>16&255,o>>>8&255,255&o])),92,"audio"===e.type?(r=k(e,92),t(w.traf,n,i,r)):(a=v(e),r=k(e,a.length+92),t(w.traf,n,i,r,a))},h=function(e){return e.duration=e.duration||4294967295,t(w.trak,f(e),p(e))},T=function(e){var n=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(n[n.length-1]=0),t(w.trex,n)},F=function(e,t){var n=0,i=0,r=0,a=0;return e.length&&(void 0!==e[0].duration&&(n=1),void 0!==e[0].size&&(i=2),void 0!==e[0].flags&&(r=4),void 0!==e[0].compositionTimeOffset&&(a=8)),[0,0,n|i|r|a,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},B=function(e,n){var i,r,a,s,o,l;for(n+=20+16*(s=e.samples||[]).length,a=F(s,n),(r=new Uint8Array(a.length+16*s.length)).set(a),i=a.length,l=0;l<s.length;l++)o=s[l],r[i++]=(4278190080&o.duration)>>>24,r[i++]=(16711680&o.duration)>>>16,r[i++]=(65280&o.duration)>>>8,r[i++]=255&o.duration,r[i++]=(4278190080&o.size)>>>24,r[i++]=(16711680&o.size)>>>16,r[i++]=(65280&o.size)>>>8,r[i++]=255&o.size,r[i++]=o.flags.isLeading<<2|o.flags.dependsOn,r[i++]=o.flags.isDependedOn<<6|o.flags.hasRedundancy<<4|o.flags.paddingValue<<1|o.flags.isNonSyncSample,r[i++]=61440&o.flags.degradationPriority,r[i++]=15&o.flags.degradationPriority,r[i++]=(4278190080&o.compositionTimeOffset)>>>24,r[i++]=(16711680&o.compositionTimeOffset)>>>16,r[i++]=(65280&o.compositionTimeOffset)>>>8,r[i++]=255&o.compositionTimeOffset;return t(w.trun,r)},j=function(e,n){var i,r,a,s,o,l;for(n+=20+8*(s=e.samples||[]).length,a=F(s,n),(i=new Uint8Array(a.length+8*s.length)).set(a),r=a.length,l=0;l<s.length;l++)o=s[l],i[r++]=(4278190080&o.duration)>>>24,i[r++]=(16711680&o.duration)>>>16,i[r++]=(65280&o.duration)>>>8,i[r++]=255&o.duration,i[r++]=(4278190080&o.size)>>>24,i[r++]=(16711680&o.size)>>>16,i[r++]=(65280&o.size)>>>8,i[r++]=255&o.size;return t(w.trun,i)},k=function(e,t){return"audio"===e.type?j(e,t):B(e,t)};a=function(){return t(w.ftyp,S,x,S,C)};var $,X,G,K,Y,Q,J,Z,ee=function(e){return t(w.mdat,e)},te=l,ne=function(e){var t,n=a(),i=c(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t},ie=function(e,t){var n={size:0,flags:{isLeading:0,dependsOn:1,isDependedOn:0,hasRedundancy:0,degradationPriority:0,isNonSyncSample:1}};return n.dataOffset=t,n.compositionTimeOffset=e.pts-e.dts,n.duration=e.duration,n.size=4*e.length,n.size+=e.byteLength,e.keyFrame&&(n.flags.dependsOn=2,n.flags.isNonSyncSample=0),n},re=function(e){var t,n,i=[],r=[];for(r.byteLength=0,r.nalCount=0,r.duration=0,i.byteLength=0,t=0;t<e.length;t++)"access_unit_delimiter_rbsp"===(n=e[t]).nalUnitType?(i.length&&(i.duration=n.dts-i.dts,r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i)),(i=[n]).byteLength=n.data.byteLength,i.pts=n.pts,i.dts=n.dts):("slice_layer_without_partitioning_rbsp_idr"===n.nalUnitType&&(i.keyFrame=!0),i.duration=n.dts-i.dts,i.byteLength+=n.data.byteLength,i.push(n));return r.length&&(!i.duration||i.duration<=0)&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.length,r.duration+=i.duration,r.push(i),r},ae=function(e){var t,n,i=[],r=[];for(i.byteLength=0,i.nalCount=0,i.duration=0,i.pts=e[0].pts,i.dts=e[0].dts,r.byteLength=0,r.nalCount=0,r.duration=0,r.pts=e[0].pts,r.dts=e[0].dts,t=0;t<e.length;t++)(n=e[t]).keyFrame?(i.length&&(r.push(i),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration),(i=[n]).nalCount=n.length,i.byteLength=n.byteLength,i.pts=n.pts,i.dts=n.dts,i.duration=n.duration):(i.duration+=n.duration,i.nalCount+=n.length,i.byteLength+=n.byteLength,i.push(n));return r.length&&i.duration<=0&&(i.duration=r[r.length-1].duration),r.byteLength+=i.byteLength,r.nalCount+=i.nalCount,r.duration+=i.duration,r.push(i),r},se=function(e){var t;return!e[0][0].keyFrame&&e.length>1&&(t=e.shift(),e.byteLength-=t.byteLength,e.nalCount-=t.nalCount,e[0][0].dts=t.dts,e[0][0].pts=t.pts,e[0][0].duration+=t.duration),e},oe=function(e,t){var n,i,r,a,s,o=t||0,l=[];for(n=0;n<e.length;n++)for(a=e[n],i=0;i<a.length;i++)s=a[i],o+=(r=ie(s,o)).size,l.push(r);return l},le=function(e){var t,n,i,r,a,s,o=0,l=e.byteLength,c=e.nalCount,u=new Uint8Array(l+4*c),d=new DataView(u.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(a=r[n],i=0;i<a.length;i++)s=a[i],d.setUint32(o,s.data.byteLength),o+=4,u.set(s.data,o),o+=s.data.byteLength;return u},ce=[33,16,5,32,164,27],ue=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],de=function(e){for(var t=[];e--;)t.push(0);return t},he=function(){if(!$){var e={96e3:[ce,[227,64],de(154),[56]],88200:[ce,[231],de(170),[56]],64e3:[ce,[248,192],de(240),[56]],48e3:[ce,[255,192],de(268),[55,148,128],de(54),[112]],44100:[ce,[255,192],de(268),[55,163,128],de(84),[112]],32e3:[ce,[255,192],de(268),[55,234],de(226),[112]],24e3:[ce,[255,192],de(268),[55,255,128],de(268),[111,112],de(126),[224]],16e3:[ce,[255,192],de(268),[55,255,128],de(268),[111,255],de(269),[223,108],de(195),[1,192]],12e3:[ue,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,253,128],de(259),[56]],11025:[ue,de(268),[3,127,248],de(268),[6,255,240],de(268),[13,255,224],de(268),[27,255,192],de(268),[55,175,128],de(108),[112]],8e3:[ue,de(268),[3,121,16],de(47),[7]]};t=e,$=Object.keys(t).reduce((function(e,n){return e[n]=new Uint8Array(t[n].reduce((function(e,t){return e.concat(t)}),[])),e}),{})}var t;return $},fe=9e4;Q=function(e,t){return X(Y(e,t))},J=function(e,t){return G(K(e),t)},Z=function(e,t,n){return K(n?e:e-t)};var pe=fe,me=X=function(e){return e*fe},ge=(G=function(e,t){return e*t},K=function(e){return e/fe}),ve=(Y=function(e,t){return e/t},Q),ye=J,be=Z,_e=function(e,t,n,i){var r,a,s,o,l,c=0,u=0,d=0;if(t.length&&(r=ve(e.baseMediaDecodeTime,e.samplerate),a=Math.ceil(pe/(e.samplerate/1024)),n&&i&&(c=r-Math.max(n,i),d=(u=Math.floor(c/a))*a),!(u<1||d>pe/2))){for((s=he()[e.samplerate])||(s=t[0].data),o=0;o<u;o++)l=t[0],t.splice(0,0,{data:s,dts:l.dts-a,pts:l.pts-a});return e.baseMediaDecodeTime-=Math.floor(ye(d,e.samplerate)),d}},Te=function(e,t,n){return t.minSegmentDts>=n?e:(t.minSegmentDts=1/0,e.filter((function(e){return e.dts>=n&&(t.minSegmentDts=Math.min(t.minSegmentDts,e.dts),t.minSegmentPts=t.minSegmentDts,!0)})))},ke=function(e){var t,n,i=[];for(t=0;t<e.length;t++)n=e[t],i.push({size:n.data.byteLength,duration:1024});return i},we=function(e){var t,n,i=0,r=new Uint8Array(function(e){var t,n=0;for(t=0;t<e.length;t++)n+=e[t].data.byteLength;return n}(e));for(t=0;t<e.length;t++)n=e[t],r.set(n.data,i),i+=n.data.byteLength;return r},Se=pe,xe=function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},Ce=function(e,t){var n,i=e.minSegmentDts;return t||(i-=e.timelineStartInfo.dts),n=e.timelineStartInfo.baseMediaDecodeTime,n+=i,n=Math.max(0,n),"audio"===e.type&&(n*=e.samplerate/Se,n=Math.floor(n)),n},Ee=function(e,t){"number"==typeof t.pts&&(void 0===e.timelineStartInfo.pts&&(e.timelineStartInfo.pts=t.pts),void 0===e.minSegmentPts?e.minSegmentPts=t.pts:e.minSegmentPts=Math.min(e.minSegmentPts,t.pts),void 0===e.maxSegmentPts?e.maxSegmentPts=t.pts:e.maxSegmentPts=Math.max(e.maxSegmentPts,t.pts)),"number"==typeof t.dts&&(void 0===e.timelineStartInfo.dts&&(e.timelineStartInfo.dts=t.dts),void 0===e.minSegmentDts?e.minSegmentDts=t.dts:e.minSegmentDts=Math.min(e.minSegmentDts,t.dts),void 0===e.maxSegmentDts?e.maxSegmentDts=t.dts:e.maxSegmentDts=Math.max(e.maxSegmentDts,t.dts))},Ae=function(e){for(var t=0,n={payloadType:-1,payloadSize:0},i=0,r=0;t<e.byteLength&&128!==e[t];){for(;255===e[t];)i+=255,t++;for(i+=e[t++];255===e[t];)r+=255,t++;if(r+=e[t++],!n.payload&&4===i){if("GA94"===String.fromCharCode(e[t+3],e[t+4],e[t+5],e[t+6])){n.payloadType=i,n.payloadSize=r,n.payload=e.subarray(t,t+r);break}n.payload=void 0}t+=r,i=0,r=0}return n},Le=function(e){return 181!==e.payload[0]||49!=(e.payload[1]<<8|e.payload[2])||"GA94"!==String.fromCharCode(e.payload[3],e.payload[4],e.payload[5],e.payload[6])||3!==e.payload[7]?null:e.payload.subarray(8,e.payload.length-1)},Ie=function(e,t){var n,i,r,a,s=[];if(!(64&t[0]))return s;for(i=31&t[0],n=0;n<i;n++)a={type:3&t[(r=3*n)+2],pts:e},4&t[r+2]&&(a.ccData=t[r+3]<<8|t[r+4],s.push(a));return s},Pe=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},Oe=4,De=function e(t){t=t||{},e.prototype.init.call(this),this.parse708captions_="boolean"!=typeof t.parse708captions||t.parse708captions,this.captionPackets_=[],this.ccStreams_=[new We(0,0),new We(0,1),new We(1,0),new We(1,1)],this.parse708captions_&&(this.cc708Stream_=new Ue({captionServices:t.captionServices})),this.reset(),this.ccStreams_.forEach((function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))}),this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};(De.prototype=new H).push=function(e){var t,n,i;
vendor: 22,075 bytes, line 2
2if("sei_rbsp"===e.nalUnitType&&(t=Ae(e.escapedRBSP)).payload&&t.payloadType===Oe&&(n=Le(t)))if(e.dts<this.latestDts_)this.ignoreNextEqualDts_=!0;else{if(e.dts===this.latestDts_&&this.ignoreNextEqualDts_)return this.numSameDts_--,void(this.numSameDts_||(this.ignoreNextEqualDts_=!1));i=Ie(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},De.prototype.flushCCStreams=function(e){this.ccStreams_.forEach((function(t){return"flush"===e?t.flush():t.partialFlush()}),this)},De.prototype.flushStream=function(e){this.captionPackets_.length?(this.captionPackets_.forEach((function(e,t){e.presortIndex=t})),this.captionPackets_.sort((function(e,t){return e.pts===t.pts?e.presortIndex-t.presortIndex:e.pts-t.pts})),this.captionPackets_.forEach((function(e){e.type<2?this.dispatchCea608Packet(e):this.dispatchCea708Packet(e)}),this),this.captionPackets_.length=0,this.flushCCStreams(e)):this.flushCCStreams(e)},De.prototype.flush=function(){return this.flushStream("flush")},De.prototype.partialFlush=function(){return this.flushStream("partialFlush")},De.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach((function(e){e.reset()}))},De.prototype.dispatchCea608Packet=function(e){this.setsTextOrXDSActive(e)?this.activeCea608Channel_[e.type]=null:this.setsChannel1Active(e)?this.activeCea608Channel_[e.type]=0:this.setsChannel2Active(e)&&(this.activeCea608Channel_[e.type]=1),null!==this.activeCea608Channel_[e.type]&&this.ccStreams_[(e.type<<1)+this.activeCea608Channel_[e.type]].push(e)},De.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},De.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},De.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},De.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var Re={127:9834,4128:32,4129:160,4133:8230,4138:352,4140:338,4144:9608,4145:8216,4146:8217,4147:8220,4148:8221,4149:8226,4153:8482,4154:353,4156:339,4157:8480,4159:376,4214:8539,4215:8540,4216:8541,4217:8542,4218:9168,4219:9124,4220:9123,4221:9135,4222:9126,4223:9121,4256:12600},Me=function(e){return 32<=e&&e<=127||160<=e&&e<=255},Ne=function(e){this.windowNum=e,this.reset()};Ne.prototype.reset=function(){this.clearText(),this.pendingNewLine=!1,this.winAttr={},this.penAttr={},this.penLoc={},this.penColor={},this.visible=0,this.rowLock=0,this.columnLock=0,this.priority=0,this.relativePositioning=0,this.anchorVertical=0,this.anchorHorizontal=0,this.anchorPoint=0,this.rowCount=1,this.virtualRowCount=this.rowCount+1,this.columnCount=41,this.windowStyle=0,this.penStyle=0},Ne.prototype.getText=function(){return this.rows.join("\n")},Ne.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},Ne.prototype.newLine=function(e){for(this.rows.length>=this.virtualRowCount&&"function"==typeof this.beforeRowOverflow&&this.beforeRowOverflow(e),this.rows.length>0&&(this.rows.push(""),this.rowIdx++);this.rows.length>this.virtualRowCount;)this.rows.shift(),this.rowIdx--},Ne.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},Ne.prototype.addText=function(e){this.rows[this.rowIdx]+=e},Ne.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var qe=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new Ne(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};qe.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new Ne(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},qe.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},qe.prototype.createTextDecoder=function(e){if("undefined"==typeof TextDecoder)this.stream.trigger("log",{level:"warn",message:"The `encoding` option is unsupported without TextDecoder support"});else try{this.textDecoder_=new TextDecoder(e)}catch(t){this.stream.trigger("log",{level:"warn",message:"TextDecoder could not be created with "+e+" encoding. "+t})}};var Ue=function e(t){t=t||{},e.prototype.init.call(this);var n,i=this,r=t.captionServices||{},a={};Object.keys(r).forEach((function(e){n=r[e],/^SERVICE/.test(e)&&(a[e]=n.encoding)})),this.serviceEncodings=a,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(i.new708Packet(),i.add708Bytes(e)):(null===i.current708Packet&&i.new708Packet(),i.add708Bytes(e))}};Ue.prototype=new H,Ue.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},Ue.prototype.add708Bytes=function(e){var t=e.ccData,n=t>>>8,i=255&t;this.current708Packet.ptsVals.push(e.pts),this.current708Packet.data.push(n),this.current708Packet.data.push(i)},Ue.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,a=t[r++];for(e.seq=a>>6,e.sizeCode=63&a;r<t.length;r++)i=31&(a=t[r++]),7===(n=a>>5)&&i>0&&(n=a=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},Ue.prototype.pushServiceBlock=function(e,t,n){var i,r=t,a=this.current708Packet.data,s=this.services[e];for(s||(s=this.initService(e,r));r<t+n&&r<a.length;r++)i=a[r],Me(i)?r=this.handleText(r,s):24===i?r=this.multiByteCharacter(r,s):16===i?r=this.extendedCommands(r,s):128<=i&&i<=135?r=this.setCurrentWindow(r,s):152<=i&&i<=159?r=this.defineWindow(r,s):136===i?r=this.clearWindows(r,s):140===i?r=this.deleteWindows(r,s):137===i?r=this.displayWindows(r,s):138===i?r=this.hideWindows(r,s):139===i?r=this.toggleWindows(r,s):151===i?r=this.setWindowAttributes(r,s):144===i?r=this.setPenAttributes(r,s):145===i?r=this.setPenColor(r,s):146===i?r=this.setPenLocation(r,s):143===i?s=this.reset(r,s):8===i?s.currentWindow.backspace():12===i?s.currentWindow.clearText():13===i?s.currentWindow.pendingNewLine=!0:14===i?s.currentWindow.clearText():141===i&&r++},Ue.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return Me(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},Ue.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},Ue.prototype.initService=function(e,t){var n,i,r=this;return(n="SERVICE"+e)in this.serviceEncodings&&(i=this.serviceEncodings[n]),this.services[e]=new qe(e,i,r),this.services[e].init(this.getPts(t),(function(t){r.flushDisplayed(t,r.services[e])})),this.services[e]},Ue.prototype.handleText=function(e,t,n){var i,r,a,s,o=n&&n.isExtended,l=n&&n.isMultiByte,c=this.current708Packet.data,u=o?4096:0,d=c[e],h=c[e+1],f=t.currentWindow;return t.textDecoder_&&!o?(l?(r=[d,h],e++):r=[d],i=t.textDecoder_.decode(new Uint8Array(r))):(s=Re[a=u|d]||a,i=4096&a&&a===s?"":String.fromCharCode(s)),f.pendingNewLine&&!f.isEmpty()&&f.newLine(this.getPts(e)),f.pendingNewLine=!1,f.addText(i),e},Ue.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return Me(i)&&Me(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},Ue.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},Ue.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var a=t.currentWindow;return i=n[++e],a.visible=(32&i)>>5,a.rowLock=(16&i)>>4,a.columnLock=(8&i)>>3,a.priority=7&i,i=n[++e],a.relativePositioning=(128&i)>>7,a.anchorVertical=127&i,i=n[++e],a.anchorHorizontal=i,i=n[++e],a.anchorPoint=(240&i)>>4,a.rowCount=15&i,i=n[++e],a.columnCount=63&i,i=n[++e],a.windowStyle=(56&i)>>3,a.penStyle=7&i,a.virtualRowCount=a.rowCount+1,e},Ue.prototype.setWindowAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.winAttr;return i=n[++e],r.fillOpacity=(192&i)>>6,r.fillRed=(48&i)>>4,r.fillGreen=(12&i)>>2,r.fillBlue=3&i,i=n[++e],r.borderType=(192&i)>>6,r.borderRed=(48&i)>>4,r.borderGreen=(12&i)>>2,r.borderBlue=3&i,i=n[++e],r.borderType+=(128&i)>>5,r.wordWrap=(64&i)>>6,r.printDirection=(48&i)>>4,r.scrollDirection=(12&i)>>2,r.justify=3&i,i=n[++e],r.effectSpeed=(240&i)>>4,r.effectDirection=(12&i)>>2,r.displayEffect=3&i,e},Ue.prototype.flushDisplayed=function(e,t){for(var n=[],i=0;i<8;i++)t.windows[i].visible&&!t.windows[i].isEmpty()&&n.push(t.windows[i].getText());t.endPts=e,t.text=n.join("\n\n"),this.pushCaption(t),t.startPts=e},Ue.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},Ue.prototype.displayWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=1);return e},Ue.prototype.hideWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible=0);return e},Ue.prototype.toggleWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&(t.windows[r].visible^=1);return e},Ue.prototype.clearWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].clearText();return e},Ue.prototype.deleteWindows=function(e,t){var n=this.current708Packet.data[++e],i=this.getPts(e);this.flushDisplayed(i,t);for(var r=0;r<8;r++)n&1<<r&&t.windows[r].reset();return e},Ue.prototype.setPenAttributes=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penAttr;return i=n[++e],r.textTag=(240&i)>>4,r.offset=(12&i)>>2,r.penSize=3&i,i=n[++e],r.italics=(128&i)>>7,r.underline=(64&i)>>6,r.edgeType=(56&i)>>3,r.fontStyle=7&i,e},Ue.prototype.setPenColor=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penColor;return i=n[++e],r.fgOpacity=(192&i)>>6,r.fgRed=(48&i)>>4,r.fgGreen=(12&i)>>2,r.fgBlue=3&i,i=n[++e],r.bgOpacity=(192&i)>>6,r.bgRed=(48&i)>>4,r.bgGreen=(12&i)>>2,r.bgBlue=3&i,i=n[++e],r.edgeRed=(48&i)>>4,r.edgeGreen=(12&i)>>2,r.edgeBlue=3&i,e},Ue.prototype.setPenLocation=function(e,t){var n=this.current708Packet.data,i=n[e],r=t.currentWindow.penLoc;return t.currentWindow.pendingNewLine=!0,i=n[++e],r.row=15&i,i=n[++e],r.column=63&i,e},Ue.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var je={42:225,92:233,94:237,95:243,96:250,123:231,124:247,125:209,126:241,127:9608,304:174,305:176,306:189,307:191,308:8482,309:162,310:163,311:9834,312:224,313:160,314:232,315:226,316:234,317:238,318:244,319:251,544:193,545:201,546:211,547:218,548:220,549:252,550:8216,551:161,552:42,553:39,554:8212,555:169,556:8480,557:8226,558:8220,559:8221,560:192,561:194,562:199,563:200,564:202,565:203,566:235,567:206,568:207,569:239,570:212,571:217,572:249,573:219,574:171,575:187,800:195,801:227,802:205,803:204,804:236,805:210,806:242,807:213,808:245,809:123,810:125,811:92,812:94,813:95,814:124,815:126,816:196,817:228,818:214,819:246,820:223,821:165,822:164,823:9474,824:197,825:229,826:216,827:248,828:9484,829:9488,830:9492,831:9496},Be=function(e){return null===e?"":(e=je[e]||e,String.fromCharCode(e))},Fe=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],He=function(){for(var e=[],t=15;t--;)e.push("");return e},We=function e(t,n){e.prototype.init.call(this),this.field_=t||0,this.dataChannel_=n||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,a;if((t=32639&e.ccData)!==this.lastControlCode_){if(4096==(61440&t)?this.lastControlCode_=t:t!==this.PADDING_&&(this.lastControlCode_=null),i=t>>>8,r=255&t,t!==this.PADDING_)if(t===this.RESUME_CAPTION_LOADING_)this.mode_="popOn";else if(t===this.END_OF_CAPTION_)this.mode_="popOn",this.clearFormatting(e.pts),this.flushDisplayed(e.pts),n=this.displayed_,this.displayed_=this.nonDisplayed_,this.nonDisplayed_=n,this.startPts_=e.pts;else if(t===this.ROLL_UP_2_ROWS_)this.rollUpRows_=2,this.setRollUp(e.pts);else if(t===this.ROLL_UP_3_ROWS_)this.rollUpRows_=3,this.setRollUp(e.pts);else if(t===this.ROLL_UP_4_ROWS_)this.rollUpRows_=4,this.setRollUp(e.pts);else if(t===this.CARRIAGE_RETURN_)this.clearFormatting(e.pts),this.flushDisplayed(e.pts),this.shiftRowsUp_(),this.startPts_=e.pts;else if(t===this.BACKSPACE_)"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=He();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=He();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=He()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))a=Be((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_]=this.nonDisplayed_[this.row_].slice(0,-1):this.displayed_[this.row_]=this.displayed_[this.row_].slice(0,-1),a=Be((i=(3&i)<<8)|r),this[this.mode_](e.pts,a),this.column_++;else if(this.isMidRowCode(i,r))this.clearFormatting(e.pts),this[this.mode_](e.pts," "),this.column_++,14==(14&r)&&this.addFormatting(e.pts,["i"]),1==(1&r)&&this.addFormatting(e.pts,["u"]);else if(this.isOffsetControlCode(i,r))this.column_+=3&r;else if(this.isPAC(i,r)){var s=Fe.indexOf(7968&t);"rollUp"===this.mode_&&(s-this.rollUpRows_+1<0&&(s=this.rollUpRows_-1),this.setRollUp(e.pts,s)),s!==this.row_&&(this.clearFormatting(e.pts),this.row_=s),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)&&(this.column_=4*((14&t)>>1)),this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),a=Be(i),a+=Be(r),this[this.mode_](e.pts,a),this.column_+=a.length)}else this.lastControlCode_=null}};We.prototype=new H,We.prototype.flushDisplayed=function(e){var t=this.displayed_.map((function(e,t){try{return e.trim()}catch(e){return this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+t+"."}),""}}),this).join("\n").replace(/^\n+|\n+$/g,"");t.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,text:t,stream:this.name_})},We.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=He(),this.nonDisplayed_=He(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},We.prototype.setConstants=function(){0===this.dataChannel_?(this.BASE_=16,this.EXT_=17,this.CONTROL_=(20|this.field_)<<8,this.OFFSET_=23):1===this.dataChannel_&&(this.BASE_=24,this.EXT_=25,this.CONTROL_=(28|this.field_)<<8,this.OFFSET_=31),this.PADDING_=0,this.RESUME_CAPTION_LOADING_=32|this.CONTROL_,this.END_OF_CAPTION_=47|this.CONTROL_,this.ROLL_UP_2_ROWS_=37|this.CONTROL_,this.ROLL_UP_3_ROWS_=38|this.CONTROL_,this.ROLL_UP_4_ROWS_=39|this.CONTROL_,this.CARRIAGE_RETURN_=45|this.CONTROL_,this.RESUME_DIRECT_CAPTIONING_=41|this.CONTROL_,this.BACKSPACE_=33|this.CONTROL_,this.ERASE_DISPLAYED_MEMORY_=44|this.CONTROL_,this.ERASE_NON_DISPLAYED_MEMORY_=46|this.CONTROL_},We.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},We.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},We.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},We.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},We.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},We.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},We.prototype.isNormalChar=function(e){return e>=32&&e<=127},We.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=He(),this.displayed_=He()),void 0!==t&&t!==this.row_)for(var n=0;n<this.rollUpRows_;n++)this.displayed_[t-n]=this.displayed_[this.row_-n],this.displayed_[this.row_-n]="";void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},We.prototype.addFormatting=function(e,t){this.formatting_=this.formatting_.concat(t);var n=t.reduce((function(e,t){return e+"<"+t+">"}),"");this[this.mode_](e,n)},We.prototype.clearFormatting=function(e){if(this.formatting_.length){var t=this.formatting_.reverse().reduce((function(e,t){return e+"</"+t+">"}),"");this.formatting_=[],this[this.mode_](e,t)}},We.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_];n+=t,this.nonDisplayed_[this.row_]=n},We.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n},We.prototype.shiftRowsUp_=function(){var e;for(e=0;e<this.topRow_;e++)this.displayed_[e]="";for(e=this.row_+1;e<15;e++)this.displayed_[e]="";for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]=""},We.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_];n+=t,this.displayed_[this.row_]=n};var ze={CaptionStream:De,Cea608Stream:We,Cea708Stream:Ue},Ve={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},$e="shared",Xe=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},Ge=function e(t){var n,i;e.prototype.init.call(this),this.type_=t||$e,this.push=function(e){this.type_!==$e&&e.type!==this.type_||(void 0===i&&(i=e.dts),e.dts=Xe(e.dts,i),e.pts=Xe(e.pts,i),n=e.dts,this.trigger("data",e))},this.flush=function(){i=n,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){i=void 0,n=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};Ge.prototype=new H;var Ke,Ye=Ge,Qe=Xe,Je=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},Ze=function(e,t,n){return decodeURIComponent(Je(e,t,n))},et=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},tt={TXXX:function(e){var t;if(3===e.data[0]){for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ze(e.data,1,t),e.value=Ze(e.data,t+1,e.data.length).replace(/\0*$/,"");break}e.data=e.value}},WXXX:function(e){var t;if(3===e.data[0])for(t=1;t<e.data.length;t++)if(0===e.data[t]){e.description=Ze(e.data,1,t),e.url=Ze(e.data,t+1,e.data.length);break}},PRIV:function(e){var t,n;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=(n=e.data,unescape(Je(n,0,t)));break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}};Ke=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],a=0;if(Ke.prototype.init.call(this),this.dispatchType=Ve.METADATA_STREAM_TYPE.toString(16),n.descriptor)for(t=0;t<n.descriptor.length;t++)this.dispatchType+=("00"+n.descriptor[t].toString(16)).slice(-2);this.push=function(e){var t,n,s,o,l;if("timed-metadata"===e.type)if(e.dataAlignmentIndicator&&(a=0,r.length=0),0===r.length&&(e.data.length<10||e.data[0]!=="I".charCodeAt(0)||e.data[1]!=="D".charCodeAt(0)||e.data[2]!=="3".charCodeAt(0)))this.trigger("log",{level:"warn",message:"Skipping unrecognized metadata packet"});else if(r.push(e),a+=e.data.byteLength,1===r.length&&(i=et(e.data.subarray(6,10)),i+=10),!(a<i)){for(t={data:new Uint8Array(i),frames:[],pts:r[0].pts,dts:r[0].dts},l=0;l<i;)t.data.set(r[0].data.subarray(0,i-l),l),l+=r[0].data.byteLength,a-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=et(t.data.subarray(10,14)),i-=et(t.data.subarray(16,20)));do{if((s=et(t.data.subarray(n+4,n+8)))<1)return void this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping metadata parsing."});if((o={id:String.fromCharCode(t.data[n],t.data[n+1],t.data[n+2],t.data[n+3]),data:t.data.subarray(n+10,n+s+10)}).key=o.id,tt[o.id]&&(tt[o.id](o),"com.apple.streaming.transportStreamTimestamp"===o.owner)){var c=o.data,u=(1&c[3])<<30|c[4]<<22|c[5]<<14|c[6]<<6|c[7]>>>2;u*=4,u+=3&c[7],o.timeStamp=u,void 0===t.pts&&void 0===t.dts&&(t.pts=o.timeStamp,t.dts=o.timeStamp),this.trigger("timestamp",o)}t.frames.push(o),n+=10,n+=s}while(n<i);this.trigger("data",t)}}},Ke.prototype=new H;var nt,it,rt,at=Ke,st=Ye,ot=188;(nt=function(){var e=new Uint8Array(ot),t=0;nt.prototype.init.call(this),this.push=function(n){var i,r=0,a=ot;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;a<i.byteLength;)71!==i[r]||71!==i[a]?(r++,a++):(this.trigger("data",i.subarray(r,a)),r+=ot,a+=ot);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===ot&&71===e[0]&&(this.trigger("data",e),t=0),this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.reset=function(){t=0,this.trigger("reset")}}).prototype=new H,it=function(){var e,t,n,i;it.prototype.init.call(this),i=this,this.packetsWaitingForPmt=[],this.programMapTable=void 0,e=function(e,i){var r=0;i.payloadUnitStartIndicator&&(r+=e[r]+1),"pat"===i.type?t(e.subarray(r),i):n(e.subarray(r),i)},t=function(e,t){t.section_number=e[7],t.last_section_number=e[8],i.pmtPid=(31&e[10])<<8|e[11],t.pmtPid=i.pmtPid},n=function(e,t){var n,r;if(1&e[5]){for(i.programMapTable={video:null,audio:null,"timed-metadata":{}},n=3+((15&e[1])<<8|e[2])-4,r=12+((15&e[10])<<8|e[11]);r<n;){var a=e[r],s=(31&e[r+1])<<8|e[r+2];a===Ve.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=s:a===Ve.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=s:a===Ve.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][s]=a),r+=5+((15&e[r+3])<<8|e[r+4])}t.programMapTable=i.programMapTable}},this.push=function(t){var n={},i=4;if(n.payloadUnitStartIndicator=!!(64&t[1]),n.pid=31&t[1],n.pid<<=8,n.pid|=t[2],(48&t[3])>>>4>1&&(i+=t[i]+1),0===n.pid)n.type="pat",e(t.subarray(i),n),this.trigger("data",n);else if(n.pid===this.pmtPid)for(n.type="pmt",e(t.subarray(i),n),this.trigger("data",n);this.packetsWaitingForPmt.length;)this.processPes_.apply(this,this.packetsWaitingForPmt.shift());
vendor: 4,700 bytes, line 2
2else void 0===this.programMapTable?this.packetsWaitingForPmt.push([t,i,n]):this.processPes_(t,i,n)},this.processPes_=function(e,t,n){n.pid===this.programMapTable.video?n.streamType=Ve.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=Ve.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}},it.prototype=new H,it.STREAM_TYPES={h264:27,adts:15},rt=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},a={data:[],size:0},s=function(e,n,i){var r,a,s=new Uint8Array(e.size),o={type:n},l=0,c=0;if(e.data.length&&!(e.size<9)){for(o.trackId=e.data[0].pid,l=0;l<e.data.length;l++)a=e.data[l],s.set(a.data,c),c+=a.data.byteLength;var u,d,h,f;d=o,f=(u=s)[0]<<16|u[1]<<8|u[2],d.data=new Uint8Array,1===f&&(d.packetLength=6+(u[4]<<8|u[5]),d.dataAlignmentIndicator=0!=(4&u[6]),192&(h=u[7])&&(d.pts=(14&u[9])<<27|(255&u[10])<<20|(254&u[11])<<12|(255&u[12])<<5|(254&u[13])>>>3,d.pts*=4,d.pts+=(6&u[13])>>>1,d.dts=d.pts,64&h&&(d.dts=(14&u[14])<<27|(255&u[15])<<20|(254&u[16])<<12|(255&u[17])<<5|(254&u[18])>>>3,d.dts*=4,d.dts+=(6&u[18])>>>1)),d.data=u.subarray(9+u[8])),r="video"===n||o.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",o)}};rt.prototype.init.call(this),this.push=function(o){({pat:function(){},pes:function(){var e,t;switch(o.streamType){case Ve.H264_STREAM_TYPE:e=i,t="video";break;case Ve.ADTS_STREAM_TYPE:e=r,t="audio";break;case Ve.METADATA_STREAM_TYPE:e=a,t="timed-metadata";break;default:return}o.payloadUnitStartIndicator&&s(e,t,!0),e.data.push(o),e.size+=o.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=o.programMapTable).video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),n=!0,t.trigger("data",i)}})[o.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){s(i,"video"),s(r,"audio"),s(a,"timed-metadata")},this.flush=function(){if(!n&&e){var i={type:"metadata",tracks:[]};null!==e.video&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.video,codec:"avc",type:"video"}),null!==e.audio&&i.tracks.push({timelineStartInfo:{baseMediaDecodeTime:0},id:+e.audio,codec:"adts",type:"audio"}),t.trigger("data",i)}n=!1,this.flushStreams_(),this.trigger("done")}},rt.prototype=new H;var lt={PAT_PID:0,MP2T_PACKET_LENGTH:ot,TransportPacketStream:nt,TransportParseStream:it,ElementaryStream:rt,TimestampRolloverStream:st,CaptionStream:ze.CaptionStream,Cea608Stream:ze.Cea608Stream,Cea708Stream:ze.Cea708Stream,MetadataStream:at};for(var ct in Ve)Ve.hasOwnProperty(ct)&&(lt[ct]=Ve[ct]);var ut,dt=lt,ht=pe,ft=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];ut=function(e){var t,n=0;ut.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:"adts skiping bytes "+e+" to "+t+" in frame "+n+" outside syncword"})},this.push=function(i){var r,a,s,o,l,c=0;if(e||(n=0),"audio"===i.type){var u;for(t&&t.length?(s=t,(t=new Uint8Array(s.byteLength+i.data.byteLength)).set(s),t.set(i.data,s.byteLength)):t=i.data;c+7<t.length;)if(255===t[c]&&240==(246&t[c+1])){if("number"==typeof u&&(this.skipWarn_(u,c),u=null),a=2*(1&~t[c+1]),r=(3&t[c+3])<<11|t[c+4]<<3|(224&t[c+5])>>5,l=(o=1024*(1+(3&t[c+6])))*ht/ft[(60&t[c+2])>>>2],t.byteLength-c<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:o,audioobjecttype:1+(t[c+2]>>>6&3),channelcount:(1&t[c+2])<<2|(192&t[c+3])>>>6,samplerate:ft[(60&t[c+2])>>>2],samplingfrequencyindex:(60&t[c+2])>>>2,samplesize:16,data:t.subarray(c+7+a,c+r)}),n++,c+=r}else"number"!=typeof u&&(u=c),c++;"number"==typeof u&&(this.skipWarn_(u,c),u=null),t=t.subarray(c)}},this.flush=function(){n=0,this.trigger("done")},this.reset=function(){t=void 0,this.trigger("reset")},this.endTimeline=function(){t=void 0,this.trigger("endedtimeline")}},ut.prototype=new H;var pt,mt,gt,vt=ut,yt=function(e){var t=e.byteLength,n=0,i=0;this.length=function(){return 8*t},this.bitsAvailable=function(){return 8*t+i},this.loadWord=function(){var r=e.byteLength-t,a=new Uint8Array(4),s=Math.min(4,t);if(0===s)throw new Error("no bytes available");a.set(e.subarray(r,r+s)),n=new DataView(a.buffer).getUint32(0),i=8*s,t-=s},this.skipBits=function(e){var r;i>e?(n<<=e,i-=e):(e-=i,e-=8*(r=Math.floor(e/8)),t-=r,this.loadWord(),n<<=e,i-=e)},this.readBits=function(e){var r=Math.min(i,e),a=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?a<<r|this.readBits(r):a},this.skipLeadingZeros=function(){var e;
vendor: 4,900 bytes, line 2
2for(e=0;e<i;++e)if(0!=(n&2147483648>>>e))return n<<=e,i-=e,e;return this.loadWord(),e+this.skipLeadingZeros()},this.skipUnsignedExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.skipExpGolomb=function(){this.skipBits(1+this.skipLeadingZeros())},this.readUnsignedExpGolomb=function(){var e=this.skipLeadingZeros();return this.readBits(e+1)-1},this.readExpGolomb=function(){var e=this.readUnsignedExpGolomb();return 1&e?1+e>>>1:-1*(e>>>1)},this.readBoolean=function(){return 1===this.readBits(1)},this.readUnsignedByte=function(){return this.readBits(8)},this.loadWord()};mt=function(){var e,t,n=0;mt.prototype.init.call(this),this.push=function(i){var r;t?((r=new Uint8Array(t.byteLength+i.data.byteLength)).set(t),r.set(i.data,t.byteLength),t=r):t=i.data;for(var a=t.byteLength;n<a-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<a;)switch(t[e]){case 0:if(0!==t[e-1]){e+=2;break}if(0!==t[e-2]){e++;break}n+3!==e-2&&this.trigger("data",t.subarray(n+3,e-2));do{e++}while(1!==t[e]&&e<a);n=e-2,e+=3;break;case 1:if(0!==t[e-1]||0!==t[e-2]){e+=3;break}this.trigger("data",t.subarray(n+3,e-2)),n=e-2,e+=3;break;default:e+=3}t=t.subarray(n),e-=n,n=0},this.reset=function(){t=null,n=0,this.trigger("reset")},this.flush=function(){t&&t.byteLength>3&&this.trigger("data",t.subarray(n+3)),t=null,n=0,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")}},mt.prototype=new H,gt={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},pt=function(){var e,t,n,i,r,a,s,o=new mt;pt.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,o.push(e))},o.on("data",(function(s){var o={trackId:t,pts:n,dts:i,data:s,nalUnitTypeCode:31&s[0]};switch(o.nalUnitTypeCode){case 5:o.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:o.nalUnitType="sei_rbsp",o.escapedRBSP=r(s.subarray(1));break;case 7:o.nalUnitType="seq_parameter_set_rbsp",o.escapedRBSP=r(s.subarray(1)),o.config=a(o.escapedRBSP);break;case 8:o.nalUnitType="pic_parameter_set_rbsp";break;case 9:o.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",o)})),o.on("done",(function(){e.trigger("done")})),o.on("partialdone",(function(){e.trigger("partialdone")})),o.on("reset",(function(){e.trigger("reset")})),o.on("endedtimeline",(function(){e.trigger("endedtimeline")})),this.flush=function(){o.flush()},this.partialFlush=function(){o.partialFlush()},this.reset=function(){o.reset()},this.endTimeline=function(){o.endTimeline()},s=function(e,t){var n,i=8,r=8;for(n=0;n<e;n++)0!==r&&(r=(i+t.readExpGolomb()+256)%256),i=0===r?i:r},r=function(e){for(var t,n,i=e.byteLength,r=[],a=1;a<i-2;)0===e[a]&&0===e[a+1]&&3===e[a+2]?(r.push(a+2),a+=2):a++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var s=0;for(a=0;a<t;s++,a++)s===r[0]&&(s++,r.shift()),n[a]=e[s];return n},a=function(e){var t,n,i,r,a,o,l,c,u,d,h,f,p=0,m=0,g=0,v=0,y=[1,1];if(n=(t=new yt(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),gt[n]&&(3===(a=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==a?8:12,f=0;f<h;f++)t.readBoolean()&&s(f<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(o=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===o)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),f=0;f<l;f++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),c=t.readUnsignedExpGolomb(),u=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(p=t.readUnsignedExpGolomb(),m=t.readUnsignedExpGolomb(),g=t.readUnsignedExpGolomb(),v=t.readUnsignedExpGolomb()),t.readBoolean()&&t.readBoolean()){switch(t.readUnsignedByte()){case 1:y=[1,1];break;case 2:y=[12,11];break;case 3:y=[10,11];break;case 4:y=[16,11];break;case 5:y=[40,33];break;case 6:y=[24,11];break;case 7:y=[20,11];break;case 8:y=[32,11];break;case 9:y=[80,33];break;case 10:y=[18,11];break;case 11:y=[15,11];break;case 12:y=[64,33];break;case 13:y=[160,99];break;case 14:y=[4,3];break;case 15:y=[3,2];break;case 16:y=[2,1];break;case 255:y=[t.readUnsignedByte()<<8|t.readUnsignedByte(),t.readUnsignedByte()<<8|t.readUnsignedByte()]}y&&(y[0],y[1])}return{profileIdc:n,levelIdc:i,profileCompatibility:r,width:16*(c+1)-2*p-2*m,height:(2-d)*(u+1)*16-2*g-2*v,sarRatio:y}}},pt.prototype=new H;var bt,_t={H264Stream:pt,NalByteStream:mt},Tt=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],kt=function(e,t){var n=e[t+6]<<21|e[t+7]<<14|e[t+8]<<7|e[t+9];return n=n>=0?n:0,(16&e[t+5])>>4?n+20:n+10},wt=function e(t,n){return t.length-n<10||t[n]!=="I".charCodeAt(0)||t[n+1]!=="D".charCodeAt(0)||t[n+2]!=="3".charCodeAt(0)?n:e(t,n+=kt(t,n))},St=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},xt={isLikelyAacData:function(e){var t=wt(e,0);return e.length>
vendor: 4,119 bytes, line 2
2=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:kt,parseAdtsSize:function(e,t){var n=(224&e[t+5])>>5,i=e[t+4]<<3;return 6144&e[t+3]|i|n},parseType:function(e,t){return e[t]==="I".charCodeAt(0)&&e[t+1]==="D".charCodeAt(0)&&e[t+2]==="3".charCodeAt(0)?"timed-metadata":!0&e[t]&&240==(240&e[t+1])?"audio":null},parseSampleRate:function(e){for(var t=0;t+5<e.length;){if(255===e[t]&&240==(246&e[t+1]))return Tt[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=St(e.subarray(10,14)));do{if((n=St(e.subarray(t+4,t+8)))<1)return null;if("PRIV"===String.fromCharCode(e[t],e[t+1],e[t+2],e[t+3])){i=e.subarray(t+10,t+n+10);for(var r=0;r<i.byteLength;r++)if(0===i[r]){var a=unescape(function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}(i,0,r));if("com.apple.streaming.transportStreamTimestamp"===a){var s=i.subarray(r+1),o=(1&s[3])<<30|s[4]<<22|s[5]<<14|s[6]<<6|s[7]>>>2;return o*=4,o+=3&s[7]}break}}t+=10,t+=n}while(t<e.byteLength);return null}};(bt=function(){var e=new Uint8Array,t=0;bt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,a,s,o=0,l=0;for(e.length?(s=e.length,(e=new Uint8Array(n.byteLength+s)).set(e.subarray(0,s)),e.set(n,s)):e=n;e.length-l>=3;)if(e[l]!=="I".charCodeAt(0)||e[l+1]!=="D".charCodeAt(0)||e[l+2]!=="3".charCodeAt(0))if(255!=(255&e[l])||240!=(240&e[l+1]))l++;else{if(e.length-l<7)break;if(l+(o=xt.parseAdtsSize(e,l))>e.length)break;a={type:"audio",data:e.subarray(l,l+o),pts:t,dts:t},this.trigger("data",a),l+=o}else{if(e.length-l<10)break;if(l+(o=xt.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+o)},this.trigger("data",r),l+=o}i=e.length-l,e=i>0?e.subarray(l):new Uint8Array},this.reset=function(){e=new Uint8Array,this.trigger("reset")},this.endTimeline=function(){e=new Uint8Array,this.trigger("endedtimeline")}}).prototype=new H;var Ct,Et,At,Lt,It=bt,Pt=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],Ot=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],Dt=_t.H264Stream,Rt=xt.isLikelyAacData,Mt=pe,Nt=function(e,t){t.stream=e,this.trigger("log",t)},qt=function(e,t){for(var n=Object.keys(t),i=0;i<n.length;i++){var r=n[i];"headOfPipeline"!==r&&t[r].on&&t[r].on("log",Nt.bind(e,r))}},Ut=function(e,t){var n;if(e.length!==t.length)return!1;for(n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0},jt=function(e,t,n,i,r,a){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:a,baseMediaDecodeTime:e}};Et=function(e,t){var n,i=[],r=0,a=0,s=1/0;n=(t=t||{}).firstSequenceNumber||0,Et.prototype.init.call(this),this.push=function(t){Ee(e,t),e&&Pt.forEach((function(n){e[n]=t[n]})),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){s=e},this.setAudioAppendStart=function(e){a=e},this.flush=function(){var o,l,c,u,d,h,f;0!==i.length?(o=Te(i,e,r),e.baseMediaDecodeTime=Ce(e,t.keepOriginalTimestamps),f=_e(e,o,a,s),e.samples=ke(o),c=ee(we(o)),i=[],l=te(n,[e]),u=new Uint8Array(l.byteLength+c.byteLength),n++,u.set(l),u.set(c,l.byteLength),xe(e),d=Math.ceil(1024*Mt/e.samplerate),o.length&&(h=o.length*d,this.trigger("segmentTimingInfo",jt(ve(e.baseMediaDecodeTime,e.samplerate),o[0].dts,o[0].pts,o[0].dts+h,o[0].pts+h,f||0)),this.trigger("timingInfo",{start:o[0].pts,end:o[0].pts+h})),this.trigger("data",{track:e,boxes:u}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){xe(e),i=[],this.trigger("reset")}},Et.prototype=new H,Ct=function(e,t){var n,i,r,a=[],s=[];n=(t=t||{}).firstSequenceNumber||0,Ct.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){Ee(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],Ot.forEach((function(t){e[t]=i[t]}),this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),a.push(t)},this.flush=function(){for(var i,r,o,l,c,u,d,h,f=0;a.length&&"access_unit_delimiter_rbsp"!==a[0].nalUnitType;)a.shift();
vendor: 11,592 bytes, line 2
2if(0===a.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=re(a),(o=ae(i))[0][0].keyFrame||((r=this.getGopForFusion_(a[0],e))?(f=r.duration,o.unshift(r),o.byteLength+=r.byteLength,o.nalCount+=r.nalCount,o.pts=r.pts,o.dts=r.dts,o.duration+=r.duration):o=se(o)),s.length){var p;if(!(p=t.alignGopsAtEnd?this.alignGopsAtEnd_(o):this.alignGopsAtStart_(o)))return this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");xe(e),o=p}Ee(e,o),e.samples=oe(o),c=ee(le(o)),e.baseMediaDecodeTime=Ce(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",o.map((function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}}))),d=o[0],h=o[o.length-1],this.trigger("segmentTimingInfo",jt(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,f)),this.trigger("timingInfo",{start:o[0].pts,end:o[o.length-1].pts+o[o.length-1].duration}),this.gopCache_.unshift({gop:o.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),a=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=te(n,[e]),u=new Uint8Array(l.byteLength+c.byteLength),n++,u.set(l),u.set(c,l.byteLength),this.trigger("data",{track:e,boxes:u}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),a=[],this.gopCache_.length=0,s.length=0,this.trigger("reset")},this.resetStream_=function(){xe(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,a,s,o=1/0;for(s=0;s<this.gopCache_.length;s++)r=(a=this.gopCache_[s]).gop,e.pps&&Ut(e.pps[0],a.pps[0])&&e.sps&&Ut(e.sps[0],a.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||o>n)&&(i=a,o=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,a,o,l,c;for(a=e.byteLength,o=e.nalCount,l=e.duration,t=n=0;t<s.length&&n<e.length&&(i=s[t],r=e[n],i.pts!==r.pts);)r.pts>i.pts?t++:(n++,a-=r.byteLength,o-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((c=e.slice(n)).byteLength=a,c.duration=l,c.nalCount=o,c.pts=c[0].pts,c.dts=c[0].dts,c)},this.alignGopsAtEnd_=function(e){var t,n,i,r,a,o,l;for(t=s.length-1,n=e.length-1,a=null,o=!1;t>=0&&n>=0;){if(i=s[t],r=e[n],i.pts===r.pts){o=!0;break}i.pts>r.pts?t--:(t===s.length-1&&(a=n),n--)}if(!o&&null===a)return null;if(0===(l=o?n:a))return e;var c=e.slice(l),u=c.reduce((function(e,t){return e.byteLength+=t.byteLength,e.duration+=t.duration,e.nalCount+=t.nalCount,e}),{byteLength:0,duration:0,nalCount:0});return c.byteLength=u.byteLength,c.duration=u.duration,c.nalCount=u.nalCount,c.pts=c[0].pts,c.dts=c[0].dts,c},this.alignGopsWith=function(e){s=e}},Ct.prototype=new H,Lt=function(e,t){this.numberOfTracks=0,this.metadataStream=t,void 0!==(e=e||{}).remux?this.remuxTracks=!!e.remux:this.remuxTracks=!0,"boolean"==typeof e.keepOriginalTimestamps?this.keepOriginalTimestamps=e.keepOriginalTimestamps:this.keepOriginalTimestamps=!1,this.pendingTracks=[],this.videoTrack=null,this.pendingBoxes=[],this.pendingCaptions=[],this.pendingMetadata=[],this.pendingBytes=0,this.emittedTracks=0,Lt.prototype.init.call(this),this.push=function(e){return e.text?this.pendingCaptions.push(e):e.frames?this.pendingMetadata.push(e):(this.pendingTracks.push(e.track),this.pendingBytes+=e.boxes.byteLength,"video"===e.track.type&&(this.videoTrack=e.track,this.pendingBoxes.push(e.boxes)),void("audio"===e.track.type&&(this.audioTrack=e.track,this.pendingBoxes.unshift(e.boxes))))}},Lt.prototype=new H,Lt.prototype.flush=function(e){var t,n,i,r,a=0,s={captions:[],captionStreams:{},metadata:[],info:{}},o=0;if(this.pendingTracks.length<this.numberOfTracks){if("VideoSegmentStream"!==e&&"AudioSegmentStream"!==e)return;if(this.remuxTracks)return;if(0===this.pendingTracks.length)return this.emittedTracks++,void(this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0))}if(this.videoTrack?(o=this.videoTrack.timelineStartInfo.pts,Ot.forEach((function(e){s.info[e]=this.videoTrack[e]}),this)):this.audioTrack&&(o=this.audioTrack.timelineStartInfo.pts,Pt.forEach((function(e){s.info[e]=this.audioTrack[e]}),this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?s.type=this.pendingTracks[0].type:s.type="combined",this.emittedTracks+=this.pendingTracks.length,i=ne(this.pendingTracks),s.initSegment=new Uint8Array(i.byteLength),s.initSegment.set(i),s.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)s.data.set(this.pendingBoxes[r],a),a+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=be(t.startPts,o,this.keepOriginalTimestamps),t.endTime=be(t.endPts,o,this.keepOriginalTimestamps),s.captionStreams[t.stream]=!0,s.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=be(n.pts,o,this.keepOriginalTimestamps),s.metadata.push(n);for(s.metadata.dispatchType=this.metadataStream.dispatchType,this.pendingTracks.length=0,this.videoTrack=null,this.pendingBoxes.length=0,this.pendingCaptions.length=0,this.pendingBytes=0,this.pendingMetadata.length=0,this.trigger("data",s),r=0;r<s.captions.length;r++)t=s.captions[r],this.trigger("caption",t);for(r=0;r<s.metadata.length;r++)n=s.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},Lt.prototype.setRemux=function(e){this.remuxTracks=e},At=function(e){var t,n,i=this,r=!0;At.prototype.init.call(this),e=e||{},this.baseMediaDecodeTime=e.baseMediaDecodeTime||0,this.transmuxPipeline_={},this.setupAacPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="aac",r.metadataStream=new dt.MetadataStream,r.aacStream=new It,r.audioTimestampRolloverStream=new dt.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new dt.TimestampRolloverStream("timed-metadata"),r.adtsStream=new vt,r.coalesceStream=new Lt(e,r.metadataStream),r.headOfPipeline=r.aacStream,r.aacStream.pipe(r.audioTimestampRolloverStream).pipe(r.adtsStream),r.aacStream.pipe(r.timedMetadataTimestampRolloverStream).pipe(r.metadataStream).pipe(r.coalesceStream),r.metadataStream.on("timestamp",(function(e){r.aacStream.setTimestamp(e.timeStamp)})),r.aacStream.on("data",(function(a){"timed-metadata"!==a.type&&"audio"!==a.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Et(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t}))})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new dt.MetadataStream,r.packetStream=new dt.TransportPacketStream,r.parseStream=new dt.TransportParseStream,r.elementaryStream=new dt.ElementaryStream,r.timestampRolloverStream=new dt.TimestampRolloverStream,r.adtsStream=new vt,r.h264Stream=new Dt,r.captionStream=new dt.CaptionStream(e),r.coalesceStream=new Lt(e,r.metadataStream),r.headOfPipeline=r.packetStream,r.packetStream.pipe(r.parseStream).pipe(r.elementaryStream).pipe(r.timestampRolloverStream),r.timestampRolloverStream.pipe(r.h264Stream),r.timestampRolloverStream.pipe(r.adtsStream),r.timestampRolloverStream.pipe(r.metadataStream).pipe(r.coalesceStream),r.h264Stream.pipe(r.captionStream).pipe(r.coalesceStream),r.elementaryStream.on("data",(function(a){var s;if("metadata"===a.type){for(s=a.tracks.length;s--;)t||"video"!==a.tracks[s].type?n||"audio"!==a.tracks[s].type||((n=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=a.tracks[s]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new Ct(t,e),r.videoSegmentStream.on("log",i.getLogTrigger_("videoSegmentStream")),r.videoSegmentStream.on("timelineStartInfo",(function(t){n&&!e.keepOriginalTimestamps&&(n.timelineStartInfo=t,r.audioSegmentStream.setEarliestDts(t.dts-i.baseMediaDecodeTime))})),r.videoSegmentStream.on("processedGopsInfo",i.trigger.bind(i,"gopInfo")),r.videoSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"videoSegmentTimingInfo")),r.videoSegmentStream.on("baseMediaDecodeTime",(function(e){n&&r.audioSegmentStream.setVideoBaseMediaDecodeTime(e)})),r.videoSegmentStream.on("timingInfo",i.trigger.bind(i,"videoTimingInfo")),r.h264Stream.pipe(r.videoSegmentStream).pipe(r.coalesceStream)),n&&!r.audioSegmentStream&&(r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new Et(n,e),r.audioSegmentStream.on("log",i.getLogTrigger_("audioSegmentStream")),r.audioSegmentStream.on("timingInfo",i.trigger.bind(i,"audioTimingInfo")),r.audioSegmentStream.on("segmentTimingInfo",i.trigger.bind(i,"audioSegmentTimingInfo")),r.adtsStream.pipe(r.audioSegmentStream).pipe(r.coalesceStream)),i.trigger("trackinfo",{hasAudio:!!n,hasVideo:!!t})}})),r.coalesceStream.on("data",this.trigger.bind(this,"data")),r.coalesceStream.on("id3Frame",(function(e){e.dispatchType=r.metadataStream.dispatchType,i.trigger("id3Frame",e)})),r.coalesceStream.on("caption",this.trigger.bind(this,"caption")),r.coalesceStream.on("done",this.trigger.bind(this,"done")),qt(this,r)},this.setBaseMediaDecodeTime=function(i){var r=this.transmuxPipeline_;e.keepOriginalTimestamps||(this.baseMediaDecodeTime=i),n&&(n.timelineStartInfo.dts=void 0,n.timelineStartInfo.pts=void 0,xe(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,xe(t),r.captionStream.reset()),r.timestampRolloverStream&&r.timestampRolloverStream.discontinuity()},this.setAudioAppendStart=function(e){n&&this.transmuxPipeline_.audioSegmentStream.setAudioAppendStart(e)},this.setRemux=function(t){var n=this.transmuxPipeline_;e.remux=t,n&&n.coalesceStream&&n.coalesceStream.setRemux(t)},this.alignGopsWith=function(e){t&&this.transmuxPipeline_.videoSegmentStream&&this.transmuxPipeline_.videoSegmentStream.alignGopsWith(e)},this.getLogTrigger_=function(e){var t=this;return function(n){n.stream=e,t.trigger("log",n)}},this.push=function(e){if(r){var t=Rt(e);t&&"aac"!==this.transmuxPipeline_.type?this.setupAacPipeline():t||"ts"===this.transmuxPipeline_.type||this.setupTsPipeline(),r=!1}this.transmuxPipeline_.headOfPipeline.push(e)},this.flush=function(){r=!0,this.transmuxPipeline_.headOfPipeline.flush()},this.endTimeline=function(){this.transmuxPipeline_.headOfPipeline.endTimeline()},this.reset=function(){this.transmuxPipeline_.headOfPipeline&&this.transmuxPipeline_.headOfPipeline.reset()},this.resetCaptions=function(){this.transmuxPipeline_.captionStream&&this.transmuxPipeline_.captionStream.reset()}},At.prototype=new H;var Bt,Ft,Ht,Wt={Transmuxer:At,VideoSegmentStream:Ct,AudioSegmentStream:Et,AUDIO_PROPERTIES:Pt,VIDEO_PROPERTIES:Ot,generateSegmentTimingInfo:jt},zt=function(e){return e>>>0},Vt=function(e){return("00"+e.toString(16)).slice(-2)},$t=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),t+=String.fromCharCode(e[2]),t+=String.fromCharCode(e[3])},Xt=zt,Gt=function e(t,n){var i,r,a,s,o,l=[];
vendor: 3,181 bytes, line 2
2if(!n.length)return null;for(i=0;i<t.byteLength;)r=Xt(t[i]<<24|t[i+1]<<16|t[i+2]<<8|t[i+3]),a=$t(t.subarray(i+4,i+8)),s=r>1?i+r:t.byteLength,a===n[0]&&(1===n.length?l.push(t.subarray(i+8,s)):(o=e(t.subarray(i+8,s),n.slice(1))).length&&(l=l.concat(o))),i=s;return l},Kt=zt,Yt=z.getUint64,Qt=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=Yt(e.subarray(4)):t.baseMediaDecodeTime=Kt(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},Jt=function(e){return{isLeading:(12&e[0])>>>2,dependsOn:3&e[0],isDependedOn:(192&e[1])>>>6,hasRedundancy:(48&e[1])>>>4,paddingValue:(14&e[1])>>>1,isNonSyncSample:1&e[1],degradationPriority:e[2]<<8|e[3]}},Zt=function(e){var t,n={version:e[0],flags:new Uint8Array(e.subarray(1,4)),samples:[]},i=new DataView(e.buffer,e.byteOffset,e.byteLength),r=1&n.flags[2],a=4&n.flags[2],s=1&n.flags[1],o=2&n.flags[1],l=4&n.flags[1],c=8&n.flags[1],u=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),a&&u&&(t={flags:Jt(e.subarray(d,d+4))},d+=4,s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),u--);u--;)t={},s&&(t.duration=i.getUint32(d),d+=4),o&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=Jt(e.subarray(d,d+4)),d+=4),c&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},en=function(e){var t,n=new DataView(e.buffer,e.byteOffset,e.byteLength),i={version:e[0],flags:new Uint8Array(e.subarray(1,4)),trackId:n.getUint32(4)},r=1&i.flags[2],a=2&i.flags[2],s=8&i.flags[2],o=16&i.flags[2],l=32&i.flags[2],c=65536&i.flags[0],u=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),a&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),s&&(i.defaultSampleDuration=n.getUint32(t),t+=4),o&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),c&&(i.durationIsEmpty=!0),!r&&u&&(i.baseDataOffsetIsMoof=!0),i},tn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},nn="undefined"!=typeof window?window:void 0!==tn?tn:"undefined"!=typeof self?self:{},rn=Pe,an=ze.CaptionStream,sn=function(e,t){for(var n=e,i=0;i<t.length;i++){var r=t[i];if(n<r.size)return r;n-=r.size}return null},on=function(e,t){var n=Gt(e,["moof","traf"]),i=Gt(e,["mdat"]),r={},a=[];return i.forEach((function(e,t){var i=n[t];a.push({mdat:e,traf:i})})),a.forEach((function(e){var n,i,a=e.mdat,s=e.traf,o=Gt(s,["tfhd"]),l=en(o[0]),c=l.trackId,u=Gt(s,["tfdt"]),d=u.length>0?Qt(u[0]).baseMediaDecodeTime:0,h=Gt(s,["trun"]);t===c&&h.length>0&&(n=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,a=n.defaultSampleSize||0,s=n.trackId,o=[];return e.forEach((function(e){var t=Zt(e).samples;t.forEach((function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=a),e.trackId=s,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+nn.BigInt(e.compositionTimeOffset),i+=nn.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)})),o=o.concat(t)})),o}
vendor: 8,117 bytes, line 2
2(h,d,l),i=function(e,t,n){var i,r,a,s,o=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=a)if(a=o.getUint32(r),r+=4,!(a<=0))switch(31&e[r]){case 6:var c=e.subarray(r+1,r+1+a),u=sn(r,t);if(i={nalUnitType:"sei_rbsp",size:a,data:c,escapedRBSP:rn(c),trackId:n},u)i.pts=u.pts,i.dts=u.dts,s=u;else{if(!s){l.logs.push({level:"warn",message:"We've encountered a nal unit without data at "+r+" for trackId "+n+". See mux.js#223."});break}i.pts=s.pts,i.dts=s.dts}l.seiNals.push(i)}return l}(a,n,c),r[c]||(r[c]={seiNals:[],logs:[]}),r[c].seiNals=r[c].seiNals.concat(i.seiNals),r[c].logs=r[c].logs.concat(i.logs))})),r},ln=function(){var e,t,n,i,r,a,s=!1;this.isInitialized=function(){return s},this.init=function(t){e=new an,s=!0,a=!!t&&t.isPartial,e.on("data",(function(e){e.startTime=e.startPts/i,e.endTime=e.endPts/i,r.captions.push(e),r.captionStreams[e.stream]=!0})),e.on("log",(function(e){r.logs.push(e)}))},this.isNewInit=function(e,t){return!(e&&0===e.length||t&&"object"==typeof t&&0===Object.keys(t).length)&&(n!==e[0]||i!==t[n])},this.parse=function(e,a,s){var o;if(!this.isInitialized())return null;if(!a||!s)return null;if(this.isNewInit(a,s))n=a[0],i=s[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,a,s)}return o=function(e,t,n){if(null===t)return null;var i=on(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(e,n,i),o&&o.logs&&(r.logs=r.logs.concat(o.logs)),null!==o&&o.seiNals?(this.pushNals(o.seiNals),this.flushStream(),r):r.logs.length?{logs:r.logs,captions:[],captionStreams:[]}:null},this.pushNals=function(t){if(!this.isInitialized()||!t||0===t.length)return null;t.forEach((function(t){e.push(t)}))},this.flushStream=function(){if(!this.isInitialized())return null;a?e.partialFlush():e.flush()},this.clearParsedCaptions=function(){r.captions=[],r.captionStreams={},r.logs=[]},this.resetCaptionStream=function(){if(!this.isInitialized())return null;e.reset()},this.clearAllCaptions=function(){this.clearParsedCaptions(),this.resetCaptionStream()},this.reset=function(){t=[],n=null,i=null,r?this.clearParsedCaptions():r={captions:[],captionStreams:{},logs:[]},this.resetCaptionStream()},this.reset()},cn=zt,un=Vt,dn=z.getUint64;Bt=function(e,t){var n=Gt(t,["moof","traf"]).reduce((function(t,n){var i,r,a=Gt(n,["tfhd"])[0],s=cn(a[4]<<24|a[5]<<16|a[6]<<8|a[7]),o=e[s]||9e4,l=Gt(n,["tfdt"])[0],c=new DataView(l.buffer,l.byteOffset,l.byteLength);return"bigint"==typeof(i=1===l[0]?dn(l.subarray(4,12)):c.getUint32(4))?r=i/nn.BigInt(o):"number"!=typeof i||isNaN(i)||(r=i/o),r<Number.MAX_SAFE_INTEGER&&(r=Number(r)),r<t&&(t=r),t}),1/0);return"bigint"==typeof n||isFinite(n)?n:0},Ht=function(e){var t=0===e[0]?12:20;return cn(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},Ft=function(e){var t=Gt(e,["moov","trak"]),n=[];return t.forEach((function(e){var t,i,r={},a=Gt(e,["tkhd"])[0];a&&(i=(t=new DataView(a.buffer,a.byteOffset,a.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var s=Gt(e,["mdia","hdlr"])[0];if(s){var o=$t(s.subarray(8,12));r.type="vide"===o?"video":"soun"===o?"audio":o}var l=Gt(e,["mdia","minf","stbl","stsd"])[0];if(l){var c=l.subarray(8);r.codec=$t(c.subarray(4,8));var u,d=Gt(c,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(u=d.subarray(78),"avcC"===$t(u.subarray(4,8))&&u.length>11?(r.codec+=".",r.codec+=un(u[9]),r.codec+=un(u[10]),r.codec+=un(u[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(u=d.subarray(28),"esds"===$t(u.subarray(4,8))&&u.length>20&&0!==u[19]?(r.codec+="."+un(u[19]),r.codec+="."+un(u[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=Gt(e,["mdia","mdhd"])[0];h&&(r.timescale=Ht(h)),n.push(r)})),n};var hn=Bt,fn=Ft,pn=function(e){var t=31&e[1];return t<<=8,t|=e[2]},mn=function(e){return!!(64&e[1])},gn=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},vn=function(e){switch(e){case 5:return"slice_layer_without_partitioning_rbsp_idr";case 6:return"sei_rbsp";case 7:return"seq_parameter_set_rbsp";case 8:return"pic_parameter_set_rbsp";case 9:return"access_unit_delimiter_rbsp";default:return null}},yn={parseType:function(e,t){var n=pn(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=mn(e),n=4+gn(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=mn(e),i=4+gn(e);if(n&&(i+=e[i]+1),1&e[i+5]){var r;r=3+((15&e[i+1])<<8|e[i+2])-4;for(var a=12+((15&e[i+10])<<8|e[i+11]);a<r;){var s=i+a;t[(31&e[s+1])<<8|e[s+2]]=e[s],a+=5+((15&e[s+3])<<8|e[s+4])}return t}},parsePayloadUnitStartIndicator:mn,parsePesType:function(e,t){switch(t[pn(e)]){case Ve.H264_STREAM_TYPE:return"video";case Ve.ADTS_STREAM_TYPE:return"audio";case Ve.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!mn(e))return null;var t=4+gn(e);if(t>=e.byteLength)return null;var n,i=null;return 192&(n=e[t+7])&&((i={}).pts=(14&e[t+9])<<27|(255&e[t+10])<<20|(254&e[t+11])<<12|(255&e[t+12])<<5|(254&e[t+13])>>>3,i.pts*=4,i.pts+=(6&e[t+13])>>>1,i.dts=i.pts,64&n&&(i.dts=(14&e[t+14])<<27|(255&e[t+15])<<20|(254&e[t+16])<<12|(255&e[t+17])<<5|(254&e[t+18])>>>3,i.dts*=4,i.dts+=(6&e[t+18])>>>1)),i},videoPacketContainsKeyFrame:function(e){for(var t=4+gn(e),n=e.subarray(t),i=0,r=0,a=!1;r<n.byteLength-3;r++)if(1===n[r+2]){i=r+5;break}for(;i<n.byteLength;)switch(n[i]){case 0:if(0!==n[i-1]){i+=2;break}if(0!==n[i-2]){i++;break}r+3!==i-2&&"slice_layer_without_partitioning_rbsp_idr"===vn(31&n[r+3])&&(a=!0);do{i++}while(1!==n[i]&&i<n.length);r=i-2,i+=3;break;case 1:if(0!==n[i-1]||0!==n[i-2]){i+=3;break}"slice_layer_without_partitioning_rbsp_idr"===vn(31&n[r+3])&&(a=!0),r=i-2,i+=3;break;default:i+=3}return n=n.subarray(r),i-=r,r=0,n&&n.byteLength>3&&"slice_layer_without_partitioning_rbsp_idr"===vn(31&n[r+3])&&(a=!0),a}},bn=Qe,_n={};_n.ts=yn,_n.aac=xt;var Tn=pe,kn=188,wn=71,Sn=function(e,t,n){for(var i,r,a,s,o=0,l=kn,c=!1;l<=e.byteLength;)if(e[o]!==wn||e[l]!==wn&&l!==e.byteLength)o++,l++;else{if(i=e.subarray(o,l),"pes"===_n.ts.parseType(i,t.pid))r=_n.ts.parsePesType(i,t.table),a=_n.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=_n.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),c=!0);if(c)break;o+=kn,l+=kn}for(o=(l=e.byteLength)-kn,c=!1;o>=0;)if(e[o]!==wn||e[l]!==wn&&l!==e.byteLength)o--,l--;else{if(i=e.subarray(o,l),"pes"===_n.ts.parseType(i,t.pid))r=_n.ts.parsePesType(i,t.table),a=_n.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&a&&(s=_n.ts.parsePesTime(i))&&(s.type="audio",n.audio.push(s),c=!0);if(c)break;o-=kn,l-=kn}},xn=function(e,t,n){for(var i,r,a,s,o,l,c,u=0,d=kn,h=!1,f={data:[],size:0};d<e.byteLength;)if(e[u]!==wn||e[d]!==wn)u++,d++;else{if(i=e.subarray(u,d),"pes"===_n.ts.parseType(i,t.pid))if(r=_n.ts.parsePesType(i,t.table),a=_n.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(a&&!h&&(s=_n.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),h=!0),!n.firstKeyFrame)){if(a&&0!==f.size){for(o=new Uint8Array(f.size),l=0;f.data.length;)c=f.data.shift(),o.set(c,l),l+=c.byteLength;if(_n.ts.videoPacketContainsKeyFrame(o)){var p=_n.ts.parsePesTime(o);p?(n.firstKeyFrame=p,n.firstKeyFrame.type="video"):console.warn("Failed to extract PTS/DTS from PES at first keyframe. This could be an unusual TS segment, or else mux.js did not parse your TS segment correctly. If you know your TS segments do contain PTS/DTS on keyframes please file a bug report! You can try ffprobe to double check for yourself.")}f.size=0}f.data.push(i),f.size+=i.byteLength}if(h&&n.firstKeyFrame)break;u+=kn,d+=kn}for(u=(d=e.byteLength)-kn,h=!1;u>=0;)if(e[u]!==wn||e[d]!==wn)u--,d--;else{if(i=e.subarray(u,d),"pes"===_n.ts.parseType(i,t.pid))r=_n.ts.parsePesType(i,t.table),a=_n.ts.parsePayloadUnitStartIndicator(i),"video"===r&&a&&(s=_n.ts.parsePesTime(i))&&(s.type="video",n.video.push(s),h=!0);if(h)break;u-=kn,d-=kn}},Cn=function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,i=0,r=kn;r<e.byteLength;)if(e[i]!==wn||e[r]!==wn)i++,r++;else{switch(n=e.subarray(i,r),_n.ts.parseType(n,t.pid)){case"pat":t.pid=_n.ts.parsePat(n);break;case"pmt":var a=_n.ts.parsePmt(n);t.table=t.table||{}
2,Object.keys(a).forEach((function(e){t.table[e]=a[e]}))}i+=kn,r+=kn}}(e,t),t.table){if(t.table.hasOwnProperty(i))switch(t.table[i]){case Ve.H264_STREAM_TYPE:n.video=[],xn(e,t,n),0===n.video.length&&delete n.video;break;case Ve.ADTS_STREAM_TYPE:n.audio=[],Sn(e,t,n),0===n.audio.length&&delete n.audio}}return n},En=function(e,t){var n;return n=_n.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,r=null,a=null,s=0,o=0;e.length-o>=3;){switch(_n.aac.parseType(e,o)){case"timed-metadata":if(e.length-o<10){n=!0;break}if((s=_n.aac.parseId3TagSize(e,o))>e.length){n=!0;break}null===a&&(t=e.subarray(o,o+s),a=_n.aac.parseAacTimestamp(t)),o+=s;break;case"audio":if(e.length-o<7){n=!0;break}if((s=_n.aac.parseAdtsSize(e,o))>e.length){n=!0;break}null===r&&(t=e.subarray(o,o+s),r=_n.aac.parseSampleRate(t)),i++,o+=s;break;default:o++}if(n)return null}if(null===r||null===a)return null;var l=Tn/r;return{audio:[{type:"audio",dts:a,pts:a},{type:"audio",dts:a+1024*i*l,pts:a+1024*i*l}]}}(e):Cn(e),n&&(n.audio||n.video)?(function(e,t){if(e.audio&&e.audio.length){var n=t;(void 0===n||isNaN(n))&&(n=e.audio[0].dts),e.audio.forEach((function(e){e.dts=bn(e.dts,n),e.pts=bn(e.pts,n),e.dtsTime=e.dts/Tn,e.ptsTime=e.pts/Tn}))}if(e.video&&e.video.length){var i=t;if((void 0===i||isNaN(i))&&(i=e.video[0].dts),e.video.forEach((function(e){e.dts=bn(e.dts,i),e.pts=bn(e.pts,i),e.dtsTime=e.dts/Tn,e.ptsTime=e.pts/Tn})),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=bn(r.dts,i),r.pts=bn(r.pts,i),r.dtsTime=r.dts/Tn,r.ptsTime=r.pts/Tn}}}(n,t),n):null},An=function(){function e(e,t){this.options=t||{},this.self=e,this.init()}var t=e.prototype;return t.init=function(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new Wt.Transmuxer(this.options),function(e,t){t.on("data",(function(t){var n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};var i=t.data;t.data=i.buffer,e.postMessage({action:"data",segment:t,byteOffset:i.byteOffset,byteLength:i.byteLength},[t.data])})),t.on("done",(function(t){e.postMessage({action:"done"})})),t.on("gopInfo",(function(t){e.postMessage({action:"gopInfo",gopInfo:t})})),t.on("videoSegmentTimingInfo",(function(t){var n={start:{decode:ge(t.start.dts),presentation:ge(t.start.pts)},end:{decode:ge(t.end.dts),presentation:ge(t.end.pts)},baseMediaDecodeTime:ge(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ge(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})})),t.on("audioSegmentTimingInfo",(function(t){var n={start:{decode:ge(t.start.dts),presentation:ge(t.start.pts)},end:{decode:ge(t.end.dts),presentation:ge(t.end.pts)},baseMediaDecodeTime:ge(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=ge(t.prependedContentDuration)),e.postMessage({action:"audioSegmentTimingInfo",audioSegmentTimingInfo:n})})),t.on("id3Frame",(function(t){e.postMessage({action:"id3Frame",id3Frame:t})})),t.on("caption",(function(t){e.postMessage({action:"caption",caption:t})})),t.on("trackinfo",(function(t){e.postMessage({action:"trackinfo",trackInfo:t})})),t.on("audioTimingInfo",(function(t){e.postMessage({action:"audioTimingInfo",audioTimingInfo:{start:ge(t.start),end:ge(t.end)}})})),t.on("videoTimingInfo",(function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:ge(t.start),end:ge(t.end)}})})),t.on("log",(function(t){e.postMessage({action:"log",log:t})}))}(this.self,this.transmuxer)},t.pushMp4Captions=function(e){this.captionParser||(this.captionParser=new ln,this.captionParser.init());var t=new Uint8Array(e.data,e.byteOffset,e.byteLength),n=this.captionParser.parse(t,e.trackIds,e.timescales);this.self.postMessage({action:"mp4Captions",captions:n&&n.captions||[],logs:n&&n.logs||[],data:t.buffer},[t.buffer])},t.probeMp4StartTime=function(e){var t=e.timescales,n=e.data,i=hn(t,n);this.self.postMessage({action:"probeMp4StartTime",startTime:i,data:n},[n.buffer])},t.probeMp4Tracks=function(e){var t=e.data,n=fn(t);this.self.postMessage({action:"probeMp4Tracks",tracks:n,data:t},[t.buffer])},t.probeTs=function(e){var t=e.data,n=e.baseStartTime,i="number"!=typeof n||isNaN(n)?void 0:n*pe,r=En(t,i),a=null;r&&((a={hasVideo:r.video&&2===r.video.length||!1,hasAudio:r.audio&&2===r.audio.length||!1}).hasVideo&&(a.videoStart=r.video[0].ptsTime),a.hasAudio&&(a.audioStart=r.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:a,data:t},[t.buffer])},t.clearAllMp4Captions=function(){this.captionParser&&this.captionParser.clearAllCaptions()},t.clearParsedMp4Captions=function(){this.captionParser&&this.captionParser.clearParsedCaptions()},t.push=function(e){var t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)},t.reset=function(){this.transmuxer.reset()},t.setTimestampOffset=function(e){var t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(me(t)))},t.setAudioAppendStart=function(e){this.transmuxer.setAudioAppendStart(Math.ceil(me(e.appendStart)))},t.setRemux=function(e){this.transmuxer.setRemux(e.remux)},t.flush=function(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})},t.endTimeline=function(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})},t.alignGopsWith=function(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())},e}();
2self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new An(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new An(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}))),pl=ul(fl),ml=function(e){var t=e.transmuxer,n=e.bytes,i=e.audioAppendStart,r=e.gopsToAlignWith,a=e.remux,s=e.onData,o=e.onTrackInfo,l=e.onAudioTimingInfo,c=e.onVideoTimingInfo,u=e.onVideoSegmentTimingInfo,d=e.onAudioSegmentTimingInfo,h=e.onId3,f=e.onCaptions,p=e.onDone,m=e.onEndedTimeline,g=e.onTransmuxerLog,v=e.isEndOfTimeline,y={buffer:[]},b=v;if(t.onmessage=function(n){t.currentTransmux===e&&("data"===n.data.action&&function(e,t,n){var i=e.data.segment,r=i.type,a=i.initSegment,s=i.captions,o=i.captionStreams,l=i.metadata,c=i.videoFrameDtsTime,u=i.videoFramePtsTime;t.buffer.push({captions:s,captionStreams:o,metadata:l});var d=e.data.segment.boxes||{data:e.data.segment.data},h={type:r,data:new Uint8Array(d.data,d.data.byteOffset,d.data.byteLength),initSegment:new Uint8Array(a.data,a.byteOffset,a.byteLength)};void 0!==c&&(h.videoFrameDtsTime=c),void 0!==u&&(h.videoFramePtsTime=u),n(h)}(n,y,s),"trackinfo"===n.data.action&&o(n.data.trackInfo),"gopInfo"===n.data.action&&function(e,t){t.gopInfo=e.data.gopInfo}(n,y),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&c(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&u(n.data.videoSegmentTimingInfo),"audioSegmentTimingInfo"===n.data.action&&d(n.data.audioSegmentTimingInfo),"id3Frame"===n.data.action&&h([n.data.id3Frame],n.data.id3Frame.dispatchType),"caption"===n.data.action&&f(n.data.caption),"endedtimeline"===n.data.action&&(b=!1,m()),"log"===n.data.action&&g(n.data.log),"transmuxed"===n.data.type&&(b||(t.onmessage=null,function(e){var t=e.transmuxedData,n=e.callback;t.buffer=[],n(t)}({transmuxedData:y,callback:p}),gl(t))))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==a&&t.postMessage({action:"setRemux",remux:a}),n.byteLength){var _=n instanceof ArrayBuffer?n:n.buffer,T=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:_,byteOffset:T,byteLength:n.byteLength},[_])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},gl=function(e){e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():ml(e.currentTransmux))},vl=function(e,t){e.postMessage({action:t}),gl(e)},yl=function(e,t){if(!t.currentTransmux)return t.currentTransmux=e,void vl(t,e);t.transmuxQueue.push(vl.bind(null,t,e))},bl=function(e){if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void ml(e);e.transmuxer.transmuxQueue.push(e)},_l=function(e){yl("reset",e)},Tl=function(e){var t=new pl;t.currentTransmux=null,t.transmuxQueue=[];var n=t.terminate;return t.terminate=function(){return t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)},t.postMessage({action:"init",options:e}),t},kl=function(e){var t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=o({},e,{endAction:null,transmuxer:null,callback:null});if(t.addEventListener("message",(function r(a){a.data.action===n&&(t.removeEventListener("message",r),a.data.data&&(a.data.data=new Uint8Array(a.data.data,e.byteOffset||0,e.byteLength||a.data.data.byteLength),e.data&&(e.data=a.data.data)),i(a.data))})),e.data){var a=e.data instanceof ArrayBuffer;r.byteOffset=a?0:e.data.byteOffset,r.byteLength=e.data.byteLength;var s=[a?e.data:e.data.buffer];t.postMessage(r,s)}else t.postMessage(r)},wl=2,Sl=-101,xl=-102,Cl=function(e){e.forEach((function(e){e.abort()}))},El=function(e,t){return t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:Sl,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:xl,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:wl,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:wl,xhr:t}:null},Al=function(e,t,n){return function(i,r){var a=r.response,s=El(i,r);if(s)return n(s,e);if(16!==a.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:wl,xhr:r},e);for(var o=new DataView(a),l=new Uint32Array([o.getUint32(0),o.getUint32(4),o.getUint32(8),o.getUint32(12)]),c=0;c<t.length;c++)t[c].bytes=l;return n(null,e)}},Ll=function(e,t){var n=Lt(e.map.bytes);if("mp4"!==n){var i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:"Found unsupported "+(n||"unknown")+" container for initialization segment at URL: "+i,
2code:wl})}kl({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:function(n){var i=n.tracks,r=n.data;return e.map.bytes=r,i.forEach((function(t){e.map.tracks=e.map.tracks||{},e.map.tracks[t.type]||(e.map.tracks[t.type]=t,"number"==typeof t.id&&t.timescale&&(e.map.timescales=e.map.timescales||{},e.map.timescales[t.id]=t.timescale))})),t(null)}})},Il=function(e){var t=e.segment,n=e.finishProcessingFn,i=e.responseType;return function(e,r){var a=El(e,r);if(a)return n(a,t);var s="arraybuffer"!==i&&r.responseText?function(e){for(var t=new Uint8Array(new ArrayBuffer(e.length)),n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer}(r.responseText.substring(t.lastReachedChar||0)):r.response;return t.stats=function(e){return{bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}}(r),t.key?t.encryptedBytes=new Uint8Array(s):t.bytes=new Uint8Array(s),n(null,t)}},Pl=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=t.map&&t.map.tracks||{},m=Boolean(p.audio&&p.video),g=r.bind(null,t,"audio","start"),v=r.bind(null,t,"audio","end"),y=r.bind(null,t,"video","start"),b=r.bind(null,t,"video","end");kl({action:"probeTs",transmuxer:t.transmuxer,data:n,baseStartTime:t.baseStartTime,callback:function(e){t.bytes=n=e.data;var r=e.result;r&&(i(t,{hasAudio:r.hasAudio,hasVideo:r.hasVideo,isMuxed:m}),i=null,r.hasAudio&&!m&&g(r.audioStart),r.hasVideo&&y(r.videoStart),g=null,y=null),bl({bytes:n,transmuxer:t.transmuxer,audioAppendStart:t.audioAppendStart,gopsToAlignWith:t.gopsToAlignWith,remux:m,onData:function(e){e.type="combined"===e.type?"video":e.type,d(t,e)},onTrackInfo:function(e){i&&(m&&(e.isMuxed=!0),i(t,e))},onAudioTimingInfo:function(e){g&&void 0!==e.start&&(g(e.start),g=null),v&&void 0!==e.end&&v(e.end)},onVideoTimingInfo:function(e){y&&void 0!==e.start&&(y(e.start),y=null),b&&void 0!==e.end&&b(e.end)},onVideoSegmentTimingInfo:function(e){a(e)},onAudioSegmentTimingInfo:function(e){s(e)},onId3:function(e,n){o(t,e,n)},onCaptions:function(e){l(t,[e])},isEndOfTimeline:c,onEndedTimeline:function(){u()},onTransmuxerLog:f,onDone:function(e){h&&(e.type="combined"===e.type?"video":e.type,h(null,t,e))}})}})},Ol=function(e){var t=e.segment,n=e.bytes,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=new Uint8Array(n);if(function(e){return ht(e,["moof"]).length>0}(p)){t.isFmp4=!0;var m=t.map.tracks,g={isFmp4:!0,hasVideo:!!m.video,hasAudio:!!m.audio};m.audio&&m.audio.codec&&"enca"!==m.audio.codec&&(g.audioCodec=m.audio.codec),m.video&&m.video.codec&&"encv"!==m.video.codec&&(g.videoCodec=m.video.codec),m.video&&m.audio&&(g.isMuxed=!0),i(t,g);var v=function(e){d(t,{data:p,type:g.hasAudio&&!g.isMuxed?"audio":"video"}),e&&e.length&&l(t,e),h(null,t,{})};kl({action:"probeMp4StartTime",timescales:t.map.timescales,data:p,transmuxer:t.transmuxer,callback:function(e){var i=e.data,a=e.startTime;n=i.buffer,t.bytes=p=i,g.hasAudio&&!g.isMuxed&&r(t,"audio","start",a),g.hasVideo&&r(t,"video","start",a),m.video&&i.byteLength&&t.transmuxer?kl({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:t.transmuxer,data:p,timescales:t.map.timescales,trackIds:[m.video.id],callback:function(e){n=e.data.buffer,t.bytes=p=e.data,e.logs.forEach((function(e){f(zs.mergeOptions(e,{stream:"mp4CaptionParser"}))})),v(e.captions)}}):v()}})}else if(t.transmuxer){if(void 0===t.container&&(t.container=Lt(p)),"ts"!==t.container&&"aac"!==t.container)return i(t,{hasAudio:!1,hasVideo:!1}),void h(null,t,{});Pl({segment:t,bytes:n,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f})}else h(null,t,{})},Dl=function(e,t){var n,i=e.id,r=e.key,a=e.encryptedBytes,s=e.decryptionWorker;s.addEventListener("message",(function e(n){if(n.data.source===i){s.removeEventListener("message",e);var r=n.data.decrypted;t(new Uint8Array(r.bytes,r.byteOffset,r.byteLength))}})),n=r.bytes.slice?r.bytes.slice():new Uint32Array(Array.prototype.slice.call(r.bytes)),s.postMessage(Xo({source:i,encrypted:a,key:n,iv:r.iv}),[a.buffer,n.buffer])},Rl=function(e){var t=e.activeXhrs,n=e.decryptionWorker,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog,p=0,m=!1;return function(e,g){if(!m){if(e)return m=!0,Cl(t),h(e,g);if((p+=1)===t.length){var v=function(){if(g.encryptedBytes)return function(e){var t=e.decryptionWorker,n=e.segment,i=e.trackInfoFn,r=e.timingInfoFn,a=e.videoSegmentTimingInfoFn,s=e.audioSegmentTimingInfoFn,o=e.id3Fn,l=e.captionsFn,c=e.isEndOfTimeline,u=e.endedTimelineFn,d=e.dataFn,h=e.doneFn,f=e.onTransmuxerLog;Dl({id:n.requestId,key:n.key,encryptedBytes:n.encryptedBytes,decryptionWorker:t}
2,(function(e){n.bytes=e,Ol({segment:n,bytes:n.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f})}))}({decryptionWorker:n,segment:g,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f});Ol({segment:g,bytes:g.bytes,trackInfoFn:i,timingInfoFn:r,videoSegmentTimingInfoFn:a,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:l,isEndOfTimeline:c,endedTimelineFn:u,dataFn:d,doneFn:h,onTransmuxerLog:f})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return Dl({decryptionWorker:n,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},(function(e){g.map.bytes=e,Ll(g,(function(e){if(e)return Cl(t),h(e,g);v()}))}));v()}}}},Ml=function(e){var t=e.segment,n=e.progressFn;return e.trackInfoFn,e.timingInfoFn,e.videoSegmentTimingInfoFn,e.audioSegmentTimingInfoFn,e.id3Fn,e.captionsFn,e.isEndOfTimeline,e.endedTimelineFn,e.dataFn,function(e){if(!e.target.aborted)return t.stats=zs.mergeOptions(t.stats,function(e){var t=e.target,n={bandwidth:1/0,bytesReceived:0,roundTripTime:Date.now()-t.requestTime||0};return n.bytesReceived=e.loaded,n.bandwidth=Math.floor(n.bytesReceived/n.roundTripTime*8*1e3),n}(e)),!t.stats.firstBytesReceivedAt&&t.stats.bytesReceived&&(t.stats.firstBytesReceivedAt=Date.now()),n(e,t)}},Nl=function(e){var t=e.xhr,n=e.xhrOptions,i=e.decryptionWorker,r=e.segment,a=e.abortFn,s=e.progressFn,o=e.trackInfoFn,l=e.timingInfoFn,c=e.videoSegmentTimingInfoFn,u=e.audioSegmentTimingInfoFn,d=e.id3Fn,h=e.captionsFn,f=e.isEndOfTimeline,p=e.endedTimelineFn,m=e.dataFn,g=e.doneFn,v=e.onTransmuxerLog,y=[],b=Rl({activeXhrs:y,decryptionWorker:i,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m,doneFn:g,onTransmuxerLog:v});if(r.key&&!r.key.bytes){var _=[r.key];r.map&&!r.map.bytes&&r.map.key&&r.map.key.resolvedUri===r.key.resolvedUri&&_.push(r.map.key);var T=t(zs.mergeOptions(n,{uri:r.key.resolvedUri,responseType:"arraybuffer"}),Al(r,_,b));y.push(T)}if(r.map&&!r.map.bytes){if(r.map.key&&(!r.key||r.key.resolvedUri!==r.map.key.resolvedUri)){var k=t(zs.mergeOptions(n,{uri:r.map.key.resolvedUri,responseType:"arraybuffer"}),Al(r,[r.map.key],b));y.push(k)}var w=zs.mergeOptions(n,{uri:r.map.resolvedUri,responseType:"arraybuffer",headers:Wo(r.map)}),S=function(e){var t=e.segment,n=e.finishProcessingFn;return function(e,i){var r=El(e,i);if(r)return n(r,t);var a=new Uint8Array(i.response);if(t.map.key)return t.map.encryptedBytes=a,n(null,t);t.map.bytes=a,Ll(t,(function(e){if(e)return e.xhr=i,e.status=i.status,n(e,t);n(null,t)}))}}({segment:r,finishProcessingFn:b}),x=t(w,S);y.push(x)}var C=zs.mergeOptions(n,{uri:r.part&&r.part.resolvedUri||r.resolvedUri,responseType:"arraybuffer",headers:Wo(r)}),E=t(C,Il({segment:r,finishProcessingFn:b,responseType:C.responseType}));E.addEventListener("progress",Ml({segment:r,progressFn:s,trackInfoFn:o,timingInfoFn:l,videoSegmentTimingInfoFn:c,audioSegmentTimingInfoFn:u,id3Fn:d,captionsFn:h,isEndOfTimeline:f,endedTimelineFn:p,dataFn:m})),y.push(E);var A={};return y.forEach((function(e){e.addEventListener("loadend",function(e){var t=e.loadendState,n=e.abortFn;return function(e){e.target.aborted&&n&&!t.calledAbortFn&&(n(),t.calledAbortFn=!0)}}({loadendState:A,abortFn:a}))})),function(){return Cl(y)}},ql=Ks("CodecUtils"),Ul=function(e,t){var n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},jl=function(e){var t={};return e.forEach((function(e){var n=e.mediaType,i=e.type,r=e.details;t[n]=t[n]||[],t[n].push(H(""+i+r))})),Object.keys(t).forEach((function(e){if(t[e].length>1)return ql("multiple "+e+" codecs found as attributes: "+t[e].join(", ")+". Setting playlist codecs to null so that we wait for mux.js to probe segments for real codecs."),void(t[e]=null);t[e]=t[e][0]})),t},Bl=function(e){var t=0;return e.audio&&t++,e.video&&t++,t},Fl=function(e,t){var n=t.attributes||{},i=jl(function(e){var t=e.attributes||{};if(t.CODECS)return W(t.CODECS)}(t)||[]);if(Ul(e,t)&&!i.audio&&!function(e,t){if(!Ul(e,t))return!0;var n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(var r in i)if(!i[r].uri&&!i[r].playlists)return!0;return!1}(e,t)){var r=jl(function(e,t){if(!e.mediaGroups.AUDIO||!t)return null;var n=e.mediaGroups.AUDIO[t];if(!n)return null;for(var i in n){var r=n[i];if(r.default&&r.playlists)return W(r.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[]);r.audio&&(i.audio=r.audio)}return i},Hl=Ks("PlaylistSelector"),Wl=function(e){if(e&&e.playlist){var t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})}},zl=function(e,t){if(!e)return"";var n=r().getComputedStyle(e);return n?n[t]:""},Vl=function(e,t){var n=e.slice();e.sort((function(e,i){var r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r}))},$l=function(e,t){var n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||r().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),n-(i=i||r().Number.MAX_VALUE)}
2,Xl=function(e,t,n,i,a,s){if(e){var o={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:a},l=e.playlists;So.isAudioOnly(e)&&(l=s.getAudioTrackPlaylists_(),o.audioOnly=!0);var c=l.map((function(e){var t=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return{bandwidth:e.attributes&&e.attributes.BANDWIDTH||r().Number.MAX_VALUE,width:t,height:n,playlist:e}}));Vl(c,(function(e,t){return e.bandwidth-t.bandwidth}));var u=(c=c.filter((function(e){return!So.isIncompatible(e.playlist)}))).filter((function(e){return So.isEnabled(e.playlist)}));u.length||(u=c.filter((function(e){return!So.isDisabled(e.playlist)})));var d=u.filter((function(e){return e.bandwidth*ll.BANDWIDTH_VARIANCE<t})),h=d[d.length-1],f=d.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(!1===a){var p=f||u[0]||c[0];if(p&&p.playlist){var m="sortedPlaylistReps";return f&&(m="bandwidthBestRep"),u[0]&&(m="enabledPlaylistReps"),Hl("choosing "+Wl(p)+" using "+m+" with options",o),p.playlist}return Hl("could not choose a playlist with options",o),null}var g=d.filter((function(e){return e.width&&e.height}));Vl(g,(function(e,t){return e.width-t.width}));var v=g.filter((function(e){return e.width===n&&e.height===i}));h=v[v.length-1];var y,b,_,T,k=v.filter((function(e){return e.bandwidth===h.bandwidth}))[0];if(k||(b=(y=g.filter((function(e){return e.width>n||e.height>i}))).filter((function(e){return e.width===y[0].width&&e.height===y[0].height})),h=b[b.length-1],_=b.filter((function(e){return e.bandwidth===h.bandwidth}))[0]),s.experimentalLeastPixelDiffSelector){var w=g.map((function(e){return e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e}));Vl(w,(function(e,t){return e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff})),T=w[0]}var S=T||_||k||f||u[0]||c[0];if(S&&S.playlist){var x="sortedPlaylistReps";return T?x="leastPixelDiffRep":_?x="resolutionPlusOneRep":k?x="resolutionBestRep":f?x="bandwidthBestRep":u[0]&&(x="enabledPlaylistReps"),Hl("choosing "+Wl(S)+" using "+x+" with options",o),S.playlist}return Hl("could not choose a playlist with options",o),null}},Gl=function(){var e=this.useDevicePixelRatio&&r().devicePixelRatio||1;return Xl(this.playlists.master,this.systemBandwidth,parseInt(zl(this.tech_.el(),"width"),10)*e,parseInt(zl(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)},Kl=function(e){var t=e.inbandTextTracks,n=e.metadataArray,i=e.timestampOffset,a=e.videoDuration;if(n){var s=r().WebKitDataCue||r().VTTCue,o=t.metadataTrack_;if(o&&(n.forEach((function(e){var t=e.cueTime+i;!("number"!=typeof t||r().isNaN(t)||t<0)&&t<1/0&&e.frames.forEach((function(e){var n=new s(t,t,e.value||e.url||e.data||"");n.frame=e,n.value=e,function(e){Object.defineProperties(e.frame,{id:{get:function(){return zs.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key}},value:{get:function(){return zs.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data}},privateData:{get:function(){return zs.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data}}})}(n),o.addCue(n)}))})),o.cues&&o.cues.length)){for(var l=o.cues,c=[],u=0;u<l.length;u++)l[u]&&c.push(l[u]);var d=c.reduce((function(e,t){var n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e}),{}),h=Object.keys(d).sort((function(e,t){return Number(e)-Number(t)}));h.forEach((function(e,t){var n=d[e],i=Number(h[t+1])||a;n.forEach((function(e){e.endTime=i}))}))}}},Yl=function(e,t,n){var i,r;if(n&&n.cues)for(i=n.cues.length;i--;)(r=n.cues[i]).startTime>=e&&r.endTime<=t&&n.removeCue(r)},Ql=function(e){return"number"==typeof e&&isFinite(e)},Jl=1/60,Zl=function(e){var t=e.startOfSegment,n=e.duration,i=e.segment,r=e.part,a=e.playlist,s=a.mediaSequence,o=a.id,l=a.segments,c=void 0===l?[]:l,u=e.mediaIndex,d=e.partIndex,h=e.timeline,f=c.length-1,p="mediaIndex/partIndex increment";e.getMediaInfoForTime?p="getMediaInfoForTime ("+e.getMediaInfoForTime+")":e.isSyncRequest&&(p="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(p+=" with independent "+e.independent);var m="number"==typeof d,g=e.segment.uri?"segment":"pre-segment",v=m?co({preloadSegment:i})-1:0;return g+" ["+(s+u)+"/"+(s+f)+"]"+(m?" part ["+d+"/"+v+"]":"")+" segment start/end ["+i.start+" => "+i.end+"]"+(m?" part start/end ["+r.start+" => "+r.end+"]":"")+" startOfSegment ["+t+"] duration ["+n+"] timeline ["+h+"] selected by ["+p+"] playlist ["+o+"]"},ec=function(e){return e+"TimingInfo"},tc=function(e){var t=e.timelineChangeController,n=e.currentTimeline,i=e.segmentTimeline,r=e.loaderType,a=e.audioDisabled;if(n===i)return!1;if("audio"===r){var s=t.lastTimelineChange({type:"main"});return!s||s.to!==i}if("main"===r&&a){var o=t.pendingTimelineChange({type:"audio"});return!o||o.to!==i}return!1},nc=function(e){var t=e.segmentDuration,n=e.maxDuration;return!!t&&Math.round(t)>n+Ys},ic=function(e,t){if("hls"!==t)return null;var n,i,a=(n={audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo},i=0,["video","audio"].forEach((function(e){var t=n[e+"TimingInfo"];if(t){var a,s=t.start,o=t.end;"bigint"==typeof s||"bigint"==typeof o?a=r().BigInt(o)-r().BigInt(s):"number"==typeof s&&"number"==typeof o&&(a=o-s),void 0!==a&&a>i&&(i=a)}})),"bigint"==typeof i&&i<Number.MAX_SAFE_INTEGER&&(i=Number(i)),i);if(!a)return null;var s=e.playlist.targetDuration,o=nc({segmentDuration:a,maxDuration:2*s}),l=nc({segmentDuration:a,maxDuration:s}),c="Segment with index "+e.mediaIndex+" from playlist "+e.playlist.id+" has a duration of "+a+" when the reported duration is "+e.duration+" and the target duration is "+s+". For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1";return o||l?{severity:o?"warn":"info",message:c}:null},rc=function(e){function t(t,n){var i;if(i=e.call(this)||this,!t)throw new TypeError("Initialization settings are required");if("function"!=typeof t.currentTime)throw new TypeError("No currentTime getter specified");if(!t.mediaSource)throw new TypeError("No MediaSource specified");return i.bandwidth=t.bandwidth,i.throughput={rate:0,count:0},i.roundTrip=NaN,i.resetStats_(),i.mediaIndex=null,i.partIndex=null,i.hasPlayed_=t.hasPlayed,i.currentTime_=t.currentTime,i.seekable_=t.seekable,i.seeking_=t.seeking,i.duration_=t.duration,i.mediaSource_=t.mediaSource,i.vhs_=t.vhs,i.loaderType_=t.loaderType,i.currentMediaInfo_=void 0,i.startingMediaInfo_=void 0,i.segmentMetadataTrack_=t.segmentMetadataTrack,i.goalBufferLength_=t.goalBufferLength,i.sourceType_=t.sourceType,i.sourceUpdater_=t.sourceUpdater,i.inbandTextTracks_=t.inbandTextTracks,i.state_="INIT",i.timelineChangeController_=t.timelineChangeController,i.shouldSaveSegmentTimingInfo_=!0,i.parse708captions_=t.parse708captions,i.useDtsForTimestampOffset_=t.useDtsForTimestampOffset,i.captionServices_=t.captionServices,i.experimentalExactManifestTimings=t.experimentalExactManifestTimings,i.checkBufferTimeout_=null,i.error_=void 0,i.currentTimeline_=-1,i.pendingSegment_=null,i.xhrOptions_=null,i.pendingSegments_=[],i.audioDisabled_=!1,i.isPendingTimestampOffset_=!1,i.gopBuffer_=[],i.timeMapping_=0,i.safeAppend_=zs.browser.IE_VERSION>=11,i.appendInitSegment_={audio:!0,video:!0},i.playlistOfLastInitSegment_={audio:null,video:null},i.callQueue_=[],i.loadQueue_=[],i.metadataQueue_={id3:[],caption:[]},i.waitingOnRemove_=!1,i.quotaExceededErrorRetryTimeout_=null,i.activeInitSegmentId_=null,i.initSegments_={},i.cacheEncryptionKeys_=t.cacheEncryptionKeys,i.keyCache_={},i.decrypter_=t.decrypter,i.syncController_=t.syncController,i.syncPoint_={segmentIndex:0,time:0},i.transmuxer_=i.createTransmuxer_(),i.triggerSyncInfoUpdate_=function(){return i.trigger("syncinfoupdate")},i.syncController_.on("syncinfoupdate",i.triggerSyncInfoUpdate_),i.mediaSource_.addEventListener("sourceopen",(function(){i.isEndOfStream_
2()||(i.ended_=!1)})),i.fetchAtBuffer_=!1,i.logger_=Ks("SegmentLoader["+i.loaderType_+"]"),Object.defineProperty(u(i),"state",{get:function(){return this.state_},set:function(e){e!==this.state_&&(this.logger_(this.state_+" -> "+e),this.state_=e,this.trigger("statechange"))}}),i.sourceUpdater_.on("ready",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"main"===i.loaderType_&&i.timelineChangeController_.on("pendingtimelinechange",(function(){i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),"audio"===i.loaderType_&&i.timelineChangeController_.on("timelinechange",(function(){i.hasEnoughInfoToLoad_()&&i.processLoadQueue_(),i.hasEnoughInfoToAppend_()&&i.processCallQueue_()})),i}h(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return Tl({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})},n.resetStats_=function(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0},n.dispose=function(){this.trigger("dispose"),this.state="DISPOSED",this.pause(),this.abort_(),this.transmuxer_&&this.transmuxer_.terminate(),this.resetStats_(),this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.syncController_&&this.triggerSyncInfoUpdate_&&this.syncController_.off("syncinfoupdate",this.triggerSyncInfoUpdate_),this.off()},n.setAudio=function(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())},n.abort=function(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)},n.abort_=function(){this.pendingSegment_&&this.pendingSegment_.abortRequests&&this.pendingSegment_.abortRequests(),this.pendingSegment_=null,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.timelineChangeController_.clearPendingTimelineChange(this.loaderType_),this.waitingOnRemove_=!1,r().clearTimeout(this.quotaExceededErrorRetryTimeout_),this.quotaExceededErrorRetryTimeout_=null},n.checkForAbort_=function(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)},n.error=function(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_},n.endOfStream=function(){this.ended_=!0,this.transmuxer_&&_l(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")},n.buffered_=function(){var e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return zs.createTimeRanges();if("main"===this.loaderType_){var t=e.hasAudio,n=e.hasVideo,i=e.isMuxed;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Go(e),i=this.initSegments_[n];return t&&!i&&e.bytes&&(this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:e.bytes,tracks:e.tracks,timescales:e.timescales}),i||e},n.segmentKey=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Ko(e),i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});var r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r},n.couldBeginLoading_=function(){return this.playlist_&&!this.paused()},n.load=function(){if(this.monitorBuffer_(),this.playlist_)return"INIT"===this.state&&this.couldBeginLoading_()?this.init_():void(!this.couldBeginLoading_()||"READY"!==this.state&&"INIT"!==this.state||(this.state="READY"))},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.playlist=function(e,t){if(void 0===t&&(t={}),e){var n=this.playlist_,i=this.pendingSegment_;this.playlist_=e,this.xhrOptions_=t,"INIT"===this.state&&(e.syncInfo={mediaSequence:e.mediaSequence,time:0},"main"===this.loaderType_&&this.syncController_.setDateTimeMappingForStart(e));var r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_("playlist update ["+r
2+" => "+(e.id||e.uri)+"]"),this.trigger("syncinfoupdate"),"INIT"===this.state&&this.couldBeginLoading_())return this.init_();if(!n||n.uri!==e.uri)return null!==this.mediaIndex&&(e.endList?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");var a=e.mediaSequence-n.mediaSequence;if(this.logger_("live window shift ["+a+"]"),null!==this.mediaIndex)if(this.mediaIndex-=a,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{var s=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!s.parts||!s.parts.length||!s.parts[this.partIndex])){var o=this.mediaIndex;this.logger_("currently processing part (index "+this.partIndex+") no longer exists."),this.resetLoader(),this.mediaIndex=o}}i&&(i.mediaIndex-=a,i.mediaIndex<0?(i.mediaIndex=null,i.partIndex=null):(i.mediaIndex>=0&&(i.segment=e.segments[i.mediaIndex]),i.partIndex>=0&&i.segment.parts&&(i.part=i.segment.parts[i.partIndex]))),this.syncController_.saveExpiredSegmentInfo(n,e)}},n.pause=function(){this.checkBufferTimeout_&&(r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)},n.paused=function(){return null===this.checkBufferTimeout_},n.resetEverything=function(e){this.ended_=!1,this.appendInitSegment_={audio:!0,video:!0},this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))},n.resetLoader=function(){this.fetchAtBuffer_=!1,this.resyncLoader()},n.resyncLoader=function(){this.transmuxer_&&_l(this.transmuxer_),this.mediaIndex=null,this.partIndex=null,this.syncPoint_=null,this.isPendingTimestampOffset_=!1,this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_.id3=[],this.metadataQueue_.caption=[],this.abort(),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})},n.remove=function(e,t,n,i){if(void 0===n&&(n=function(){}),void 0===i&&(i=!1),t===1/0&&(t=this.duration_()),t<=e)this.logger_("skipping remove because end ${end} is <= start ${start}");else if(this.sourceUpdater_&&this.getMediaInfo_()){var r=1,a=function(){0===--r&&n()};for(var s in!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,a)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=function(e,t,n,i){for(var r=Math.ceil((t-i)*It.ONE_SECOND_IN_TS),a=Math.ceil((n-i)*It.ONE_SECOND_IN_TS),s=e.slice(),o=e.length;o--&&!(e[o].pts<=a););if(-1===o)return s;for(var l=o+1;l--&&!(e[l].pts<=r););return l=Math.max(l,0),s.splice(l,o-l+1),s}(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,a)),this.inbandTextTracks_)Yl(e,t,this.inbandTextTracks_[s]);Yl(e,t,this.segmentMetadataTrack_),a()}else this.logger_("skipping remove because no source updater or starting media info")},n.monitorBuffer_=function(){this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r().setTimeout(this.monitorBufferTick_.bind(this),1)},n.monitorBufferTick_=function(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r().setTimeout(this.monitorBufferTick_.bind(this),500)},n.fillBuffer_=function(){if(!this.sourceUpdater_.updating()){var e=this.chooseNextRequest_();e&&("number"==typeof e.timestampOffset&&(this.isPendingTimestampOffset_=!1,this.timelineChangeController_.pendingTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline})),this.loadSegment_(e))}},n.isEndOfStream_=function(e,t,n){if(void 0===e&&(e=this.mediaIndex),void 0===t&&(t=this.playlist_),void 0===n&&(n=this.partIndex),!t||!this.mediaSource_)return!1;var i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,a=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&a},n.chooseNextRequest_=function(){var e=this.buffered_(),t=io(e)||0,n=ro(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),a=this.playlist_.segments;if(!a.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());var s={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(s.isSyncRequest)s.mediaIndex=function(e,t,n){t=t||[];for(var i=[],r=0,a=0;a<t.length;a++){var s=t[a];if(e===s.timeline&&(i.push(a),(r+=s.duration)>n))return a}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,a,t);else if(null!==this.mediaIndex){var o=a[this.mediaIndex],l="number"==typeof this.partIndex?this.partIndex:-1;s.startOfSegment=o.end?o.end:t,o.parts&&o.parts[l+1]?(s.mediaIndex=this.mediaIndex,s.partIndex=l+1):s.mediaIndex=this.mediaIndex+1}else{var c=So.getMediaInfoForTime({experimentalExactManifestTimings:this.experimentalExactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time}),u=c.segmentIndex,d=c.startTime,h=c.partIndex;s.getMediaInfoForTime=this.fetchAtBuffer_?"bufferedEnd "+t:"currentTime "+this.currentTime_(),s.mediaIndex=u,s.startOfSegment=d,s.partIndex=h}var f=a[s.mediaIndex],p=f&&"number"==typeof s.partIndex&&f.parts&&f.parts[s.partIndex];if(!f||"number"==typeof s.partIndex&&!p)return null;if("number"!=typeof s.partIndex&&f.parts&&(s.partIndex=0,p=f.parts[0]),!n&&p&&!p.independent)if(0===s.partIndex){var m=a[s.mediaIndex-1],g=m.parts&&m.parts.length&&m.parts[m.parts.length-1];g&&g.independent&&(s.mediaIndex-=1,s.partIndex=m.parts.length-1,s.independent="previous segment")}else f.parts[s.partIndex-1].independent&&(s.partIndex-=1,s.independent="previous part");var v=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return s.mediaIndex>=a.length-1&&v&&!this.seeking_()?null:this.generateSegmentInfo_(s)},n.generateSegmentInfo_=function(e){var t=e.independent,n=e.playlist,i=e.mediaIndex,r=e.startOfSegment,a=e.isSyncRequest,s=e.partIndex,o=e.forceTimestampOffset,l=e.getMediaInfoForTime,c=n.segments[i],u="number"==typeof s&&c.parts[s],d={requestId:"segment-loader-"+Math.random(),uri:u&&u.resolvedUri||c.resolvedUri,mediaIndex:i,partIndex:u?s:null,isSyncRequest:a,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:c.timeline,duration:u&&u.duration||c.duration,segment:c,part:u,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==o?o:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:c.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),overrideCheck:h});
2var f=io(this.sourceUpdater_.audioBuffered());return"number"==typeof f&&(d.audioAppendStart=f-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=function(e,t,n){if(null==t||!e.length)return[];var i,r=Math.ceil((t-n+3)*It.ONE_SECOND_IN_TS);for(i=0;i<e.length&&!(e[i].pts>r);i++);return e.slice(i)}(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d},n.timestampOffsetForSegment_=function(e){return n=(t=e).segmentTimeline,i=t.currentTimeline,r=t.startOfSegment,a=t.buffered,t.overrideCheck||n!==i?n<i?r:a.length?a.end(a.length-1):r:null;var t,n,i,r,a},n.earlyAbortWhenNeeded_=function(e){if(!this.vhs_.tech_.paused()&&this.xhrOptions_.timeout&&this.playlist_.attributes.BANDWIDTH&&!(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)){var t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=So.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),a=function(e,t,n){return void 0===n&&(n=1),((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(!(r<=a)){var s=function(e){var t=e.master,n=e.currentTime,i=e.bandwidth,r=e.duration,a=e.segmentDuration,s=e.timeUntilRebuffer,o=e.currentTimeline,l=e.syncController,c=t.playlists.filter((function(e){return!So.isIncompatible(e)})),u=c.filter(So.isEnabled);u.length||(u=c.filter((function(e){return!So.isDisabled(e)})));var d=u.filter(So.hasAttribute.bind(null,"BANDWIDTH")).map((function(e){var t=l.getSyncPoint(e,r,o,n)?1:2;return{playlist:e,rebufferingImpact:So.estimateSegmentRequestTime(a,i,e)*t-s}})),h=d.filter((function(e){return e.rebufferingImpact<=0}));return Vl(h,(function(e,t){return $l(t.playlist,e.playlist)})),h.length?h[0]:(Vl(d,(function(e,t){return e.rebufferingImpact-t.rebufferingImpact})),d[0]||null)}({master:this.vhs_.playlists.master,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:a,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(s){var o=r-a-s.rebufferingImpact,l=.5;a<=Ys&&(l=1),!s.playlist||s.playlist.uri===this.playlist_.uri||o<l||(this.bandwidth=s.playlist.attributes.BANDWIDTH*ll.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}}}},n.handleAbort_=function(e){this.logger_("Aborting "+Zl(e)),this.mediaRequestsAborted+=1},n.handleProgress_=function(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")},n.handleTrackInfo_=function(e,t){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||this.checkForIllegalMediaSwitch(t)||(t=t||{},function(e,t){if(!e&&!t||!e&&t||e&&!t)return!1;if(e===t)return!0;var n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(var r=0;r<n.length;r++){var a=n[r];if(a!==i[r])return!1;if(e[a]!==t[a])return!1}return!0}(this.currentMediaInfo_,t)||(this.appendInitSegment_={audio:!0,video:!0},this.startingMediaInfo_=t,this.currentMediaInfo_=t,this.logger_("trackinfo update",t),this.trigger("trackinfo")),this.checkForAbort_(e.requestId)||(this.pendingSegment_.trackInfo=t,this.hasEnoughInfoToAppend_()&&this.processCallQueue_()))},n.handleTimingInfo_=function(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId)){var r=this.pendingSegment_,a=ec(t);r[a]=r[a]||{},r[a][n]=i,this.logger_("timinginfo: "+t+" - "+n+" - "+i),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}},n.handleCaptions_=function(e,t){var n=this;if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(0!==t.length)if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),a={};t.forEach((function(e){a[e.stream]=a[e.stream]||{startTime:1/0,captions:[],endTime:0};var t=a[e.stream];t.startTime=Math.min(t.startTime,e.startTime+i),t.endTime=Math.max(t.endTime,e.endTime+i),t.captions.push(e)})),Object.keys(a).forEach((function(e){var t=a[e],s=t.startTime,o=t.endTime,l=t.captions,c=n.inbandTextTracks_;n.logger_("adding cues from "+s+" -> "+o+" for "+e),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"}),t.trigger({type:"usage",name:"hls-608"});var i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);var r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{var a=n,s=n,o=!1,l=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];l&&(a=l.label,s=l.language,o=l.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:o,label:a,language:s},!1).track}}}(c,n.vhs_.tech_,e),Yl(s,o,c[e]),function(e){var t=e.inbandTextTracks,n=e.captionArray,i=e.timestampOffset;if(n){var a=r().WebKitDataCue||r().VTTCue;
2n.forEach((function(e){var n=e.stream;t[n].addCue(new a(e.startTime+i,e.endTime+i,e.text))}))}}({captionArray:l,inbandTextTracks:c,timestampOffset:i})})),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}else this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));else this.logger_("SegmentLoader received no captions from a caption event")},n.handleId3_=function(e,t,n){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(this.pendingSegment_.hasAppendedData_){var i=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset();!function(e,t,n){e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,e.metadataTrack_.inBandMetadataTrackDispatchType=t)}(this.inbandTextTracks_,n,this.vhs_.tech_),Kl({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:this.duration_()})}else this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n))},n.processMetadataQueue_=function(){this.metadataQueue_.id3.forEach((function(e){return e()})),this.metadataQueue_.caption.forEach((function(e){return e()})),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]},n.processCallQueue_=function(){var e=this.callQueue_;this.callQueue_=[],e.forEach((function(e){return e()}))},n.processLoadQueue_=function(){var e=this.loadQueue_;this.loadQueue_=[],e.forEach((function(e){return e()}))},n.hasEnoughInfoToLoad_=function(){if("audio"!==this.loaderType_)return!0;var e=this.pendingSegment_;return!!e&&(!this.getCurrentMediaInfo_()||!tc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.getCurrentMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),e&&e.trackInfo||this.currentMediaInfo_},n.getMediaInfo_=function(e){return void 0===e&&(e=this.pendingSegment_),this.getCurrentMediaInfo_(e)||this.startingMediaInfo_},n.hasEnoughInfoToAppend_=function(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;var e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed;return!(i&&!e.videoTimingInfo)&&(!(n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo)&&!tc({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))},n.handleData_=function(e,t){if(this.earlyAbortWhenNeeded_(e.stats),!this.checkForAbort_(e.requestId))if(!this.callQueue_.length&&this.hasEnoughInfoToAppend_()){var n=this.pendingSegment_;if(this.setTimeMapping_(n.timeline),this.updateMediaSecondsLoaded_(n.part||n.segment),"closed"!==this.mediaSource_.readyState){if(e.map&&(e.map=this.initSegmentForMap(e.map,!0),n.segment.map=e.map),e.key&&this.segmentKey(e.key,!0),n.isFmp4=e.isFmp4,n.timingInfo=n.timingInfo||{},n.isFmp4)this.trigger("fmp4"),n.timingInfo.start=n[ec(t.type)].start;else{var i,r=this.getCurrentMediaInfo_(),a="main"===this.loaderType_&&r&&r.hasVideo;a&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:a,firstVideoFrameTimeForData:i,videoTimingInfo:n.videoTimingInfo,audioTimingInfo:n.audioTimingInfo})}if(this.updateAppendInitSegmentStatus(n,t.type),this.updateSourceBufferTimestampOffset_(n),n.isSyncRequest){this.updateTimingInfoEnd_(n),this.syncController_.saveSegmentTimingInfo({segmentInfo:n,shouldSaveTimelineMapping:"main"===this.loaderType_});var s=this.chooseNextRequest_();if(s.mediaIndex!==n.mediaIndex||s.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}else this.callQueue_.push(this.handleData_.bind(this,e,t))},n.updateAppendInitSegmentStatus=function(e,t){"main"!==this.loaderType_||"number"!=typeof e.timestampOffset||e.changedTimestampOffset||(this.appendInitSegment_={audio:!0,video:!0}),this.playlistOfLastInitSegment_[t]!==e.playlist&&(this.appendInitSegment_[t]=!0)},n.getInitSegmentAndUpdateState_=function(e){var t=e.type,n=e.initSegment,i=e.map,r=e.playlist;if(i){var a=Go(i);if(this.activeInitSegmentId_===a)return null;n=this.initSegmentForMap(i,!0).bytes,this.activeInitSegmentId_=a}return n&&this.appendInitSegment_[t]?(this.playlistOfLastInitSegment_[t]=r,this.appendInitSegment_[t]=!1,this.activeInitSegmentId_=null,n):null},n.handleQuotaExceededError_=function(e,t){var n=this,i=e.segmentInfo,a=e.type,s=e.bytes,o=this.sourceUpdater_.audio
2Buffered(),l=this.sourceUpdater_.videoBuffered();o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+no(o).join(", ")),l.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+no(l).join(", "));var c=o.length?o.start(0):0,u=o.length?o.end(o.length-1):0,d=l.length?l.start(0):0,h=l.length?l.end(l.length-1):0;if(u-c<=1&&h-d<=1)return this.logger_("On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: "+s.byteLength+", audio buffer: "+no(o).join(", ")+", video buffer: "+no(l).join(", ")+", "),this.error({message:"Quota exceeded error with append of a single segment of content",excludeUntil:1/0}),void this.trigger("error");this.waitingOnRemove_=!0,this.callQueue_.push(this.appendToSourceBuffer_.bind(this,{segmentInfo:i,type:a,bytes:s}));var f=this.currentTime_()-1;this.logger_("On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to "+f),this.remove(0,f,(function(){n.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),n.waitingOnRemove_=!1,n.quotaExceededErrorRetryTimeout_=r().setTimeout((function(){n.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),n.quotaExceededErrorRetryTimeout_=null,n.processCallQueue_()}),1e3)}),!0)},n.handleAppendError_=function(e,t){var n=e.segmentInfo,i=e.type,r=e.bytes;t&&(22!==t.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",t),this.error(i+" append of "+r.length+"b failed for segment #"+n.mediaIndex+" in playlist "+n.playlist.id),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:n,type:i,bytes:r}))},n.appendToSourceBuffer_=function(e){var t,n,i,r=e.segmentInfo,a=e.type,s=e.initSegment,o=e.data,l=e.bytes;if(!l){var c=[o],u=o.byteLength;s&&(c.unshift(s),u+=s.byteLength),i=0,(t={bytes:u,segments:c}).bytes&&(n=new Uint8Array(t.bytes),t.segments.forEach((function(e){n.set(e,i),i+=e.byteLength}))),l=n}this.sourceUpdater_.appendBuffer({segmentInfo:r,type:a,bytes:l},this.handleAppendError_.bind(this,{segmentInfo:r,type:a,bytes:l}))},n.handleSegmentTimingInfo_=function(e,t,n){if(this.pendingSegment_&&t===this.pendingSegment_.requestId){var i=this.pendingSegment_.segment,r=e+"TimingInfo";i[r]||(i[r]={}),i[r].transmuxerPrependedSeconds=n.prependedContentDuration||0,i[r].transmuxedPresentationStart=n.start.presentation,i[r].transmuxedDecodeStart=n.start.decode,i[r].transmuxedPresentationEnd=n.end.presentation,i[r].transmuxedDecodeEnd=n.end.decode,i[r].baseMediaDecodeTime=n.baseMediaDecodeTime}},n.appendData_=function(e,t){var n=t.type,i=t.data;if(i&&i.byteLength&&("audio"!==n||!this.audioDisabled_)){var r=this.getInitSegmentAndUpdateState_({type:n,initSegment:t.initSegment,playlist:e.playlist,map:e.isFmp4?e.segment.map:null});this.appendToSourceBuffer_({segmentInfo:e,type:n,initSegment:r,data:i})}},n.loadSegment_=function(e){var t=this;this.state="WAITING",this.pendingSegment_=e,this.trimBackBuffer_(e),"number"==typeof e.timestampOffset&&this.transmuxer_&&this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.hasEnoughInfoToLoad_()?this.updateTransmuxerAndRequestSegment_(e):this.loadQueue_.push((function(){var n=o({},e,{forceTimestampOffset:!0});o(e,t.generateSegmentInfo_(n)),t.isPendingTimestampOffset_=!1,t.updateTransmuxerAndRequestSegment_(e)}))},n.updateTransmuxerAndRequestSegment_=function(e){var t=this;this.shouldUpdateTransmuxerTimestampOffset_(e.timestampOffset)&&(this.gopBuffer_.length=0,e.gopsToAlignWith=[],this.timeMapping_=0,this.transmuxer_.postMessage({action:"reset"}),this.transmuxer_.postMessage({action:"setTimestampOffset",timestampOffset:e.timestampOffset}));var n=this.createSimplifiedSegmentObj_(e),i=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),r=null!==this.mediaIndex,a=e.timeline!==this.currentTimeline_&&e.timeline>0,s=i||r&&a;this.logger_("Requesting "+Zl(e)),n.map&&!n.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=Nl({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:n,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.b
2ind(this),videoSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"video",e.requestId),audioSegmentTimingInfoFn:this.handleSegmentTimingInfo_.bind(this,"audio",e.requestId),captionsFn:this.handleCaptions_.bind(this),isEndOfTimeline:s,endedTimelineFn:function(){t.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:function(n){var i=n.message,r=n.level,a=n.stream;t.logger_(Zl(e)+" logged from transmuxer stream "+a+" as a "+r+": "+i)}})},n.trimBackBuffer_=function(e){var t=function(e,t,n){var i=t-ll.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));var r=t-n;return Math.min(r,i)}(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)},n.createSimplifiedSegmentObj_=function(e){var t=e.segment,n=e.part,i={resolvedUri:n?n.resolvedUri:t.resolvedUri,byterange:n?n.byterange:t.byterange,requestId:e.requestId,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,part:e.part},r=e.playlist.segments[e.mediaIndex-1];if(r&&r.timeline===t.timeline&&(r.videoTimingInfo?i.baseStartTime=r.videoTimingInfo.transmuxedDecodeEnd:r.audioTimingInfo&&(i.baseStartTime=r.audioTimingInfo.transmuxedDecodeEnd)),t.key){var a=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=a}return t.map&&(i.map=this.initSegmentForMap(t.map)),i},n.saveTransferStats_=function(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)},n.saveBandwidthRelatedStats_=function(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<Jl?this.logger_("Ignoring segment's bandwidth because its duration of "+e+" is less than the min to record 0.016666666666666666"):(this.bandwidth=t.bandwidth,this.roundTrip=t.roundTripTime)},n.handleTimeout_=function(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate")},n.segmentRequestFinished_=function(e,t,n){if(this.callQueue_.length)this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));else if(this.saveTransferStats_(t.stats),this.pendingSegment_&&t.requestId===this.pendingSegment_.requestId){if(e){if(this.pendingSegment_=null,this.state="READY",e.code===xl)return;return this.pause(),e.code===Sl?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}var i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=function(e,t,n){if(!t.length)return e;if(n)return t.slice();for(var i=t[0].pts,r=0;r<e.length&&!(e[r].pts>=i);r++);return e.slice(0,r).concat(t)}(this.gopBuffer_,n.gopInfo,this.safeAppend_)),this.state="APPENDING",this.trigger("appending"),this.waitForAppendsToComplete_(i)}},n.setTimeMapping_=function(e){var t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)},n.updateMediaSecondsLoaded_=function(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration},n.shouldUpdateTransmuxerTimestampOffset_=function(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())},n.trueSegmentStart_=function(e){var t=e.currentStart,n=e.playlist,i=e.mediaIndex,r=e.firstVideoFrameTimeForData,a=e.currentVideoTimestampOffset,s=e.useVideoTimingInfo,o=e.videoTimingInfo,l=e.audioTimingInfo;if(void 0!==t)return t;if(!s)return l.start;var c=n.segments[i-1];return 0!==i&&c&&void 0!==c.start&&c.end===r+a?o.start:r},n.waitForAppendsToComplete_=function(e){var t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",blacklistDuration:1/0}),void this.trigger("error");var n=t.hasAudio,i=t.hasVideo,r=t.isMuxed,a="main"===this.loaderType_&&i,s=!this.audioDisabled_&&n&&!r;if(e.waitingOnAppends=0,!e.hasAppendedData_)return e.timingInfo||"number"!=typeof e.timestampOffset||(this.isPendingTimestampOffset_=!0),e.timingInfo={start:0},e.waitingOnAppends++,this.isPendingTimestampOffset_||(this.updateSourceBufferTimestampOffset_(e),this.processMetadataQueue_()),void this.checkAppendsDone_(e);a&&e.waitingOnAppends++,s&&e.waitingOnAppends++,a&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),s&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))},n.checkAppendsDone_=function(e){this.checkForAbort_(e.requestId)||
2(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())},n.checkForIllegalMediaSwitch=function(e){var t=function(e,t,n){return"main"===e&&t&&n?n.hasAudio||n.hasVideo?t.hasVideo&&!n.hasVideo?"Only audio found in segment when we expected video. We can't switch to audio only from a stream that had video. To get rid of this message, please add codec information to the manifest.":!t.hasVideo&&n.hasVideo?"Video found in segment when we expected only audio. We can't switch to a stream with video from an audio only stream. To get rid of this message, please add codec information to the manifest.":null:"Neither audio nor video found in segment.":null}(this.loaderType_,this.getCurrentMediaInfo_(),e);return!!t&&(this.error({message:t,blacklistDuration:1/0}),this.trigger("error"),!0)},n.updateSourceBufferTimestampOffset_=function(e){if(null!==e.timestampOffset&&"number"==typeof e.timingInfo.start&&!e.changedTimestampOffset&&"main"===this.loaderType_){var t=!1;e.timestampOffset-=this.getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e.segment.videoTimingInfo,audioTimingInfo:e.segment.audioTimingInfo,timingInfo:e.timingInfo}),e.changedTimestampOffset=!0,e.timestampOffset!==this.sourceUpdater_.videoTimestampOffset()&&(this.sourceUpdater_.videoTimestampOffset(e.timestampOffset),t=!0),e.timestampOffset!==this.sourceUpdater_.audioTimestampOffset()&&(this.sourceUpdater_.audioTimestampOffset(e.timestampOffset),t=!0),t&&this.trigger("timestampoffset")}},n.getSegmentStartTimeForTimestampOffsetCalculation_=function(e){var t=e.videoTimingInfo,n=e.audioTimingInfo,i=e.timingInfo;return this.useDtsForTimestampOffset_?t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n&&"number"==typeof n.transmuxedDecodeStart?n.transmuxedDecodeStart:i.start:i.start},n.updateTimingInfoEnd_=function(e){e.timingInfo=e.timingInfo||{};var t=this.getMediaInfo_(),n="main"===this.loaderType_&&t&&t.hasVideo&&e.videoTimingInfo?e.videoTimingInfo:e.audioTimingInfo;n&&(e.timingInfo.end="number"==typeof n.end?n.end:n.start+e.duration)},n.handleAppendsDone_=function(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());var e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});var t=ic(e,this.sourceType_);if(t&&("warn"===t.severity?zs.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",!e.isSyncRequest||(this.trigger("syncinfoupdate"),e.hasAppendedData_)){this.logger_("Appended "+Zl(e)),this.addSegmentMetadataCue_(e),this.fetchAtBuffer_=!0,this.currentTimeline_!==e.timeline&&(this.timelineChangeController_.lastTimelineChange({type:this.loaderType_,from:this.currentTimeline_,to:e.timeline}),"main"!==this.loaderType_||this.audioDisabled_||this.timelineChangeController_.lastTimelineChange({type:"audio",from:this.currentTimeline_,to:e.timeline})),this.currentTimeline_=e.timeline,this.trigger("syncinfoupdate");var n=e.segment,i=e.part,r=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,a=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(r||a)return this.logger_("bad "+(r?"segment":"part")+" "+Zl(e)),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}else this.logger_("Throwing away un-appended sync request "+Zl(e))},n.recordThroughput_=function(e){if(e.duration<Jl)this.logger_("Ignoring segment's throughput because its duration of "+e.duration+" is less than the min to record 0.016666666666666666");else{var t=this.throughput.rate,n=Date.now()-e.endOfAllRequests+1,i=Math.floor(e.byteLength/n*8*1e3);this.throughput.rate+=(i-t)/++this.throughput.count}},n.addSegmentMetadataCue_=function(e){if(this.segmentMetadataTrack_){var t=e.segment,n=t.start,i=t.end;if(Ql(n)&&Ql(i)){Yl(n,i,this.segmentMetadataTrack_);var a=r().WebKitDataCue||r().VTTCue,s={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.ur
2i,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},o=new a(n,i,JSON.stringify(s));o.value=s,this.segmentMetadataTrack_.addCue(o)}}},t}(zs.EventTarget);function ac(){}var sc,oc=function(e){return"string"!=typeof e?e:e.replace(/./,(function(e){return e.toUpperCase()}))},lc=["video","audio"],cc=function(e,t){var n=t[e+"Buffer"];return n&&n.updating||t.queuePending[e]},uc=function e(t,n){if(0!==n.queue.length){var i=0,r=n.queue[i];if("mediaSource"!==r.type){if("mediaSource"!==t&&n.ready()&&"closed"!==n.mediaSource.readyState&&!cc(t,n)){if(r.type!==t){if(i=function(e,t){for(var n=0;n<t.length;n++){var i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null}(t,n.queue),null===i)return;r=n.queue[i]}return n.queue.splice(i,1),n.queuePending[t]=r,r.action(t,n),r.doneFn?void 0:(n.queuePending[t]=null,void e(t,n))}}else n.updating()||"closed"===n.mediaSource.readyState||(n.queue.shift(),r.action(n),r.doneFn&&r.doneFn(),e("audio",n),e("video",n))}},dc=function(e,t){var n=t[e+"Buffer"],i=oc(e);n&&(n.removeEventListener("updateend",t["on"+i+"UpdateEnd_"]),n.removeEventListener("error",t["on"+i+"Error_"]),t.codecs[e]=null,t[e+"Buffer"]=null)},hc=function(e,t){return e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t)},fc=function(e,t,n){return function(i,r){var a=r[i+"Buffer"];if(hc(r.mediaSource,a)){r.logger_("Appending segment "+t.mediaIndex+"'s "+e.length+" bytes to "+i+"Buffer");try{a.appendBuffer(e)}catch(e){r.logger_("Error with code "+e.code+" "+(22===e.code?"(QUOTA_EXCEEDED_ERR) ":"")+"when appending segment "+t.mediaIndex+" to "+i+"Buffer"),r.queuePending[i]=null,n(e)}}}},pc=function(e,t){return function(n,i){var r=i[n+"Buffer"];if(hc(i.mediaSource,r)){i.logger_("Removing "+e+" to "+t+" from "+n+"Buffer");try{r.remove(e,t)}catch(r){i.logger_("Remove "+e+" to "+t+" from "+n+"Buffer failed")}}}},mc=function(e){return function(t,n){var i=n[t+"Buffer"];hc(n.mediaSource,i)&&(n.logger_("Setting "+t+"timestampOffset to "+e),i.timestampOffset=e)}},gc=function(e){return function(t,n){e()}},vc=function(e){return function(t){if("open"===t.mediaSource.readyState){t.logger_("Calling mediaSource endOfStream("+(e||"")+")");try{t.mediaSource.endOfStream(e)}catch(e){zs.log.warn("Failed to call media source endOfStream",e)}}}},yc=function(e){return function(t){t.logger_("Setting mediaSource duration to "+e);try{t.mediaSource.duration=e}catch(e){zs.log.warn("Failed to set media source duration",e)}}},bc=function(){return function(e,t){if("open"===t.mediaSource.readyState){var n=t[e+"Buffer"];if(hc(t.mediaSource,n)){t.logger_("calling abort on "+e+"Buffer");try{n.abort()}catch(t){zs.log.warn("Failed to abort on "+e+"Buffer",t)}}}}},_c=function(e,t){return function(n){var i=oc(e),r=V(t);n.logger_("Adding "+e+"Buffer with codec "+t+" to mediaSource");var a=n.mediaSource.addSourceBuffer(r);a.addEventListener("updateend",n["on"+i+"UpdateEnd_"]),a.addEventListener("error",n["on"+i+"Error_"]),n.codecs[e]=t,n[e+"Buffer"]=a}},Tc=function(e){return function(t){var n=t[e+"Buffer"];if(dc(e,t),hc(t.mediaSource,n)){t.logger_("Removing "+e+"Buffer with codec "+t.codecs[e]+" from mediaSource");try{t.mediaSource.removeSourceBuffer(n)}catch(t){zs.log.warn("Failed to removeSourceBuffer "+e+"Buffer",t)}}}},kc=function(e){return function(t,n){var i=n[t+"Buffer"],r=V(e);hc(n.mediaSource,i)&&n.codecs[t]!==e&&(n.logger_("changing "+t+"Buffer codec from "+n.codecs[t]+" to "+e),i.changeType(r),n.codecs[t]=e)}},wc=function(e){var t=e.type,n=e.sourceUpdater,i=e.action,r=e.doneFn,a=e.name;n.queue.push({type:t,action:i,doneFn:r,name:a}),uc(t,n)},Sc=function(e,t){return function(n){if(t.queuePending[e]){var i=t.queuePending[e].doneFn;t.queuePending[e]=null,i&&i(t[e+"Error_"])}uc(e,t)}},xc=function(e){function t(t){var n;return(n=e.call(this)||this).mediaSource=t,n.sourceopenListener_=function(){return uc("mediaSource",u(n))},n.mediaSource.addEventListener("sourceopen",n.sourceopenListener_),n.logger_=Ks("SourceUpdater"),n.audioTimestampOffset_=0,n.videoTimestampOffset_=0,n.queue=[],n.queuePending={audio:null,video:null}
2,n.delayedAudioAppendQueue_=[],n.videoAppendQueued_=!1,n.codecs={},n.onVideoUpdateEnd_=Sc("video",u(n)),n.onAudioUpdateEnd_=Sc("audio",u(n)),n.onVideoError_=function(e){n.videoError_=e},n.onAudioError_=function(e){n.audioError_=e},n.createdSourceBuffers_=!1,n.initializedEme_=!1,n.triggeredReady_=!1,n}h(t,e);var n=t.prototype;return n.initializedEme=function(){this.initializedEme_=!0,this.triggerReady()},n.hasCreatedSourceBuffers=function(){return this.createdSourceBuffers_},n.hasInitializedAnyEme=function(){return this.initializedEme_},n.ready=function(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()},n.createSourceBuffers=function(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())},n.triggerReady=function(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))},n.addSourceBuffer=function(e,t){wc({type:"mediaSource",sourceUpdater:this,action:_c(e,t),name:"addSourceBuffer"})},n.abort=function(e){wc({type:e,sourceUpdater:this,action:bc(e),name:"abort"})},n.removeSourceBuffer=function(e){this.canRemoveSourceBuffer()?wc({type:"mediaSource",sourceUpdater:this,action:Tc(e),name:"removeSourceBuffer"}):zs.log.error("removeSourceBuffer is not supported!")},n.canRemoveSourceBuffer=function(){return!zs.browser.IE_VERSION&&!zs.browser.IS_FIREFOX&&r().MediaSource&&r().MediaSource.prototype&&"function"==typeof r().MediaSource.prototype.removeSourceBuffer},t.canChangeType=function(){return r().SourceBuffer&&r().SourceBuffer.prototype&&"function"==typeof r().SourceBuffer.prototype.changeType},n.canChangeType=function(){return this.constructor.canChangeType()},n.changeType=function(e,t){this.canChangeType()?wc({type:e,sourceUpdater:this,action:kc(t),name:"changeType"}):zs.log.error("changeType is not supported!")},n.addOrChangeSourceBuffers=function(e){var t=this;if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach((function(n){var i=e[n];if(!t.hasCreatedSourceBuffers())return t.addSourceBuffer(n,i);t.canChangeType()&&t.changeType(n,i)}))},n.appendBuffer=function(e,t){var n=this,i=e.segmentInfo,r=e.type,a=e.bytes;if(this.processedAppend_=!0,"audio"===r&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_("delayed audio append of "+a.length+" until video append");if(wc({type:r,sourceUpdater:this,action:fc(a,i||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===r){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;var s=this.delayedAudioAppendQueue_.slice();this.logger_("queuing delayed audio "+s.length+" appendBuffers"),this.delayedAudioAppendQueue_.length=0,s.forEach((function(e){n.appendBuffer.apply(n,e)}))}},n.audioBuffered=function(){return hc(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:zs.createTimeRange()},n.videoBuffered=function(){return hc(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:zs.createTimeRange()},n.buffered=function(){var e=hc(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=hc(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){var n=null,i=null,r=0,a=[],s=[];if(!(e&&e.length&&t&&t.length))return zs.createTimeRange();for(var o=e.length;o--;)a.push({time:e.start(o),type:"start"}),a.push({time:e.end(o),type:"end"});for(o=t.length;o--;)a.push({time:t.start(o),type:"start"}),a.push({time:t.end(o),type:"end"});for(a.sort((function(e,t){return e.time-t.time})),o=0;o<a.length;o++)"start"===a[o].type?2==++r&&(n=a[o].time):"end"===a[o].type&&1==--r&&(i=a[o].time),null!==n&&null!==i&&(s.push([n,i]),n=null,i=null);return zs.createTimeRanges(s)}(this.audioBuffered(),this.videoBuffered())},n.setDuration=function(e,t){void 0===t&&(t=ac),wc({type:"mediaSource",sourceUpdater:this,action:yc(e),name:"duration",doneFn:t})},n.endOfStream=function(e,t){void 0===e&&(e=null),void 0===t&&(t=ac),"string"!=typeof e&&(e=void 0),wc({type:"mediaSource",sourceUpdater:this,action:vc(e),name:"endOfStream",doneFn:t})},n.removeAudio=function(e,t,n){void 0===n&&(n=ac),this.audioBuffered().length&&0!==this.audioBuffered().end(0)?wc({type:"audio",sourceUpdater:this,action:pc(e,t),doneFn:n,name:"remove"}):n()},n.removeVideo=function(e,t,n){void 0===n&&(n=ac),this.videoBuffered().length&&0!==this.videoBuffered().end(0)?wc({type:"video",sourceUpdater:this,action:pc(e,t),doneFn:n,name:"remove"}):n()},n.updating=function(){return!(!cc("audio",this)&&!cc("video",this))},n.audioTimestampOffset=function(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(wc({type:"audio",sourceUpdater:this,action:mc(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_},n.videoTimestampOffset=function(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(wc({type:"video",sourceUpdater:this,action:mc(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_},n.audioQueueCallback=function(e){this.audioBuffer&&wc({type:"audio",sourceUpdater:this,action:gc(e),name:"callback"})},n.videoQueueCallback=function(e){this.videoBuffer&&wc({type:"video",sourceUpdater:this,action:gc(e),name:"callback"})},n.dispose=function(){var e=this;
2this.trigger("dispose"),lc.forEach((function(t){e.abort(t),e.canRemoveSourceBuffer()?e.removeSourceBuffer(t):e[t+"QueueCallback"]((function(){return dc(t,e)}))})),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()},t}(zs.EventTarget),Cc=function(e){return decodeURIComponent(escape(String.fromCharCode.apply(null,e)))},Ec=new Uint8Array("\n\n".split("").map((function(e){return e.charCodeAt(0)}))),Ac=function(e){function t(t,n){var i;return void 0===n&&(n={}),(i=e.call(this,t,n)||this).mediaSource_=null,i.subtitlesTrack_=null,i.loaderType_="subtitle",i.featuresNativeTextTracks_=t.featuresNativeTextTracks,i.shouldSaveSegmentTimingInfo_=!1,i}h(t,e);var n=t.prototype;return n.createTransmuxer_=function(){return null},n.buffered_=function(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return zs.createTimeRanges();var e=this.subtitlesTrack_.cues,t=e[0].startTime,n=e[e.length-1].startTime;return zs.createTimeRanges([[t,n]])},n.initSegmentForMap=function(e,t){if(void 0===t&&(t=!1),!e)return null;var n=Go(e),i=this.initSegments_[n];if(t&&!i&&e.bytes){var r=Ec.byteLength+e.bytes.byteLength,a=new Uint8Array(r);a.set(e.bytes),a.set(Ec,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:a}}return i||e},n.couldBeginLoading_=function(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()},n.init_=function(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()},n.track=function(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_},n.remove=function(e,t){Yl(e,t,this.subtitlesTrack_)},n.fillBuffer_=function(){var e=this,t=this.chooseNextRequest_();if(t){if(null===this.syncController_.timestampOffsetForTimeline(t.timeline)){return this.syncController_.one("timestampoffset",(function(){e.state="READY",e.paused()||e.monitorBuffer_()})),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(t)}},n.timestampOffsetForSegment_=function(){return null},n.chooseNextRequest_=function(){return this.skipEmptySegments_(e.prototype.chooseNextRequest_.call(this))},n.skipEmptySegments_=function(e){for(;e&&e.segment.empty;){if(e.mediaIndex+1>=e.playlist.segments.length){e=null;break}e=this.generateSegmentInfo_({playlist:e.playlist,mediaIndex:e.mediaIndex+1,startOfSegment:e.startOfSegment+e.duration,isSyncRequest:e.isSyncRequest})}return e},n.stopForError=function(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")},n.segmentRequestFinished_=function(e,t,n){var i=this;if(this.subtitlesTrack_){if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===Sl&&this.handleTimeout_(),e.code===xl?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);var a=this.pendingSegment_;this.saveBandwidthRelatedStats_(a.duration,t.stats),this.state="APPENDING",this.trigger("appending");var s=a.segment;if(s.map&&(s.map.bytes=t.map.bytes),a.bytes=t.bytes,"function"!=typeof r().WebVTT&&this.subtitlesTrack_&&this.subtitlesTrack_.tech_){var o,l=function(){i.subtitlesTrack_.tech_.off("vttjsloaded",o),i.stopForError({message:"Error loading vtt.js"})};return o=function(){i.subtitlesTrack_.tech_.off("vttjserror",l),i.segmentRequestFinished_(e,t,n)},this.state="WAITING_ON_VTTJS",this.subtitlesTrack_.tech_.one("vttjsloaded",o),void this.subtitlesTrack_.tech_.one("vttjserror",l)}s.requested=!0;try{this.parseVTTCues_(a)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(a,this.syncController_.timelines[a.timeline],this.playlist_),a.cues.length?a.timingInfo={start:a.cues[0].startTime,end:a.cues[a.cues.length-1].endTime}:a.timingInfo={start:a.startOfSegment,end:a.startOfSegment+a.duration},a.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");a.byteLength=a.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,a.cues.forEac
2h((function(e){i.subtitlesTrack_.addCue(i.featuresNativeTextTracks_?new(r().VTTCue)(e.startTime,e.endTime,e.text):e)})),function(e){var t=e.cues;if(t)for(var n=0;n<t.length;n++){for(var i=[],r=0,a=0;a<t.length;a++)t[n].startTime===t[a].startTime&&t[n].endTime===t[a].endTime&&t[n].text===t[a].text&&++r>1&&i.push(t[a]);i.length&&i.forEach((function(t){return e.removeCue(t)}))}}(this.subtitlesTrack_),this.handleAppendsDone_()}else this.state="READY"},n.handleData_=function(){},n.updateTimingInfoEnd_=function(){},n.parseVTTCues_=function(e){var t,n=!1;"function"==typeof r().TextDecoder?t=new(r().TextDecoder)("utf8"):(t=r().WebVTT.StringDecoder(),n=!0);var i=new(r().WebVTT.Parser)(r(),r().vttjs,t);if(e.cues=[],e.timestampmap={MPEGTS:0,LOCAL:0},i.oncue=e.cues.push.bind(e.cues),i.ontimestampmap=function(t){e.timestampmap=t},i.onparsingerror=function(e){zs.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){var a=e.segment.map.bytes;n&&(a=Cc(a)),i.parse(a)}var s=e.bytes;n&&(s=Cc(s)),i.parse(s),i.flush()},n.updateTimeMapping_=function(e,t,n){var i=e.segment;if(t)if(e.cues.length){var r=e.timestampmap,a=r.MPEGTS/It.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;if(e.cues.forEach((function(e){e.startTime+=a,e.endTime+=a})),!n.syncInfo){var s=e.cues[0].startTime,o=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(s,o-i.duration)}}}else i.empty=!0},t}(rc),Lc=function(e,t){for(var n=e.cues,i=0;i<n.length;i++){var r=n[i];if(t>=r.adStartTime&&t<=r.adEndTime)return r}return null},Ic=[{name:"VOD",run:function(e,t,n,i,r){if(n!==1/0){return{time:0,segmentIndex:0,partIndex:null}}return null}},{name:"ProgramDateTime",run:function(e,t,n,i,r){if(!Object.keys(e.timelineToDatetimeMappings).length)return null;var a=null,s=null,o=oo(t);r=r||0;for(var l=0;l<o.length;l++){var c=o[t.endList||0===r?l:o.length-(l+1)],u=c.segment,d=e.timelineToDatetimeMappings[u.timeline];if(d&&u.dateTimeObject){var h=u.dateTimeObject.getTime()/1e3+d;if(u.parts&&"number"==typeof c.partIndex)for(var f=0;f<c.partIndex;f++)h+=u.parts[f].duration;var p=Math.abs(r-h);if(null!==s&&(0===p||s<p))break;s=p,a={time:h,segmentIndex:c.segmentIndex,partIndex:c.partIndex}}}return a}},{name:"Segment",run:function(e,t,n,i,r){var a=null,s=null;r=r||0;for(var o=oo(t),l=0;l<o.length;l++){var c=o[t.endList||0===r?l:o.length-(l+1)],u=c.segment,d=c.part&&c.part.start||u&&u.start;if(u.timeline===i&&void 0!==d){var h=Math.abs(r-d);if(null!==s&&s<h)break;(!a||null===s||s>=h)&&(s=h,a={time:d,segmentIndex:c.segmentIndex,partIndex:c.partIndex})}}return a}},{name:"Discontinuity",run:function(e,t,n,i,r){var a=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length)for(var s=null,o=0;o<t.discontinuityStarts.length;o++){var l=t.discontinuityStarts[o],c=t.discontinuitySequence+o+1,u=e.discontinuities[c];if(u){var d=Math.abs(r-u.time);if(null!==s&&s<d)break;(!a||null===s||s>=d)&&(s=d,a={time:u.time,segmentIndex:l,partIndex:null})}}return a}},{name:"Playlist",run:function(e,t,n,i,r){return t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}}],Pc=function(e){function t(t){var n;return(n=e.call(this)||this).timelines=[],n.discontinuities=[],n.timelineToDatetimeMappings={},n.logger_=Ks("SyncController"),n}h(t,e);var n=t.prototype;return n.getSyncPoint=function(e,t,n,i){var r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null},n.getExpiredTime=function(e,t){if(!e||!e.segments)return null;var n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;var i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+po({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))},n.runStrategies_=function(e,t,n,i){for(var r=[],a=0;a<Ic.length;a++){var s=Ic[a],o=s.run(this,e,t,n,i);o&&(o.strategy=s.name,r.push({strategy:s.name,syncPoint:o}))}return r},n.selectSyncPoint_=function(e,t){for(var n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy,a=1;a<e.length;a++){var s=Math.abs(e[a].syncPoint[t.key]-t.value);s<i&&(i=s,n=e[a].syncPoint,r=e[a].strategy)}return this.logger_("syncPoint for ["+t.key+": "+t.value+"] chosen with strategy ["+r+"]: [time:"+n.time+", segmentIndex:"+n.segmentIndex+("number"==typeof n.partIndex?",partIndex:"+n.partIndex:"")+"]"),n},n.saveExpiredSegmentInfo=function(e,t){var n=t.mediaSequence-e.mediaSequence;if(n>86400)zs.log.warn("Not saving expired segment info. Media sequence gap "+n+" is too large.");else for(var i=n-1;i>=0;i--){var r=e.segments[i];if(r&&void 0!==r.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:r.start}
2,this.logger_("playlist refresh sync: [time:"+t.syncInfo.time+", mediaSequence: "+t.syncInfo.mediaSequence+"]"),this.trigger("syncinfoupdate");break}}},n.setDateTimeMappingForStart=function(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){var t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}},n.saveSegmentTimingInfo=function(e){var t=e.segmentInfo,n=e.shouldSaveTimelineMapping,i=this.calculateSegmentTimeMapping_(t,t.timingInfo,n),r=t.segment;i&&(this.saveDiscontinuitySyncInfo_(t),t.playlist.syncInfo||(t.playlist.syncInfo={mediaSequence:t.playlist.mediaSequence+t.mediaIndex,time:r.start}));var a=r.dateTimeObject;r.discontinuity&&n&&a&&(this.timelineToDatetimeMappings[r.timeline]=-a.getTime()/1e3)},n.timestampOffsetForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].time},n.mappingForTimeline=function(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping},n.calculateSegmentTimeMapping_=function(e,t,n){var i,r,a=e.segment,s=e.part,o=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)o={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=o,this.trigger("timestampoffset"),this.logger_("time mapping for timeline "+e.timeline+": [time: "+o.time+"] [mapping: "+o.mapping+"]")),i=e.startOfSegment,r=t.end+o.mapping;else{if(!o)return!1;i=t.start+o.mapping,r=t.end+o.mapping}return s&&(s.start=i,s.end=r),(!a.start||i<a.start)&&(a.start=i),a.end=r,!0},n.saveDiscontinuitySyncInfo_=function(e){var t=e.playlist,n=e.segment;if(n.discontinuity)this.discontinuities[n.timeline]={time:n.start,accuracy:0};else if(t.discontinuityStarts&&t.discontinuityStarts.length)for(var i=0;i<t.discontinuityStarts.length;i++){var r=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,s=r-e.mediaIndex,o=Math.abs(s);if(!this.discontinuities[a]||this.discontinuities[a].accuracy>o){var l=void 0;l=s<0?n.start-po({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+po({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[a]={time:l,accuracy:o}}}},n.dispose=function(){this.trigger("dispose"),this.off()},t}(zs.EventTarget),Oc=function(e){function t(){var t;return(t=e.call(this)||this).pendingTimelineChanges_={},t.lastTimelineChanges_={},t}h(t,e);var n=t.prototype;return n.clearPendingTimelineChange=function(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")},n.pendingTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.pendingTimelineChanges_[t]={type:t,from:n,to:i},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[t]},n.lastTimelineChange=function(e){var t=e.type,n=e.from,i=e.to;return"number"==typeof n&&"number"==typeof i&&(this.lastTimelineChanges_[t]={type:t,from:n,to:i},delete this.pendingTimelineChanges_[t],this.trigger("timelinechange")),this.lastTimelineChanges_[t]},n.dispose=function(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()},t}(zs.EventTarget),Dc=dl(hl((function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function t(e,t,n){return e(n={path:t,exports:{},require:function(e,t){return function(){throw new Error("Dynamic requires are not currently supported by @rollup/plugin-commonjs")}(null==t&&n.path)}},n.exports),n.exports}var i=t((function(e){function t(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}e.exports=function(e,n,i){return n&&t(e.prototype,n),i&&t(e,i),e},e.exports.default=e.exports,e.exports.__esModule=!0})),r=t((function(e){function t(n,i){return e.exports=t=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},e.exports.default=e.exports,e.exports.__esModule=!0,t(n,i)}e.exports=t,e.exports.default=e.exports,e.exports.__esModule=!0})),a=t((function(e){e.exports=function(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,r(e,t)},e.exports.default=e.exports,e.exports.__esModule=!0})),s=function(){function e(){this.listeners={}}var t=e.prototype;return t.on=function(e,t){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push(t)},t.off=function(e,t){if(!this.listeners[e])return!1;var n=this.listeners[e].indexOf(t);return this.listeners[e]=this.listeners[e].slice(0),this.listeners[e].splice(n,1),n>-1},t.trigger=function(e){var t=this.listeners[e];if(t)if(2===arguments.length)for(var n=t.length,i=0;i<n;++i)t[i].call(this,arguments[1]);
2else for(var r=Array.prototype.slice.call(arguments,1),a=t.length,s=0;s<a;++s)t[s].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",(function(t){e.push(t)}))},e}();var o,l=null,c=function(){function e(e){var t,n,i;l||(l=function(){var e,t,n,i,r,a,s,o,l=[[[],[],[],[],[]],[[],[],[],[],[]]],c=l[0],u=l[1],d=c[4],h=u[4],f=[],p=[];for(e=0;e<256;e++)p[(f[e]=e<<1^283*(e>>7))^e]=e;for(t=n=0;!d[t];t^=i||1,n=p[n]||1)for(a=(a=n^n<<1^n<<2^n<<3^n<<4)>>8^255&a^99,d[t]=a,h[a]=t,o=16843009*f[r=f[i=f[t]]]^65537*r^257*i^16843008*t,s=257*f[a]^16843008*a,e=0;e<4;e++)c[e][t]=s=s<<24^s>>>8,u[e][a]=o=o<<24^o>>>8;for(e=0;e<5;e++)c[e]=c[e].slice(0),u[e]=u[e].slice(0);return l}()),this._tables=[[l[0][0].slice(),l[0][1].slice(),l[0][2].slice(),l[0][3].slice(),l[0][4].slice()],[l[1][0].slice(),l[1][1].slice(),l[1][2].slice(),l[1][3].slice(),l[1][4].slice()]];var r=this._tables[0][4],a=this._tables[1],s=e.length,o=1;if(4!==s&&6!==s&&8!==s)throw new Error("Invalid aes key size");var c=e.slice(0),u=[];for(this._key=[c,u],t=s;t<4*s+28;t++)i=c[t-1],(t%s==0||8===s&&t%s==4)&&(i=r[i>>>24]<<24^r[i>>16&255]<<16^r[i>>8&255]<<8^r[255&i],t%s==0&&(i=i<<8^i>>>24^o<<24,o=o<<1^283*(o>>7))),c[t]=c[t-s]^i;for(n=0;t;n++,t--)i=c[3&n?t:t-4],u[n]=t<=4||n<4?i:a[0][r[i>>>24]]^a[1][r[i>>16&255]]^a[2][r[i>>8&255]]^a[3][r[255&i]]}return e.prototype.decrypt=function(e,t,n,i,r,a){var s,o,l,c,u=this._key[1],d=e^u[0],h=i^u[1],f=n^u[2],p=t^u[3],m=u.length/4-2,g=4,v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],k=v[4];for(c=0;c<m;c++)s=y[d>>>24]^b[h>>16&255]^_[f>>8&255]^T[255&p]^u[g],o=y[h>>>24]^b[f>>16&255]^_[p>>8&255]^T[255&d]^u[g+1],l=y[f>>>24]^b[p>>16&255]^_[d>>8&255]^T[255&h]^u[g+2],p=y[p>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&f]^u[g+3],g+=4,d=s,h=o,f=l;for(c=0;c<4;c++)r[(3&-c)+a]=k[d>>>24]<<24^k[h>>16&255]<<16^k[f>>8&255]<<8^k[255&p]^u[g++],s=d,d=h,h=f,f=p,p=s},e}(),u=function(e){function t(){var t;return(t=e.call(this,s)||this).jobs=[],t.delay=1,t.timeout_=null,t}a(t,e);var n=t.prototype;return n.processJob_=function(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null},n.push=function(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))},t}(s),d=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24},h=function(){function e(t,n,i,r){var a=e.STEP,s=new Int32Array(t.buffer),o=new Uint8Array(t.byteLength),l=0;for(this.asyncStream_=new u,this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,o)),l=a;l<s.length;l+=a)i=new Uint32Array([d(s[l-4]),d(s[l-3]),d(s[l-2]),d(s[l-1])]),this.asyncStream_.push(this.decryptChunk_(s.subarray(l,l+a),n,i,o));this.asyncStream_.push((function(){var e;r(null,(e=o).subarray(0,e.byteLength-e[e.byteLength-1]))}))}return e.prototype.decryptChunk_=function(e,t,n,i){return function(){var r=function(e,t,n){var i,r,a,s,o,l,u,h,f,p=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),m=new c(Array.prototype.slice.call(t)),g=new Uint8Array(e.byteLength),v=new Int32Array(g.buffer);for(i=n[0],r=n[1],a=n[2],s=n[3],f=0;f<p.length;f+=4)o=d(p[f]),l=d(p[f+1]),u=d(p[f+2]),h=d(p[f+3]),m.decrypt(o,l,u,h,v,f),v[f]=d(v[f]^i),v[f+1]=d(v[f+1]^r),v[f+2]=d(v[f+2]^a),v[f+3]=d(v[f+3]^s),i=o,r=l,a=u,s=h;return g}(e,t,n);i.set(r,e.byteOffset)}},i(e,null,[{key:"STEP",get:function(){return 32e3}}]),e}();o="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{};var f=o.BigInt||Number;f("0x1"),f("0x100"),f("0x10000"),f("0x1000000"),f("0x100000000"),f("0x10000000000"),f("0x1000000000000"),f("0x100000000000000"),f("0x10000000000000000");var p=function(e){var t={};return Object.keys(e).forEach((function(n){var i,r=e[n];i=r,("function"===ArrayBuffer.isView?ArrayBuffer.isView(i):i&&i.buffer instanceof ArrayBuffer)?t[n]={bytes:r.buffer,byteOffset:r.byteOffset,byteLength:r.byteLength}:t[n]=r})),t};self.onmessage=function(e){var t=e.data,n=new Uint8Array(t.encrypted.bytes,t.encrypted.byteOffset,t.encrypted.byteLength),i=new Uint32Array(t.key.bytes,t.key.byteOffset,t.key.byteLength/4),r=new Uint32Array(t.iv.bytes,t.iv.byteOffset,t.iv.byteLength/4);new h(n,i,r,(function(e,n){self.postMessage(p({source:t.source,decrypted:n}),[n.buffer])}))}}))),Rc=ul(Dc),Mc=function(e){var t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},Nc=function(e,t){e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},qc=function(e,t){t.activePlaylistLoader=e,e.load()},Uc={AUDIO:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e],r=t.blacklistCurrentPlaylist;Nc(n,i);var a=i.activeTrack(),s=i.activeGroup(),o=(s.filter((function(e){return e.default}))[0]||s[0]).id,l=i.tracks[o];if(a!==l){for(var c in zs.log.warn("Problem encountered loading the alternate audio track.Switching back to default."),i.tracks)i.tracks[c].enabled=i.tracks[c]===l;i.onTrackChanged()}else r({message:"Problem encountered loading the default audio track."})}},SUBTITLES:function(e,t){return function(){var n=t.segmentLoaders[e],i=t.mediaTypes[e];zs.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track."),Nc(n,i);var r=i.activeTrack();r&&(r.mode="disabled"),i.onTrackChanged()}}},jc={AUDIO:function(e,t,n){if(t){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",Uc[e](e,n))}},SUBTITLES:function(e,t,n){var i=n.tech,r=n.requestOptions,a=n.segmentLoaders[e],s=n.mediaTypes[e];t.on("loadedmetadata",(function(){var e=t.media();a.playlist(e,r),a.track(s.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&a.load()})),t.on("loadedplaylist",(function(){a.playlist(t.media(),r),i.paused()||a.load()})),t.on("error",Uc[e](e,n))}},Bc={AUDIO:function(e,t){var n=t.vhs,i=t.sourceType,r=t.segmentLoaders[e],a=t.requestOptions,s=t.master.mediaGroups,o=t.mediaTypes[e],l=o.groups,c=o.tracks,u=o.logger_,d=t.masterPlaylistLoader,h=wo(d.master);for(var f in s[e]&&0!==Object.keys(s[e]).length||(s[e]={main:{default:{default:!0}}},h&&(s[e].main.default.playlists=d.master.playlists)),s[e])for(var p in l[f]||(l[f]=[]),s[e][f]){var m=s[e][f][p],g=void 0;if(h?(u("AUDIO group '"+f+"' label '"+p+"' is a master playlist"),m.isMasterPlaylist=!0,g=null):g="vhs-json"===i&&m.playlists?new Uo(m.playlists[0],n,a):m.resolvedUri?new Uo(m.resolvedUri,n,a):m.playlists&&"dash"===i?new ol(m.playlists[0],n,a,d):null,m=zs.mergeOptions({id:p,playlistLoader:g},m),jc[e](e,m.playlistLoader,t),l[f].push(m),void 0===c[p]){var v=new zs.AudioTrack({id:p,kind:Mc(m),enabled:!1,language:m.language,default:m.default,label:p});c[p]=v}}r.on("error",Uc[e](e,t))},SUBTITLES:function(e,t){var n=t.tech,i=t.vhs,r=t.sourceType,a=t.segmentLoaders[e],s=t.requestOptions,o=t.master.mediaGroups,l=t.mediaTypes[e],c=l.groups,u=l.tracks,d=t.masterPlaylistLoader;for(var h in o[e])for(var f in c[h]||(c[h]=[]),o[e][h])if(!o[e][h][f].forced){var p=o[e][h][f],m=void 0;
2if("hls"===r)m=new Uo(p.resolvedUri,i,s);else if("dash"===r){if(!p.playlists.filter((function(e){return e.excludeUntil!==1/0})).length)return;m=new ol(p.playlists[0],i,s,d)}else"vhs-json"===r&&(m=new Uo(p.playlists?p.playlists[0]:p.resolvedUri,i,s));if(p=zs.mergeOptions({id:f,playlistLoader:m},p),jc[e](e,p.playlistLoader,t),c[h].push(p),void 0===u[f]){var g=n.addRemoteTextTrack({id:f,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:f},!1).track;u[f]=g}}a.on("error",Uc[e](e,t))},"CLOSED-CAPTIONS":function(e,t){var n=t.tech,i=t.master.mediaGroups,r=t.mediaTypes[e],a=r.groups,s=r.tracks;for(var o in i[e])for(var l in a[o]||(a[o]=[]),i[e][o]){var c=i[e][o][l];if(/^(?:CC|SERVICE)/.test(c.instreamId)){var u=n.options_.vhs&&n.options_.vhs.captionServices||{},d={label:l,language:c.language,instreamId:c.instreamId,default:c.default&&c.autoselect};if(u[d.instreamId]&&(d=zs.mergeOptions(d,u[d.instreamId])),void 0===d.default&&delete d.default,a[o].push(zs.mergeOptions({id:l},c)),void 0===s[l]){var h=n.addRemoteTextTrack({id:d.instreamId,
2kind:"captions",default:d.default,language:d.language,label:d.label},!1).track;s[l]=h}}}}},Fc=function e(t,n){for(var i=0;i<t.length;i++){if(To(n,t[i]))return!0;if(t[i].playlists&&e(t[i].playlists,n))return!0}return!1},Hc={AUDIO:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if(n[i].enabled)return n[i];return null}},SUBTITLES:function(e,t){return function(){var n=t.mediaTypes[e].tracks;for(var i in n)if("showing"===n[i].mode||"hidden"===n[i].mode)return n[i];return null}}},Wc=function(e){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){Bc[t](t,e)}));var t=e.mediaTypes,n=e.masterPlaylistLoader,i=e.tech,r=e.vhs,a=e.segmentLoaders,s=a.AUDIO,o=a.main;["AUDIO","SUBTITLES"].forEach((function(n){t[n].activeGroup=function(e,t){return function(n){var i=t.masterPlaylistLoader,r=t.mediaTypes[e].groups,a=i.media();if(!a)return null;var s=null;a.attributes[e]&&(s=r[a.attributes[e]]);var o=Object.keys(r);if(!s)if("AUDIO"===e&&o.length>1&&wo(t.master))for(var l=0;l<o.length;l++){var c=r[o[l]];if(Fc(c,a)){s=c;break}}else r.main?s=r.main:1===o.length&&(s=r[o[0]]);return void 0===n?s:null!==n&&s&&s.filter((function(e){return e.id===n.id}))[0]||null}}(n,e),t[n].activeTrack=Hc[n](n,e),t[n].onGroupChanged=function(e,t){return function(){var n=t.segmentLoaders,i=n[e],r=n.main,a=t.mediaTypes[e],s=a.activeTrack(),o=a.getActiveGroup(),l=a.activePlaylistLoader,c=a.lastGroup_;o&&c&&o.id===c.id||(a.lastGroup_=o,a.lastTrack_=s,Nc(i,a),o&&!o.isMasterPlaylist&&(o.playlistLoader?(i.resyncLoader(),qc(o.playlistLoader,a)):l&&r.resetEverything()))}}(n,e),t[n].onGroupChanging=function(e,t){return function(){var n=t.segmentLoaders[e];t.mediaTypes[e].lastGroup_=null,n.abort(),n.pause()}}(n,e),t[n].onTrackChanged=function(e,t){return function(){var n=t.masterPlaylistLoader,i=t.segmentLoaders,r=i[e],a=i.main,s=t.mediaTypes[e],o=s.activeTrack(),l=s.getActiveGroup(),c=s.activePlaylistLoader,u=s.lastTrack_;if((!u||!o||u.id!==o.id)&&(s.lastGroup_=l,s.lastTrack_=o,Nc(r,s),l)){if(l.isMasterPlaylist){if(!o||!u||o.id===u.id)return;var d=t.vhs.masterPlaylistController_,h=d.selectPlaylist();if(d.media()===h)return;return s.logger_("track change. Switching master audio from "+u.id+" to "+o.id),n.pause(),a.resetEverything(),void d.fastQualityChange_(h)}if("AUDIO"===e){if(!l.playlistLoader)return a.setAudio(!0),void a.resetEverything();r.setAudio(!0),a.setAudio(!1)}c!==l.playlistLoader?(r.track&&r.track(o),r.resetEverything(),qc(l.playlistLoader,s)):qc(l.playlistLoader,s)}}}(n,e),t[n].getActiveGroup=function(e,t){var n=t.mediaTypes;return function(){var t=n[e].activeTrack();return t?n[e].activeGroup(t):null}}(n,e)}));var l=t.AUDIO.activeGroup();if(l){var c=(l.filter((function(e){return e.default}))[0]||l[0]).id;t.AUDIO.tracks[c].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanged()}))})),n.on("mediachanging",(function(){["AUDIO","SUBTITLES"].forEach((function(e){return t[e].onGroupChanging()}))}));var u=function(){t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"}),i.trigger({type:"usage",name:"hls-audio-change"})};for(var d in i.audioTracks().addEventListener("change",u),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",(function(){i.audioTracks().removeEventListener("change",u),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)})),i.clearTracks("audio"),t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[d])},zc=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],Vc=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]},$c=function(e){function t(t){var n;n=e.call(this)||this;var i=t.src,a=t.handleManifestRedirects,s=t.withCredentials,o=t.tech,l=t.bandwidth,c=t.externVhs,d=t.useCueTags,h=t.blacklistDuration,f=t.enableLowInitialPlaylist,p=t.sourceType,m=t.cacheEncryptionKeys,g=t.experimentalBufferBasedABR,v=t.experimentalLeastPixelDiffSelector,y=t.captionServices;if(!i)throw new Error("A non-empty playlist URL or JSON manifest string is required");var b=t.maxPlaylistRetries;null==b&&(b=1/0),sc=c,n.experimentalBufferBasedABR=Boolean(g),n.experimentalLeastPixelDiffSelector=Boolean(v),n.withCredentials=s,n.te
2ch_=o,n.vhs_=o.vhs,n.sourceType_=p,n.useCueTags_=d,n.blacklistDuration=h,n.maxPlaylistRetries=b,n.enableLowInitialPlaylist=f,n.useCueTags_&&(n.cueTagsTrack_=n.tech_.addTextTrack("metadata","ad-cues"),n.cueTagsTrack_.inBandMetadataTrackDispatchType=""),n.requestOptions_={withCredentials:s,handleManifestRedirects:a,maxPlaylistRetries:b,timeout:null},n.on("error",n.pauseLoading),n.mediaTypes_=function(){var e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach((function(t){e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ac,activeTrack:ac,getActiveGroup:ac,onGroupChanged:ac,onTrackChanged:ac,lastTrack_:null,logger_:Ks("MediaGroups["+t+"]")}})),e}(),n.mediaSource=new(r().MediaSource),n.handleDurationChange_=n.handleDurationChange_.bind(u(n)),n.handleSourceOpen_=n.handleSourceOpen_.bind(u(n)),n.handleSourceEnded_=n.handleSourceEnded_.bind(u(n)),n.mediaSource.addEventListener("durationchange",n.handleDurationChange_),n.mediaSource.addEventListener("sourceopen",n.handleSourceOpen_),n.mediaSource.addEventListener("sourceended",n.handleSourceEnded_),n.seekable_=zs.createTimeRanges(),n.hasPlayed_=!1,n.syncController_=new Pc(t),n.segmentMetadataTrack_=o.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,n.decrypter_=new Rc,n.sourceUpdater_=new xc(n.mediaSource),n.inbandTextTracks_={},n.timelineChangeController_=new Oc;var _={vhs:n.vhs_,parse708captions:t.parse708captions,useDtsForTimestampOffset:t.useDtsForTimestampOffset,captionServices:y,mediaSource:n.mediaSource,currentTime:n.tech_.currentTime.bind(n.tech_),seekable:function(){return n.seekable()},seeking:function(){return n.tech_.seeking()},duration:function(){return n.duration()},hasPlayed:function(){return n.hasPlayed_},goalBufferLength:function(){return n.goalBufferLength()},bandwidth:l,syncController:n.syncController_,decrypter:n.decrypter_,sourceType:n.sourceType_,inbandTextTracks:n.inbandTextTracks_,cacheEncryptionKeys:m,sourceUpdater:n.sourceUpdater_,timelineChangeController:n.timelineChangeController_,experimentalExactManifestTimings:t.experimentalExactManifestTimings};n.masterPlaylistLoader_="dash"===n.sourceType_?new ol(i,n.vhs_,n.requestOptions_):new Uo(i,n.vhs_,n.requestOptions_),n.setupMasterPlaylistLoaderListeners_(),n.mainSegmentLoader_=new rc(zs.mergeOptions(_,{segmentMetadataTrack:n.segmentMetadataTrack_,loaderType:"main"}),t),n.audioSegmentLoader_=new rc(zs.mergeOptions(_,{loaderType:"audio"}),t),n.subtitleSegmentLoader_=new Ac(zs.mergeOptions(_,{loaderType:"vtt",featuresNativeTextTracks:n.tech_.featuresNativeTextTracks}),t),n.setupSegmentLoaderListeners_(),n.experimentalBufferBasedABR&&(n.masterPlaylistLoader_.one("loadedplaylist",(function(){return n.startABRTimer_()})),n.tech_.on("pause",(function(){return n.stopABRTimer_()})),n.tech_.on("play",(function(){return n.startABRTimer_()}))),zc.forEach((function(e){n[e+"_"]=Vc.bind(u(n),e)})),n.logger_=Ks("MPC"),n.triggeredFmp4Usage=!1,"none"===n.tech_.preload()?(n.loadOnPlay_=function(){n.loadOnPlay_=null,n.masterPlaylistLoader_.load()},n.tech_.one("play",n.loadOnPlay_)):n.masterPlaylistLoader_.load(),n.timeToLoadedData__=-1,n.mainAppendsToLoadedData__=-1,n.audioAppendsToLoadedData__=-1;var T="none"===n.tech_.preload()?"play":"loadstart";return n.tech_.one(T,(function(){var e=Date.now();n.tech_.one("loadeddata",(function(){n.timeToLoadedData__=Date.now()-e,n.mainAppendsToLoadedData__=n.mainSegmentLoader_.mediaAppends,n.audioAppendsToLoadedData__=n.audioSegmentLoader_.mediaAppends}))})),n}h(t,e);var n=t.prototype;return n.mainAppendsToLoadedData_=function(){return this.mainAppendsToLoadedData__},n.audioAppendsToLoadedData_=function(){return this.audioAppendsToLoadedData__},n.appendsToLoadedData_=function(){var e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t},n.timeToLoadedData_=function(){return this.timeToLoadedData__},n.checkABR_=function(){var e=this.selectPlaylist();e&&this.shouldSwitchToMedia_(e)&&this.switchMedia_(e,"abr")},n.switchMedia_=function(e,t,n){var i=this.media(),r=i&&(i.id||i.uri),a=e.id||e.uri;r&&r!==a&&(this.logger_("switch media "+r+" -> "+a+" from "+t),this.tech_.trigger({type:"usage",name:"vhs-rendition-change-"+t})),this.masterPlaylistLoader_.media(e,n)},n.startABRTimer_=function(){var e=this;this.stopABRTimer_(),this.abrTimer_=r().setInterval((function(){return e.checkABR_()}),250)},n.stopABRTimer_=function(){this.tech_.scrubbing&&this.tech_.scrubbing()||(r(
2).clearInterval(this.abrTimer_),this.abrTimer_=null)},n.getAudioTrackPlaylists_=function(){var e=this.master(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;var n,i=e.mediaGroups.AUDIO,r=Object.keys(i);if(Object.keys(this.mediaTypes_.AUDIO.groups).length)n=this.mediaTypes_.AUDIO.activeTrack();else{var a=i.main||r.length&&i[r[0]];for(var s in a)if(a[s].default){n={label:s};break}}if(!n)return t;var o=[];for(var l in i)if(i[l][n.label]){var c=i[l][n.label];if(c.playlists&&c.playlists.length)o.push.apply(o,c.playlists);else if(c.uri)o.push(c);else if(e.playlists.length)for(var u=0;u<e.playlists.length;u++){var d=e.playlists[u];d.attributes&&d.attributes.AUDIO&&d.attributes.AUDIO===l&&o.push(d)}}return o.length?o:t},n.setupMasterPlaylistLoaderListeners_=function(){var e=this;this.masterPlaylistLoader_.on("loadedmetadata",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;_o(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,t.endList&&"none"!==e.tech_.preload()&&(e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load()),Wc({sourceType:e.sourceType_,segmentLoaders:{AUDIO:e.audioSegmentLoader_,SUBTITLES:e.subtitleSegmentLoader_,main:e.mainSegmentLoader_},tech:e.tech_,requestOptions:e.requestOptions_,masterPlaylistLoader:e.masterPlaylistLoader_,vhs:e.vhs_,master:e.master(),mediaTypes:e.mediaTypes_,blacklistCurrentPlaylist:e.blacklistCurrentPlaylist.bind(e)}),e.triggerPresenceUsage_(e.master(),t),e.setupFirstPlay(),!e.mediaTypes_.AUDIO.activePlaylistLoader||e.mediaTypes_.AUDIO.activePlaylistLoader.media()?e.trigger("selectedinitialmedia"):e.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",(function(){e.trigger("selectedinitialmedia")}))})),this.masterPlaylistLoader_.on("loadedplaylist",(function(){e.loadOnPlay_&&e.tech_.off("play",e.loadOnPlay_);var t=e.masterPlaylistLoader_.media();if(!t){var n;if(e.excludeUnsupportedVariants_(),e.enableLowInitialPlaylist&&(n=e.selectInitialPlaylist()),n||(n=e.selectPlaylist()),!n||!e.shouldSwitchToMedia_(n))return;if(e.initialMedia_=n,e.switchMedia_(e.initialMedia_,"initial"),!("vhs-json"===e.sourceType_&&e.initialMedia_.segments))return;t=e.initialMedia_}e.handleUpdatedMediaPlaylist(t)})),this.masterPlaylistLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.masterPlaylistLoader_.error)})),this.masterPlaylistLoader_.on("mediachanging",(function(){e.mainSegmentLoader_.abort(),e.mainSegmentLoader_.pause()})),this.masterPlaylistLoader_.on("mediachange",(function(){var t=e.masterPlaylistLoader_.media(),n=1.5*t.targetDuration*1e3;_o(e.masterPlaylistLoader_.master,e.masterPlaylistLoader_.media())?e.requestOptions_.timeout=0:e.requestOptions_.timeout=n,e.mainSegmentLoader_.playlist(t,e.requestOptions_),e.mainSegmentLoader_.load(),e.tech_.trigger({type:"mediachange",bubbles:!0})})),this.masterPlaylistLoader_.on("playlistunchanged",(function(){var t=e.masterPlaylistLoader_.media();"playlist-unchanged"!==t.lastExcludeReason_&&(e.stuckAtPlaylistEnd_(t)&&(e.blacklistCurrentPlaylist({message:"Playlist no longer updating.",reason:"playlist-unchanged"}),e.tech_.trigger("playliststuck")))})),this.masterPlaylistLoader_.on("renditiondisabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-disabled"})})),this.masterPlaylistLoader_.on("renditionenabled",(function(){e.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"}),e.tech_.trigger({type:"usage",name:"hls-rendition-enabled"})}))},n.handleUpdatedMediaPlaylist=function(e){this.useCueTags_&&this.updateAdCues_(e),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.updateDuration(!e.endList),this.tech_.paused()||(this.mainSegmentLoader_.load(),this.audioSegmentLoader_&&this.audioSegmentLoader_.load())},n.triggerPresenceUsage_=function(e,t){var n=e.mediaGroups||{},i=!0,r=Object.keys(n.AUDIO);for(var a in n.AUDIO)for(var s in n.AUDIO[a]){n.AUDIO[a][s].uri||(i=!1)}i&&(this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),this.tech_.trigger({type:"usage",name:"hls-demuxed"})),Object.keys(n.SUBTITLES).length&&(this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),this.tech_.trigger({type:"usage",name:"hls-webvtt"})),sc.Playlist.isAes(t)&&(this.tech_.trigger({type:"usage",name:"vhs-aes"}),this.tech_.trigger({type:"usage",name:"hls-aes"})),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&(this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.tech_.trigger({type:"usage",name:"hls-alternate-audio"})),this.useCueTags_&&(this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"}),this.tech_.trigger({type:"usage",name:"hls-playlist-cue-tags"}))},n.shouldSwitchToMedia_=function(e){var t=this.masterPlaylistLoader_.media()||this.masterPlaylistLoader_.pen
2dingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function(e){var t=e.currentPlaylist,n=e.buffered,i=e.currentTime,r=e.nextPlaylist,a=e.bufferLowWaterLine,s=e.bufferHighWaterLine,o=e.duration,l=e.experimentalBufferBasedABR,c=e.log;if(!r)return zs.log.warn("We received no playlist to switch to. Please check your stream."),!1;var u="allowing switch "+(t&&t.id||"null")+" -> "+r.id;if(!t)return c(u+" as current playlist is not set"),!0;if(r.id===t.id)return!1;var d=Boolean(Zs(n,i).length);if(!t.endList)return d||"number"!=typeof t.partTargetDuration?(c(u+" as current playlist is live"),!0):(c("not "+u+" as current playlist is live llhls, but currentTime isn't in buffered."),!1);var h=ro(n,i),f=l?ll.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:ll.MAX_BUFFER_LOW_WATER_LINE;if(o<f)return c(u+" as duration < max low water line ("+o+" < "+f+")"),!0;var p=r.attributes.BANDWIDTH,m=t.attributes.BANDWIDTH;if(p<m&&(!l||h<s)){var g=u+" as next bandwidth < current bandwidth ("+p+" < "+m+")";return l&&(g+=" and forwardBuffer < bufferHighWaterLine ("+h+" < "+s+")"),c(g),!0}if((!l||p>m)&&h>=a){var v=u+" as forwardBuffer >= bufferLowWaterLine ("+h+" >= "+a+")";return l&&(v+=" and next bandwidth > current bandwidth ("+p+" > "+m+")"),c(v),!0}return c("not "+u+" as no switching criteria met"),!1}({buffered:this.tech_.buffered(),currentTime:n,currentPlaylist:t,nextPlaylist:e,bufferLowWaterLine:i,bufferHighWaterLine:r,duration:this.duration(),experimentalBufferBasedABR:this.experimentalBufferBasedABR,log:this.logger_})},n.setupSegmentLoaderListeners_=function(){var e=this;this.experimentalBufferBasedABR||(this.mainSegmentLoader_.on("bandwidthupdate",(function(){var t=e.selectPlaylist();e.shouldSwitchToMedia_(t)&&e.switchMedia_(t,"bandwidthupdate"),e.tech_.trigger("bandwidthupdate")})),this.mainSegmentLoader_.on("progress",(function(){e.trigger("progress")}))),this.mainSegmentLoader_.on("error",(function(){e.blacklistCurrentPlaylist(e.mainSegmentLoader_.error())})),this.mainSegmentLoader_.on("appenderror",(function(){e.error=e.mainSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.mainSegmentLoader_.on("timestampoffset",(function(){e.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"}),e.tech_.trigger({type:"usage",name:"hls-timestamp-offset"})})),this.audioSegmentLoader_.on("syncinfoupdate",(function(){e.onSyncInfoUpdate_()})),this.audioSegmentLoader_.on("appenderror",(function(){e.error=e.audioSegmentLoader_.error_,e.trigger("error")})),this.mainSegmentLoader_.on("ended",(function(){e.logger_("main segment loader ended"),e.onEndOfStream()})),this.mainSegmentLoader_.on("earlyabort",(function(t){e.experimentalBufferBasedABR||(e.delegateLoaders_("all",["abort"]),e.blacklistCurrentPlaylist({message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},120))}));var t=function(){if(!e.sourceUpdater_.hasCreatedSourceBuffers())return e.tryToCreateSourceBuffers_();var t=e.getCodecsOrExclude_();t&&e.sourceUpdater_.addOrChangeSourceBuffers(t)};this.mainSegmentLoader_.on("trackinfo",t),this.audioSegmentLoader_.on("trackinfo",t),this.mainSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("fmp4",(function(){e.triggeredFmp4Usage||(e.tech_.trigger({type:"usage",name:"vhs-fmp4"}),e.tech_.trigger({type:"usage",name:"hls-fmp4"}),e.triggeredFmp4Usage=!0)})),this.audioSegmentLoader_.on("ended",(function(){e.logger_("audioSegmentLoader ended"),e.onEndOfStream()}))},n.mediaSecondsLoaded_=function(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)},n.load=function(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()},n.smoothQualityChange_=function(e){void 0===e&&(e=this.selectPlaylist()),this.fastQualityChange_(e)},n.fastQualityChange_=function(e){var t=this;void 0===e&&(e=this.selectPlaylist()),e!==this.masterPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.mainSegmentLoader_.resetEverything((function(){zs.browser.IE_VERSION||zs.browser.IS_EDGE?t.tech_.setCurrentTime(t.tech_.currentTime()+.04):t.tech_.setCurrentTime(t.tech_.currentTime())}))):this.logger_("skipping fastQualityChange because new media is same as old")},n.play=function(){if(!this.setupFirstPlay()){this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();var e=this.tech_.seekable();return this.tech_.duration()===1/0&&this.tech_.currentTime()<e.start(0)?this.tech_.setCurrentTime(e.end(e.length-1)):void 0}},n.setupFirstPlay=function(){var e=this,t=this.masterPlaylistLoader_.media();if(!t||this.tech_.paused()||this.hasPlayed_)return!1;if(!t.endList){var n=this.seekable();if(!n.length)return!1;if(zs.browser.IE_VERSION&&0===this.tech_.readyState())return this.tech_.one("loadedmetadata",(function(){e.trigger("firstplay"),e.tech_.setCurrentTime(n.end(0)),e.hasPlayed_=!0})),!1;this.trigger("firstplay"),this.tech_.setCurrentTime(n.end(0))}return this.hasPlayed_=!0,this.load(),!0},n.handleSourceOpen_=function(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){var e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,(function(e){}))}this.trigger("sourceopen")},n.handleSourceEnded_=function(){if(this.inbandTextTracks_.metadataTrack_){var e=this.inbandTextTracks_.metadataTrack_.cues;if(e&&e.length){var t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}}},n.handleDurationChange_=function(){this.tech_.trigger("durationchange")}
2,n.onEndOfStream=function(){var e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){var t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())},n.stuckAtPlaylistEnd_=function(e){if(!this.seekable().length)return!1;var t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;var n=sc.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=Qs;var a=r.end(r.length-1);return a-i<=Qs&&n-a<=Qs},n.blacklistCurrentPlaylist=function(e,t){void 0===e&&(e={});var n=e.playlist||this.masterPlaylistLoader_.media();if(t=t||e.blacklistDuration||this.blacklistDuration,!n)return this.error=e,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));n.playlistErrors_++;var i,r=this.masterPlaylistLoader_.master.playlists,a=r.filter(yo),s=1===a.length&&a[0]===n;if(1===r.length&&t!==1/0)return zs.log.warn("Problem encountered with playlist "+n.id+". Trying again since it is the only playlist."),this.tech_.trigger("retryplaylist"),this.masterPlaylistLoader_.load(s);if(s){var o=!1;r.forEach((function(e){if(e!==n){var t=e.excludeUntil;void 0!==t&&t!==1/0&&(o=!0,delete e.excludeUntil)}})),o&&(zs.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}i=n.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*t,n.excludeUntil=i,e.reason&&(n.lastExcludeReason_=e.reason),this.tech_.trigger("blacklistplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-blacklisted"}),this.tech_.trigger({type:"usage",name:"hls-rendition-blacklisted"});var l=this.selectPlaylist();if(!l)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");var c=e.internal?this.logger_:zs.log.warn,u=e.message?" "+e.message:"";c((e.internal?"Internal problem":"Problem")+" encountered with playlist "+n.id+"."+u+" Switching to playlist "+l.id+"."),l.attributes.AUDIO!==n.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),l.attributes.SUBTITLES!==n.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);var d=l.targetDuration/2*1e3||5e3,h="number"==typeof l.lastRequest&&Date.now()-l.lastRequest<=d;return this.switchMedia_(l,"exclude",s||h)},n.pauseLoading=function(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()},n.delegateLoaders_=function(e,t){var n=this,i=[],r="all"===e;(r||"main"===e)&&i.push(this.masterPlaylistLoader_);var a=[];(r||"audio"===e)&&a.push("AUDIO"),(r||"subtitle"===e)&&(a.push("CLOSED-CAPTIONS"),a.push("SUBTITLES")),a.forEach((function(e){var t=n.mediaTypes_[e]&&n.mediaTypes_[e].activePlaylistLoader;t&&i.push(t)})),["main","audio","subtitle"].forEach((function(t){var r=n[t+"SegmentLoader_"];!r||e!==t&&"all"!==e||i.push(r)})),i.forEach((function(e){return t.forEach((function(t){"function"==typeof e[t]&&e[t]()}))}))},n.setCurrentTime=function(e){var t=Zs(this.tech_.buffered(),e);return this.masterPlaylistLoader_&&this.masterPlaylistLoader_.media()&&this.masterPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mainSegmentLoader_.abort(),this.mediaTypes_.AUDIO.activePlaylistLoader&&(this.audioSegmentLoader_.resetEverything(),this.audioSegmentLoader_.abort()),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&(this.subtitleSegmentLoader_.resetEverything(),this.subtitleSegmentLoader_.abort()),void this.load()):0},n.duration=function(){if(!this.masterPlaylistLoader_)return 0;var e=this.masterPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:sc.Playlist.duration(e):1/0:0},n.seekable=function(){return this.seekable_},n.onSyncInfoUpdate_=function(){var e;if(this.masterPlaylistLoader_){var t=this.masterPlaylistLoader_.media();if(t){var n=this.syncController_.getExpiredTime(t,this.duration());if(null!==n){var i=this.masterPlaylistLoader_.master,r=sc.Playlist.seekable(t,n,sc.Playlist.liveEdgeDelay(i,t));if(0!==r.length){if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),null===(n=this.syncController_.getExpiredTime(t,this.duration())))return;if(0===(e=sc.Playlist.seekable(t,n,sc.Playlist.liveEdgeDelay(i,t))).length)return}var a,s;this.seekable_&&this.seekable_.length&&(a=this.seekable_.end(0),s=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=zs.createTimeRanges([[e.start(0)>r.start(0)?e.start(0):r.start(0),e.end(0)<r.end(0)?e.end(0):r.end(0)]]):this.seekable_=r,this.seekable_&&this.seekable_.length&&this.seekable_.end(0)===a&&this.seekable_.start(0)===s||(this.logger_("seekable updated ["+to(this.seekable_)+"]"),this.tech_.trigger("seekablechanged"))}}}}},n.updateDuration=function(e){if(this.updateDuration_&&(this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.updateDuration_=null),"open"!==this.mediaSource.readyState)return this.updateDuration_=this.updateDuration.bind(this,e),void this.mediaSource.addEventListener("sourceopen",this.updateDuration_);if(e){var t=this.seekable();if(!t.length)return;(isNaN(this.mediaSource.duration)||this.mediaSource.duration<t.end(t.length-1))&&this.sourceUpdater_.setDuration(t.end(t.length-1))}else{var n=this.tech_.buffered(),i=sc.Playlist.duration(this.masterPlaylistLoader_.media());n.length>0&&(i=Math.max(i,n.end(n.length-1))),this.mediaSource.duration!==i&&this.sourceUpdater_.setDuration(i)}},n.dispose=function(){var e=this;this.trigger("dispose"),this.decrypter_.terminate(),this.masterPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach((function(t){var n=e.mediaTypes_[t].groups;
2for(var i in n)n[i].forEach((function(e){e.playlistLoader&&e.playlistLoader.dispose()}))})),this.audioSegmentLoader_.dispose(),this.subtitleSegmentLoader_.dispose(),this.sourceUpdater_.dispose(),this.timelineChangeController_.dispose(),this.stopABRTimer_(),this.updateDuration_&&this.mediaSource.removeEventListener("sourceopen",this.updateDuration_),this.mediaSource.removeEventListener("durationchange",this.handleDurationChange_),this.mediaSource.removeEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.removeEventListener("sourceended",this.handleSourceEnded_),this.off()},n.master=function(){return this.masterPlaylistLoader_.master},n.media=function(){return this.masterPlaylistLoader_.media()||this.initialMedia_},n.areMediaTypesKnown_=function(){var e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)},n.getCodecsOrExclude_=function(){var e=this,t={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}};t.video=t.main;var n=Fl(this.master(),this.media()),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(t.main.hasVideo&&(i.video=n.video||t.main.videoCodec||"avc1.4d400d"),t.main.isMuxed&&(i.video+=","+(n.audio||t.main.audioCodec||G)),(t.main.hasAudio&&!t.main.isMuxed||t.audio.hasAudio||r)&&(i.audio=n.audio||t.main.audioCodec||t.audio.audioCodec||G,t.audio.isFmp4=t.main.hasAudio&&!t.main.isMuxed?t.main.isFmp4:t.audio.isFmp4),i.audio||i.video){var a,s={};if(["video","audio"].forEach((function(e){if(i.hasOwnProperty(e)&&(r=t[e].isFmp4,o=i[e],!(r?$(o):X(o)))){var n=t[e].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(i[e]),"audio"===e&&(a=n)}var r,o})),r&&a&&this.media().attributes.AUDIO){var o=this.media().attributes.AUDIO;
2this.master().playlists.forEach((function(t){(t.attributes&&t.attributes.AUDIO)===o&&t!==e.media()&&(t.excludeUntil=1/0)})),this.logger_("excluding audio group "+o+" as "+a+' does not support codec(s): "'+i.audio+'"')}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){var l=[];if(["video","audio"].forEach((function(t){var n=(W(e.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(W(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&l.push('"'+e.sourceUpdater_.codecs[t]+'" -> "'+i[t]+'"')})),l.length)return void this.blacklistCurrentPlaylist({playlist:this.media(),message:"Codec switching not supported: "+l.join(", ")+".",blacklistDuration:1/0,internal:!0})}return i}var c=Object.keys(s).reduce((function(e,t){return e&&(e+=", "),e+=t+' does not support codec(s): "'+s[t].join(",")+'"'}),"")+".";this.blacklistCurrentPlaylist({playlist:this.media(),internal:!0,message:c,blacklistDuration:1/0})}else this.blacklistCurrentPlaylist({playlist:this.media(),message:"Could not determine codecs for playlist.",blacklistDuration:1/0})},n.tryToCreateSourceBuffers_=function(){if("open"===this.mediaSource.readyState&&!this.sourceUpdater_.hasCreatedSourceBuffers()&&this.areMediaTypesKnown_()){var e=this.getCodecsOrExclude_();if(e){this.sourceUpdater_.createSourceBuffers(e);var t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}}},n.excludeUnsupportedVariants_=function(){var e=this,t=this.master().playlists,n=[];Object.keys(t).forEach((function(i){var r=t[i];if(-1===n.indexOf(r.id)){n.push(r.id);var a=Fl(e.master,r),s=[];!a.audio||X(a.audio)||$(a.audio)||s.push("audio codec "+a.audio),!a.video||X(a.video)||$(a.video)||s.push("video codec "+a.video),a.text&&"stpp.ttml.im1t"===a.text&&s.push("text codec "+a.text),s.length&&(r.excludeUntil=1/0,e.logger_("excluding "+r.id+" for unsupported: "+s.join(", ")))}}))},n.excludeIncompatibleVariants_=function(e){var t=this,n=[],i=this.master().playlists,r=jl(W(e)),a=Bl(r),s=r.video&&W(r.video)[0]||null,o=r.audio&&W(r.audio)[0]||null;
2Object.keys(i).forEach((function(e){var r=i[e];if(-1===n.indexOf(r.id)&&r.excludeUntil!==1/0){n.push(r.id);var l=[],c=Fl(t.masterPlaylistLoader_.master,r),u=Bl(c);if(c.audio||c.video){if(u!==a&&l.push('codec count "'+u+'" !== "'+a+'"'),!t.sourceUpdater_.canChangeType()){var d=c.video&&W(c.video)[0]||null,h=c.audio&&W(c.audio)[0]||null;d&&s&&d.type.toLowerCase()!==s.type.toLowerCase()&&l.push('video codec "'+d.type+'" !== "'+s.type+'"'),h&&o&&h.type.toLowerCase()!==o.type.toLowerCase()&&l.push('audio codec "'+h.type+'" !== "'+o.type+'"')}l.length&&(r.excludeUntil=1/0,t.logger_("blacklisting "+r.id+": "+l.join(" && ")))}}}))},n.updateAdCues_=function(e){var t=0,n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n){if(void 0===n&&(n=0),e.segments)for(var i,a=n,s=0;s<e.segments.length;s++){var o=e.segments[s];if(i||(i=Lc(t,a+o.duration/2)),i){if("cueIn"in o){i.endTime=a,i.adEndTime=a,a+=o.duration,i=null;continue}if(a<i.endTime){a+=o.duration;continue}i.endTime+=o.duration}else if("cueOut"in o&&((i=new(r().VTTCue)(a,a+o.duration,o.cueOut)).adStartTime=a,i.adEndTime=a+parseFloat(o.cueOut),t.addCue(i)),"cueOutCont"in o){var l=o.cueOutCont.split("/").map(parseFloat),c=l[0],u=l[1];(i=new(r().VTTCue)(a,a+o.duration,"")).adStartTime=a-c,i.adEndTime=i.adStartTime+u,t.addCue(i)}a+=o.duration}}(e,this.cueTagsTrack_,t)},n.goalBufferLength=function(){var e=this.tech_.currentTime(),t=ll.GOAL_BUFFER_LENGTH,n=ll.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,ll.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)},n.bufferLowWaterLine=function(){var e=this.tech_.currentTime(),t=ll.BUFFER_LOW_WATER_LINE,n=ll.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,ll.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,ll.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.experimentalBufferBasedABR?r:i)},n.bufferHighWaterLine=function(){return ll.BUFFER_HIGH_WATER_LINE},t}(zs.EventTarget),Xc=function(e,t,n){var i,r,a,s=e.masterPlaylistController_,o=s[(e.options_.smoothQualityChange?"smooth":"fast")+"QualityChange_"].bind(s);if(t.attributes){var l=t.attributes.RESOLUTION;this.width=l&&l.width,this.height=l&&l.height,this.bandwidth=t.attributes.BANDWIDTH}this.codecs=Fl(s.master(),t),this.playlist=t,this.id=n,this.enabled=(i=e.playlists,r=t.id,a=o,function(e){var t=i.master.playlists[r],n=vo(t),s=yo(t);return void 0===e?s:(e?delete t.disabled:t.disabled=!0,e===s||n||(a(),e?i.trigger("renditionenabled"):i.trigger("renditiondisabled")),e)})},Gc=["seeking","seeked","pause","playing","error"],Kc=function(){function e(e){var t=this;this.masterPlaylistController_=e.masterPlaylistController,this.tech_=e.tech,this.seekable=e.seekable,this.allowSeeksWithinUnsafeLiveWindow=e.allowSeeksWithinUnsafeLiveWindow,this.liveRangeSafeTimeDelta=e.liveRangeSafeTimeDelta,this.media=e.media,this.consecutiveUpdates=0,this.lastRecordedTime=null,this.timer_=null,this.checkCurrentTimeTimeout_=null,this.logger_=Ks("PlaybackWatcher"),this.logger_("initialize");var n=function(){return t.monitorCurrentTime_()},i=function(){return t.monitorCurrentTime_()},a=function(){return t.techWaiting_()},s=function(){return t.cancelTimer_()},o=this.masterPlaylistController_,l=["main","subtitle","audio"],c={};l.forEach((function(e){c[e]={reset:function(){return t.resetSegmentDownloads_(e)},updateend:function(){return t.checkSegmentDownloads_(e)}},o[e+"SegmentLoader_"].on("appendsdone",c[e].updateend),o[e+"SegmentLoader_"].on("playlistupdate",c[e].reset),t.tech_.on(["seeked","seeking"],c[e].reset)}));var u=function(e){["main","audio"].forEach((function(n){o[n+"SegmentLoader_"][e]("appended",t.seekingAppendCheck_)}))};this.seekingAppendCheck_=function(){t.fixesBadSeeks_()&&(t.consecutiveUpdates=0,t.lastRecordedTime=t.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=function(){return u("off")},this.watchForBadSeeking_=function(){t.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",a),this.tech_.on(Gc,s),this.tech_.on("canplay",i),this.tech_.one("play",n),this.dispose=function(){t.clearSeekingAppendCheck_(),t.logger_("dispose"),t.tech_.off("waiting",a),t.tech_.off(Gc,s),t.tech_.off("canplay",i),t.tech_.off("play",n),t.tech_.off("seeking",t.watchForBadSeeking_),t.tech_.off("seeked",t.clearSeekingAppendCheck_),l.forEach((function(e){o[e+"SegmentLoader_"].off("appendsdone",c[e].updateend),o[e+"SegmentLoader_"].off("playlistupdate",c[e].reset),t.tech_.off(["seeked","seeking"],c[e].reset)})),t.checkCurrentTimeTimeout_&&r().clearTimeout(t.checkCurrentTimeTimeout_),t.cancelTimer_()}}var t=e.prototype;return t.monitorCurrentTime_=function(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&r().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=r().setTimeout(this.monitorCurrentTime_.bind(this),250)},t.resetSegmentDownloads_=function(e){var t=this.masterPlaylistController_[e+"SegmentLoader_"];this[e+"StalledDownloads_"]>0&&this.logger_("resetting possible stalled download count for "+e+" loader"),this[e+"StalledDownloads_"]=0,this[e+"Buffered_"]=t.buffered_()},t.checkSegmentDownloads_=function(e){var t=this.masterPlaylistController_,n=t[e+"SegmentLoader_"],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;
2if(e.length!==t.length)return!0;for(var n=0;n<e.length;n++)if(e.start(n)!==t.start(n)||e.end(n)!==t.end(n))return!0;return!1}(this[e+"Buffered_"],i);this[e+"Buffered_"]=i,r?this.resetSegmentDownloads_(e):(this[e+"StalledDownloads_"]++,this.logger_("found #"+this[e+"StalledDownloads_"]+" "+e+" appends that did not increase buffer (possible stalled download)",{playlistId:n.playlist_&&n.playlist_.id,buffered:no(i)}),this[e+"StalledDownloads_"]<10||(this.logger_(e+" loader stalled download exclusion"),this.resetSegmentDownloads_(e),this.tech_.trigger({type:"usage",name:"vhs-"+e+"-download-exclusion"}),"subtitle"!==e&&t.blacklistCurrentPlaylist({message:"Excessive "+e+" segment downloading detected."},1/0)))},t.checkCurrentTime_=function(){if(!this.tech_.paused()&&!this.tech_.seeking()){var e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+Qs>=t.end(t.length-1)))return this.techWaiting_();this.consecutiveUpdates>=5&&e===this.lastRecordedTime?(this.consecutiveUpdates++,this.waiting_()):e===this.lastRecordedTime?this.consecutiveUpdates++:(this.consecutiveUpdates=0,this.lastRecordedTime=e)}},t.cancelTimer_=function(){this.consecutiveUpdates=0,this.timer_&&(this.logger_("cancelTimer_"),clearTimeout(this.timer_)),this.timer_=null},t.fixesBadSeeks_=function(){if(!this.tech_.seeking())return!1;var e,t=this.seekable(),n=this.tech_.currentTime();this.afterSeekableWindow_(t,n,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(e=t.end(t.length-1));if(this.beforeSeekableWindow_(t,n)){var i=t.start(0);e=i+(i===t.end(0)?0:Qs)}if(void 0!==e)return this.logger_("Trying to seek outside of seekable at time "+n+" with seekable range "+to(t)+". Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0;for(var r=this.masterPlaylistController_.sourceUpdater_,a=this.tech_.buffered(),s=r.audioBuffer?r.audioBuffered():null,o=r.videoBuffer?r.videoBuffered():null,l=this.media(),c=l.partTargetDuration?l.partTargetDuration:2*(l.targetDuration-Ys),u=[s,o],d=0;d<u.length;d++){if(u[d])if(ro(u[d],n)<c)return!1}var h=eo(a,n);return 0!==h.length&&(e=h.start(0)+Qs,this.logger_("Buffered region starts ("+h.start(0)+") just beyond seek point ("+n+"). Seeking to "+e+"."),this.tech_.setCurrentTime(e),!0)},t.waiting_=function(){if(!this.techWaiting_()){var e=this.tech_.currentTime(),t=this.tech_.buffered(),n=Zs(t,e);return n.length&&e+3<=n.end(0)?(this.cancelTimer_(),this.tech_.setCurrentTime(e),this.logger_("Stopped at "+e+" while inside a buffered region ["+n.start(0)+" -> "+n.end(0)+"]. Attempting to resume playback by seeking to the current time."),this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"}),void this.tech_.trigger({type:"usage",name:"hls-unknown-waiting"})):void 0}},t.techWaiting_=function(){var e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking()||null!==this.timer_)return!0;if(this.beforeSeekableWindow_(e,t)){var n=e.end(e.length-1);return this.logger_("Fell out of live window at time "+t+". Seeking to live point (seekable end) "+n),this.cancelTimer_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),this.tech_.trigger({type:"usage",name:"hls-live-resync"}),!0}var i=this.tech_.vhs.masterPlaylistController_.sourceUpdater_,r=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:i.audioBuffered(),videoBuffered:i.videoBuffered(),currentTime:t}))return this.cancelTimer_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),this.tech_.trigger({type:"usage",name:"hls-video-underflow"}),!0;var a=eo(r,t);if(a.length>0){var s=a.start(0)-t;return this.logger_("Stopped at "+t+", setting timer for "+s+", seeking to "+a.start(0)),this.cancelTimer_(),this.timer_=setTimeout(this.skipTheGap_.bind(this),1e3*s,t),!0}return!1},t.afterSeekableWindow_=function(e,t,n,i){if(void 0===i&&(i=!1),!e.length)return!1;var r=e.end(e.length-1)+Qs;return!n.endList&&i&&(r=e.end(e.length-1)+3*n.targetDuration),t>r},t.beforeSeekableWindow_=function(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)},t.videoUnderflow_=function(e){var t=e.videoBuffered,n=e.audioBuffered,i=e.currentTime;if(t){var r;if(t.length&&n.length){var a=Zs(t,i-3),s=Zs(t,i),o=Zs(n,i);o.length&&!s.length&&a.length&&(r={start:a.end(0),end:o.end(0)})}else{eo(t,i).length||(r=this.gapFromVideoUnderflow_(t,i))}return!!r&&(this.logger_("Encountered a gap in video from "+r.start+" to "+r.end+". Seeking to current time "+i),!0)}},t.skipTheGap_=function(e){var t=this.tech_.buffered(),n=this.tech_.currentTime(),i=eo(t,n);this.cancelTimer_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+Ys),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}),this.tech_.trigger({type:"usage",name:"hls-gap-skip"}))}
2,t.gapFromVideoUnderflow_=function(e,t){for(var n=function(e){if(e.length<2)return zs.createTimeRanges();for(var t=[],n=1;n<e.length;n++){var i=e.end(n-1),r=e.start(n);t.push([i,r])}return zs.createTimeRanges(t)}(e),i=0;i<n.length;i++){var r=n.start(i),a=n.end(i);if(t-r<4&&t-r>2)return{start:r,end:a}}return null},e}(),Yc={errorInterval:30,getSource:function(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},Qc=function e(t,n){var i=0,r=0,a=zs.mergeOptions(Yc,n);t.ready((function(){t.trigger({type:"usage",name:"vhs-error-reload-initialized"}),t.trigger({type:"usage",name:"hls-error-reload-initialized"})}));var s=function(){r&&t.currentTime(r)},o=function(e){null!=e&&(r=t.duration()!==1/0&&t.currentTime()||0,t.one("loadedmetadata",s),t.src(e),t.trigger({type:"usage",name:"vhs-error-reload"}),t.trigger({type:"usage",name:"hls-error-reload"}),t.play())},l=function(){return Date.now()-i<1e3*a.errorInterval?(t.trigger({type:"usage",name:"vhs-error-reload-canceled"}),void t.trigger({type:"usage",name:"hls-error-reload-canceled"})):a.getSource&&"function"==typeof a.getSource?(i=Date.now(),a.getSource.call(t,o)):void zs.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")},c=function e(){t.off("loadedmetadata",s),t.off("error",l),t.off("dispose",e)};t.on("error",l),t.on("dispose",c),t.reloadSourceOnError=function(n){c(),e(t,n)}},Jc="2.14.2",Zc={PlaylistLoader:Uo,Playlist:So,utils:Qo,STANDARD_PLAYLIST_SELECTOR:Gl,INITIAL_PLAYLIST_SELECTOR:function(){var e=this,t=this.playlists.master.playlists.filter(So.isEnabled);return Vl(t,(function(e,t){return $l(e,t)})),t.filter((function(t){return!!Fl(e.playlists.master,t).video}))[0]||null},lastBandwidthSelector:Gl,movingAverageBandwidthSelector:function(e){var t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){var i=this.useDevicePixelRatio&&r().devicePixelRatio||1;return t<0&&(t=this.systemBandwidth,n=this.systemBandwidth),this.systemBandwidth>0&&this.systemBandwidth!==n&&(t=e*this.systemBandwidth+(1-e)*t,n=this.systemBandwidth),Xl(this.playlists.master,t,parseInt(zl(this.tech_.el(),"width"),10)*i,parseInt(zl(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.masterPlaylistController_)}},comparePlaylistBandwidth:$l,comparePlaylistResolution:function(e,t){var n,i;return e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width&&(n=e.attributes.RESOLUTION.width),n=n||r().Number.MAX_VALUE,t.attributes.RESOLUTION&&t.attributes.RESOLUTION.width&&(i=t.attributes.RESOLUTION.width),n===(i=i||r().Number.MAX_VALUE)&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:Ho()};Object.keys(ll).forEach((function(e){Object.defineProperty(Zc,e,{get:function(){return zs.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),ll[e]},set:function(t){zs.log.warn("using Vhs."+e+" is UNSAFE be sure you know what you are doing"),"number"!=typeof t||t<0?zs.log.warn("value of Vhs."+e+" must be greater than or equal to 0"):ll[e]=t}})}));var eu="videojs-vhs",tu=function(e,t){for(var n=t.media(),i=-1,r=0;r<e.length;r++)if(e[r].id===n.id){i=r;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})};Zc.canPlaySource=function(){return zs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var nu=function(e){var t=e.player,n=e.sourceKeySystems,i=e.audioMedia,r=e.mainPlaylists;if(!t.eme.initializeMediaKeys)return Promise.resolve();var a=function(e,t){return e.reduce((function(e,n){if(!n.contentProtection)return e;var i=t.reduce((function(e,t){var i=n.contentProtection[t];return i&&i.pssh&&(e[t]={pssh:i.pssh}),e}),{});return Object.keys(i).length&&e.push(i),e}),[])}(i?r.concat([i]):r,Object.keys(n)),s=[],o=[];return a.forEach((function(e){o.push(new Promise((function(e,n){t.tech_.one("keysessioncreated",e)}))),s.push(new Promise((function(n,i){t.eme.initializeMediaKeys({keySystems:e},(function(e){e?i(e):n()}))})))})),Promise.race([Promise.all(s),Promise.race(o)])},iu=function(e){var t=e.player,n=function(e,t,n){if(!e)return e;var i={};t&&t.attributes&&t.attributes.CODECS&&(i=jl(W(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);var r=V(i.video),a=V(i.audio),s={};for(var o in e)s[o]={},a&&(s[o].audioContentType=a),r&&(s[o].videoContentType=r),t.contentProtection&&t.contentProtection[o]&&t.contentProtection[o].pssh&&(s[o].pssh=t.contentProtection[o].pssh),"string"==typeof e[o]&&(s[o].url=e[o]);return zs.mergeOptions(e,s)}(e.sourceKeySystems,e.media,e.audioMedia);return!!n&&(t.currentSource().keySystems=n,!(n&&!t.eme)||(zs.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),!1))},ru=function(){if(!r().localStorage)return null;var e=r().localStorage.getItem(eu);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}};Zc.supportsNativeHls=function(){if(!s()||!s().createElement)return!1;var e=s().createElement("video");if(!zs.getTech("Html5").isSupported())return!1;return["application/vnd.apple.mpegurl","audio/mpegurl","audio/x-mpegurl","application/x-mpegurl","video/x-mpegurl","video/mpegurl","application/mpegurl"].some((function(t){return/maybe|probably/i.test(e.canPlayType(t))}))}(),Zc.supportsNativeDash=!!(s()&&s().createElement&&zs.getTech("Html5").isSupported())&&/maybe|probably/i.test(s().createElement("video").canPlayType("application/d
2ash+xml")),Zc.supportsTypeNatively=function(e){return"hls"===e?Zc.supportsNativeHls:"dash"===e&&Zc.supportsNativeDash},Zc.isSupported=function(){return zs.log.warn("HLS is no longer a tech. Please remove it from your player's techOrder.")};var au=function(e){function t(t,n,i){var r;if(r=e.call(this,n,zs.mergeOptions(i.hls,i.vhs))||this,i.hls&&Object.keys(i.hls).length&&zs.log.warn("Using hls options is deprecated. Please rename `hls` to `vhs` in your options object."),"number"==typeof i.initialBandwidth&&(r.options_.bandwidth=i.initialBandwidth),r.logger_=Ks("VhsHandler"),n.options_&&n.options_.playerId){var a=zs(n.options_.playerId);a.hasOwnProperty("hls")||Object.defineProperty(a,"hls",{get:function(){return zs.log.warn("player.hls is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"hls-player-access"}),u(r)},configurable:!0}),a.hasOwnProperty("vhs")||Object.defineProperty(a,"vhs",{get:function(){return zs.log.warn("player.vhs is deprecated. Use player.tech().vhs instead."),n.trigger({type:"usage",name:"vhs-player-access"}),u(r)},configurable:!0}),a.hasOwnProperty("dash")||Object.defineProperty(a,"dash",{get:function(){return zs.log.warn("player.dash is deprecated. Use player.tech().vhs instead."),u(r)},configurable:!0}),r.player_=a}if(r.tech_=n,r.source_=t,r.stats={},r.ignoreNextSeekingEvent_=!1,r.setOptions_(),r.options_.overrideNative&&n.overrideNativeAudioTracks&&n.overrideNativeVideoTracks)n.overrideNativeAudioTracks(!0),n.overrideNativeVideoTracks(!0);else if(r.options_.overrideNative&&(n.featuresNativeVideoTracks||n.featuresNativeAudioTracks))throw new Error("Overriding native HLS requires emulated tracks. See https://git.io/vMpjB");return r.on(s(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],(function(e){var t=s().fullscreenElement||s().webkitFullscreenElement||s().mozFullScreenElement||s().msFullscreenElement;t&&t.contains(r.tech_.el())?r.masterPlaylistController_.fastQualityChange_():r.masterPlaylistController_.checkABR_()})),r.on(r.tech_,"seeking",(function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())})),r.on(r.tech_,"error",(function(){this.tech_.error()&&this.masterPlaylistController_&&this.masterPlaylistController_.pauseLoading()})),r.on(r.tech_,"play",r.play),r}h(t,e);var n=t.prototype;return n.setOptions_=function(){var e=this;if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.handleManifestRedirects=!1!==this.options_.handleManifestRedirects,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.smoothQualityChange=this.options_.smoothQualityChange||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,"number"!=typeof this.options_.blacklistDuration&&(this.options_.blacklistDuration=300),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){var t=ru();t&&t.bandwidth&&(this.options_.bandwidth=t.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-bandwidth-from-local-storage"})),t&&t.throughput&&(this.options_.throughput=t.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}),this.tech_.trigger({type:"usage",name:"hls-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=ll.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===ll.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","smoothQualityChange","customTagParsers","customTagMappers","handleManifestRedirects","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","experimentalBufferBasedABR","liveRangeSafeTimeDelta","experimentalLLHLS","useNetworkInformationApi","useDtsForTimestampOffset","experimentalExactManifestTimings","experimentalLeastPixelDiffSelector"].forEach((function(t){void 0!==e.source_[t]&&(e.options_[t]=e.source_[t])})),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio},n.src=function(e,t){var n=this;if(e){var i;this.setOptions_(),this.options_.src=0===(i=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(i.substring(i.indexOf(",")+1)):i,this.options_.tech=this.tech_,this.options_.externVhs=Zc,this.options_.sourceType=Q(t),this.options_.seekTo=function(e){n.tech_.setCurrentTime(e)},this.options_.smoothQualityChange&&zs.log.warn("smoothQualityChange is deprecated and will be removed in the next major version"),this.masterPlaylistController_=new $c(this.options_);var a=zs.mergeOptions({liveRangeSafeTimeDelta:Qs},this.options_,{seekable:function(){return n.seekable()},media:function(){return n.masterPlaylistController_.media()},masterPlaylistController:this.masterPlaylistController_});this.playbackWatcher_=new Kc(a),this.masterPlaylistController_.on("error",(function(){var e=zs.players[n.tech_.options_.playerId],t=n.masterPlaylistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)}));var s=this.options_.experimentalBufferBasedABR?Zc.movingAverageBandwidthSelector(.55):Zc.STANDARD_PLAYLIST_SELECTOR;this.masterPlaylistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.masterPlaylistController_.selectInitialPlaylist=Zc.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.masterPlaylistController_.masterPlaylistLoader_,this.mediaSource=this.masterPlaylistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get:function(){return this.masterPlaylistController_.selectPlaylist},set:function(e){this.masterPlaylistController_.selectPlaylist=e.bind(this)}},throughput:{get:function(){return this.masterPlaylistController_.mainSegmentLoader_.throughput.rate},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.throughput.rate=e,this.masterPlaylistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get:function(){var e=this.masterPlaylistController_.mainSegmentLoader_.bandwidth,t=r().navigator.connection||r().navigator.mozConnection||r().navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){var i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set:function(e){this.masterPlaylistController_.mainSegmentLoader_.bandwidth=e,this.masterPlaylistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get:function(){var e,t=1/(this.bandwidth||1);return e=this.throughput>0?1/this.throughput:0,Math.floor(1/(t+e))},set:function(){zs.log.error('The "systemBandwidth" property is read-only')}}}),this.options_.bandwidth&&(this.bandwidth=this.options_.bandwidth),this.options_.throughput&&(this.throughput=this.options_.throughput),Object.defineProperties(this.stats,{bandwidth:{get:function(){return n.bandwidth||0},enumerable:!0},mediaRequests:{get:function(){return n.masterPlaylistController_.mediaRequests_()||0},enumerable:!0},mediaRequestsAborted:{get:function(){return n.masterPlaylistController_.mediaRequestsAborted_()||0},enumerable:!0},mediaRequestsTimedout:{get:function(){return n.masterPlaylistController_.mediaRequestsTimedout_()||0},enumerable:!0},mediaRequestsErrored:{get:function(){return n.masterPlaylistController_.mediaRequestsErrored_()||0},enumerable:!0},mediaTransferDuration:{get:function(){return n.masterPlaylistController_.mediaTransferDuration_()||0},enumerable:!0},mediaBytesTransferred:{get:function(){return n.masterPlaylistController_.mediaBytesTransferred_()||0},enumerable:!0},mediaSecondsLoaded:{get:function(){return n.masterPlaylistController_.mediaSecondsLoaded_()||0},enumerable:!0},mediaAppends:{get:function(){return n.masterPlaylistController_.mediaAppends_()||0},enumerable:!0},mainAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.mainAppendsToLoadedData_()||0},enumerable:!0},audioAppendsToLoadedData:{get:function(){return n.masterPlaylistController_.audioAppendsToLoadedData_()||0},enumerable:!0},appendsToLoadedData:{get:function(){return n.masterPlaylistController_.appendsToLoadedData_()||0},enumerable:!0},timeToLoadedData:{get:function(){return n.masterPlaylistController_.timeToLoadedData_()||0},enumerable:!0},buffered:{get:function(){return no(n.tech_.buffered())},enumerable:!0},currentTime:{get:function(){return n.tech_.currentTime()},enumerable:!0},currentSource:{get:function(){return n.tech_.currentSource_},enumerable:!0},currentTech:{get:function(){return n.tech_.name_},enumerable:!0},duration:{get:function(){return n.tech_.duration()},enumerable:!0},master:{get:function(){return n.playlists.master},enumerable:!0},playerDimensions:{get:function(){return n.tech_.currentDimensions()},enumerable:!0},seekable:{get:function(){return no(n.tech_.seekable())},enumerable:!0},timestamp:{get:function(){return Date.now()},enumerable:!0},videoPlaybackQuality:{get:function(){return n.tech_.getVideoPlaybackQuality()},enumerable:!0}}),this.tech_.one("canplay",this.masterPlaylistController_.setupFirstPlay.bind(this.masterPlaylistController_)),this.tech_.on("bandwidthupdate",(function(){n.options_.useBandwidthFromLocalStorage&&function(e){if(!r().localStorage)return!1;
2var t=ru();t=t?zs.mergeOptions(t,e):e;try{r().localStorage.setItem(eu,JSON.stringify(t))}catch(e){return!1}}({bandwidth:n.bandwidth,throughput:Math.round(n.throughput)})})),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var e;(e=n).representations=function(){var t=e.masterPlaylistController_.master(),n=wo(t)?e.masterPlaylistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter((function(e){return!vo(e)})).map((function(t,n){return new Xc(e,t,t.id)})):[]}})),this.masterPlaylistController_.sourceUpdater_.on("createdsourcebuffers",(function(){n.setupEme_()})),this.on(this.masterPlaylistController_,"progress",(function(){this.tech_.trigger("progress")})),this.on(this.masterPlaylistController_,"firstplay",(function(){this.ignoreNextSeekingEvent_=!0})),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=r().URL.createObjectURL(this.masterPlaylistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}},n.createKeySessions_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),nu({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:t&&t.media(),mainPlaylists:this.playlists.master.playlists}).then((function(){e.logger_("created EME key session"),e.masterPlaylistController_.sourceUpdater_.initializedEme()})).catch((function(t){e.logger_("error while creating EME key session",t),e.player_.error({message:"Failed to initialize media keys for EME",code:3})}))},n.handleWaitingForKey_=function(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()},n.setupEme_=function(){var e=this,t=this.masterPlaylistController_.mediaTypes_.AUDIO.activePlaylistLoader,n=iu({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:t&&t.media()});this.player_.tech_.on("keystatuschange",(function(t){"output-restricted"===t.status&&e.masterPlaylistController_.blacklistCurrentPlaylist({playlist:e.masterPlaylistController_.media(),message:"DRM keystatus changed to "+t.status+". Playlist will fail to play. Check for HDCP content.",blacklistDuration:1/0})})),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),11!==zs.browser.IE_VERSION&&n?this.createKeySessions_():this.masterPlaylistController_.sourceUpdater_.initializedEme()},n.setupQualityLevels_=function(){var e=this,t=zs.players[this.tech_.options_.playerId];
2t&&t.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=t.qualityLevels(),this.masterPlaylistController_.on("selectedinitialmedia",(function(){var t,n;t=e.qualityLevels_,(n=e).representations().forEach((function(e){t.addQualityLevel(e)})),tu(t,n.playlists)})),this.playlists.on("mediachange",(function(){tu(e.qualityLevels_,e.playlists)})))},t.version=function(){return{"@videojs/http-streaming":Jc,"mux.js":"6.0.1","mpd-parser":"0.21.1","m3u8-parser":"4.7.1","aes-decrypter":"3.1.3"}},n.version=function(){return this.constructor.version()},n.canChangeType=function(){return xc.canChangeType()},n.play=function(){this.masterPlaylistController_.play()},n.setCurrentTime=function(e){this.masterPlaylistController_.setCurrentTime(e)},n.duration=function(){return this.masterPlaylistController_.duration()},n.seekable=function(){return this.masterPlaylistController_.seekable()},n.dispose=function(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.masterPlaylistController_&&this.masterPlaylistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.player_&&(delete this.player_.vhs,delete this.player_.dash,delete this.player_.hls),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.tech_&&delete this.tech_.hls,this.mediaSourceUrl_&&r().URL.revokeObjectURL&&(r().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),e.prototype.dispose.call(this)},n.convertToProgramTime=function(e,t){return Jo({playlist:this.masterPlaylistController_.media(),time:e,callback:t})},n.seekToProgramTime=function(e,t,n,i){return void 0===n&&(n=!0),void 0===i&&(i=2),Zo({programTime:e,playlist:this.masterPlaylistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})},t}(zs.getComponent("Component")),su={name:"videojs-http-streaming",VERSION:Jc,canHandleSource:function(e,t){void 0===t&&(t={});var n=zs.mergeOptions(zs.options,t);return su.canPlayType(e.type,n)},handleSource:function(e,t,n){void 0===n&&(n={});var i=zs.mergeOptions(zs.options,n);return t.vhs=new au(e,t,i),zs.hasOwnProperty("hls")||Object.defineProperty(t,"hls",{get:function(){return zs.log.warn("player.tech().hls is deprecated. Use player.tech().vhs instead."),t.vhs},configurable:!0}),t.vhs.xhr=Ho(),t.vhs.src(e.src,e.type),t.vhs},canPlayType:function(e,t){void 0===t&&(t={});var n=zs.mergeOptions(zs.options,t),i=n.vhs,r=(i=void 0===i?{}:i).overrideNative,a=void 0===r?!zs.browser.IS_ANY_SAFARI:r,s=n.hls,o=(s=void 0===s?{}:s).overrideNative,l=void 0!==o&&o,c=Q(e);return c&&(!Zc.supportsTypeNatively(c)||l||a)?"maybe":""}};($("avc1.4d400d,mp4a.40.2")&&zs.getTech("Html5").registerSourceHandler(su,0),zs.VhsHandler=au,Object.defineProperty(zs,"HlsHandler",{get:function(){return zs.log.warn("videojs.HlsHandler is deprecated. Use videojs.VhsHandler instead."),au},configurable:!0}),zs.VhsSourceHandler=su,Object.defineProperty(zs,"HlsSourceHandler",{get:function(){return zs.log.warn("videojs.HlsSourceHandler is deprecated. Use videojs.VhsSourceHandler instead."),su},configurable:!0}),zs.Vhs=Zc,Object.defineProperty(zs,"Hls",{get:function(){return zs.log.warn("videojs.Hls is deprecated. Use videojs.Vhs instead."),Zc},configurable:!0}),zs.use||(zs.registerComponent("Hls",Zc),zs.registerComponent("Vhs",Zc)),zs.options.vhs=zs.options.vhs||{},zs.options.hls=zs.options.hls||{},zs.getPlugin&&zs.getPlugin("reloadSourceOnError"))||(zs.registerPlugin||zs.plugin)("reloadSourceOnError",(function(e){Qc(this,e)}));const ou=zs},3407:(e,t,n)=>{var i=n(8908),r=e.exports={WebVTT:n(3706),VTTCue:n(2230),VTTRegion:n(3710)};i.vttjs=r,i.WebVTT=r.WebVTT;var a=r.VTTCue,s=r.VTTRegion,o=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=a,i.VTTRegion=s},r.restore=function(){i.VTTCue=o,i.VTTRegion=l},i.VTTCue||r.shim()},3706:(e,t,n)=>{var i=n(9144),r=Object.create||function(){function e(){}return function(t){if(1!==arguments.length)throw new Error("Object.create shim only accepts one parameter.");return e.prototype=t,new e}}();
vendor: 5,375 bytes, line 2
2function a(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function s(e){function t(e,t,n,i){return 3600*(0|e)+60*(0|t)+(0|n)+(0|i)/1e3}var n=e.match(/^(\d+):(\d{1,2})(:\d{1,2})?\.(\d{3})/);return n?n[3]?t(n[1],n[2],n[3].replace(":",""),n[4]):n[1]>59?t(n[1],n[2],0,n[4]):t(0,n[1],n[2],n[4]):null}function o(){this.values=r(null)}function l(e,t,n,i){var r=i?e.split(i):[e];for(var a in r)if("string"==typeof r[a]){var s=r[a].split(n);if(2===s.length)t(s[0],s[1])}}function c(e,t,n){var i=e;function r(){var t=s(e);if(null===t)throw new a(a.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function c(){e=e.replace(/^\s+/,"")}if(c(),t.startTime=r(),c(),"--\x3e"!==e.substr(0,3))throw new a(a.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '--\x3e'): "+i);e=e.substr(3),c(),t.endTime=r(),c(),function(e,t){var i=new o;l(e,(function(e,t){switch(e){case"region":for(var r=n.length-1;r>=0;r--)if(n[r].id===t){i.set(e,n[r].region);break}break;case"vertical":i.alt(e,t,["rl","lr"]);break;case"line":var a=t.split(","),s=a[0];i.integer(e,s),i.percent(e,s)&&i.set("snapToLines",!1),i.alt(e,s,["auto"]),2===a.length&&i.alt("lineAlign",a[1],["start","center","end"]);break;case"position":a=t.split(","),i.percent(e,a[0]),2===a.length&&i.alt("positionAlign",a[1],["start","center","end"]);break;case"size":i.percent(e,t);break;case"align":i.alt(e,t,["start","center","end","left","right"])}}),/:/,/\s/),t.region=i.get("region",null),t.vertical=i.get("vertical","");try{t.line=i.get("line","auto")}catch(e){}t.lineAlign=i.get("lineAlign","start"),t.snapToLines=i.get("snapToLines",!0),t.size=i.get("size",100);try{t.align=i.get("align","center")}catch(e){t.align=i.get("align","middle")}try{t.position=i.get("position","auto")}catch(e){t.position=i.get("position",{start:0,left:0,center:50,middle:50,end:100,right:100},t.align)}t.positionAlign=i.get("positionAlign",{start:"start",left:"start",center:"center",middle:"center",end:"end",right:"end"},t.align)}(e,t)}a.prototype=r(Error.prototype),a.prototype.constructor=a,a.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},o.prototype={set:function(e,t){this.get(e)||""===t||(this.values[e]=t)},get:function(e,t,n){return n?this.has(e)?this.values[e]:t[n]:this.has(e)?this.values[e]:t},has:function(e){return e in this.values},alt:function(e,t,n){for(var i=0;i<n.length;++i)if(t===n[i]){this.set(e,t);break}},integer:function(e,t){/^-?\d+$/.test(t)&&this.set(e,parseInt(t,10))},percent:function(e,t){return!!(t.match(/^([\d]{1,3})(\.[\d]*)?%$/)&&(t=parseFloat(t))>=0&&t<=100)&&(this.set(e,t),!0)}};var u=i.createElement&&i.createElement("textarea"),d={c:"span",i:"i",b:"b",u:"u",ruby:"ruby",rt:"rt",v:"span",lang:"span"},h={white:"rgba(255,255,255,1)",lime:"rgba(0,255,0,1)",cyan:"rgba(0,255,255,1)",red:"rgba(255,0,0,1)",yellow:"rgba(255,255,0,1)",magenta:"rgba(255,0,255,1)",blue:"rgba(0,0,255,1)",black:"rgba(0,0,0,1)"},f={v:"title",lang:"lang"},p={rt:"ruby"};function m(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function i(e,t){return!p[t.localName]||p[t.localName]===e.localName}function r(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),a=f[t];return a&&n&&(r[a]=n.trim()),r}for(var a,o,l=e.document.createElement("div"),c=l,m=[];null!==(a=n());)if("<"!==a[0])c.appendChild(e.document.createTextNode((o=a,u.innerHTML=o,o=u.textContent,u.textContent="",o)));else{if("/"===a[1]){m.length&&m[m.length-1]===a.substr(2).replace(">","")&&(m.pop(),c=c.parentNode);continue}var g,v=s(a.substr(1,a.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),c.appendChild(g);continue}var y=a.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=r(y[1],y[3])))continue;if(!i(c,g))continue;if(y[2]){var b=y[2].split(".");b.forEach((function(e){var t=/^bg_/.test(e),n=t?e.slice(3):e;if(h.hasOwnProperty(n)){var i=t?"background-color":"color",r=h[n];g.style[i]=r}})),g.className=b.join(" ")}m.push(y[1]),c.appendChild(g),c=g}return l}var g=[[1470,1470],[1472,1472],[1475,1475],[1478,1478],[1488,1514],[1520,1524],[1544,1544],[1547,1547],[1549,1549],[1563,1563],[1566,1610],[1645,1647],[1649,1749],[1765,1766],[1774,1775],[1786,1805],[1807,1808],[1810,1839],[1869,1957],[1969,1969],[1984,2026],[2036,2037],[2042,2042],[2048,2069],[2074,2074],[2084,2084],[2088,2088],[2096,2110],[2112,2136],[2142,2142],[2208,2208],[2210,2220],[8207,8207],[64285,64285],[64287,64296],[64298,64310],[64312,64316],[64318,64318],[64320,64321],[64323,64324],[64326,64449],[64467,64829],[64848,64911],[64914,64967],[65008,65020],[65136,65140],[65142,65276],[67584,67589],[67592,67592],[67594,67637],[67639,67640],[67644,67644],[67647,67669],[67671,67679],[67840,67867],[67872,67897],[67903,67903],[67968,68023],[68030,68031],[68096,68096],[68112,68115],[68117,68119],[68121,68147],[68160,68167],[68176,68184],[68192,68223],[68352,68405],[68416,68437],[68440,68466],[68472,68479],[68608,68680],[126464,126467],[126469,126495],[126497,126498],[126500,126500],[126503,126503],[126505,126514],[126516,126519],[126521,126521],[126523,126523],[126530,126530],[126535,126535],[126537,126537],[126539,126539],[126541,126543],[126545,126546],[126548,126548],[126551,126551
vendor: 6,079 bytes, line 2
2],[126553,126553],[126555,126555],[126557,126557],[126559,126559],[126561,126562],[126564,126564],[126567,126570],[126572,126578],[126580,126583],[126585,126588],[126590,126590],[126592,126601],[126603,126619],[126625,126627],[126629,126633],[126635,126651],[1114109,1114109]];function v(e){for(var t=0;t<g.length;t++){var n=g[t];if(e>=n[0]&&e<=n[1])return!0}return!1}function y(e){var t=[],n="";if(!e||!e.childNodes)return"ltr";function i(e,t){for(var n=t.childNodes.length-1;n>=0;n--)e.push(t.childNodes[n])}function r(e){if(!e||!e.length)return null;var t=e.pop(),n=t.textContent||t.innerText;if(n){var a=n.match(/^.*(\n|\r)/);return a?(e.length=0,a[0]):n}return"ruby"===t.tagName?r(e):t.childNodes?(i(e,t),r(e)):void 0}for(i(t,e);n=r(t);)for(var a=0;a<n.length;a++)if(v(n.charCodeAt(a)))return"rtl";return"ltr"}function b(){}function _(e,t,n){b.call(this),this.cue=t,this.cueDiv=m(e,t.text);var i={color:"rgba(255, 255, 255, 1)",backgroundColor:"rgba(0, 0, 0, 0.8)",position:"relative",left:0,right:0,top:0,bottom:0,display:"inline",writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext"};this.applyStyles(i,this.cueDiv),this.div=e.document.createElement("div"),i={direction:y(this.cueDiv),writingMode:""===t.vertical?"horizontal-tb":"lr"===t.vertical?"vertical-lr":"vertical-rl",unicodeBidi:"plaintext",textAlign:"middle"===t.align?"center":t.align,font:n.font,whiteSpace:"pre-line",position:"absolute"},this.applyStyles(i),this.div.appendChild(this.cueDiv);var r=0;switch(t.positionAlign){case"start":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":r=t.position-t.size}""===t.vertical?this.applyStyles({left:this.formatStyle(r,"%"),width:this.formatStyle(t.size,"%")}):this.applyStyles({top:this.formatStyle(r,"%"),height:this.formatStyle(t.size,"%")}),this.move=function(e){this.applyStyles({top:this.formatStyle(e.top,"px"),bottom:this.formatStyle(e.bottom,"px"),left:this.formatStyle(e.left,"px"),right:this.formatStyle(e.right,"px"),height:this.formatStyle(e.height,"px"),width:this.formatStyle(e.width,"px")})}}function T(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var a=(a=e.div.childNodes)&&(a=a[0])&&a.getClientRects&&a.getClientRects();e=e.div.getBoundingClientRect(),t=a?Math.max(a[0]&&a[0].height||0,e.height/a.length):0}this.left=e.left,this.right=e.right,this.top=e.top||r,this.height=e.height||n,this.bottom=e.bottom||r+(e.height||n),this.width=e.width||i,this.lineHeight=void 0!==t?t:e.lineHeight}function k(e,t,n,i){var r=new T(t),a=t.cue,s=function(e){if("number"==typeof e.line&&(e.snapToLines||e.line>=0&&e.line<=100))return e.line;if(!e.track||!e.track.textTrackList||!e.track.textTrackList.mediaElement)return-1;for(var t=e.track,n=t.textTrackList,i=0,r=0;r<n.length&&n[r]!==t;r++)"showing"===n[r].mode&&i++;return-1*++i}(a),o=[];if(a.snapToLines){var l;switch(a.vertical){case"":o=["+y","-y"],l="height";break;case"rl":o=["+x","-x"],l="width";break;case"lr":o=["-x","+x"],l="width"}var c=r.lineHeight,u=c*Math.round(s),d=n[l]+c,h=o[0];Math.abs(u)>d&&(u=u<0?-1:1,u*=Math.ceil(d/c)*c),s<0&&(u+=""===a.vertical?n.height:n.width,o=o.reverse()),r.move(h,u)}else{var f=r.lineHeight/n.height*100;switch(a.lineAlign){case"center":s-=f/2;break;case"end":s-=f}switch(a.vertical){case"":t.applyStyles({top:t.formatStyle(s,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(s,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(s,"%")})}o=["+y","-x","+x","-y"],r=new T(t)}var p=function(e,t){for(var r,a=new T(e),s=1,o=0;o<t.length;o++){for(;e.overlapsOppositeAxis(n,t[o])||e.within(n)&&e.overlapsAny(i);)e.move(t[o]);if(e.within(n))return e;var l=e.intersectPercentage(n);s>l&&(r=new T(e),s=l),e=new T(a)}return r||a}(r,o);t.move(p.toCSSCompatValues(n))}function w(){}b.prototype.applyStyles=function(e,t){for(var n in t=t||this.div,e)e.hasOwnProperty(n)&&(t.style[n]=e[n])},b.prototype.formatStyle=function(e,t){return 0===e?0:e+t},_.prototype=r(b.prototype),_.prototype.constructor=_,T.prototype.move=function(e,t){switch(t=void 0!==t?t:this.lineHeight,e){case"+x":this.left+=t,this.right+=t;break;case"-x":this.left-=t,this.right-=t;break;case"+y":this.top+=t,this.bottom+=t;break;case"-y":this.top-=t,this.bottom-=t}},T.prototype.overlaps=function(e){return this.left<e.right&&this.right>e.left&&this.top<e.bottom&&this.bottom>e.top},T.prototype.overlapsAny=function(e){for(var t=0;t<e.length;t++)if(this.overlaps(e[t]))return!0;return!1},T.prototype.within=function(e){return this.top>=e.top&&this.bottom<=e.bottom&&this.left>=e.left&&this.right<=e.right},T.prototype.overlapsOppositeAxis=function(e,t){switch(t){case"+x":return this.left<e.left;case"-x":return this.right>e.right;case"+y":return this.top<e.top;case"-y":return this.bottom>e.bottom}},T.prototype.intersectPercentage=function(e){return Math.max(0,Math.min(this.right,e.right)-Math.max(this.left,e.left))*Math.max(0,Math.min(this.bottom,e.bottom)-Math.max(this.top,e.top))/(this.height*this.width)},T.prototype.toCSSCompatValues=function(e){return{top:this.top-e.top,bottom:e.bottom-this.bottom,left:this.left-e.left,right:e.right-this.right,height:this.height,width:this.width}},T.getSimpleBoxPosition=function(e){var t=e.div?e.div.offsetHeight:e.tagName?e.offsetHeight:0,n=e.div?e.div.offsetWidth:e.tagName?e.offsetWidth:0,i=e.div?e.div.offsetTop:e.tagName?e.offsetTop:0;return{left:(e=e.div?e.div.getBoundingClientRect():e.tagName?e.getBoundingClientRect():e).left,right:e.right,top:e.top||i,height:e.height||t,bottom:e.bottom||i+(e.height||t),width:e.width||n}},w.StringDecoder=function(){return{decode:function(e){if(!e)return"";if("string"!=typeof e)throw new Error("Error - expected string data.");return decodeURIComponent(encodeURIComponent(e))}}},w.convertCueToDOMTree=function(e,t){return e&&t?m(e,t):null};w.processCues=function(e,t,n){if(!e||!t||!n)return null;for(;n.firstChild;)n.removeChild(n.firstChild);var i=e.document.createElement("div");if(i.style.position="absolute",i.style.left="0",i.style.right="0",i.style.top="0",i.style.bottom="0",
vendor: 3,985 bytes, line 2
2i.style.margin="1.5%",n.appendChild(i),function(e){for(var t=0;t<e.length;t++)if(e[t].hasBeenReset||!e[t].displayState)return!0;return!1}(t)){var r=[],a=T.getSimpleBoxPosition(i),s={font:Math.round(.05*a.height*100)/100+"px sans-serif"};!function(){for(var n,o,l=0;l<t.length;l++)o=t[l],n=new _(e,o,s),i.appendChild(n.div),k(0,n,a,r),o.displayState=n.div,r.push(T.getSimpleBoxPosition(n))}()}else for(var o=0;o<t.length;o++)i.appendChild(t[o].displayState)},w.Parser=function(e,t,n){n||(n=t,t={}),t||(t={}),this.window=e,this.vttjs=t,this.state="INITIAL",this.buffer="",this.decoder=n||new TextDecoder("utf8"),this.regionList=[]},w.Parser.prototype={reportOrThrowError:function(e){if(!(e instanceof a))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t=this;function n(){for(var e=t.buffer,n=0;n<e.length&&"\r"!==e[n]&&"\n"!==e[n];)++n;var i=e.substr(0,n);return"\r"===e[n]&&++n,"\n"===e[n]&&++n,t.buffer=e.substr(n),i}function i(e){e.match(/X-TIMESTAMP-MAP/)?l(e,(function(e,n){if("X-TIMESTAMP-MAP"===e)!function(e){var n=new o;l(e,(function(e,t){switch(e){case"MPEGT":n.integer(e+"S",t);break;case"LOCA":n.set(e+"L",s(t))}}),/[^\d]:/,/,/),t.ontimestampmap&&t.ontimestampmap({MPEGTS:n.get("MPEGTS"),LOCAL:n.get("LOCAL")})}(n)}),/=/):l(e,(function(e,n){if("Region"===e)!function(e){var n=new o;if(l(e,(function(e,t){switch(e){case"id":n.set(e,t);break;case"width":n.percent(e,t);break;case"lines":n.integer(e,t);break;case"regionanchor":case"viewportanchor":var i=t.split(",");if(2!==i.length)break;var r=new o;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;n.set(e+"X",r.get("x")),n.set(e+"Y",r.get("y"));break;case"scroll":n.alt(e,t,["up"])}}),/=/,/\s/),n.has("id")){var i=new(t.vttjs.VTTRegion||t.window.VTTRegion);i.width=n.get("width",100),i.lines=n.get("lines",3),i.regionAnchorX=n.get("regionanchorX",0),i.regionAnchorY=n.get("regionanchorY",100),i.viewportAnchorX=n.get("viewportanchorX",0),i.viewportAnchorY=n.get("viewportanchorY",100),i.scroll=n.get("scroll",""),t.onregion&&t.onregion(i),t.regionList.push({id:n.get("id"),region:i})}}(n)}),/:/)}e&&(t.buffer+=t.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===t.state){if(!/\r\n|\n/.test(t.buffer))return this;var u=(r=n()).match(/^WEBVTT([ \t].*)?$/);if(!u||!u[0])throw new a(a.Errors.BadSignature);t.state="HEADER"}for(var d=!1;t.buffer;){if(!/\r\n|\n/.test(t.buffer))return this;switch(d?d=!1:r=n(),t.state){case"HEADER":/:/.test(r)?i(r):r||(t.state="ID");continue;case"NOTE":r||(t.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){t.state="NOTE";break}if(!r)continue;t.cue=new(t.vttjs.VTTCue||t.window.VTTCue)(0,0,"");try{t.cue.align="center"}catch(e){t.cue.align="middle"}if(t.state="CUE",-1===r.indexOf("--\x3e")){t.cue.id=r;continue}case"CUE":try{c(r,t.cue,t.regionList)}catch(e){t.reportOrThrowError(e),t.cue=null,t.state="BADCUE";continue}t.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("--\x3e");if(!r||h&&(d=!0)){t.oncue&&t.oncue(t.cue),t.cue=null,t.state="ID";continue}t.cue.text&&(t.cue.text+="\n"),t.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(t.state="ID");continue}}}catch(e){t.reportOrThrowError(e),"CUETEXT"===t.state&&t.cue&&t.oncue&&t.oncue(t.cue),t.cue=null,t.state="INITIAL"===t.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var e=this;try{if(e.buffer+=e.decoder.decode(),(e.cue||"HEADER"===e.state)&&(e.buffer+="\n\n",e.parse()),"INITIAL"===e.state)throw new a(a.Errors.BadSignature)}catch(t){e.reportOrThrowError(t)}return e.onflush&&e.onflush(),this}},e.exports=w},2230:e=>{var t={"":1,lr:1,rl:1},n={start:1,center:1,end:1,left:1,right:1,auto:1,"line-left":1,"line-right":1};function i(e){return"string"==typeof e&&(!!n[e.toLowerCase()]&&e.toLowerCase())}function r(e,n,r){this.hasBeenReset=!1;var a="",s=!1,o=e,l=n,c=r,u=null,d="",h=!0,f="auto",p="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return a}
vendor: 2,704 bytes, line 2
2,set:function(e){a=""+e}},pauseOnExit:{enumerable:!0,get:function(){return s},set:function(e){s=!!e}},startTime:{enumerable:!0,get:function(){return o},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");o=e,this.hasBeenReset=!0}},endTime:{enumerable:!0,get:function(){return l},set:function(e){if("number"!=typeof e)throw new TypeError("End time must be set to a number.");l=e,this.hasBeenReset=!0}},text:{enumerable:!0,get:function(){return c},set:function(e){c=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return u},set:function(e){u=e,this.hasBeenReset=!0}},vertical:{enumerable:!0,get:function(){return d},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);if(!1===n)throw new SyntaxError("Vertical: an invalid or illegal direction string was specified.");d=n,this.hasBeenReset=!0}},snapToLines:{enumerable:!0,get:function(){return h},set:function(e){h=!!e,this.hasBeenReset=!0}},line:{enumerable:!0,get:function(){return f},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");f=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return p},set:function(e){var t=i(e);t?(p=t,this.hasBeenReset=!0):console.warn("lineAlign: an invalid or illegal string was specified.")}},position:{enumerable:!0,get:function(){return m},set:function(e){if(e<0||e>100)throw new Error("Position must be between 0 and 100.");m=e,this.hasBeenReset=!0}},positionAlign:{enumerable:!0,get:function(){return g},set:function(e){var t=i(e);t?(g=t,this.hasBeenReset=!0):console.warn("positionAlign: an invalid or illegal string was specified.")}},size:{enumerable:!0,get:function(){return v},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");v=e,this.hasBeenReset=!0}},align:{enumerable:!0,get:function(){return y},set:function(e){var t=i(e);if(!t)throw new SyntaxError("align: an invalid or illegal alignment string was specified.");y=t,this.hasBeenReset=!0}}}),this.displayState=void 0}r.prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)},e.exports=r},3710:e=>{var t={"":!0,up:!0};function n(e){return"number"==typeof e&&e>=0&&e<=100}e.exports=function(){var e=100,i=3,r=0,a=100,s=0,o=100,l="";Object.defineProperties(this,{width:{enumerable:!0,get:function(){return e},set:function(t){if(!n(t))throw new Error("Width must be between 0 and 100.");e=t}},lines:{enumerable:!0,get:function(){return i},set:function(e){if("number"!=typeof e)throw new TypeError("Lines must be set to a number.");i=e}},regionAnchorY:{enumerable:!0,get:function(){return a}
2,set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");a=e}},regionAnchorX:{enumerable:!0,get:function(){return r},set:function(e){if(!n(e))throw new Error("RegionAnchorY must be between 0 and 100.");r=e}},viewportAnchorY:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");o=e}},viewportAnchorX:{enumerable:!0,get:function(){return s},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");s=e}},scroll:{enumerable:!0,get:function(){return l},set:function(e){var n=function(e){return"string"==typeof e&&!!t[e.toLowerCase()]&&e.toLowerCase()}(e);!1===n?console.warn("Scroll: an invalid or illegal string was specified."):l=n}}})}},5893:()=>{},8593:e=>{"use strict";e.exports=JSON.parse('{"name":"axios","version":"0.21.4","description":"Promise based HTTP client for the browser and node.js","main":"index.js","scripts":{"test":"grunt test","start":"node ./sandbox/server.js","build":"NODE_ENV=production grunt build","preversion":"npm test","version":"npm run build && grunt version && git add -A dist && git add CHANGELOG.md bower.json package.json","postversion":"git push && git push --tags","examples":"node ./examples/server.js","coveralls":"cat coverage/lcov.info | ./node_modules/coveralls/bin/coveralls.js","fix":"eslint --fix lib/**/*.js"},"repository":{"type":"git","url":"https://github.com/axios/axios.git"},"keywords":["xhr","http","ajax","promise","node"],"author":"Matt Zabriskie","license":"MIT","bugs":{"url":"https://github.com/axios/axios/issues"},"homepage":"https://axios-http.com","devDependencies":{"coveralls":"^3.0.0","es6-promise":"^4.2.4","grunt":"^1.3.0","grunt-banner":"^0.6.0","grunt-cli":"^1.2.0","grunt-contrib-clean":"^1.1.0","grunt-contrib-watch":"^1.0.0","grunt-eslint":"^23.0.0","grunt-karma":"^4.0.0","grunt-mocha-test":"^0.13.3","grunt-ts":"^6.0.0-beta.19","grunt-webpack":"^4.0.2","istanbul-instrumenter-loader":"^1.0.0","jasmine-core":"^2.4.1","karma":"^6.3.2","karma-chrome-launcher":"^3.1.0","karma-firefox-launcher":"^2.1.0","karma-jasmine":"^1.1.1","karma-jasmine-ajax":"^0.1.13","karma-safari-launcher":"^1.0.0","karma-sauce-launcher":"^4.3.6","karma-sinon":"^1.0.5","karma-sourcemap-loader":"^0.3.8","karma-webpack":"^4.0.2","load-grunt-tasks":"^3.5.2","minimist":"^1.2.0","mocha":"^8.2.1","sinon":"^4.5.0","terser-webpack-plugin":"^4.2.3","typescript":"^4.0.5","url-search-params":"^0.10.0","webpack":"^4.44.2","webpack-dev-server":"^3.11.0"},"browser":{"./lib/adapters/http.js":"./lib/adapters/xhr.js"},"jsdelivr":"dist/axios.min.js","unpkg":"dist/axios.min.js","typings":"./index.d.ts","dependencies":{"follow-redirects":"^1.14.0"},"bundlesize":[{"path":"./dist/axios.min.js","threshold":"5kB"}]}')}},n={};function r(e){var i=n[e];if(void 0!==i)return i.exports;var a=n[e]={id:e,loaded:!1,exports:{}};return t[e].call(a.exports,a,a.exports,r),a.loaded=!0,a.exports}r.m=t,e=[],r.O=(t,n,i,a)=>{if(!n){var s=1/0;for(u=0;u<e.length;u++){for(var[n,i,a]=e[u],o=!0,l=0;l<n.length;l++)(!1&a||s>=a)&&Object.keys(r.O).every((e=>r.O[e](n[l])))?n.splice(l--,1):(o=!1,a<s&&(s=a));if(o){e.splice(u--,1);var c=i();void 0!==c&&(t=c)}}return t}a=a||0;for(var u=e.length;u>0&&e[u-1][2]>a;u--)e[u]=e[u-1];e[u]=[n,i,a]},r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{var e={702:0,255:0,20:0,340:0,283:0,134:0};r.O.j=t=>0===e[t];var t=(t,n)=>{var i,a,[s,o,l]=n,c=0;if(s.some((t=>0!==e[t]))){for(i in o)r.o(o,i)&&(r.m[i]=o[i]);if(l)var u=l(r)}for(t&&t(n);c<s.length;c++)a=s[c],r.o(e,a)&&e[a]&&e[a][0](),e[a]=0;return r.O(u)},n=self.webpackChunk=self.webpackChunk||[];
2n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})(),r.O(void 0,[255,20,340,283,134],(()=>r(2168))),r.O(void 0,[255,20,340,283,134],(()=>r(3282))),r.O(void 0,[255,20,340,283,134],(()=>r(641))),r.O(void 0,[255,20,340,283,134],(()=>r(5123))),r.O(void 0,[255,20,340,283,134],(()=>r(5553)));var a=r.O(void 0,[255,20,340,283,134],(()=>r(8589)));a=r.O(a)})();
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.