vendor: 3,081 bytes, line 1
1/*! For license information please see videopress.js.LICENSE.txt */!function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define([],t):"object"==typeof exports?exports.videopress=t():e.videopress=t()}(this,()=>(()=>{var e={3490:(e,t,n)=>{"use strict";var i=n(8908);e.exports=function(e,t){return void 0===t&&(t=!1),function(n,r,s){if(n)e(n);else if(r.statusCode>=400&&r.statusCode<=599){var o=s;if(t)if(i.TextDecoder){var a=(void 0===(l=r.headers&&r.headers["content-type"])&&(l=""),l.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"));try{o=new TextDecoder(a).decode(s)}catch(e){}}else o=String.fromCharCode.apply(null,new Uint8Array(s));e({cause:o})}else e(null,s);var l}}},9603:(e,t,n)=>{"use strict";var i=n(8908),r=n(434),s=n(7376);l.httpHandler=n(3490);var o=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};function a(e,t,n){var i=e;return s(t)?(n=t,"string"==typeof e&&(i={uri:e})):i=r({},t,{uri:e}),i.callback=n,i}function l(e,t,n){return u(t=a(e,t,n))}function u(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),v)try{e=JSON.parse(e)}catch(e){}return e}function r(e){return clearTimeout(d),e instanceof Error||(e=new Error(""+(e||"Unknown XMLHttpRequest Error"))),e.statusCode=0,n(e,y)}function s(){if(!u){var t;clearTimeout(d),t=e.useXDR&&void 0===c.status?200:1223===c.status?204:c.status;var r=y,s=null;return 0!==t?(r={body:i(),statusCode:t,method:p,headers:{},url:h,rawRequest:c},c.getAllResponseHeaders&&(r.headers=o(c.getAllResponseHeaders()))):s=new Error("Internal XMLHttpRequest Error"),n(s,r,r.body)}}var a,u,c=e.xhr||null;c||(c=e.cors||e.useXDR?new l.XDomainRequest:new l.XMLHttpRequest);var d,h=c.url=e.uri||e.url,p=c.method=e.method||"GET",f=e.body||e.data,m=c.headers=e.headers||{},g=!!e.sync,v=!1,y={body:void 0,headers:{},statusCode:0,method:p,url:h,rawRequest:c};if("json"in e&&!1!==e.json&&(v=!0,m.accept||m.Accept||(m.Accept="application/json"),"GET"!==p&&"HEAD"!==p&&(m["content-type"]||m["Content-Type"]||(m["Content-Type"]="application/json"),f=JSON.stringify(!0===e.json?f:e.json))),c.onreadystatechange=function(){4===c.readyState&&setTimeout(s,0)},c.onload=s,c.onerror=r,c.onprogress=function(){},c.onabort=function(){u=!0},c.ontimeout=r,c.open(p,h,!g,e.username,e.password),g||(c.withCredentials=!!e.withCredentials),!g&&e.timeout>0&&(d=setTimeout(function(){if(!u){u=!0,c.abort("timeout");var e=new Error("XMLHttpRequest timeout");e.code="ETIMEDOUT",r(e)}}
vendor: 6,270 bytes, line 1
1,e.timeout)),c.setRequestHeader)for(a in m)m.hasOwnProperty(a)&&c.setRequestHeader(a,m[a]);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=l,e.exports.default=l,l.XMLHttpRequest=i.XMLHttpRequest||function(){},l.XDomainRequest="withCredentials"in new l.XMLHttpRequest?l.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){l["delete"===e?"del":e]=function(t,n,i){return(n=a(t,n,i)).method=e.toUpperCase(),u(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.assign=function(e,t){if(null===e||"object"!=typeof e)throw new TypeError("target is not an object");for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e},t.find=function(e,t,n){if(void 0===n&&(n=Array.prototype),e&&"function"==typeof n.find)return n.find.call(e,t);for(var i=0;i<e.length;i++)if(Object.prototype.hasOwnProperty.call(e,i)){var r=e[i];if(t.call(void 0,r,i,e))return r}},t.freeze=n,t.MIME_TYPE=i,t.NAMESPACE=r},6129:(e,t,n)=>{var i=n(2167),r=n(1146),s=n(1045),o=n(6925),a=r.DOMImplementation,l=i.NAMESPACE,u=o.ParseError,c=o.XMLReader;function d(e){return e.replace(/\r[\n\u0085]/g,"\n").replace(/[\r\u0085\u2028]/g,"\n")}function h(e){this.options=e||{locator:{}}}function p(){this.cdata=!1}function f(e,t){t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber}function m(e){if(e)return"\n@"+(e.systemId||"")+"#[line:"+e.lineNumber+",col:"+e.columnNumber+"]"}function g(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 v(e,t){e.currentElement?e.currentElement.appendChild(t):e.doc.appendChild(t)}h.prototype.parseFromString=function(e,t){var n=this.options,i=new c,r=n.domBuilder||new p,o=n.errorHandler,a=n.locator,u=n.xmlns||{},h=/\/x?html?$/.test(t),f=h?s.HTML_ENTITIES:s.XML_ENTITIES;a&&r.setDocumentLocator(a),i.errorHandler=function(e,t,n){if(!e){if(t instanceof p)return t;e=t}var i={},r=e instanceof Function;function s(t){var s=e[t];!s&&r&&(s=2==e.length?function(n){e(t,n)}:e),i[t]=s&&function(e){s("[xmldom "+t+"] "+e+m(n))}||function(){}}return n=n||{},s("warning"),s("error"),s("fatalError"),i}(o,r,a),i.domBuilder=n.domBuilder||r,h&&(u[""]=l.HTML),u.xml=u.xml||l.XML;var g=n.normalizeLineEndings||d;return e&&"string"==typeof e?i.parse(g(e),u,f):i.errorHandler.error("invalid doc source"),r.doc},p.prototype={startDocument:function(){this.doc=(new a).createDocument(null,null,null),this.locator&&(this.doc.documentURI=this.locator.systemId)},startElement:function(e,t,n,i){var r=this.doc,s=r.createElementNS(e,n||t),o=i.length;v(this,s),this.currentElement=s,this.locator&&f(this.locator,s);for(var a=0;a<o;a++){e=i.getURI(a);var l=i.getValue(a),u=(n=i.getQName(a),r.createAttributeNS(e,n));this.locator&&f(i.getLocator(a),u),u.value=u.nodeValue=l,s.setAttributeNode(u)}},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),v(this,n)},ignorableWhitespace:function(e,t,n){},characters:function(e,t,n){if(e=g.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=g.apply(this,arguments);var i=this.doc.createComment(e);this.locator&&f(this.locator,i),v(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),v(this,r),this.doc.doctype=r}},warning:function(e){console.warn("[xmldom warning] "+e,m(this.locator))},error:function(e){console.error("[xmldom error] "+e,m(this.locator))},fatalError:function(e){throw new u(e,this.locator)}},"endDTD,startEntity,endEntity,attributeDecl,elementDecl,externalEntityDecl,internalEntityDecl,resolveEntity,getExternalSubset,notationDecl,unparsedEntityDecl".replace(/\w+/g,function(e){p.prototype[e]=function(){return null}}),t.DOMParser=h},1146:(e,t,n)=>{var i=n(2167),r=i.find,s=i.NAMESPACE;function o(e){return""!==e}function a(e,t){return e.hasOwnProperty(t)||(e[t]=!0),e}function l(e){if(!e)return[];var t=function(e){return e?e.split(/[\t\n\f\r ]+/).filter(o):[]}(e);return Object.keys(t.reduce(a,{}))}function u(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function c(e,t){var n=e.prototype;if(!(n instanceof t)){function i(){}i.prototype=t.prototype,u(n,i=new i),e.prototype=n=i}n.constructor!=e&&("function"!=typeof e&&console.error("unknown Class:"+e),n.constructor=e)}var d={},h=d.ELEMENT_NODE=1,p=d.ATTRIBUTE_NODE=2,f=d.TEXT_NODE=3,m=d.CDATA_SECTION_NODE=4,g=d.ENTITY_REFERENCE_NODE=5,v=d.ENTITY_NODE=6,y=d.PROCESSING_INSTRUCTION_NODE=7,b=d.COMMENT_NODE=8,_=d.DOCUMENT_NODE=9,T=d.DOCUMENT_TYPE_NODE=10,j=d.DOCUMENT_FRAGMENT_NODE=11,w=d.NOTATION_NODE=12,S={},x={},k=(S.INDEX_SIZE_ERR=(x[1]="Index size error",1),S.DOMSTRING_SIZE_ERR=(x[2]="DOMString size error",2),S.HIERARCHY_REQUEST_ERR=(x[3]="Hierarchy request error",3)),E=(S.WRONG_DOCUMENT_ERR=(x[4]="Wrong document",4),S.INVALID_CHARACTER_ERR=(x[5]="Invalid character",5),S.NO_DATA_ALLOWED_ER
vendor: 2,505 bytes, line 1
1R=(x[6]="No data allowed",6),S.NO_MODIFICATION_ALLOWED_ERR=(x[7]="No modification allowed",7),S.NOT_FOUND_ERR=(x[8]="Not found",8)),C=(S.NOT_SUPPORTED_ERR=(x[9]="Not supported",9),S.INUSE_ATTRIBUTE_ERR=(x[10]="Attribute in use",10));function I(e,t){if(t instanceof Error)var n=t;else n=this,Error.call(this,x[e]),this.message=x[e],Error.captureStackTrace&&Error.captureStackTrace(this,I);return n.code=e,t&&(this.message=this.message+": "+t),n}function D(){}function A(e,t){this._node=e,this._refresh=t,M(this)}function M(e){var t=e._node._inc||e._node.ownerDocument._inc;if(e._inc!==t){var n=e._refresh(e._node);if(ey(e,"length",n.length),!e.$$length||n.length<e.$$length)for(var i=n.length;(i in e);i++)Object.prototype.hasOwnProperty.call(e,i)&&delete e[i];u(n,e),e._inc=t}}function O(){}function P(e,t){for(var n=e.length;n--;)if(e[n]===t)return n}function N(e,t,n,i){if(i?t[P(t,i)]=n:t[t.length++]=n,e){n.ownerElement=e;var r=e.ownerDocument;r&&(i&&q(r,e,i),function(e,t,n){e&&e._inc++,n.namespaceURI===s.XMLNS&&(t._nsMap[n.prefix?n.localName:""]=n.value)}(r,e,n))}}function L(e,t,n){var i=P(t,n);if(!(i>=0))throw new I(E,new Error(e.tagName+"@"+n));for(var r=t.length-1;i<r;)t[i]=t[++i];if(t.length=r,e){var s=e.ownerDocument;s&&(q(s,e,n),n.ownerElement=null)}}function R(){}function U(){}function B(e){return("<"==e?"<":">"==e&&">")||"&"==e&&"&"||'"'==e&&"""||"&#"+e.charCodeAt()+";"}function z(e,t){if(t(e))return!0;if(e=e.firstChild)do{if(z(e,t))return!0}while(e=e.nextSibling)}function F(){this.ownerDocument=this}function q(e,t,n,i){e&&e._inc++,n.namespaceURI===s.XMLNS&&delete t._nsMap[n.prefix?n.localName:""]}function V(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,s=0;r;)i[s++]=r,r=r.nextSibling;i.length=s,delete i[i.length]}}}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,t.parentNode=null,t.previousSibling=null,t.nextSibling=null,V(e.ownerDocument,e),t}function W(e){return e&&e.nodeType===U.DOCUMENT_TYPE_NODE}function G(e){return e&&e.nodeType===U.ELEMENT_NODE}function $(e){return e&&e.nodeType===U.TEXT_NODE}function Q(e,t){var n=e.childNodes||[];if(r(n,G)||W(t))return!1;var i=r(n,W);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function Z(e,t){var n=e.childNodes||[];if(r(n,function(e){return G(e)&&e!==t}))return!1;var i=r(n,W);return!(t&&i&&n.indexOf(i)>n.indexOf(t))}function Y(e,t,n){var i=e.childNodes||[],s=t.childNodes||[];
vendor: 4,318 bytes, line 1
1if(t.nodeType===U.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||r(s,$))throw new I(k,"More than one element or text in fragment");if(1===o.length&&!Q(e,n))throw new I(k,"Element in fragment can not be inserted before doctype")}if(G(t)&&!Q(e,n))throw new I(k,"Only one element can be added and only after doctype");if(W(t)){if(r(i,W))throw new I(k,"Only one doctype is allowed");var a=r(i,G);if(n&&i.indexOf(a)<i.indexOf(n))throw new I(k,"Doctype can only be inserted before an element");if(!n&&a)throw new I(k,"Doctype can not be appended since element is present")}}function X(e,t,n){var i=e.childNodes||[],s=t.childNodes||[];if(t.nodeType===U.DOCUMENT_FRAGMENT_NODE){var o=s.filter(G);if(o.length>1||r(s,$))throw new I(k,"More than one element or text in fragment");if(1===o.length&&!Z(e,n))throw new I(k,"Element in fragment can not be inserted before doctype")}if(G(t)&&!Z(e,n))throw new I(k,"Only one element can be added and only after doctype");if(W(t)){if(r(i,function(e){return W(e)&&e!==n}))throw new I(k,"Only one doctype is allowed");var a=r(i,G);if(n&&i.indexOf(a)<i.indexOf(n))throw new I(k,"Doctype can only be inserted before an element")}}function K(e,t,n,i){(function(e,t,n){if(!function(e){return e&&(e.nodeType===U.DOCUMENT_NODE||e.nodeType===U.DOCUMENT_FRAGMENT_NODE||e.nodeType===U.ELEMENT_NODE)}(e))throw new I(k,"Unexpected parent node type "+e.nodeType);if(n&&n.parentNode!==e)throw new I(E,"child not in parent");if(!function(e){return e&&(G(e)||$(e)||W(e)||e.nodeType===U.DOCUMENT_FRAGMENT_NODE||e.nodeType===U.COMMENT_NODE||e.nodeType===U.PROCESSING_INSTRUCTION_NODE)}(t)||W(t)&&e.nodeType!==U.DOCUMENT_NODE)throw new I(k,"Unexpected node type "+t.nodeType+" for parent node type "+e.nodeType)})(e,t,n),e.nodeType===U.DOCUMENT_NODE&&(i||Y)(e,t,n);var r=t.parentNode;if(r&&r.removeChild(t),t.nodeType===j){var s=t.firstChild;if(null==s)return t;var o=t.lastChild}else s=o=t;var a=n?n.previousSibling:e.lastChild;s.previousSibling=a,o.nextSibling=n,a?a.nextSibling=s:e.firstChild=s,null==n?e.lastChild=o:n.previousSibling=o;do{s.parentNode=e}while(s!==o&&(s=s.nextSibling));return V(e.ownerDocument||e,e),t.nodeType==j&&(t.firstChild=t.lastChild=null),t}function J(){this._nsMap={}}function ee(){}function et(){}function en(){}function ei(){}function er(){}function es(){}function eo(){}function ea(){}function el(){}function eu(){}function ec(){}function ed(){}function eh(e,t){var n=[],i=9==this.nodeType&&this.documentElement||this,r=i.prefix,s=i.namespaceURI;if(s&&null==r&&null==(r=i.lookupPrefix(s)))var o=[{namespace:s,prefix:null}];return em(this,n,e,t,o),n.join("")}function ep(e,t,n){var i=e.prefix||"",r=e.namespaceURI;if(!r)return!1;if("xml"===i&&r===s.XML||r===s.XMLNS)return!1;for(var o=n.length;o--;){var a=n[o];if(a.prefix===i)return a.namespace!==r}return!0}function ef(e,t,n){e.push(" ",t,'="',n.replace(/[<>&"\t\n\r]/g,B),'"')}function em(e,t,n,i,r){if(r||(r=[]),i){if(!(e=i(e)))return;if("string"==typeof e)return void t.push(e)}switch(e.nodeType){case h:var o=e.attributes,a=o.length,l=e.firstChild,u=e.tagName,c=u;if(!(n=s.isHTML(e.namespaceURI)||n)&&!e.prefix&&e.namespaceURI){for(var d,v=0;v<o.length;v++)if("xmlns"===o.item(v).name){d=o.item(v).value;break}if(!d){for(var w=r.length-1;w>=0;w--)if(""===(S=r[w]).prefix&&S.namespace===e.namespaceURI){d=S.namespace;break}}if(d!==e.namespaceURI)for(w=r.length-1;w>=0;w--){var S;if((S=r[w]).namespace===e.namespaceURI){S.prefix&&(c=S.prefix+":"+u);break}}}t.push("<",c);for(var x=0;x<a;x++)"xmlns"==(k=o.item(x)).prefix?r.push({prefix:k.localName,namespace:k.value}):"xmlns"==k.nodeName&&r.push({prefix:"",namespace:k.value});for(x=0;x<a;x++){var k,E,C;ep(k=o.item(x),0,r)&&(ef(t,(E=k.prefix||"")?"xmlns:"+E:"xmlns",C=k.namespaceURI),r.push({prefix:E,namespace:C})),em(k,t,n,i,r)}if(u===c&&ep(e,0,r)&&(ef(t,(E=e.prefix||"")?"xmlns:"+E:"xmlns",C=e.namespaceURI),r.push({prefix:E,namespace:C})),l||n&&!/^(?:meta|link|img|br|hr|input)$/i.test(u)){if(t.push(">"),n&&/^script$/i.test(u))for(;l;)l.data?t.push(l.data):em(l,t,n,i,r.slice()),l=l.nextSibling;else for(;l;)em(l,t,n,i,r.slice()),l=l.nextSibling;t.push("</",c,">")}else t.push("/>");return;case _:case j:for(l=e.firstChild;l;)em(l,t,n,i,r.slice()),l=l.nextSibling;return;case p:return ef(t,e.name,e.value);case f:return t.push(e.data.replace(/[<&>]/g,B));
vendor: 6,247 bytes, line 1
1case m:return t.push("<![CDATA[",e.data,"]]>");case b:return t.push("<!--",e.data,"-->");case T:var I=e.publicId,D=e.systemId;if(t.push("<!DOCTYPE ",e.name),I)t.push(" PUBLIC ",I),D&&"."!=D&&t.push(" ",D),t.push(">");else if(D&&"."!=D)t.push(" SYSTEM ",D,">");else{var A=e.internalSubset;A&&t.push(" [",A,"]"),t.push(">")}return;case y:return t.push("<?",e.target," ",e.data,"?>");case g:return t.push("&",e.nodeName,";");default:t.push("??",e.nodeName)}}function eg(e,t,n){var i;switch(t.nodeType){case h:(i=t.cloneNode(!1)).ownerDocument=e;case j:break;case p:n=!0}if(i||(i=t.cloneNode(!1)),i.ownerDocument=e,i.parentNode=null,n)for(var r=t.firstChild;r;)i.appendChild(eg(e,r,n)),r=r.nextSibling;return i}function ev(e,t,n){var i=new t.constructor;for(var r in t)if(Object.prototype.hasOwnProperty.call(t,r)){var s=t[r];"object"!=typeof s&&s!=i[r]&&(i[r]=s)}switch(t.childNodes&&(i.childNodes=new D),i.ownerDocument=e,i.nodeType){case h:var o=t.attributes,a=i.attributes=new O,l=o.length;a._ownerElement=i;for(var u=0;u<l;u++)i.setAttributeNode(ev(e,o.item(u),!0));break;case p:n=!0}if(n)for(var c=t.firstChild;c;)i.appendChild(ev(e,c,n)),c=c.nextSibling;return i}function ey(e,t,n){e[t]=n}S.INVALID_STATE_ERR=(x[11]="Invalid state",11),S.SYNTAX_ERR=(x[12]="Syntax error",12),S.INVALID_MODIFICATION_ERR=(x[13]="Invalid modification",13),S.NAMESPACE_ERR=(x[14]="Invalid namespace",14),S.INVALID_ACCESS_ERR=(x[15]="Invalid access",15),I.prototype=Error.prototype,u(S,I),D.prototype={length:0,item:function(e){return e>=0&&e<this.length?this[e]:null},toString:function(e,t){for(var n=[],i=0;i<this.length;i++)em(this[i],n,e,t);return n.join("")},filter:function(e){return Array.prototype.filter.call(this,e)},indexOf:function(e){return Array.prototype.indexOf.call(this,e)}},A.prototype.item=function(e){return M(this),this[e]||null},c(A,D),O.prototype={length:0,item:D.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 I(C);var n=this.getNamedItem(e.nodeName);return N(this._ownerElement,this,e,n),n},setNamedItemNS:function(e){var t,n=e.ownerElement;if(n&&n!=this._ownerElement)throw new I(C);return t=this.getNamedItemNS(e.namespaceURI,e.localName),N(this._ownerElement,this,e,t),t},removeNamedItem:function(e){var t=this.getNamedItem(e);return L(this._ownerElement,this,t),t},removeNamedItemNS:function(e,t){var n=this.getNamedItemNS(e,t);return L(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}},R.prototype={hasFeature:function(e,t){return!0},createDocument:function(e,t,n){var i=new F;if(i.implementation=this,i.childNodes=new D,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 es;return i.name=e,i.nodeName=e,i.publicId=t||"",i.systemId=n||"",i}},U.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 K(this,e,t)},replaceChild:function(e,t){K(this,e,t,X),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 ev(this.ownerDocument||this,this,e)},normalize:function(){for(var e=this.firstChild;e;){var t=e.nextSibling;t&&t.nodeType==f&&e.nodeType==f?(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(Object.prototype.hasOwnProperty.call(n,i)&&n[i]===e)return i}t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},lookupNamespaceURI:function(e){for(var t=this;t;){var n=t._nsMap;if(n&&Object.prototype.hasOwnProperty.call(n,e))return n[e];t=t.nodeType==p?t.ownerDocument:t.parentNode}return null},isDefaultNamespace:function(e){return null==this.lookupPrefix(e)}},u(d,U),u(d,U.prototype),F.prototype={nodeName:"#document",nodeType:_,doctype:null,documentElement:null,_inc:1,insertBefore:function(e,t){if(e.nodeType==j){for(var n=e.firstChild;n;){var i=n.nextSibling;this.insertBefore(n,t),n=i}return e}return K(this,e,t),e.ownerDocument=this,null===this.documentElement&&e.nodeType===h&&(this.documentElement=e),e},removeChild:function(e){return this.documentElement==e&&(this.documentElement=null),H(this,e)},replaceChild:function(e,t){K(this,e,t,X),e.ownerDocument=this,t&&this.removeChild(t),G(e)&&(this.documentElement=e)},importNode:function(e,t){return eg(this,e,t)},getElementById:function(e){var t=null;return z(this.documentElement,function(n){if(n.nodeType==h&&n.getAttribute("id")==e)return t=n,!0}),t},getElementsByClassName:function(e){var t=l(e);return new A(this,function(n){var i=[];return t.length>0&&z(n.documentElement,function(r){if(r!==n&&r.nodeType===h){var s=r.getAttribute("class");if(s){var o=e===s;if(!o){var a=l(s);o=t.every((u=a,function(e){return u&&-1!==u.indexOf(e)}))}o&&i.push(r)}}var u}),i})},createElement:function(e){var t=new J;return t.ownerDocument=this,t.nodeName=e,t.tagName=e,t.localName=e,t.childNodes=new D,(t.attributes=new O)._ownerElement=t,t},createDocumentFragment:function(){var e=new eu;return e.ownerDocument=this,e.childNodes=new D,e},createTextNode:function(e){var t=new en;return t.ownerDocument=this,t.appendData(e),t},createComment:function(e){var t=new ei;return t.ownerDocument=this,t.appendData(e),t},createCDATASection:function(e){var t=new er;return t.ownerDocument=this,t.appendData(e),t},createProcessingInstruction:function(e,t){var n=new ec;return n.ownerDocument=this,n.tagName=n.nodeName=n.target=e,n.nodeValue=n.data=t,n},createAttribute:function(e){var t=new ee;return t.ownerDocument=this,t.name=e,t.nodeName=e,t.localName=e,t.specified=!0,t},createEntityReference:function(e){var t=new el;return t.ownerDocument=this,t.nodeName=e,t}
vendor: 4,413 bytes, line 1
1,createElementNS:function(e,t){var n=new J,i=t.split(":"),r=n.attributes=new O;return n.childNodes=new D,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 ee,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}},c(F,U),J.prototype={nodeType:h,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)},appendChild:function(e){return e.nodeType===j?this.insertBefore(e,null):function(e,t){return t.parentNode&&t.parentNode.removeChild(t),t.parentNode=e,t.previousSibling=e.lastChild,t.nextSibling=null,t.previousSibling?t.previousSibling.nextSibling=t:e.firstChild=t,e.lastChild=t,V(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 A(this,function(t){var n=[];return z(t,function(i){i===t||i.nodeType!=h||"*"!==e&&i.tagName!=e||n.push(i)}),n})},getElementsByTagNameNS:function(e,t){return new A(this,function(n){var i=[];return z(n,function(r){r===n||r.nodeType!==h||"*"!==e&&r.namespaceURI!==e||"*"!==t&&r.localName!=t||i.push(r)}),i})}},F.prototype.getElementsByTagName=J.prototype.getElementsByTagName,F.prototype.getElementsByTagNameNS=J.prototype.getElementsByTagNameNS,c(J,U),ee.prototype.nodeType=p,c(ee,U),et.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(x[k])},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}},c(et,U),en.prototype={nodeName:"#text",nodeType:f,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}},c(en,et),ei.prototype={nodeName:"#comment",nodeType:b},c(ei,et),er.prototype={nodeName:"#cdata-section",nodeType:m},c(er,et),es.prototype.nodeType=T,c(es,U),eo.prototype.nodeType=w,c(eo,U),ea.prototype.nodeType=v,c(ea,U),el.prototype.nodeType=g,c(el,U),eu.prototype.nodeName="#document-fragment",eu.prototype.nodeType=j,c(eu,U),ec.prototype.nodeType=y,c(ec,U),ed.prototype.serializeToString=function(e,t,n){return eh.call(e,t,n)},U.prototype.toString=eh;try{if(Object.defineProperty){function eb(e){switch(e.nodeType){case h:case j:var t=[];for(e=e.firstChild;e;)7!==e.nodeType&&8!==e.nodeType&&t.push(eb(e)),e=e.nextSibling;return t.join("");default:return e.nodeValue}}Object.defineProperty(A.prototype,"length",{get:function(){return M(this),this.$$length}}),Object.defineProperty(U.prototype,"textContent",{get:function(){return eb(this)},set:function(e){switch(this.nodeType){case h:case j: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}}}),ey=function(e,t,n){e["$$"+t]=n}}}catch(e){}t.DocumentType=es,t.DOMException=I,t.DOMImplementation=R,t.Element=J,t.Node=U,t.NodeList=D,t.XMLSerializer
1=ed},1045:(e,t,n)=>{"use strict";var i=n(2167).freeze;t.XML_ENTITIES=i({amp:"&",apos:"'",gt:">",lt:"<",quot:'"'}),t.HTML_ENTITIES=i({Aacute:"\xc1",aacute:"\xe1",Abreve:"Ä",abreve:"Ä",ac:"â¾",acd:"â¿",acE:"â¾Ì³",Acirc:"\xc2",acirc:"\xe2",acute:"\xb4",Acy:"Ð",acy:"а",AElig:"\xc6",aelig:"\xe6",af:"â¡",Afr:"\uD835\uDD04",afr:"\uD835\uDD1E",Agrave:"\xc0",agrave:"\xe0",alefsym:"âµ",aleph:"âµ",Alpha:"Î",alpha:"α",Amacr:"Ä",amacr:"Ä",amalg:"⨿",AMP:"&",amp:"&",And:"â©",and:"â§",andand:"â©",andd:"â©",andslope:"â©",andv:"â©",ang:"â ",ange:"⦤",angle:"â ",angmsd:"â¡",angmsdaa:"⦨",angmsdab:"⦩",angmsdac:"⦪",angmsdad:"⦫",angmsdae:"⦬",angmsdaf:"â¦",angmsdag:"⦮",angmsdah:"⦯",angrt:"â",angrtvb:"â¾",angrtvbd:"â¦",angsph:"â¢",angst:"\xc5",angzarr:"â¼",Aogon:"Ä",aogon:"Ä
",Aopf:"\uD835\uDD38",aopf:"\uD835\uDD52",ap:"â",apacir:"⩯",apE:"â©°",ape:"â",apid:"â",apos:"'",ApplyFunction:"â¡",approx:"â",approxeq:"â",Aring:"\xc5",aring:"\xe5",Ascr:"\uD835\uDC9C",ascr:"\uD835\uDCB6",Assign:"â",ast:"*",asymp:"â",asympeq:"â",Atilde:"\xc3",atilde:"\xe3",Auml:"\xc4",auml:"\xe4",awconint:"â³",awint:"â¨",backcong:"â",backepsilon:"϶",backprime:"âµ",backsim:"â½",backsimeq:"â",Backslash:"â",Barv:"â«§",barvee:"â½",Barwed:"â",barwed:"â
",barwedge:"â
",bbrk:"âµ",bbrktbrk:"â¶",bcong:"â",Bcy:"Ð",bcy:"б",bdquo:"â",becaus:"âµ",Because:"âµ",because:"âµ",bemptyv:"⦰",bepsi:"϶",bernou:"â¬",Bernoullis:"â¬",Beta:"Î",beta:"β",beth:"â¶",between:"â¬",Bfr:"\uD835\uDD05",bfr:"\uD835\uDD1F",bigcap:"â",bigcirc:"â¯",bigcup:"â",bigodot:"â¨",bigoplus:"â¨",bigotimes:"â¨",bigsqcup:"â¨",bigstar:"â
",bigtriangledown:"â½",bigtriangleup:"â³",biguplus:"â¨",bigvee:"â",bigwedge:"â",bkarow:"â¤",blacklozenge:"â§«",blacksquare:"âª",blacktriangle:"â´",blacktriangledown:"â¾",blacktriangleleft:"â",blacktriangleright:"â¸",blank:"â£",blk12:"â",blk14:"â",blk34:"â",block:"â",bne:"=â¥",bnequiv:"â¡â¥",bNot:"â«",bnot:"â",Bopf:"\uD835\uDD39",bopf:"\uD835\uDD53",bot:"â¥",bottom:"â¥",bowtie:"â",boxbox:"â§",boxDL:"â",boxDl:"â",boxdL:"â",boxdl:"â",boxDR:"â",boxDr:"â",boxdR:"â",boxdr:"â",boxH:"â",boxh:"â",boxHD:"â¦",boxHd:"â¤",boxhD:"â¥",boxhd:"â¬",boxHU:"â©",boxHu:"â§",boxhU:"â¨",boxhu:"â´",boxminus:"â",boxplus:"â",boxtimes:"â ",boxUL:"â",boxUl:"â",boxuL:"â",boxul:"â",boxUR:"â",boxUr:"â",boxuR:"â",boxur:"â",boxV:"â",boxv:"â",boxVH:"â¬",boxVh:"â«",boxvH:"âª",boxvh:"â¼",boxVL:"â£",boxVl:"â¢",boxvL:"â¡",boxvl:"â¤",boxVR:"â ",boxVr:"â",boxvR:"â",boxvr:"â",bprime:"âµ",Breve:"Ë",breve:"Ë",brvbar:"\xa6",Bscr:"â¬",bscr:"\uD835\uDCB7",bsemi:"â",bsim:"â½",b
1sime:"â",bsol:"\\",bsolb:"â§
",bsolhsub:"â",bull:"â¢",bullet:"â¢",bump:"â",bumpE:"⪮",bumpe:"â",Bumpeq:"â",bumpeq:"â",Cacute:"Ä",cacute:"Ä",Cap:"â",cap:"â©",capand:"â©",capbrcup:"â©",capcap:"â©",capcup:"â©",capdot:"â©",CapitalDifferentialD:"â
",caps:"â©ï¸",caret:"â",caron:"Ë",Cayleys:"â",ccaps:"â©",Ccaron:"Ä",ccaron:"Ä",Ccedil:"\xc7",ccedil:"\xe7",Ccirc:"Ä",ccirc:"Ä",Cconint:"â°",ccups:"â©",ccupssm:"â©",Cdot:"Ä",cdot:"Ä",cedil:"\xb8",Cedilla:"\xb8",cemptyv:"⦲",cent:"\xa2",CenterDot:"\xb7",centerdot:"\xb7",Cfr:"â",cfr:"\uD835\uDD20",CHcy:"Ч",chcy:"Ñ",check:"â",checkmark:"â",Chi:"Χ",chi:"Ï",cir:"â",circ:"Ë",circeq:"â",circlearrowleft:"âº",circlearrowright:"â»",circledast:"â",circledcirc:"â",circleddash:"â",CircleDot:"â",circledR:"\xae",circledS:"â",CircleMinus:"â",CirclePlus:"â",CircleTimes:"â",cirE:"â§",cire:"â",cirfnint:"â¨",cirmid:"⫯",cirscir:"â§",ClockwiseContourIntegral:"â²",CloseCurlyDoubleQuote:"â",CloseCurlyQuote:"â",clubs:"â£",clubsuit:"â£",Colon:"â·",colon:":",Colone:"â©´",colone:"â",coloneq:"â",comma:",",commat:"@",comp:"â",compfn:"â",complement:"â",complexes:"â",cong:"â
",congdot:"â©",Congruent:"â¡",Conint:"â¯",conint:"â®",ContourIntegral:"â®",Copf:"â",copf:"\uD835\uDD54",coprod:"â",Coproduct:"â",COPY:"\xa9",copy:"\xa9",copysr:"â",CounterClockwiseContourIntegral:"â³",crarr:"âµ",Cross:"⨯",cross:"â",Cscr:"\uD835\uDC9E",cscr:"\uD835\uDCB8",csub:"â«",csube:"â«",csup:"â«",csupe:"â«",ctdot:"â¯",cudarrl:"⤸",cudarrr:"⤵",cuepr:"â",cuesc:"â",cularr:"â¶",cularrp:"⤽",Cup:"â",cup:"âª",cupbrcap:"â©",CupCap:"â",cupcap:"â©",cupcup:"â©",cupdot:"â",cupor:"â©
",cups:"âªï¸",curarr:"â·",curarrm:"⤼",curlyeqprec:"â",curlyeqsucc:"â",curlyvee:"â",curlywedge:"â",curren:"\xa4",curvearrowleft:"â¶",curvearrowright:"â·",cuvee:"â",cuwed:"â",cwconint:"â²",cwint:"â±",cylcty:"â",Dagger:"â¡",dagger:"â ",daleth:"â¸",Darr:"â¡",dArr:"â",darr:"â",dash:"â",Dashv:"⫤",dashv:"â£",dbkarow:"â¤",dblac:"Ë",Dcaron:"Ä",dcaron:"Ä",Dcy:"Ð",dcy:"д",DD:"â
",dd:"â
",ddagger:"â¡",ddarr:"â",DDotrahd:"â¤",ddotseq:"â©·",deg:"\xb0",Del:"â",Delta:"Î",delta:"δ",demptyv:"⦱",dfisht:"⥿",Dfr:"\uD835\uDD07",dfr:"\uD835\uDD21",dHar:"⥥",dharl:"â",dharr:"â",DiacriticalAcute:"\xb4",DiacriticalDot:"Ë",DiacriticalDoubleAcute:"Ë",DiacriticalGrave:"`",DiacriticalTilde:"Ë",diam:"â",Diamond:"â",diamond:"â",diamondsuit:"â¦",diams:"â¦",die:"\xa8",DifferentialD:"â
",digamma:"Ï",disin:"â²",div:"\xf7",divide:"\xf7",divideontimes:"â",divonx:"â",DJcy:"Ð",djcy:"Ñ",dlcorn:"â",dlcrop:"â",dollar:"$",Dopf:"\uD835\uDD3B",dopf:"\uD835\uDD55",Dot:"\xa8",dot:"Ë",DotDot:"â",doteq:"â",doteqdot:"â",DotEqual:"â",dotminus:"â¸",dotplus:"â",dotsquare:"â¡",doublebarwedge:"â",DoubleContourIntegral:"â¯",DoubleDot:"\xa8",DoubleDownArrow:"â",DoubleLeftArrow:"â",DoubleLeftRightArrow:"â",DoubleLeftTee:"⫤",DoubleLongLeftArrow:"â¸",DoubleLongLeftRightArrow:"âº",DoubleLongRightArrow:"â¹",DoubleRightArrow:"â",DoubleRightTee:"â¨",DoubleUpArrow:"â",DoubleUpDownArrow:"â",DoubleVerticalBar:"â¥",DownArrow:"â",Downarrow:"â",downarrow:"â",DownArrowBar:"â¤",DownArrowUpArrow:"âµ",DownBreve:"Ì",downdownarrows:"â",downharpoonleft:"â",downharpoonright:"â",DownLeftRightVector:"â¥",DownLeftTeeVector:"â¥",DownLeftVector:"â½",DownLeftVectorBar:"â¥",DownRightTeeVector:"â¥",DownRightVector:"â",DownRightVectorBar:"â¥",DownTee:"â¤",DownTeeArrow:"â§",drbkarow:"â¤",drcorn:"â",drcrop:"â",Dscr:"\uD835\uDC9F",dscr:"\uD835\uDCB9",DScy:"Ð
",dscy:"Ñ",dsol:"â§¶",Dstrok:"Ä",dstrok:"Ä",dtdot:"â±",dtri:"â¿",dtrif:"â¾",duarr:"âµ",duhar:"⥯",dwangle:"⦦",DZcy:"Ð",dzcy:"Ñ",dzigrarr:"â¿",Eacute:"\xc9",eacute:"\xe9",easter:"â©®",Ecaron:"Ä",ecaron:"Ä",ecir:"â",Ecirc:"\xca",ecirc:"\xea",ecolon:"â",Ecy:"Ð",ecy:"Ñ",eDDot:"â©·",Edot:"Ä",eDot:"â",edot:"Ä",ee:"â
",efDot:"â",Efr:"\uD835\uDD08",efr:"\uD835\uDD22",eg:"âª",Egrave:"\xc8",egrave:"\xe8",egs:"âª",egsdot:"âª",el:"âª",Element:"â",elinters:"â§",ell:"â",els:"âª",elsdot:"âª",Emacr:"Ä",emacr:"Ä",empty:"â
",emptyset:"â
",EmptySmallSquare:"â»",emptyv:"â
",EmptyVerySmallSquare:"â«",emsp:"â",emsp13:"â",emsp14:"â
",ENG:"Å",eng:"Å",ensp:"â",Eogon:"Ä",eogon:"Ä",Eopf:"\uD835\uDD3C",eopf:"\uD835\uDD56",epar:"â",eparsl:"â§£",eplus:"⩱",epsi:"ε",Epsilon:"Î",epsilon:"ε",epsiv:"ϵ",eqcirc:"â",eqcolon:"â",eqsim:"â",eqslantgtr:"âª",eqslantless:"âª",Equal:"⩵",equals:"=",EqualTilde:"â",equest:"â",Equilibrium:"â",equiv:"â¡",equivDD:"⩸",eqvparsl:"â§¥",erarr:"⥱",erDot:"â",Escr:"â°",escr:"â¯",esdot:"â",Esim:"⩳",esim:"â",Eta:"Î",eta:"η",ETH:"\xd0",eth:"\xf0",Euml:"\xcb",euml:"\xeb",euro:"â¬",excl:"!",exist:"â",Exists:"â",expectation:"â°",ExponentialE:"â
",exponentiale:"â
",fallingdotseq:"â",Fcy:"Ф",fcy:"Ñ",female:"â",ffilig:"ï¬",fflig:"ï¬",ffllig:"ï¬",Ffr:"\uD835\uDD09",ffr:"\uD835\uDD23",filig:"ï¬",FilledSmallSquare:"â¼",FilledVerySmallSquare:"âª",fjlig:"fj",flat:"â",fllig:"ï¬",fltns:"â±",fnof:"Æ",Fopf:"\uD835\uDD3D",fopf:"\uD835\uDD57",ForAll:"â",forall:"â",fork:"â",forkv:"â«",Fouriertrf:"â±",fpartint:"â¨",frac12:"\xbd",frac13:"â
",frac14:"\xbc",frac15:"â
",frac16:"â
",frac18
1:"â
",frac23:"â
",frac25:"â
",frac34:"\xbe",frac35:"â
",frac38:"â
",frac45:"â
",frac56:"â
",frac58:"â
",frac78:"â
",frasl:"â",frown:"â¢",Fscr:"â±",fscr:"\uD835\uDCBB",gacute:"ǵ",Gamma:"Î",gamma:"γ",Gammad:"Ï",gammad:"Ï",gap:"âª",Gbreve:"Ä",gbreve:"Ä",Gcedil:"Ä¢",Gcirc:"Ä",gcirc:"Ä",Gcy:"Ð",gcy:"г",Gdot:"Ä ",gdot:"Ä¡",gE:"â§",ge:"â¥",gEl:"âª",gel:"â",geq:"â¥",geqq:"â§",geqslant:"⩾",ges:"⩾",gescc:"⪩",gesdot:"âª",gesdoto:"âª",gesdotol:"âª",gesl:"âï¸",gesles:"âª",Gfr:"\uD835\uDD0A",gfr:"\uD835\uDD24",Gg:"â",gg:"â«",ggg:"â",gimel:"â·",GJcy:"Ð",gjcy:"Ñ",gl:"â·",gla:"⪥",glE:"âª",glj:"⪤",gnap:"âª",gnapprox:"âª",gnE:"â©",gne:"âª",gneq:"âª",gneqq:"â©",gnsim:"â§",Gopf:"\uD835\uDD3E",gopf:"\uD835\uDD58",grave:"`",GreaterEqual:"â¥",GreaterEqualLess:"â",GreaterFullEqual:"â§",GreaterGreater:"⪢",GreaterLess:"â·",GreaterSlantEqual:"⩾",GreaterTilde:"â³",Gscr:"\uD835\uDCA2",gscr:"â",gsim:"â³",gsime:"âª",gsiml:"âª",Gt:"â«",GT:">",gt:">",gtcc:"⪧",gtcir:"⩺",gtdot:"â",gtlPar:"â¦",gtquest:"⩼",gtrapprox:"âª",gtrarr:"⥸",gtrdot:"â",gtreqless:"â",gtreqqless:"âª",gtrless:"â·",gtrsim:"â³",gvertneqq:"â©ï¸",gvnE:"â©ï¸",Hacek:"Ë",hairsp:"â",half:"\xbd",hamilt:"â",HARDcy:"Ъ",hardcy:"Ñ",hArr:"â",harr:"â",harrcir:"â¥",harrw:"â",Hat:"^",hbar:"â",Hcirc:"Ĥ",hcirc:"Ä¥",hearts:"â¥",heartsuit:"â¥",hellip:"â¦",hercon:"â¹",Hfr:"â",hfr:"\uD835\uDD25",HilbertSpace:"â",hksearow:"⤥",hkswarow:"⤦",hoarr:"â¿",homtht:"â»",hookleftarrow:"â©",hookrightarrow:"âª",Hopf:"â",hopf:"\uD835\uDD59",horbar:"â",HorizontalLine:"â",Hscr:"â",hscr:"\uD835\uDCBD",hslash:"â",Hstrok:"Ħ",hstrok:"ħ",HumpDownHump:"â",HumpEqual:"â",hybull:"â",hyphen:"â",Iacute:"\xcd",iacute:"\xed",ic:"â£",Icirc:"\xce",icirc:"\xee",Icy:"Ð",icy:"и",Idot:"İ",IEcy:"Ð",iecy:"е",iexcl:"\xa1",iff:"â",Ifr:"â",ifr:"\uD835\uDD26",Igrave:"\xcc",igrave:"\xec",ii:"â
",iiiint:"â¨",iiint:"â",iinfin:"â§",iiota:"â©",IJlig:"IJ",ijlig:"ij",Im:"â",Imacr:"Ī",imacr:"Ä«",image:"â",ImaginaryI:"â
",imagline:"â",imagpart:"â",imath:"ı",imof:"â·",imped:"Ƶ",Implies:"â",in:"â",incare:"â
",infin:"â",infintie:"â§",inodot:"ı",Int:"â¬",int:"â«",intcal:"âº",integers:"â¤",Integral:"â«",intercal:"âº",Intersection:"â",intlarhk:"â¨",intprod:"⨼",InvisibleComma:"â£",InvisibleTimes:"â¢",IOcy:"Ð",iocy:"Ñ",Iogon:"Ä®",iogon:"į",Iopf:"\uD835\uDD40",iopf:"\uD835\uDD5A",Iota:"Î",iota:"ι",iprod:"⨼",iquest:"\xbf",Iscr:"â",iscr:"\uD835\uDCBE",isin:"â",isindot:"âµ",isinE:"â¹",isins:"â´",isinsv:"â³",isinv:"â",it:"â¢",Itilde:"Ĩ",itilde:"Ä©",Iukcy:"Ð",iukcy:"Ñ",Iuml:"\xcf",iuml:"\xef",Jcirc:"Ä´",jcirc:"ĵ",Jcy:"Ð",jcy:"й",Jfr:"\uD835\uDD0D",jfr:"\uD835\uDD27",jmath:"È·",Jopf:"\uD835\uDD41",jopf:"\uD835\uDD5B",Jscr:"\uD835\uDCA5",jscr:"\uD835\uDCBF",Jsercy:"Ð",jsercy:"Ñ",Jukcy:"Ð",jukcy:"Ñ",Kappa:"Î",kappa:"κ",kappav:"ϰ",Kcedil:"Ķ",kcedil:"Ä·",Kcy:"Ð",kcy:"к",Kfr:"\uD835\uDD0E",kfr:"\uD835\uDD28",kgreen:"ĸ",KHcy:"Ð¥",khcy:"Ñ
",KJcy:"Ð",kjcy:"Ñ",Kopf:"\uD835\uDD42",kopf:"\uD835\uDD5C",Kscr:"\uD835\uDCA6",kscr:"\uD835\uDCC0",lAarr:"â",Lacute:"Ĺ",lacute:"ĺ",laemptyv:"⦴",lagran:"â",Lambda:"Î",lambda:"λ",Lang:"âª",lang:"â¨",langd:"â¦",langle:"â¨",lap:"âª
",Laplacetrf:"â",laquo:"\xab",Larr:"â",lArr:"â",larr:"â",larrb:"â¤",larrbfs:"â¤",larrfs:"â¤",larrhk:"â©",larrlp:"â«",larrpl:"⤹",larrsim:"⥳",larrtl:"â¢",lat:"⪫",lAtail:"â¤",latail:"â¤",late:"âª",lates:"âªï¸",lBarr:"â¤",lbarr:"â¤",lbbrk:"â²",lbrace:"{",lbrack:"[",lbrke:"â¦",lbrksld:"â¦",lbrkslu:"â¦",Lcaron:"Ľ",lcaron:"ľ",Lcedil:"Ä»",lcedil:"ļ",lceil:"â",lcub:"{",Lcy:"Ð",lcy:"л",ldca:"⤶",ldquo:"â",ldquor:"â",ldrdhar:"⥧",ldrushar:"â¥",ldsh:"â²",lE:"â¦",le:"â¤",LeftAngleBracket:"â¨",LeftArrow:"â",Leftarrow:"â",leftarrow:"â",LeftArrowBar:"â¤",LeftArrowRightArrow:"â",leftarrowtail:"â¢",LeftCeiling:"â",LeftDoubleBracket:"â¦",LeftDownTeeVector:"⥡",LeftDownVector:"â",LeftDownVectorBar:"â¥",LeftFloor:"â",leftharpoondown:"â½",leftharpoonup:"â¼",leftleftarrows:"â",LeftRightArrow:"â",Leftrightarrow:"â",leftrightarrow:"â",leftrightarrows:"â",leftrightharpoons:"â",leftrightsquigarrow:"â",LeftRightVector:"â¥",LeftTee:"â£",LeftTeeArrow:"â¤",LeftTeeVector:"â¥",leftthreetimes:"â",LeftTriangle:"â²",LeftTriangleBar:"â§",LeftTriangleEqual:"â´",LeftUpDownVector:"â¥",LeftUpTeeVector:"⥠",LeftUpVector:"â¿",LeftUpVectorBar:"â¥",LeftVector:"â¼",LeftVectorBar:"â¥",lEg:"âª",leg:"â",leq:"â¤",leqq:"â¦",leqslant:"⩽",les:"⩽",lescc:"⪨",lesdot:"â©¿",lesdoto:"âª",lesdotor:"âª",lesg:"âï¸",lesges:"âª",lessapprox:"âª
",lessdot:"â
1",lesseqgtr:"â",lesseqqgtr:"âª",LessEqualGreater:"â",LessFullEqual:"â¦",LessGreater:"â¶",lessgtr:"â¶",LessLess:"⪡",lesssim:"â²",LessSlantEqual:"⩽",LessTilde:"â²",lfisht:"⥼",lfloor:"â",Lfr:"\uD835\uDD0F",lfr:"\uD835\uDD29",lg:"â¶",lgE:"âª",lHar:"⥢",lhard:"â½",lharu:"â¼",lharul:"⥪",lhblk:"â",LJcy:"Ð",ljcy:"Ñ",Ll:"â",ll:"âª",llarr:"â",llcorner:"â",Lleftarrow:"â",llhard:"⥫",lltri:"âº",Lmidot:"Ä¿",lmidot:"Å",lmoust:"â°",lmoustache:"â°",lnap:"âª",lnapprox:"âª",lnE:"â¨",lne:"âª",lneq:"âª",lneqq:"â¨",lnsim:"â¦",loang:"â¬",loarr:"â½",lobrk:"â¦",LongLeftArrow:"âµ",Longleftarrow:"â¸",longleftarrow:"âµ",LongLeftRightArrow:"â·",Longleftrightarrow:"âº",longleftrightarrow:"â·",longmapsto:"â¼",LongRightArrow:"â¶",Longrightarrow:"â¹",longrightarrow:"â¶",looparrowleft:"â«",looparrowright:"â¬",lopar:"â¦
",Lopf:"\uD835\uDD43",lopf:"\uD835\uDD5D",loplus:"â¨",lotimes:"⨴",lowast:"â",lowbar:"_",LowerLeftArrow:"â",LowerRightArrow:"â",loz:"â",lozenge:"â",lozf:"â§«",lpar:"(",lparlt:"â¦",lrarr:"â",lrcorner:"â",lrhar:"â",lrhard:"â¥",lrm:"â",lrtri:"â¿",lsaquo:"â¹",Lscr:"â",lscr:"\uD835\uDCC1",Lsh:"â°",lsh:"â°",lsim:"â²",lsime:"âª",lsimg:"âª",lsqb:"[",lsquo:"â",lsquor:"â",Lstrok:"Å",lstrok:"Å",Lt:"âª",LT:"<",lt:"<",ltcc:"⪦",ltcir:"⩹",ltdot:"â",lthree:"â",ltimes:"â",ltlarr:"⥶",ltquest:"â©»",ltri:"â",ltrie:"â´",ltrif:"â",ltrPar:"â¦",lurdshar:"â¥",luruhar:"⥦",lvertneqq:"â¨ï¸",lvnE:"â¨ï¸",macr:"\xaf",male:"â",malt:"â ",maltese:"â ",Map:"â¤
",map:"â¦",mapsto:"â¦",mapstodown:"â§",mapstoleft:"â¤",mapstoup:"â¥",marker:"â®",mcomma:"⨩",Mcy:"Ð",mcy:"м",mdash:"â",mDDot:"âº",measuredangle:"â¡",MediumSpace:"â",Mellintrf:"â³",Mfr:"\uD835\uDD10",mfr:"\uD835\uDD2A",mho:"â§",micro:"\xb5",mid:"â£",midast:"*",midcir:"â«°",middot:"\xb7",minus:"â",minusb:"â",minusd:"â¸",minusdu:"⨪",MinusPlus:"â",mlcp:"â«",mldr:"â¦",mnplus:"â",models:"â§",Mopf:"\uD835\uDD44",mopf:"\uD835\uDD5E",mp:"â",Mscr:"â³",mscr:"\uD835\uDCC2",mstpos:"â¾",Mu:"Î",mu:"μ",multimap:"â¸",mumap:"â¸",nabla:"â",Nacute:"Å",nacute:"Å",nang:"â â",nap:"â",napE:"⩰̸",napid:"â̸",napos:"Å",napprox:"â",natur:"â®",natural:"â®",naturals:"â",nbsp:"\xa0",nbump:"â̸",nbumpe:"â̸",ncap:"â©",Ncaron:"Å",ncaron:"Å",Ncedil:"Å
",ncedil:"Å",ncong:"â",ncongdot:"â©Ì¸",ncup:"â©",Ncy:"Ð",ncy:"н",ndash:"â",ne:"â ",nearhk:"⤤",neArr:"â",nearr:"â",nearrow:"â",nedot:"â̸",NegativeMediumSpace:"â",NegativeThickSpace:"â",NegativeThinSpace:"â",NegativeVeryThinSpace:"â",nequiv:"â¢",nesear:"⤨",nesim:"â̸",NestedGreaterGreater:"â«",NestedLessLess:"âª",NewLine:"\n",nexist:"â",nexists:"â",Nfr:"\uD835\uDD11",nfr:"\uD835\uDD2B",ngE:"â§Ì¸",nge:"â±",ngeq:"â±",ngeqq:"â§Ì¸",ngeqslant:"⩾̸",nges:"⩾̸",nGg:"â̸",ngsim:"âµ",nGt:"â«â",ngt:"â¯",ngtr:"â¯",nGtv:"â«Ì¸",nhArr:"â",nharr:"â®",nhpar:"⫲",ni:"â",nis:"â¼",nisd:"âº",niv:"â",NJcy:"Ð",njcy:"Ñ",nlArr:"â",nlarr:"â",nldr:"â¥",nlE:"â¦Ì¸",nle:"â°",nLeftarrow:"â",nleftarrow:"â",nLeftrightarrow:"â",nleftrightarrow:"â®",nleq:"â°",nleqq:"â¦Ì¸",nleqslant:"⩽̸",nles:"⩽̸",nless:"â®",nLl:"â̸",nlsim:"â´",nLt:"âªâ",nlt:"â®",nltri:"âª",nltrie:"â¬",nLtv:"âªÌ¸",nmid:"â¤",NoBreak:"â ",NonBreakingSpace:"\xa0",Nopf:"â",nopf:"\uD835\uDD5F",Not:"⫬",not:"\xac",NotCongruent:"â¢",NotCupCap:"â",NotDoubleVerticalBar:"â¦",NotElement:"â",NotEqual:"â ",NotEqualTilde:"â̸",NotExists:"â",NotGreater:"â¯",NotGreaterEqual:"â±",NotGreaterFullEqual:"â§Ì¸",NotGreaterGreater:"â«Ì¸",NotGreaterLess:"â¹",NotGreaterSlantEqual:"⩾̸",NotGreaterTilde:"âµ",NotHumpDownHump:"â̸",NotHumpEqual:"â̸",notin:"â",notindot:"âµÌ¸",notinE:"â¹Ì¸",notinva:"â",notinvb:"â·",notinvc:"â¶",NotLeftTriangle:"âª",NotLeftTriangleBar:"â§Ì¸",NotLeftTriangleEqual:"â¬",NotLess:"â®",NotLessEqual:"â°",NotLessGreater:"â¸",NotLessLess:"âªÌ¸",NotLessSlantEqual:"⩽̸",NotLessTilde:"â´",NotNestedGreaterGreater:"⪢̸",NotNestedLessLess:"⪡̸",notni:"â",notniva:"â",notnivb:"â¾",notnivc:"â½",NotPrecedes:"â",NotPrecedesEqual:"⪯̸",NotPrecedesSlantEqual:"â ",NotReverseElement:"â",NotRightTriangle:"â«",NotRightTriangleBar:"â§Ì¸",NotRightTriangleEqual:"â",NotSquareSubset:"â̸",NotSquareSubsetEqual:"â¢",NotSquareSuperset:"â̸",NotSquareSupersetEqual:"â£",NotSubset:"ââ",NotSubsetEqual:"â",NotSucceeds:"â",NotSucceedsEqual:"⪰̸",NotSucceedsSlantEqual:"â¡",NotSucceedsTilde:"â¿Ì¸",NotSuperset:"ââ",NotSupersetEqual:"â",NotTilde:"â",NotTildeEqual:"â",NotTildeFullEqual:"â",NotTildeTilde:"â",NotVerticalBar:"â¤",npar:"â¦",nparallel:"â¦",nparsl:"⫽â¥",npart:"â̸",npolint:"â¨",npr:"â",nprcue:"â
1 ",npre:"⪯̸",nprec:"â",npreceq:"⪯̸",nrArr:"â",nrarr:"â",nrarrc:"⤳̸",nrarrw:"â̸",nRightarrow:"â",nrightarrow:"â",nrtri:"â«",nrtrie:"â",nsc:"â",nsccue:"â¡",nsce:"⪰̸",Nscr:"\uD835\uDCA9",nscr:"\uD835\uDCC3",nshortmid:"â¤",nshortparallel:"â¦",nsim:"â",nsime:"â",nsimeq:"â",nsmid:"â¤",nspar:"â¦",nsqsube:"â¢",nsqsupe:"â£",nsub:"â",nsubE:"â«
̸",nsube:"â",nsubset:"ââ",nsubseteq:"â",nsubseteqq:"â«
̸",nsucc:"â",nsucceq:"⪰̸",nsup:"â
",nsupE:"â«Ì¸",nsupe:"â",nsupset:"ââ",nsupseteq:"â",nsupseteqq:"â«Ì¸",ntgl:"â¹",Ntilde:"\xd1",ntilde:"\xf1",ntlg:"â¸",ntriangleleft:"âª",ntrianglelefteq:"â¬",ntriangleright:"â«",ntrianglerighteq:"â",Nu:"Î",nu:"ν",num:"#",numero:"â",numsp:"â",nvap:"ââ",nVDash:"â¯",nVdash:"â®",nvDash:"â",nvdash:"â¬",nvge:"â¥â",nvgt:">â",nvHarr:"â¤",nvinfin:"â§",nvlArr:"â¤",nvle:"â¤â",nvlt:"<â",nvltrie:"â´â",nvrArr:"â¤",nvrtrie:"âµâ",nvsim:"â¼â",nwarhk:"⤣",nwArr:"â",nwarr:"â",nwarrow:"â",nwnear:"⤧",Oacute:"\xd3",oacute:"\xf3",oast:"â",ocir:"â",Ocirc:"\xd4",ocirc:"\xf4",Ocy:"Ð",ocy:"о",odash:"â",Odblac:"Å",odblac:"Å",odiv:"⨸",odot:"â",odsold:"⦼",OElig:"Å",oelig:"Å",ofcir:"⦿",Ofr:"\uD835\uDD12",ofr:"\uD835\uDD2C",ogon:"Ë",Ograve:"\xd2",ograve:"\xf2",ogt:"â§",ohbar:"⦵",ohm:"Ω",oint:"â®",olarr:"âº",olcir:"⦾",olcross:"⦻",oline:"â¾",olt:"â§",Omacr:"Å",omacr:"Å",Omega:"Ω",omega:"Ï",Omicron:"Î",omicron:"ο",omid:"⦶",ominus:"â",Oopf:"\uD835\uDD46",oopf:"\uD835\uDD60",opar:"⦷",OpenCurlyDoubleQuote:"â",OpenCurlyQuote:"â",operp:"⦹",oplus:"â",Or:"â©",or:"â¨",orarr:"â»",ord:"â©",order:"â´",orderof:"â´",ordf:"\xaa",ordm:"\xba",origof:"â¶",oror:"â©",orslope:"â©",orv:"â©",oS:"â",Oscr:"\uD835\uDCAA",oscr:"â´",Oslash:"\xd8",oslash:"\xf8",osol:"â",Otilde:"\xd5",otilde:"\xf5",Otimes:"⨷",otimes:"â",otimesas:"⨶",Ouml:"\xd6",ouml:"\xf6",ovbar:"â½",OverBar:"â¾",OverBrace:"â",OverBracket:"â´",OverParenthesis:"â",par:"â¥",para:"\xb6",parallel:"â¥",parsim:"⫳",parsl:"⫽",part:"â",PartialD:"â",Pcy:"Ð",pcy:"п",percnt:"%",period:".",permil:"â°",perp:"â¥",pertenk:"â±",Pfr:"\uD835\uDD13",pfr:"\uD835\uDD2D",Phi:"Φ",phi:"Ï",phiv:"Ï",phmmat:"â³",phone:"â",Pi:"Î ",pi:"Ï",pitchfork:"â",piv:"Ï",planck:"â",planckh:"â",plankv:"â",plus:"+",plusacir:"⨣",plusb:"â",pluscir:"⨢",plusdo:"â",plusdu:"⨥",pluse:"⩲",PlusMinus:"\xb1",plusmn:"\xb1",plussim:"⨦",plustwo:"⨧",pm:"\xb1",Poincareplane:"â",pointint:"â¨",Popf:"â",popf:"\uD835\uDD61",pound:"\xa3",Pr:"⪻",pr:"âº",prap:"⪷",prcue:"â¼",prE:"⪳",pre:"⪯",prec:"âº",precapprox:"⪷",preccurlyeq:"â¼",Precedes:"âº",PrecedesEqual:"⪯",PrecedesSlantEqual:"â¼",PrecedesTilde:"â¾",preceq:"⪯",precnapprox:"⪹",precneqq:"⪵",precnsim:"â¨",precsim:"â¾",Prime:"â³",prime:"â²",primes:"â",prnap:"⪹",prnE:"⪵",prnsim:"â¨",prod:"â",Product:"â",profalar:"â®",profline:"â",profsurf:"â",prop:"â",Proportion:"â·",Proportional:"â",propto:"â",prsim:"â¾",prurel:"â°",Pscr:"\uD835\uDCAB",pscr:"\uD835\uDCC5",Psi:"Ψ",psi:"Ï",puncsp:"â",Qfr:"\uD835\uDD14",qfr:"\uD835\uDD2E",qint:"â¨",Qopf:"â",qopf:"\uD835\uDD62",qprime:"â",Qscr:"\uD835\uDCAC",qscr:"\uD835\uDCC6",quaternions:"â",quatint:"â¨",quest:"?",questeq:"â",QUOT:'"',quot:'"',rAarr:"â",race:"â½Ì±",Racute:"Å",racute:"Å",radic:"â",raemptyv:"⦳",Rang:"â«",rang:"â©",rangd:"â¦",range:"⦥",rangle:"â©",raquo:"\xbb",Rarr:"â ",rArr:"â",rarr:"â",rarrap:"⥵",rarrb:"â¥",rarrbfs:"⤠",rarrc:"⤳",rarrfs:"â¤",rarrhk:"âª",rarrlp:"â¬",rarrpl:"â¥
",rarrsim:"⥴",Rarrtl:"â¤",rarrtl:"â£",rarrw:"â",rAtail:"â¤",ratail:"â¤",ratio:"â¶",rationals:"â",RBarr:"â¤",rBarr:"â¤",rbarr:"â¤",rbbrk:"â³",rbrace:"}",rbrack:"]",rbrke:"â¦",rbrksld:"â¦",rbrkslu:"â¦",Rcaron:"Å",rcaron:"Å",Rcedil:"Å",rcedil:"Å",rceil:"â",rcub:"}",Rcy:"Ð ",rcy:"Ñ",rdca:"⤷",rdldhar:"⥩",rdquo:"â",rdquor:"â",rdsh:"â³",Re:"â",real:"â",realine:"â",realpart:"â",reals:"â",rect:"â",REG:"\xae",reg:"\xae",ReverseElement:"â",ReverseEquilibrium:"â",ReverseUpEquilibrium:"⥯",rf
1isht:"⥽",rfloor:"â",Rfr:"â",rfr:"\uD835\uDD2F",rHar:"⥤",rhard:"â",rharu:"â",rharul:"⥬",Rho:"Ρ",rho:"Ï",rhov:"ϱ",RightAngleBracket:"â©",RightArrow:"â",Rightarrow:"â",rightarrow:"â",RightArrowBar:"â¥",RightArrowLeftArrow:"â",rightarrowtail:"â£",RightCeiling:"â",RightDoubleBracket:"â§",RightDownTeeVector:"â¥",RightDownVector:"â",RightDownVectorBar:"â¥",RightFloor:"â",rightharpoondown:"â",rightharpoonup:"â",rightleftarrows:"â",rightleftharpoons:"â",rightrightarrows:"â",rightsquigarrow:"â",RightTee:"â¢",RightTeeArrow:"â¦",RightTeeVector:"â¥",rightthreetimes:"â",RightTriangle:"â³",RightTriangleBar:"â§",RightTriangleEqual:"âµ",RightUpDownVector:"â¥",RightUpTeeVector:"â¥",RightUpVector:"â¾",RightUpVectorBar:"â¥",RightVector:"â",RightVectorBar:"â¥",ring:"Ë",risingdotseq:"â",rlarr:"â",rlhar:"â",rlm:"â",rmoust:"â±",rmoustache:"â±",rnmid:"â«®",roang:"â",roarr:"â¾",robrk:"â§",ropar:"â¦",Ropf:"â",ropf:"\uD835\uDD63",roplus:"⨮",rotimes:"⨵",RoundImplies:"⥰",rpar:")",rpargt:"â¦",rppolint:"â¨",rrarr:"â",Rrightarrow:"â",rsaquo:"âº",Rscr:"â",rscr:"\uD835\uDCC7",Rsh:"â±",rsh:"â±",rsqb:"]",rsquo:"â",rsquor:"â",rthree:"â",rtimes:"â",rtri:"â¹",rtrie:"âµ",rtrif:"â¸",rtriltri:"â§",RuleDelayed:"â§´",ruluhar:"⥨",rx:"â",Sacute:"Å",sacute:"Å",sbquo:"â",Sc:"⪼",sc:"â»",scap:"⪸",Scaron:"Å ",scaron:"Å¡",sccue:"â½",scE:"⪴",sce:"⪰",Scedil:"Å",scedil:"Å",Scirc:"Å",scirc:"Å",scnap:"⪺",scnE:"⪶",scnsim:"â©",scpolint:"â¨",scsim:"â¿",Scy:"С",scy:"Ñ",sdot:"â
",sdotb:"â¡",sdote:"⩦",searhk:"⤥",seArr:"â",searr:"â",searrow:"â",sect:"\xa7",semi:";",seswar:"⤩",setminus:"â",setmn:"â",sext:"â¶",Sfr:"\uD835\uDD16",sfr:"\uD835\uDD30",sfrown:"â¢",sharp:"â¯",SHCHcy:"Щ",shchcy:"Ñ",SHcy:"Ш",shcy:"Ñ",ShortDownArrow:"â",ShortLeftArrow:"â",shortmid:"â£",shortparallel:"â¥",ShortRightArrow:"â",ShortUpArrow:"â",shy:"\xad",Sigma:"Σ",sigma:"Ï",sigmaf:"Ï",sigmav:"Ï",sim:"â¼",simdot:"⩪",sime:"â",simeq:"â",simg:"âª",simgE:"⪠",siml:"âª",simlE:"âª",simne:"â",simplus:"⨤",simrarr:"⥲",slarr:"â",SmallCircle:"â",smallsetminus:"â",smashp:"⨳",smeparsl:"⧤",smid:"â£",smile:"â£",smt:"⪪",smte:"⪬",smtes:"⪬ï¸",SOFTcy:"Ь",softcy:"Ñ",sol:"/",solb:"â§",solbar:"â¿",Sopf:"\uD835\uDD4A",sopf:"\uD835\uDD64",spades:"â ",spadesuit:"â ",spar:"â¥",sqcap:"â",sqcaps:"âï¸",sqcup:"â",sqcups:"âï¸",Sqrt:"â",sqsub:"â",sqsube:"â",sqsubset:"â",sqsubseteq:"â",sqsup:"â",sqsupe:"â",sqsupset:"â",sqsupseteq:"â",squ:"â¡",Square:"â¡",square:"â¡",SquareIntersection:"â",SquareSubset:"â",SquareSubsetEqual:"â",SquareSuperset:"â",SquareSupersetEqual:"â",SquareUnion:"â",squarf:"âª",squf:"âª",srarr:"â",Sscr:"\uD835\uDCAE",sscr:"\uD835\uDCC8",ssetmn:"â",ssmile:"â£",sstarf:"â",Star:"â",star:"â",starf:"â
",straightepsilon:"ϵ",straightphi:"Ï",strns:"\xaf",Sub:"â",sub:"â",subdot:"⪽",subE:"â«
",sube:"â",subedot:"â«",submult:"â«",subnE:"â«",subne:"â",subplus:"⪿",subrarr:"⥹",Subset:"â",subset:"â",subseteq:"â",subseteqq:"â«
",SubsetEqual:"â",subsetneq:"â",subsetneqq:"â«",subsim:"â«",subsub:"â«",subsup:"â«",succ:"â»",succapprox:"⪸",succcurlyeq:"â½",Succeeds:"â»",SucceedsEqual:"⪰",SucceedsSlantEqual:"â½",SucceedsTilde:"â¿",succeq:"⪰",succnapprox:"⪺",succneqq:"⪶",succnsim:"â©",succsim:"â¿",SuchThat:"â",Sum:"â",sum:"â",sung:"âª",Sup:"â",sup:"â",sup1:"\xb9",sup2:"\xb2",sup3:"\xb3",supdot:"⪾",supdsub:"â«",supE:"â«",supe:"â",supedot:"â«",Superset:"â",SupersetEqual:"â",suphsol:"â",suphsub:"â«",suplarr:"⥻",supmult:"â«",supnE:"â«",supne:"â",supplus:"â«",Supset:"â",supset:"â",supseteq:"â",supseteqq:"â«",supsetneq:"â",supsetneqq:"â«",supsim:"â«",supsub:"â«",supsup:"â«",swarhk:"⤦",swArr:"â",swarr:"â",swarrow:"â",swnwar:"⤪",szlig:"\xdf",Tab:" ",target:"â",Tau:"Τ",tau:"Ï",tbrk:"â´",Tcaron:"Ť",tcaron:"Å¥",Tcedil:"Å¢",tcedil:"Å£",Tcy:"Т",tcy:"Ñ",tdot:"â",telrec:"â",Tfr:"\uD835\uDD17",tfr:"\uD835\uDD31",there4:"â´",Therefore:"â´",therefore:"â´",Theta:"Î",theta:"θ",thetasym:"Ï",thetav:"Ï",thickapprox:"â",thicksim:"â¼",ThickS
vendor: 5,478 bytes, line 1
1pace:"ââ",thinsp:"â",ThinSpace:"â",thkap:"â",thksim:"â¼",THORN:"\xde",thorn:"\xfe",Tilde:"â¼",tilde:"Ë",TildeEqual:"â",TildeFullEqual:"â
",TildeTilde:"â",times:"\xd7",timesb:"â ",timesbar:"⨱",timesd:"⨰",tint:"â",toea:"⤨",top:"â¤",topbot:"â¶",topcir:"⫱",Topf:"\uD835\uDD4B",topf:"\uD835\uDD65",topfork:"â«",tosa:"⤩",tprime:"â´",TRADE:"â¢",trade:"â¢",triangle:"âµ",triangledown:"â¿",triangleleft:"â",trianglelefteq:"â´",triangleq:"â",triangleright:"â¹",trianglerighteq:"âµ",tridot:"â¬",trie:"â",triminus:"⨺",TripleDot:"â",triplus:"⨹",trisb:"â§",tritime:"⨻",trpezium:"â¢",Tscr:"\uD835\uDCAF",tscr:"\uD835\uDCC9",TScy:"Ц",tscy:"Ñ",TSHcy:"Ð",tshcy:"Ñ",Tstrok:"Ŧ",tstrok:"ŧ",twixt:"â¬",twoheadleftarrow:"â",twoheadrightarrow:"â ",Uacute:"\xda",uacute:"\xfa",Uarr:"â",uArr:"â",uarr:"â",Uarrocir:"â¥",Ubrcy:"Ð",ubrcy:"Ñ",Ubreve:"Ŭ",ubreve:"Å",Ucirc:"\xdb",ucirc:"\xfb",Ucy:"У",ucy:"Ñ",udarr:"â
",Udblac:"Ű",udblac:"ű",udhar:"⥮",ufisht:"⥾",Ufr:"\uD835\uDD18",ufr:"\uD835\uDD32",Ugrave:"\xd9",ugrave:"\xf9",uHar:"⥣",uharl:"â¿",uharr:"â¾",uhblk:"â",ulcorn:"â",ulcorner:"â",ulcrop:"â",ultri:"â¸",Umacr:"Ū",umacr:"Å«",uml:"\xa8",UnderBar:"_",UnderBrace:"â",UnderBracket:"âµ",UnderParenthesis:"â",Union:"â",UnionPlus:"â",Uogon:"Ų",uogon:"ų",Uopf:"\uD835\uDD4C",uopf:"\uD835\uDD66",UpArrow:"â",Uparrow:"â",uparrow:"â",UpArrowBar:"â¤",UpArrowDownArrow:"â
",UpDownArrow:"â",Updownarrow:"â",updownarrow:"â",UpEquilibrium:"⥮",upharpoonleft:"â¿",upharpoonright:"â¾",uplus:"â",UpperLeftArrow:"â",UpperRightArrow:"â",Upsi:"Ï",upsi:"Ï
",upsih:"Ï",Upsilon:"Î¥",upsilon:"Ï
",UpTee:"â¥",UpTeeArrow:"â¥",upuparrows:"â",urcorn:"â",urcorner:"â",urcrop:"â",Uring:"Å®",uring:"ů",urtri:"â¹",Uscr:"\uD835\uDCB0",uscr:"\uD835\uDCCA",utdot:"â°",Utilde:"Ũ",utilde:"Å©",utri:"âµ",utrif:"â´",uuarr:"â",Uuml:"\xdc",uuml:"\xfc",uwangle:"⦧",vangrt:"â¦",varepsilon:"ϵ",varkappa:"ϰ",varnothing:"â
",varphi:"Ï",varpi:"Ï",varpropto:"â",vArr:"â",varr:"â",varrho:"ϱ",varsigma:"Ï",varsubsetneq:"âï¸",varsubsetneqq:"â«ï¸",varsupsetneq:"âï¸",varsupsetneqq:"â«ï¸",vartheta:"Ï",vartriangleleft:"â²",vartriangleright:"â³",Vbar:"â««",vBar:"⫨",vBarv:"â«©",Vcy:"Ð",vcy:"в",VDash:"â«",Vdash:"â©",vDash:"â¨",vdash:"â¢",Vdashl:"⫦",Vee:"â",vee:"â¨",veebar:"â»",veeeq:"â",vellip:"â®",Verbar:"â",verbar:"|",Vert:"â",vert:"|",VerticalBar:"â£",VerticalLine:"|",VerticalSeparator:"â",VerticalTilde:"â",VeryThinSpace:"â",Vfr:"\uD835\uDD19",vfr:"\uD835\uDD33",vltri:"â²",vnsub:"ââ",vnsup:"ââ",Vopf:"\uD835\uDD4D",vopf:"\uD835\uDD67",vprop:"â",vrtri:"â³",Vscr:"\uD835\uDCB1",vscr:"\uD835\uDCCB",vsubnE:"â«ï¸",vsubne:"âï¸",vsupnE:"â«ï¸",vsupne:"âï¸",Vvdash:"âª",vzigzag:"â¦",Wcirc:"Å´",wcirc:"ŵ",wedbar:"â©",Wedge:"â",wedge:"â§",wedgeq:"â",weierp:"â",Wfr:"\uD835\uDD1A",wfr:"\uD835\uDD34",Wopf:"\uD835\uDD4E",wopf:"\uD835\uDD68",wp:"â",wr:"â",wreath:"â",Wscr:"\uD835\uDCB2",wscr:"\uD835\uDCCC",xcap:"â",xcirc:"â¯",xcup:"â",xdtri:"â½",Xfr:"\uD835\uDD1B",xfr:"\uD835\uDD35",xhArr:"âº",xharr:"â·",Xi:"Î",xi:"ξ",xlArr:"â¸",xlarr:"âµ",xmap:"â¼",xnis:"â»",xodot:"â¨",Xopf:"\uD835\uDD4F",xopf:"\uD835\uDD69",xoplus:"â¨",xotime:"â¨",xrArr:"â¹",xrarr:"â¶",Xscr:"\uD835\uDCB3",xscr:"\uD835\uDCCD",xsqcup:"â¨",xuplus:"â¨",xutri:"â³",xvee:"â",xwedge:"â",Yacute:"\xdd",yacute:"\xfd",YAcy:"Я",yacy:"Ñ",Ycirc:"Ŷ",ycirc:"Å·",Ycy:"Ы",ycy:"Ñ",yen:"\xa5",Yfr:"\uD835\uDD1C",yfr:"\uD835\uDD36",YIcy:"Ð",yicy:"Ñ",Yopf:"\uD835\uDD50",yopf:"\uD835\uDD6A",Yscr:"\uD835\uDCB4",yscr:"\uD835\uDCCE",YUcy:"Ю",yucy:"Ñ",Yuml:"Ÿ",yuml:"\xff",Zacute:"Ź",zacute:"ź",Zcaron:"Ž",zcaron:"ž",Zcy:"Ð",zcy:"з",Zdot:"Å»",zdot:"ż",zeetrf:"â¨",ZeroWidthSpace:"â",Zeta:"Î",zeta:"ζ",Zfr:"â¨",zfr:"\uD835\uDD37",ZHcy:"Ð",zhcy:"ж",zigrarr:"â",Zopf:"â¤",zopf:"\uD835\uDD6B",Zscr:"\uD835\uDCB5",zscr:"\uD835\uDCCF",zwj:"â",zwnj:"â"}),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]/,s=new RegExp("[\\-\\.0-9"+r.source.slice(1,-1)+"\\u00B7\\u0300-\\u036F\\u203F-\\u2040]"),o=new RegExp("^"+r.source+s.source+"*(?::"+r.source+s.source+"*)?$");function a(e,t){this.message=e,this.locator=t,Error.captureStackTrace&&Error.captureStackTrace(this,a)}function l(){}function u(e,t){return t.lineNumber=e.lineNumber,t.columnNumber=e.columnNumber,t}function c(e,t,n,r,s,o){function a(e,t,i){n.attributeNames.hasOwnProperty(e)&&o.fatalError("Attribute "+e+" redefined"),n.addValue(e,t.replace(/[\t\n\r]/g," ").replace(/&#?\w+;/g,s),i)}for(var l,u=++t,c=0;;){var d=e.charAt(u);switch(d){case"=":if(1===c)l=e.slice(t,u),c=3;else{if(2!==c)throw new Error("attribute equal must after attrName");c=3}break;case"'":case'"':if(3===c||1===c){if(1===c&&(o.warning('attribute value must after "="'),l=e.slice(t,u)),t=u+1,!((u=e.indexOf(d,t))>0))throw new Error("attribute value no end '"+d+"' match");a(l,h=e.slice(t,u),t-1),c=5}else{if(4!=c)throw new Error('attribute value must after "="');a(l,h=e.slice(t,u),t),o.warning('attribute "'+l+'" missed start quot('+d+")!!"),t=u+1,c=5}break;case"/":switch(c){case 0:n.setTagName(e.slice(t,u));
vendor: 4,916 bytes, line 1
1case 5:case 6:case 7:c=7,n.closed=!0;case 4:case 1:break;case 2:n.closed=!0;break;default:throw new Error("attribute invalid close char('/')")}break;case"":return o.error("unexpected end of input"),0==c&&n.setTagName(e.slice(t,u)),u;case">":switch(c){case 0:n.setTagName(e.slice(t,u));case 5:case 6:case 7:break;case 4:case 1:"/"===(h=e.slice(t,u)).slice(-1)&&(n.closed=!0,h=h.slice(0,-1));case 2:2===c&&(h=l),4==c?(o.warning('attribute "'+h+'" missed quot(")!'),a(l,h,t)):(i.isHTML(r[""])&&h.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+h+'" missed value!! "'+h+'" instead!!'),a(h,h,t));break;case 3:throw new Error("attribute value missed!!")}return u;case"\x80":d=" ";default:if(d<=" ")switch(c){case 0:n.setTagName(e.slice(t,u)),c=6;break;case 1:l=e.slice(t,u),c=2;break;case 4:var h=e.slice(t,u);o.warning('attribute "'+h+'" missed quot(")!!'),a(l,h,t);case 5:c=6}else switch(c){case 2:n.tagName,i.isHTML(r[""])&&l.match(/^(?:disabled|checked|selected)$/i)||o.warning('attribute "'+l+'" missed value!! "'+l+'" instead2!!'),a(l,l,t),t=u,c=1;break;case 5:o.warning('attribute space is required"'+l+'"!!');case 6:c=1,t=u;break;case 3:c=4,t=u;break;case 7:throw new Error("elements closed character '/' and '>' must be connected to")}}u++}}function d(e,t,n){for(var r=e.tagName,s=null,o=e.length;o--;){var a=e[o],l=a.qName,u=a.value;if((p=l.indexOf(":"))>0)var c=a.prefix=l.slice(0,p),d=l.slice(p+1),h="xmlns"===c&&d;else d=l,c=null,h="xmlns"===l&&"";a.localName=d,!1!==h&&(null==s&&(s={},f(n,n={})),n[h]=s[h]=u,a.uri=i.XMLNS,t.startPrefixMapping(h,u))}for(o=e.length;o--;)(c=(a=e[o]).prefix)&&("xml"===c&&(a.uri=i.XML),"xmlns"!==c&&(a.uri=n[c||""]));var p;(p=r.indexOf(":"))>0?(c=e.prefix=r.slice(0,p),d=e.localName=r.slice(p+1)):(c=null,d=e.localName=r);var m=e.uri=n[c||""];if(t.startElement(m,d,r,e),!e.closed)return e.currentNSMap=n,e.localNSMap=s,!0;if(t.endElement(m,d,r),s)for(c in s)Object.prototype.hasOwnProperty.call(s,c)&&t.endPrefixMapping(c)}function h(e,t,n,i,r){if(/^(?:script|textarea)$/i.test(n)){var s=e.indexOf("</"+n+">",t),o=e.substring(t+1,s);if(/[&<]/.test(o))return/^script$/i.test(n)?(r.characters(o,0,o.length),s):(o=o.replace(/&#?\w+;/g,i),r.characters(o,0,o.length),s)}return t+1}function p(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 f(e,t){for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n])}function m(e,t,n,i){if("-"===e.charAt(t+2))return"-"===e.charAt(t+3)?(r=e.indexOf("-->",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 s=function(e,t){var n,i=[],r=/'[^']+'|"[^"]+"|[^\s<>\/=]+=?|(\/?\s*>|<)/g;for(r.lastIndex=t,r.exec(e);n=r.exec(e);)if(i.push(n),n[1])return i}(e,t),o=s.length;if(o>1&&/!doctype/i.test(s[0][0])){var a=s[1][0],l=!1,u=!1;o>3&&(/^public$/i.test(s[2][0])?(l=s[3][0],u=o>4&&s[4][0]):/^system$/i.test(s[2][0])&&(u=s[3][0]));var c=s[o-1];return n.startDTD(a,l,u),n.endDTD(),c.index+c[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*$/);return r?(r[0].length,n.processingInstruction(r[1],r[2]),i+2):-1}return-1}function v(){this.attributeNames={}}a.prototype=new Error,a.prototype.name=a.name,l.prototype={parse:function(e,t,n){var r=this.domBuilder;r.startDocument(),f(t,t={}),function(e,t,n,r,s){function o(e){var t=e.slice(1,-1);return Object.hasOwnProperty.call(n,t)?n[t]:"#"===t.charAt(0)?function(e){if(e>65535){var t=55296+((e-=65536)>>10),n=56320+(1023&e);return String.fromCharCode(t,n)}return String.fromCharCode(e)}(parseInt(t.substr(1).replace("x","0x"))):(s.error("entity not found:"+e),e)}function l(t){if(t>S){var n=e.substring(S,t).replace(/&#?\w+;/g,o);T&&f(S),r.characters(n,0,t-S),S=t}}function f(t,n){for(;t>=b&&(n=_.exec(e));)y=n.index,b=y+n[0].length,T.lineNumber++;T.columnNumber=t-y+1}for(var y=0,b=0,_=/.*(?:\r\n?|\n)|.*$/g,T=r.locator,j=[{currentNSMap:t}],w={},S=0;;){try{var x=e.indexOf("<",S);if(x<0){if(!e.substr(S).match(/^\s*$/)){var k=r.doc,E=k.createTextNode(e.substr(S));k.appendChild(E),r.currentElement=E}return}switch(x>S&&l(x),e.charAt(x+1)){case"/":var C=e.indexOf(">",x+3),I=e.substring(x+2,C).replace(/[ \t\n\r]+$/g,""),D=j.pop();C<0?(I=e.substring(x+2).replace(/[\s<].*/,""),s.error("end tag name: "+I+" is not complete:"+D.tagName),C=x+1+I.length):I.match(/\s</)&&(I=I.replace(/[\s<].*/,""),s.error("end tag name: "+I+" maybe not complete"),C=x+1+I.length);var A=D.localNSMap,M=D.tagName==I;if(M||D.tagName&&D.tagName.toLowerCase()==I.toLowerCase()){if(r.endElement(D.uri,D.localName,I),A)for(var O in A)Object.prototype.hasOwnProperty.call(A,O)&&r.endPrefixMapping(O);M||s.fatalError("end tag name: "+I+" is not match the current start tagName:"+D.tagName)}else j.push(D);C++;break;
1case"?":T&&f(x),C=g(e,x,r);break;case"!":T&&f(x),C=m(e,x,r,s);break;default:T&&f(x);var P=new v,N=j[j.length-1].currentNSMap,L=(C=c(e,x,P,N,o,s),P.length);if(!P.closed&&p(e,C,P.tagName,w)&&(P.closed=!0,n.nbsp||s.warning("unclosed xml attribute")),T&&L){for(var R=u(T,{}),U=0;U<L;U++){var B=P[U];f(B.offset),B.locator=u(T,{})}r.locator=R,d(P,r,N)&&j.push(P),r.locator=T}else d(P,r,N)&&j.push(P);i.isHTML(P.uri)&&!P.closed?C=h(e,C,P.tagName,o,r):C++}}catch(e){if(e instanceof a)throw e;s.error("element parse error: "+e),C=-1}C>S?S=C:l(Math.max(x,S)+1)}}(e,t,n,r,this.errorHandler),r.endDocument()}},v.prototype={setTagName:function(e){if(!o.test(e))throw new Error("invalid tagName:"+e);this.tagName=e},addValue:function(e,t,n){if(!o.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=a},4420:(e,t,n)=>{"use strict";function i(e){return i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i(e)}n.d(t,{default:()=>r});const r=function(e){return{controls:{play:function(){return new Promise(function(t,n){return e.controls.play(!0).then(t).catch(n)})},pause:function(){return new Promise(function(t,n){return e.controls.pause(!0).then(t).catch(n)})},seek:function(t){return new Promise(function(n,i){if(t=Number(t),!isNaN(t))return e.controls.seek(!0,t).then(n).catch(i);i("Invalid argument provided for timeMs")})},volume:function(t){return new Promise(function(n,i){if(t=Number(t),!isNaN(t))return e.controls.volume(!0,t).then(n).catch(i);i("Invalid argument provided for volume")})},mute:function(t){return new Promise(function(n,i){return t=(!("toLowerCase"in Object(t))||"false"!==t.toLowerCase()&&"0"!==t)&&Boolean(t),e.controls.mute(!0,t).then(n).catch(i)})},fullscreen:function(t){return new Promise(function(n,i){return t=(!("toLowerCase"in Object(t))||"false"!==t.toLowerCase()&&"0"!==t)&&Boolean(t),e.controls.fullscreen(!0,t).then(n).catch(i)})},setChapters:function(t){return new Promise(function(n,i){if(Array.isArray(t))return e.controls.setChapters(!0,t).then(n).catch(i);i("Invalid argument provided for chapters")})}},customize:{get:function(t){return new Promise(function(n,i){return t=String(t),e.customize.get(!0,t).then(n).catch(i)})},set:function(t){return new Promise(function(n,r){if("object"===i(t))return e.customize.set(!0,t).then(n).catch(r);r("Invalid argument provided for options")})}},info:{onInfoUpdated:function(t){return e.info.infoUpdated.on(t)},offInfoUpdated:function(t){return e.info.infoUpdated.off(t)},duration:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:JSON.parse(!1);return new Promise(function(n,i){return t=(!("toLowerCase"in Object(t))||"false"!==t.toLowerCase()&&"0"!==t)&&Boolean(t),e.info.duration(!0,t).then(n).catch(i)})},guid:function(){return new Promise(function(t,n){return e.info.guid(!0).then(t).catch(n)})},title:function(){return new Promise(function(t,n){return e.info.title(!0).then(t).catch(n)})},poster:function(){return new Promise(function(t,n){return e.info.poster(!0).then(t).catch(n)})},privacy:function(){return new Promise(function(t,n){return e.info.privacy(!0).then(t).catch(n)})},getThumbnailSample:function(t){return new Promise(function(n,i){if(t=Number(t),!isNaN(t))return e.info.getThumbnailSample(!0,t).then(n).catch(i);i("Invalid argument provided for count")})},enableWatchedSegments:function(){return new Promise(function(t,n){return e.info.enableWatchedSegments(!0).then(t).catch(n)})},disableWatchedSegments:function(){return new Promise(function(t,n){return e.info.disableWatchedSegments(!0).then(t).catch(n)})},toggleWatchedSegments:function(){return new Promise(function(t,n){return e.info.toggleWatchedSegments(!0).then(t).cat
1ch(n)})},watched:function(){return new Promise(function(t,n){return e.info.watched(!0).then(t).catch(n)})},resetWatched:function(){return new Promise(function(t,n){return e.info.resetWatched(!0).then(t).catch(n)})}},status:{fullscreen:function(){return new Promise(function(t,n){return e.status.fullscreen(!0).then(t).catch(n)})},onFullscreenChanged:function(t){return e.status.fullscreenChanged.on(t)},offFullscreenChanged:function(t){return e.status.fullscreenChanged.off(t)},player:function(){return new Promise(function(t,n){return e.status.player(!0).then(t).catch(n)})},onPlayerStatusChanged:function(t){return e.status.playerStatusChanged.on(t)},offPlayerStatusChanged:function(t){return e.status.playerStatusChanged.off(t)},audio:function(){return new Promise(function(t,n){return e.status.audio(!0).then(t).catch(n)})},playbackTime:function(){return new Promise(function(t,n){return e.status.playbackTime(!0).then(t).catch(n)})},onPlaybackTimeUpdated:function(t){return e.status.playbackTimeUpdated.on(t)},offPlaybackTimeUpdated:function(t){return e.status.playbackTimeUpdated.off(t)},onTimeUpdate:function(t){return e.status.timeUpdate.on(t)},offTimeUpdate:function(t){return e.status.timeUpdate.off(t)},onChaptersChapterChange:function(t){return e.status.chaptersChapterChange.on(t)},offChaptersChapterChange:function(t){return e.status.chaptersChapterChange.off(t)},onChaptersTrackChange:function(t){return e.status.chaptersTrackChange.on(t)},offChaptersTrackChange:function(t){return e.status.chaptersTrackChange.off(t)},onBorderColorsChanged:function(t){return e.status.borderColorsChanged.on(t)},offBorderColorsChanged:function(t){return e.status.borderColorsChanged.off(t)},borderColors:function(){return new Promise(function(t,n){return e.status.borderColors(!0).then(t).catch(n)})},onError:function(t){return e.status.error.on(t)},offError:function(t){return e.status.error.off(t)},onSegmentsWatched:function(t){return e.status.segmentsWatched.on(t)},offSegmentsWatched:function(t){return e.status.segmentsWatched.off(t)},onPlaybackRateUpdate:function(t){return e.status.playbackRateUpdate.on(t)},offPlaybackRateUpdate:function(t){return e.status.playbackRateUpdate.off(t)}}}}},4834:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-age-gate{position:absolute;top:0;left:0;width:100%;height:100%;font-size:15px;font-weight:400;display:flex;flex-direction:column;align-items:center;justify-content:center;color:#fff;background-color:#111}.videopress-age-gate .wrap{display:flex;flex-direction:column;gap:16px;align-items:center}.videopress-age-gate h3{font-weight:600;font-size:24px;line-height:24px;margin-top:8px;margin-bottom:0;letter-spacing:-0.47px;max-width:250px;text-align:center}.videopress-age-gate p{color:#fff;margin:0}.videopress-age-gate p.error{color:#d0021b}.videopress-age-gate input{background:#fff;color:#000;margin:0;padding:10px 16px 10px 16px;width:85px;border:none;text-align:center;border-radius:4px;display:block;height:100%}.videopress-age-gate input:focus{outline:none}.videopress-age-gate input:invalid{color:#fff;background:red}.videopress-age-gate button#submitButton{background:#fffc1b;color:#000;padding:8px 0;margin:0;border-radius:4px;cursor:pointer;display:block;border:none;padding:8px 24px;font-weight:400}.videopress-age-gate button#submitButton:hover{outline:none;box-shadow:0px 0px 5px #fff}.videopress-age-gate form{display:flex;flex-direction:row;gap:8px;align-items:center;text-align:center;margin-top:24px}.videopress-age-gate form .input-list{display:flex;gap:8px;justify-content:center;height:100%}.videopress-age-gate__modal-dialog .videopress-spinner{position:absolute;top:50%;left:50%;margin-left:-33px;margin-top:-33px}",""]);const a=o},3175:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(8477),n.b),c=o()(r()),d=l()(u);c.push([e.id,`.video-js.vjs-videopress{--chapters-transition: visibility 0.2s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out}.video-js.vjs-videopress .vp-chapter-text-button{width:30px;display:flex;margin-left:0;text-align:left}.video-js.vjs-videopress .vp-chapter-text-button.vjs-menu-button-popup .vjs-menu{display:block}.video-js.vjs-videopress .vp-chapter-text-button.vjs-menu-button-popup .vjs-menu li{list-style:decimal inside;margin:4px 8px;padding:6px 8px;line-height:1.5}.video-js.vjs-videopress .vp-chapter-text-button.vjs-menu-button-popup .vjs-menu .vjs-menu-content{min-width:230px;
1display:block}.video-js.vjs-videopress .vp-chapter-text-button.vjs-menu-button-popup .vjs-menu .vjs-menu-content .vjs-menu-item{text-transform:none;text-align:left;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.video-js.vjs-videopress .vp-chapter-text-button.vjs-menu-button-popup .vjs-menu .vjs-menu-content .vjs-menu-item span::after{padding-left:4px;height:24px;width:24px}.video-js.vjs-videopress .vp-chapter-text-button .vjs-menu{align-self:flex-end;opacity:0;visibility:hidden;transition:var(--chapters-transition);transform:translateY(10px) !important;min-width:230px;margin-left:80px;padding-bottom:20px}.video-js.vjs-videopress .vp-chapter-text-button .vjs-menu li{list-style:decimal inside;margin:4px 8px;padding:6px 8px;line-height:1.5}.video-js.vjs-videopress .vp-chapter-text-button .vjs-menu li{list-style:decimal inside;margin:4px 8px;padding:6px 8px;line-height:1.5}.video-js.vjs-videopress .vp-chapter-text-button .vjs-menu.vjs-lock-showing{opacity:1;visibility:visible;transform:translateY(-7px) !important}.video-js.vjs-videopress .vp-chapter-text-button .vjs-menu.vjs-hidden{display:block !important}.video-js.vjs-videopress .vp-chapter-text-button .vjs-chapters-button{height:100%;width:fit-content;margin-left:0;text-align:left}.video-js.vjs-videopress .vp-chapter-text-button .vjs-chapters-button .vjs-icon-placeholder{display:none;width:0}.video-js.vjs-videopress .vp-chapter-text-button .vjs-chapters-button .vjs-control-text{display:inline-block;overflow:visible;white-space:nowrap;clip:unset;width:fit-content;position:relative}.video-js.vjs-videopress .vp-chapter-text-button .vjs-chapters-button .vjs-control-text:after{content:"";background:url(${d});background-size:100%;display:block;box-sizing:border-box;position:absolute;width:18px;height:18px;right:-18px;top:-1px;transition:all .2s cubic-bezier(0, 0, 0.2, 1)}.video-js.vjs-videopress .vp-chapter-text-button .vjs-chapters-button[aria-expanded=true] .vjs-control-text:after{transform:rotate(-90deg)}.video-js.vjs-videopress.vjs-touch-enabled .vp-chapter-text-button.vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:100px}.vjs-touch-enabled .vjs-control-bar .vp-chapter-text-button .vjs-menu .vjs-menu-content{max-height:100px}.vjs-touch-enabled .vjs-control-bar .vp-chapter-text-button .vjs-chapters-button .vjs-control-text{max-width:50px;padding-right:18px;height:100%;overflow:hidden;white-space:nowrap;text-overflow:ellipsis}.vjs-touch-enabled .vjs-control-bar .vp-chapter-text-button .vjs-chapters-button .vjs-control-text:after{right:0;top:7px}`,""]);const h=c},670:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-error-screen{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.videopress-error-screen h3{font-weight:600;font-size:24px;line-height:24px;margin-bottom:16px;letter-spacing:-0.47px}.videopress-error-screen p{font-weight:400;font-size:15px;line-height:24px;letter-spacing:-0.47px}.videopress-error-screen a{color:#fff}.videopress-error-screen .videopress-error-message{max-width:336px;text-align:center}.videopress-error-screen__vp-logo{position:absolute;bottom:20px;right:20px}",""]);const a=o},3414:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(3888),n.b),c=o()(r()),d=l()(u);c.push([e.id,`.videopress-quality-transcoding{display:flex;align-items:center;color:gray;pointer-events:none}.videopress-quality-transcoding:after{content:"";display:inline-block;animation:rotate linear .75s infinite;background:url(${d});background-position:center;background-size:10px;width:10px;height:10px;margin-left:4px}@keyframes rotate{0%{-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}.video-js.vjs-quality-selector{display:block}.video-js.vjs-quality-selector .vjs-max-quality-selector-button{width:auto}.video-js.vjs-quality-selector .vjs-max-quality-selector-button .vjs-menu{left:-1.5em}.video-js.vjs-quality-selector .vjs-max-quality-selector-button .vjs-menu li{text-transform:none}.video-js.vjs-quality-selector .vjs-max-quality-selector-button .vjs-icon-placeholder{line-height:24px;font-size:14px;padding:.5px 0 0}.video-js.vjs-touch-enabled.vjs-quality-selector .vjs-max-quality-selector-button .vjs-icon-placeholder{line-height:30px;padding:0;font-size:14px}.current-auto-quality-label{font-size:.9em;margin-left:5px;color:silver}.vjs-settings-menu-button.open .current-auto-quality-label{display:none}`,""]);const h=c}
1,4849:(e,t,n)=>{"use strict";n.d(t,{Z:()=>f});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(9956),n.b),c=new URL(n(1372),n.b),d=o()(r()),h=l()(u),p=l()(c);d.push([e.id,`.videopress-play-pause-animation{width:var(--big-play-button-size);height:var(--big-play-button-size);display:none;opacity:0;position:absolute;left:50%;top:50%;background-repeat:no-repeat;background-size:contain;margin:calc(-1*var(--big-play-button-size)/2) 0 0 calc(-1*var(--big-play-button-size)/2);animation:anim-expand 600ms ease-in-out 0s 1;background-image:url(${h})}@keyframes anim-expand{0%{transform:scale(0.85);opacity:.8}100%{transform:scale(1);opacity:0}}.vjs-paused .videopress-play-pause-animation{background-image:url(${p})}`,""]);const f=d},1333:(e,t,n)=>{"use strict";n.d(t,{Z:()=>g});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(8611),n.b),c=new URL(n(3967),n.b),d=new URL(n(8477),n.b),h=o()(r()),p=l()(u),f=l()(c),m=l()(d);h.push([e.id,`.video-js.vjs-videopress{--left-adj: 80%;--menu-transition: visibility 0.2s ease-out, opacity 0.2s ease-out, transform 0.2s ease-out}.video-js.vjs-videopress.videopress-has-pip{--left-adj: 60%}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-icon-placeholder{background:url(${p})}.video-js.vjs-videopress .vjs-menu-button-popup.vjs-settings-menu-button .vjs-menu .vjs-menu-content{left:var(--left-adj);transform:translateX(calc(-1 * var(--left-adj)))}.video-js.vjs-videopress .settings-menu-item__hidden{display:none}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-menu{display:block;pointer-events:none}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-menu ul{pointer-events:all}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-menu li{text-transform:none;margin:4px 8px;padding:6px 8px;line-height:1.5}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__content{visibility:hidden;transform:translate(calc(-1 * var(--left-adj)), 10px) !important;opacity:0;transition:var(--menu-transition)}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__content>li:last-of-type{display:none}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail{position:absolute;display:block;visibility:hidden;opacity:0;flex-direction:column;background:#1a1a1a;border-radius:2px;padding:0;width:fit-content;margin-left:1.5px;font-family:inherit;overflow:hidden;right:0;bottom:calc(1.5em + 3.5px);left:var(--left-adj);transform:translate(calc(-1 * var(--left-adj)), -8px);transition:var(--menu-transition)}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .vjs-settings-sub-menu,.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .vjs-menu .vjs-menu-content,.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .vjs-menu{height:auto;display:block;position:static;left:auto !important;transform:none;background:none;margin:0;padding:0}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .settings-menu-button__detail-header{display:flex;align-items:center;justify-content:space-between;padding:8px 12px 8px 8px;text-align:left;border-bottom:1px solid #313131;line-height:1.5}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .settings-menu-button__detail-header-title{display:flex;align-items:center;flex-grow:1;text-shadow:none}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .settings-menu-button__detail-header-title::before{content:url(${f});padding-right:4px;width:24px;height:24px}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .settings-menu-button__detail-header-button{font-size:12px;display:none}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail .vjs-icon-placeholder{display:none}.video-js.vjs-videopress .vjs-settings-menu-button .settings-menu-button__detail-content{padding:4px 0}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-menu-content{min-width:230px;min-height:none;display:block}.video-js.vjs-videopress .vjs-settings-menu-button.open .settings-menu-button__content{visibility:hidden}.video-js.vjs-videopress .vjs-settings-menu-button.open .settings-menu-button__detail .vjs-menu-content,.video-js.vjs-videopress .vjs-settings-menu-button.open .settings-menu-button__detail .vjs-menu,.video-js.vjs-videopress .vjs-settings-menu-button.open .settings-menu-button__detail .vjs-hidden{display:block !important}.video-js.vjs-videopress .vjs-settings-menu-button.open .settings-menu-button__detail{visibility:visible;opacity:1;transform:translate(calc(-1 * var(--left-adj)), -8px)}.video-js.vjs-videopress .vjs-settings-menu-button.open .settings-menu-button__detail{display:flex}.video-js.vjs-videopress .vjs-settings-menu-button.open .vjs-settings-sub-menu{display:block}.video-js.vjs-videopress .vjs-settings-menu-button.settings-menu-button__active .vjs-menu-content{display:block}.video-js.vjs-videopress .vjs-settings-menu-button.settings-menu-button__active .settings-menu-button__content{visibility:visible;transform:translate(calc(-1 * var(--left-adj)), -8px) !important;opacity:1}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-menu-item{display:flex;flex-direction:row;align-items:center;justify-content:space-between;text-shadow:none}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-settings-sub-menu{display:none}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-settings-sub-menu-value{display:flex;align-items:center}.video-js.vjs-videopress .vjs-settings-menu-button .vjs-settings-sub-menu-value::after{position:relative;content:url(${m});padding-left:4px;height:24px;width:24px}.video-js.vjs-videopress .vjs-settings-menu-button.settings-menu-button__active .vjs-menu{display:block}.video-js.vjs-videopress .vjs-settings-menu-button.settings-menu-button__show-captions-settings .settings-menu-button__detail-header-button{display:block}.video-js.vjs-videopress.videopress-has-tracks .settings-menu-button__content>li:last-of-type{display:flex}.video-js.vjs-videopress .vjs-settings-sub-menu-title,.video-js.vjs-videopress .vjs-settings-sub-menu-value{text-shadow:none}`,""]);const g=h},5006:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});
1var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(6380),n.b),c=o()(r()),d=l()(u);c.push([e.id,`.videopress-share{position:absolute;top:3px;right:0;padding:7px;opacity:0;display:flex;flex-direction:row;align-items:center;justify-content:center;transition:opacity .2s}.videopress-share .vjs-share-ui-button{pointer-events:none;cursor:pointer}.videopress-share .vjs-share-ui-button .vjs-icon-placeholder{background:url(${d})}.videopress-share div{font-size:13px;line-height:normal;width:auto;height:auto;margin-right:24px;max-width:300px;text-overflow:ellipsis;white-space:nowrap;transition:opacity .05s linear;opacity:0;text-align:right;user-select:none}.videopress-share:hover div{opacity:1}`,""]);const h=c},931:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-share-dialog{position:absolute;top:0;bottom:0;left:0;width:100%;display:flex;align-items:center;justify-content:center;animation:reveal 300ms ease-out 1;animation-fill-mode:both;overflow:hidden;z-index:100}.vjs-touch-enabled .videopress-share-dialog .videopress-share-dialog__inner{font-size:14px}.vjs-touch-enabled .videopress-share-dialog .option_loop,.vjs-touch-enabled .videopress-share-dialog .option_autoplay{display:none}.vjs-touch-enabled .videopress-share-dialog .option_playtime input{width:28px;height:28px}.vjs-touch-enabled .videopress-share-dialog .option_playtime label{padding:10px}.videopress-share-dialog__inner{max-width:460px;padding:30px;font-size:11px;min-width:10%}.videopress-share-dialog__inner.videopress-size-m .videopress-share-dialog__embed,.videopress-share-dialog__inner.videopress-size-s .videopress-share-dialog__embed,.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__embed{display:none}.videopress-share-dialog__inner.videopress-size-s .videopress-share-dialog__title,.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__title{display:none}.videopress-share-dialog__inner.videopress-size-s .videopress-share-dialog__embed-title .videopress-share-dialog__title,.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__embed-title .videopress-share-dialog__title{display:block}.videopress-share-dialog__inner.videopress-size-s .videopress-share-dialog__options,.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__options{display:flex;flex-direction:row;margin-bottom:0}.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__embed-title{display:none}.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__options{margin-bottom:0px}.videopress-share-dialog__inner.videopress-size-xs .videopress-share-dialog__options .videopress-share-dialog__option{margin:0px}.videopress-share-dialog__title{margin:0 0 10px}.videopress-share-dialog__link,.videopress-share-dialog__embed{position:relative;background:#fff;color:#000;border-radius:2px;margin:0 0 15px;cursor:text;width:100%;display:flex;align-items:center}.videopress-share-dialog__link .copy-button,.videopress-share-dialog__embed .copy-button{position:absolute;display:flex;justify-content:center;align-items:center;top:0;right:0;color:#fff;background:#000;padding:12px 0;text-align:center;width:60px;height:100%;border-radius:0 2px 2px 0;cursor:pointer}.videopress-share-dialog__link.copied,.videopress-share-dialog__embed.copied{animation:flash .5s ease-out 1}.videopress-share-dialog__link{padding:12px 72px 12px 12px}.videopress-share-dialog__link .text{overflow-x:scroll;white-space:nowrap;width:250px;-ms-overflow-style:none;scrollbar-width:none}.videopress-share-dialog__link .text::-webkit-scrollbar{display:none}.videopress-share-dialog__embed{padding:12px 12px 12px 12px;height:80px;overflow-y:clip}.videopress-share-dialog__embed-title{display:flex;justify-content:space-between;align-items:start}.videopress-share-dialog__embed-title .raised-copy-button{text-decoration:underline;cursor:pointer;padding:0}.videopress-share-dialog__options{margin-bottom:24px}.videopress-share-dialog__option{padding-right:15px;margin:12px 0;display:flex;align-items:center}.videopress-share-dialog__option input[type=checkbox]{margin:0 8px 0 0}.videopress-share-dialog__option label{width:100%}@keyframes reveal{from{opacity:0}
1to{opacity:1}}@keyframes flash{0%{background:#fff}50%{background:#9b9b9b}100%{background:#fff}}.videopress-share-dialog-download-button{color:#fff;padding:10px;background-color:#101010;text-decoration:none;cursor:pointer;border-radius:5px;display:block;max-width:150px;margin:auto;text-align:center}.videopress-share-dialog-download-button:hover{background-color:#000}",""]);const a=o},192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(3888),n.b),c=o()(r()),d=l()(u);c.push([e.id,`.videopress-spinner{animation:rotate linear .75s infinite;content:url(${d});display:none}.videopress-spinner.show{display:block}@keyframes rotate{0%{-moz-transform:rotate(0deg);-webkit-transform:rotate(0deg);transform:rotate(0deg)}100%{-moz-transform:rotate(360deg);-webkit-transform:rotate(360deg);transform:rotate(360deg)}}`,""]);const h=c},6889:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,'.videopress-markers-container{height:18px;background:rgba(0,0,0,0);transition:all .2s cubic-bezier(0, 0, 0.2, 1);width:100%;position:absolute;bottom:0}.vjs-fullscreen .videopress-markers-container{height:18px}.videopress-markers-container button{background:none;color:inherit;border:none;padding:0;font:inherit;cursor:pointer;outline:inherit}.videopress-markers-container .videopress-marker{height:18px;position:absolute;bottom:0;background-color:rgba(255,255,255,0);padding:8px 0 0 0;transition:all .1s cubic-bezier(0, 0, 0.2, 1);display:flex;flex-direction:row}.videopress-markers-container .videopress-marker .videopress-marker-button{flex-grow:1;height:100%;min-width:8px;max-width:16px;content:" ";position:relative;left:0;bottom:0;cursor:pointer;transition:all .1s cubic-bezier(0, 0, 0.2, 1)}.videopress-markers-container .videopress-marker span{flex-grow:2}.vjs-fullscreen .videopress-markers-container .videopress-marker{width:10px;height:18px;margin-left:-5px}.vjs-fullscreen .videopress-markers-container .videopress-marker::before{transform:scale(1.4)}.vjs-fullscreen .videopress-markers-container .videopress-marker::after{transform:scale(1.5)}:hover>.videopress-markers-container{height:18px}:hover>.videopress-markers-container .videopress-marker{bottom:0}:hover>.videopress-markers-container .videopress-marker:hover{height:18px}.vjs-fullscreen :hover>.videopress-markers-container{height:32px}.vjs-fullscreen :hover>.videopress-markers-container .videopress-marker{height:32px}.videopress-chapter-title-container{font-size:20px;color:#fff;position:absolute;top:16px;left:16px;display:block}:not(.vjs-has-started)>.videopress-chapter-title-container,.vjs-user-inactive:not(.videopress-keyboard-navigation)>.videopress-chapter-title-container{display:none}.vjs-touch-enabled .videopress-markers-container{height:32px}.vjs-touch-enabled .videopress-markers-container .videopress-marker{height:32px;width:12px;bottom:0;margin-left:-6px;transition:all .4s ease-in-out}.vjs-touch-enabled .videopress-markers-container .videopress-marker::before{transform:scale(2)}.vjs-touch-enabled .videopress-markers-container .videopress-marker::after{transform:scale(2)}.vjs-touch-enabled.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-paused.vjs-has-started .videopress-chapter-title-container{display:block}.vjs-touch-enabled.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-paused.vjs-has-started .videopress-marker{height:22px;bottom:10px}',""]);const a=o},7938:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-converting{font-size:2em;text-align:center;width:100%;height:100%}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content{padding:0px}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow{position:absolute;top:0;left:0;bottom:16px;right:0;display:flex;flex-flow:column nowrap}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-toprow-container{flex-grow:1;padding:10px}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-toprow-container .videopress-converting-logo-container{height:100%}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-toprow-container .videopress-converting-logo-container img{height:100%;margin:auto;display:block;width:auto;max-width:100px}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container{padding-bottom:20px;padding-right:20px;padding-left:20px;overflow:hidden;font-size:.65em;font-weight:normal;display:flex;flex-flow:row nowrap;align-items:center;max-width:100%}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-text-container{text-align:left;flex-grow:8;max-width:80%}.vjs-layout-x-small .vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-text-container,.vjs-layout-tiny .vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-text-container{display:none}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-text-container span{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;display:block}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-percentage-text{text-align:right;flex-grow:1}.vjs-layout-x-small .vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-percentage-text,.vjs-layout-tiny .vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-toprow .videopress-converting-percentage-container .videopress-converting-percentage-text{text-align:center;font-size:20px}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-bottomrow{height:16px;position:absolute;bottom:0;left:0;right:0}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-bottomrow .videopress-converting-progress-container{width:100%;height:100%;background:#d9d9d9}.vjs-modal-dialog.videopress-converting-modal .vjs-modal-dialog-content .videopress-converting-bottomrow .videopress-converting-progress-container .videopress-converting-current-progress{background:#1a1a1a;height:100%}",""]);const a=o},7137:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});
vendor: 5,825 bytes, line 1
1var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-director-loading{position:absolute;top:0;left:0;width:100%;height:100%;display:flex;align-items:center;justify-content:center;background-color:#000;color:#000;font-size:13px;animation:appear 300ms ease-in-out 1;-webkit-animation:appear 300ms ease-in-out 1;animation-fill-mode:forwards;-webkit-animation-fill-mode:forwards;animation-delay:300ms;-webkit-animation-delay:300ms}@keyframes appear{from{color:#000}to{color:#666}}.video-js .vjs-modal-dialog.videopress-director__privacy-error{display:flex;flex-direction:column;align-items:center;justify-content:center;text-align:center}.video-js .vjs-modal-dialog.videopress-director__privacy-error h3{font-weight:600;font-size:24px;line-height:24px;margin-bottom:16px;letter-spacing:-0.47px}.video-js .vjs-modal-dialog.videopress-director__privacy-error p{font-weight:400;font-size:15px;line-height:24px;letter-spacing:-0.47px}.video-js .vjs-modal-dialog.videopress-director__privacy-error a{color:#fff}.video-js .vjs-modal-dialog .videopress-director__privacy-error-vp-logo{position:absolute;bottom:20px;right:20px}.video-js .vjs-modal-dialog.videopress-director__error-message{background:#000;z-index:10}.video-js .vjs-modal-dialog.videopress-director__error-message .vjs-modal-dialog-content{text-align:center;padding:0;margin:auto;height:2em;font-size:2em;line-height:2em;top:0;left:0;bottom:0;right:0}.video-js .vjs-modal-dialog.videopress-director__error-message .vjs-modal-dialog-content a{color:#fff}.video-js .vjs-modal-dialog.videopress-director-transparent-modal{background-color:rgba(0,0,0,0);z-index:10}",""]);const a=o},335:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-keyboard-navigation .vjs-control-bar button:focus{outline:solid thin #fff !important}.videopress-keyboard-navigation .vjs-share-ui-button:focus{outline:solid thin #fff !important}.vjs-close-button:focus{outline:solid thin #fff !important}",""]);const a=o},6291:(e,t,n)=>{"use strict";n.d(t,{Z:()=>a});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s)()(r());o.push([e.id,".videopress-thumbnail{display:none;position:absolute;bottom:30px;background-color:#000;border:2px solid #000;border-radius:2px;justify-content:center;align-items:center}.videopress-thumbnail.show{display:flex}.vjs-fullscreen .videopress-thumbnail{bottom:44px}.videopress-has-chapters .videopress-thumbnail{bottom:45px}.videopress-has-chapters .videopress-thumbnail .videopress-thumbnail-chapter{position:absolute;bottom:-1px;padding:4px 8px;font-size:12px;background-color:rgba(0,0,0,.75);border-radius:2px 2px 0 0;text-align:center;text-overflow:ellipsis;overflow:hidden;white-space:nowrap;max-width:100%}.videopress-has-chapters.vjs-fullscreen .videopress-thumbnail{bottom:59px}.vjs-touch-enabled .videopress-thumbnail{bottom:35px}.videopress-thumb-img{display:none;position:relative;top:0;left:0}.videopress-thumb-img.show{display:block}",""]);const a=o},7192:(e,t,n)=>{"use strict";n.d(t,{Z:()=>Q});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(8793),n.b),c=new URL(n(9956),n.b),d=new URL(n(9676),n.b),h=new URL(n(8396),n.b),p=new URL(n(925),n.b),f=new URL(n(6380),n.b),m=new URL(n(8106),n.b),g=new URL(n(1133),n.b),v=new URL(n(7042),n.b),y=new URL(n(7348),n.b),b=new URL(n(866),n.b),_=new URL(n(1372),n.b),T=new URL(n(5954),n.b),j=new URL(n(7700),n.b),w=new URL(n(4924),n.b),S=new URL(n(448),n.b),x=new URL(n(5409),n.b),k=new URL(n(5301),n.b),E=new URL(n(8942),n.b),C=o()(r()),I=l()(u),D=l()(c),A=l()(d),M=l()(h),O=l()(p),P=l()(f),N=l()(m),L=l()(g),R=l()(v),U=l()(y),B=l()(b),z=l()(_),F=l()(T),q=l()(j),V=l()(w),H=l()(S),W=l()(x),G=l()(k),$=l()(E);C.push([e.id,`:root{--big-play-button-size: min(max(calc(100vw / 8), 60px), 90px);--vp-color-vjs-load-progress: #d9d9d9;--vp-color-vjs-slider: #fff;--vp-color-vjs-play-progress: #1a1a1a}@media screen and (max-width: 200px){:root{--big-play-button-size: 40px}:root .vjs-big-play-button{opacity:.75}}.video-js.vjs-videopress{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,Oxygen-Sans,Ubuntu,Cantarell,"Helvetica Neue",sans-serif;overflow:hidden}.video-js.vjs-videopress .vjs-tech{outline:none}.video-js.vjs-videopress.videopress-cover:not(.vjs-fullscreen) .vjs-tech{object-fit:cover}.video-js.vjs-videopress .vjs-poster{background-size:cover}.video-js.vjs-videopress .vjs-poster>img{object-fit:cover}.video-js.vjs-videopress.vjs-has-started .vjs-poster.videopress-poster-image-is-visible{display:revert}.video-js.vjs-videopress.vjs-has-started .vjs-poster.videopress-poster-image-is-visible picture{display:revert}.video-js.vjs-videopress.videopress-mental-health-filter video,.video-js.vjs-videopress.videopress-mental-health-filter .vjs-poster{filter:blur(var(--vp-blur-amount, 10px)) grayscale(100%)}.video-js.vjs-videopress.videopress-mental-health-filter .videopress-thumb-img{filter:grayscale(100%)}.video-js.vjs-videopress .videopress-overlay{position:absolute;pointer-events:none;width:100%;height:100%;opacity:1;transition:opacity .3s cubic-bezier(0.4, 0, 0.6, 1) .04s;background:radial-gradient(ellipse at center, rgba(255, 255, 255, 0.14) 0%, rgba(0, 0, 0, 0.14) 0%, rgba(0, 0, 0, 0.3) 100%)}.video-js.vjs-videopress:hover>.videopress-overlay{opacity:.4}.video-js.vjs-videopress.vjs-has-started .videopress-overlay{opacity:0;background:linear-gradient(rgba(0, 0, 0, 0.15), rgba(0, 0, 0, 0.35))}.video-js.vjs-videopress.vjs-has-started .videopress-overlay:hover{opacity:inherit}.video-js.vjs-videopress.vjs-has-started.vjs-user-active .videopress-overlay,.video-js.vjs-videopress.vjs-has-started.videopress-keyboard-navigation .videopress-overlay{opacity:1}.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation) .videopress-overlay{opacity:0}
1.video-js.vjs-videopress .vjs-control-bar{background:rgba(0,0,0,0);box-sizing:content-box;padding-bottom:16px}.video-js.vjs-videopress.vjs-layout-x-small .vjs-progress-control,.video-js.vjs-videopress.vjs-layout-tiny .vjs-progress-control{display:flex}.video-js.vjs-videopress.vjs-fullscreen .vjs-control-bar{padding-bottom:32px}.video-js.vjs-videopress.vjs-touch-enabled .vjs-control-bar{padding-bottom:40px}.video-js.vjs-videopress.vjs-touch-enabled.vjs-layout-tiny .vjs-control-bar,.video-js.vjs-videopress.vjs-touch-enabled.vjs-layout-x-small .vjs-control-bar{padding-bottom:16px}.video-js.vjs-videopress.vjs-has-started.vjs-user-active .vjs-control-bar,.video-js.vjs-videopress.vjs-has-started.videopress-keyboard-navigation .vjs-control-bar{opacity:1;transform:translateY(0);transition:opacity .3s cubic-bezier(0.4, 0, 0.6, 1) .04s,transform .4s cubic-bezier(0.4, 0, 0.6, 1)}.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation) .vjs-control-bar,.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-paused .vjs-control-bar{opacity:0;transform:translateY(10px);transition:opacity .3s cubic-bezier(0.4, 0, 0.6, 1) .04s,transform .4s cubic-bezier(0.4, 0, 0.6, 1)}.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-paused.vjs-touch-enabled .vjs-control-bar,.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation).videopress-chapters-menu-open .vjs-control-bar,.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation).videopress-settings-open .vjs-control-bar{opacity:1;transform:translateY(0)}.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-paused.vjs-touch-enabled.vjs-controls-disabled .videopress-share{opacity:0}.video-js.vjs-videopress .videopress-share{transition:opacity .3s cubic-bezier(0.4, 0, 0.6, 1) .04s,transform .4s cubic-bezier(0.4, 0, 0.6, 1)}.video-js.vjs-videopress.vjs-has-started.vjs-user-active .videopress-share,.video-js.vjs-videopress.vjs-has-started.videopress-keyboard-navigation .videopress-share,.video-js.vjs-videopress.vjs-has-started.vjs-paused .videopress-share{transform:translateY(0);opacity:1}.video-js.vjs-videopress.vjs-has-started.vjs-user-active .videopress-share .vjs-share-ui-button,.video-js.vjs-videopress.vjs-has-started.videopress-keyboard-navigation .videopress-share .vjs-share-ui-button,.video-js.vjs-videopress.vjs-has-started.vjs-paused .videopress-share .vjs-share-ui-button{pointer-events:all}.video-js.vjs-videopress.vjs-has-started.vjs-controls-disabled .videopress-share{transform:none;transition:none;opacity:0}.video-js.vjs-videopress.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-playing .videopress-share,.video-js.vjs-videopress.vjs-has-started.vjs-paused.vjs-user-inactive:not(.videopress-keyboard-navigation) .videopress-share{transform:translateY(10px);opacity:0}.video-js.vjs-videopress.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-playing .videopress-share .vjs-share-ui-button,.video-js.vjs-videopress.vjs-has-started.vjs-paused.vjs-user-inactive:not(.videopress-keyboard-navigation) .videopress-share .vjs-share-ui-button{pointer-events:none}.video-js.vjs-videopress.vjs-has-started.vjs-user-inactive:not(.videopress-keyboard-navigation).vjs-paused.vjs-touch-enabled .videopress-share{opacity:1}.video-js.vjs-videopress .vjs-progress-control{position:absolute;bottom:0;width:100%;align-items:flex-end;height:24px}.video-js.vjs-videopress .vjs-progress-holder{transition:all .15s cubic-bezier(0, 0, 0.2, 1)}.video-js.vjs-videopress .vjs-load-progress,.video-js.vjs-videopress .vjs-load-progress div{background:var(--vp-color-vjs-load-progress)}.video-js.vjs-videopress .vjs-load-progress div{transition:background .3s linear}.video-js.vjs-videopress .vjs-slider{background:var(--vp-color-vjs-slider)}.video-js.vjs-videopress .vjs-play-progress{background:var(--vp-color-vjs-play-progress);transition:background .3s linear}.video-js.vjs-videopress .vjs-play-progress::before{display:none}.video-js.vjs-videopress .vjs-progress-control .vjs-progress-holder{margin:0;font-size:14px;height:8px}.video-js.vjs-videopress.videopress-has-chapters .vjs-progress-control .vjs-progress-holder{height:18px}.video-js.vjs-videopress.vjs-touch-enabled .vjs-progress-control .vjs-progress-holder,.video-js.vjs-videopress .vjs-progress-control:hover .vjs-progress-holder{font-size:50px;font-size:70px;height:18px}.video-js.vjs-videopress .vjs-volume-bar{margin:10px .45em 0}.video-js.vjs-videopress .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-videopress .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-videopress .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-videopress .vjs-volume-panel.vjs-volume-panel-horizontal:focus{transition:width .2s cubic-bezier(0.4, 0, 1, 1);width:115px}.video-js.vjs-videopress.vjs-touch-enabled .vjs-progress-control .vjs-progress-holder{height:32px}.video-js.vjs-videopress.vjs-touch-enabled.vjs-layout-tiny .vjs-progress-control .vjs-progress-holder{height:16px}.video-js.vjs-videopress.vjs-touch-enabled .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-videopress.vjs-touch-enabled .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-videopress.vjs-touch-enabled .vjs-volume-panel.vjs-volume-panel-horizontal:active{transition:none;width:30px}.video-js.vjs-videopress .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:width .2s cubic-bezier(0.4, 0, 1, 1);width:auto;height:auto;opacity:1;overflow:hidden;visibility:visible;left:auto;margin-left:8px}.video-js.vjs-videopress .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js.vjs-videopress .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js.vjs-videopress .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js.vjs-videopress .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js.vjs-videopress .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal,.video-js.vjs-videopress .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal{width:90px}.video-js.vjs-videopress .vjs-volume-panel{transition:width .2s cubic-bezier(0, 0, 0.2, 1);height:24px;width:24px;overflow:hidden}.video-js.vjs-videopress.vjs-touch-enabled .vjs-volume-panel,.video-js.vjs-videopress.vjs-touch-enabled .vjs-mute-control{width:30px;height:30px;margin-left:16px}.video-js.vjs-videopress .vjs-volume-panel button.vjs-control.vjs-mute-control{margin:0}.video-js.vjs-videopress .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js.vjs-videopress .vjs-volume-panel .vjs-volume-control:active,.video-js.vjs-videopress .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js.vjs-videopress .vjs-volume-panel:active .vjs-volume-control,.video-js.vjs-videopress .vjs-volume-panel:focus .vjs-volume-control,.video-js.vjs-videopress .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control{transition:margin .2s cubic-bezier(0, 0, 0.2, 1),width .2s cubic-bezier(0, 0, 0.2, 1)}.video-js.vjs-videopress .vjs-control{font-size:14px}.video-js.vjs-videopress .vjs-control .vjs-button:focus{outline:none}.video-js.vjs-videopress .vjs-control:focus,.video-js.vjs-videopress .vjs-slider:focus{outline:none}.video-js.vjs-videopress .vjs-current-time,.video-js.vjs-videopress .vjs-duration,.video-js.vjs-videopress .vjs-time-divider{display:block;font-size:14px;font-variant-numeric:tabular-nums}.video-js.vjs-videopress .vjs-time-control{line-height:24px;user-select:none;padding-left:8px;padding-right:8px}.video-js.vjs-videopress .vjs-current-time{margin-left:14px;padding-left:0}.video-js.vjs-videopress.vjs-touch-enabled .vjs-time-control{line-height:30px}.video-js.vjs-videopress .vjs-time-tooltip{top:-34px;font-size:14px}.video-js.vjs-videopress.videopress-has-chapters .vjs-time-tooltip{top:-49px}.video-js.vjs-videopress .vjs-slider-bar .vjs-time-tooltip{display:none !important}.video-js.vjs-videopress.vjs-touch-enabled .vjs-progress-control .vjs-time-tooltip,.video-js.vjs-videopress .vjs-progress-control:hover .vjs-time-tooltip{font-size:14px;border-radius:2px;padding:4px 12px}.video-js.vjs-videopress.vjs-touch-enabled .vjs-progress-control .vjs-time-tooltip,.video-js.vjs-videopress.vjs-touch-enabled .vjs-progress-control .vjs-progress-holder:focus .vjs-time-tooltip,.video-js.vjs-videopress .vjs-progress-control:hover .vjs-time-tooltip,.video-js.vjs-videopress .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip{font-size:14px}.video-js.vjs-videopress .vjs-time-divider{margin:0 -24px;text-align:center}.video-js.vjs-videopress .vjs-remaining-time{display:none}.video-js.vjs-videopress .vjs-custom-control-spacer{margin-left:auto;display:block}.video-js.vjs-videopress .vjs-big-play-button{display:none;background:rgba(0,0,0,0);border:none;margin:0;top:50%;left:50%;height:var(--big-play-button-size);width:var(--big-play-button-size);transform:translate(-50%, -50%);transition:none}.video-js.vjs-videopress .vjs-big-play-button:focus,.video-js.vjs-videopress:hover .vjs-big-play-button{background:none}.video-js.vjs-videopress.videopress-loaded .vjs-big-play-button{display:block}.video-js.vjs-videopress.videopress-loaded.vjs-error .vjs-big-play-button,.video-js.vjs-videopress.videopress-loaded.vjs-has-started .vjs-big-play-button:not(.videopress-big-play-button-is-visible),.video-js.vjs-videopress.videopress-loaded.vjs-using-native-control
1s .vjs-big-play-button{display:none}.video-js.vjs-videopress .vjs-playback-rate .vjs-playback-rate-value{position:inherit;font-size:14px;line-height:24px}.video-js.vjs-videopress.vjs-touch-enabled .vjs-playback-rate.vjs-menu-button{width:auto;min-width:0}.video-js.vjs-videopress.vjs-touch-enabled .vjs-playback-rate.vjs-menu-button .vjs-playback-rate-value{line-height:30px;width:auto;height:30px;padding:0;font-size:14px}.video-js.vjs-videopress .vjs-volume-bar.vjs-slider-horizontal{background-color:rgba(0,0,0,.5);background-color:#1a1a1a;height:4px;border-radius:8px}.video-js.vjs-videopress .vjs-slider-horizontal .vjs-volume-level{height:4px;border-radius:8px}.video-js.vjs-videopress .vjs-progress-control .vjs-mouse-display{width:0}.video-js.vjs-videopress.vjs-fullscreen .vjs-play-progress::before{display:none}.video-js.vjs-videopress.vjs-fullscreen .vjs-progress-control .vjs-progress-holder{height:18px}.video-js.vjs-videopress.vjs-touch-enabled.vjs-fullscreen .vjs-progress-control .vjs-progress-holder,.video-js.vjs-videopress.vjs-fullscreen .vjs-progress-control:hover .vjs-progress-holder{height:32px}.video-js.vjs-videopress .vjs-icon-placeholder{width:24px;height:24px;display:block;margin:0 auto}.video-js.vjs-videopress .vjs-icon-placeholder::before{display:none}.video-js.vjs-videopress .vjs-play-control .vjs-icon-placeholder{background:url(${I})}.video-js.vjs-videopress .vjs-big-play-button .vjs-icon-placeholder{background:url(${D});background-size:var(--big-play-button-size) var(--big-play-button-size);height:var(--big-play-button-size);width:var(--big-play-button-size);transition:transform .25s cubic-bezier(0.4, 0, 0.6, 1) .04s;will-change:transform}.video-js.vjs-videopress:hover>.vjs-big-play-button .vjs-icon-placeholder{transform:scale(1.08)}.video-js.vjs-videopress .vjs-touch-overlay.skip{background-image:url(${A})}.video-js.vjs-videopress .vjs-touch-overlay.skip.reverse{background-image:url(${M})}.video-js.vjs-videopress .vjs-close-button .vjs-icon-placeholder{background:url(${O})}.video-js.vjs-videopress .vjs-share-ui-button .vjs-icon-placeholder{background:url(${P})}.video-js.vjs-videopress .vjs-subs-caps-button .vjs-menu-button .vjs-icon-placeholder{background:url(${N})}.video-js.vjs-videopress .vjs-chapters-button .vjs-menu-button .vjs-icon-placeholder{background:url(${L})}.video-js.vjs-videopress .vjs-chapters-button .vjs-menu-title{display:none}.video-js.vjs-videopress .vjs-subs-caps-button .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{display:none}.video-js.vjs-videopress .vjs-subs-caps-button .vjs-captions-menu-item .vjs-menu-item-text::after{content:" (cc)"}.video-js.vjs-videopress .vjs-download-button .vjs-icon-placeholder{background:url(${R})}.video-js.vjs-videopress .vjs-fullscreen-control .vjs-icon-placeholder{background:url(${U})}.video-js.vjs-videopress .vjs-picture-in-picture-control .vjs-icon-placeholder{background:url(${B})}.video-js.vjs-videopress .vjs-play-control.vjs-playing .vjs-icon-placeholder{background:url(${z})}.video-js.vjs-videopress .vjs-play-control.vjs-ended .vjs-icon-placeholder{background:url(${F})}.video-js.vjs-videopress.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder{background:url(${q})}.video-js.vjs-videopress.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder{background:url(${V})}.video-js.vjs-videopress .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder{background:url(${H})}.video-js.vjs-videopress .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder{background:url(${W})}.video-js.vjs-videopress .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder{background:url(${G})}.video-js.vjs-videopress .vjs-mute-control.vjs-vol-3 .vjs-icon-placeholder{background:url(${$})}.video-js.vjs-videopress .vjs-quality-button{cursor:pointer}.video-js.vjs-videopress button.vjs-control,.video-js.vjs-videopress .vjs-menu-button{font-family:inherit;padding:0;height:24px;width:24px;margin:0 7px}.video-js.vjs-videopress button.vjs-control.videopress-quality-selector,.video-js.vjs-videopress button.vjs-control.vjs-playback-rate,.video-js.vjs-videopress .vjs-menu-button.videopress-quality-selector,.video-js.vjs-videopress .vjs-menu-button.vjs-playback-rate{margin:0 8px}.video-js.vjs-videopress.vjs-touch-enabled :not(.vjs-big-play-button) .vjs-icon-placeholder{min-width:30px;height:30px;background-size:100%;background-repeat:no-repeat}.video-js.vjs-videopress.vjs-touch-enabled button.vjs-control,.video-js.vjs-videopress.vjs-touch-enabled .vjs-menu-button{height:30px;min-width:30px;line-height:30px}.video-js.vjs-videopress .vjs-menu-button button{margin:0}.video-js.vjs-videopress button.vjs-control.vjs-play-control{margin-left:12px;margin-right:10px}.video-js.vjs-videopress button.vjs-control.vjs-play-control.vjs-playing{margin-left:11px;margin-right:11px}.video-js.vjs-videopress.vjs-touch-enabled button.vjs-control.vjs-play-control{display:none}.video-js.vjs-videopress.vjs-touch-enabled.vjs-playing.vjs-user-inactive button.vjs-control.vjs-play-control.videopress-touch-play-toggle{display:none}.video-js.vjs-videopress.vjs-touch-enabled.vjs-has-started button.vjs-control.vjs-play-control.videopress-touch-play-toggle{display:block;width:50px;height:50px;position:absolute;top:50%;left:50%;margin:-25px;padding:0;z-index:1}.video-js.vjs-videopress.vjs-touch-enabled.vjs-has-started button.vjs-control.vjs-play-control.videopress-touch-play-toggle .vjs-icon-placeholder{width:50px;height:50px;background-size:100%;background-repeat:no-repeat}.video-js.vjs-videopress.vjs-touch-enabled.vjs-has-started.videopress-controls-disabled button.vjs-control.vjs-play-control.videopress-touch-play-toggle{display:none}.video-js.vjs-videopress.vjs-touch-enabled.vjs-controls-disabled button.vjs-control.vjs-play-control.videopress-touch-play-toggle{display:none}.video-js.vjs-videopress button.vjs-control.vjs-fullscreen-control{margin-right:16px}.video-js.vjs-videopress .vjs-control.vjs-close-button{top:8px;right:6px}.video-js.vjs-videopress .vjs-menu-button-popup .vjs-menu{padding-bottom:20px;margin-bottom:8px;font-size:11px;width:auto;min-width:40px;left:50%;right:0;transform:translateX(-50%)}.video-js.vjs-videopress.vjs-touch-enabled .vjs-menu-button-popup .vjs-menu{margin-bottom:16px}.video-js.vjs-videopress .vjs-menu-button-popup .vjs-menu .vjs-menu-content{background:#1a1a1a;border-radius:2px;padding:4px 0;width:fit-content;font-family:inherit;overflow-x:hidden;left:50%;right:0;transform:translateX(-50%)}.video-js.vjs-videopress .vjs-chapters-button .vjs-menu .vjs-menu-content{max-width:100px;word-wrap:break-word}.video-js.vjs-videopress .vjs-subs-caps-button .vjs-menu .vjs-menu-content{min-width:110px}.video-js.vjs-videopress.videopress-layout-vertical-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:18em}.video-js.vjs-videopress.videopress-layout-vertical-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:21em;padding-top:4px;padding-bottom:4px}.video-js.vjs-videopress.videopress-layout-vertical-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.video-js.vjs-videopress .vjs-menu li{padding:3px;margin:8px 6px;border-radius:2px;min-width:48px}.video-js.vjs-videopress .vjs-menu li.vjs-menu-item:focus,.video-js.vjs-videopress .vjs-menu li.vjs-menu-item:hover{outline:none}.video-js.vjs-videopress .vjs-menu li:not(.vjs-selected).vjs-menu-item:focus,.video-js.vjs-videopress .vjs-menu li:not(.vjs-selected).vjs-menu-item:hover{background-color:rgba(88,92,97,.5)}.video-js.vjs-videopress .js-focus-visible .vjs-menu li.vjs-menu-item:hover{outline:none}.video-js.vjs-videopress .vjs-control-bar::before{content:"";display:block;width:100%;position:absolute;
1left:0;bottom:0;height:100px;background:none}.video-js.vjs-videopress .vjs-modal-dialog{background:#000 !important}.video-js.vjs-videopress.vjs-has-started .vjs-modal-dialog{background:rgba(0,0,0,.7) !important}.video-js.vjs-videopress .vjs-max-quality-selector-button{width:auto}.video-js.vjs-videopress .vjs-max-quality-selector-button .vjs-menu-button{width:100%}.video-js.vjs-videopress .vjs-max-quality-selector-button .vjs-icon-placeholder{padding:0;width:inherit}.video-js.vjs-videopress .vjs-playback-rate{width:auto}.video-js.vjs-videopress .vjs-playback-rate .vjs-menu-button{width:auto}.video-js.vjs-videopress .videopress-spinner__waiting{position:absolute;top:50%;left:50%;margin:-33px 0 0 -33px}.video-js.vjs-videopress.videopress-controls-disabled .videopress-overlay,.video-js.vjs-videopress.videopress-controls-disabled .videopress-share,.video-js.vjs-videopress.videopress-controls-disabled .videopress-play-pause-animation,.video-js.vjs-videopress.videopress-controls-disabled .videopress-spinner__waiting,.video-js.vjs-videopress.videopress-controls-disabled .videopress-director-loading{display:none !important}.video-js.vjs-videopress.videopress-controls-disabled .vjs-big-play-button{display:none}.video-js.vjs-videopress.videopress-controls-disabled .vjs-control-bar{display:none}.vjs-text-track-display{opacity:0}.vjs-has-started .vjs-text-track-display{opacity:1}`,""]);const Q=C},1985:(e,t,n)=>{"use strict";n.d(t,{Z:()=>h});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(4763),n.b),c=o()(r()),d=l()(u);c.push([e.id,`.vjs-svg-icon{display:inline-block;background-repeat:no-repeat;background-position:center;fill:currentColor;height:1.8em;width:1.8em}.vjs-svg-icon:before{content:none!important}.vjs-control:focus .vjs-svg-icon,.vjs-svg-icon:hover{filter:drop-shadow(0 0 .25em #fff)}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-modal-dialog,.vjs-button>.vjs-icon-placeholder:before,.vjs-modal-dialog .vjs-modal-dialog-content{position:absolute;top:0;left:0;width:100%;height:100%}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.vjs-button>.vjs-icon-placeholder:before{text-align:center}@font-face{font-family:VideoJS;src:url(${d}) format("woff");font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder,.vjs-icon-play{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-big-play-button .vjs-icon-placeholder:before,.video-js .vjs-play-control .vjs-icon-placeholder:before,.vjs-icon-play:before{content:"\\f101"}.vjs-icon-play-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-play-circle:before{content:"\\f102"}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder,.vjs-icon-pause{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-playing .vjs-icon-placeholder:before,.vjs-icon-pause:before{content:"\\f103"}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder,.vjs-icon-volume-mute{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-0 .vjs-icon-placeholder:before,.vjs-icon-volume-mute:before{content:"\\f104"}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder,.vjs-icon-volume-low{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-1 .vjs-icon-placeholder:before,.vjs-icon-volume-low:before{content:"\\f105"}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder,.vjs-icon-volume-mid{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control.vjs-vol-2 .vjs-icon-placeholder:before,.vjs-icon-volume-mid:before{content:"\\f106"}.video-js .vjs-mute-control .vjs-icon-placeholder,.vjs-icon-volume-high{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-mute-control .vjs-icon-placeholder:before,.vjs-icon-volume-high:before{content:"\\f107"}.video-js .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-enter:before{content:"\\f108"}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder,.vjs-icon-fullscreen-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-fullscreen .vjs-fullscreen-control .vjs-icon-placeholder:before,.vjs-icon-fullscreen-exit:before{content:"\\f109"}.vjs-icon-spinner{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-spinner:before{content:"\\f10a"}.video-js .vjs-subs-caps-button .vjs-icon-placeholder,.video-js .vjs-subtitles-button .vjs-icon-placeholder,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-subtitles{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js .vjs-subtitles-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-AU) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-GB) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-IE) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js.video-js:lang(en-NZ) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-subtitles:before{content:"\\f10b"}.video-js .vjs-captions-button .vjs-icon-placeholder,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder,.vjs-icon-captions{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-captions-button .vjs-icon-placeholder:before,.video-js:lang(en) .vjs-subs-caps-button .vjs-icon-placeholder:before,.video-js:lang(fr-CA) .vjs-subs-caps-button .vjs-icon-placeholder:before,.vjs-icon-captions:before{content:"\\f10c"}.vjs-icon-hd{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-hd:before{content:"\\f10d"}.video-js .vjs-chapters-button .vjs-icon-placeholder,.vjs-icon-chapters{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-chapters-button .vjs-icon-placeholder:before,.vjs-icon-chapters:before{content:"\\f10e"}.vjs-icon-downloading{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-downloading:before{content:"\\f10f"}.vjs-icon-file-download{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download:before{content:"\\f110"}.vjs-icon-file-download-done{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download-done:before{content:"\\f111"}.vjs-icon-file-download-off{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-file-download-off:before{content:"\\f112"}
1.vjs-icon-share{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-share:before{content:"\\f113"}.vjs-icon-cog{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cog:before{content:"\\f114"}.vjs-icon-square{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-square:before{content:"\\f115"}.video-js .vjs-play-progress,.video-js .vjs-volume-level,.vjs-icon-circle,.vjs-seek-to-live-control .vjs-icon-placeholder{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-progress:before,.video-js .vjs-volume-level:before,.vjs-icon-circle:before,.vjs-seek-to-live-control .vjs-icon-placeholder:before{content:"\\f116"}.vjs-icon-circle-outline{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-outline:before{content:"\\f117"}.vjs-icon-circle-inner-circle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-circle-inner-circle:before{content:"\\f118"}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder,.vjs-icon-cancel{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-control.vjs-close-button .vjs-icon-placeholder:before,.vjs-icon-cancel:before{content:"\\f119"}.vjs-icon-repeat{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-repeat:before{content:"\\f11a"}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder,.vjs-icon-replay{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-play-control.vjs-ended .vjs-icon-placeholder:before,.vjs-icon-replay:before{content:"\\f11b"}.video-js .vjs-skip-backward-5 .vjs-icon-placeholder,.vjs-icon-replay-5{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-backward-5 .vjs-icon-placeholder:before,.vjs-icon-replay-5:before{content:"\\f11c"}.video-js .vjs-skip-backward-10 .vjs-icon-placeholder,.vjs-icon-replay-10{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-backward-10 .vjs-icon-placeholder:before,.vjs-icon-replay-10:before{content:"\\f11d"}.video-js .vjs-skip-backward-30 .vjs-icon-placeholder,.vjs-icon-replay-30{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-backward-30 .vjs-icon-placeholder:before,.vjs-icon-replay-30:before{content:"\\f11e"}.video-js .vjs-skip-forward-5 .vjs-icon-placeholder,.vjs-icon-forward-5{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-forward-5 .vjs-icon-placeholder:before,.vjs-icon-forward-5:before{content:"\\f11f"}.video-js .vjs-skip-forward-10 .vjs-icon-placeholder,.vjs-icon-forward-10{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-forward-10 .vjs-icon-placeholder:before,.vjs-icon-forward-10:before{content:"\\f120"}.video-js .vjs-skip-forward-30 .vjs-icon-placeholder,.vjs-icon-forward-30{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-skip-forward-30 .vjs-icon-placeholder:before,.vjs-icon-forward-30:before{content:"\\f121"}.video-js .vjs-audio-button .vjs-icon-placeholder,.vjs-icon-audio{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-audio-button .vjs-icon-placeholder:before,.vjs-icon-audio:before{content:"\\f122"}.vjs-icon-next-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-next-item:before{content:"\\f123"}.vjs-icon-previous-item{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-previous-item:before{content:"\\f124"}.vjs-icon-shuffle{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-shuffle:before{content:"\\f125"}.vjs-icon-cast{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-cast:before{content:"\\f126"}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-enter{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-enter:before{content:"\\f127"}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder,.vjs-icon-picture-in-picture-exit{font-family:VideoJS;font-weight:400;font-style:normal}.video-js.vjs-picture-in-picture .vjs-picture-in-picture-control .vjs-icon-placeholder:before,.vjs-icon-picture-in-picture-exit:before{content:"\\f128"}.vjs-icon-facebook{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-facebook:before{content:"\\f129"}.vjs-icon-linkedin{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-linkedin:before{content:"\\f12a"}.vjs-icon-twitter{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-twitter:before{content:"\\f12b"}.vjs-icon-tumblr{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-tumblr:before{content:"\\f12c"}.vjs-icon-pinterest{font-family:VideoJS;font-weight:400;font-style:normal}.vjs-icon-pinterest:before{content:"\\f12d"}.video-js .vjs-descriptions-button .vjs-icon-placeholder,.vjs-icon-audio-description{font-family:VideoJS;font-weight:400;font-style:normal}.video-js .vjs-descriptions-button .vjs-icon-placeholder:before,.vjs-icon-audio-description:before{content:"\\f12e"}.video-js{display:inline-block;vertical-align:top;box-sizing:border-box;color:#fff;background-color:#000;position:relative;padding:0;font-size:10px;line-height:1;font-weight:400;font-style:normal;font-family:Arial,Helvetica,sans-serif;word-break:initial}.video-js:-moz-full-screen{position:absolute}.video-js:-webkit-full-screen{width:100%!important;height:100%!important}.video-js[tabindex="-1"]{outline:0}.video-js *,.video-js :after,.video-js :before{box-sizing:inherit}.video-js ul{font-family:inherit;font-size:inherit;line-height:inherit;list-style-position:outside;margin-left:0;margin-right:0;margin-top:0;margin-bottom:0}.video-js.vjs-1-1,.video-js.vjs-16-9,.video-js.vjs-4-3,.video-js.vjs-9-16,.video-js.vjs-fluid{width:100%;max-width:100%}.video-js.vjs-1-1:not(.vjs-audio-only-mode),.video-js.vjs-16-9:not(.vjs-audio-only-mode),.video-js.vjs-4-3:not(.vjs-audio-only-mode),.video-js.vjs-9-16:not(.vjs-audio-only-mode),.video-js.vjs-fluid:not(.vjs-audio-only-mode){height:0}.video-js.vjs-16-9:not(.vjs-audio-only-mode){padding-top:56.25%}.video-js.vjs-4-3:not(.vjs-audio-only-mode){padding-top:75%}.video-js.vjs-9-16:not(.vjs-audio-only-mode){padding-top:177.7777777778%}.video-js.vjs-1-1:not(.vjs-audio-only-mode){padding-top:100%}.video-js.vjs-fill:not(.vjs-audio-only-mode){width:100%;height:100%}.video-js .vjs-tech{position:absolute;top:0;left:0;width:100%;height:100%}.video-js.vjs-audio-only-mode .vjs-tech{display:none}body.vjs-full-window,body.vjs-pip-window{padding:0;margin:0;height:100%}.vjs-full-window .video-js.vjs-fullscreen,body.vjs-pip-window .video-js{position:fixed;overflow:hidden;z-index:1000;left:0;top:0;bottom:0;right:0}.video-js.vjs-fullscreen:not(.vjs-ios-native-fs),body.vjs-pip-window .video-js{width:100%!important;height:100%!important;padding-top:0!important;display:block}.video-js.vjs-fullscreen.vjs-user-inactive{cursor:none}.vjs-pip-container .vjs-pip-text{position:absolute;bottom:10%;font-size:2em;background-color:rgba(0,0,0,.7);padding:.5em;text-align:center;width:100%}.vjs-layout-small.vjs-pip-container .vjs-pip-text,.vjs-layout-tiny.vjs-pip-container .vjs-pip-text,.vjs-layout-x-small.vjs-pip-container .vjs-pip-text{bottom:0;font-size:1.4em}.vjs-hidden{display:none!important}.vjs-disabled{opacity:.5;cursor:default}.video-js .vjs-offscreen{height:1px;left:-9999px;position:absolute;top:0;width:1px}.vjs-lock-showing{display:block!important;opacity:1!important;visibility:visible!important}.vjs-no-js{padding:20px;color:#fff;background-color:#000;font-size:18px;font-family:Arial,Helvetica,sans-serif;text-align:center;width:300px;height:150px;margin:0 auto}.vjs-no-js a,.vjs-no-js a:visited{color:#66a8cc}.video-js .vjs-big-play-button{font-size:3em;line-height:1.5em;height:1.63332em;width:3em;display:block;position:absolute;top:50%;left:50%;padding:0;margin-top:-.81666em;margin-left:-1.5em;cursor:pointer;opacity:1;border:.06666em solid #fff;background-color:#2b333f;background-color:rgba(43,51,63,.7);border-radius:.3em;transition:all .4s}.vjs-big-play-button .vjs-svg-icon{width:1em;height:1em;position:absolute;top:50%;left:50%;line-height:1;transform:translate(-50%,-50%)}.video-js .vjs-big-play-button:focus,.video-js:hover .vjs-big-play-button{border-color:#fff;background-color:#73859f;background-color:rgba(115,133,159,.5);transition:all 0s}.vjs-controls-disabled .vjs-big-play-button,.vjs-error .vjs-big-play-button,.vjs-has-started .vjs-big-play-button,.vjs-using-native-control
1s .vjs-big-play-button{display:none}.vjs-has-started.vjs-paused.vjs-show-big-play-button-on-pause .vjs-big-play-button{display:block}.video-js button{background:0 0;border:none;color:inherit;display:inline-block;font-size:inherit;line-height:inherit;text-transform:none;text-decoration:none;transition:none;-webkit-appearance:none;-moz-appearance:none;appearance:none}.vjs-control .vjs-button{width:100%;height:100%}.video-js .vjs-control.vjs-close-button{cursor:pointer;height:3em;position:absolute;right:0;top:.5em;z-index:2}.video-js .vjs-modal-dialog{background:rgba(0,0,0,.8);background:linear-gradient(180deg,rgba(0,0,0,.8),rgba(255,255,255,0));overflow:auto}.video-js .vjs-modal-dialog>*{box-sizing:border-box}.vjs-modal-dialog .vjs-modal-dialog-content{font-size:1.2em;line-height:1.5;padding:20px 24px;z-index:1}.vjs-menu-button{cursor:pointer}.vjs-menu-button.vjs-disabled{cursor:default}.vjs-workinghover .vjs-menu-button.vjs-disabled:hover .vjs-menu{display:none}.vjs-menu .vjs-menu-content{display:block;padding:0;margin:0;font-family:Arial,Helvetica,sans-serif;overflow:auto}.vjs-menu .vjs-menu-content>*{box-sizing:border-box}.vjs-scrubbing .vjs-control.vjs-menu-button:hover .vjs-menu{display:none}.vjs-menu li{display:flex;justify-content:center;list-style:none;margin:0;padding:.2em 0;line-height:1.4em;font-size:1.2em;text-align:center;text-transform:lowercase}.js-focus-visible .vjs-menu li.vjs-menu-item:hover,.vjs-menu li.vjs-menu-item:focus,.vjs-menu li.vjs-menu-item:hover{background-color:#73859f;background-color:rgba(115,133,159,.5)}.js-focus-visible .vjs-menu li.vjs-selected:hover,.vjs-menu li.vjs-selected,.vjs-menu li.vjs-selected:focus,.vjs-menu li.vjs-selected:hover{background-color:#fff;color:#2b333f}.js-focus-visible .vjs-menu li.vjs-selected:hover .vjs-svg-icon,.vjs-menu li.vjs-selected .vjs-svg-icon,.vjs-menu li.vjs-selected:focus .vjs-svg-icon,.vjs-menu li.vjs-selected:hover .vjs-svg-icon{fill:#000}.js-focus-visible .vjs-menu :not(.vjs-selected):focus:not(.focus-visible),.video-js .vjs-menu :not(.vjs-selected):focus:not(:focus-visible){background:0 0}.vjs-menu li.vjs-menu-title{text-align:center;text-transform:uppercase;font-size:1em;line-height:2em;padding:0;margin:0 0 .3em 0;font-weight:700;cursor:default}.vjs-menu-button-popup .vjs-menu{display:none;position:absolute;bottom:0;width:10em;left:-3em;height:0;margin-bottom:1.5em;border-top-color:rgba(43,51,63,.7)}.vjs-pip-window .vjs-menu-button-popup .vjs-menu{left:unset;right:1em}.vjs-menu-button-popup .vjs-menu .vjs-menu-content{background-color:#2b333f;background-color:rgba(43,51,63,.7);position:absolute;width:100%;bottom:1.5em;max-height:15em}.vjs-layout-tiny .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:5em}.vjs-layout-small .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:10em}.vjs-layout-medium .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:14em}.vjs-layout-huge .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content,.vjs-layout-x-large .vjs-menu-button-popup .vjs-menu .vjs-menu-content{max-height:25em}.vjs-menu-button-popup .vjs-menu.vjs-lock-showing,.vjs-workinghover .vjs-menu-button-popup.vjs-hover .vjs-menu{display:block}.video-js .vjs-menu-button-inline{transition:all .4s;overflow:hidden}.video-js .vjs-menu-button-inline:before{width:2.222222222em}.video-js .vjs-menu-button-inline.vjs-slider-active,.video-js .vjs-menu-button-inline:focus,.video-js .vjs-menu-button-inline:hover{width:12em}.vjs-menu-button-inline .vjs-menu{opacity:0;height:100%;width:auto;position:absolute;left:4em;top:0;padding:0;margin:0;transition:all .4s}.vjs-menu-button-inline.vjs-slider-active .vjs-menu,.vjs-menu-button-inline:focus .vjs-menu,.vjs-menu-button-inline:hover .vjs-menu{display:block;opacity:1}.vjs-menu-button-inline .vjs-menu-content{width:auto;height:100%;margin:0;overflow:hidden}.video-js .vjs-control-bar{display:none;width:100%;position:absolute;bottom:0;left:0;right:0;height:3em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}
1.video-js:not(.vjs-controls-disabled,.vjs-using-native-controls,.vjs-error) .vjs-control-bar.vjs-lock-showing{display:flex!important}.vjs-audio-only-mode .vjs-control-bar,.vjs-has-started .vjs-control-bar{display:flex;visibility:visible;opacity:1;transition:visibility .1s,opacity .1s}.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{visibility:visible;opacity:0;pointer-events:none;transition:visibility 1s,opacity 1s}.vjs-controls-disabled .vjs-control-bar,.vjs-error .vjs-control-bar,.vjs-using-native-controls .vjs-control-bar{display:none!important}.vjs-audio-only-mode.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar,.vjs-audio.vjs-has-started.vjs-user-inactive.vjs-playing .vjs-control-bar{opacity:1;visibility:visible;pointer-events:auto}.video-js .vjs-control{position:relative;text-align:center;margin:0;padding:0;height:100%;width:4em;flex:none}.video-js .vjs-control.vjs-visible-text{width:auto;padding-left:1em;padding-right:1em}.vjs-button>.vjs-icon-placeholder:before{font-size:1.8em;line-height:1.67}.vjs-button>.vjs-icon-placeholder{display:block}.vjs-button>.vjs-svg-icon{display:inline-block}.video-js .vjs-control:focus,.video-js .vjs-control:focus:before,.video-js .vjs-control:hover:before{text-shadow:0 0 1em #fff}.video-js :not(.vjs-visible-text)>.vjs-control-text{border:0;clip:rect(0 0 0 0);height:1px;overflow:hidden;padding:0;position:absolute;width:1px}.video-js .vjs-custom-control-spacer{display:none}.video-js .vjs-progress-control{cursor:pointer;flex:auto;display:flex;align-items:center;min-width:4em;touch-action:none}.video-js .vjs-progress-control.disabled{cursor:default}.vjs-live .vjs-progress-control{display:none}.vjs-liveui .vjs-progress-control{display:flex;align-items:center}.video-js .vjs-progress-holder{flex:auto;transition:all .2s;height:.3em}.video-js .vjs-progress-control .vjs-progress-holder{margin:0 10px}.video-js .vjs-progress-control:hover .vjs-progress-holder{font-size:1.6666666667em}.video-js .vjs-progress-control:hover .vjs-progress-holder.disabled{font-size:1em}.video-js .vjs-progress-holder .vjs-load-progress,.video-js .vjs-progress-holder .vjs-load-progress div,.video-js .vjs-progress-holder .vjs-play-progress{position:absolute;display:block;height:100%;margin:0;padding:0;width:0}.video-js .vjs-play-progress{background-color:#fff}.video-js .vjs-play-progress:before{font-size:.9em;position:absolute;right:-.5em;line-height:.35em;z-index:1}.vjs-svg-icons-enabled .vjs-play-progress:before{content:none!important}.vjs-play-progress .vjs-svg-icon{position:absolute;top:-.35em;right:-.4em;width:.9em;height:.9em;pointer-events:none;line-height:.15em;z-index:1}.video-js .vjs-load-progress{background:rgba(115,133,159,.5)}.video-js .vjs-load-progress div{background:rgba(115,133,159,.75)}.video-js .vjs-time-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-progress-holder:focus .vjs-time-tooltip{display:none}.video-js .vjs-progress-control:hover .vjs-progress-holder:focus .vjs-time-tooltip,.video-js .vjs-progress-control:hover .vjs-time-tooltip{display:block;font-size:.6em;visibility:visible}.video-js .vjs-progress-control.disabled:hover .vjs-time-tooltip{font-size:1em}.video-js .vjs-progress-control .vjs-mouse-display{display:none;position:absolute;width:1px;height:100%;background-color:#000;z-index:1}.video-js .vjs-progress-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-progress-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-time-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.video-js .vjs-slider{position:relative;cursor:pointer;padding:0;margin:0 .45em 0 .45em;-webkit-touch-callout:none;-webkit-user-select:none;-moz-user-select:none;user-select:none;background-color:#73859f;background-color:rgba(115,133,159,.5)}.video-js .vjs-slider.disabled{cursor:default}.video-js .vjs-slider:focus{text-shadow:0 0 1em #fff;box-shadow:0 0 1em #fff}.video-js .vjs-mute-control{cursor:pointer;flex:none}.video-js .vjs-volume-control{cursor:pointer;margin-right:1em;display:flex}.video-js .vjs-volume-control.vjs-volume-horizontal{width:5em}.video-js .vjs-volume-panel .vjs-volume-control{visibility:visible;opacity:0;width:1px;height:1px;margin-left:-1px}.video-js .vjs-volume-panel{transition:width 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active,.video-js .vjs-volume-panel .vjs-volume-control:active,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control,.video-js .vjs-volume-panel:active .vjs-volume-control,.video-js .vjs-volume-panel:focus .vjs-volume-control{visibility:visible;opacity:1;position:relative;transition:visibility .1s,opacity .1s,height .1s,width .1s,left 0s,top 0s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-horizontal,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-horizontal,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-horizontal{width:5em;height:3em;margin-right:0}.video-js .vjs-volume-panel .vjs-volume-control.vjs-slider-active.vjs-volume-vertical,.video-js .vjs-volume-panel .vjs-volume-control:active.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-mute-control~.vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel.vjs-hover .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:active .vjs-volume-control.vjs-volume-vertical,.video-js .vjs-volume-panel:focus .vjs-volume-control.vjs-volume-vertical{left
1:-3.5em;transition:left 0s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js .vjs-volume-panel.vjs-volume-panel-horizontal:active{width:10em;transition:width .1s}.video-js .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-mute-toggle-only{width:4em}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-vertical{height:8em;width:3em;left:-3000em;transition:visibility 1s,opacity 1s,height 1s 1s,width 1s 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel .vjs-volume-control.vjs-volume-horizontal{transition:visibility 1s,opacity 1s,height 1s 1s,width 1s,left 1s 1s,top 1s 1s}.video-js .vjs-volume-panel{display:flex}.video-js .vjs-volume-bar{margin:1.35em .45em}.vjs-volume-bar.vjs-slider-horizontal{width:5em;height:.3em}.vjs-volume-bar.vjs-slider-vertical{width:.3em;height:5em;margin:1.35em auto}.video-js .vjs-volume-level{position:absolute;bottom:0;left:0;background-color:#fff}.video-js .vjs-volume-level:before{position:absolute;font-size:.9em;z-index:1}.vjs-slider-vertical .vjs-volume-level{width:.3em}.vjs-slider-vertical .vjs-volume-level:before{top:-.5em;left:-.3em;z-index:1}.vjs-svg-icons-enabled .vjs-volume-level:before{content:none}.vjs-volume-level .vjs-svg-icon{position:absolute;width:.9em;height:.9em;pointer-events:none;z-index:1}.vjs-slider-horizontal .vjs-volume-level{height:.3em}.vjs-slider-horizontal .vjs-volume-level:before{line-height:.35em;right:-.5em}.vjs-slider-horizontal .vjs-volume-level .vjs-svg-icon{right:-.3em;transform:translateY(-50%)}.vjs-slider-vertical .vjs-volume-level .vjs-svg-icon{top:-.55em;transform:translateX(-50%)}.video-js .vjs-volume-panel.vjs-volume-panel-vertical{width:4em}.vjs-volume-bar.vjs-slider-vertical .vjs-volume-level{height:100%}.vjs-volume-bar.vjs-slider-horizontal .vjs-volume-level{width:100%}.video-js .vjs-volume-vertical{width:3em;height:8em;bottom:8em;background-color:#2b333f;background-color:rgba(43,51,63,.7)}.video-js .vjs-volume-horizontal .vjs-menu{left:-2em}.video-js .vjs-volume-tooltip{background-color:#fff;background-color:rgba(255,255,255,.8);border-radius:.3em;color:#000;float:right;font-family:Arial,Helvetica,sans-serif;font-size:1em;padding:6px 8px 8px 8px;pointer-events:none;position:absolute;top:-3.4em;visibility:hidden;z-index:1}.video-js .vjs-volume-control:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-control:hover .vjs-volume-tooltip{display:block;font-size:1em;visibility:visible}.video-js .vjs-volume-vertical:hover .vjs-progress-holder:focus .vjs-volume-tooltip,.video-js .vjs-volume-vertical:hover .vjs-volume-tooltip{left:1em;top:-12px}.video-js .vjs-volume-control.disabled:hover .vjs-volume-tooltip{font-size:1em}.video-js .vjs-volume-control .vjs-mouse-display{display:none;position:absolute;width:100%;height:1px;background-color:#000;z-index:1}.video-js .vjs-volume-horizontal .vjs-mouse-display{width:1px;height:100%}.video-js .vjs-volume-control:hover .vjs-mouse-display{display:block}.video-js.vjs-user-inactive .vjs-volume-control .vjs-mouse-display{visibility:hidden;opacity:0;transition:visibility 1s,opacity 1s}.vjs-mouse-display .vjs-volume-tooltip{color:#fff;background-color:#000;background-color:rgba(0,0,0,.8)}.vjs-poster{display:inline-block;vertical-align:middle;cursor:pointer;margin:0;padding:0;position:absolute;top:0;right:0;bottom:0;left:0;height:100%}.vjs-has-started .vjs-poster,.vjs-using-native-controls .vjs-poster{display:none}.vjs-audio.vjs-has-started .vjs-poster,.vjs-has-started.vjs-audio-poster-mode .vjs-poster,.vjs-pip-container.vjs-has-started .vjs-poster{display:block}.vjs-poster img{width:100%;height:100%;-o-object-fit:contain;object-fit:contain}.video-js .vjs-live-control{display:flex;align-items:flex-start;flex:auto;font-size:1em;line-height:3em}.video-js.vjs-liveui .vjs-live-control,.video-js:not(.vjs-live) .vjs-live-control{display:none}.video-js .vjs-seek-to-live-control{align-items:center;cursor:pointer;flex:none;display:inline-flex;height:100%;padding-left:.5em;padding-right:.5em;font-size:1em;line-height:3em;width:auto;min-width:4em}.video-js.vjs-live:not(.vjs-liveui) .vjs-seek-to-live-control,.video-js:not(.vjs-live) .vjs-seek-to-live-control{display:none}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge{cursor:auto}.vjs-seek-to-live-control .vjs-icon-placeholder{margin-right:.5em;color:#888}.vjs-svg-icons-enabled .vjs-seek-to-live-control{line-height:0}.vjs-seek-to-live-control .vjs-svg-icon{width:1em;height:1em;pointer-events:none;fill:#888}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-icon-placeholder{color:red}.vjs-seek-to-live-control.vjs-control.vjs-at-live-edge .vjs-svg-icon{fill:red}.video-js .vjs-time-control{flex:none;font-size:1em;line-height:3em;min-width:2em;width:auto;padding-left:1em;padding-right:1em}.video-js .vjs-current-time,.video-js .vjs-duration,.vjs-live .vjs-time-control,.vjs-live .vjs-time-divider{display:none}.vjs-time-divider{display:none;line-height:3em}.video-js .vjs-play-control{cursor:pointer}.video-js .vjs-play-control .vjs-icon-placeholder{flex:none}.vjs-text-track-display{position:absolute;bottom:3em;left:0;right:0;top:0;pointer-events:none}.vjs-error .vjs-text-track-display{display:none}.video-js.vjs-controls-disabled .vjs-text-track-display,.video-js.vjs-user-inactive.vjs-playing .vjs-text-track-display{bottom:1em}.video-js .vjs-text-track{font-size:1.4em;text-align:center;margin-bottom:.1em}.vjs-subtitles{color:#fff}.vjs-captions{color:#fc6}.vjs-tt-cue{display:block}video::-webkit-media-text-track-display{transform:translateY(-3em)}.video-js.vjs-controls-disabled video::-webkit-media-text-track-display,.video-js.vjs-user-inactive.vjs-playing video::-webkit-media-text-track-display{transform:translateY(-1.5em)}.video-js .vjs-picture-in-picture-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-picture-in-picture-control,.vjs-pip-window .vjs-picture-in-picture-control{display:none}.video-js .vjs-fullscreen-control{cursor:pointer;flex:none}.video-js.vjs-audio-only-mode .vjs-fullscreen-control,.vjs-pip-window .vjs-fullscreen-control{display:none}.vjs-playback-rate .vjs-playback-rate-value,.vjs-playback-rate>.vjs-menu-button{position:absolute;top:0;left:0;width:100%;height:100%}.vjs-playback-rate .vjs-playback-rate-value{pointer-events:none;font-size:1.5em;line-height:2;text-align:center}.vjs-playback-rate .vjs-menu{width:4em;left:0}.vjs-error .vjs-error-display .vjs-modal-dialog-content{font-size:1.4em;text-align:center}.vjs-error .vjs-error-display:before{color:#fff;content:"X";font-family:Arial,Helvetica,sans-serif;font-size:4em;left:0;line-height:1;margin-top:-.5em;position:absolute;text-shadow:.05em .05em .1em #000;text-align:center;top:50%;vertical-align:middle;width:100%}.vjs-loading-spinner{display:none;position:absolute;top:50%;left:50%;transform:translate(-50%,-50%);opacity:.85;text-align:left;border:.6em solid rgba(43,51,63,.7);box-sizing:border-box;background-clip:padding-box;width:5em;height:5em;border-radius:50%;visibility:hidden}.vjs-seeking .vjs-loading-spinner,.vjs-waiting .vjs-loading-spinner{display:block;
1animation:vjs-spinner-show 0s linear .3s forwards}.vjs-error .vjs-loading-spinner{display:none}.vjs-loading-spinner:after,.vjs-loading-spinner:before{content:"";position:absolute;margin:-.6em;box-sizing:inherit;width:inherit;height:inherit;border-radius:inherit;opacity:1;border:inherit;border-color:transparent;border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:before{animation:vjs-spinner-spin 1.1s cubic-bezier(.6,.2,0,.8) infinite,vjs-spinner-fade 1.1s linear infinite}.vjs-seeking .vjs-loading-spinner:before,.vjs-waiting .vjs-loading-spinner:before{border-top-color:#fff}.vjs-seeking .vjs-loading-spinner:after,.vjs-waiting .vjs-loading-spinner:after{border-top-color:#fff;animation-delay:.44s}@keyframes vjs-spinner-show{to{visibility:visible}}@keyframes vjs-spinner-spin{100%{transform:rotate(360deg)}}@keyframes vjs-spinner-fade{0%{border-top-color:#73859f}20%{border-top-color:#73859f}35%{border-top-color:#fff}60%{border-top-color:#73859f}100%{border-top-color:#73859f}}.video-js.vjs-audio-only-mode .vjs-captions-button{display:none}.vjs-chapters-button .vjs-menu ul{width:24em}.video-js.vjs-audio-only-mode .vjs-descriptions-button{display:none}.vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-svg-icon{width:1.5em;height:1.5em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-subs-caps-button+.vjs-menu .vjs-captions-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:"\\f10c";font-size:1.5em;line-height:inherit}.video-js.vjs-audio-only-mode .vjs-subs-caps-button{display:none}.video-js .vjs-audio-button+.vjs-menu .vjs-description-menu-item .vjs-menu-item-text .vjs-icon-placeholder,.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder{vertical-align:middle;display:inline-block;margin-bottom:-.1em}.video-js .vjs-audio-button+.vjs-menu .vjs-description-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before,.video-js .vjs-audio-button+.vjs-menu .vjs-main-desc-menu-item .vjs-menu-item-text .vjs-icon-placeholder:before{font-family:VideoJS;content:" \\f12e";font-size:1.5em;line-height:inherit}.video-js.vjs-layout-small .vjs-current-time,.video-js.vjs-layout-small .vjs-duration,.video-js.vjs-layout-small .vjs-playback-rate,.video-js.vjs-layout-small .vjs-remaining-time,.video-js.vjs-layout-small .vjs-time-divider,.video-js.vjs-layout-small .vjs-volume-control,.video-js.vjs-layout-tiny .vjs-current-time,.video-js.vjs-layout-tiny .vjs-duration,.video-js.vjs-layout-tiny .vjs-playback-rate,.video-js.vjs-layout-tiny .vjs-remaining-time,.video-js.vjs-layout-tiny .vjs-time-divider,.video-js.vjs-layout-tiny .vjs-volume-control,.video-js.vjs-layout-x-small .vjs-current-time,.video-js.vjs-layout-x-small .vjs-duration,.video-js.vjs-layout-x-small .vjs-playback-rate,.video-js.vjs-layout-x-small .vjs-remaining-time,.video-js.vjs-layout-x-small .vjs-time-divider,.video-js.vjs-layout-x-small .vjs-volume-control{display:none}.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-tiny .vjs-volume-panel.vjs-volume-panel-horizontal:hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-hover,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal.vjs-slider-active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:active,.video-js.vjs-layout-x-small .vjs-volume-panel.vjs-volume-panel-horizontal:hover{width:auto;width:initial}.video-js.vjs-layout-tiny .vjs-progress-control,.video-js.vjs-layout-x-small .vjs-progress-control{display:none}.video-js.vjs-layout-x-small .vjs-custom-control-spacer{flex:auto;display:block}.vjs-modal-dialog.vjs-text-track-settings{background-color:#2b333f;background-color:rgba(43,51,63,.75);color:#fff;height:70%}.vjs-error .vjs-text-track-settings{display:none}.vjs-text-track-settings .vjs-modal-dialog-content{display:table}.vjs-text-track-settings .vjs-track-settings-colors,.vjs-text-track-settings .vjs-track-settings-controls,.vjs-text-track-settings .vjs-track-settings-font{display:table-cell}.vjs-text-track-settings .vjs-track-settings-controls{text-align:right;vertical-align:bottom}@supports (display:grid){.vjs-text-track-settings .vjs-modal-dialog-content{display:grid;grid-template-columns:1fr 1fr;grid-template-rows:1fr;padding:20px 24px 0 24px}.vjs-track-settings-controls .vjs-default-button{margin-bottom:20px}.vjs-text-track-settings .vjs-track-settings-controls{grid-column:1/-1}.vjs-layout-small .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-tiny .vjs-text-track-settings .vjs-modal-dialog-content,.vjs-layout-x-small .vjs-text-track-settings .vjs-modal-dialog-content{grid-template-columns:1fr}}.vjs-text-track-settings select{font-size:inherit}.vjs-track-setting>select{margin-right:1em;margin-bottom:.5em}.vjs-text-track-settings fieldset{margin:10px;border:none}
1.vjs-text-track-settings fieldset span{display:inline-block;padding:0 .6em .8em}.vjs-text-track-settings fieldset span>select{max-width:7.3em}.vjs-text-track-settings legend{color:#fff;font-weight:700;font-size:1.2em}.vjs-text-track-settings .vjs-label{margin:0 .5em .5em 0}.vjs-track-settings-controls button:active,.vjs-track-settings-controls button:focus{outline-style:solid;outline-width:medium;background-image:linear-gradient(0deg,#fff 88%,#73859f 100%)}.vjs-track-settings-controls button:hover{color:rgba(43,51,63,.75)}.vjs-track-settings-controls button{background-color:#fff;background-image:linear-gradient(-180deg,#fff 88%,#73859f 100%);color:#2b333f;cursor:pointer;border-radius:2px}.vjs-track-settings-controls .vjs-default-button{margin-right:1em}.vjs-title-bar{background:rgba(0,0,0,.9);background:linear-gradient(180deg,rgba(0,0,0,.9) 0,rgba(0,0,0,.7) 60%,rgba(0,0,0,0) 100%);font-size:1.2em;line-height:1.5;transition:opacity .1s;padding:.666em 1.333em 4em;pointer-events:none;position:absolute;top:0;width:100%}.vjs-error .vjs-title-bar{display:none}.vjs-title-bar-description,.vjs-title-bar-title{margin:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.vjs-title-bar-title{font-weight:700;margin-bottom:.333em}.vjs-playing.vjs-user-inactive .vjs-title-bar{opacity:0;transition:opacity 1s}.video-js .vjs-skip-forward-5{cursor:pointer}.video-js .vjs-skip-forward-10{cursor:pointer}.video-js .vjs-skip-forward-30{cursor:pointer}.video-js .vjs-skip-backward-5{cursor:pointer}.video-js .vjs-skip-backward-10{cursor:pointer}.video-js .vjs-skip-backward-30{cursor:pointer}@media print{.video-js>:not(.vjs-tech):not(.vjs-poster){visibility:hidden}}.vjs-resize-manager{position:absolute;top:0;left:0;width:100%;height:100%;border:none;z-index:-1000}.js-focus-visible .video-js :focus:not(.focus-visible){outline:0}.video-js :focus:not(:focus-visible){outline:0}`,""]);const h=c},9056:(e,t,n)=>{"use strict";n.d(t,{Z:()=>_});var i=n(8081),r=n.n(i),s=n(3645),o=n.n(s),a=n(1667),l=n.n(a),u=new URL(n(4122),n.b),c=new URL(n(7500),n.b),d=new URL(n(719),n.b),h=new URL(n(1762),n.b),p=new URL(n(3868),n.b),f=o()(r()),m=l()(u),g=l()(c),v=l()(d),y=l()(h),b=l()(p);f.push([e.id,`/*! @name videojs-mobile-ui @version 1.1.0 @license MIT */ 2@keyframes fadeAndScale{0%,to{opacity:0}25%{opacity:1}}.video-js.vjs-mobile-ui.vjs-has-started .vjs-touch-overlay{position:absolute;pointer-events:auto;top:0}.video-js.vjs-mobile-ui .vjs-touch-overlay{display:block;width:100%;height:100%;pointer-events:none}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip{opacity:0;animation:fadeAndScale .8s linear;background-repeat:no-repeat;background-position:80% center;background-size:10%;background-image:url(${m})}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip:after{content:attr(data-skip-text);position:absolute;top:60%;left:70%}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip.reverse{background-position:20% center;background-image:url(${g})}.video-js.vjs-mobile-ui .vjs-touch-overlay.skip.reverse:after{right:70%;left:unset}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control{top:50%;left:50%;transform:translate(-50%,-50%);position:absolute;width:30%;height:80%;pointer-events:none;opacity:0;transition:opacity .3s ease}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control .vjs-icon-placeholder::before{content:'';background-size:60%;background-position:center center;background-repeat:no-repeat;background-image:url(${v})}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control.vjs-paused .vjs-icon-placeholder::before{content:'';background-image:url(${y})}.video-js.vjs-mobile-ui .vjs-touch-overlay .vjs-play-control.vjs-ended .vjs-icon-placeholder::before{content:'';background-image:url(${b})}.video-js.vjs-mobile-ui .vjs-touch-overlay.show-play-toggle .vjs-play-control{opacity:1;pointer-events:auto}.video-js.vjs-mobile-ui.vjs-mobile-ui-disable-end.vjs-ended .vjs-touch-overlay{display:none}`,""]);const _=f},3645:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n="",i=void 0!==t[5];return t[4]&&(n+="@supports (".concat(t[4],") {")),t[2]&&(n+="@media ".concat(t[2]," {")),i&&(n+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),n+=e(t),i&&(n+="}"),t[2]&&(n+="}"),t[4]&&(n+="}"),n}).join("")},t.i=function(e,n,i,r,s){"string"==typeof e&&(e=[[null,e,void 0]]);var o={};if(i)for(var a=0;a<this.length;a++){var l=this[a][0];null!=l&&(o[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);i&&o[c[0]]||(void 0!==s&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=s),n&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=n):c[2]=n),r&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=r):c[4]="".concat(r)),t.push(c))}},t}},1667:e=>{"use strict";e.exports=function(e,t){return t||(t={}),e?(e=String(e.__esModule?e.default:e),/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]|(%20)/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e):e}},8081:e=>{"use strict";e.exports=function(e){return e[1]}},9144:(e,t,n)=>{var i,r=void 0!==n.g?n.g:"undefined"!=typeof window?window:{},s=n(5893);"undefined"!=typeof document?i=document:(i=r["__GLOBAL_DOCUMENT_CACHE@4"])||(i=r["__GLOBAL_DOCUMENT_CACHE@4"]=s),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},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},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 o[e];var n,s=String(e);return(n=i[s.toLowerCase()])?n:(n=r[s.toLowerCase()])||(1===s.length?s.charCo
2deAt(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 s;if(s=i[t.toLowerCase()])return s===n;if(s=r[t.toLowerCase()])return s===n}else if("number"==typeof t)return t===n;return!1}};var 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(s=97;s<123;s++)i[String.fromCharCode(s)]=s-32;for(var s=48;s<58;s++)i[s-48]=s;for(s=1;s<13;s++)i["f"+s]=s+111;for(s=0;s<10;s++)i["numpad "+s]=s+96;var o=t.names=t.title={};for(s in i)o[i[s]]=s;for(var a in r)i[a]=r[a]},9090:e=>{function t(e,t){e.onload=function(){this.onerror=this.onload=null,t(null,e)},e.onerror=function(){this.onerror=this.onload=null,t(new Error("Failed to load "+this.src),e)}}function n(e,t){e.onreadystatechange=function(){"complete"!=this.readyState&&"loaded"!=this.readyState||(this.onreadystatechange=null,t(null,e))}}e.exports=function(e,i,r){var s=document.head||document.getElementsByTagName("head")[0],o=document.createElement("script");"function"==typeof i&&(r=i,i={}),i=i||{},r=r||function(){},o.type=i.type||"text/javascript",o.charset=i.charset||"utf8",o.async=!("async"in i)||!!i.async,o.src=e,i.attrs&&function(e,t){for(var n in t)e.setAttribute(n,t[n])}(o,i.attrs),i.text&&(o.text=""+i.text),("onload"in o?t:n)(o,r),o.onload||t(o,r),s.appendChild(o)}},8552:(e,t,n)=>{var i=n(852)(n(5639),"DataView");e.exports=i},1989:(e,t,n)=>{var i=n(1789),r=n(401),s=n(7667),o=n(1327),a=n(1866);function l(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])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},8407:(e,t,n)=>{var i=n(7040),r=n(4125),s=n(2117),o=n(7518),a=n(4705);function l(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])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},7071:(e,t,n)=>{var i=n(852)(n(5639),"Map");e.exports=i},3369:(e,t,n)=>{var i=n(4785),r=n(1285),s=n(6e3),o=n(9916),a=n(5265);function l(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])}}l.prototype.clear=i,l.prototype.delete=r,l.prototype.get=s,l.prototype.has=o,l.prototype.set=a,e.exports=l},3818:(e,t,n)=>{var i=n(852)(n(5639),"Promise");e.exports=i},8525:(e,t,n)=>{var i=n(852)(n(5639),"Set");e.exports=i},8668:(e,t,n)=>{var i=n(3369),r=n(619),s=n(2385);function o(e){var t=-1,n=null==e?0:e.length;for(this.__data__=new i;++t<n;)this.add(e[t])}o.prototype.add=o.prototype.push=r,o.prototype.has=s,e.exports=o},6384:(e,t,n)=>{var i=n(8407),r=n(7465),s=n(3779),o=n(7599),a=n(4758),l=n(4309);function u(e){var t=this.__data__=new i(e);this.size=t.size}u.prototype.clear=r,u.prototype.delete=s,u.prototype.get=o,u.prototype.has=a,u.prototype.set=l,e.exports=u},2705:(e,t,n)=>{var i=n(5639).Symbol;e.exports=i},1149:(e,t,n)=>{var i=n(5639).Uint8Array;e.exports=i},577:(e,t,n)=>{var i=n(852)(n(5639),"WeakMap");e.exports=i},6874:e=>{e.exports=function(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)}},4963:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length,r=0,s=[];++n<i;){var o=e[n];t(o,n,e)&&(s[r++]=o)}return s}},4636:(e,t,n)=>{var i=n(2545),r=n(5694),s=n(1469),o=n(4144),a=n(5776),l=n(6719),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var n=s(e),c=!n&&r(e),d=!n&&!c&&o(e),h=!n&&!c&&!
vendor: 1,974 bytes, line 2
2d&&l(e),p=n||c||d||h,f=p?i(e.length,String):[],m=f.length;for(var g in e)!t&&!u.call(e,g)||p&&("length"==g||d&&("offset"==g||"parent"==g)||h&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||a(g,m))||f.push(g);return f}},9932:e=>{e.exports=function(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}},2488:e=>{e.exports=function(e,t){for(var n=-1,i=t.length,r=e.length;++n<i;)e[r+n]=t[n];return e}},2908:e=>{e.exports=function(e,t){for(var n=-1,i=null==e?0:e.length;++n<i;)if(t(e[n],n,e))return!0;return!1}},8470:(e,t,n)=>{var i=n(7813);e.exports=function(e,t){for(var n=e.length;n--;)if(i(e[n][0],t))return n;return-1}},9881:(e,t,n)=>{var i=n(7816),r=n(9291)(i);e.exports=r},760:(e,t,n)=>{var i=n(9881);e.exports=function(e,t){var n=[];return i(e,function(e,i,r){t(e,i,r)&&n.push(e)}),n}},1848:e=>{e.exports=function(e,t,n,i){for(var r=e.length,s=n+(i?1:-1);i?s--:++s<r;)if(t(e[s],s,e))return s;return-1}},1078:(e,t,n)=>{var i=n(2488),r=n(7285);e.exports=function e(t,n,s,o,a){var l=-1,u=t.length;for(s||(s=r),a||(a=[]);++l<u;){var c=t[l];n>0&&s(c)?n>1?e(c,n-1,s,o,a):i(a,c):o||(a[a.length]=c)}return a}},8483:(e,t,n)=>{var i=n(5063)();e.exports=i},7816:(e,t,n)=>{var i=n(8483),r=n(3674);e.exports=function(e,t){return e&&i(e,t,r)}},7786:(e,t,n)=>{var i=n(1811),r=n(327);e.exports=function(e,t){for(var n=0,s=(t=i(t,e)).length;null!=e&&n<s;)e=e[r(t[n++])];return n&&n==s?e:void 0}},8866:(e,t,n)=>{var i=n(2488),r=n(1469);e.exports=function(e,t,n){var s=t(e);return r(e)?s:i(s,n(e))}},4239:(e,t,n)=>{var i=n(2705),r=n(9607),s=n(2333),o=i?i.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":o&&o in Object(e)?r(e):s(e)}},8565:e=>{var t=Object.prototype.hasOwnProperty;e.exports=function(e,n){return null!=e&&t.call(e,n)}},13:e=>{e.exports=function(e,t){return null!=e&&t in Object(e)}},9454:(e,t,n)=>{var i=n(4239),r=n(7005);e.exports=function(e){return r(e)&&"[object Arguments]"==i(e)}}
vendor: 4,667 bytes, line 2
2,939:(e,t,n)=>{var i=n(2492),r=n(7005);e.exports=function e(t,n,s,o,a){return t===n||(null==t||null==n||!r(t)&&!r(n)?t!=t&&n!=n:i(t,n,s,o,e,a))}},2492:(e,t,n)=>{var i=n(6384),r=n(7114),s=n(8351),o=n(6096),a=n(4160),l=n(1469),u=n(4144),c=n(6719),d="[object Arguments]",h="[object Array]",p="[object Object]",f=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,m,g,v){var y=l(e),b=l(t),_=y?h:a(e),T=b?h:a(t),j=(_=_==d?p:_)==p,w=(T=T==d?p:T)==p,S=_==T;if(S&&u(e)){if(!u(t))return!1;y=!0,j=!1}if(S&&!j)return v||(v=new i),y||c(e)?r(e,t,n,m,g,v):s(e,t,_,n,m,g,v);if(!(1&n)){var x=j&&f.call(e,"__wrapped__"),k=w&&f.call(t,"__wrapped__");if(x||k){var E=x?e.value():e,C=k?t.value():t;return v||(v=new i),g(E,C,n,m,v)}}return!!S&&(v||(v=new i),o(e,t,n,m,g,v))}},2958:(e,t,n)=>{var i=n(6384),r=n(939);e.exports=function(e,t,n,s){var o=n.length,a=o,l=!s;if(null==e)return!a;for(e=Object(e);o--;){var u=n[o];if(l&&u[2]?u[1]!==e[u[0]]:!(u[0]in e))return!1}for(;++o<a;){var c=(u=n[o])[0],d=e[c],h=u[1];if(l&&u[2]){if(void 0===d&&!(c in e))return!1}else{var p=new i;if(s)var f=s(d,h,c,e,t,p);if(!(void 0===f?r(h,d,3,s,p):f))return!1}}return!0}},8458:(e,t,n)=>{var i=n(3560),r=n(5346),s=n(3218),o=n(346),a=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,h=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!s(e)||r(e))&&(i(e)?h:a).test(o(e))}},8749:(e,t,n)=>{var i=n(4239),r=n(1780),s=n(7005),o={};o["[object Float32Array]"]=o["[object Float64Array]"]=o["[object Int8Array]"]=o["[object Int16Array]"]=o["[object Int32Array]"]=o["[object Uint8Array]"]=o["[object Uint8ClampedArray]"]=o["[object Uint16Array]"]=o["[object Uint32Array]"]=!0,o["[object Arguments]"]=o["[object Array]"]=o["[object ArrayBuffer]"]=o["[object Boolean]"]=o["[object DataView]"]=o["[object Date]"]=o["[object Error]"]=o["[object Function]"]=o["[object Map]"]=o["[object Number]"]=o["[object Object]"]=o["[object RegExp]"]=o["[object Set]"]=o["[object String]"]=o["[object WeakMap]"]=!1,e.exports=function(e){return s(e)&&r(e.length)&&!!o[i(e)]}},7206:(e,t,n)=>{var i=n(1573),r=n(6432),s=n(6557),o=n(1469),a=n(9601);e.exports=function(e){return"function"==typeof e?e:null==e?s:"object"==typeof e?o(e)?r(e[0],e[1]):i(e):a(e)}},280:(e,t,n)=>{var i=n(5726),r=n(6916),s=Object.prototype.hasOwnProperty;e.exports=function(e){if(!i(e))return r(e);var t=[];for(var n in Object(e))s.call(e,n)&&"constructor"!=n&&t.push(n);return t}},9199:(e,t,n)=>{var i=n(9881),r=n(8612);e.exports=function(e,t){var n=-1,s=r(e)?Array(e.length):[];return i(e,function(e,i,r){s[++n]=t(e,i,r)}),s}},1573:(e,t,n)=>{var i=n(2958),r=n(1499),s=n(2634);e.exports=function(e){var t=r(e);return 1==t.length&&t[0][2]?s(t[0][0],t[0][1]):function(n){return n===e||i(n,e,t)}}},6432:(e,t,n)=>{var i=n(939),r=n(7361),s=n(9095),o=n(5403),a=n(9162),l=n(2634),u=n(327);e.exports=function(e,t){return o(e)&&a(t)?l(u(e),t):function(n){var o=r(n,e);return void 0===o&&o===t?s(n,e):i(t,o,3)}}},2689:(e,t,n)=>{var i=n(9932),r=n(7786),s=n(7206),o=n(9199),a=n(1131),l=n(1717),u=n(5022),c=n(6557),d=n(1469);e.exports=function(e,t,n){t=t.length?i(t,function(e){return d(e)?function(t){return r(t,1===e.length?e[0]:e)}:e}):[c];var h=-1;t=i(t,l(s));var p=o(e,function(e,n,r){return{criteria:i(t,function(t){return t(e)}),index:++h,value:e}});return a(p,function(e,t){return u(e,t,n)})}},371:e=>{e.exports=function(e){return function(t){return null==t?void 0:t[e]}}},9152:(e,t,n)=>{var i=n(7786);e.exports=function(e){return function(t){return i(t,e)}}},5976:(e,t,n)=>{var i=n(6557),r=n(5357),s=n(61);e.exports=function(e,t){return s(r(e,t,i),e+"")}},6560:(e,t,n)=>{var i=n(5703),r=n(8777),s=n(6557),o=r?function(e,t){return r(e,"toString",{configurable:!0,enumerable:!1,value:i(t),writable:!0})}:s;e.exports=o},1131:e=>{e.exports=function(e,t){var n=e.length;for(e.sort(t);n--;)e[n]=e[n].value;return e}},2545:e=>{e.exports=function(e,t){for(var n=-1,i=Array(e);++n<e;)i[n]=t(n);return i}},531:(e,t,n)=>{var i=n(2705),r=n(9932),s=n(1469),o=n(3448),a=i?i.prototype:void 0,l=a?a.toString:void 0;e.exports=function e(t){if("string"==typeof t)return t;if(s(t))return r(t,e)+"";if(o(t))return l?l.call(t):"";var n=t+"";return"0"==n&&1/t==-1/0?"-0":n}},7561:(e,t,n)=>{var i=n(7990),r=/^\s+/;e.exports=function(e){return e?e.slice(0,i(e)+1).replace(r,""):e}},1717:e=>{e.exports=function(e){return function(t){return e(t)}}},4757:e=>{e.exports=function(e,t){return e.has(t)}},1811:(e,t,n)=>{var i=n(1469),r=n(5403),s=n(5514),o=n(9833);e.exports=function(e,t){return i(e)?e:r(e,t)?[e]:s(o(e))}}
vendor: 5,166 bytes, line 2
2,6393:(e,t,n)=>{var i=n(3448);e.exports=function(e,t){if(e!==t){var n=void 0!==e,r=null===e,s=e==e,o=i(e),a=void 0!==t,l=null===t,u=t==t,c=i(t);if(!l&&!c&&!o&&e>t||o&&a&&u&&!l&&!c||r&&a&&u||!n&&u||!s)return 1;if(!r&&!o&&!c&&e<t||c&&n&&s&&!r&&!o||l&&n&&s||!a&&s||!u)return-1}return 0}},5022:(e,t,n)=>{var i=n(6393);e.exports=function(e,t,n){for(var r=-1,s=e.criteria,o=t.criteria,a=s.length,l=n.length;++r<a;){var u=i(s[r],o[r]);if(u)return r>=l?u:u*("desc"==n[r]?-1:1)}return e.index-t.index}},4429:(e,t,n)=>{var i=n(5639)["__core-js_shared__"];e.exports=i},9291:(e,t,n)=>{var i=n(8612);e.exports=function(e,t){return function(n,r){if(null==n)return n;if(!i(n))return e(n,r);for(var s=n.length,o=t?s:-1,a=Object(n);(t?o--:++o<s)&&!1!==r(a[o],o,a););return n}}},5063:e=>{e.exports=function(e){return function(t,n,i){for(var r=-1,s=Object(t),o=i(t),a=o.length;a--;){var l=o[e?a:++r];if(!1===n(s[l],l,s))break}return t}}},7740:(e,t,n)=>{var i=n(7206),r=n(8612),s=n(3674);e.exports=function(e){return function(t,n,o){var a=Object(t);if(!r(t)){var l=i(n,3);t=s(t),n=function(e){return l(a[e],e,a)}}var u=e(t,n,o);return u>-1?a[l?t[u]:u]:void 0}}},8777:(e,t,n)=>{var i=n(852),r=function(){try{var e=i(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=r},7114:(e,t,n)=>{var i=n(8668),r=n(2908),s=n(4757);e.exports=function(e,t,n,o,a,l){var u=1&n,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var h=l.get(e),p=l.get(t);if(h&&p)return h==t&&p==e;var f=-1,m=!0,g=2&n?new i:void 0;for(l.set(e,t),l.set(t,e);++f<c;){var v=e[f],y=t[f];if(o)var b=u?o(y,v,f,t,e,l):o(v,y,f,e,t,l);if(void 0!==b){if(b)continue;m=!1;break}if(g){if(!r(t,function(e,t){if(!s(g,t)&&(v===e||a(v,e,n,o,l)))return g.push(t)})){m=!1;break}}else if(v!==y&&!a(v,y,n,o,l)){m=!1;break}}return l.delete(e),l.delete(t),m}},8351:(e,t,n)=>{var i=n(2705),r=n(1149),s=n(7813),o=n(7114),a=n(8776),l=n(1814),u=i?i.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,n,i,u,d,h){switch(n){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new r(e),new r(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return s(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var p=a;case"[object Set]":var f=1&i;if(p||(p=l),e.size!=t.size&&!f)return!1;var m=h.get(e);if(m)return m==t;i|=2,h.set(e,t);var g=o(p(e),p(t),i,u,d,h);return h.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},6096:(e,t,n)=>{var i=n(8234),r=Object.prototype.hasOwnProperty;e.exports=function(e,t,n,s,o,a){var l=1&n,u=i(e),c=u.length;if(c!=i(t).length&&!l)return!1;for(var d=c;d--;){var h=u[d];if(!(l?h in t:r.call(t,h)))return!1}var p=a.get(e),f=a.get(t);if(p&&f)return p==t&&f==e;var m=!0;a.set(e,t),a.set(t,e);for(var g=l;++d<c;){var v=e[h=u[d]],y=t[h];if(s)var b=l?s(y,v,h,t,e,a):s(v,y,h,e,t,a);if(!(void 0===b?v===y||o(v,y,n,s,a):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 a.delete(e),a.delete(t),m}},1957:(e,t,n)=>{var i="object"==typeof n.g&&n.g&&n.g.Object===Object&&n.g;e.exports=i},8234:(e,t,n)=>{var i=n(8866),r=n(9551),s=n(3674);e.exports=function(e){return i(e,s,r)}},5050:(e,t,n)=>{var i=n(7019);e.exports=function(e,t){var n=e.__data__;return i(t)?n["string"==typeof t?"string":"hash"]:n.map}},1499:(e,t,n)=>{var i=n(9162),r=n(3674);e.exports=function(e){for(var t=r(e),n=t.length;n--;){var s=t[n],o=e[s];t[n]=[s,o,i(o)]}return t}},852:(e,t,n)=>{var i=n(8458),r=n(7801);e.exports=function(e,t){var n=r(e,t);return i(n)?n:void 0}},9607:(e,t,n)=>{var i=n(2705),r=Object.prototype,s=r.hasOwnProperty,o=r.toString,a=i?i.toStringTag:void 0;e.exports=function(e){var t=s.call(e,a),n=e[a];try{e[a]=void 0;var i=!0}catch(e){}var r=o.call(e);return i&&(t?e[a]=n:delete e[a]),r}},9551:(e,t,n)=>{var i=n(4963),r=n(479),s=Object.prototype.propertyIsEnumerable,o=Object.getOwnPropertySymbols,a=o?function(e){return null==e?[]:(e=Object(e),i(o(e),function(t){return s.call(e,t)}))}:r;e.exports=a},4160:(e,t,n)=>{var i=n(8552),r=n(7071),s=n(3818),o=n(8525),a=n(577),l=n(4239),u=n(346),c="[object Map]",d="[object Promise]",h="[object Set]",p="[object WeakMap]",f="[object DataView]",m=u(i),g=u(r),v=u(s),y=u(o),b=u(a),_=l;(i&&_(new i(new ArrayBuffer(1)))!=f||r&&_(new r)!=c||s&&_(s.resolve())!=d||o&&_(new o)!=h||a&&_(new a)!=p)&&(_=function(e){var t=l(e),n="[object Object]"==t?e.constructor:void 0,i=n?u(n):"";if(i)switch(i){case m:return f;case g:return c;case v:return d;case y:return h;case b:return p}return t}),e.exports=_},7801:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},222:(e,t,n)=>{var i=n(1811),r=n(5694),s=n(1469),o=n(5776),a=n(1780),l=n(327);e.exports=function(e,t,n){for(var u=-1,c=(t=i(t,e)).length,d=!1;++u<c;){var h=l(t[u]);if(!(d=null!=e&&n(e,h)))break;e=e[h]}return d||++u!=c?d:!!(c=null==e?0:e.length)&&a(c)&&o(h,c)&&(s(e)||r(e))}}
vendor: 4,155 bytes, line 2
2,1789:(e,t,n)=>{var i=n(4536);e.exports=function(){this.__data__=i?i(null):{},this.size=0}},401:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},7667:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(i){var n=t[e];return"__lodash_hash_undefined__"===n?void 0:n}return r.call(t,e)?t[e]:void 0}},1327:(e,t,n)=>{var i=n(4536),r=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return i?void 0!==t[e]:r.call(t,e)}},1866:(e,t,n)=>{var i=n(4536);e.exports=function(e,t){var n=this.__data__;return this.size+=this.has(e)?0:1,n[e]=i&&void 0===t?"__lodash_hash_undefined__":t,this}},7285:(e,t,n)=>{var i=n(2705),r=n(5694),s=n(1469),o=i?i.isConcatSpreadable:void 0;e.exports=function(e){return s(e)||r(e)||!!(o&&e&&e[o])}},5776:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,n){var i=typeof e;return!!(n=null==n?9007199254740991:n)&&("number"==i||"symbol"!=i&&t.test(e))&&e>-1&&e%1==0&&e<n}},6612:(e,t,n)=>{var i=n(7813),r=n(8612),s=n(5776),o=n(3218);e.exports=function(e,t,n){if(!o(n))return!1;var a=typeof t;return!!("number"==a?r(n)&&s(t,n.length):"string"==a&&t in n)&&i(n[t],e)}},5403:(e,t,n)=>{var i=n(1469),r=n(3448),s=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,o=/^\w*$/;e.exports=function(e,t){if(i(e))return!1;var n=typeof e;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=e&&!r(e))||o.test(e)||!s.test(e)||null!=t&&e in Object(t)}},7019:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},5346:(e,t,n)=>{var i,r=n(4429),s=(i=/[^.]+$/.exec(r&&r.keys&&r.keys.IE_PROTO||""))?"Symbol(src)_1."+i:"";e.exports=function(e){return!!s&&s in e}},5726:e=>{var t=Object.prototype;e.exports=function(e){var n=e&&e.constructor;return e===("function"==typeof n&&n.prototype||t)}},9162:(e,t,n)=>{var i=n(3218);e.exports=function(e){return e==e&&!i(e)}},7040:e=>{e.exports=function(){this.__data__=[],this.size=0}},4125:(e,t,n)=>{var i=n(8470),r=Array.prototype.splice;e.exports=function(e){var t=this.__data__,n=i(t,e);return!(n<0||(n==t.length-1?t.pop():r.call(t,n,1),--this.size,0))}},2117:(e,t,n)=>{var i=n(8470);e.exports=function(e){var t=this.__data__,n=i(t,e);return n<0?void 0:t[n][1]}},7518:(e,t,n)=>{var i=n(8470);e.exports=function(e){return i(this.__data__,e)>-1}},4705:(e,t,n)=>{var i=n(8470);e.exports=function(e,t){var n=this.__data__,r=i(n,e);return r<0?(++this.size,n.push([e,t])):n[r][1]=t,this}},4785:(e,t,n)=>{var i=n(1989),r=n(8407),s=n(7071);e.exports=function(){this.size=0,this.__data__={hash:new i,map:new(s||r),string:new i}}},1285:(e,t,n)=>{var i=n(5050);e.exports=function(e){var t=i(this,e).delete(e);return this.size-=t?1:0,t}},6e3:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).get(e)}},9916:(e,t,n)=>{var i=n(5050);e.exports=function(e){return i(this,e).has(e)}},5265:(e,t,n)=>{var i=n(5050);e.exports=function(e,t){var n=i(this,e),r=n.size;return n.set(e,t),this.size+=n.size==r?0:1,this}},8776:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e,i){n[++t]=[i,e]}),n}},2634:e=>{e.exports=function(e,t){return function(n){return null!=n&&n[e]===t&&(void 0!==t||e in Object(n))}}},4523:(e,t,n)=>{var i=n(8306);e.exports=function(e){var t=i(e,function(e){return 500===n.size&&n.clear(),e}),n=t.cache;return t}},4536:(e,t,n)=>{var i=n(852)(Object,"create");e.exports=i},6916:(e,t,n)=>{var i=n(5569)(Object.keys,Object);e.exports=i},1167:(e,t,n)=>{e=n.nmd(e);var i=n(1957),r=t&&!t.nodeType&&t,s=r&&e&&!e.nodeType&&e,o=s&&s.exports===r&&i.process,a=function(){try{return s&&s.require&&s.require("util").types||o&&o.binding&&o.binding("util")}catch(e){}}();e.exports=a},2333:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},5569:e=>{e.exports=function(e,t){return function(n){return e(t(n))}}},5357:(e,t,n)=>{var i=n(6874),r=Math.max;e.exports=function(e,t,n){return t=r(void 0===t?e.length-1:t,0),function(){for(var s=arguments,o=-1,a=r(s.length-t,0),l=Array(a);++o<a;)l[o]=s[t+o];o=-1;for(var u=Array(t+1);++o<t;)u[o]=s[o];return u[t]=n(l),i(e,this,u)}}}
vendor: 4,179 bytes, line 2
2,5639:(e,t,n)=>{var i=n(1957),r="object"==typeof self&&self&&self.Object===Object&&self,s=i||r||Function("return this")();e.exports=s},619:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},2385:e=>{e.exports=function(e){return this.__data__.has(e)}},1814:e=>{e.exports=function(e){var t=-1,n=Array(e.size);return e.forEach(function(e){n[++t]=e}),n}},61:(e,t,n)=>{var i=n(6560),r=n(1275)(i);e.exports=r},1275:e=>{var t=Date.now;e.exports=function(e){var n=0,i=0;return function(){var r=t(),s=16-(r-i);if(i=r,s>0){if(++n>=800)return arguments[0]}else n=0;return e.apply(void 0,arguments)}}},7465:(e,t,n)=>{var i=n(8407);e.exports=function(){this.__data__=new i,this.size=0}},3779:e=>{e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},7599:e=>{e.exports=function(e){return this.__data__.get(e)}},4758:e=>{e.exports=function(e){return this.__data__.has(e)}},4309:(e,t,n)=>{var i=n(8407),r=n(7071),s=n(3369);e.exports=function(e,t){var n=this.__data__;if(n instanceof i){var o=n.__data__;if(!r||o.length<199)return o.push([e,t]),this.size=++n.size,this;n=this.__data__=new s(o)}return n.set(e,t),this.size=n.size,this}},5514:(e,t,n)=>{var i=n(4523),r=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,s=/\\(\\)?/g,o=i(function(e){var t=[];return 46===e.charCodeAt(0)&&t.push(""),e.replace(r,function(e,n,i,r){t.push(i?r.replace(s,"$1"):n||e)}),t});e.exports=o},327:(e,t,n)=>{var i=n(3448);e.exports=function(e){if("string"==typeof e||i(e))return e;var t=e+"";return"0"==t&&1/e==-1/0?"-0":t}},346:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},7990:e=>{var t=/\s/;e.exports=function(e){for(var n=e.length;n--&&t.test(e.charAt(n)););return n}},5703:e=>{e.exports=function(e){return function(){return e}}},7813:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},3105:(e,t,n)=>{var i=n(4963),r=n(760),s=n(7206),o=n(1469);e.exports=function(e,t){return(o(e)?i:r)(e,s(t,3))}},3311:(e,t,n)=>{var i=n(7740)(n(998));e.exports=i},998:(e,t,n)=>{var i=n(1848),r=n(7206),s=n(554),o=Math.max;e.exports=function(e,t,n){var a=null==e?0:e.length;if(!a)return-1;var l=null==n?0:s(n);return l<0&&(l=o(a+l,0)),i(e,r(t,3),l)}},7361:(e,t,n)=>{var i=n(7786);e.exports=function(e,t,n){var r=null==e?void 0:i(e,t);return void 0===r?n:r}},8721:(e,t,n)=>{var i=n(8565),r=n(222);e.exports=function(e,t){return null!=e&&r(e,t,i)}},9095:(e,t,n)=>{var i=n(13),r=n(222);e.exports=function(e,t){return null!=e&&r(e,t,i)}},6557:e=>{e.exports=function(e){return e}},5694:(e,t,n)=>{var i=n(9454),r=n(7005),s=Object.prototype,o=s.hasOwnProperty,a=s.propertyIsEnumerable,l=i(function(){return arguments}())?i:function(e){return r(e)&&o.call(e,"callee")&&!a.call(e,"callee")};e.exports=l},1469:e=>{var t=Array.isArray;e.exports=t},8612:(e,t,n)=>{var i=n(3560),r=n(1780);e.exports=function(e){return null!=e&&r(e.length)&&!i(e)}},4144:(e,t,n)=>{e=n.nmd(e);var i=n(5639),r=n(5062),s=t&&!t.nodeType&&t,o=s&&e&&!e.nodeType&&e,a=o&&o.exports===s?i.Buffer:void 0,l=(a?a.isBuffer:void 0)||r;e.exports=l},1609:(e,t,n)=>{var i=n(280),r=n(4160),s=n(5694),o=n(1469),a=n(8612),l=n(4144),u=n(5726),c=n(6719),d=Object.prototype.hasOwnProperty;e.exports=function(e){if(null==e)return!0;if(a(e)&&(o(e)||"string"==typeof e||"function"==typeof e.splice||l(e)||c(e)||s(e)))return!e.length;var t=r(e);if("[object Map]"==t||"[object Set]"==t)return!e.size;if(u(e))return!i(e).length;for(var n in e)if(d.call(e,n))return!1;return!0}},3560:(e,t,n)=>{var i=n(4239),r=n(3218);e.exports=function(e){if(!r(e))return!1;var t=i(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},1780:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},3218:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},7005:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},3448:(e,t,n)=>{var i=n(4239),r=n(7005);e.exports=function(e){return"symbol"==typeof e||r(e)&&"[object Symbol]"==i(e)}},6719:(e,t,n)=>
2{var i=n(8749),r=n(1717),s=n(1167),o=s&&s.isTypedArray,a=o?r(o):i;e.exports=a},3674:(e,t,n)=>{var i=n(4636),r=n(280),s=n(8612);e.exports=function(e){return s(e)?i(e):r(e)}},8306:(e,t,n)=>{var i=n(3369);function r(e,t){if("function"!=typeof e||null!=t&&"function"!=typeof t)throw new TypeError("Expected a function");var n=function(){var i=arguments,r=t?t.apply(this,i):i[0],s=n.cache;if(s.has(r))return s.get(r);var o=e.apply(this,i);return n.cache=s.set(r,o)||s,o};return n.cache=new(r.Cache||i),n}r.Cache=i,e.exports=r},9601:(e,t,n)=>{var i=n(371),r=n(9152),s=n(5403),o=n(327);e.exports=function(e){return s(e)?i(o(e)):r(e)}},9734:(e,t,n)=>{var i=n(1078),r=n(2689),s=n(5976),o=n(6612),a=s(function(e,t){if(null==e)return[];var n=t.length;return n>1&&o(e,t[0],t[1])?t=[]:n>2&&o(t[0],t[1],t[2])&&(t=[t[0]]),r(e,i(t,1),[])});e.exports=a},479:e=>{e.exports=function(){return[]}},5062:e=>{e.exports=function(){return!1}},8601:(e,t,n)=>{var i=n(4841);e.exports=function(e){return e?Infinity===(e=i(e))||e===-1/0?17976931348623157e292*(e<0?-1:1):e==e?e:0:0===e?e:0}},554:(e,t,n)=>{var i=n(8601);e.exports=function(e){var t=i(e),n=t%1;return t==t?n?t-n:t:0}},4841:(e,t,n)=>{var i=n(7561),r=n(3218),s=n(3448),o=/^[-+]0x[0-9a-f]+$/i,a=/^0b[01]+$/i,l=/^0o[0-7]+$/i,u=parseInt;e.exports=function(e){if("number"==typeof e)return e;if(s(e))return NaN;if(r(e)){var t="function"==typeof e.valueOf?e.valueOf():e;e=r(t)?t+"":t}if("string"!=typeof e)return 0===e?e:+e;e=i(e);var n=a.test(e);return n||l.test(e)?u(e.slice(2),n?2:8):o.test(e)?NaN:+e}},9833:(e,t,n)=>{var i=n(531);e.exports=function(e){return null==e?"":i(e)}},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 s=t.getUint16(r);for(r+=2;s>0;r+=12,s--)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,s,o,a,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},s=function(e,n){return t(r(e,n))},o=function(e,t){return n(i(e),t)},a=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:s,videoTsToAudioTs:o,metadataTsToSeconds:a}},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?Number(n):n:i.getUint32(0)*t+i.getUint32(4)},MAX_UINT32:t}},5974:e=>{e.exports=function(e,t){var n,i=null;try{n=JSON.parse(e,t)}catch(e){i=e}return[i,n]}},3379:e=>{"use strict";var t=[];function n(e){for(var n=-1,i=0;i<t.length;i++)if(t[i].identifier===e){n=i;break}return n}function i(e,i){for(var s={},o=[],a=0;a<e.length;a++){var l=e[a],u=i.base?l[0]+i.base:l[0],c=s[u]||0,d="".concat(u," ").concat(c);s[u]=c+1;var h=n(d),p={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==h)t[h].references++,t[h].updater(p);else{var f=r(p,i);i.byIndex=a,t.splice(a,0,{identifier:d,updater:f,references:1})}o.push(d)}return o}function r(e,t){var n=t.domAPI(t);return n.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;n.update(e=t)}else n.remove()}}e.exports=function(e,r){var s=i(e=e||[],r=r||{});return function(e){e=e||[];for(var o=0;o<s.length;o++){var a=n(s[o]);t[a].references--}for(var l=i(e,r),u=0;u<s.length;u++){var c=n(s[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}s=l}}},569:e=>{"use strict";var t={};e.exports=function(e,n){var i=function(e){if(void 0===t[e]){var n=document.querySelector(e);
vendor: 4,102 bytes, line 2
2if(window.HTMLIFrameElement&&n instanceof window.HTMLIFrameElement)try{n=n.contentDocument.head}catch(e){n=null}t[e]=n}return t[e]}(e);if(!i)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");i.appendChild(n)}},9216:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},3565:(e,t,n)=>{"use strict";e.exports=function(e){var t=n.nc;t&&e.setAttribute("nonce",t)}},7795:e=>{"use strict";e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=e.insertStyleElement(e);return{update:function(n){!function(e,t,n){var i="";n.supports&&(i+="@supports (".concat(n.supports,") {")),n.media&&(i+="@media ".concat(n.media," {"));var r=void 0!==n.layer;r&&(i+="@layer".concat(n.layer.length>0?" ".concat(n.layer):""," {")),i+=n.css,r&&(i+="}"),n.media&&(i+="}"),n.supports&&(i+="}");var s=n.sourceMap;s&&"undefined"!=typeof btoa&&(i+="\n/*# sourceMappingURL=data:application/json;base64,".concat(btoa(unescape(encodeURIComponent(JSON.stringify(s))))," */")),t.styleTagTransform(i,e,t.options)}(t,e,n)},remove:function(){!function(e){if(null===e.parentNode)return!1;e.parentNode.removeChild(e)}(t)}}}},4589:e=>{"use strict";e.exports=function(e,t){if(t.styleSheet)t.styleSheet.cssText=e;else{for(;t.firstChild;)t.removeChild(t.firstChild);t.appendChild(document.createTextNode(e))}}},9945:function(e){var t,n,i,r,s;t=/^(?=((?:[a-zA-Z0-9+\-.]+:)?))\1(?=((?:\/\/[^\/?#]*)?))\2(?=((?:(?:[^?#\/]*\/)*[^;?#\/]*)?))\3((?:;[^?#]*)?)(\?[^#]*)?(#[^]*)?$/,n=/^(?=([^\/?#]*))\1([^]*)$/,i=/(?:\/|^)\.(?=\/)/g,r=/(?:\/|^)\.\.\/(?!\.\.\/)[^\/]*(?=\/)/g,s={buildAbsoluteURL:function(e,t,i){if(i=i||{},e=e.trim(),!(t=t.trim())){if(!i.alwaysNormalize)return e;var r=s.parseURL(e);if(!r)throw new Error("Error trying to parse base URL.");return r.path=s.normalizePath(r.path),s.buildURLFromParts(r)}var o=s.parseURL(t);if(!o)throw new Error("Error trying to parse relative URL.");if(o.scheme)return i.alwaysNormalize?(o.path=s.normalizePath(o.path),s.buildURLFromParts(o)):t;var a=s.parseURL(e);if(!a)throw new Error("Error trying to parse base URL.");if(!a.netLoc&&a.path&&"/"!==a.path[0]){var l=n.exec(a.path);a.netLoc=l[1],a.path=l[2]}a.netLoc&&!a.path&&(a.path="/");var u={scheme:a.scheme,netLoc:o.netLoc,path:null,params:o.params,query:o.query,fragment:o.fragment};if(!o.netLoc&&(u.netLoc=a.netLoc,"/"!==o.path[0]))if(o.path){var c=a.path,d=c.substring(0,c.lastIndexOf("/")+1)+o.path;u.path=s.normalizePath(d)}else u.path=a.path,o.params||(u.params=a.params,o.query||(u.query=a.query));return null===u.path&&(u.path=i.alwaysNormalize?s.normalizePath(o.path):o.path),s.buildURLFromParts(u)},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=s},1144:(e,t,n)=>{"use strict";n.r(t),n.d(t,{default:()=>sT});var i=n(8908),r=n.n(i),s=n(9144),o=n.n(s),a=n(7537),l=n.n(a),u=n(5974),c=n.n(u),d=n(9603),h=n.n(d),p=n(3407),f=n.n(p),m=n(9945),g=n.n(m),v="http://example.com";function y(){return y=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},y.apply(this,arguments)}var b=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]);
vendor: 21,806 bytes, line 2
2else for(var r=Array.prototype.slice.call(arguments,1),s=t.length,o=0;o<s;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();function _(e){for(var t,n=(t=e,r().atob?r().atob(t):Buffer.from(t,"base64").toString("binary")),i=new Uint8Array(n.length),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);return i}class T extends b{constructor(){super(),this.buffer=""}push(e){let 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)}}const j=String.fromCharCode(9),w=function(e){const 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},S=function(e){const t={};if(!e)return t;const n=e.split(new RegExp('(?:^|,)((?:[^=]*)=(?:"[^"]*"|[^,]*))'));let i,r=n.length;for(;r--;)""!==n[r]&&(i=/([^=]*)=(.*)/.exec(n[r]).slice(1),i[0]=i[0].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^\s+|\s+$/g,""),i[1]=i[1].replace(/^['"](.*)['"]$/g,"$1"),t[i[0]]=i[1]);return t};class x extends b{constructor(){super(),this.customParsers=[],this.tagMappers=[]}push(e){let t,n;0!==(e=e.trim()).length&&("#"===e[0]?this.tagMappers.reduce((t,n)=>{const i=n(e);return i===e?t:t.concat([i])},[e]).forEach(e=>{for(let t=0;t<this.customParsers.length;t++)if(this.customParsers[t].call(this,e))return;if(0===e.indexOf("#EXT"))if(e=e.replace("\r",""),t=/^#EXTM3U/.exec(e),t)this.trigger("data",{type:"tag",tagType:"m3u"});else{if(t=/^#EXTINF:([0-9\.]*)?,?(.*)?$/.exec(e),t)return n={type:"tag",tagType:"inf"},t[1]&&(n.duration=parseFloat(t[1])),t[2]&&(n.title=t[2]),void this.trigger("data",n);if(t=/^#EXT-X-TARGETDURATION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"targetduration"},t[1]&&(n.duration=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-VERSION:([0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"version"},t[1]&&(n.version=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-MEDIA-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"media-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-DISCONTINUITY-SEQUENCE:(\-?[0-9.]*)?/.exec(e),t)return n={type:"tag",tagType:"discontinuity-sequence"},t[1]&&(n.number=parseInt(t[1],10)),void this.trigger("data",n);if(t=/^#EXT-X-PLAYLIST-TYPE:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"playlist-type"},t[1]&&(n.playlistType=t[1]),void this.trigger("data",n);if(t=/^#EXT-X-BYTERANGE:(.*)?$/.exec(e),t)return n=y(w(t[1]),{type:"tag",tagType:"byterange"}),void this.trigger("data",n);if(t=/^#EXT-X-ALLOW-CACHE:(YES|NO)?/.exec(e),t)return n={type:"tag",tagType:"allow-cache"},t[1]&&(n.allowed=!/NO/.test(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-MAP:(.*)$/.exec(e),t){if(n={type:"tag",tagType:"map"},t[1]){const e=S(t[1]);e.URI&&(n.uri=e.URI),e.BYTERANGE&&(n.byterange=w(e.BYTERANGE))}this.trigger("data",n)}else if(t=/^#EXT-X-STREAM-INF:(.*)$/.exec(e),t){if(n={type:"tag",tagType:"stream-inf"},t[1]){if(n.attributes=S(t[1]),n.attributes.RESOLUTION){const e=n.attributes.RESOLUTION.split("x"),t={};e[0]&&(t.width=parseInt(e[0],10)),e[1]&&(t.height=parseInt(e[1],10)),n.attributes.RESOLUTION=t}n.attributes.BANDWIDTH&&(n.attributes.BANDWIDTH=parseInt(n.attributes.BANDWIDTH,10)),n.attributes["FRAME-RATE"]&&(n.attributes["FRAME-RATE"]=parseFloat(n.attributes["FRAME-RATE"])),n.attributes["PROGRAM-ID"]&&(n.attributes["PROGRAM-ID"]=parseInt(n.attributes["PROGRAM-ID"],10))}this.trigger("data",n)}else{if(t=/^#EXT-X-MEDIA:(.*)$/.exec(e),t)return n={type:"tag",tagType:"media"},t[1]&&(n.attributes=S(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-ENDLIST/.exec(e),t)this.trigger("data",{type:"tag",tagType:"endlist"});else if(t=/^#EXT-X-DISCONTINUITY/.exec(e),t)this.trigger("data",{type:"tag",tagType:"discontinuity"});else{if(t=/^#EXT-X-PROGRAM-DATE-TIME:(.*)$/.exec(e),t)return n={type:"tag",tagType:"program-date-time"},t[1]&&(n.dateTimeString=t[1],n.dateTimeObject=new Date(t[1])),void this.trigger("data",n);if(t=/^#EXT-X-KEY:(.*)$/.exec(e),t)return n={type:"tag",tagType:"key"},t[1]&&(n.attributes=S(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 this.trigger("data",n);if(t=/^#EXT-X-START:(.*)$/.exec(e),t)return n={type:"tag",tagType:"start"},t[1]&&(n.attributes=S(t[1]),n.attributes["TIME-OFFSET"]=parseFloat(n.attributes["TIME-OFFSET"]),n.attributes.PRECISE=/YES/.test(n.attributes.PRECISE)),void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT-CONT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out-cont"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-OUT:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-out"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-CUE-IN:(.*)?$/.exec(e),t)return n={type:"tag",tagType:"cue-in"},t[1]?n.data=t[1]:n.data="",void this.trigger("data",n);if(t=/^#EXT-X-SKIP:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"skip"},n.attributes=S(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(j)),void this.trigger("data",n);if(t=/^#EXT-X-PART:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part"},n.attributes=S(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=w(n.attributes.BYTERANGE)),void this.trigger("data",n);if(t=/^#EXT-X-SERVER-CONTROL:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"server-control"},n.attributes=S(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 this.trigger("data",n);if(t=/^#EXT-X-PART-INF:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"part-inf"},n.attributes=S(t[1]),["PART-TARGET"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),void this.trigger("data",n);if(t=/^#EXT-X-PRELOAD-HINT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"preload-hint"},n.attributes=S(t[1]),["BYTERANGE-START","BYTERANGE-LENGTH"].forEach(function(e){if(n.attributes.hasOwnProperty(e)){n.attributes[e]=parseInt(n.attributes[e],10);const t="BYTERANGE-LENGTH"===e?"length":"offset";n.attributes.byterange=n.attributes.byterange||{},n.attributes.byterange[t]=n.attributes[e],delete n.attributes[e]}}),void this.trigger("data",n);if(t=/^#EXT-X-RENDITION-REPORT:(.*)$/.exec(e),t&&t[1])return n={type:"tag",tagType:"rendition-report"},n.attributes=S(t[1]),["LAST-MSN","LAST-PART"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseInt(n.attributes[e],10))}),void this.trigger("data",n);if(t=/^#EXT-X-DATERANGE:(.*)$/.exec(e),t&&t[1]){n={type:"tag",tagType:"daterange"},n.attributes=S(t[1]),["ID","CLASS"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=String(n.attributes[e]))}),["START-DATE","END-DATE"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=new Date(n.attributes[e]))}),["DURATION","PLANNED-DURATION"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=parseFloat(n.attributes[e]))}),["END-ON-NEXT"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=/YES/i.test(n.attributes[e]))}),["SCTE35-CMD"," SCTE35-OUT","SCTE35-IN"].forEach(function(e){n.attributes.hasOwnProperty(e)&&(n.attributes[e]=n.attributes[e].toString(16))});const e=/^X-([A-Z]+-)+[A-Z]+$/;for(const t in n.attributes){if(!e.test(t))continue;const i=/[0-9A-Fa-f]{6}/g.test(n.attributes[t]),r=/^\d+(\.\d+)?$/.test(n.attributes[t]);n.attributes[t]=i?n.attributes[t].toString(16):r?parseFloat(n.attributes[t]):String(n.attributes[t])}this.trigger("data",n)}else t=/^#EXT-X-INDEPENDENT-SEGMENTS/.exec(e),t?this.trigger("data",{type:"tag",tagType:"independent-segments"}):this.trigger("data",{type:"tag",data:e.slice(4)})}}}else this.trigger("data",{type:"comment",text:e.slice(1)})}):this.trigger("data",{type:"uri",uri:e}))}addParser({expression:e,customType:t,dataParser:n,segment:i}){"function"!=typeof n&&(n=e=>e),this.customParsers.push(r=>{if(e.exec(r))return this.trigger("data",{type:"custom",data:n(r),customType:t,segment:i}),!0})}addTagMapper({expression:e,map:t}){this.tagMappers.push(n=>e.test(n)?t(n):n)}}const k=function(e){const t={};return Object.keys(e).forEach(function(n){var i;t[i=n,i.toLowerCase().replace(/-(\w)/g,e=>e[1].toUpperCase())]=e[n]}),t},E=function(e){const{serverControl:t,targetDuration:n,partTargetDuration:i}=e;if(!t)return;const r="#EXT-X-SERVER-CONTROL",s="holdBack",o="partHoldBack",a=n&&3*n,l=i&&2*i;n&&!t.hasOwnProperty(s)&&(t[s]=a,this.trigger("info",{message:`${r} defaulting HOLD-BACK to targetDuration * 3 (${a}).`})),a&&t[s]<a&&(this.trigger("warn",{message:`${r} clamping HOLD-BACK (${t[s]}) to targetDuration * 3 (${a})`}),t[s]=a),i&&!t.hasOwnProperty(o)&&(t[o]=3*i,this.trigger("info",{message:`${r} defaulting PART-HOLD-BACK to partTargetDuration * 3 (${t[o]}).`})),i&&t[o]<l&&(this.trigger("warn",{message:`${r} clamping PART-HOLD-BACK (${t[o]}) to partTargetDuration * 2 (${l}).`}),t[o]=l)};class C extends b{constructor(){super(),this.lineStream=new T,this.parseStream=new x,this.lineStream.pipe(this.parseStream);const e=this,t=[];let n,i,r={},s=!1;const o=function(){},a={AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}};let l=0;this.manifest={allowCache:!0,discontinuityStarts:[],segments:[]};let u=0,c=0;const d={};this.on("end",()=>{r.uri||!r.parts&&!r.preloadHints||(!r.map&&n&&(r.map=n),!r.key&&i&&(r.key=i),r.timeline||"number"!=typeof l||(r.timeline=l),this.manifest.preloadSegment=r)}),this.parseStream.on("data",function(h){let p,f;({tag(){(({version(){h.version&&(this.manifest.version=h.version)},"allow-cache"(){this.manifest.allowCache=h.allowed,"allowed"in h||(this.trigger("info",{message:"defaulting allowCache to YES"}),this.manifest.allowCache=!0)},byterange(){const e={};"length"in h&&(r.byterange=e,e.length=h.length,"offset"in h||(h.offset=u)),"offset"in h&&(r.byterange=e,e.offset=h.offset),u=e.offset+e.length},endlist(){this.manifest.endList=!0},inf(){"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"})),h.duration>0&&(r.duration=h.duration),0===h.duration&&(r.duration=.01,this.trigger("info",{message:"updating zero segment duration to a small value"})),this.manifest.segments=t},key(){if(h.attributes)if("NONE"!==h.attributes.METHOD)if(h.attributes.URI){if("com.apple.streamingkeydelivery"===h.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.apple.fps.1_0"]={attributes:h.attributes});if("com.microsoft.playready"===h.attributes.KEYFORMAT)return this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.microsoft.playready"]={uri:h.attributes.URI});if("urn:uuid:edef8ba9-79d6-4ace-a3c8-27dcd51d21ed"===h.attributes.KEYFORMAT)return-1===["SAMPLE-AES","SAMPLE-AES-CTR","SAMPLE-AES-CENC"].indexOf(h.attributes.METHOD)?void this.trigger("warn",{message:"invalid key method provided for Widevine"}):("SAMPLE-AES-CENC"===h.attributes.METHOD&&this.trigger("warn",{message:"SAMPLE-AES-CENC is deprecated, please use SAMPLE-AES-CTR instead"}),"data:text/plain;base64,"!==h.attributes.URI.substring(0,23)?void this.trigger("warn",{message:"invalid key URI provided for Widevine"}):h.attributes.KEYID&&"0x"===h.attributes.KEYID.substring(0,2)?(this.manifest.contentProtection=this.manifest.contentProtection||{},void(this.manifest.contentProtection["com.widevine.alpha"]={attributes:{schemeIdUri:h.attributes.KEYFORMAT,keyId:h.attributes.KEYID.substring(2)},pssh:_(h.attributes.URI.split(",")[1])})):void this.trigger("warn",{message:"invalid key ID provided for Widevine"}));h.attributes.METHOD||this.trigger("warn",{message:"defaulting key method to AES-128"}),i={method:h.attributes.METHOD||"AES-128",uri:h.attributes.URI},void 0!==h.attributes.IV&&(i.iv=h.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"(){isFinite(h.number)?this.manifest.mediaSequence=h.number:this.trigger("warn",{message:"ignoring invalid media sequence: "+h.number})},"discontinuity-sequence"(){isFinite(h.number)?(this.manifest.discontinuitySequence=h.number,l=h.number):this.trigger("warn",{message:"ignoring invalid discontinuity sequence: "+h.number})},"playlist-type"(){/VOD|EVENT/.test(h.playlistType)?this.manifest.playlistType=h.playlistType:this.trigger("warn",{message:"ignoring unknown playlist type: "+h.playlist})},map(){n={},h.uri&&(n.uri=h.uri),h.byterange&&(n.byterange=h.byterange),i&&(n.key=i)},"stream-inf"(){this.manifest.playlists=t,this.manifest.mediaGroups=this.manifest.mediaGroups||a,h.attributes?(r.attributes||(r.attributes={}),y(r.attributes,h.attributes)):this.trigger("warn",{message:"ignoring empty stream-inf attributes"})},media(){if(this.manifest.mediaGroups=this.manifest.mediaGroups||a,!(h.attributes&&h.attributes.TYPE&&h.attributes["GROUP-ID"]&&h.attributes.NAME))return void this.trigger("warn",{message:"ignoring incomplete or missing media group"});const e=this.manifest.mediaGroups[h.attributes.TYPE];e[h.attributes["GROUP-ID"]]=e[h.attributes["GROUP-ID"]]||{},p=e[h.attributes["GROUP-ID"]],f={default:/yes/i.test(h.attributes.DEFAULT)},f.default?f.autoselect=!0:f.autoselect=/yes/i.test(h.attributes.AUTOSELECT),h.attributes.LANGUAGE&&(f.language=h.attributes.LANGUAGE),h.attributes.URI&&(f.uri=h.attributes.URI),h.attributes["INSTREAM-ID"]&&(f.instreamId=h.attributes["INSTREAM-ID"]),h.attributes.CHARACTERISTICS&&(f.characteristics=h.attributes.CHARACTERISTICS),h.attributes.FORCED&&(f.forced=/yes/i.test(h.attributes.FORCED)),p[h.attributes.NAME]=f},discontinuity(){l+=1,r.discontinuity=!0,this.manifest.discontinuityStarts.push(t.length)},"program-date-time"(){void 0===this.manifest.dateTimeString&&(this.manifest.dateTimeString=h.dateTimeString,this.manifest.dateTimeObject=h.dateTimeObject),r.dateTimeString=h.dateTimeString,r.dateTimeObject=h.dateTimeObject},targetduration(){!isFinite(h.duration)||h.duration<0?this.trigger("warn",{message:"ignoring invalid target duration: "+h.duration}):(this.manifest.targetDuration=h.duration,E.call(this,this.manifest))},start(){h.attributes&&!isNaN(h.attributes["TIME-OFFSET"])?this.manifest.start={timeOffset:h.attributes["TIME-OFFSET"],precise:h.attributes.PRECISE}:this.trigger("warn",{message:"ignoring start declaration without appropriate attribute list"})},"cue-out"(){r.cueOut=h.data},"cue-out-cont"(){r.cueOutCont=h.data},"cue-in"(){r.cueIn=h.data},skip(){this.manifest.skip=k(h.attributes),this.warnOnMissingAttributes_("#EXT-X-SKIP",h.attributes,["SKIPPED-SEGMENTS"])},part(){s=!0;const e=this.manifest.segments.length,t=k(h.attributes);r.parts=r.parts||[],r.parts.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=c),c=t.byterange.offset+t.byterange.length);const n=r.parts.length-1;this.warnOnMissingAttributes_(`#EXT-X-PART #${n} for segment #${e}`,h.attributes,["URI","DURATION"]),this.manifest.renditionReports&&this.manifest.renditionReports.forEach((e,t)=>{e.hasOwnProperty("lastPart")||this.trigger("warn",{message:`#EXT-X-RENDITION-REPORT #${t} lacks required attribute(s): LAST-PART`})})},"server-control"(){const e=this.manifest.serverControl=k(h.attributes);e.hasOwnProperty("canBlockReload")||(e.canBlockReload=!1,this.trigger("info",{message:"#EXT-X-SERVER-CONTROL defaulting CAN-BLOCK-RELOAD to false"})),E.call(this,this.manifest),e.canSkipDateranges&&!e.hasOwnProperty("canSkipUntil")&&this.trigger("warn",{message:"#EXT-X-SERVER-CONTROL lacks required attribute CAN-SKIP-UNTIL which is required when CAN-SKIP-DATERANGES is set"})},"preload-hint"(){const e=this.manifest.segments.length,t=k(h.attributes),n=t.type&&"PART"===t.type;r.preloadHints=r.preloadHints||[],r.preloadHints.push(t),t.byterange&&(t.byterange.hasOwnProperty("offset")||(t.byterange.offset=n?c:0,n&&(c=t.byterange.offset+t.byterange.length)));const i=r.preloadHints.length-1;if(this.warnOnMissingAttributes_(`#EXT-X-PRELOAD-HINT #${i} for segment #${e}`,h.attributes,["TYPE","URI"]),t.type)for(let n=0;n<r.preloadHints.length-1;n++){const s=r.preloadHints[n];s.type&&s.type===t.type&&this.trigger("warn",{message:`#EXT-X-PRELOAD-HINT #${i} for segment #${e} has the same TYPE ${t.type} as preload hint #${n}`})}},"rendition-report"(){const e=k(h.attributes);this.manifest.renditionReports=this.manifest.renditionReports||[],this.manifest.renditionReports.push(e);const t=this.manifest.renditionReports.length-1,n=["LAST-MSN","URI"];s&&n.push("LAST-PART"),this.warnOnMissingAttributes_(`#EXT-X-RENDITION-REPORT #${t}`,h.attributes,n)},"part-inf"(){this.manifest.partInf=k(h.attributes),this.warnOnMissingAttributes_("#EXT-X-PART-INF",h.attributes,["PART-TARGET"]),this.manifest.partInf.partTarget&&(this.manifest.partTargetDuration=this.manifest.partInf.partTarget),E.call(this,this.manifest)},daterange(){this.manifest.daterange=this.manifest.daterange||[],this.manifest.daterange.push(k(h.attributes));const e=this.manifest.daterange.length-1;this.warnOnMissingAttributes_(`#EXT-X-DATERANGE #${e}`,h.attributes,["ID","START-DATE"]);const t=this.manifest.daterange[e];t.endDate&&t.startDate&&new Date(t.endDate)<new Date(t.startDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE END-DATE must be equal to or later than the value of the START-DATE"}),t.duration&&t.duration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE DURATION must not be negative"}),t.plannedDuration&&t.plannedDuration<0&&this.trigger("warn",{message:"EXT-X-DATERANGE PLANNED-DURATION must not be negative"});const n=!!t.endOnNext;if(n&&!t.class&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must have a CLASS attribute"}),n&&(t.duration||t.endDate)&&this.trigger("warn",{message:"EXT-X-DATERANGE with an END-ON-NEXT=YES attribute must not contain DURATION or END-DATE attributes"}),t.duration&&t.endDate){const n=t.startDate,i=n.setSeconds(n.getSeconds()+t.duration);this.manifest.daterange[e].endDate=new Date(i)}if(t&&!this.manifest.dateTimeString&&this.trigger("warn",{message:"A playlist with EXT-X-DATERANGE tag must contain atleast one EXT-X-PROGRAM-DATE-TIME tag"}),d[t.id]){for(const e in d[t.id])if(d[t.id][e]!==t[e]){this.trigger("warn",{message:"EXT-X-DATERANGE tags with the same ID in a playlist must have the same attributes and same attribute values"});break}}else d[t.id]=t},"independent-segments"(){this.manifest.independentSegments=!0}})[h.tagType]||o).call(e)},uri(){r.uri=h.uri,t.push(r),this.manifest.targetDuration&&!("duration"in r)&&(this.trigger("warn",{message:"defaulting segment duration to the target duration"}),r.duration=this.manifest.targetDuration),i&&(r.key=i),r.timeline=l,n&&(r.map=n),c=0,r={}},comment(){},custom(){h.segment?(r.custom=r.custom||{},r.custom[h.customType]=h.data):(this.manifest.custom=this.manifest.custom||{},this.manifest.custom[h.customType]=h.data)}})[h.type].call(e)})}warnOnMissingAttributes_(e,t,n){const i=[];n.forEach(function(e){t.hasOwnProperty(e)||i.push(e)}),i.length&&this.trigger("warn",{message:`${e} lacks required attribute(s): ${i.join(", ")}`})}push(e){this.lineStream.push(e)}end(){this.lineStream.push("\n"),this.trigger("end")}addParser(e){this.parseStream.addParser(e)}addTagMapper(e){this.parseStream.addTagMapper(e)}}var I,D,A={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^/},M=["video","audio","text"],O=["Video","Audio","Text"],P=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},N=function(e){void 0===e&&(e="");var t=e.split(","),n=[];return t.forEach(function(e){var t;e=e.trim(),M.forEach(function(i){var r=A[i].exec(e.toLowerCase());if(r&&!(r.length<=1)){t=i;var s=e.substring(0,r[1].length),o=e.replace(s,"");n.push({type:s,details:o,mediaType:i})}}),t||n.push({type:e,details:"",mediaType:"unknown"})}),n},L=function(e){return void 0===e&&(e=""),A.audio.test(e.trim().toLowerCase())},R=function(e){if(e&&"string"==typeof e){var t,n=e.toLowerCase().split(",").map(function(e){return P(e.trim())}),i="video";1===n.length&&L(n[0])?i="audio":1===n.length&&(void 0===(t=n[0])&&(t=""),A.text.test(t.trim().toLowerCase()))&&
vendor: 5,082 bytes, line 2
2(i="application");var r="mp4";return n.every(function(e){return A.mp4.test(e)})?r="mp4":n.every(function(e){return A.webm.test(e)})?r="webm":n.every(function(e){return A.ogg.test(e)})&&(r="ogg"),i+"/"+r+';codecs="'+e+'"'}},U=function(e){return void 0===e&&(e=""),r().MediaSource&&r().MediaSource.isTypeSupported&&r().MediaSource.isTypeSupported(R(e))||!1},B=function(e){return void 0===e&&(e=""),e.toLowerCase().split(",").every(function(e){e=e.trim();for(var t=0;t<O.length;t++)if(A["muxer"+O[t]].test(e))return!0;return!1})},z="mp4a.40.2",F=/^(audio|video|application)\/(x-|vnd\.apple\.)?mpegurl/i,q=/^application\/dash\+xml/i,V=function(e){return F.test(e)?"hls":q.test(e)?"dash":"application/vnd.videojs.vhs+json"===e?"vhs-json":null},H=function(e){return"function"===ArrayBuffer.isView?ArrayBuffer.isView(e):e&&e.buffer instanceof ArrayBuffer},W=function(e){return e instanceof Uint8Array?e:(Array.isArray(e)||H(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))},G=r().BigInt||Number,$=[G("0x1"),G("0x100"),G("0x10000"),G("0x1000000"),G("0x100000000"),G("0x10000000000"),G("0x1000000000000"),G("0x100000000000000"),G("0x10000000000000000")],Q=(I=new Uint16Array([65484]),255===(D=new Uint8Array(I.buffer,I.byteOffset,I.byteLength))[0]||D[0],function(e,t){var n=void 0===t?{}:t,i=n.signed,r=void 0!==i&&i,s=n.le,o=void 0!==s&&s;e=W(e);var a=o?"reduce":"reduceRight",l=(e[a]?e[a]:Array.prototype[a]).call(e,function(t,n,i){var r=o?i:Math.abs(i+1-e.length);return t+G(n)*$[r]},G(0));if(r){var u=$[e.length]/G(2)-G(1);(l=G(l))>u&&(l-=u,l-=u,l-=G(2))}return Number(l)}),Z=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},Y=function(e,t,n){var i=void 0===n?{}:n,r=i.offset,s=void 0===r?0:r,o=i.mask,a=void 0===o?[]:o;e=W(e);var l=(t=W(t)).every?t.every:Array.prototype.every;return t.length&&e.length-s>=t.length&&l.call(t,function(t,n){return t===(a[n]?a[n]&e[s+n]:e[s+n])})},X="http://example.com";const K=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),s=!r().location&&!/\/\//i.test(e);if(n?e=new(r()).URL(e,r().location||X):/\/\//i.test(e)||(e=g().buildAbsoluteURL(r().location&&r().location.href||"",e)),n){var o=new URL(t,e);return s?o.href.slice(X.length):i?o.href.slice(o.protocol.length):o.href}return g().buildAbsoluteURL(e,t)};var J=n(3969);const ee=e=>!!e&&"object"==typeof e,et=(...e)=>e.reduce((e,t)=>("object"!=typeof t||Object.keys(t).forEach(n=>{Array.isArray(e[n])&&Array.isArray(t[n])?e[n]=e[n].concat(t[n]):ee(e[n])&&ee(t[n])?e[n]=et(e[n],t[n]):e[n]=t[n]}),e),{}),en=e=>Object.keys(e).map(t=>e[t]),ei=e=>e.reduce((e,t)=>e.concat(t),[]),er=e=>{if(!e.length)return[];const t=[];for(let n=0;n<e.length;n++)t.push(e[n]);return t};const es=({baseUrl:e="",source:t="",range:n="",indexRange:i=""})=>{const s={uri:t,resolvedUri:K(e||"",t)};if(n||i){const e=(n||i).split("-");let t,o=r().BigInt?r().BigInt(e[0]):parseInt(e[0],10),a=r().BigInt?r().BigInt(e[1]):parseInt(e[1],10);o<Number.MAX_SAFE_INTEGER&&"bigint"==typeof o&&(o=Number(o)),a<Number.MAX_SAFE_INTEGER&&"bigint"==typeof a&&(a=Number(a)),t="bigint"==typeof a||"bigint"==typeof o?r().BigInt(a)-r().BigInt(o)+r().BigInt(1):a-o+1,"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),s.byterange={length:t,offset:o}}return s},eo=e=>(e&&"number"!=typeof e&&(e=parseInt(e,10)),isNaN(e)?null:e),ea={static(e){const{duration:t,timescale:n=1,sourceDuration:i,periodDuration:r}=e,s=eo(e.endNumber),o=t/n;return"number"==typeof s?{start:0,end:s}:"number"==typeof r?{start:0,end:r/o}:{start:0,end:i/o}},dynamic(e){const{NOW:t,clientOffset:n,availabilityStartTime:i,timescale:r=1,duration:s,periodStart:o=0,minimumUpdatePeriod:a=0,timeShiftBufferDepth:l=1/0}=e,u=eo(e.endNumber),c=(t+n)/1e3,d=i+o,h=c+a-d,p=Math.ceil(h*r/s),f=Math.floor((c-d-l)*r/s),m=Math.floor((c-d)*r/s);return{start:Math.max(0,f),end:"number"==typeof u?u:Math.min(p,m)}}},el=e=>{const{type:t,duration:n,timescale:i=1,periodDuration:r,sourceDuration:s}=e,{start:o,end:a}=ea[t](e),l=((e,t)=>{const n=[];for(let i=e;i<t;i++)n.push(i);return n})(o,a).map((e=>t=>{const{duration:n,timescale:i=1,periodStart:r,startNumber:s=1}=e;return{number:s+t,duration:n/i,timeline:r,time:t*n}})(e));if("static"===t){const e=l.length-1,t="number"==typeof r?r:s;l[e].duration=t-n/i*e}return l},eu=e=>{const{baseUrl:t,initialization:n={},sourceDuration:i,indexRange:r="",periodStart:s,presentationTime:o,number:a=0,duration:l}=e;if(!t)throw new Error("NO_BASE_URL");const u=es({baseUrl:t,source:n.sourceURL,range:n.range}),c=es({baseUrl:t,source:t,indexRange:r});if(c.map=u,l){const t=el(e);t.length&&(c.duration=t[0].duration,c.timeline=t[0].timeline)}else i&&(c.duration=i,c.timeline=s);return c.presentationTime=o||s,c.number=a,[c]},ec=(e,t,n)=>
vendor: 36,156 bytes, line 2
2{const i=e.sidx.map?e.sidx.map:null,s=e.sidx.duration,o=e.timeline||0,a=e.sidx.byterange,l=a.offset+a.length,u=t.timescale,c=t.references.filter(e=>1!==e.referenceType),d=[],h=e.endList?"static":"dynamic",p=e.sidx.timeline;let f,m=p,g=e.mediaSequence||0;f="bigint"==typeof t.firstOffset?r().BigInt(l)+t.firstOffset:l+t.firstOffset;for(let e=0;e<c.length;e++){const a=t.references[e],l=a.referencedSize,c=a.subsegmentDuration;let v;v="bigint"==typeof f?f+r().BigInt(l)-r().BigInt(1):f+l-1;const y=eu({baseUrl:n,timescale:u,timeline:o,periodStart:p,presentationTime:m,number:g,duration:c,sourceDuration:s,indexRange:`${f}-${v}`,type:h})[0];i&&(y.map=i),d.push(y),f+="bigint"==typeof f?r().BigInt(l):l,m+=c/u,g++}return e.segments=d,e},ed=["AUDIO","SUBTITLES"],eh=e=>{return(t=e,n=({timeline:e})=>e,en(t.reduce((e,t)=>(t.forEach(t=>{e[n(t)]=t}),e),{}))).sort((e,t)=>e.timeline>t.timeline?1:-1);var t,n},ep=e=>{let t=[];var n,i;return n=e,i=(e,n,i,r)=>{t=t.concat(e.playlists||[])},ed.forEach(function(e){for(var t in n.mediaGroups[e])for(var r in n.mediaGroups[e][t]){var s=n.mediaGroups[e][t][r];i(s)}}),t},ef=({playlist:e,mediaSequence:t})=>{e.mediaSequence=t,e.segments.forEach((t,n)=>{t.number=e.mediaSequence+n})},em=e=>e&&e.uri+"-"+(e=>{let t;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?r().BigInt(e.offset)+r().BigInt(e.length)-r().BigInt(1):e.offset+e.length-1,`${e.offset}-${t}`})(e.byterange),eg=e=>{const t=e.reduce(function(e,t){return e[t.attributes.baseUrl]||(e[t.attributes.baseUrl]=[]),e[t.attributes.baseUrl].push(t),e},{});let n=[];return Object.values(t).forEach(e=>{const t=en(e.reduce((e,t)=>{const n=t.attributes.id+(t.attributes.lang||"");return e[n]?(t.segments&&(t.segments[0]&&(t.segments[0].discontinuity=!0),e[n].segments.push(...t.segments)),t.attributes.contentProtection&&(e[n].attributes.contentProtection=t.attributes.contentProtection)):(e[n]=t,e[n].attributes.timelineStarts=[]),e[n].attributes.timelineStarts.push({start:t.attributes.periodStart,timeline:t.attributes.periodStart}),e},{}));n=n.concat(t)}),n.map(e=>{var t;return e.discontinuityStarts=(t=e.segments||[],t.reduce((e,t,n)=>(t.discontinuity&&e.push(n),e),[])),e})},ev=(e,t)=>{const n=em(e.sidx),i=n&&t[n]&&t[n].sidx;return i&&ec(e,i,e.sidx.resolvedUri),e},ey=(e,t={})=>{if(!Object.keys(t).length)return e;for(const n in e)e[n]=ev(e[n],t);return e},eb=({attributes:e,segments:t,sidx:n,discontinuityStarts:i})=>{const r={attributes:{NAME:e.id,AUDIO:"audio",SUBTITLES:"subs",RESOLUTION:{width:e.width,height:e.height},CODECS:e.codecs,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuityStarts:i,timelineStarts:e.timelineStarts,segments:t};return e.frameRate&&(r.attributes["FRAME-RATE"]=e.frameRate),e.contentProtection&&(r.contentProtection=e.contentProtection),e.serviceLocation&&(r.attributes.serviceLocation=e.serviceLocation),n&&(r.sidx=n),r},e_=({attributes:e})=>"video/mp4"===e.mimeType||"video/webm"===e.mimeType||"video"===e.contentType,eT=({attributes:e})=>"audio/mp4"===e.mimeType||"audio/webm"===e.mimeType||"audio"===e.contentType,ej=({attributes:e})=>"text/vtt"===e.mimeType||"text"===e.contentType,ew=e=>e?Object.keys(e).reduce((t,n)=>{const i=e[n];return t.concat(i.playlists)},[]):[],eS=({dashPlaylists:e,locations:t,contentSteering:n,sidxMapping:i={},previousManifest:r,eventStream:s})=>{if(!e.length)return{};const{sourceDuration:o,type:a,suggestedPresentationDelay:l,minimumUpdatePeriod:u}=e[0].attributes,c=eg(e.filter(e_)).map(eb),d=eg(e.filter(eT)),h=eg(e.filter(ej)),p=e.map(e=>e.attributes.captionServices).filter(Boolean),f={allowCache:!0,discontinuityStarts:[],segments:[],endList:!0,mediaGroups:{AUDIO:{},VIDEO:{},"CLOSED-CAPTIONS":{},SUBTITLES:{}},uri:"",duration:o,playlists:ey(c,i)};u>=0&&(f.minimumUpdatePeriod=1e3*u),t&&(f.locations=t),n&&(f.contentSteering=n),"dynamic"===a&&(f.suggestedPresentationDelay=l),s&&s.length>0&&(f.eventStream=s);const m=0===f.playlists.length,g=d.length?((e,t={},n=!1)=>{let i;const r=e.reduce((e,r)=>{const s=r.attributes.role&&r.attributes.role.value||"",o=r.attributes.lang||"";let a=r.attributes.label||"main";if(o&&!r.attributes.label){const e=s?` (${s})`:"";a=`${r.attributes.lang}${e}`}e[a]||(e[a]={language:o,autoselect:!0,default:"main"===s,playlists:[],uri:""});const l=ev((({attributes:e,segments:t,sidx:n,mediaSequence:i,discontinuitySequence:r,discontinuityStarts:s},o)=>{const a={attributes:{NAME:e.id,BANDWIDTH:e.bandwidth,CODECS:e.codecs,"PROGRAM-ID":1},uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,discontinuitySequence:r,discontinuityStarts:s,timelineStarts:e.timelineStarts,mediaSequence:i,segments:t};return e.contentProtection&&(a.contentProtection=e.contentProtection),e.serviceLocation&&(a.attributes.serviceLocation=e.serviceLocation),n&&(a.sidx=n),o&&(a.attributes.AUDIO="audio",a.attributes.SUBTITLES="subs"),a})(r,n),t);return e[a].playlists.push(l),void 0===i&&"main"===s&&(i=r,i.default=!0),e},{});return i||(r[Object.keys(r)[0]].default=!0),r})(d,i,m):null,v=h.length?((e,t={})=>e.reduce((e,n)=>{const i=n.attributes.label||n.attributes.lang||"text";return e[i]||(e[i]={language:i,default:!1,autoselect:!1,playlists:[],uri:""}),e[i].playlists.push(ev((({attributes:e,segments:t,mediaSequence:n,discontinuityStarts:i,discontinuitySequence:r})=>{void 0===t&&(t=[{uri:e.baseUrl,timeline:e.periodStart,resolvedUri:e.baseUrl||"",duration:e.sourceDuration,number:0}],e.duration=e.sourceDuration);const s={NAME:e.id,BANDWIDTH:e.bandwidth,"PROGRAM-ID":1};e.codecs&&(s.CODECS=e.codecs);const o={attributes:s,uri:"",endList:"static"===e.type,timeline:e.periodStart,resolvedUri:e.baseUrl||"",targetDuration:e.duration,timelineStarts:e.timelineStarts,discontinuityStarts:i,discontinuitySequence:r,mediaSequence:n,segments:t};return e.serviceLocation&&(o.attributes.serviceLocation=e.serviceLocation),o})(n),t)),e},{}))(h,i):null,y=c.concat(ew(g),ew(v)),b=y.map(({timelineStarts:e})=>e);var _,T;return f.timelineStarts=eh(b),_=y,T=f.timelineStarts,_.forEach(e=>{e.mediaSequence=0,e.discontinuitySequence=T.findIndex(function({timeline:t}){return t===e.timeline}),e.segments&&e.segments.forEach((e,t)=>{e.number=t})}),g&&(f.mediaGroups.AUDIO.audio=g),v&&(f.mediaGroups.SUBTITLES.subs=v),p.length&&(f.mediaGroups["CLOSED-CAPTIONS"].cc=p.reduce((e,t)=>t?(t.forEach(t=>{const{channel:n,language:i}=t;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,{})),r?(({oldManifest:e,newManifest:t})=>{const n=e.playlists.concat(ep(e)),i=t.playlists.concat(ep(t));return t.timelineStarts=eh([e.timelineStarts,t.timelineStarts]),(({oldPlaylists:e,newPlaylists:t,timelineStarts:n})=>{t.forEach(t=>{t.discontinuitySequence=n.findIndex(function({timeline:e}){return e===t.timeline});const i=((e,t)=>{for(let n=0;n<e.length;n++)if(e[n].attributes.NAME===t)return e[n];return null})(e,t.attributes.NAME);if(!i)return;if(t.sidx)return;const r=t.segments[0],s=i.segments.findIndex(function(e){return Math.abs(e.presentationTime-r.presentationTime)<.016666666666666666});if(-1===s)return ef({playlist:t,mediaSequence:i.mediaSequence+i.segments.length}),t.segments[0].discontinuity=!0,t.discontinuityStarts.unshift(0),void((!i.segments.length&&t.timeline>i.timeline||i.segments.length&&t.timeline>i.segments[i.segments.length-1].timeline)&&t.discontinuitySequence--);i.segments[s].discontinuity&&!r.discontinuity&&(r.discontinuity=!0,t.discontinuityStarts.unshift(0),t.discontinuitySequence--),ef({playlist:t,mediaSequence:i.segments[s].number})})})({oldPlaylists:n,newPlaylists:i,timelineStarts:t.timelineStarts}),t})({oldManifest:r,newManifest:f}):f},ex=(e,t,n)=>{const{NOW:i,clientOffset:r,availabilityStartTime:s,timescale:o=1,periodStart:a=0,minimumUpdatePeriod:l=0}=e,u=(i+r)/1e3+l-(s+a);return Math.ceil((u*o-t)/n)},ek=(e,t)=>{const{type:n,minimumUpdatePeriod:i=0,media:r="",sourceDuration:s,timescale:o=1,startNumber:a=1,periodStart:l}=e,u=[];let c=-1;for(let d=0;d<t.length;d++){const h=t[d],p=h.d,f=h.r||0,m=h.t||0;let g;if(c<0&&(c=m),m&&m>c&&(c=m),f<0){const a=d+1;g=a===t.length?"dynamic"===n&&i>0&&r.indexOf("$Number$")>0?ex(e,c,p):(s*o-c)/p:(t[a].t-c)/p}else g=f+1;const v=a+u.length+g;let y=a+u.length;for(;y<v;)u.push({number:y,duration:p/o,time:c,timeline:l}),c+=p,y++}return u},eE=/\$([A-z]*)(?:(%0)([0-9]+)d)?\$/g,eC=(e,t)=>e.replace(eE,(e=>(t,n,i,r)=>{if("$$"===t)return"$";if(void 0===e[n])return t;const s=""+e[n];return"RepresentationID"===n?s:(r=i?parseInt(r,10):1,s.length>=r?s:`${new Array(r-s.length+1).join("0")}${s}`)})(t)),eI=(e,t)=>{const n={RepresentationID:e.id,Bandwidth:e.bandwidth||0},{initialization:i={sourceURL:"",range:""}}=e,r=es({baseUrl:e.baseUrl,source:eC(i.sourceURL,n),range:i.range}),s=((e,t)=>e.duration||t?e.duration?el(e):ek(e,t):[{number:e.startNumber||1,duration:e.sourceDuration,time:0,timeline:e.periodStart}])(e,t);return s.map(t=>{n.Number=t.number,n.Time=t.time;const i=eC(e.media||"",n),s=e.timescale||1,o=e.presentationTimeOffset||0,a=e.periodStart+(t.time-o)/s;return{uri:i,timeline:t.timeline,duration:t.duration,resolvedUri:K(e.baseUrl||"",i),map:r,number:t.number,presentationTime:a}})},eD=(e,t)=>{const{duration:n,segmentUrls:i=[],periodStart:r}=e;if(!n&&!t||n&&t)throw new Error("SEGMENT_TIME_UNSPECIFIED");const s=i.map(t=>((e,t)=>{const{baseUrl:n,initialization:i={}}=e,r=es({baseUrl:n,source:i.sourceURL,range:i.range}),s=es({baseUrl:n,source:t.media,range:t.mediaRange});return s.map=r,s})(e,t));let o;return n&&(o=el(e)),t&&(o=ek(e,t)),o.map((t,n)=>{if(s[n]){const i=s[n],o=e.timescale||1,a=e.presentationTimeOffset||0;return i.timeline=t.timeline,i.duration=t.duration,i.number=t.number,i.presentationTime=r+(t.time-a)/o,i}}).filter(e=>e)},eA=({attributes:e,segmentInfo:t})=>{let n,i;t.template?(i=eI,n=et(e,t.template)):t.base?(i=eu,n=et(e,t.base)):t.list&&(i=eD,n=et(e,t.list));const r={attributes:e};if(!i)return r;const s=i(n,t.segmentTimeline);if(n.duration){const{duration:e,timescale:t=1}=n;n.duration=e/t}else s.length?n.duration=s.reduce((e,t)=>Math.max(e,Math.ceil(t.duration)),0):n.duration=0;return r.attributes=n,r.segments=s,t.base&&n.indexRange&&(r.sidx=s[0],r.segments=[]),r},eM=(e,t)=>er(e.childNodes).filter(({tagName:e})=>e===t),eO=e=>e.textContent.trim(),eP=e=>{const t=/P(?:(\d*)Y)?(?:(\d*)M)?(?:(\d*)D)?(?:T(?:(\d*)H)?(?:(\d*)M)?(?:([\d.]*)S)?)?/.exec(e);if(!t)return 0;const[n,i,r,s,o,a]=t.slice(1);return 31536e3*parseFloat(n||0)+2592e3*parseFloat(i||0)+86400*parseFloat(r||0)+3600*parseFloat(s||0)+60*parseFloat(o||0)+parseFloat(a||0)},eN={mediaPresentationDuration:e=>eP(e),availabilityStartTime(e){return/^\d+-\d+-\d+T\d+:\d+:\d+(\.\d+)?$/.test(t=e)&&(t+="Z"),Date.parse(t)/1e3;var t},minimumUpdatePeriod:e=>eP(e),suggestedPresentationDelay:e=>eP(e),type:e=>e,timeShiftBufferDepth:e=>eP(e),start:e=>eP(e),width:e=>parseInt(e,10),height:e=>parseInt(e,10),bandwidth:e=>parseInt(e,10),frameRate:e=>(e=>parseFloat(e.split("/").reduce((e,t)=>e/t)))(e),startNumber:e=>parseInt(e,10),timescale:e=>parseInt(e,10),presentationTimeOffset:e=>parseInt(e,10),duration(e){const t=parseInt(e,10);return isNaN(t)?eP(e):t},d:e=>parseInt(e,10),t:e=>parseInt(e,10),r:e=>parseInt(e,10),presentationTime:e=>parseInt(e,10),DEFAULT:e=>e},eL=e=>e&&e.attributes?er(e.attributes).reduce((e,t)=>{const n=eN[t.name]||eN.DEFAULT;return e[t.name]=n(t.value),e},{}):{},eR={"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"},eU=(e,t)=>t.length?ei(e.map(function(e){return t.map(function(t){const n=eO(t),i=K(e.baseUrl,n),r=et(eL(t),{baseUrl:i});return i!==n&&!r.serviceLocation&&e.serviceLocation&&(r.serviceLocation=e.serviceLocation),r})})):e,eB=e=>{const t=eM(e,"SegmentTemplate")[0],n=eM(e,"SegmentList")[0],i=n&&eM(n,"SegmentURL").map(e=>et({tag:"SegmentURL"},eL(e))),r=eM(e,"SegmentBase")[0],s=n||t,o=s&&eM(s,"SegmentTimeline")[0],a=n||r||t,l=a&&eM(a,"Initialization")[0],u=t&&eL(t);u&&l?u.initialization=l&&eL(l):u&&u.initialization&&(u.initialization={sourceURL:u.initialization});const c={template:u,segmentTimeline:o&&eM(o,"S").map(e=>eL(e)),list:n&&et(eL(n),{segmentUrls:i,initialization:eL(l)}),base:r&&et(eL(r),{initialization:eL(l)})};return Object.keys(c).forEach(e=>{c[e]||delete c[e]}),c},ez=e=>ei(eM(e.node,"EventStream").map(t=>{const n=eL(t),i=n.schemeIdUri;return eM(t,"Event").map(t=>{const r=eL(t),s=r.presentationTime||0,o=n.timescale||1,a=r.duration||0,l=s/o+e.attributes.start;return{schemeIdUri:i,value:n.value,id:r.id,start:l,end:l+a/o,messageData:eO(t)||r.messageData,contentEncoding:n.contentEncoding,presentationTimeOffset:n.presentationTimeOffset||0}})})),eF=(e,t,n)=>i=>{const s=eL(i),o=eU(t,eM(i,"BaseURL")),a=eM(i,"Role")[0],l={role:eL(a)};let u=et(e,s,l);const c=eM(i,"Accessibility")[0],d="urn:scte:dash:cc:cea-608:2015"===(h=eL(c)).schemeIdUri?("string"!=typeof h.value?[]:h.value.split(";")).map(e=>{let t,n;return n=e,/^CC\d=/.test(e)?[t,n]=e.split("="):/^CC\d$/.test(e)&&(t=e),{channel:t,language:n}}):"urn:scte:dash:cc:cea-708:2015"===h.schemeIdUri?("string"!=typeof h.value?[]:h.value.split(";")).map(e=>{const t={channel:void 0,language:void 0,aspectRatio:1,easyReader:0,"3D":0};if(/=/.test(e)){const[n,i=""]=e.split("=");t.channel=n,t.language=e,i.split(",").forEach(e=>{const[n,i]=e.split(":");"lang"===n?t.language=i:"er"===n?t.easyReader=Number(i):"war"===n?t.aspectRatio=Number(i):"3D"===n&&(t["3D"]=Number(i))})}else t.language=e;return t.channel&&(t.channel="SERVICE"+t.channel),t}):void 0;var h;d&&(u=et(u,{captionServices:d}));const p=eM(i,"Label")[0];if(p&&p.childNodes.length){const e=p.childNodes[0].nodeValue.trim();u=et(u,{label:e})}const f=eM(i,"ContentProtection").reduce((e,t)=>{const n=eL(t);n.schemeIdUri&&(n.schemeIdUri=n.schemeIdUri.toLowerCase());const i=eR[n.schemeIdUri];if(i){e[i]={attributes:n};const s=eM(t,"cenc:pssh")[0];if(s){const t=eO(s);e[i].pssh=t&&function(e){for(var t,n=(t=e,r().atob?r().atob(t):Buffer.from(t,"base64").toString("binary")),i=new Uint8Array(n.length),s=0;s<n.length;s++)i[s]=n.charCodeAt(s);return i}(t)}}return e},{});Object.keys(f).length&&(u=et(u,{contentProtection:f}));const m=eB(i),g=eM(i,"Representation"),v=et(n,m);return ei(g.map(((e,t,n)=>i=>{const r=eM(i,"BaseURL"),s=eU(t,r),o=et(e,eL(i)),a=eB(i);return s.map(e=>({segmentInfo:et(n,a),attributes:et(o,e)}))})(u,o,v)))},eq=(e,t)=>(n,i)=>{const r=eU(t,eM(n.node,"BaseURL")),s=et(e,{periodStart:n.attributes.start});"number"==typeof n.attributes.duration&&(s.periodDuration=n.attributes.duration);const o=eM(n.node,"AdaptationSet"),a=eB(n.node);return ei(o.map(eF(s,r,a)))},eV=(e,t)=>{if(e.length>1&&t({type:"warn",message:"The MPD manifest should contain no more than one ContentSteering tag"}),!e.length)return null;const n=et({serverURL:eO(e[0])},eL(e[0]));return n.queryBeforeStart="true"===n.queryBeforeStart,n},eH=e=>{if(""===e)throw new Error("DASH_EMPTY_MANIFEST");const t=new J.DOMParser;let n,i;try{n=t.parseFromString(e,"application/xml"),i=n&&"MPD"===n.documentElement.tagName?n.documentElement:null}catch(e){}if(!i||i&&i.getElementsByTagName("parsererror").length>0)throw new Error("DASH_INVALID_XML");return i};var eW,eG=n(4221),e$=n.n(eG),eQ=W([73,68,51]),eZ=function e(t,n){return void 0===n&&(n=0),(t=W(t)).length-n<10||!Y(t,eQ,{offset:n})?n:(n+=function(e,t){void 0===t&&(t=0);var n=(e=W(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))},eY=(new Uint8Array([79,112,117,115,72,101,97,100]),function(e){return"string"==typeof e?Z(e):e}),eX=function(e){e=W(e);for(var t=[],n=0;e.length>n;){var i=e[n],r=0,s=0,o=e[++s];for(s++;128&o;)r=(127&o)<<7,o=e[s],s++;r+=127&o;for(var a=0;a<eW.length;a++){var l=eW[a],u=l.id,c=l.parser;if(i===u){t.push(c(e.subarray(s,s+r)));break}}n+=r+s}return t};eW=[{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,W(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=eX(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:eX(e.subarray(13))}}},{id:5,parser:function(e){return{tag:5,bytes:e}}},{id:6,parser:function(e){return{tag:6,bytes:e}}}];var eK=function e(t,n,i){void 0===i&&(i=!1),n=function(e){return Array.isArray(e)?e.map(function(e){return eY(e)}):[eY(e)]}(n),t=W(t);var r=[];if(!n.length)return r;for(var s=0;s<t.length;){var o=(t[s]<<24|t[s+1]<<16|t[s+2]<<8|t[s+3])>>>0,a=t.subarray(s+4,s+8);if(0===o)break;var l=s+o;if(l>t.length){if(i)break;l=t.length}var u=t.subarray(s+8,l);Y(a,n[0])&&(1===n.length?r.push(u):r.push.apply(r,e(u,n.slice(1),i))),s=l}return r},eJ={EBML:W([26,69,223,163]),DocType:W([66,130]),Segment:W([24,83,128,103]),SegmentInfo:W([21,73,169,102]),Tracks:W([22,84,174,107]),Track:W([174]),TrackNumber:W([215]),DefaultDuration:W([35,227,131]),TrackEntry:W([174]),TrackType:W([131]),FlagDefault:W([136]),CodecID:W([134]),CodecPrivate:W([99,162]),VideoTrack:W([224]),AudioTrack:W([225]),Cluster:W([31,67,182,117]),Timestamp:W([231]),TimestampScale:W([42,215,177]),BlockGroup:W([160]),BlockDuration:W([155]),Block:W([161]),SimpleBlock:W([163])},e0=[128,64,32,16,8,4,2,1],e1=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<e0.length&&!(e&e0[n]);n++)t++;return t}(e[t]),s=e.subarray(t,t+r);return n&&((s=Array.prototype.slice.call(e,t,t+r))[0]^=e0[r-1]),{length:r,value:Q(s,{signed:i}),bytes:s}},e2=function e(t){return"string"==typeof t?t.match(/.{1,2}/g).map(function(t){return e(t)}):"number"==typeof t?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);for(var r,s=(r=e=G(e),Math.ceil(function(e){return e.toString(2).length}(r)/8)),o=new Uint8Array(new ArrayBuffer(s)),a=0;a<s;a++){var l=i?a:Math.abs(a+1-o.length);o[l]=Number(e/$[a]&G(255)),e<0&&(o[l]=Math.abs(~o[l]),o[l]-=0===a?1:2)}return o}(t):t},e4=function e(t,n,i){if(i>=n.length)return n.length;var r=e1(n,i,!1);if(Y(t.bytes,r.bytes))return i;var s=e1(n,i+r.length);return e(t,n,i+s.length+s.value+r.length)},e3=function e(t,n){n=function(e){return Array.isArray(e)?e.map(function(e){return e2(e)}):[e2(e)]}(n),t=W(t);var i=[];if(!n.length)return i;for(var r=0;r<t.length;){var s=e1(t,r,!1),o=e1(t,r+s.length),a=r+s.length+o.length;127===o.value&&(o.value=e4(s,t,a),o.value!==t.length&&(o.value-=a));var l=a+o.value>t.length?t.length:a+o.value,u=t.subarray(a,l);Y(n[0],s.bytes)&&(1===n.length?i.push(u):i=i.concat(e(u,n.slice(1)))),r+=s.length+o.length+u.length}return i},e5=W([0,0,0,1]),e8=W([0,0,1]),e6=W([0,0,3]),e9=function(e){for(var t=[],n=1;n<e.length-2;)Y(e.subarray(n,n+3),e6)&&(t.push(n+2),n++),n++;if(0===t.length)return e;var i=e.length-t.length,r=new Uint8Array(i),s=0;for(n=0;n<i;s++,n++)s===t[0]&&(s++,t.shift()),r[n]=e[s];return r},e7=function(e,t,n,i){void 0===i&&(i=1/0),e=W(e),n=[].concat(n);for(var r,s=0,o=0;s<e.length&&(o<i||r);){var a=void 0;if(Y(e.subarray(s),e5)?a=4:Y(e.subarray(s),e8)&&(a=3),a){if(o++,r)return e9(e.subarray(r,s));var l=void 0;"h264"===t?l=31&e[s+a]:"h265"===t&&(l=e[s+a]>>1&63),-1!==n.indexOf(l)&&(r=s+a),s+=a+("h264"===t?1:2)}else s++}return e.subarray(0,0)},te={webm:W([119,101,98,109]),matroska:W([109,97,116,114,111,115,107,97]),flac:W([102,76,97,67]),ogg:W([79,103,103,83]),ac3:W([11,119]),riff:W([82,73,70,70]),avi:W([65,86,73]),wav:W([87,65,86,69]),"3gp":W([102,116,121,112,51,103]),mp4:W([102,116,121,112]),fmp4:W([115,116,121,112]),mov:W([102,116,121,112,113,116]),moov:W([109,111,111,118]),moof:W([109,111,111,102])},tt={aac:function(e){var t=eZ(e);return Y(e,[255,16],{offset:t,mask:[255,22]})},mp3:function(e){var t=eZ(e);return Y(e,[255,2],{offset:t,mask:[255,6]})},webm:function(e){var t=e3(e,[eJ.EBML,eJ.DocType])[0];return Y(t,te.webm)},mkv:function(e){var t=e3(e,[eJ.EBML,eJ.DocType])[0];return Y(t,te.matroska)},mp4:function(e){return!tt["3gp"](e)&&!tt.mov(e)&&(!(!Y(e,te.mp4,{offset:4})&&!Y(e,te.fmp4,{offset:4}))||!(!Y(e,te.moof,{offset:4})&&!Y(e,te.moov,{offset:4}))||void 0)},mov:function(e){return Y(e,te.mov,{offset:4})},"3gp":function(e){return Y(e,te["3gp"],{offset:4})},ac3:function(e){var t=eZ(e);return Y(e,te.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=eZ(e);return Y(e,te.flac,{offset:t})},ogg:function(e){return Y(e,te.ogg)},avi:function(e){return Y(e,te.riff)&&Y(e,te.avi,{offset:8})},wav:function(e){return Y(e,te.riff)&&Y(e,te.wav,{offset:8})},h264:function(e){return function(e,t,n){return e7(e,"h264",7,3)}(e).length},h265:function(e){return function(e,t,n){return e7(e,"h265",[32,33],3)}(e).length}},tn=Object.keys(tt).filter(function(e){return"ts"!==e&&"h264"!==e&&"h265"!==e}).concat(["ts","h264","h265"]);tn.forEach(function(e){var t=tt[e];tt[e]=function(e){return t(W(e))}});var ti=tt,tr=function(e){e=W(e);for(var t=0;t<tn.length;t++){var n=tn[t];if(ti[n](e))return n}return""},ts=n(1489),to="8.6.1";const ta={},tl=function(e,t){return ta[e]=ta[e]||[],t&&(ta[e]=ta[e].concat(t)),ta[e]},tu=function(e,t){const n=tl(e).indexOf(t);return!(n<=-1||(ta[e]=ta[e].slice(),ta[e].splice(n,1),0))},tc={prefixed:!0},td=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror","fullscreen"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror","-webkit-full-screen"]],th=td[0];let tp;for(let e=0;e<td.length;e++)if(td[e][1]in o()){tp=td[e];break}if(tp){for(let e=0;e<tp.length;e++)tc[th[e]]=tp[e];tc.prefixed=tp[0]!==th[0]}let tf=[];const tm=function e(t,n=":",i=""){let s,o="info";const a=function(...e){s("log",o,e)};return s=((e,t,n)=>(i,s,o)=>{const a=t.levels[s],l=new RegExp(`^(${a})$`);let u=e;if("log"!==i&&o.unshift(i.toUpperCase()+":"),n&&(u=`%c${e}`,o.unshift(n)),o.unshift(u+":"),tf){tf.push([].concat(o));const e=tf.length-1e3;tf.splice(0,e>0?e:0)}if(!r().console)return;let c=r().console[i];c||"debug"!==i||(c=r().console.info||r().console.log),c&&a&&l.test(i)&&c[Array.isArray(o)?"apply":"call"](r().console,o)})(t,a,i),a.createLogger=(r,s,o)=>{const a=void 0!==s?s:n;return e(`${t} ${a} ${r}`,a,void 0!==o?o:i)},a.createNewLogger=(t,n,i)=>e(t,n,i),a.levels={all:"debug|log|warn|error",off:"",debug:"debug|log|warn|error",info:"log|warn|error",warn:"warn|error",error:"error",DEFAULT:o},a.level=e=>{if("string"==typeof e){if(!a.levels.hasOwnProperty(e))throw new Error(`"${e}" in not a valid log level`);o=e}return o},(a.history=()=>tf?[].concat(tf):[]).filter=e=>(tf||[]).filter(t=>new RegExp(`.*${e}.*`).test(t[0])),a.history.clear=()=>{tf&&(tf.length=0)},a.history.disable=()=>{null!==tf&&(tf.length=0,tf=null)},a.history.enable=()=>{null===tf&&(tf=[])},a.error=(...e)=>s("error",o,e),a.warn=(...e)=>s("warn",o,e),a.debug=(...e)=>s("debug",o,e),a}("VIDEOJS"),tg=tm.createLogger,tv=Object.prototype.toString,ty=function(e){return tT(e)?Object.keys(e):[]};function tb(e,t){ty(e).forEach(n=>t(e[n],n))}function t_(e,t,n=0){return ty(e).reduce((n,i)=>t(n,e[i],i),n)}function tT(e){return!!e&&"object"==typeof e}function tj(e){return tT(e)&&"[object Object]"===tv.call(e)&&e.constructor===Object}function tw(...e){const t={};return e.forEach(e=>{e&&tb(e,(e,n)=>{tj(e)?(tj(t[n])||(t[n]={}),t[n]=tw(t[n],e)):t[n]=e})}),t}function tS(e={}){const t=[];for(const n in e)if(e.hasOwnProperty(n)){const i=e[n];t.push(i)}return t}function tx(e,t,n,i=!0){const r=n=>Object.defineProperty(e,t,{value:n,enumerable:!0,writable:!0}),s={configurable:!0,enumerable:!0,get(){const e=n();return r(e),e}};return i&&(s.set=r),Object.defineProperty(e,t,s)}var tk=Object.freeze({__proto__:null,each:tb,reduce:t_,isObject:tT,isPlain:tj,merge:tw,values:tS,defineLazyProperty:tx});let tE,tC=!1,tI=null,tD=!1,tA=!1,tM=!1,tO=!1,tP=!1,tN=null,tL=null,tR=null,tU=!1,tB=!1,tz=!1,tF=!1;const tq=Boolean(tQ()&&("ontouchstart"in r()||r().navigator.maxTouchPoints||r().DocumentTouch&&r().document instanceof r().DocumentTouch)),tV=r().navigator&&r().navigator.userAgentData;if(tV&&(tD="Android"===tV.platform,tM=Boolean(tV.brands.find(e=>"Microsoft Edge"===e.brand)),tO=Boolean(tV.brands.find(e=>"Chromium"===e.brand)),tP=!tM&&tO,tN=tL=(tV.brands.find(e=>"Chromium"===e.brand)||{}).version||null,tB="Windows"===tV.platform),!tO){const e=r().navigator&&r().navigator.userAgent||"";tC=/iPod/i.test(e),tI=function(){const t=e.match(/OS (\d+)_/i);return t&&t[1]?t[1]:null}(),tD=/Android/i.test(e),tE=function(){const t=e.match(/Android (\d+)(?:\.(\d+))?(?:\.(\d+))*/i);if(!t)return null;const n=t[1]&&parseFloat(t[1]),i=t[2]&&parseFloat(t[2]);return n&&i?parseFloat(t[1]+"."+t[2]):n||null}(),tA=/Firefox/i.test(e),tM=/Edg/i.test(e),tO=/Chrome/i.test(e)||/CriOS/i.test(e),tP=!tM&&tO,tN=tL=function(){const t=e.match(/(Chrome|CriOS)\/(\d+)/);return t&&t[2]?parseFloat(t[2]):null}(),tR=function(){const t=/MSIE\s(\d+)\.\d/.exec(e);let n=t&&parseFloat(t[1]);return!n&&/Trident\/7.0/i.test(e)&&/rv:11.0/.test(e)&&(n=11),n}(),tU=/Safari/i.test(e)&&!tP&&!tD&&!tM,tB=/Windows/i.test(e),tz=/iPad/i.test(e)||tU&&tq&&!/iPhone/i.test(e),tF=/iPhone/i.test(e)&&!tz}const tH=tF||tz||tC,tW=(tU||tH)&&!tP;var tG=Object.freeze({__proto__:null,get IS_IPOD(){return tC},get IOS_VERSION(){return tI},get IS_ANDROID(){return tD},get ANDROID_VERSION(){return tE},get IS_FIREFOX(){return tA},get IS_EDGE(){return tM},get IS_CHROMIUM(){return tO},get IS_CHROME(){return tP},get CHROMIUM_VERSION(){return tN},get CHROME_VERSION(){return tL},get IE_VERSION(){return tR},get IS_SAFARI(){return tU},get IS_WINDOWS(){return tB},get IS_IPAD(){return tz},get IS_IPHONE(){return tF},TOUCH_ENABLED:tq,IS_IOS:tH,IS_ANY_SAFARI:tW});function t$(e){return"string"==typeof e&&Boolean(e.trim())}function tQ(){return o()===r().document}function tZ(e){return tT(e)&&1===e.nodeType}function tY(){try{return r().parent!==r().self}catch(e){return!0}}function tX(e){return function(t,n){if(!t$(t))return o()[e](null);t$(n)&&(n=o().querySelector(n));const i=tZ(n)?n:o();return i[e]&&i[e](t)}}function tK(e="div",t={},n={},i){const r=o().createElement(e);return Object.getOwnPropertyNames(t).forEach(function(e){const n=t[e];"textContent"===e?tJ(r,n):r[e]===n&&"tabIndex"!==e||(r[e]=n)}),Object.getOwnPropertyNames(n).forEach(function(e){r.setAttribute(e,n[e])}),i&&nl(r,i),r}function tJ(e,t){return void 0===e.textContent?e.innerText=t:e.textContent=t,e}function t0(e,t){t.firstChild?t.insertBefore(e,t.firstChild):t.appendChild(e)}function t1(e,t){return function(e){if(e.indexOf(" ")>=0)throw new Error("class has illegal whitespace characters")}(t),e.classList.contains(t)}function t2(e,...t){return e.classList.add(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e}function t4(e,...t){return e?(e.classList.remove(...t.reduce((e,t)=>e.concat(t.split(/\s+/)),[])),e):(tm.warn("removeClass was called with an element that doesn't exist"),null)}function t3(e,t,n){return"function"==typeof n&&(n=n(e,t)),"boolean"!=typeof n&&(n=void 0),t.split(/\s+/).forEach(t=>e.classList.toggle(t,n)),e}function t5(e,t){Object.getOwnPropertyNames(t).forEach(function(n){const i=t[n];null==i||!1===i?e.removeAttribute(n):e.setAttribute(n,!0===i?"":i)})}function t8(e){const t={},n=["autoplay","controls","playsinline","loop","muted","default","defaultMuted"];if(e&&e.attributes&&e.attributes.length>0){const i=e.attributes;for(let e=i.length-1;e>=0;e--){const r=i[e].name;let s=i[e].value;n.includes(r)&&(s=null!==s),t[r]=s}}return t}function t6(e,t){return e.getAttribute(t)}function t9(e,t,n){e.setAttribute(t,n)}function t7(e,t){e.removeAttribute(t)}function ne(){o().body.focus(),o().onselectstart=function(){return!1}}function nt(){o().onselectstart=function(){return!0}}function nn(e){if(e&&e.getBoundingClientRect&&e.parentNode){const t=e.getBoundingClientRect(),n={};return["bottom","height","left","right","top","width"].forEach(e=>{void 0!==t[e]&&(n[e]=t[e])}),n.height||(n.height=parseFloat(np(e,"height"))),n.width||(n.width=parseFloat(np(e,"width"))),n}}function ni(e){if(!e||e&&!e.offsetParent)return{left:0,top:0,width:0,height:0};const t=e.offsetWidth,n=e.offsetHeight;let i=0,r=0;for(;e.offsetParent&&e!==o()[tc.fullscreenElement];)i+=e.offsetLeft,r+=e.offsetTop,e=e.offsetParent;return{left:i,top:r,width:t,height:n}}function nr(e,t){const n={x:0,y:0};if(tH){let t=e;for(;t&&"html"!==t.nodeName.toLowerCase();){const e=np(t,"transform");if(/^matrix/.test(e)){const t=e.slice(7,-1).split(/,\s/).map(Number);n.x+=t[4],n.y+=t[5]}else if(/^matrix3d/.test(e)){const t=e.slice(9,-1).split(/,\s/).map(Number);n.x+=t[12],n.y+=t[13]}t=t.parentNode}}const i={},r=ni(t.target),s=ni(e),o=s.width,a=s.height;let l=t.offsetY-(s.top-r.top),u=t.offsetX-(s.left-r.left);return t.changedTouches&&(u=t.changedTouches[0].pageX-s.left,l=t.changedTouches[0].pageY+s.top,tH&&(u-=n.x,l-=n.y)),i.y=1-Math.max(0,Math.min(1,l/a)),i.x=Math.max(0,Math.min(1,u/o)),i}function ns(e){return tT(e)&&3===e.nodeType}function no(e){for(;e.firstChild;)e.removeChild(e.firstChild);return e}function na(e){return"function"==typeof e&&(e=e()),(Array.isArray(e)?e:[e]).map(e=>("function"==typeof e&&(e=e()),tZ(e)||ns(e)?e:"string"==typeof e&&/\S/.test(e)?o().createTextNode(e):void 0)).filter(e=>e)}function nl(e,t){return na(t).forEach(t=>e.appendChild(t)),e}function nu(e,t){return nl(no(e),t)}function nc(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}const nd=tX("querySelector"),nh=tX("querySelectorAll");function np(e,t){if(!e||!t)return"";if("function"==typeof r().getComputedStyle){let n;try{n=r().getComputedStyle(e)}catch(e){return""}return n?n.getPropertyValue(t)||n[t]:""}return""}function nf(e){[...o().styleSheets].forEach(t=>{try{const n=[...t.cssRules].map(e=>e.cssText).join(""),i=o().createElement("style");i.textContent=n,e.document.head.appendChild(i)}catch(i){const n=o().createElement("link");n.rel="stylesheet",n.type=t.type,n.media=t.media.mediaText,n.href=t.href,e.document.head.appendChild(n)}})}var nm=Object.freeze({__proto__:null,isReal:tQ,isEl:tZ,isInFrame:tY,createEl:tK,textContent:tJ,prependTo:t0,hasClass:t1,addClass:t2,removeClass:t4,toggleClass:t3,setAttributes:t5,getAttributes:t8,getAttribute:t6,setAttribute:t9,removeAttribute:t7,blockTextSelection:ne,unblockTextSelection:nt,getBoundingClientRect:nn,findPosition:ni,getPointerPosition:nr,isTextNode:ns,emptyEl:no,normalizeContent:na,appendContent:nl,insertContent:nu,isSingleLeftClick:nc,$:nd,$$:nh,computedStyle:np,copyStyleSheetsToWindow:nf});let ng,nv=!1;const ny=function(){if(!1===ng.options.autoSetup)return;const e=Array.prototype.slice.call(o().getElementsByTagName("video")),t=Array.prototype.slice.call(o().getElementsByTagName("audio")),n=Array.prototype.slice.call(o().getElementsByTagName("video-js")),i=e.concat(t,n);if(i&&i.length>0)for(let e=0,t=i.length;e<t;e++){const t=i[e];if(!t||!t.getAttribute){nb(1);break}void 0===t.player&&null!==t.getAttribute("data-setup")&&ng(t)}else nv||nb(1)};function nb(e,t){tQ()&&(t&&(ng=t),r().setTimeout(ny,e))}function n_(){nv=!0,r().removeEventListener("load",n_)}tQ()&&("complete"===o().readyState?n_():r().addEventListener("load",n_));const nT=function(e){const t=o().createElement("style");return t.className=e,t},nj=function(e,t){e.styleSheet?e.styleSheet.cssText=t:e.textContent=t};var nw=new WeakMap;let nS,nx=3;function nk(){return nx++}function nE(e,t){if(!nw.has(e))return;const n=nw.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&&nw.delete(e)}function nC(e,t,n,i){n.forEach(function(n){e(t,n,i)})}function nI(e){if(e.fixed_)return e;function t(){return!0}function n(){return!1}if(!e||!e.isPropagationStopped||!e.isImmediatePropagationStopped){const i=e||r().event;e={};for(const t in i)"layerX"!==t&&"layerY"!==t&&"keyLocation"!==t&&"webkitMovementX"!==t&&"webkitMovementY"!==t&&"path"!==t&&("returnValue"===t&&i.preventDefault||(e[t]=i[t]));if(e.target||(e.target=e.srcElement||o()),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){const t=o().documentElement,n=o().body;e.pageX=e.clientX+(t&&t.scrollLeft||n&&n.scrollLeft||0)-(t&&t.clientLeft||n&&n.clientLeft||0),e.pageY=e.clientY+(t&&t.scrollTop||n&&n.scrollTop||0)-(t&&t.clientTop||n&&n.clientTop||0)}e.which=e.charCode||e.keyCode,null!==e.button&&void 0!==e.button&&(e.button=1&e.button?0:4&e.button?1:2&e.button?2:0)}return e.fixed_=!0,e}const nD=function(){if("boolean"!=typeof nS){nS=!1;try{const e=Object.defineProperty({},"passive",{get(){nS=!0}});r().addEventListener("test",null,e),r().removeEventListener("test",null,e)}catch(e){}}return nS},nA=["touchstart","touchmove"];function nM(e,t,n){if(Array.isArray(t))return nC(nM,e,t,n);nw.has(e)||nw.set(e,{});const i=nw.get(e);if(i.handlers||(i.handlers={}),i.handlers[t]||(i.handlers[t]=[]),n.guid||(n.guid=nk()),i.handlers[t].push(n),i.dispatcher||(i.disabled=!1,i.dispatcher=function(t,n){if(i.disabled)return;t=nI(t);const r=i.handlers[t.type];if(r){const i=r.slice(0);for(let r=0,s=i.length;r<s&&!t.isImmediatePropagationStopped();r++)try{i[r].call(e,t,n)}catch(e){tm.error(e)}}}),1===i.handlers[t].length)if(e.addEventListener){let n=!1;nD()&&nA.indexOf(t)>-1&&(n={passive:!0}),e.addEventListener(t,i.dispatcher,n)}else e.attachEvent&&e.attachEvent("on"+t,i.dispatcher)}function nO(e,t,n){if(!nw.has(e))return;const i=nw.get(e);if(!i.handlers)return;if(Array.isArray(t))return nC(nO,e,t,n);const r=function(e,t){i.handlers[t]=[],nE(e,t)};if(void 0===t){for(const t in i.handlers)Object.prototype.hasOwnProperty.call(i.handlers||{},t)&&r(e,t);return}const s=i.handlers[t];if(s)if(n){if(n.guid)for(let e=0;e<s.length;e++)s[e].guid===n.guid&&s.splice(e--,1);nE(e,t)}else r(e,t)}function nP(e,t,n){const i=nw.has(e)?nw.get(e):{},r=e.parentNode||e.ownerDocument;if("string"==typeof t?t={type:t,target:e}:t.target||(t.target=e),t=nI(t),i.dispatcher&&i.dispatcher.call(e,t,n),r&&!t.isPropagationStopped()&&!0===t.bubbles)nP.call(null,r,t,n);else if(!r&&!t.defaultPrevented&&t.target&&t.target[t.type]){nw.has(t.target)||nw.set(t.target,{});const e=nw.get(t.target);t.target[t.type]&&(e.disabled=!0,"function"==typeof t.target[t.type]&&t.target[t.type](),e.disabled=!1)}return!t.defaultPrevented}function nN(e,t,n){if(Array.isArray(t))return nC(nN,e,t,n);const i=function(){nO(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||nk(),nM(e,t,i)}function nL(e,t,n){const i=function(){nO(e,t,i),n.apply(this,arguments)};i.guid=n.guid=n.guid||nk(),nM(e,t,i)}var nR=Object.freeze({__proto__:null,fixEvent:nI,on:nM,off:nO,trigger:nP,one
vendor: 9,567 bytes, line 2
2:nN,any:nL});const nU=30,nB=function(e,t,n){t.guid||(t.guid=nk());const i=t.bind(e);return i.guid=n?n+"_"+t.guid:t.guid,i},nz=function(e,t){let n=r().performance.now();return function(...i){const s=r().performance.now();s-n>=t&&(e(...i),n=s)}},nF=function(e,t,n,i=r()){let s;const o=function(){const r=this,o=arguments;let a=function(){s=null,a=null,n||e.apply(r,o)};!s&&n&&e.apply(r,o),i.clearTimeout(s),s=i.setTimeout(a,t)};return o.cancel=()=>{i.clearTimeout(s),s=null},o};var nq=Object.freeze({__proto__:null,UPDATE_REFRESH_INTERVAL:nU,bind_:nB,throttle:nz,debounce:nF});let nV;class nH{on(e,t){const n=this.addEventListener;this.addEventListener=()=>{},nM(this,e,t),this.addEventListener=n}off(e,t){nO(this,e,t)}one(e,t){const n=this.addEventListener;this.addEventListener=()=>{},nN(this,e,t),this.addEventListener=n}any(e,t){const n=this.addEventListener;this.addEventListener=()=>{},nL(this,e,t),this.addEventListener=n}trigger(e){const t=e.type||e;"string"==typeof e&&(e={type:t}),e=nI(e),this.allowedEvents_[t]&&this["on"+t]&&this["on"+t](e),nP(this,e)}queueTrigger(e){nV||(nV=new Map);const t=e.type||e;let n=nV.get(this);n||(n=new Map,nV.set(this,n));const i=n.get(t);n.delete(t),r().clearTimeout(i);const s=r().setTimeout(()=>{n.delete(t),0===n.size&&(n=null,nV.delete(this)),this.trigger(e)},0);n.set(t,s)}}nH.prototype.allowedEvents_={},nH.prototype.addEventListener=nH.prototype.on,nH.prototype.removeEventListener=nH.prototype.off,nH.prototype.dispatchEvent=nH.prototype.trigger;const nW=e=>"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,nG=e=>e instanceof nH||!!e.eventBusEl_&&["on","one","off","trigger"].every(t=>"function"==typeof e[t]),n$=e=>"string"==typeof e&&/\S/.test(e)||Array.isArray(e)&&!!e.length,nQ=(e,t,n)=>{if(!e||!e.nodeName&&!nG(e))throw new Error(`Invalid target for ${nW(t)}#${n}; must be a DOM node or evented object.`)},nZ=(e,t,n)=>{if(!n$(e))throw new Error(`Invalid event type for ${nW(t)}#${n}; must be a non-empty string or array.`)},nY=(e,t,n)=>{if("function"!=typeof e)throw new Error(`Invalid listener for ${nW(t)}#${n}; must be a function.`)},nX=(e,t,n)=>{const i=t.length<3||t[0]===e||t[0]===e.eventBusEl_;let r,s,o;return i?(r=e.eventBusEl_,t.length>=3&&t.shift(),[s,o]=t):[r,s,o]=t,nQ(r,e,n),nZ(s,e,n),nY(o,e,n),o=nB(e,o),{isTargetingSelf:i,target:r,type:s,listener:o}},nK=(e,t,n,i)=>{nQ(e,e,t),e.nodeName?nR[t](e,n,i):e[t](n,i)},nJ={on(...e){const{isTargetingSelf:t,target:n,type:i,listener:r}=nX(this,e,"on");if(nK(n,"on",i,r),!t){const e=()=>this.off(n,i,r);e.guid=r.guid;const t=()=>this.off("dispose",e);t.guid=r.guid,nK(this,"on","dispose",e),nK(n,"on","dispose",t)}},one(...e){const{isTargetingSelf:t,target:n,type:i,listener:r}=nX(this,e,"one");if(t)nK(n,"one",i,r);else{const e=(...t)=>{this.off(n,i,e),r.apply(null,t)};e.guid=r.guid,nK(n,"one",i,e)}},any(...e){const{isTargetingSelf:t,target:n,type:i,listener:r}=nX(this,e,"any");if(t)nK(n,"any",i,r);else{const e=(...t)=>{this.off(n,i,e),r.apply(null,t)};e.guid=r.guid,nK(n,"any",i,e)}},off(e,t,n){if(!e||n$(e))nO(this.eventBusEl_,e,t);else{const i=e,r=t;nQ(i,this,"off"),nZ(r,this,"off"),nY(n,this,"off"),n=nB(this,n),this.off("dispose",n),i.nodeName?(nO(i,r,n),nO(i,"dispose",n)):nG(i)&&(i.off(r,n),i.off("dispose",n))}},trigger(e,t){nQ(this.eventBusEl_,this,"trigger");const n=e&&"string"!=typeof e?e.type:e;if(!n$(n))throw new Error(`Invalid event type for ${nW(this)}#trigger; must be a non-empty string or object with a type key that has a non-empty value.`);return nP(this.eventBusEl_,e,t)}};function n0(e,t={}){const{eventBusKey:n}=t;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_=tK("span",{className:"vjs-event-bus"});return Object.assign(e,nJ),e.eventedCallbacks&&e.eventedCallbacks.forEach(e=>{e()}),e.on("dispose",()=>{e.off(),[e,e.el_,e.eventBusEl_].forEach(function(e){e&&nw.has(e)&&nw.delete(e)}),r().setTimeout(()=>{e.eventBusEl_=null},0)}),e}const n1={state:{},setState(e){let t;return"function"==typeof e&&(e=e()),tb(e,(e,n)=>{this.state[n]!==e&&(t=t||{},t[n]={from:this.state[n],to:e}),this.state[n]=e}),t&&nG(this)&&this.trigger({changes:t,type:"statechanged"}),t}};function n2(e,t){return Object.assign(e,n1),e.state=Object.assign({},e.state,t),"function"==typeof e.handleStateChanged&&nG(e)&&e.on("statechanged",e.handleStateChanged),e}const n4=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toLowerCase())},n3=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},n5=function(e,t){return n3(e)===n3(t)};var n8=Object.freeze({__proto__:null,toLowerCase:n4,toTitleCase:n3,titleCaseEquals:n5});class n6{constructor(e,t,n){if(!e&&this.play?this.player_=e=this:this.player_=e,this.isDisposed_=!1,this.parentComponent_=null,this.options_=tw({},this.options_),t=this.options_=tw(this.options_,t),this.id_=t.id||t.el&&t.el.id,!this.id_){const t=e&&e.id&&e.id()||"no_player";this.id_=`${t}_component_${nk()}`}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(e=>this.addClass(e)),["on","off","one","any","trigger"].forEach(e=>{this[e]=void 0}),!1!==t.evented&&(n0(this,{eventBusKey:this.el_?"el_":null}),this.handleLanguagechange=this.handleLanguagechange.bind(this),this.on(this.player_,"languagechange",this.handleLanguagechange)),n2(this,this.constructor.defaultState),this.children_=[],this.childIndex_={},this.childNameIndex_={},this.setTimeoutIds_=new Set,this.setIntervalIds_=new Set,this.rafIds_=new Set,this.namedRafs_=new Map,this.clearingTimersOnDispose_=!1,!1!==t.initChildren&&this.initChildren(),this.ready(n),!1!==t.reportTouchActivity&&this.enableTouchActivity()}on(e,t){}off(e,t){}one(e,t){}any(e,t){}trigger(e,t){}dispose(e={}){if(!this.isDisposed_){if(this.readyQueue_&&(this.readyQueue_.length=0),this.trigger({type:"dispose",bubbles:!1}),this.isDisposed_=!0,this.children_)for(let 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&&(e.restoreEl?this.el_.parentNode.replaceChild(e.restoreEl,this.el_):this.el_.parentNode.removeChild(this.el_)),this.el_=null),this.player_=null}}isDisposed(){return Boolean(this.isDisposed_)}player(){return this.player_}options(e){return e?(this.options_=tw(this.options_,e),this.options_):this.options_}el(){return this.el_}createEl(e,t,n){return tK(e,t,n)}localize(e,t,n=e){const i=this.player_.language&&this.player_.language(),r=this.player_.languages&&this.player_.languages(),s=r&&r[i],o=i&&i.split("-")[0],a=r&&r[o];let l=n;return s&&s[e]?l=s[e]:a&&a[e]&&(l=a[e]),t&&(l=l.replace(/\{(\d+)\}/g,function(e,n){const i=t[n-1];let r=i;return void 0===i&&(r=e),r})),l}handleLanguagechange(){}contentEl(){return this.contentEl_||this.el_}id(){return this.id_}name(){return this.name_}children(){return this.children_}getChildById(e){return this.childIndex_[e]}getChild(e){if(e)return this.childNameIndex_[e]}getDescendant(...e){e=e.reduce((e,t)=>e.concat(t),[]);let t=this;for(let n=0;n<e.length;n++)if(t=t.getChild(e[n]),!t||!t.getChild)return;return t}setIcon(e,t=this.el()){if(!this.player_.options_.experimentalSvgIcons)return;const n="http://www.w3.org/2000/svg",i=tK("span",{className:"vjs-icon-placeholder vjs-svg-icon"},{"aria-hidden":"true"}),r=o().createElementNS(n,"svg");r.setAttributeNS(null,"viewBox","0 0 512 512");const s=o().createElementNS(n,"use");return r.appendChild(s),s.setAttributeNS(null,"href",`#vjs-icon-${e}`),i.appendChild(r),this.iconIsSet_?t.replaceChild(i,t.querySelector(".vjs-icon-placeholder")):t.appendChild(i),this.iconIsSet_=!0,i}addChild(e,t={},n=this.children_.length){let i,r;if("string"==typeof e){r=n3(e);const n=t.componentClass||r;t.name=r;const s=n6.getComponent(n);if(!s)throw new Error(`Component ${n} does not exist`);if("function"!=typeof s)return null;i=new s(this.player_||this,t)}else i=e;if(i.parentComponent_&&i.parentComponent_.removeChild(i),this.children_.splice(n,0,i),i.parentComponent_=this,"function"==typeof i.id&&(this.childIndex_[i.id()]=i),r=r||i.name&&n3(i.name()),r&&(this.childNameIndex_[r]=i,this.childNameIndex_[n4(r)]=i),"function"==typeof i.el&&i.el()){let e=null;this.children_[n+1]&&(this.children_[n+1].el_?e=this.children_[n+1].el_:tZ(this.children_[n+1])&&(e=this.children_[n+1])),this.contentEl().insertBefore(i.el(),e)}return i}removeChild(e){if("string"==typeof e&&(e=this.getChild(e)),!e||!this.children_)return;let t=!1;for(let n=this.children_.length-1;n>=0;n--)if(this.children_[n]===e){t=!0,this.children_.splice(n,1);break}if(!t)return;e.parentComponent_=null,this.childIndex_[e.id()]=null,this.childNameIndex_[n3(e.name())]=null,this.childNameIndex_[n4(e.name())]=null;const n=e.el();n&&n.parentNode===this.contentEl()&&this.contentEl().removeChild(e.el())}initChildren(){const e=this.options_.children;if(e){const t=this.options_,n=e=>{const n=e.name;let i=e.opts;if(void 0!==t[n]&&(i=t[n]),!1===i)return;!0===i&&(i={}),i.playerOptions=this.options_.playerOptions;const r=this.addChild(n,i);r&&(this[n]=r)};let i;const r=n6.getComponent("Tech");i=Array.isArray(e)?e:Object.keys(e),i.concat(Object.keys(this.options_).filter(function(e){return!i.some(function(t){return"string"==typeof t?e===t:e===t.name})})).map(t=>{let n,i;return"string"==typeof t?(n=t,i=e[n]||this.options_[n]||{}):(n=t.name,i=t),{name:n,opts:i}}).filter(e=>
vendor: 4,434 bytes, line 2
2{const t=n6.getComponent(e.opts.componentClass||n3(e.name));return t&&!r.isTech(t)}).forEach(n)}}buildCSSClass(){return""}ready(e,t=!1){if(e)return this.isReady_?void(t?e.call(this):this.setTimeout(e,1)):(this.readyQueue_=this.readyQueue_||[],void this.readyQueue_.push(e))}triggerReady(){this.isReady_=!0,this.setTimeout(function(){const e=this.readyQueue_;this.readyQueue_=[],e&&e.length>0&&e.forEach(function(e){e.call(this)},this),this.trigger("ready")},1)}$(e,t){return nd(e,t||this.contentEl())}$$(e,t){return nh(e,t||this.contentEl())}hasClass(e){return t1(this.el_,e)}addClass(...e){t2(this.el_,...e)}removeClass(...e){t4(this.el_,...e)}toggleClass(e,t){t3(this.el_,e,t)}show(){this.removeClass("vjs-hidden")}hide(){this.addClass("vjs-hidden")}lockShowing(){this.addClass("vjs-lock-showing")}unlockShowing(){this.removeClass("vjs-lock-showing")}getAttribute(e){return t6(this.el_,e)}setAttribute(e,t){t9(this.el_,e,t)}removeAttribute(e){t7(this.el_,e)}width(e,t){return this.dimension("width",e,t)}height(e,t){return this.dimension("height",e,t)}dimensions(e,t){this.width(e,!0),this.height(t)}dimension(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;const i=this.el_.style[e],r=i.indexOf("px");return-1!==r?parseInt(i.slice(0,r),10):parseInt(this.el_["offset"+n3(e)],10)}currentDimension(e){let t=0;if("width"!==e&&"height"!==e)throw new Error("currentDimension only accepts width or height value");if(t=np(this.el_,e),t=parseFloat(t),0===t||isNaN(t)){const n=`offset${n3(e)}`;t=this.el_[n]}return t}currentDimensions(){return{width:this.currentDimension("width"),height:this.currentDimension("height")}}currentWidth(){return this.currentDimension("width")}currentHeight(){return this.currentDimension("height")}focus(){this.el_.focus()}blur(){this.el_.blur()}handleKeyDown(e){this.player_&&(l().isEventKey(e,"Tab")||e.stopPropagation(),this.player_.handleKeyDown(e))}handleKeyPress(e){this.handleKeyDown(e)}emitTapEvents(){let 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){const i=t.touches[0].pageX-n.pageX,r=t.touches[0].pageY-n.pageY;Math.sqrt(i*i+r*r)>10&&(e=!1)}});const 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"))})}enableTouchActivity(){if(!this.player()||!this.player().reportUserActivity)return;const e=nB(this.player(),this.player().reportUserActivity);let t;this.on("touchstart",function(){e(),this.clearInterval(t),t=this.setInterval(e,250)});const n=function(n){e(),this.clearInterval(t)};this.on("touchmove",e),this.on("touchend",n),this.on("touchcancel",n)}setTimeout(e,t){var n;return e=nB(this,e),this.clearTimersOnDispose_(),n=r().setTimeout(()=>{this.setTimeoutIds_.has(n)&&this.setTimeoutIds_.delete(n),e()},t),this.setTimeoutIds_.add(n),n}clearTimeout(e){return this.setTimeoutIds_.has(e)&&(this.setTimeoutIds_.delete(e),r().clearTimeout(e)),e}setInterval(e,t){e=nB(this,e),this.clearTimersOnDispose_();const n=r().setInterval(e,t);return this.setIntervalIds_.add(n),n}clearInterval(e){return this.setIntervalIds_.has(e)&&(this.setIntervalIds_.delete(e),r().clearInterval(e)),e}requestAnimationFrame(e){var t;return this.clearTimersOnDispose_(),e=nB(this,e),t=r().requestAnimationFrame(()=>{this.rafIds_.has(t)&&this.rafIds_.delete(t),e()}),this.rafIds_.add(t),t}requestNamedAnimationFrame(e,t){if(this.namedRafs_.has(e))return;this.clearTimersOnDispose_(),t=nB(this,t);const n=this.requestAnimationFrame(()=>{t(),this.namedRafs_.has(e)&&this.namedRafs_.delete(e)});return this.namedRafs_.set(e,n),e}cancelNamedAnimationFrame(e){this.namedRafs_.has(e)&&(this.cancelAnimationFrame(this.namedRafs_.get(e)),this.namedRafs_.delete(e))}cancelAnimationFrame(e){return this.rafIds_.has(e)&&(this.rafIds_.delete(e),r().cancelAnimationFrame(e)),e}clearTimersOnDispose_(){this.clearingTimersOnDispose_||(this.clearingTimersOnDispose_=!0,this.one("dispose",()=>{[["namedRafs_","cancelNamedAnimationFrame"],["rafIds_","cancelAnimationFrame"],["setTimeoutIds_","clearTimeout"],["setIntervalIds_","clearInterval"]].forEac
vendor: 10,159 bytes, line 2
2h(([e,t])=>{this[e].forEach((e,n)=>this[t](n))}),this.clearingTimersOnDispose_=!1}))}static registerComponent(e,t){if("string"!=typeof e||!e)throw new Error(`Illegal component name, "${e}"; must be a non-empty string.`);const n=n6.getComponent("Tech"),i=n&&n.isTech(t),r=n6===t||n6.prototype.isPrototypeOf(t.prototype);if(i||!r){let t;throw t=i?"techs must be registered using Tech.registerTech()":"must be a Component subclass",new Error(`Illegal component, "${e}"; ${t}.`)}e=n3(e),n6.components_||(n6.components_={});const s=n6.getComponent("Player");if("Player"===e&&s&&s.players){const e=s.players,t=Object.keys(e);if(e&&t.length>0&&t.map(t=>e[t]).every(Boolean))throw new Error("Can not register Player component after player has been created.")}return n6.components_[e]=t,n6.components_[n4(e)]=t,t}static getComponent(e){if(e&&n6.components_)return n6.components_[e]}}function n9(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 n7(e){let t;return t=void 0===e||0===e.length?{length:0,start(){throw new Error("This TimeRanges object is empty")},end(){throw new Error("This TimeRanges object is empty")}}:{length:e.length,start:n9.bind(null,"start",0,e),end:n9.bind(null,"end",1,e)},r().Symbol&&r().Symbol.iterator&&(t[r().Symbol.iterator]=()=>(e||[]).values()),t}function ie(e,t){return Array.isArray(e)?n7(e):void 0===e||void 0===t?n7():n7([[e,t]])}n6.registerComponent("Component",n6);const it=function(e,t){e=e<0?0:e;let n=Math.floor(e%60),i=Math.floor(e/60%60),r=Math.floor(e/3600);const s=Math.floor(t/60%60),o=Math.floor(t/3600);return(isNaN(e)||e===1/0)&&(r=i=n="-"),r=r>0||o>0?r+":":"",i=((r||s>=10)&&i<10?"0"+i:i)+":",n=n<10?"0"+n:n,r+i+n};let ii=it;function ir(e){ii=e}function is(){ii=it}function io(e,t=e){return ii(e,t)}var ia=Object.freeze({__proto__:null,createTimeRanges:ie,createTimeRange:ie,setFormatTime:ir,resetFormatTime:is,formatTime:io});function il(e,t){let n,i,r=0;if(!t)return 0;e&&e.length||(e=ie(0,0));for(let s=0;s<e.length;s++)n=e.start(s),i=e.end(s),i>t&&(i=t),r+=i-n;return r/t}function iu(e){if(e instanceof iu)return e;"number"==typeof e?this.code=e:"string"==typeof e?this.message=e:tT(e)&&("number"==typeof e.code&&(this.code=e.code),Object.assign(this,e)),this.message||(this.message=iu.defaultMessages[this.code]||"")}iu.prototype.code=0,iu.prototype.message="",iu.prototype.status=null,iu.errorTypes=["MEDIA_ERR_CUSTOM","MEDIA_ERR_ABORTED","MEDIA_ERR_NETWORK","MEDIA_ERR_DECODE","MEDIA_ERR_SRC_NOT_SUPPORTED","MEDIA_ERR_ENCRYPTED"],iu.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(let e=0;e<iu.errorTypes.length;e++)iu[iu.errorTypes[e]]=e,iu.prototype[iu.errorTypes[e]]=e;function ic(e){return null!=e&&"function"==typeof e.then}function id(e){ic(e)&&e.then(null,e=>{})}const ih=function(e){return["kind","label","language","id","inBandMetadataTrackDispatchType","mode","src"].reduce((t,n,i)=>(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}})})};const ip="vjs-modal-dialog";class im extends n6{constructor(e,t){super(e,t),this.handleKeyDown_=e=>this.handleKeyDown(e),this.close_=e=>this.close(e),this.opened_=this.hasBeenOpened_=this.hasBeenFilled_=!1,this.closeable(!this.options_.uncloseable),this.content(this.options_.content),this.contentEl_=tK("div",{className:`${ip}-content`},{role:"document"}),this.descEl_=tK("p",{className:`${ip}-description vjs-control-text`,id:this.el().getAttribute("aria-describedby")}),tJ(this.descEl_,this.description()),this.el_.appendChild(this.descEl_),this.el_.appendChild(this.contentEl_)}createEl(){return super.createEl("div",{className:this.buildCSSClass(),tabIndex:-1},{"aria-describedby":`${this.id()}_description`,"aria-hidden":"true","aria-label":this.label(),role:"dialog"})}dispose(){this.contentEl_=null,this.descEl_=null,this.previouslyActiveEl_=null,super.dispose()}buildCSSClass(){return`${ip} vjs-hidden ${super.buildCSSClass()}`}label(){return this.localize(this.options_.label||"Modal Window")}description(){let 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}open(){if(!this.opened_){const e=this.player();this.trigger("beforemodalopen"),this.opened_=!0,(this.options_.fillAlways||!this.hasBeenOpened_&&!this.hasBeenFilled_)&&this.fill(),this.wasPlaying_=!e.paused(),this.options_.pauseOnOpen&&this.wasPlaying_&&e.pause(),this.on("keydown",this.handleKeyDown_),this.hadControls_=e.controls(),e.controls(!1),this.show(),this.conditionalFocus_(),this.el().setAttribute("aria-hidden","false"),this.trigger("modalopen"),this.hasBeenOpened_=!0}}opened(e){return"boolean"==typeof e&&this[e?"open":"close"](),this.opened_}close(){if(!this.opened_)return;const 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()}closeable(e){if("boolean"==typeof e){const t=this.closeable_=!!e;let n=this.getChild("closeButton");if(t&&!n){const e=this.contentEl_;this.contentEl_=this.el_,n=this.addChild("closeButton",{controlText:"Close Modal Dialog"}),this.contentEl_=e,this.on(n,"close",this.close_)}!t&&n&&(this.off(n,"close",this.close_),this.removeChild(n),n.dispose())}return this.closeable_}fill(){this.fillWith(this.content())}fillWith(e){const t=this.contentEl(),n=t.parentNode,i=t.nextSibling;this.trigger("beforemodalfill"),this.hasBeenFilled_=!0,n.removeChild(t),this.empty(),nu(t,e),this.trigger("modalfill"),i?n.insertBefore(t,i):n.appendChild(t);const r=this.getChild("closeButton");r&&n.appendChild(r.el_)}empty(){this.trigger("beforemodalempty"),no(this.contentEl()),this.trigger("modalempty")}content(e){return void 0!==e&&(this.content_=e),this.content_}conditionalFocus_(){const e=o().activeElement,t=this.player_.el_;this.previouslyActiveEl_=null,(t.contains(e)||t===e)&&(this.previouslyActiveEl_=e,this.focus())}conditionalBlur_(){this.previouslyActiveEl_&&(this.previouslyActiveEl_.focus(),this.previouslyActiveEl_=null)}handleKeyDown(e){if(e.stopPropagation(),l().isEventKey(e,"Escape")&&this.closeable())return e.preventDefault(),void this.close();if(!l().isEventKey(e,"Tab"))return;const t=this.focusableEls_(),n=this.el_.querySelector(":focus");let i;for(let e=0;e<t.length;e++)if(n===t[e]){i=e;break}o().activeElement===this.el_&&(i=0),e.shiftKey&&0===i?(t[t.length-1].focus(),e.preventDefault()):e.shiftKey||i!==t.length-1||(t[0].focus(),e.preventDefault())}focusableEls_(){const e=this.el_.querySelectorAll("*");return Array.prototype.filter.call(e,e=>(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"))}}im.prototype.options_={pauseOnOpen:!0,temporary:!0},n6.registerComponent("ModalDialog",im);class ig extends nH{constructor(e=[]){super(),this.tracks_=[],Object.defineProperty(this,"length",{get(){return this.tracks_.length}});for(let t=0;t<e.length;t++)this.addTrack(e[t])}addTrack(e){const t=this.tracks_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.tracks_[t]}}),-1===this.tracks_.indexOf(e)&&(this.tracks_.push(e),this.trigger({track:e,type:"addtrack",target:this})),e.labelchange_=()=>{this.trigger({track:e,type:"labelchange",target:this})},nG(e)&&e.addEventListener("labelchange",e.labelchange_)}removeTrack(e){let t;for(let n=0,i=this.length;n<i;n++)if(this[n]===e){t=this[n],t.off&&t.off(),this.tracks_.splice(n,1);break}t&&this.trigger({track:t,type:"removetrack",target:this})}getTrackById(e){let t=null;for(let n=0,i=this.length;n<i;n++){const i=this[n];if(i.id===e){t=i;break}}return t}}ig.prototype.allowedEvents_={change:"change",addtrack:"addtrack",removetrack:"removetrack",labelchange:"labelchange"};for(const e in ig.prototype.allowedEvents_)ig.prototype["on"+e]=null;const iv=function(e,t){for(let n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].enabled=!1)},iy=function(e,t){for(let n=0;n<e.length;n++)Object.keys(e[n]).length&&t.id!==e[n].id&&(e[n].selected=!1)};class ib extends ig{addTrack(e){super.addTrack(e),this.queueChange_||(this.queueChange_=()=>this.queueTrigger("change")),this.triggerSelectedlanguagechange||(this.triggerSelectedlanguagechange_=()=>this.trigger("selectedlanguagechange")),e.addEventListener("modechange",this.queueChange_),-1===["metadata","chapters"].indexOf(e.kind)&&e.addEventListener("modechange",this.triggerSelectedlanguagechange_)}removeTrack(e){super.removeTrack(e),e.removeEventListener&&(this.queueChange_&&e.removeEventListener("modechange",this.queueChange_),this.selectedlanguagechange_&&e.removeEventListener("modechange",this.triggerSelectedlanguagechange_))}}class i_{constructor(e){i_.prototype.setCues_.call(this,e),Object.defineProperty(this,"length",{get(){return this.length_}})}setCues_(e){const t=this.length||0;let n=0;const i=e.length;this.cues_=e,this.length_=e.length;const r=function(e){""+e in this||Object.defineProperty(this,""+e,{get(){return this.cues_[e]}})};if(t<i)for(n=t;n<i;
vendor: 6,176 bytes, line 2
2n++)r.call(this,n)}getCueById(e){let t=null;for(let n=0,i=this.length;n<i;n++){const i=this[n];if(i.id===e){t=i;break}}return t}}const iT={alternative:"alternative",captions:"captions",main:"main",sign:"sign",subtitles:"subtitles",commentary:"commentary"},ij={alternative:"alternative",descriptions:"descriptions",main:"main","main-desc":"main-desc",translation:"translation",commentary:"commentary"},iw={subtitles:"subtitles",captions:"captions",descriptions:"descriptions",chapters:"chapters",metadata:"metadata"},iS={disabled:"disabled",hidden:"hidden",showing:"showing"};class ix extends nH{constructor(e={}){super();const t={id:e.id||"vjs_track_"+nk(),kind:e.kind||"",language:e.language||""};let n=e.label||"";for(const e in t)Object.defineProperty(this,e,{get:()=>t[e],set(){}});Object.defineProperty(this,"label",{get:()=>n,set(e){e!==n&&(n=e,this.trigger("labelchange"))}})}}const ik=function(e){const t=["protocol","hostname","port","pathname","search","hash","host"],n=o().createElement("a");n.href=e;const i={};for(let e=0;e<t.length;e++)i[t[e]]=n[t[e]];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},iE=function(e){if(!e.match(/^https?:\/\//)){const t=o().createElement("a");t.href=e,e=t.href}return e},iC=function(e){if("string"==typeof e){const t=/^(\/?)([\s\S]*?)((?:\.{1,2}|[^\/]+?)(\.([^\.\/\?]+)))(?:[\/]*|[\?].*)$/.exec(e);if(t)return t.pop().toLowerCase()}return""},iI=function(e,t=r().location){const n=ik(e);return(":"===n.protocol?t.protocol:n.protocol)+n.host!==t.protocol+t.host};var iD=Object.freeze({__proto__:null,parseUrl:ik,getAbsoluteURL:iE,getFileExtension:iC,isCrossOrigin:iI});const iA=function(e,t){const 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(e=>tm.error(e)),r().console&&r().console.groupEnd&&r().console.groupEnd()),n.flush()},iM=function(e,t){const n={uri:e},i=iI(e);i&&(n.cors=i);const s="use-credentials"===t.tech_.crossOrigin();s&&(n.withCredentials=s),h()(n,nB(this,function(e,n,i){if(e)return tm.error(e,n);t.loaded_=!0,"function"!=typeof r().WebVTT?t.tech_&&t.tech_.any(["vttjsloaded","vttjserror"],e=>{if("vttjserror"!==e.type)return iA(i,t);tm.error(`vttjs failed to load, stopping trying to process ${t.src}`)}):iA(i,t)}))};class iO extends ix{constructor(e={}){if(!e.tech)throw new Error("A tech was not provided.");const t=tw(e,{kind:iw[e.kind]||"subtitles",language:e.language||e.srclang||""});let n=iS[t.mode]||"disabled";const i=t.default;"metadata"!==t.kind&&"chapters"!==t.kind||(n="hidden"),super(t),this.tech_=t.tech,this.cues_=[],this.activeCues_=[],this.preload_=!1!==this.tech_.preloadTextTracks;const r=new i_(this.cues_),s=new i_(this.activeCues_);let o=!1;this.timeupdateHandler=nB(this,function(e={}){this.tech_.isDisposed()||(this.tech_.isReady_?(this.activeCues=this.activeCues,o&&(this.trigger("cuechange"),o=!1),"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler))):"timeupdate"!==e.type&&(this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler)))}),this.tech_.one("dispose",()=>{this.stopTracking()}),"disabled"!==n&&this.startTracking(),Object.defineProperties(this,{default:{get:()=>i,set(){}},mode:{get:()=>n,set(e){iS[e]&&n!==e&&(n=e,this.preload_||"disabled"===n||0!==this.cues.length||iM(this.src,this),this.stopTracking(),"disabled"!==n&&this.startTracking(),this.trigger("modechange"))}},cues:{get(){return this.loaded_?r:null},set(){}},activeCues:{get(){if(!this.loaded_)return null;if(0===this.cues.length)return s;const e=this.tech_.currentTime(),t=[];for(let n=0,i=this.cues.length;n<i;n++){const i=this.cues[n];i.startTime<=e&&i.endTime>=e&&t.push(i)}if(o=!1,t.length!==this.activeCues_.length)o=!0;else for(let e=0;e<t.length;e++)-1===this.activeCues_.indexOf(t[e])&&(o=!0);return this.activeCues_=t,s.setCues_(this.activeCues_),s},set(){}}}),t.src?(this.src=t.src,this.preload_||(this.loaded_=!0),(this.preload_||"subtitles"!==t.kind&&"captions"!==t.kind)&&iM(this.src,this)):this.loaded_=!0}startTracking(){this.rvf_=this.tech_.requestVideoFrameCallback(this.timeupdateHandler),this.tech_.on("timeupdate",this.timeupdateHandler)}stopTracking(){this.rvf_&&(this.tech_.cancelVideoFrameCallback(this.rvf_),this.rvf_=void 0),this.tech_.off("timeupdate",this.timeupdateHandler)}addCue(e){let t=e;if(!("getCueAsHTML"in t)){t=new(r()).vttjs.VTTCue(e.startTime,e.endTime,e.text);for(const n in e)n in t||(t[n]=e[n]);t.id=e.id,t.originalCue_=e}const n=this.tech_.textTracks();for(let e=0;e<n.length;e++)n[e]!==this&&n[e].removeCue(t);this.cues_.push(t),this.cues.setCues_(this.cues_)}removeCue(e){let t=this.cues_.length;for(;t--;){const n=this.cues_[t];if(n===e||n.originalCue_&&n.originalCue_===e){this.cues_.splice(t,1),this.cues.setCues_(this.cues_);break}}}}iO.prototype.allowedEvents_={cuechange:"cuechange"};class iP extends ix{constructor(e={}){const t=tw(e,{kind:ij[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"enabled",{get:()=>n,set(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("enabledchange"))}}),t.enabled&&(this.enabled=t.enabled),this.loaded_=!0}}class iN extends ix{constructor(e={}){const t=tw(e,{kind:iT[e.kind]||""});super(t);let n=!1;Object.defineProperty(this,"selected",{get:()=>n,set(e){"boolean"==typeof e&&e!==n&&(n=e,this.trigger("selectedchange"))}}),t.selected&&(this.selected=t.selected)}}class iL extends nH{constructor(e={}){let t;super();const n=new iO(e);this.kind=n.kind,this.src=n.src,this.srclang=n.language,this.label=n.label,this.default=n.default,Object.defineProperties(this,{readyState:{get:()=>t},track:{get:()=>n}}),t=iL.NONE,n.addEventListener("loadeddata",()=>{t=iL.LOADED,this.trigger({type:"load",target:this})})}}iL.prototype.allowedEvents_={load:"load"},iL.NONE=0,iL.LOADING=1,iL.LOADED=2,iL.ERROR=3;
vendor: 5,664 bytes, line 2
2const iR={audio:{ListClass:class extends ig{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].enabled){iv(e,e[t]);break}super(e),this.changing_=!1}addTrack(e){e.enabled&&iv(this,e),super.addTrack(e),e.addEventListener&&(e.enabledChange_=()=>{this.changing_||(this.changing_=!0,iv(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("enabledchange",e.enabledChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.enabledChange_&&(e.removeEventListener("enabledchange",e.enabledChange_),e.enabledChange_=null)}},TrackClass:iP,capitalName:"Audio"},video:{ListClass:class extends ig{constructor(e=[]){for(let t=e.length-1;t>=0;t--)if(e[t].selected){iy(e,e[t]);break}super(e),this.changing_=!1,Object.defineProperty(this,"selectedIndex",{get(){for(let e=0;e<this.length;e++)if(this[e].selected)return e;return-1},set(){}})}addTrack(e){e.selected&&iy(this,e),super.addTrack(e),e.addEventListener&&(e.selectedChange_=()=>{this.changing_||(this.changing_=!0,iy(this,e),this.changing_=!1,this.trigger("change"))},e.addEventListener("selectedchange",e.selectedChange_))}removeTrack(e){super.removeTrack(e),e.removeEventListener&&e.selectedChange_&&(e.removeEventListener("selectedchange",e.selectedChange_),e.selectedChange_=null)}},TrackClass:iN,capitalName:"Video"},text:{ListClass:ib,TrackClass:iO,capitalName:"Text"}};Object.keys(iR).forEach(function(e){iR[e].getterName=`${e}Tracks`,iR[e].privateName=`${e}Tracks_`});const iU={remoteText:{ListClass:ib,TrackClass:iO,capitalName:"RemoteText",getterName:"remoteTextTracks",privateName:"remoteTextTracks_"},remoteTextEl:{ListClass:class{constructor(e=[]){this.trackElements_=[],Object.defineProperty(this,"length",{get(){return this.trackElements_.length}});for(let t=0,n=e.length;t<n;t++)this.addTrackElement_(e[t])}addTrackElement_(e){const t=this.trackElements_.length;""+t in this||Object.defineProperty(this,t,{get(){return this.trackElements_[t]}}),-1===this.trackElements_.indexOf(e)&&this.trackElements_.push(e)}getTrackElementByTrack_(e){let t;for(let n=0,i=this.trackElements_.length;n<i;n++)if(e===this.trackElements_[n].track){t=this.trackElements_[n];break}return t}removeTrackElement_(e){for(let 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}}},TrackClass:iL,capitalName:"RemoteTextTrackEls",getterName:"remoteTextTrackEls",privateName:"remoteTextTrackEls_"}},iB=Object.assign({},iR,iU);iU.names=Object.keys(iU),iR.names=Object.keys(iR),iB.names=[].concat(iU.names).concat(iR.names);class iz extends n6{constructor(e={},t=function(){}){e.reportTouchActivity=!1,super(null,e,t),this.onDurationChange_=e=>this.onDurationChange(e),this.trackProgress_=e=>this.trackProgress(e),this.trackCurrentTime_=e=>this.trackCurrentTime(e),this.stopTrackingCurrentTime_=e=>this.stopTrackingCurrentTime(e),this.disposeSourceHandler_=e=>this.disposeSourceHandler(e),this.queuedHanders_=new Set,this.hasStarted_=!1,this.on("playing",function(){this.hasStarted_=!0}),this.on("loadstart",function(){this.hasStarted_=!1}),iB.names.forEach(t=>{const n=iB[t];e&&e[n.getterName]&&(this[n.privateName]=e[n.getterName])}),this.featuresProgressEvents||this.manualProgressOn(),this.featuresTimeupdateEvents||this.manualTimeUpdatesOn(),["Text","Audio","Video"].forEach(t=>{!1===e[`native${t}Tracks`]&&(this[`featuresNative${t}Tracks`]=!1)}),!1===e.nativeCaptions||!1===e.nativeTextTracks?this.featuresNativeTextTracks=!1:!0!==e.nativeCaptions&&!0!==e.nativeTextTracks||(this.featuresNativeTextTracks=!0),this.featuresNativeTextTracks||this.emulateTextTracks(),this.preloadTextTracks=!1!==e.preloadTextTracks,this.autoRemoteTextTracks_=new iB.text.ListClass,this.initTrackListeners(),e.nativeControlsForTouch||this.emitTapEvents(),this.constructor&&(this.name_=this.constructor.name||"Unknown Tech")}triggerSourceset(e){this.isReady_||this.one("ready",()=>this.setTimeout(()=>this.triggerSourceset(e),1)),this.trigger({src:e,type:"sourceset"})}manualProgressOn(){this.on("durationchange",this.onDurationChange_),this.manualProgress=!0,this.one("ready",this.trackProgress_)}manualProgressOff(){this.manualProgress=!1,this.stopTrackingProgress(),this.off("durationchange",this.onDurationChange_)}trackProgress(e){this.stopTrackingProgress(),this.progressInterval=this.setInterval(nB(this,function(){const e=this.bufferedPercent();this.bufferedPercent_!==e&&this.trigger("progress"),this.bufferedPercent_=e,1===e&&this.stopTrackingProgress()}),500)}onDurationChange(e){this.duration_=this.duration()}buffered(){return ie(0,0)}bufferedPercent(){return il(this.buffered(),this.duration_)}stopTrackingProgress(){this.clearInterval(this.progressInterval)}manualTimeUpdatesOn(){this.manualTimeUpdates=!0,this.on("play",this.trackCurrentTime_),this.on("pause",this.stopTrackingCurrentTime_)}manualTimeUpdatesOff(){this.manualTimeUpdates=!1,this.stopTrackingCurrentTime(),this.off("play",this.trackCurrentTime_),this.off("pause",this.stopTrackingCurrentTime_)}trackCurrentTime(){this.currentTimeInterval&&this.stopTrackingCurrentTime(),this.currentTimeInterval=this.setInterval(function(){this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})},250)}stopTrackingCurrentTime(){this.clearInterval(this.currentTimeInterval),this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}dispose(){this.clearTracks(iR.names),this.manualProgress&&this.manualProgressOff(),this.manualTimeUpdates&&this.manualTimeUpdatesOff(),super.dispose()}
vendor: 9,356 bytes, line 2
2clearTracks(e){(e=[].concat(e)).forEach(e=>{const t=this[`${e}Tracks`]()||[];let n=t.length;for(;n--;){const i=t[n];"text"===e&&this.removeRemoteTextTrack(i),t.removeTrack(i)}})}cleanupAutoTextTracks(){const e=this.autoRemoteTextTracks_||[];let t=e.length;for(;t--;){const n=e[t];this.removeRemoteTextTrack(n)}}reset(){}crossOrigin(){}setCrossOrigin(){}error(e){return void 0!==e&&(this.error_=new iu(e),this.trigger("error")),this.error_}played(){return this.hasStarted_?ie(0,0):ie()}play(){}setScrubbing(e){}scrubbing(){}setCurrentTime(e){this.manualTimeUpdates&&this.trigger({type:"timeupdate",target:this,manuallyTriggered:!0})}initTrackListeners(){iR.names.forEach(e=>{const t=iR[e],n=()=>{this.trigger(`${e}trackchange`)},i=this[t.getterName]();i.addEventListener("removetrack",n),i.addEventListener("addtrack",n),this.on("dispose",()=>{i.removeEventListener("removetrack",n),i.removeEventListener("addtrack",n)})})}addWebVttScript_(){if(!r().WebVTT)if(o().body.contains(this.el())){if(!this.options_["vtt.js"]&&tj(f())&&Object.keys(f()).length>0)return void this.trigger("vttjsloaded");const e=o().createElement("script");e.src=this.options_["vtt.js"]||"https://vjs.zencdn.net/vttjs/0.14.1/vtt.min.js",e.onload=()=>{this.trigger("vttjsloaded")},e.onerror=()=>{this.trigger("vttjserror")},this.on("dispose",()=>{e.onload=null,e.onerror=null}),r().WebVTT=!0,this.el().parentNode.appendChild(e)}else this.ready(this.addWebVttScript_)}emulateTextTracks(){const e=this.textTracks(),t=this.remoteTextTracks(),n=t=>e.addTrack(t.track),i=t=>e.removeTrack(t.track);t.on("addtrack",n),t.on("removetrack",i),this.addWebVttScript_();const r=()=>this.trigger("texttrackchange"),s=()=>{r();for(let t=0;t<e.length;t++){const n=e[t];n.removeEventListener("cuechange",r),"showing"===n.mode&&n.addEventListener("cuechange",r)}};s(),e.addEventListener("change",s),e.addEventListener("addtrack",s),e.addEventListener("removetrack",s),this.on("dispose",function(){t.off("addtrack",n),t.off("removetrack",i),e.removeEventListener("change",s),e.removeEventListener("addtrack",s),e.removeEventListener("removetrack",s);for(let t=0;t<e.length;t++)e[t].removeEventListener("cuechange",r)})}addTextTrack(e,t,n){if(!e)throw new Error("TextTrack kind is required but was not provided");return function(e,t,n,i,r={}){const s=e.textTracks();r.kind=t,n&&(r.label=n),i&&(r.language=i),r.tech=e;const o=new iB.text.TrackClass(r);return s.addTrack(o),o}(this,e,t,n)}createRemoteTextTrack(e){const t=tw(e,{tech:this});return new iU.remoteTextEl.TrackClass(t)}addRemoteTextTrack(e={},t){const n=this.createRemoteTextTrack(e);return"boolean"!=typeof t&&(t=!1),this.remoteTextTrackEls().addTrackElement_(n),this.remoteTextTracks().addTrack(n.track),!1===t&&this.ready(()=>this.autoRemoteTextTracks_.addTrack(n.track)),n}removeRemoteTextTrack(e){const t=this.remoteTextTrackEls().getTrackElementByTrack_(e);this.remoteTextTrackEls().removeTrackElement_(t),this.remoteTextTracks().removeTrack(e),this.autoRemoteTextTracks_.removeTrack(e)}getVideoPlaybackQuality(){return{}}requestPictureInPicture(){return Promise.reject()}disablePictureInPicture(){return!0}setDisablePictureInPicture(){}requestVideoFrameCallback(e){const t=nk();return!this.isReady_||this.paused()?(this.queuedHanders_.add(t),this.one("playing",()=>{this.queuedHanders_.has(t)&&(this.queuedHanders_.delete(t),e())})):this.requestNamedAnimationFrame(t,e),t}cancelVideoFrameCallback(e){this.queuedHanders_.has(e)?this.queuedHanders_.delete(e):this.cancelNamedAnimationFrame(e)}setPoster(){}playsinline(){}setPlaysinline(){}overrideNativeAudioTracks(e){}overrideNativeVideoTracks(e){}canPlayType(e){return""}static canPlayType(e){return""}static canPlaySource(e,t){return iz.canPlayType(e.type)}static isTech(e){return e.prototype instanceof iz||e instanceof iz||e===iz}static registerTech(e,t){if(iz.techs_||(iz.techs_={}),!iz.isTech(t))throw new Error(`Tech ${e} must be a Tech`);if(!iz.canPlayType)throw new Error("Techs must have a static canPlayType method on them");if(!iz.canPlaySource)throw new Error("Techs must have a static canPlaySource method on them");return e=n3(e),iz.techs_[e]=t,iz.techs_[n4(e)]=t,"Tech"!==e&&iz.defaultTechOrder_.push(e),t}static getTech(e){if(e)return iz.techs_&&iz.techs_[e]?iz.techs_[e]:(e=n3(e),r()&&r().videojs&&r().videojs[e]?(tm.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)}}iB.names.forEach(function(e){const t=iB[e];iz.prototype[t.getterName]=function(){return this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName]}}),iz.prototype.featuresVolumeControl=!0,iz.prototype.featuresMuteControl=!0,iz.prototype.featuresFullscreenResize=!1,iz.prototype.featuresPlaybackRate=!1,iz.prototype.featuresProgressEvents=!1,iz.prototype.featuresSourceset=!1,iz.prototype.featuresTimeupdateEvents=!1,iz.prototype.featuresNativeTextTracks=!1,iz.prototype.featuresVideoFrameCallback=!1,iz.withSourceHandlers=function(e){e.registerSourceHandler=function(t,n){let i=e.sourceHandlers;i||(i=e.sourceHandlers=[]),void 0===n&&(n=i.length),i.splice(n,0,t)},e.canPlayType=function(t){const n=e.sourceHandlers||[];let i;for(let e=0;e<n.length;e++)if(i=n[e].canPlayType(t),i)return i;return""},e.selectSourceHandler=function(t,n){const i=e.sourceHandlers||[];let r;for(let e=0;e<i.length;e++)if(r=i[e].canHandleSource(t,n),r)return i[e];return null},e.canPlaySource=function(t,n){const i=e.selectSourceHandler(t,n);return i?i.canHandleSource(t,n):""},["seekable","seeking","duration"].forEach(function(e){const 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){let n=e.selectSourceHandler(t,this.options_);n||(e.nativeSourceHandler?n=e.nativeSourceHandler:tm.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)}},n6.registerComponent("Tech",iz),iz.registerTech("Tech",iz),iz.defaultTechOrder_=[];const iF={},iq={},iV={};function iH(e,t,n){e.setTimeout(()=>iY(t,iF[t.type],n,e),1)}function iW(e,t,n,i=null){const r="call"+n3(n),s=e.reduce(iZ(r),i),o=s===iV,a=o?null:t[n](s);return function(e,t,n,i){for(let r=e.length-1;r>=0;r--){const s=e[r];s[t]&&s[t](i,n)}}(e,n,a,o),a}const iG={buffered:1,currentTime:1,duration:1,muted:1,played:1,paused:1,seekable:1,volume:1,ended:1},i$={setCurrentTime:1,setMuted:1,setVolume:1},iQ={play:1,pause:1};function iZ(e){return(t,n)=>t===iV?iV:n[e]?n[e](t):t}function iY(e={},t=[],n,i,r=[],s=!1){const[o,...a]=t;if("string"==typeof o)iY(e,iF[o],n,i,r,s);else if(o){const t=function(e,t){const n=iq[e.id()];let i=null;if(null==n)return i=t(e),iq[e.id()]=[[t,i]],i;for(let e=0;e<n.length;e++){const[r,s]=n[e];r===t&&(i=s)}return null===i&&(i=t(e),n.push([t,i])),i}(i,o);if(!t.setSource)return r.push(t),iY(e,a,n,i,r,s);t.setSource(Object.assign({},e),function(o,l){if(o)return iY(e,a,n,i,r,s);r.push(t),iY(l,e.type===l.type?a:iF[l.type],n,i,r,s)})}else a.length?iY(e,a,n,i,r,s):s?n(e,r):iY(e,iF["*"],n,i,r,!0)}const iX={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"},iK=function(e=""){const t=iC(e);return iX[t.toLowerCase()]||""},iJ=function(e){if(Array.isArray(e)){let t=[];e.forEach(function(e){e=iJ(e),Array.isArray(e)?t=t.concat(e):tT(e)&&t.push(e)}),e=t}else e="string"==typeof e&&e.trim()?[i0({src:e})]:tT(e)&&"string"==typeof e.src&&e.src&&e.src.trim()?[i0(e)]:[];return e};function i0(e){if(!e.type){const t=iK(e.src);t&&(e.type=t)}return e}n6.registerComponent("MediaLoader",class extends n6{constructor(e,t,n){if(super(e,tw({createEl:!1},t),n),t.playerOptions.sources&&0!==t.playerOptions.sources.length)e.src(t.playerOptions.sources);else for(let n=0,i=t.playerOptions.techOrder;n<i.length;n++){const t=n3(i[n]);let r=iz.getTech(t);if(t||(r=n6.getComponent(t)),r&&r.isSupported()){e.loadTech_(t);break}}}});class i1 extends n6{constructor(e,t){super(e,t),this.options_.controlText&&this.controlText(this.options_.controlText),this.handleMouseOver_=e=>this.handleMouseOver(e),this.handleMouseOut_=e=>this.handleMouseOut(e),this.handleClick_=e=>this.handleClick(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.emitTapEvents(),this.enable()}createEl(e="div",t={},n={}){t=Object.assign({className:this.buildCSSClass(),tabIndex:0},t),"button"===e&&tm.error(`Creating a ClickableComponent with an HTML element of ${e} is not supported; use a Button instead.`),n=Object.assign({role:"button"},n),this.tabIndex_=t.tabIndex;
vendor: 4,166 bytes, line 2
2const i=tK(e,t,n);return this.player_.options_.experimentalSvgIcons||i.appendChild(tK("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}dispose(){this.controlTextEl_=null,super.dispose()}createControlTextEl(e){return this.controlTextEl_=tK("span",{className:"vjs-control-text"},{"aria-live":"polite"}),e&&e.appendChild(this.controlTextEl_),this.controlText(this.controlText_,e),this.controlTextEl_}controlText(e,t=this.el()){if(void 0===e)return this.controlText_||"Need Text";const n=this.localize(e);this.controlText_=e,tJ(this.controlTextEl_,n),this.nonIconControl||this.player_.options_.noUITitleAttributes||t.setAttribute("title",n)}buildCSSClass(){return`vjs-control vjs-button ${super.buildCSSClass()}`}enable(){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_))}disable(){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_)}handleLanguagechange(){this.controlText(this.controlText_)}handleClick(e){this.options_.clickHandler&&this.options_.clickHandler.call(this,arguments)}handleKeyDown(e){l().isEventKey(e,"Space")||l().isEventKey(e,"Enter")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}}n6.registerComponent("ClickableComponent",i1);class i2 extends i1{constructor(e,t){super(e,t),this.update(),this.update_=e=>this.update(e),e.on("posterchange",this.update_)}dispose(){this.player().off("posterchange",this.update_),super.dispose()}createEl(){return tK("div",{className:"vjs-poster"})}crossOrigin(e){if(void 0===e)return this.$("img")?this.$("img").crossOrigin:this.player_.tech_&&this.player_.tech_.isReady_?this.player_.crossOrigin():this.player_.options_.crossOrigin||this.player_.options_.crossorigin||null;null===e||"anonymous"===e||"use-credentials"===e?this.$("img")&&(this.$("img").crossOrigin=e):this.player_.log.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}update(e){const t=this.player().poster();this.setSrc(t),t?this.show():this.hide()}setSrc(e){e?(this.$("img")||this.el_.appendChild(tK("picture",{className:"vjs-poster",tabIndex:-1},{},tK("img",{loading:"lazy",crossOrigin:this.crossOrigin()},{alt:""}))),this.$("img").src=e):this.el_.textContent=""}handleClick(e){this.player_.controls()&&(this.player_.tech(!0)&&this.player_.tech(!0).focus(),this.player_.paused()?id(this.player_.play()):this.player_.pause())}}i2.prototype.crossorigin=i2.prototype.crossOrigin,n6.registerComponent("PosterImage",i2);const i4="#222",i3="#ccc",i5={monospace:"monospace",sansSerif:"sans-serif",serif:"serif",monospaceSansSerif:'"Andale Mono", "Lucida Console", monospace',monospaceSerif:'"Courier New", monospace',proportionalSansSerif:"sans-serif",proportionalSerif:"serif",casual:'"Comic Sans MS", Impact, fantasy',script:'"Monotype Corsiva", cursive',smallcaps:'"Andale Mono", "Lucida Console", monospace, sans-serif'};function i8(e,t){let 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 i6(e,t,n){try{e.style[t]=n}catch(e){return}}function i9(e){return e?`${e}px`:""}n6.registerComponent("TextTrackDisplay",class extends n6{constructor(e,t,n){super(e,t,n);const i=e=>{this.updateDisplayOverlay(),this.updateDisplay(e)};e.on("loadstart",e=>this.toggleDisplay(e)),e.on("texttrackchange",e=>this.updateDisplay(e)),e.on("loadedmetadata",e=>{this.updateDisplayOverlay(),this.preselectTrack(e)}),e.ready(nB(this,function(){if(e.tech_&&e.tech_.featuresNativeTextTracks)return void this.hide();
vendor: 4,102 bytes, line 2
2e.on("fullscreenchange",i),e.on("playerresize",i);const t=r().screen.orientation||r(),n=r().screen.orientation?"change":"orientationchange";t.addEventListener(n,i),e.on("dispose",()=>t.removeEventListener(n,i));const s=this.options_.playerOptions.tracks||[];for(let e=0;e<s.length;e++)this.player_.addRemoteTextTrack(s[e],!0);this.preselectTrack()}))}preselectTrack(){const e={captions:1,subtitles:1},t=this.player_.textTracks(),n=this.player_.cache_.selectedLanguage;let i,r,s;for(let o=0;o<t.length;o++){const a=t[o];n&&n.enabled&&n.language&&n.language===a.language&&a.kind in e?a.kind===n.kind?s=a:s||(s=a):n&&!n.enabled?(s=null,i=null,r=null):a.default&&("descriptions"!==a.kind||i?a.kind in e&&!r&&(r=a):i=a)}s?s.mode="showing":r?r.mode="showing":i&&(i.mode="showing")}toggleDisplay(){this.player_.tech_&&this.player_.tech_.featuresNativeTextTracks?this.hide():this.show()}createEl(){return super.createEl("div",{className:"vjs-text-track-display"},{translate:"yes","aria-live":"off","aria-atomic":"true"})}clearDisplay(){"function"==typeof r().WebVTT&&r().WebVTT.processCues(r(),[],this.el_)}updateDisplay(){const e=this.player_.textTracks(),t=this.options_.allowMultipleShowingTracks;if(this.clearDisplay(),t){const t=[];for(let n=0;n<e.length;++n){const i=e[n];"showing"===i.mode&&t.push(i)}return void this.updateForTrack(t)}let n=null,i=null,r=e.length;for(;r--;){const t=e[r];"showing"===t.mode&&("descriptions"===t.kind?n=t:i=t)}i?("off"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","off"),this.updateForTrack(i)):n&&("assertive"!==this.getAttribute("aria-live")&&this.setAttribute("aria-live","assertive"),this.updateForTrack(n))}updateDisplayOverlay(){if(!this.player_.videoHeight()||!r().CSS.supports("inset-inline: 10px"))return;const e=this.player_.currentWidth(),t=this.player_.currentHeight(),n=e/t,i=this.player_.videoWidth()/this.player_.videoHeight();let s=0,o=0;Math.abs(n-i)>.1&&(n>i?s=Math.round((e-t*i)/2):o=Math.round((t-e/i)/2)),i6(this.el_,"insetInline",i9(s)),i6(this.el_,"insetBlock",i9(o))}updateDisplayState(e){const t=this.player_.textTrackSettings.getValues(),n=e.activeCues;let i=n.length;for(;i--;){const e=n[i];if(!e)continue;const s=e.displayState;if(t.color&&(s.firstChild.style.color=t.color),t.textOpacity&&i6(s.firstChild,"color",i8(t.color||"#fff",t.textOpacity)),t.backgroundColor&&(s.firstChild.style.backgroundColor=t.backgroundColor),t.backgroundOpacity&&i6(s.firstChild,"backgroundColor",i8(t.backgroundColor||"#000",t.backgroundOpacity)),t.windowColor&&(t.windowOpacity?i6(s,"backgroundColor",i8(t.windowColor,t.windowOpacity)):s.style.backgroundColor=t.windowColor),t.edgeStyle&&("dropshadow"===t.edgeStyle?s.firstChild.style.textShadow=`2px 2px 3px ${i4}, 2px 2px 4px ${i4}, 2px 2px 5px ${i4}`:"raised"===t.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${i4}, 2px 2px ${i4}, 3px 3px ${i4}`:"depressed"===t.edgeStyle?s.firstChild.style.textShadow=`1px 1px ${i3}, 0 1px ${i3}, -1px -1px ${i4}, 0 -1px ${i4}`:"uniform"===t.edgeStyle&&(s.firstChild.style.textShadow=`0 0 4px ${i4}, 0 0 4px ${i4}, 0 0 4px ${i4}, 0 0 4px ${i4}`)),t.fontPercent&&1!==t.fontPercent){const e=r().parseFloat(s.style.fontSize);s.style.fontSize=e*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=i5[t.fontFamily])}}updateForTrack(e){if(Array.isArray(e)||(e=[e]),"function"!=typeof r().WebVTT||e.every(e=>!e.activeCues))return;const t=[];for(let n=0;n<e.length;++n){const i=e[n];for(let e=0;e<i.activeCues.length;++e)t.push(i.activeCues[e])}r().WebVTT.processCues(r(),t,this.el_);for(let t=0;t<e.length;++t){const n=e[t];for(let e=0;e<n.activeCues.length;++e){const i=n.activeCues[e].displayState;t2(i,"vjs-text-track-cue","vjs-text-track-cue-"+(n.language?n.language:t)),n.language&&t9(i,"lang",n.language)}this.player_.textTrackSettings&&this.updateDisplayState(n)}}}),n6.registerComponent("LoadingSpinner",class extends n6{createEl(){const e=this.player_.isAudio(),t=this.localize(e?"Audio Player":"
2Video Player"),n=tK("span",{className:"vjs-control-text",textContent:this.localize("{1} is loading.",[t])}),i=super.createEl("div",{className:"vjs-loading-spinner",dir:"ltr"});return i.appendChild(n),i}handleLanguagechange(){this.$(".vjs-control-text").textContent=this.localize("{1} is loading.",[this.player_.isAudio()?"Audio Player":"Video Player"])}});class i7 extends i1{createEl(e,t={},n={}){const i=tK("button",t=Object.assign({className:this.buildCSSClass()},t),n=Object.assign({type:"button"},n));return this.player_.options_.experimentalSvgIcons||i.appendChild(tK("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),this.createControlTextEl(i),i}addChild(e,t={}){const n=this.constructor.name;return tm.warn(`Adding an actionable (user controllable) child to a Button (${n}) is not supported; use a ClickableComponent instead.`),n6.prototype.addChild.call(this,e,t)}enable(){super.enable(),this.el_.removeAttribute("disabled")}disable(){super.disable(),this.el_.setAttribute("disabled","disabled")}handleKeyDown(e){l().isEventKey(e,"Space")||l().isEventKey(e,"Enter")?e.stopPropagation():super.handleKeyDown(e)}}n6.registerComponent("Button",i7);class re extends i7{constructor(e,t){super(e,t),this.mouseused_=!1,this.setIcon("play"),this.on("mousedown",e=>this.handleMouseDown(e))}buildCSSClass(){return"vjs-big-play-button"}handleClick(e){const t=this.player_.play();if(this.mouseused_&&"clientX"in e&&"clientY"in e)return id(t),void(this.player_.tech(!0)&&this.player_.tech(!0).focus());const n=this.player_.getChild("controlBar"),i=n&&n.getChild("playToggle");if(!i)return void this.player_.tech(!0).focus();const r=()=>i.focus();ic(t)?t.then(r,()=>{}):this.setTimeout(r,1)}handleKeyDown(e){this.mouseused_=!1,super.handleKeyDown(e)}handleMouseDown(e){this.mouseused_=!0}}re.prototype.controlText_="Play Video",n6.registerComponent("BigPlayButton",re),n6.registerComponent("CloseButton",class extends i7{constructor(e,t){super(e,t),this.setIcon("cancel"),this.controlText(t&&t.controlText||this.localize("Close"))}buildCSSClass(){return`vjs-close-button ${super.buildCSSClass()}`}handleClick(e){this.trigger({type:"close",bubbles:!1})}handleKeyDown(e){l().isEventKey(e,"Esc")?(e.preventDefault(),e.stopPropagation(),this.trigger("click")):super.handleKeyDown(e)}});class rt extends i7{constructor(e,t={}){super(e,t),t.replay=void 0===t.replay||t.replay,this.setIcon("play"),this.on(e,"play",e=>this.handlePlay(e)),this.on(e,"pause",e=>this.handlePause(e)),t.replay&&this.on(e,"ended",e=>this.handleEnded(e))}buildCSSClass(){return`vjs-play-control ${super.buildCSSClass()}`}handleClick(e){this.player_.paused()?id(this.player_.play()):this.player_.pause()}handleSeeked(e){this.removeClass("vjs-ended"),this.player_.paused()?this.handlePause(e):this.handlePlay(e)}handlePlay(e){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.setIcon("pause"),this.controlText("Pause")}handlePause(e){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.setIcon("play"),this.controlText("Play")}handleEnded(e){this.removeClass("vjs-playing"),this.addClass("vjs-ended"),this.setIcon("replay"),this.controlText("Replay"),this.one(this.player_,"seeked",e=>this.handleSeeked(e))}}rt.prototype.controlText_="Play",n6.registerComponent("PlayToggle",rt);class rn extends n6{constructor(e,t){super(e,t),this.on(e,["timeupdate","ended"],e=>this.updateContent(e)),this.updateTextNode_()}createEl(){const e=this.buildCSSClass(),t=super.createEl("div",{className:`${e} vjs-time-control vjs-control`}),n=tK("span",{className:"vjs-control-text",textContent:`${this.localize(this.labelText_)}\xa0`},{role:"presentation"});return t.appendChild(n),this.contentEl_=tK("span",{className:`${e}-display`},{role:"presentation"}),t.appendChild(this.contentEl_),t}dispose(){this.contentEl_=null,this.textNode_=null,super.dispose()}updateTextNode_(e=0){e=io(e),this.formattedTime_!==e&&(this.formattedTime_=e,this.requestNamedAnimationFrame("TimeDisplay#updateTextNode_",()=>{if(!this.contentEl_)return;let e=this.textNode_;e&&this.contentEl_.firstChild!==e&&(e=null,tm.warn("TimeDisplay#updateTextnode_: Prevented replacement of text node element since it was no longer a child of this node. Appending a new node instead.")),this.textNode_=o().createTextNode(this.formattedTime_),this.textNode_&&(e?this.contentEl_.replaceChild(this.textNode_,e):this.contentEl_.appendChild(this.textNode_))}))}updateContent(e){}}rn.prototype.labelText_="Time",rn.prototype.controlText_="Time",n6.registerComponent("TimeDisplay",rn);class ri extends rn{buildCSSClass(){return"vjs-current-time"}updateContent(e){let t;t=this.player_.ended()?this.player_.duration():this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime(),this.updateTextNode_(t)}}ri.prototype.labelText_="Current Time",ri.prototype.controlText_="Current Time",n6.registerComponent("CurrentTimeDisplay",ri);class rr extends rn{constructor(e,t){super(e,t);const n=e=>this.updateContent(e);this.on(e,"durationchange",n),this.on(e,"loadstart",n),this.on(e,"loadedmetadata",n)}buildCSSClass(){return"vjs-duration"}updateContent(e){const t=this.player_.duration();this.updateTextNode_(t)}}rr.prototype.labelText_="Duration",rr.prototype.controlText_="Duration",n6.registerComponent("DurationDisplay",rr),n6.registerComponent("TimeDivider",class extends n6{createEl(){const e=super.createEl("div",{className:"vjs-time-control vjs-time-divider"},{"aria-hidden":!0}),t=super.createEl("div"),n=super.createEl("span",{textContent:"/"});return t.appendChild(n),e.appendChild(t),e}});class rs extends rn{constructor(e,t){super(e,t),this.on(e,"durationchange",e=>this.updateContent(e))}buildCSSClass(){return"vjs-remaining-time"}createEl(){const e=super.createEl();return!1!==this.options_.displayNegative&&e.insertBefore(tK("span",{},{"aria-hidden":!0},"-"),this.contentEl_),e}updateContent(e){if("number"!=typeof this.player_.duration())return;let t;t=this.player_.ended()?0:this.player_.remainingTimeDisplay?this.player_.remainingTimeDisplay():this.player_.remainingTime(),this.updateTextNode_(t)}}rs.prototype.labelText_="Remaining Time",rs.prototype.controlText_="Remaining Time",n6.registerComponent("RemainingTimeDisplay",rs),n6.registerComponent("LiveDisplay",class extends n6{constructor(e,t){super(e,t),this.updateShowing(),this.on(this.player(),"durationchange",e=>this.updateShowing(e))}createEl(){const e=super.createEl("div",{className:"vjs-live-control vjs-control"});return this.contentEl_=tK("div",{className:"vjs-live-display"},{"aria-live":"off"}),this.contentEl_.appendChild(tK("span",{className:"vjs-control-text",textContent:`${this.localize("Stream Type")}\xa0`})),this.contentEl_.appendChild(o().createTextNode(this.localize("LIVE"))),e.appendChild(this.contentEl_),e}dispose(){this.contentEl_=null,super.dispose()}updateShowing(e){this.player().duration()===1/0?this.show():this.hide()}});class ro extends i7{constructor(e,t){super(e,t),this.updateLiveEdgeStatus(),this.player_.liveTracker&&(this.updateLiveEdgeStatusHandler_=e=>this.updateLiveEdgeStatus(e),this.on(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_))}createEl(){const e=super.createEl("button",{className:"vjs-seek-to-live-control vjs-control"});return this.setIcon("circle",e),this.textEl_=tK("span",{className:"vjs-seek-to-live-text",textContent:this.localize("LIVE")},{"aria-hidden":"true"}),e.appendChild(this.textEl_),e}updateLiveEdgeStatus(){!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"))}handleClick(){this.player_.liveTracker.seekToLiveEdge()}dispose(){this.player_.liveTracker&&this.off(this.player_.liveTracker,"liveedgechange",this.updateLiveEdgeStatusHandler_),this.textEl_=null,super.dispose()}}function ra(e,t,n){return e=Number(e),Math.min(n,Math.max(t,isNaN(e)?t:e))}ro.prototype.controlText_="Seek to live, currently playing live",n6.registerComponent("SeekToLive",ro);var rl=Object.freeze({__proto__:null,clamp:ra});class ru extends n6{constructor(e,t){super(e,t),this.handleMouseDown_=e=>this.handleMouseDown(e),this.handleMouseUp_=e=>this.handleMouseUp(e),this.handleKeyDown_=e=>this.handleKeyDown(e),this.handleClick_=e=>this.handleClick(e),this.handleMouseMove_=e=>this.handleMouseMove(e),this.update_=e=>this.update(e),this.bar=this.getChild(this.options_.barName),this.vertical(!!this.options_.vertical),this.enable()}enabled(){return this.enabled_}enable(){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)}disable(){if(!this.enabled())return;const 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}createEl(e,t={},n={}){return t.className=t.className+" vjs-slider",t=Object.assign({tabIndex:0},t),n=Object.assign({role:"slider","aria-valuenow":0,"aria-valuemin":0,"aria-valuemax":100},n),super.createEl(e,t,n)}handleMouseDown(e){const t=this.bar.el_.ownerDocument;"mousedown"===e.type&&e.preventDefault(),"touchstart"!==e.type||tP||e.preventDefault(),ne(),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)}handleMouseMove(e){}handleMouseUp(e){const t=this.bar.el_.ownerDocument;nt(),this.removeClass("vjs-sliding"),this.trigger("sliderinactive"),this.off(t,"mousemove",this.handleMouseMove_),this.off(t,"mouseup",this.handleMouseUp_),this.off(t,"touchmove",this.handleMouseMove_),this.off(t,"touchend",this.handleMouseUp_),this.update()}update(){if(!this.el_||!this.bar)return;const e=this.getProgress();return e===this.progress_||(this.progress_=e,this.requestNamedAnimationFrame("Slider#update",()=>{const t=this.vertical()?"height":"width";this.bar.el().style[t]=(100*e).toFixed(2)+"%"})),e}getProgress(){return Number(ra(this.getPercent(),0,1).toFixed(4))}calculateDistance(e){const t=nr(this.el_,e);return this.vertical()?t.y:t.x}handleKeyDown(e){l().isEventKey(e,"Left")||l().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepBack()):l().isEventKey(e,"Right")||l().isEventKey(e,"Up")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):super.handleKeyDown(e)}handleClick(e){e.stopPropagation(),e.preventDefault()}vertical(e){if(void 0===e)return this.vertical_||!1;this.vertical_=!!e,this.vertical_?this.addClass("vjs-slider-vertical"):this.addClass("vjs-slider-horizontal")}}n6.registerComponent("Slider",ru);const rc=(e,t)=>
vendor: 4,425 bytes, line 2
2ra(e/t*100,0,100).toFixed(2)+"%";n6.registerComponent("LoadProgressBar",class extends n6{constructor(e,t){super(e,t),this.partEls_=[],this.on(e,"progress",e=>this.update(e))}createEl(){const e=super.createEl("div",{className:"vjs-load-progress"}),t=tK("span",{className:"vjs-control-text"}),n=tK("span",{textContent:this.localize("Loaded")}),i=o().createTextNode(": ");return this.percentageEl_=tK("span",{className:"vjs-control-text-loaded-percentage",textContent:"0%"}),e.appendChild(t),t.appendChild(n),t.appendChild(i),t.appendChild(this.percentageEl_),e}dispose(){this.partEls_=null,this.percentageEl_=null,super.dispose()}update(e){this.requestNamedAnimationFrame("LoadProgressBar#update",()=>{const e=this.player_.liveTracker,t=this.player_.buffered(),n=e&&e.isLive()?e.seekableEnd():this.player_.duration(),i=this.player_.bufferedEnd(),r=this.partEls_,s=rc(i,n);this.percent_!==s&&(this.el_.style.width=s,tJ(this.percentageEl_,s),this.percent_=s);for(let e=0;e<t.length;e++){const n=t.start(e),s=t.end(e);let o=r[e];o||(o=this.el_.appendChild(tK()),r[e]=o),o.dataset.start===n&&o.dataset.end===s||(o.dataset.start=n,o.dataset.end=s,o.style.left=rc(n,i),o.style.width=rc(s-n,i))}for(let e=r.length;e>t.length;e--)this.el_.removeChild(r[e-1]);r.length=t.length})}}),n6.registerComponent("TimeTooltip",class extends n6{constructor(e,t){super(e,t),this.update=nz(nB(this,this.update),nU)}createEl(){return super.createEl("div",{className:"vjs-time-tooltip"},{"aria-hidden":"true"})}update(e,t,n){const i=ni(this.el_),r=nn(this.player_.el()),s=e.width*t;if(!r||!i)return;const o=e.left-r.left+s,a=e.width-s+(r.right-e.right);let l=i.width/2;o<l?l+=l-o:a<l&&(l=a),l<0?l=0:l>i.width&&(l=i.width),l=Math.round(l),this.el_.style.right=`-${l}px`,this.write(n)}write(e){tJ(this.el_,e)}updateTime(e,t,n,i){this.requestNamedAnimationFrame("TimeTooltip#updateTime",()=>{let r;const s=this.player_.duration();if(this.player_.liveTracker&&this.player_.liveTracker.isLive()){const e=this.player_.liveTracker.liveWindow(),n=e-t*e;r=(n<1?"":"-")+io(n,e)}else r=io(n,s);this.update(e,t,r),i&&i()})}});class rd extends n6{constructor(e,t){super(e,t),this.setIcon("circle"),this.update=nz(nB(this,this.update),nU)}createEl(){return super.createEl("div",{className:"vjs-play-progress vjs-slider-bar"},{"aria-hidden":"true"})}update(e,t){const n=this.getChild("timeTooltip");if(!n)return;const i=this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime();n.updateTime(e,t,i)}}rd.prototype.options_={children:[]},tH||tD||rd.prototype.options_.children.push("timeTooltip"),n6.registerComponent("PlayProgressBar",rd);class rh extends n6{constructor(e,t){super(e,t),this.update=nz(nB(this,this.update),nU)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t){const n=t*this.player_.duration();this.getChild("timeTooltip").updateTime(e,t,n,()=>{this.el_.style.left=e.width*t+"px"})}}rh.prototype.options_={children:["timeTooltip"]},n6.registerComponent("MouseTimeDisplay",rh);class rp extends ru{constructor(e,t){super(e,t),this.setEventHandlers_()}setEventHandlers_(){this.update_=nB(this,this.update),this.update=nz(this.update_,nU),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_=e=>this.enableInterval_(e),this.disableIntervalHandler_=e=>this.disableInterval_(e),this.on(this.player_,["playing"],this.enableIntervalHandler_),this.on(this.player_,["ended","pause","waiting"],this.disableIntervalHandler_),"hidden"in o()&&"visibilityState"in o()&&this.on(o(),"visibilitychange",this.toggleVisibility_)}toggleVisibility_(e){"hidden"===o().visibilityState?(this.cancelNamedAnimationFrame("SeekBar#update"),this.cancelNamedAnimationFrame("Slider#update"),this.disableInterval_(e)):(this.player_.ended()||this.player_.paused()||this.enableInterval_(),this.update())}enableInterval_(){this.updateInterval||(this.updateInterval=this.setInterval(this.update,nU))}disableInterval_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&e&&"ended"!==e.type||this.updateInterval&&(this.clearInterval(this.updateInterval),this.updateInterval=null)}createEl(){return super.createEl("div",{className:"vjs-progress-holder"},{"aria-label":this.localize("Progress Bar")})}update(e){if("hidden"===o().visibilityState)return;
vendor: 4,582 bytes, line 2
2const t=super.update();return this.requestNamedAnimationFrame("SeekBar#update",()=>{const e=this.player_.ended()?this.player_.duration():this.getCurrentTime_(),n=this.player_.liveTracker;let i=this.player_.duration();n&&n.isLive()&&(i=this.player_.liveTracker.liveCurrentTime()),this.percent_!==t&&(this.el_.setAttribute("aria-valuenow",(100*t).toFixed(2)),this.percent_=t),this.currentTime_===e&&this.duration_===i||(this.el_.setAttribute("aria-valuetext",this.localize("progress bar timing: currentTime={1} duration={2}",[io(e,i),io(i,i)],"{1} of {2}")),this.currentTime_=e,this.duration_=i),this.bar&&this.bar.update(nn(this.el()),this.getProgress())}),t}userSeek_(e){this.player_.liveTracker&&this.player_.liveTracker.isLive()&&this.player_.liveTracker.nextSeekedFromUser(),this.player_.currentTime(e)}getCurrentTime_(){return this.player_.scrubbing()?this.player_.getCache().currentTime:this.player_.currentTime()}getPercent(){const e=this.getCurrentTime_();let t;const n=this.player_.liveTracker;return n&&n.isLive()?(t=(e-n.seekableStart())/n.liveWindow(),n.atLiveEdge()&&(t=1)):t=e/this.player_.duration(),t}handleMouseDown(e){nc(e)&&(e.stopPropagation(),this.videoWasPlaying=!this.player_.paused(),this.player_.pause(),super.handleMouseDown(e))}handleMouseMove(e,t=!1){if(!nc(e)||isNaN(this.player_.duration()))return;let n;t||this.player_.scrubbing()||this.player_.scrubbing(!0);const i=this.calculateDistance(e),r=this.player_.liveTracker;if(r&&r.isLive()){if(i>=.99)return void r.seekToLiveEdge();const e=r.seekableStart(),t=r.liveCurrentTime();if(n=e+i*r.liveWindow(),n>=t&&(n=t),n<=e&&(n=e+.1),n===1/0)return}else n=i*this.player_.duration(),n===this.player_.duration()&&(n-=.1);this.userSeek_(n)}enable(){super.enable();const e=this.getChild("mouseTimeDisplay");e&&e.show()}disable(){super.disable();const e=this.getChild("mouseTimeDisplay");e&&e.hide()}handleMouseUp(e){super.handleMouseUp(e),e&&e.stopPropagation(),this.player_.scrubbing(!1),this.player_.trigger({type:"timeupdate",target:this,manuallyTriggered:!0}),this.videoWasPlaying?id(this.player_.play()):this.update_()}stepForward(){this.userSeek_(this.player_.currentTime()+5)}stepBack(){this.userSeek_(this.player_.currentTime()-5)}handleAction(e){this.player_.paused()?this.player_.play():this.player_.pause()}handleKeyDown(e){const t=this.player_.liveTracker;if(l().isEventKey(e,"Space")||l().isEventKey(e,"Enter"))e.preventDefault(),e.stopPropagation(),this.handleAction(e);else if(l().isEventKey(e,"Home"))e.preventDefault(),e.stopPropagation(),this.userSeek_(0);else if(l().isEventKey(e,"End"))e.preventDefault(),e.stopPropagation(),t&&t.isLive()?this.userSeek_(t.liveCurrentTime()):this.userSeek_(this.player_.duration());else if(/^[0-9]$/.test(l()(e))){e.preventDefault(),e.stopPropagation();const n=10*(l().codes[l()(e)]-l().codes[0])/100;t&&t.isLive()?this.userSeek_(t.seekableStart()+t.liveWindow()*n):this.userSeek_(this.player_.duration()*n)}else l().isEventKey(e,"PgDn")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()-60)):l().isEventKey(e,"PgUp")?(e.preventDefault(),e.stopPropagation(),this.userSeek_(this.player_.currentTime()+60)):super.handleKeyDown(e)}dispose(){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 o()&&"visibilityState"in o()&&this.off(o(),"visibilitychange",this.toggleVisibility_),super.dispose()}}rp.prototype.options_={children:["loadProgressBar","playProgressBar"],barName:"playProgressBar"},tH||tD||rp.prototype.options_.children.splice(1,0,"mouseTimeDisplay"),n6.registerComponent("SeekBar",rp);class rf extends n6{constructor(e,t){super(e,t),this.handleMouseMove=nz(nB(this,this.handleMouseMove),nU),this.throttledHandleMouseSeek=nz(nB(this,this.handleMouseSeek),nU),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.handleMouseDownHandler_=e=>this.handleMouseDown(e),this.enable()}createEl(){return super.createEl("div",{className:"vjs-progress-control vjs-control"})}handleMouseMove(e){const t=this.getChild("seekBar");if(!t)return;const n=t.getChild("playProgressBar"),i=t.getChild("mouseTimeDisplay");if(!n&&!i)return;const r=t.el(),s=ni(r);let o=nr(r,e).x;o=ra(o,0,1),i&&i.update(s,o),n&&n.update(s,t.getProgress())}handleMouseSeek(e){const t=this.getChild("seekBar");t&&t.handleMouseMove(e)}enabled(){return this.enabled_}
vendor: 6,525 bytes, line 2
2disable(){if(this.children().forEach(e=>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())){const e=this.getChild("seekBar");this.player_.scrubbing(!1),e.videoWasPlaying&&id(this.player_.play())}}enable(){this.children().forEach(e=>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)}removeListenersAddedOnMousedownAndTouchstart(){const 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_)}handleMouseDown(e){const 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_)}handleMouseUp(e){const t=this.getChild("seekBar");t&&t.handleMouseUp(e),this.removeListenersAddedOnMousedownAndTouchstart()}}rf.prototype.options_={children:["seekBar"]},n6.registerComponent("ProgressControl",rf);class rm extends i7{constructor(e,t){super(e,t),this.setIcon("picture-in-picture-enter"),this.on(e,["enterpictureinpicture","leavepictureinpicture"],e=>this.handlePictureInPictureChange(e)),this.on(e,["disablepictureinpicturechanged","loadedmetadata"],e=>this.handlePictureInPictureEnabledChange(e)),this.on(e,["loadedmetadata","audioonlymodechange","audiopostermodechange"],()=>this.handlePictureInPictureAudioModeChange()),this.disable()}buildCSSClass(){return`vjs-picture-in-picture-control vjs-hidden ${super.buildCSSClass()}`}handlePictureInPictureAudioModeChange(){"audio"===this.player_.currentType().substring(0,5)||this.player_.audioPosterMode()||this.player_.audioOnlyMode()?(this.player_.isInPictureInPicture()&&this.player_.exitPictureInPicture(),this.hide()):this.show()}handlePictureInPictureEnabledChange(){o().pictureInPictureEnabled&&!1===this.player_.disablePictureInPicture()||this.player_.options_.enableDocumentPictureInPicture&&"documentPictureInPicture"in r()?this.enable():this.disable()}handlePictureInPictureChange(e){this.player_.isInPictureInPicture()?(this.setIcon("picture-in-picture-exit"),this.controlText("Exit Picture-in-Picture")):(this.setIcon("picture-in-picture-enter"),this.controlText("Picture-in-Picture")),this.handlePictureInPictureEnabledChange()}handleClick(e){this.player_.isInPictureInPicture()?this.player_.exitPictureInPicture():this.player_.requestPictureInPicture()}show(){"function"==typeof o().exitPictureInPicture&&super.show()}}rm.prototype.controlText_="Picture-in-Picture",n6.registerComponent("PictureInPictureToggle",rm);class rg extends i7{constructor(e,t){super(e,t),this.setIcon("fullscreen-enter"),this.on(e,"fullscreenchange",e=>this.handleFullscreenChange(e)),!1===o()[e.fsApi_.fullscreenEnabled]&&this.disable()}buildCSSClass(){return`vjs-fullscreen-control ${super.buildCSSClass()}`}handleFullscreenChange(e){this.player_.isFullscreen()?(this.controlText("Exit Fullscreen"),this.setIcon("fullscreen-exit")):(this.controlText("Fullscreen"),this.setIcon("fullscreen-enter"))}handleClick(e){this.player_.isFullscreen()?this.player_.exitFullscreen():this.player_.requestFullscreen()}}rg.prototype.controlText_="Fullscreen",n6.registerComponent("FullscreenToggle",rg),n6.registerComponent("VolumeLevel",class extends n6{createEl(){const e=super.createEl("div",{className:"vjs-volume-level"});return this.setIcon("circle",e),e.appendChild(super.createEl("span",{className:"vjs-control-text"})),e}}),n6.registerComponent("VolumeLevelTooltip",class extends n6{constructor(e,t){super(e,t),this.update=nz(nB(this,this.update),nU)}createEl(){return super.createEl("div",{className:"vjs-volume-tooltip"},{"aria-hidden":"true"})}update(e,t,n,i){if(!n){const n=nn(this.el_),i=nn(this.player_.el()),r=e.width*t;if(!i||!n)return;const s=e.left-i.left+r,o=e.width-r+(i.right-e.right);let a=n.width/2;s<a?a+=a-s:o<a&&(a=o),a<0?a=0:a>n.width&&(a=n.width),this.el_.style.right=`-${a}px`}this.write(`${i}%`)}write(e){tJ(this.el_,e)}updateVolume(e,t,n,i,r){this.requestNamedAnimationFrame("VolumeLevelTooltip#updateVolume",()=>{this.update(e,t,n,i.toFixed(0)),r&&r()})}});class rv extends n6{constructor(e,t){super(e,t),this.update=nz(nB(this,this.update),nU)}createEl(){return super.createEl("div",{className:"vjs-mouse-display"})}update(e,t,n){const i=100*t;this.getChild("volumeLevelTooltip").updateVolume(e,t,n,i,()=>{n?this.el_.style.bottom=e.height*t+"px":this.el_.style.left=e.width*t+"px"})}}rv.prototype.options_={children:["volumeLevelTooltip"]},n6.registerComponent("MouseVolumeLevelDisplay",rv);class ry extends ru{constructor(e,t){super(e,t),this.on("slideractive",e=>this.updateLastVolume_(e)),this.on(e,"volumechange",e=>this.updateARIAAttributes(e)),e.ready(()=>this.updateARIAAttributes())}createEl(){return super.createEl("div",{className:"vjs-volume-bar vjs-slider-bar"},{"aria-label":this.localize("Volume Level"),"aria-live":"polite"})}handleMouseDown(e){nc(e)&&super.handleMouseDown(e)}handleMouseMove(e){const t=this.getChild("mouseVolumeLevelDisplay");if(t){const n=this.el(),i=nn(n),r=this.vertical();let s=nr(n,e);s=r?s.y:s.x,s=ra(s,0,1),t.update(i,s,r)}nc(e)&&(this.checkMuted(),this.player_.volume(this.calculateDistance(e)))}checkMuted(){this.player_.muted()&&this.player_.muted(!1)}getPercent(){return this.player_.muted()?0:this.player_.volume()}stepForward(){this.checkMuted(),this.player_.volume(this.player_.volume()+.1)}stepBack(){this.checkMuted(),this.player_.volume(this.player_.volume()-.1)}updateARIAAttributes(e){const t=this.player_.muted()?0:this.volumeAsPercentage_();this.el_.setAttribute("aria-valuenow",t),this.el_.setAttribute("aria-valuetext",t+"%")}volumeAsPercentage_(){return Math.round(100*this.player_.volume())}updateLastVolume_(){const e=this.player_.volume();this.one("sliderinactive",()=>{0===this.player_.volume()&&this.player_.lastVolume_(e)})}}ry.prototype.options_={children:["volumeLevel"],barName:"volumeLevel"},tH||tD||ry.prototype.options_.children.splice(0,0,"mouseVolumeLevelDisplay"),ry.prototype.playerEvent="volumechange",n6.registerComponent("
vendor: 4,553 bytes, line 2
2VolumeBar",ry);class rb extends n6{constructor(e,t={}){t.vertical=t.vertical||!1,(void 0===t.volumeBar||tj(t.volumeBar))&&(t.volumeBar=t.volumeBar||{},t.volumeBar.vertical=t.vertical),super(e,t),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")})}(this,e),this.throttledHandleMouseMove=nz(nB(this,this.handleMouseMove),nU),this.handleMouseUpHandler_=e=>this.handleMouseUp(e),this.on("mousedown",e=>this.handleMouseDown(e)),this.on("touchstart",e=>this.handleMouseDown(e)),this.on("mousemove",e=>this.handleMouseMove(e)),this.on(this.volumeBar,["focus","slideractive"],()=>{this.volumeBar.addClass("vjs-slider-active"),this.addClass("vjs-slider-active"),this.trigger("slideractive")}),this.on(this.volumeBar,["blur","sliderinactive"],()=>{this.volumeBar.removeClass("vjs-slider-active"),this.removeClass("vjs-slider-active"),this.trigger("sliderinactive")})}createEl(){let e="vjs-volume-horizontal";return this.options_.vertical&&(e="vjs-volume-vertical"),super.createEl("div",{className:`vjs-volume-control vjs-control ${e}`})}handleMouseDown(e){const 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_)}handleMouseUp(e){const 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_)}handleMouseMove(e){this.volumeBar.handleMouseMove(e)}}rb.prototype.options_={children:["volumeBar"]},n6.registerComponent("VolumeControl",rb);class r_ extends i7{constructor(e,t){super(e,t),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")})}(this,e),this.on(e,["loadstart","volumechange"],e=>this.update(e))}buildCSSClass(){return`vjs-mute-control ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.volume(),n=this.player_.lastVolume_();if(0===t){const e=n<.1?.1:n;this.player_.volume(e),this.player_.muted(!1)}else this.player_.muted(!this.player_.muted())}update(e){this.updateIcon_(),this.updateControlText_()}updateIcon_(){const e=this.player_.volume();let t=3;this.setIcon("volume-high"),tH&&this.player_.tech_&&this.player_.tech_.el_&&this.player_.muted(this.player_.tech_.el_.muted),0===e||this.player_.muted()?(this.setIcon("volume-mute"),t=0):e<.33?(this.setIcon("volume-low"),t=1):e<.67&&(this.setIcon("volume-medium"),t=2),t4(this.el_,[0,1,2,3].reduce((e,t)=>e+`${t?" ":""}vjs-vol-${t}`,"")),t2(this.el_,`vjs-vol-${t}`)}updateControlText_(){const e=this.player_.muted()||0===this.player_.volume()?"Unmute":"Mute";this.controlText()!==e&&this.controlText(e)}}r_.prototype.controlText_="Mute",n6.registerComponent("MuteToggle",r_);class rT extends n6{constructor(e,t={}){void 0!==t.inline?t.inline=t.inline:t.inline=!0,(void 0===t.volumeControl||tj(t.volumeControl))&&(t.volumeControl=t.volumeControl||{},t.volumeControl.vertical=!t.inline),super(e,t),this.handleKeyPressHandler_=e=>this.handleKeyPress(e),this.on(e,["loadstart"],e=>this.volumePanelState_(e)),this.on(this.muteToggle,"keyup",e=>this.handleKeyPress(e)),this.on(this.volumeControl,"keyup",e=>this.handleVolumeControlKeyUp(e)),this.on("keydown",e=>this.handleKeyPress(e)),this.on("mouseover",e=>this.handleMouseOver(e)),this.on("mouseout",e=>this.handleMouseOut(e)),this.on(this.volumeControl,["slideractive"],this.sliderActive_),this.on(this.volumeControl,["sliderinactive"],this.sliderInactive_)}sliderActive_(){this.addClass("vjs-slider-active")}sliderInactive_(){this.removeClass("vjs-slider-active")}volumePanelState_(){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")}createEl(){let e="vjs-volume-panel-horizontal";return this.options_.inline||(e="vjs-volume-panel-vertical"),super.createEl("div",{className:`vjs-volume-panel vjs-control ${e}`})}dispose(){this.handleMouseOut(),super.dispose()}handleVolumeControlKeyUp(e){l().isEventKey(e,"Esc")&&this.muteToggle.focus()}handleMouseOver(e){this.addClass("vjs-hover"),nM(o(),"keyup",this.handleKeyPressHandler_)}
vendor: 9,527 bytes, line 2
2handleMouseOut(e){this.removeClass("vjs-hover"),nO(o(),"keyup",this.handleKeyPressHandler_)}handleKeyPress(e){l().isEventKey(e,"Esc")&&this.handleMouseOut()}}rT.prototype.options_={children:["muteToggle","volumeControl"]},n6.registerComponent("VolumePanel",rT),n6.registerComponent("SkipForward",class extends i7{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipForwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`forward-${this.skipTime}`),this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipForwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.forward}buildCSSClass(){return`vjs-skip-forward-${this.getSkipForwardTime()} ${super.buildCSSClass()}`}handleClick(e){if(isNaN(this.player_.duration()))return;const t=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()?n.seekableEnd():this.player_.duration();let r;r=t+this.skipTime<=i?t+this.skipTime:i,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip forward {1} seconds",[this.skipTime]))}});class rj extends i7{constructor(e,t){super(e,t),this.validOptions=[5,10,30],this.skipTime=this.getSkipBackwardTime(),this.skipTime&&this.validOptions.includes(this.skipTime)?(this.setIcon(`replay-${this.skipTime}`),this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime])),this.show()):this.hide()}getSkipBackwardTime(){const e=this.options_.playerOptions;return e.controlBar&&e.controlBar.skipButtons&&e.controlBar.skipButtons.backward}buildCSSClass(){return`vjs-skip-backward-${this.getSkipBackwardTime()} ${super.buildCSSClass()}`}handleClick(e){const t=this.player_.currentTime(),n=this.player_.liveTracker,i=n&&n.isLive()&&n.seekableStart();let r;r=i&&t-this.skipTime<=i?i:t>=this.skipTime?t-this.skipTime:0,this.player_.currentTime(r)}handleLanguagechange(){this.controlText(this.localize("Skip backward {1} seconds",[this.skipTime]))}}rj.prototype.controlText_="Skip Backward",n6.registerComponent("SkipBackward",rj);class rw extends n6{constructor(e,t){super(e,t),t&&(this.menuButton_=t.menuButton),this.focusedChild_=-1,this.on("keydown",e=>this.handleKeyDown(e)),this.boundHandleBlur_=e=>this.handleBlur(e),this.boundHandleTapClick_=e=>this.handleTapClick(e)}addEventListenerForItem(e){e instanceof n6&&(this.on(e,"blur",this.boundHandleBlur_),this.on(e,["tap","click"],this.boundHandleTapClick_))}removeEventListenerForItem(e){e instanceof n6&&(this.off(e,"blur",this.boundHandleBlur_),this.off(e,["tap","click"],this.boundHandleTapClick_))}removeChild(e){"string"==typeof e&&(e=this.getChild(e)),this.removeEventListenerForItem(e),super.removeChild(e)}addItem(e){const t=this.addChild(e);t&&this.addEventListenerForItem(t)}createEl(){const e=this.options_.contentElType||"ul";this.contentEl_=tK(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu");const t=super.createEl("div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),nM(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}dispose(){this.contentEl_=null,this.boundHandleBlur_=null,this.boundHandleTapClick_=null,super.dispose()}handleBlur(e){const t=e.relatedTarget||o().activeElement;if(!this.children().some(e=>e.el()===t)){const e=this.menuButton_;e&&e.buttonPressed_&&t!==e.el().firstChild&&e.unpressButton()}}handleTapClick(e){if(this.menuButton_){this.menuButton_.unpressButton();const t=this.children();if(!Array.isArray(t))return;const n=t.filter(t=>t.el()===e.target)[0];if(!n)return;"CaptionSettingsMenuItem"!==n.name()&&this.menuButton_.focus()}}handleKeyDown(e){l().isEventKey(e,"Left")||l().isEventKey(e,"Down")?(e.preventDefault(),e.stopPropagation(),this.stepForward()):(l().isEventKey(e,"Right")||l().isEventKey(e,"Up"))&&(e.preventDefault(),e.stopPropagation(),this.stepBack())}stepForward(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_+1),this.focus(e)}stepBack(){let e=0;void 0!==this.focusedChild_&&(e=this.focusedChild_-1),this.focus(e)}focus(e=0){const 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())}}n6.registerComponent("Menu",rw);class rS extends n6{constructor(e,t={}){super(e,t),this.menuButton_=new i7(e,t),this.menuButton_.controlText(this.controlText_),this.menuButton_.el_.setAttribute("aria-haspopup","true");const n=i7.prototype.buildCSSClass();this.menuButton_.el_.className=this.buildCSSClass()+" "+n,this.menuButton_.removeClass("vjs-control"),this.addChild(this.menuButton_),this.update(),this.enabled_=!0;const i=e=>this.handleClick(e);this.handleMenuKeyUp_=e=>this.handleMenuKeyUp(e),this.on(this.menuButton_,"tap",i),this.on(this.menuButton_,"click",i),this.on(this.menuButton_,"keydown",e=>this.handleKeyDown(e)),this.on(this.menuButton_,"mouseenter",()=>{this.addClass("vjs-hover"),this.menu.show(),nM(o(),"keyup",this.handleMenuKeyUp_)}),this.on("mouseleave",e=>this.handleMouseLeave(e)),this.on("keydown",e=>this.handleSubmenuKeyDown(e))}update(){const 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"))}createMenu(){const e=new rw(this.player_,{menuButton:this});if(this.hideThreshold_=0,this.options_.title){const t=tK("li",{className:"vjs-menu-title",textContent:n3(this.options_.title),tabIndex:-1}),n=new n6(this.player_,{el:t});e.addItem(n)}if(this.items=this.createItems(),this.items)for(let t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}createItems(){}createEl(){return super.createEl("div",{className:this.buildWrapperCSSClass()},{})}setIcon(e){super.setIcon(e,this.menuButton_.el_)}buildWrapperCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${i7.prototype.buildCSSClass()} ${super.buildCSSClass()}`}buildCSSClass(){let e="vjs-menu-button";return!0===this.options_.inline?e+="-inline":e+="-popup",`vjs-menu-button ${e} ${super.buildCSSClass()}`}controlText(e,t=this.menuButton_.el()){return this.menuButton_.controlText(e,t)}dispose(){this.handleMouseLeave(),super.dispose()}handleClick(e){this.buttonPressed_?this.unpressButton():this.pressButton()}handleMouseLeave(e){this.removeClass("vjs-hover"),nO(o(),"keyup",this.handleMenuKeyUp_)}focus(){this.menuButton_.focus()}blur(){this.menuButton_.blur()}handleKeyDown(e){l().isEventKey(e,"Esc")||l().isEventKey(e,"Tab")?(this.buttonPressed_&&this.unpressButton(),l().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus())):(l().isEventKey(e,"Up")||l().isEventKey(e,"Down"))&&(this.buttonPressed_||(e.preventDefault(),this.pressButton()))}handleMenuKeyUp(e){(l().isEventKey(e,"Esc")||l().isEventKey(e,"Tab"))&&this.removeClass("vjs-hover")}handleSubmenuKeyPress(e){this.handleSubmenuKeyDown(e)}handleSubmenuKeyDown(e){(l().isEventKey(e,"Esc")||l().isEventKey(e,"Tab"))&&(this.buttonPressed_&&this.unpressButton(),l().isEventKey(e,"Tab")||(e.preventDefault(),this.menuButton_.focus()))}pressButton(){if(this.enabled_){if(this.buttonPressed_=!0,this.menu.show(),this.menu.lockShowing(),this.menuButton_.el_.setAttribute("aria-expanded","true"),tH&&tY())return;this.menu.focus()}}unpressButton(){this.enabled_&&(this.buttonPressed_=!1,this.menu.unlockShowing(),this.menu.hide(),this.menuButton_.el_.setAttribute("aria-expanded","false"))}disable(){this.unpressButton(),this.enabled_=!1,this.addClass("vjs-disabled"),this.menuButton_.disable()}enable(){this.enabled_=!0,this.removeClass("vjs-disabled"),this.menuButton_.enable()}}n6.registerComponent("MenuButton",rS);class rx extends rS{constructor(e,t){const n=t.tracks;if(super(e,t),this.items.length<=1&&this.hide(),!n)return;const i=nB(this,this.update);n.addEventListener("removetrack",i),n.addEventListener("addtrack",i),n.addEventListener("labelchange",i),this.player_.on("ready",i),this.player_.on("dispose",function(){n.removeEventListener("removetrack",i),n.removeEventListener("addtrack",i),n.removeEventListener("labelchange",i)})}}n6.registerComponent("TrackButton",rx);const rk=["Tab","Esc","Up","Down","Right","Left"];class rE extends i1{constructor(e,t){super(e,t),this.selectable=t.selectable,this.isSelected_=t.selected||!1,this.multiSelectable=t.multiSelectable,this.selected(this.isSelected_),this.selectable?this.multiSelectable?this.el_.setAttribute("role","menuitemcheckbox"):this.el_.setAttribute("role","menuitemradio"):this.el_.setAttribute("role","menuitem")}createEl(e,t,n){this.nonIconControl=!0;const i=super.createEl("li",Object.assign({className:"vjs-menu-item",tabIndex:-1},t),n),r=tK("span",{className:"vjs-menu-item-text",textContent:this.localize(this.options_.label)});return this.player_.options_.experimentalSvgIcons?i.appendChild(r):i.replaceChild(r,i.querySelector(".vjs-icon-placeholder")),i}handleKeyDown(e){rk.some(t=>l().isEventKey(e,t))||super.handleKeyDown(e)}handleClick(e){this.selected(!0)}selected(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","fal
2se"),this.controlText(""),this.isSelected_=!1))}}n6.registerComponent("MenuItem",rE);class rC extends rE{constructor(e,t){const n=t.track,i=e.textTracks();t.label=n.label||n.language||"Unknown",t.selected="showing"===n.mode,super(e,t),this.track=n,this.kinds=(t.kinds||[t.kind||this.track.kind]).filter(Boolean);const s=(...e)=>{this.handleTracksChange.apply(this,e)},a=(...e)=>{this.handleSelectedLanguageChange.apply(this,e)};if(e.on(["loadstart","texttrackchange"],s),i.addEventListener("change",s),i.addEventListener("selectedlanguagechange",a),this.on("dispose",function(){e.off(["loadstart","texttrackchange"],s),i.removeEventListener("change",s),i.removeEventListener("selectedlanguagechange",a)}),void 0===i.onchange){let e;this.on(["tap","click"],function(){if("object"!=typeof r().Event)try{e=new(r()).Event("change")}catch(e){}e||(e=o().createEvent("Event"),e.initEvent("change",!0,!0)),i.dispatchEvent(e)})}this.handleTracksChange()}handleClick(e){const t=this.track,n=this.player_.textTracks();if(super.handleClick(e),n)for(let e=0;e<n.length;e++){const i=n[e];-1!==this.kinds.indexOf(i.kind)&&(i===t?"showing"!==i.mode&&(i.mode="showing"):"disabled"!==i.mode&&(i.mode="disabled"))}}handleTracksChange(e){const t="showing"===this.track.mode;t!==this.isSelected_&&this.selected(t)}handleSelectedLanguageChange(e){if("showing"===this.track.mode){const e=this.player_.cache_.selectedLanguage;if(e&&e.enabled&&e.language===this.track.language&&e.kind!==this.track.kind)return;this.player_.cache_.selectedLanguage={enabled:!0,language:this.track.language,kind:this.track.kind}}}dispose(){this.track=null,super.dispose()}}n6.registerComponent("TextTrackMenuItem",rC);class rI extends rC{constructor(e,t){t.track={player:e,kind:t.kind,kinds:t.kinds,default:!1,mode:"disabled"},t.kinds||(t.kinds=[t.kind]),t.label?t.track.label=t.label:t.track.label=t.kinds.join(" and ")+" off",t.selectable=!0,t.multiSelectable=!1,super(e,t)}handleTracksChange(e){const t=this.player().textTracks();let n=!0;for(let e=0,i=t.length;e<i;e++){const i=t[e];if(this.options_.kinds.indexOf(i.kind)>-1&&"showing"===i.mode){n=!1;break}}n!==this.isSelected_&&this.selected(n)}handleSelectedLanguageChange(e){const t=this.player().textTracks();let n=!0;for(let e=0,i=t.length;e<i;e++){const i=t[e];if(["captions","descriptions","subtitles"].indexOf(i.kind)>-1&&"showing"===i.mode){n=!1;break}}n&&(this.player_.cache_.selectedLanguage={enabled:!1})}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.label),super.handleLanguagechange()}}n6.registerComponent("OffTextTrackMenuItem",rI);class rD extends rx{constructor(e,t={}){t.tracks=e.textTracks(),super(e,t)}createItems(e=[],t=rC){let n;this.label_&&(n=`${this.label_} off`),e.push(new rI(this.player_,{kinds:this.kinds_,kind:this.kind_,label:n})),this.hideThreshold_+=1;const i=this.player_.textTracks();Array.isArray(this.kinds_)||(this.kinds_=[this.kind_]);for(let n=0;n<i.length;n++){const r=i[n];if(this.kinds_.indexOf(r.kind)>-1){const n=new t(this.player_,{track:r,kinds:this.kinds_,kind:this.kind_,selectable:!0,multiSelectable:!1});n.addClass(`vjs-${r.kind}-menu-item`),e.push(n)}}return e}}n6.registerComponent("TextTrackButton",rD);class rA extends rE{constructor(e,t){const n=t.track,i=t.cue,r=e.currentTime();t.selectable=!0,t.multiSelectable=!1,t.label=i.text,t.selected=i.startTime<=r&&r<i.endTime,super(e,t),this.track=n,this.cue=i}handleClick(e){super.handleClick(),this.player_.currentTime(this.cue.startTime)}}n6.registerComponent("ChaptersTrackMenuItem",rA);class rM extends rD{constructor(e,t,n){super(e,t,n),this.setIcon("chapters"),this.selectCurrentItem_=()=>{this.items.forEach(e=>{e.selected(this.track_.activeCues[0]===e.cue)})}}buildCSSClass(){return`vjs-chapters-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-chapters-button ${super.buildWrapperCSSClass()}`}update(e){if(e&&e.track&&"chapters"!==e.track.kind)return;const t=this.findChaptersTrack();t!==this.track_?(this.setTrack(t),super.update()):(!this.items||t&&t.cues&&t.cues.length!==this.items.length)&&super.update(
vendor: 9,350 bytes, line 2
2)}setTrack(e){if(this.track_!==e){if(this.updateHandler_||(this.updateHandler_=this.update.bind(this)),this.track_){const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.removeEventListener("load",this.updateHandler_),this.track_.removeEventListener("cuechange",this.selectCurrentItem_),this.track_=null}if(this.track_=e,this.track_){this.track_.mode="hidden";const e=this.player_.remoteTextTrackEls().getTrackElementByTrack_(this.track_);e&&e.addEventListener("load",this.updateHandler_),this.track_.addEventListener("cuechange",this.selectCurrentItem_)}}}findChaptersTrack(){const e=this.player_.textTracks()||[];for(let t=e.length-1;t>=0;t--){const n=e[t];if(n.kind===this.kind_)return n}}getMenuCaption(){return this.track_&&this.track_.label?this.track_.label:this.localize(n3(this.kind_))}createMenu(){return this.options_.title=this.getMenuCaption(),super.createMenu()}createItems(){const e=[];if(!this.track_)return e;const t=this.track_.cues;if(!t)return e;for(let n=0,i=t.length;n<i;n++){const i=t[n],r=new rA(this.player_,{track:this.track_,cue:i});e.push(r)}return e}}rM.prototype.kind_="chapters",rM.prototype.controlText_="Chapters",n6.registerComponent("ChaptersButton",rM);class rO extends rD{constructor(e,t,n){super(e,t,n),this.setIcon("audio-description");const i=e.textTracks(),r=nB(this,this.handleTracksChange);i.addEventListener("change",r),this.on("dispose",function(){i.removeEventListener("change",r)})}handleTracksChange(e){const t=this.player().textTracks();let n=!1;for(let e=0,i=t.length;e<i;e++){const i=t[e];if(i.kind!==this.kind_&&"showing"===i.mode){n=!0;break}}n?this.disable():this.enable()}buildCSSClass(){return`vjs-descriptions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-descriptions-button ${super.buildWrapperCSSClass()}`}}rO.prototype.kind_="descriptions",rO.prototype.controlText_="Descriptions",n6.registerComponent("DescriptionsButton",rO);class rP extends rD{constructor(e,t,n){super(e,t,n),this.setIcon("subtitles")}buildCSSClass(){return`vjs-subtitles-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subtitles-button ${super.buildWrapperCSSClass()}`}}rP.prototype.kind_="subtitles",rP.prototype.controlText_="Subtitles",n6.registerComponent("SubtitlesButton",rP);class rN extends rC{constructor(e,t){t.track={player:e,kind:t.kind,label:t.kind+" settings",selectable:!1,default:!1,mode:"disabled"},t.selectable=!1,t.name="CaptionSettingsMenuItem",super(e,t),this.addClass("vjs-texttrack-settings"),this.controlText(", opens "+t.kind+" settings dialog")}handleClick(e){this.player().getChild("textTrackSettings").open()}handleLanguagechange(){this.$(".vjs-menu-item-text").textContent=this.player_.localize(this.options_.kind+" settings"),super.handleLanguagechange()}}n6.registerComponent("CaptionSettingsMenuItem",rN);class rL extends rD{constructor(e,t,n){super(e,t,n),this.setIcon("captions")}buildCSSClass(){return`vjs-captions-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-captions-button ${super.buildWrapperCSSClass()}`}createItems(){const e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new rN(this.player_,{kind:this.kind_})),this.hideThreshold_+=1),super.createItems(e)}}rL.prototype.kind_="captions",rL.prototype.controlText_="Captions",n6.registerComponent("CaptionsButton",rL);class rR extends rC{createEl(e,t,n){const i=super.createEl(e,t,n),r=i.querySelector(".vjs-menu-item-text");return"captions"===this.options_.track.kind&&(this.player_.options_.experimentalSvgIcons?this.setIcon("captions",i):r.appendChild(tK("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(tK("span",{className:"vjs-control-text",textContent:` ${this.localize("Captions")}`}))),i}}n6.registerComponent("SubsCapsMenuItem",rR);class rU extends rD{constructor(e,t={}){super(e,t),this.label_="subtitles",this.setIcon("subtitles"),["en","en-us","en-ca","fr-ca"].indexOf(this.player_.language_)>-1&&(this.label_="captions",this.setIcon("captions")),this.menuButton_.controlText(n3(this.label_))}buildCSSClass(){return`vjs-subs-caps-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-subs-caps-button ${super.buildWrapperCSSClass()}`}createItems(){let e=[];return this.player().tech_&&this.player().tech_.featuresNativeTextTracks||!this.player().getChild("textTrackSettings")||(e.push(new rN(this.player_,{kind:this.label_})),this.hideThreshold_+=1),e=super.createItems(e,rR),e}}rU.prototype.kinds_=["captions","subtitles"],rU.prototype.controlText_="Subtitles",n6.registerComponent("SubsCapsButton",rU);class rB extends rE{constructor(e,t){const n=t.track,i=e.audioTracks();t.label=n.label||n.language||"Unknown",t.selected=n.enabled,super(e,t),this.track=n,this.addClass(`vjs-${n.kind}-menu-item`);const r=(...e)=>{this.handleTracksChange.apply(this,e)};i.addEventListener("change",r),this.on("dispose",()=>{i.removeEventListener("change",r)})}createEl(e,t,n){const i=super.createEl(e,t,n),r=i.querySelector(".vjs-menu-item-text");return["main-desc","description"].indexOf(this.options_.track.kind)>=0&&(r.appendChild(tK("span",{className:"vjs-icon-placeholder"},{"aria-hidden":!0})),r.appendChild(tK("span",{className:"vjs-control-text",textContent:" "+this.localize("Descriptions")}))),i}handleClick(e){if(super.handleClick(e),this.track.enabled=!0,this.player_.tech_.featuresNativeAudioTracks){const e=this.player_.audioTracks();for(let t=0;t<e.length;t++){const n=e[t];n!==this.track&&(n.enabled=n===this.track)}}}handleTracksChange(e){this.selected(this.track.enabled)}}n6.registerComponent("AudioTrackMenuItem",rB);class rz extends rx{constructor(e,t={}){t.tracks=e.audioTracks(),super(e,t),this.setIcon("audio")}buildCSSClass(){return`vjs-audio-button ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-audio-button ${super.buildWrapperCSSClass()}`}createItems(e=[]){this.hideThreshold_=1;const t=this.player_.audioTracks();for(let n=0;n<t.length;n++){const i=t[n];e.push(new rB(this.player_,{track:i,selectable:!0,multiSelectable:!1}))}return e}}rz.prototype.controlText_="Audio Track",n6.registerComponent("AudioTrackButton",rz);class rF extends rE{constructor(e,t){const n=t.rate,i=parseFloat(n,10);t.label=n,t.selected=i===e.playbackRate(),t.selectable=!0,t.multiSelectable=!1,super(e,t),this.label=n,this.rate=i,this.on(e,"ratechange",e=>this.update(e))}handleClick(e){super.handleClick(),this.player().playbackRate(this.rate)}update(e){this.selected(this.player().playbackRate()===this.rate)}}rF.prototype.contentElType="button",n6.registerComponent("PlaybackRateMenuItem",rF);class rq extends rS{constructor(e,t){super(e,t),this.menuButton_.el_.setAttribute("aria-describedby",this.labelElId_),this.updateVisibility(),this.updateLabel(),this.on(e,"loadstart",e=>this.updateVisibility(e)),this.on(e,"ratechange",e=>this.updateLabel(e)),this.on(e,"playbackrateschange",e=>this.handlePlaybackRateschange(e))}createEl(){const e=super.createEl();return this.labelElId_="vjs-playback-rate-value-label-"+this.id_,this.labelEl_=tK("div",{className:"vjs-playback-rate-value",id:this.labelElId_,textContent:"1x"}),e.appendChild(this.labelEl_),e}dispose(){this.labelEl_=null,super.dispose()}buildCSSClass(){return`vjs-playback-rate ${super.buildCSSClass()}`}buildWrapperCSSClass(){return`vjs-playback-rate ${super.buildWrapperCSSClass()}`}createItems(){const e=this.playbackRates(),t=[];for(let n=e.length-1;n>=0;n--)t.push(new rF(this.player(),{rate:e[n]+"x"}));return t}handlePlaybackRateschange(e){this.update()}playbackRates(){const e=this.player();return e.playbackRates&&e.playbackRates()||[]}playbackRateSupported(){return this.player().tech_&&this.player().tech_.featuresPlaybackRate&&this.playbackRates()&&this.playbackRates().length>0}updateVisibility(e){this.playbackRateSupported()?this.removeClass("vjs-hidden"):this.addClass("vjs-hidden")}updateLabel(e){this.playbackRateSupported()&&(this.labelEl_.textContent=this.player().playbackRate()+"x")}}rq.prototype.controlText_="Playback Rate",n6.registerComponent("PlaybackRateMenuButton",rq);class rV extends n6{buildCSSClass(){return`vjs-spacer ${super.buildCSSClass()}`}createEl(e="div",t={},n={}){return t.className||(t.className=this.buildCSSClass()),super.createEl(e,t,n)}}n6.registerComponent("Spacer",rV),n6.registerComponent("CustomControlSpacer",class extends rV{buildCSSClass(){return`vjs-custom-control-spacer ${super.buildCSSClass()}`}createEl(){return super.createEl("div",{className:this.buildCSSClass(),textContent:"\xa0"})}});class rH extends n6{createEl(){return super.createEl("div",{className:"vjs-control-bar",dir:"ltr"})}}rH.prototype.options_={children:["playToggle","skipBackward","skipForward","volumePanel","currentTimeDisplay","timeDivider","durationDisplay","progressControl","liveDisplay","seekToLive","remainingTimeDisplay","customControlSpacer","playbackRateMenuButton","chaptersButton","descriptionsButton","subsCapsButton","audioTrackButton","pictureInPictureToggle","fullscreenToggle"]},n6.registerComponent("ControlBar",rH);class rW extends im{constructor(e,t){super(e,t),this.on(e,"error",e=>this.open(e))}buildCSSClass(){return`vjs-error-display ${super.buildCSSClass()}`}content(){const e=this.player().error();return e?this.localize(e.message):""}}rW.prototype.options_=Object.assign({}
2,im.prototype.options_,{pauseOnOpen:!1,fillAlways:!0,temporary:!1,uncloseable:!0}),n6.registerComponent("ErrorDisplay",rW);const rG="vjs-text-track-settings",r$=["#000","Black"],rQ=["#00F","Blue"],rZ=["#0FF","Cyan"],rY=["#0F0","Green"],rX=["#F0F","Magenta"],rK=["#F00","Red"],rJ=["#FFF","White"],r0=["#FF0","Yellow"],r1=["1","Opaque"],r2=["0.5","Semi-Transparent"],r4=["0","Transparent"],r3={backgroundColor:{selector:".vjs-bg-color > select",id:"captions-background-color-%s",label:"Color",options:[r$,rJ,rK,rY,rQ,r0,rX,rZ]},backgroundOpacity:{selector:".vjs-bg-opacity > select",id:"captions-background-opacity-%s",label:"Opacity",options:[r1,r2,r4]},color:{selector:".vjs-text-color > select",id:"captions-foreground-color-%s",label:"Color",options:[rJ,r$,rK,rY,rQ,r0,rX,rZ]},edgeStyle:{selector:".vjs-edge-style > select",id:"%s",label:"Text Edge Style",options:[["none","None"],["raised","Raised"],["depressed","Depressed"],["uniform","Uniform"],["dropshadow","Drop shadow"]]},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:e=>"1.00"===e?null:Number(e)},textOpacity:{selector:".vjs-text-opacity > select",id:"captions-foreground-opacity-%s",label:"Opacity",options:[r1,r2]},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:"Opacity",options:[r4,r2,r1]}};function r5(e,t){if(t&&(e=t(e)),e&&"none"!==e)return e}r3.windowColor.options=r3.backgroundColor.options,n6.registerComponent("TextTrackSettings",class extends im{constructor(e,t){t.temporary=!1,super(e,t),this.updateDisplay=this.updateDisplay.bind(this),this.fill(),this.hasBeenOpened_=this.hasBeenFilled_=!0,this.endDialog=tK("p",{className:"vjs-control-text",textContent:this.localize("End of dialog window.")}),this.el().appendChild(this.endDialog),this.setDefaults(),void 0===t.persistTextTrackSettings&&(this.options_.persistTextTrackSettings=this.options_.playerOptions.persistTextTrackSettings),this.on(this.$(".vjs-done-button"),"click",()=>{this.saveSettings(),this.close()}),this.on(this.$(".vjs-default-button"),"click",()=>{this.setDefaults(),this.updateDisplay()}),tb(r3,e=>{this.on(this.$(e.selector),"change",this.updateDisplay)}),this.options_.persistTextTrackSettings&&this.restoreSettings()}dispose(){this.endDialog=null,super.dispose()}createElSelect_(e,t="",n="label"){const i=r3[e],r=i.id.replace("%s",this.id_),s=[t,r].join(" ").trim();return[`<${n} id="${r}" class="${"label"===n?"vjs-label":""}">`,this.localize(i.label),`</${n}>`,`<select aria-labelledby="${s}">`].concat(i.options.map(e=>{const t=r+"-"+e[1].replace(/\W+/g,"");return[`<option id="${t}" value="${e[0]}" `,`aria-labelledby="${s} ${t}">`,this.localize(e[1]),"</option>"].join("")})).concat("</select>").join("")}createElFgColor_(){const e=`captions-text-legend-${this.id_}`;return['<fieldset class="vjs-fg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text"),"</legend>",'<span class="vjs-text-color">',this.createElSelect_("color",e),"</span>",'<span class="vjs-text-opacity vjs-opacity">',this.createElSelect_("textOpacity",e),"</span>","</fieldset>"].join("")}createElBgColor_(){const e=`captions-background-${this.id_}`;return['<fieldset class="vjs-bg vjs-track-setting">',`<legend id="${e}">`,this.localize("Text Background"),"</legend>",'<span class="vjs-bg-color">',this.createElSelect_("backgroundColor",e),"</span>",'<span class="vjs-bg-opacity vjs-opacity">',this.createElSelect_("backgroundOpacity",e),"</span>","</fieldset>"].join("")}createElWinColor_(){const e=`captions-window-${this.id_}`;return['<fieldset class="vjs-window vjs-track-setting">',`<legend id="${e}">
2`,this.localize("Caption Area Background"),"</legend>",'<span class="vjs-window-color">',this.createElSelect_("windowColor",e),"</span>",'<span class="vjs-window-opacity vjs-opacity">',this.createElSelect_("windowOpacity",e),"</span>","</fieldset>"].join("")}createElColors_(){return tK("div",{className:"vjs-track-settings-colors",innerHTML:[this.createElFgColor_(),this.createElBgColor_(),this.createElWinColor_()].join("")})}createElFont_(){return tK("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("")})}createElControls_(){const e=this.localize("restore all settings to the default values");return tK("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("")})}content(){return[this.createElColors_(),this.createElFont_(),this.createElControls_()]}label(){return this.localize("Caption Settings Dialog")}description(){return this.localize("Beginning of dialog window. Escape will cancel and close the window.")}buildCSSClass(){return super.buildCSSClass()+" vjs-text-track-settings"}getValues(){return t_(r3,(e,t,n)=>{const i=(r=this.$(t.selector),s=t.parser,r5(r.options[r.options.selectedIndex].value,s));var r,s;return void 0!==i&&(e[n]=i),e},{})}setValues(e){tb(r3,(t,n)=>{!function(e,t,n){if(t){for(let i=0;i<e.options.length;i++)if(r5(e.options[i].value,n)===t){e.selectedIndex=i;break}}}(this.$(t.selector),e[n],t.parser)})}setDefaults(){tb(r3,e=>{const t=e.hasOwnProperty("default")?e.default:0;this.$(e.selector).selectedIndex=t})}restoreSettings(){let e;try{e=JSON.parse(r().localStorage.getItem(rG))}catch(e){tm.warn(e)}e&&this.setValues(e)}saveSettings(){if(!this.options_.persistTextTrackSettings)return;const e=this.getValues();try{Object.keys(e).length?r().localStorage.setItem(rG,JSON.stringify(e)):r().localStorage.removeItem(rG)}catch(e){tm.warn(e)}}updateDisplay(){const e=this.player_.getChild("textTrackDisplay");e&&e.updateDisplay()}conditionalBlur_(){this.previouslyActiveEl_=null;const e=this.player_.controlBar,t=e&&e.subsCapsButton,n=e&&e.captionsButton;t?t.focus():n&&n.focus()}handleLanguagechange(){this.fill()}}),n6.registerComponent("ResizeManager",class extends n6{constructor(e,t){let n=t.ResizeObserver||r().ResizeObserver;null===t.ResizeObserver&&(n=!1),super(e,tw({createEl:!n,reportTouchActivity:!1},t)),this.ResizeObserver=t.ResizeObserver||r().ResizeObserver,this.loadListener_=null,this.resizeObserver_=null,this.debouncedHandler_=nF(()=>{this.resizeHandler()},100,!1,this),n?(this.resizeObserver_=new this.ResizeObserver(this.debouncedHandler_),this.resizeObserver_.observe(e.el())):(this.loadListener_=()=>{if(!this.el_||!this.el_.contentWindow)return;const e=this.debouncedHandler_;let t=this.unloadListener_=function(){nO(this,"resize",e),nO(this,"unload",t),t=null};nM(this.el_.contentWindow,"unload",t),nM(this.el_.contentWindow,"resize",e)},this.one("load",this.loadListener_))}createEl(){return super.createEl("iframe",{className:"vjs-resize-manager",tabIndex:-1,title:this.localize("No content")},{"aria-hidden":"true"})}resizeHandler(){this.player_&&this.player_.trigger&&this.player_.trigger("playerresize")}dispose(){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,super.dispose()}});const r8={trackingThreshold:20,liveTolerance:15};n6.registerComponent("LiveTracker",class extends n6{constructor(e,t){super(e,tw(r8,t,{createEl:!1})),this.trackLiveHandler_=()=>this.trackLive_(),this.handlePlay_=e=>this.handlePlay(e),this.handleFirstTimeupdate_=e=>this.handleFirstTimeupdate(e),this.handleSeeked_=e=>this.handleSeeked(e),this.seekToLiveEdge_=e=>this.seekToLiveEdge(e),this.reset_(),this.on(this.player_,"durationchange",e=>this.handleDurationchange(e)),this.on(this.player_,"canplay",()=>this.toggleTracking())}trackLive_(){const e=this.player_.seekable();if(!e||!e.length)return;const t=Number(r().performance.now().toFixed(4)),n=-1===this.lastTime_?0:(t-this.lastTime_)/1e3;this.lastTime_=t,this.pastSeekEnd_=this.pastSeekEnd()+n;const i=this.liveCurrentTime(),s=this.player_.currentTime();let o=this.player_.paused()||this.seekedBehindLive_||Math.abs(i-s)>this.options_.liveTolerance;this.timeupdateSeen_&&i!==1/0||(o=!1),o!==this.behindLiveEdge_&&(this.behindLiveEdge_=o,this.trigger("liveedgechange"))}handleDurationchange(){this.toggleTracking()}toggleTracking(){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())}startTracking(){this.isTracking()||(this.timeupdateSeen_||(this.timeupdateSeen_=this.player_.hasStarted()),this.trackingInterval_=this.setInterval(this.trackLiveHandler_,nU),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_)))}handleFirstTimeupdate(){this.timeupdateSeen_=!0,this.on(this.player_,"seeked",this.handleSeeked_)}handleSeeked(){const e=Math.abs(this.liveCurrentTime()-this.player_.currentTime());this.seekedBehindLive_=this.nextSeekedFromUser_&&e>2,this.nextSeekedFromUser_=!1,this.trackLive_()}handlePlay(){this.one(this.player_,"timeupdate",this.seekToLiveEdge_)}reset_(){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_)}nextSeekedFromUser(){this.nextSeekedFromUser_=!0}stopTracking(){this.isTracking()&&(this.reset_(),this.trigger("liveedgechange"))}seekableEnd(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.end(n));return t.length?t.sort()[t.length-1]:1/0}seekableStart(){const e=this.player_.seekable(),t=[];let n=e?e.length:0;for(;n--;)t.push(e.start(n));return t.length?t.sort()[0]:0}
vendor: 19,788 bytes, line 2
2liveWindow(){const e=this.liveCurrentTime();return e===1/0?0:e-this.seekableStart()}isLive(){return this.isTracking()}atLiveEdge(){return!this.behindLiveEdge()}liveCurrentTime(){return this.pastSeekEnd()+this.seekableEnd()}pastSeekEnd(){const e=this.seekableEnd();return-1!==this.lastSeekEnd_&&e!==this.lastSeekEnd_&&(this.pastSeekEnd_=0),this.lastSeekEnd_=e,this.pastSeekEnd_}behindLiveEdge(){return this.behindLiveEdge_}isTracking(){return"number"==typeof this.trackingInterval_}seekToLiveEdge(){this.seekedBehindLive_=!1,this.atLiveEdge()||(this.nextSeekedFromUser_=!1,this.player_.currentTime(this.liveCurrentTime()))}dispose(){this.stopTracking(),super.dispose()}}),n6.registerComponent("TitleBar",class extends n6{constructor(e,t){super(e,t),this.on("statechanged",e=>this.updateDom_()),this.updateDom_()}createEl(){return this.els={title:tK("div",{className:"vjs-title-bar-title",id:`vjs-title-bar-title-${nk()}`}),description:tK("div",{className:"vjs-title-bar-description",id:`vjs-title-bar-description-${nk()}`})},tK("div",{className:"vjs-title-bar"},{},tS(this.els))}updateDom_(){const e=this.player_.tech_,t=e&&e.el_,n={title:"aria-labelledby",description:"aria-describedby"};["title","description"].forEach(e=>{const i=this.state[e],r=this.els[e],s=n[e];no(r),i&&tJ(r,i),t&&(t.removeAttribute(s),i&&t.setAttribute(s,r.id))}),this.state.title||this.state.description?this.show():this.hide()}update(e){this.setState(e)}dispose(){const e=this.player_.tech_,t=e&&e.el_;t&&(t.removeAttribute("aria-labelledby"),t.removeAttribute("aria-describedby")),super.dispose(),this.els=null}});const r6=e=>{const t=e.el();if(t.hasAttribute("src"))return e.triggerSourceset(t.src),!0;const n=e.$$("source"),i=[];let r="";if(!n.length)return!1;for(let e=0;e<n.length;e++){const t=n[e].src;t&&-1===i.indexOf(t)&&i.push(t)}return!!i.length&&(1===i.length&&(r=i[0]),e.triggerSourceset(r),!0)},r9=Object.defineProperty({},"innerHTML",{get(){return this.cloneNode(!0).innerHTML},set(e){const t=o().createElement(this.nodeName.toLowerCase());t.innerHTML=e;const n=o().createDocumentFragment();for(;t.childNodes.length;)n.appendChild(t.childNodes[0]);return this.innerText="",r().Element.prototype.appendChild.call(this,n),this.innerHTML}}),r7=(e,t)=>{let n={};for(let i=0;i<e.length&&(n=Object.getOwnPropertyDescriptor(e[i],t),!(n&&n.set&&n.get));i++);return n.enumerable=!0,n.configurable=!0,n},se=function(e){const t=e.el();if(t.resetSourceWatch_)return;const n={},i=(e=>r7([e.el(),r().HTMLMediaElement.prototype,r().Element.prototype,r9],"innerHTML"))(e),s=n=>(...i)=>{const r=n.apply(t,i);return r6(e),r};["append","appendChild","insertAdjacentHTML"].forEach(e=>{t[e]&&(n[e]=t[e],t[e]=s(n[e]))}),Object.defineProperty(t,"innerHTML",tw(i,{set:s(i.set)})),t.resetSourceWatch_=()=>{t.resetSourceWatch_=null,Object.keys(n).forEach(e=>{t[e]=n[e]}),Object.defineProperty(t,"innerHTML",i)},e.one("sourceset",t.resetSourceWatch_)},st=Object.defineProperty({},"src",{get(){return this.hasAttribute("src")?iE(r().Element.prototype.getAttribute.call(this,"src")):""},set(e){return r().Element.prototype.setAttribute.call(this,"src",e),e}});class sn extends iz{constructor(e,t){super(e,t);const n=e.source;let i=!1;if(this.featuresVideoFrameCallback=this.featuresVideoFrameCallback&&"VIDEO"===this.el_.tagName,n&&(this.el_.currentSrc!==n.src||e.tag&&3===e.tag.initNetworkState_)?this.setSource(n):this.handleLateInit_(this.el_),e.enableSourceset&&this.setupSourcesetHandling_(),this.isScrubbing_=!1,this.el_.hasChildNodes()){const e=this.el_.childNodes;let t=e.length;const n=[];for(;t--;){const r=e[t];"track"===r.nodeName.toLowerCase()&&(this.featuresNativeTextTracks?(this.remoteTextTrackEls().addTrackElement_(r),this.remoteTextTracks().addTrack(r.track),this.textTracks().addTrack(r.track),i||this.el_.hasAttribute("crossorigin")||!iI(r.src)||(i=!0)):n.push(r))}for(let e=0;e<n.length;e++)this.el_.removeChild(n[e])}this.proxyNativeTracks_(),this.featuresNativeTextTracks&&i&&tm.warn("Text Tracks are being loaded from another origin but the crossorigin attribute isn't used.\nThis may prevent text tracks from loading."),this.restoreMetadataTracksInIOSNativePlayer_(),(tq||tF)&&!0===e.nativeControlsForTouch&&this.setControls(!0),this.proxyWebkitFullscreen_(),this.triggerReady()}dispose(){this.el_&&this.el_.resetSourceset_&&this.el_.resetSourceset_(),sn.disposeMediaElement(this.el_),this.options_=null,super.dispose()}setupSourcesetHandling_(){!function(e){if(!e.featuresSourceset)return;const t=e.el();if(t.resetSourceset_)return;const n=(e=>r7([e.el(),r().HTMLMediaElement.prototype,st],"src"))(e),i=t.setAttribute,s=t.load;Object.defineProperty(t,"src",tw(n,{set:i=>{const r=n.set.call(t,i);return e.triggerSourceset(t.src),r}})),t.setAttribute=(n,r)=>{const s=i.call(t,n,r);return/src/i.test(n)&&e.triggerSourceset(t.src),s},t.load=()=>{const n=s.call(t);return r6(e)||(e.triggerSourceset(""),se(e)),n},t.currentSrc?e.triggerSourceset(t.currentSrc):r6(e)||se(e),t.resetSourceset_=()=>{t.resetSourceset_=null,t.load=s,t.setAttribute=i,Object.defineProperty(t,"src",n),t.resetSourceWatch_&&t.resetSourceWatch_()}}(this)}restoreMetadataTracksInIOSNativePlayer_(){const e=this.textTracks();let t;const n=()=>{t=[];for(let n=0;n<e.length;n++){const i=e[n];"metadata"===i.kind&&t.push({track:i,storedMode:i.mode})}};n(),e.addEventListener("change",n),this.on("dispose",()=>e.removeEventListener("change",n));const i=()=>{for(let e=0;e<t.length;e++){const n=t[e];"disabled"===n.track.mode&&n.track.mode!==n.storedMode&&(n.track.mode=n.storedMode)}e.removeEventListener("change",i)};this.on("webkitbeginfullscreen",()=>{e.removeEventListener("change",n),e.removeEventListener("change",i),e.addEventListener("change",i)}),this.on("webkitendfullscreen",()=>{e.removeEventListener("change",n),e.addEventListener("change",n),e.removeEventListener("change",i)})}overrideNative_(e,t){if(t!==this[`featuresNative${e}Tracks`])return;const n=e.toLowerCase();this[`${n}TracksListeners_`]&&Object.keys(this[`${n}TracksListeners_`]).forEach(e=>{this.el()[`${n}Tracks`].removeEventListener(e,this[`${n}TracksListeners_`][e])}),this[`featuresNative${e}Tracks`]=!t,this[`${n}TracksListeners_`]=null,this.proxyNativeTracksForType_(n)}overrideNativeAudioTracks(e){this.overrideNative_("Audio",e)}overrideNativeVideoTracks(e){this.overrideNative_("Video",e)}proxyNativeTracksForType_(e){const t=iR[e],n=this.el()[t.getterName],i=this[t.getterName]();if(!this[`featuresNative${t.capitalName}Tracks`]||!n||!n.addEventListener)return;const r={change:t=>{const n={type:"change",target:i,currentTarget:i,srcElement:i};i.trigger(n),"text"===e&&this[iU.remoteText.getterName]().trigger(n)},addtrack(e){i.addTrack(e.track)},removetrack(e){i.removeTrack(e.track)}},s=function(){const e=[];for(let t=0;t<i.length;t++){let r=!1;for(let e=0;e<n.length;e++)if(n[e]===i[t]){r=!0;break}r||e.push(i[t])}for(;e.length;)i.removeTrack(e.shift())};this[t.getterName+"Listeners_"]=r,Object.keys(r).forEach(e=>{const t=r[e];n.addEventListener(e,t),this.on("dispose",i=>n.removeEventListener(e,t))}),this.on("loadstart",s),this.on("dispose",e=>this.off("loadstart",s))}proxyNativeTracks_(){iR.names.forEach(e=>{this.proxyNativeTracksForType_(e)})}createEl(){let e=this.options_.tag;if(!e||!this.options_.playerElIngest&&!this.movingMediaElementInDOM){if(e){const t=e.cloneNode(!0);e.parentNode&&e.parentNode.insertBefore(t,e),sn.disposeMediaElement(e),e=t}else{e=o().createElement("video");const t=tw({},this.options_.tag&&t8(this.options_.tag));tq&&!0===this.options_.nativeControlsForTouch||delete t.controls,t5(e,Object.assign(t,{id:this.options_.techId,class:"vjs-tech"}))}e.playerId=this.options_.playerId}void 0!==this.options_.preload&&t9(e,"preload",this.options_.preload),void 0!==this.options_.disablePictureInPicture&&(e.disablePictureInPicture=this.options_.disablePictureInPicture);const t=["loop","muted","playsinline","autoplay"];for(let n=0;n<t.length;n++){const i=t[n],r=this.options_[i];void 0!==r&&(r?t9(e,i,i):t7(e,i),e[i]=r)}return e}handleLateInit_(e){if(0===e.networkState||3===e.networkState)return;if(0===e.readyState){let e=!1;const t=function(){e=!0};this.on("loadstart",t);const n=function(){e||this.trigger("loadstart")};return this.on("loadedmetadata",n),void this.ready(function(){this.off("loadstart",t),this.off("loadedmetadata",n),e||this.trigger("loadstart")})}const t=["loadstart"];t.push("loadedmetadata"),e.readyState>=2&&t.push("loadeddata"),e.readyState>=3&&t.push("canplay"),e.readyState>=4&&t.push("canplaythrough"),this.ready(function(){t.forEach(function(e){this.trigger(e)},this)})}setScrubbing(e){this.isScrubbing_=e}scrubbing(){return this.isScrubbing_}setCurrentTime(e){try{this.isScrubbing_&&this.el_.fastSeek&&tW?this.el_.fastSeek(e):this.el_.currentTime=e}catch(e){tm(e,"Video is not ready. (Video.js)")}}duration(){if(this.el_.duration===1/0&&tD&&tP&&0===this.el_.currentTime){const e=()=>{this.el_.currentTime>0&&(this.el_.duration===1/0&&this.trigger("durationchange"),this.off("timeupdate",e))};return this.on("timeupdate",e),NaN}return this.el_.duration||NaN}width(){return this.el_.offsetWidth}height(){return this.el_.offsetHeight}proxyWebkitFullscreen_(){if(!("webkitDisplayingFullscreen"in this.el_))return;const e=function(){this.trigger("fullscreenchange",{isFullscreen:!1}),this.el_.controls&&!this.options_.nativeControlsForTouch&&this.controls()&&(this.el_.controls=!1)},t=function(){"webkitPresentationMode"in this.el_&&"picture-in-picture"!==this.el_.webkitPresentationMode&&(this.one("webkitendfullscreen",e),this.trigger("fullscreenchange",{isFullscreen:!0,nativeIOSFullscreen:!0}))};this.on("webkitbeginfullscreen",t),this.on("dispose",()=>{this.off("webkitbeginfullscreen",t),this.off("webkitendfullscreen",e)})}supportsFullScreen(){return"function"==typeof this.el_.webkitEnterFullScreen}enterFullScreen(){const e=this.el_;if(e.paused&&e.networkState<=e.HAVE_METADATA)id(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)}}exitFullScreen(){this.el_.webkitDisplayingFullscreen?this.el_.webkitExitFullScreen():this.trigger("fullscreenerror",new Error("The video is not fullscreen"))}requestPictureInPicture(){return this.el_.requestPictureInPicture()}requestVideoFrameCallback(e){return this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.requestVideoFrameCallback(e):super.requestVideoFrameCallback(e)}cancelVideoFrameCallback(e){this.featuresVideoFrameCallback&&!this.el_.webkitKeys?this.el_.cancelVideoFrameCallback(e):super.cancelVideoFrameCallback(e)}src(e){if(void 0===e)return this.el_.src;this.setSrc(e)}reset(){sn.resetMediaElement(this.el_)}currentSrc(){return this.currentSource_?this.currentSource_.src:this.el_.currentSrc}setControls(e){this.el_.controls=!!e}addTextTrack(e,t,n){return this.featuresNativeTextTracks?this.el_.addTextTrack(e,t,n):super.addTextTrack(e,t,n)}createRemoteTextTrack(e){if(!this.featuresNativeTextTracks)return super.createRemoteTextTrack(e);const t=o().createElement("track");return e.kind&&(t.kind=e.kind),e.label&&(t.label=e.label),(e.language||e.srclang)&&(t.srclang=e.language||e.srclang),e.default&&(t.default=e.default),e.id&&(t.id=e.id),e.src&&(t.src=e.src),t}addRemoteTextTrack(e,t){const n=super.addRemoteTextTrack(e,t);return this.featuresNativeTextTracks&&this.el().appendChild(n),n}removeRemoteTextTrack(e){if(super.removeRemoteTextTrack(e),this.featuresNativeTextTracks){const t=this.$$("track");let n=t.length;for(;n--;)e!==t[n]&&e!==t[n].track||this.el().removeChild(t[n])}}getVideoPlaybackQuality(){if("function"==typeof this.el().getVideoPlaybackQuality)return this.el().getVideoPlaybackQuality();const e={};return void 0!==this.el().webkitDroppedFrameCount&&void 0!==this.el().webkitDecodedFrameCount&&(e.droppedVideoFrames=this.el().webkitDroppedFrameCount,e.totalVideoFrames=this.el().webkitDecodedFrameCount),r().performance&&(e.creationTime=r().performance.now()),e}}tx(sn,"TEST_VID",function(){if(!tQ())return;const e=o().createElement("video"),t=o().createElement("track");return t.kind="captions",t.srclang="en",t.label="English",e.appendChild(t),e}),sn.isSupported=function(){try{sn.TEST_VID.volume=.5}catch(e){return!1}return!(!sn.TEST_VID||!sn.TEST_VID.canPlayType)},sn.canPlayType=function(e){return sn.TEST_VID.canPlayType(e)},sn.canPlaySource=function(e,t){return sn.canPlayType(e.type)},sn.canControlVolume=function(){try{const e=sn.TEST_VID.volume;sn.TEST_VID.volume=e/2+.1;const t=e!==sn.TEST_VID.volume;return t&&tH?(r().setTimeout(()=>{sn&&sn.prototype&&(sn.prototype.featuresVolumeControl=e!==sn.TEST_VID.volume)}),!1):t}catch(e){return!1}},sn.canMuteVolume=function(){try{const e=sn.TEST_VID.muted;return sn.TEST_VID.muted=!e,sn.TEST_VID.muted?t9(sn.TEST_VID,"muted","muted"):t7(sn.TEST_VID,"muted"),e!==sn.TEST_VID.muted}catch(e){return!1}},sn.canControlPlaybackRate=function(){if(tD&&tP&&tL<58)return!1;try{const e=sn.TEST_VID.playbackRate;return sn.TEST_VID.playbackRate=e/2+.1,e!==sn.TEST_VID.playbackRate}catch(e){return!1}},sn.canOverrideAttributes=function(){try{const e=()=>{};Object.defineProperty(o().createElement("video"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"src",{get:e,set:e}),Object.defineProperty(o().createElement("video"),"innerHTML",{get:e,set:e}),Object.defineProperty(o().createElement("audio"),"innerHTML",{get:e,set:e})}catch(e){return!1}return!0},sn.supportsNativeTextTracks=function(){return tW||tH&&tP},sn.supportsNativeVideoTracks=function(){return!(!sn.TEST_VID||!sn.TEST_VID.videoTracks)},sn.supportsNativeAudioTracks=function(){return!(!sn.TEST_VID||!sn.TEST_VID.audioTracks)},sn.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,t]){tx(sn.prototype,e,()=>sn[t](),!0)}),sn.prototype.featuresVolumeControl=sn.canControlVolume(),sn.prototype.movingMediaElementInDOM=!tH,sn.prototype.featuresFullscreenResize=!0,sn.prototype.featuresProgressEvents=!0,sn.prototype.featuresTimeupdateEvents=!0,sn.prototype.featuresVideoFrameCallback=!(!sn.TEST_VID||!sn.TEST_VID.requestVideoFrameCallback),sn.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){}}()}},sn.resetMediaElement=function(e){if(!e)return;const t=e.querySelectorAll("source");let n=t.length;for(;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){sn.prototype[e]=function(){return this.el_[e]||this.el_.hasAttribute(e)}}),["muted","defaultMuted","autoplay","loop","playsinline"].forEach(function(e){sn.prototype["set"+n3(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){sn.prototype[e]=function(){return this.el_[e]}}),["volume","src","poster","preload","playbackRate","defaultPlaybackRate","disablePictureInPicture","crossOrigin"].forEach(function(e){sn.prototype["set"+n3(e)]=function(t){this.el_[e]=t}}),["pause","load","play"].forEach(function(e){sn.prototype[e]=function(){return this.el_[e]()}}),iz.withSourceHandlers(sn),sn.nativeSourceHandler={},sn.nativeSourceHandler.canPlayType=function(e){try{return sn.TEST_VID.canPlayType(e)}catch(e){return""}},sn.nativeSourceHandler.canHandleSource=function(e,t){if(e.type)return sn.nativeSourceHandler.canPlayType(e.type);if(e.src){const t=iC(e.src);return sn.nativeSourceHandler.canPlayType(`video/${t}`)}return""},sn.nativeSourceHandler.handleSource=function(e,t,n){t.setSrc(e.src)},sn.nativeSourceHandler.dispose=function(){},sn.registerSourceHandler(sn.nativeSourceHandler),iz.registerTech("Html5",sn);const si=["progress","abort","suspend","emptied","stalled","loadedmetadata","loadeddata","timeupdate","resize","volumechange","texttrackchange"],sr={canplay:"CanPlay",canplaythrough:"CanPlayThrough",playing:"Playing",seeked:"Seeked"},ss=["tiny","xsmall","small","medium","large","xlarge","huge"],so={};ss.forEach(e=>{const t="x"===e.charAt(0)?`x-${e.substring(1)}`:e;so[e]=`vjs-layout-${t}`});const sa={tiny:210,xsmall:320,small:425,medium:768,large:1440,xlarge:2560,huge:1/0};class sl extends n6{constructor(e,t,n){if(e.id=e.id||t.id||`vjs_video_${nk()}`,(t=Object.assign(sl.getTagSettings(e),t)).initChildren=!1,t.createEl=!1,t.evented=!1,t.reportTouchActivity=!1,!t.language){const n=e.closest("[lang]");n&&(t.language=n.getAttribute("lang"))}if(super(null,t,n),this.boundDocumentFullscreenChange_=e=>this.documentFullscreenChange_(e),this.boundFullWindowOnEscKey_=e=>this.fullWindowOnEscKey(e),this.boundUpdateStyleEl_=e=>this.updateStyleEl_(e),this.boundApplyInitTime_=e=>this.applyInitTime_(e),this.boundUpdateCurrentBreakpoint_=e=>this.updateCurrentBreakpoint_(e),this.boundHandleTechClick_=e=>this.handleTechClick_(e),this.boundHandleTechDoubleClick_=e=>this.handleTechDoubleClick_(e),this.boundHandleTechTouchStart_=e=>this.handleTechTouchStart_(e),this.boundHandleTechTouchMove_=e=>this.handleTechTouchMove_(e),this.boundHandleTechTouchEnd_=e=>this.handleTechTouchEnd_(e),this.boundHandleTechTap_=e=>this.handleTechTap_(e),this.isFullscreen_=!1,this.log=tg(this.id_),this.fsApi_=tc,this.isPosterFromTech_=!1,this.queuedCallbacks_=[],this.isReady_=!1,this.hasStarted_=!1,this.userActive_=!1,this.debugEnabled_=!1,this.audioOnlyMode_=!1,this.audioPosterMode_=!1,this.audioOnlyCache_={playerHeight:null,hiddenChildren:[]},!this.options_||!this.options_.techOrder||!this.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(this.tag=e,this.tagAttributes=e&&t8(e),this.language(this.options_.language),t.languages){const e={};Object.getOwnPropertyNames(t.languages).forEach(function(n){e[n.toLowerCase()]=t.languages[n]}),this.languages_=e}else this.languages_=sl.prototype.options_.languages;this.resetCache_(),this.poster_=t.poster||"",this.controls_=!!t.controls,e.controls=!1,e.removeAttribute("controls"),this.changingSrc_=!1,this.playCallbacks_=[],this.playTerminatedQueue_=[],e.hasAttribute("autoplay")?this.autoplay(!0):this.autoplay(this.options_.autoplay),t.plugins&&Object.keys(t.plugins).forEach(e=>{if("function"!=typeof this[e])throw new Error(`plugin "${e}" does not exist`)}),this.scrubbing_=!1,this.el_=this.createEl(),n0(this,{eventBusKey:"el_"}),this.fsApi_.requestFullscreen&&(nM(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),this.on(this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_)),this.fluid_&&this.on(["playerreset","resize"],this.boundUpdateStyleEl_);const i=tw(this.options_);if(t.plugins&&Object.keys(t.plugins).forEach(e=>{this[e](t.plugins[e])}),t.debug&&this.debug(!0),this.options_.playerOptions=i,this.middleware_=[],this.playbackRates(t.playbackRates),t.experimentalSvgIcons){const e=(new(r())
vendor: 16,371 bytes, line 2
2.DOMParser).parseFromString('<svg xmlns="http://www.w3.org/2000/svg">\n <defs>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play">\n <path d="M16 10v28l22-14z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-pause">\n <path d="M12 38h8V10h-8v28zm16-28v28h8V10h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-audio">\n <path d="M24 2C14.06 2 6 10.06 6 20v14c0 3.31 2.69 6 6 6h6V24h-8v-4c0-7.73 6.27-14 14-14s14 6.27 14 14v4h-8v16h6c3.31 0 6-2.69 6-6V20c0-9.94-8.06-18-18-18z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-captions">\n <path d="M38 8H10c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h28c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM22 22h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2zm14 0h-3v-1h-4v6h4v-1h3v2a2 2 0 0 1-2 2h-6a2 2 0 0 1-2-2v-8a2 2 0 0 1 2-2h6a2 2 0 0 1 2 2v2z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-subtitles">\n <path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-enter">\n <path d="M14 28h-4v10h10v-4h-6v-6zm-4-8h4v-6h6v-4H10v10zm24 14h-6v4h10V28h-4v6zm-6-24v4h6v6h4V10H28z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-fullscreen-exit">\n <path d="M10 32h6v6h4V28H10v4zm6-16h-6v4h10V10h-4v6zm12 22h4v-6h6v-4H28v10zm4-22v-6h-4v10h10v-4h-6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-play-circle">\n <path d="M20 33l12-9-12-9v18zm4-29C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-mute">\n <path d="M33 24c0-3.53-2.04-6.58-5-8.05v4.42l4.91 4.91c.06-.42.09-.85.09-1.28zm5 0c0 1.88-.41 3.65-1.08 5.28l3.03 3.03C41.25 29.82 42 27 42 24c0-8.56-5.99-15.72-14-17.54v4.13c5.78 1.72 10 7.07 10 13.41zM8.55 6L6 8.55 15.45 18H6v12h8l10 10V26.55l8.51 8.51c-1.34 1.03-2.85 1.86-4.51 2.36v4.13a17.94 17.94 0 0 0 7.37-3.62L39.45 42 42 39.45l-18-18L8.55 6zM24 8l-4.18 4.18L24 16.36V8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-low">\n <path d="M14 18v12h8l10 10V8L22 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-medium">\n <path d="M37 24c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zm-27-6v12h8l10 10V8L18 18h-8z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-volume-high">\n <path d="M6 18v12h8l10 10V8L14 18H6zm27 6c0-3.53-2.04-6.58-5-8.05v16.11c2.96-1.48 5-4.53 5-8.06zM28 6.46v4.13c5.78 1.72 10 7.07 10 13.41s-4.22 11.69-10 13.41v4.13c8.01-1.82 14-8.97 14-17.54S36.01 8.28 28 6.46z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-spinner">\n <path d="M18.8 21l9.53-16.51C26.94 4.18 25.49 4 24 4c-4.8 0-9.19 1.69-12.64 4.51l7.33 12.69.11-.2zm24.28-3c-1.84-5.85-6.3-10.52-11.99-12.68L23.77 18h19.31zm.52 2H28.62l.58 1 9.53 16.5C41.99 33.94 44 29.21 44 24c0-1.37-.14-2.71-.4-4zm-26.53 4l-7.8-13.5C6.01 14.06 4 18.79 4 24c0 1.37.14 2.71.4 4h14.98l-2.31-4zM4.92 30c1.84 5.85 6.3 10.52 11.99 12.68L24.23 30H4.92zm22.54 0l-7.8 13.51c1.4.31 2.85.49 4.34.49 4.8 0 9.19-1.69 12.64-4.51L29.31 26.8 27.46 30z"></path>\n </symbol>\n <symbol viewBox="0 0 24 24" id="vjs-icon-hd">\n <path d="M19 3H5a2 2 0 0 0-2 2v14a2 2 0 0 0 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zm-8 12H9.5v-2h-2v2H6V9h1.5v2.5h2V9H11v6zm2-6h4c.55 0 1 .45 1 1v4c0 .55-.45 1-1 1h-4V9zm1.5 4.5h2v-3h-2v3z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-chapters">\n <path d="M6 26h4v-4H6v4zm0 8h4v-4H6v4zm0-16h4v-4H6v4zm8 8h28v-4H14v4zm0 8h28v-4H14v4zm0-20v4h28v-4H14z"></path>\n </symbol>\n <symbol viewBox="0 0 40 40" id="vjs-icon-downloading">\n <path d="M18.208 36.875q-3.208-.292-5.979-1.729-2.771-1.438-4.812-3.729-2.042-2.292-3.188-5.229-1.146-2.938-1.146-6.23 0-6.583 4.334-11.416 4.333-4.834 10.833-5.5v3.166q-5.167.75-8.583 4.646Q6.25 14.75 6.25 19.958q0 5.209 3.396 9.104 3.396 3.896 8.562 4.646zM20 28.417L11.542 20l2.083-2.083 4.917 4.916v-11.25h2.916v11.25l4.875-4.916L28.417 20zm1.792 8.458v-3.167q1.833-.25 3.541-.958 1.709-.708 3.167-1.875l2.333 2.292q-1.958 1.583-4.25 2.541-2.291.959-4.791 1.167zm6.791-27.792q-1.541-1.125-3.25-1.854-1.708-.729-3.541-1.021V3.042q2.5.25 4.77 1.208 2.271.958 4.271 2.5zm4.584 21.584l-2.25-2.25q1.166-1.5 1.854-3.209.687-1.708.937-3.541h3.209q-.292 2.5-1.229 4.791-.938 2.292-2.521 4.209zm.541-12.417q-.291-1.833-.958-3.562-.667-1.73-1.833-3.188l2.375-2.208q1.541 1.916 2.458 4.208.917 2.292 1.167 4.75z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download">\n <path d="M10.8 40.55q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h26.35v-7.7h3.4v7.7q0 1.4-1 2.4t-2.4 1zM24 32.1L13.9 22.05l2.45-2.45 5.95 5.95V7.15h3.4v18.4l5.95-5.95 2.45 2.45z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-done">\n <path d="M9.8 40.5v-3.45h28.4v3.45zm9.2-9.05L7.4 19.85l2.45-2.35L19 26.65l19.2-19.2 2.4 2.4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-file-download-off">\n <path d="M4.9 4.75L43.25 43.1 41 45.3l-4.75-4.75q-.05.05-.075.025-.025-.025-.075-.025H10.8q-1.35 0-2.375-1T7.4 37.15v-7.7h3.4v7.7h22.05l-7-7-1.85 1.8L13.9 21.9l1.85-1.85L2.7 7zm26.75 14.7l2.45 2.45-3.75 3.8-2.45-2.5zM25.7 7.15V21.1l-3.4-3.45V7.15z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-share">\n <path d="M36 32.17c-1.52 0-2.89.59-3.93 1.54L17.82 25.4c.11-.45.18-.92.18-1.4s-.07-.95-.18-1.4l14.1-8.23c1.07 1 2.5 1.62 4.08 1.62 3.31 0 6-2.69 6-6s-2.69-6-6-6-6 2.69-6 6c0 .48.07.95.18 1.4l-14.1 8.23c-1.07-1-2.5-1.62-4.08-1.62-3.31 0-6 2.69-6 6s2.69 6 6 6c1.58 0 3.01-.62 4.08-1.62l14.25 8.31c-.1.42-.16.86-.16 1.31A5.83 5.83 0 1 0 36 32.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cog">\n <path d="M38.86 25.95c.08-.64.14-1.29.14-1.95s-.06-1.31-.14-1.95l4.23-3.31c.38-.3.49-.84.24-1.28l-4-6.93c-.25-.43-.77-.61-1.22-.43l-4.98 2.01c-1.03-.79-2.16-1.46-3.38-1.97L29 4.84c-.09-.47-.5-.84-1-.84h-8c-.5 0-.91.37-.99.84l-.75 5.3a14.8 14.8 0 0 0-3.38 1.97L9.9 10.1a1 1 0 0 0-1.22.43l-4 6.93c-.25.43-.14.97.24 1.28l4.22 3.31C9.06 22.69 9 23.34 9 24s.06 1.31.14 1.95l-4.22 3.31c-.38.3-.49.84-.24 1.28l4 6.93c.25.43.77.61 1.22.43l4.98-2.01c1.03.79 2.16 1.46 3.38 1.97l.75 5.3c.08.47.49.84.99.84h8c.5 0 .91-.37.99-.84l.75-5.3a14.8 14.8 0 0 0 3.38-1.97l4.98 2.01a1 1 0 0 0 1.22-.43l4-6.93c.25-.43.14-.97-.24-1.28l-4.22-3.31zM24 31c-3.87 0-7-3.13-7-7s3.13-7 7-7 7 3.13 7 7-3.13 7-7 7z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-square">\n <path d="M36 8H12c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h24c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zm0 28H12V12h24v24z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle">\n <circle cx="24" cy="24" r="20"></circle>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-outline">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-circle-inner-circle">\n <path d="M24 4C12.97 4 4 12.97 4 24s8.97 20 20 20 20-8.97 20-20S35.03 4 24 4zm0 36c-8.82 0-16-7.18-16-16S15.18 8 24 8s16 7.18 16 16-7.18 16-16 16zm6-16c0 3.31-2.69 6-6 6s-6-2.69-6-6 2.69-6 6-6 6 2.69 6 6z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cancel">\n <path d="M24 4C12.95 4 4 12.95 4 24s8.95 20 20 20 20-8.95 20-20S35.05 4 24 4zm10 27.17L31.17 34 24 26.83 16.83 34 14 31.17 21.17 24 14 16.83 16.83 14 24 21.17 31.17 14 34 16.83 26.83 24 34 31.17z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-replay">\n <path d="M24 10V2L14 12l10 10v-8c6.63 0 12 5.37 12 12s-5.37 12-12 12-12-5.37-12-12H8c0 8.84 7.16 16 16 16s16-7.16 16-16-7.16-16-16-16z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-repeat">\n <path d="M14 14h20v6l8-8-8-8v6H10v12h4v-8zm20 20H14v-6l-8 8 8 8v-6h24V26h-4v8z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-5">\n <path d="M17.689 98l-8.697 8.696 8.697 8.697 2.486-2.485-4.32-4.319h1.302c4.93 0 9.071 1.722 12.424 5.165 3.352 3.443 5.029 7.638 5.029 12.584h3.55c0-2.958-.553-5.73-1.658-8.313-1.104-2.583-2.622-4.841-4.555-6.774-1.932-1.932-4.19-3.45-6.773-4.555-2.584-1.104-5.355-1.657-8.313-1.657H15.5l4.615-4.615zm-8.08 21.659v13.861h11.357v5.008H9.609V143h12.7c.834 0 1.55-.298 2.146-.894.596-.597.895-1.31.895-2.145v-7.781c0-.835-.299-1.55-.895-2.147a2.929 2.929 0 0 0-2.147-.894h-8.227v-5.096H25.35v-4.384z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-10">\n <path d="M42.315 125.63c0-4.997-1.694-9.235-5.08-12.713-3.388-3.479-7.571-5.218-12.552-5.218h-1.315l4.363 4.363-2.51 2.51-8.787-8.786L25.221 97l2.45 2.45-4.662 4.663h1.375c2.988 0 5.788.557 8.397 1.673 2.61 1.116 4.892 2.65 6.844 4.602 1.953 1.953 3.487 4.234 4.602 6.844 1.116 2.61 1.674 5.41 1.674 8.398zM8.183 142v-19.657H3.176V117.8h9.643V142zm13.63 0c-1.156 0-2.127-.393-2.912-1.178-.778-.778-1.168-1.746-1.168-2.902v-16.04c0-1.156.393-2.127 1.178-2.912.779-.779 1.746-1.168 2.902-1.168h7.696c1.156 0 2.126.392 2.911 1.177.779.78 1.168 1.747 1.168 2.903v16.04c0 1.156-.392 2.127-1.177 2.912-.779.779-1.746 1.168-2.902 1.168zm.556-4.636h6.583v-15.02H22.37z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-replay-30">\n <path d="M26.047 97l-8.733 8.732 8.733 8.733 2.496-2.494-4.336-4.338h1.307c4.95 0 9.108 1.73 12.474 5.187 3.367 3.458 5.051 7.668 5.051 12.635h3.565c0-2.97-.556-5.751-1.665-8.346-1.109-2.594-2.633-4.862-4.574-6.802-1.94-1.941-4.208-3.466-6.803-4.575-2.594-1.109-5.375-1.664-8.345-1.664H23.85l4.634-4.634zM2.555 117.531v4.688h10.297v5.25H5.873v4.687h6.979v5.156H2.555V142H13.36c1.061 0 1.95-.395 2.668-1.186.718-.79 1.076-1.772 1.076-2.94v-16.218c0-1.168-.358-2.149-1.076-2.94-.717-.79-1.607-1.185-2.668-1.185zm22.482.14c-1.149 0-2.11.39-2.885 1.165-.78.78-1.172 1.744-1.172 2.893v15.943c0 1.149.388 2.11 1.163 2.885.78.78 1.745 1.172 2.894 1.172h7.649c1.148 0 2.11-.388 2.884-1.163.78-.78 1.17-1.745 1.17-2.894v-15.943c0-1.15-.386-2.111-1.16-2.885-.78-.78-1.746-1.172-2.894-1.172zm.553 4.518h6.545v14.93H25.59z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-5">\n <path d="M29.508 97l-2.431 2.43 4.625 4.625h-1.364c-2.965 0-5.742.554-8.332 1.66-2.589 1.107-4.851 2.629-6.788 4.566-1.937 1.937-3.458 4.2-4.565 6.788-1.107 2.59-1.66 5.367-1.66 8.331h3.557c0-4.957 1.68-9.16 5.04-12.611 3.36-3.45 7.51-5.177 12.451-5.177h1.304l-4.326 4.33 2.49 2.49 8.715-8.716zm-9.783 21.61v13.89h11.382v5.018H19.725V142h12.727a2.93 2.93 0 0 0 2.15-.896 2.93 2.93 0 0 0 .896-2.15v-7.798c0-.837-.299-1.554-.896-2.152a2.93 2.93 0 0 0-2.15-.896h-8.245V123h11.29v-4.392z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-10">\n <path d="M23.119 97l-2.386 2.383 4.538 4.538h-1.339c-2.908 0-5.633.543-8.173 1.63-2.54 1.085-4.76 2.577-6.66 4.478-1.9 1.9-3.392 4.12-4.478 6.66-1.085 2.54-1.629 5.264-1.629 8.172h3.49c0-4.863 1.648-8.986 4.944-12.372 3.297-3.385 7.368-5.078 12.216-5.078h1.279l-4.245 4.247 2.443 2.442 8.55-8.55zm-9.52 21.45v4.42h4.871V142h4.513v-23.55zm18.136 0c-1.125 0-2.066.377-2.824 1.135-.764.764-1.148 1.709-1.148 2.834v15.612c0 1.124.38 2.066 1.139 2.824.764.764 1.708 1.145 2.833 1.145h7.489c1.125 0 2.066-.378 2.824-1.136.764-.764 1.145-1.709 1.145-2.833v-15.612c0-1.125-.378-2.067-1.136-2.825-.764-.764-1.708-1.145-2.833-1.145zm.54 4.42h6.408v14.617h-6.407z"></path>\n </symbol>\n <symbol viewBox="0 96 48 48" id="vjs-icon-forward-30">\n <path d="M25.549 97l-2.437 2.434 4.634 4.635H26.38c-2.97 0-5.753.555-8.347 1.664-2.594 1.109-4.861 2.633-6.802 4.574-1.94 1.94-3.465 4.207-4.574 6.802-1.109 2.594-1.664 5.377-1.664 8.347h3.565c0-4.967 1.683-9.178 5.05-12.636 3.366-3.458 7.525-5.187 12.475-5.187h1.307l-4.335 4.338 2.495 2.494 8.732-8.732zm-11.553 20.53v4.689h10.297v5.249h-6.978v4.688h6.978v5.156H13.996V142h10.808c1.06 0 1.948-.395 2.666-1.186.718-.79 1.077-1.771 1.077-2.94v-16.217c0-1.169-.36-2.15-1.077-2.94-.718-.79-1.605-1.186-2.666-1.186zm21.174.168c-1.149 0-2.11.389-2.884 1.163-.78.78-1.172 1.745-1.172 2.894v15.942c0 1.15.388 2.11 1.162 2.885.78.78 1.745 1.17 2.894 1.17h7.649c1.149 0 2.11-.386 2.885-1.16.78-.78 1.17-1.746 1.17-2.895v-15.942c0-1.15-.387-2.11-1.161-2.885-.78-.78-1.745-1.172-2.894-1.172zm.552 4.516h6.542v14.931h-6.542z"></path>\n </symbol>\n <symbol viewBox="0 0 512 512" id="vjs-icon-audio-description">\n <g fill-rule="evenodd"><path d="M227.29 381.351V162.993c50.38-1.017 89.108-3.028 117.631 17.126 27.374 19.342 48.734 56.965 44.89 105.325-4.067 51.155-41.335 94.139-89.776 98.475-24.085 2.155-71.972 0-71.972 0s-.84-1.352-.773-2.568m48.755-54.804c31.43 1.26 53.208-16.633 56.495-45.386 4.403-38.51-21.188-63.552-58.041-60.796v103.612c-.036 1.466.575 2.22 1.546 2.57"></path><path d="M383.78 381.328c13.336 3.71 17.387-11.06 23.215-21.408 12.722-22.571 22.294-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.226 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M425.154 381.328c13.336 3.71 17.384-11.061 23.215-21.408 12.721-22.571 22.291-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.511c-.586 3.874 2.226 7.315 3.866 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894"></path><path d="M466.26 381.328c13.337 3.71 17.385-11.061 23.216-21.408 12.722-22.571 22.292-51.594 22.445-84.774.221-47.594-18.343-82.517-35.6-106.182h-8.51c-.587 3.874 2.225 7.315 3.865 10.276 13.166 23.762 25.367 56.553 25.54 94.194.2 43.176-14.162 79.278-30.955 107.894M4.477 383.005H72.58l18.573-28.484 64.169-.135s.065 19.413.065 28.62h48.756V160.307h-58.816c-5.653 9.537-140.85 222.697-140.85 222.697zm152.667-145.282v71.158l-40.453-.27 40.453-70.888z"></path></g>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-next-item">\n <path d="M12 36l17-12-17-12v24zm20-24v24h4V12h-4z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-previous-item">\n <path d="M12 12h4v24h-4zm7 12l17 12V12z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-shuffle">\n <path d="M21.17 18.34L10.83 8 8 10.83l10.34 10.34 2.83-2.83zM29 8l4.09 4.09L8 37.17 10.83 40l25.09-25.09L40 19V8H29zm.66 18.83l-2.83 2.83 6.26 6.26L29 40h11V29l-4.09 4.09-6.25-6.26z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-cast">\n <path d="M42 6H6c-2.21 0-4 1.79-4 4v6h4v-6h36v28H28v4h14c2.21 0 4-1.79 4-4V10c0-2.21-1.79-4-4-4zM2 36v6h6c0-3.31-2.69-6-6-6zm0-8v4c5.52 0 10 4.48 10 10h4c0-7.73-6.27-14-14-14zm0-8v4c9.94 0 18 8.06 18 18h4c0-12.15-9.85-22-22-22z"></path>\n </symbol>\n <symbol viewBox="0 0 48 48" id="vjs-icon-picture-in-picture-enter">\n <path d="M38 22H22v11.99h16V22zm8 16V9.96C46 7.76 44.2 6 42 6H6C3.8 6 2 7.76 2 9.96V38c0 2.2 1.8 4 4 4h36c2.2 0 4-1.8 4-4zm-4 .04H6V9.94h36v28.1z"></path>\n </symbol>\n <symbol viewBox="0 0 22 18" id="vjs-icon-picture-in-picture-exit">\n <path d="M18 4H4v10h14V4zm4 12V1.98C22 .88 21.1 0 20 0H2C.9 0 0 .88 0 1.98V16c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H2V1.97h18v14.05z"></path>\n <path fill="none" d="M-1-3h24v24H-1z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-facebook">\n <path d="M1343 12v264h-157q-86 0-116 36t-30 108v189h293l-39 296h-254v759H734V905H479V609h255V391q0-186 104-288.5T1115 0q147 0 228 12z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-linkedin">\n <path d="M477 625v991H147V625h330zm21-306q1 73-50.5 122T312 490h-2q-82 0-132-49t-50-122q0-74 51.5-122.5T314 148t133 48.5T498 319zm1166 729v568h-329v-530q0-105-40.5-164.5T1168 862q-63 0-105.5 34.5T999 982q-11 30-11 81v553H659q2-399 2-647t-1-296l-1-48h329v144h-2q20-32 41-56t56.5-52 87-43.5T1285 602q171 0 275 113.5t104 332.5z"></path>\n </symbol>\n <symbol viewBox="0 0 1
2792 1792" id="vjs-icon-twitter">\n <path d="M1684 408q-67 98-162 167 1 14 1 42 0 130-38 259.5T1369.5 1125 1185 1335.5t-258 146-323 54.5q-271 0-496-145 35 4 78 4 225 0 401-138-105-2-188-64.5T285 1033q33 5 61 5 43 0 85-11-112-23-185.5-111.5T172 710v-4q68 38 146 41-66-44-105-115t-39-154q0-88 44-163 121 149 294.5 238.5T884 653q-8-38-8-74 0-134 94.5-228.5T1199 256q140 0 236 102 109-21 205-78-37 115-142 178 93-10 186-50z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-tumblr">\n <path d="M1328 1329l80 237q-23 35-111 66t-177 32q-104 2-190.5-26T787 1564t-95-106-55.5-120-16.5-118V676H452V461q72-26 129-69.5t91-90 58-102 34-99T779 12q1-5 4.5-8.5T791 0h244v424h333v252h-334v518q0 30 6.5 56t22.5 52.5 49.5 41.5 81.5 14q78-2 134-29z"></path>\n </symbol>\n <symbol viewBox="0 0 1792 1792" id="vjs-icon-pinterest">\n <path d="M1664 896q0 209-103 385.5T1281.5 1561 896 1664q-111 0-218-32 59-93 78-164 9-34 54-211 20 39 73 67.5t114 28.5q121 0 216-68.5t147-188.5 52-270q0-114-59.5-214T1180 449t-255-63q-105 0-196 29t-154.5 77-109 110.5-67 129.5T377 866q0 104 40 183t117 111q30 12 38-20 2-7 8-31t8-30q6-23-11-43-51-61-51-151 0-151 104.5-259.5T904 517q151 0 235.5 82t84.5 213q0 170-68.5 289T980 1220q-61 0-98-43.5T859 1072q8-35 26.5-93.5t30-103T927 800q0-50-27-83t-77-33q-62 0-105 57t-43 142q0 73 25 122l-99 418q-17 70-13 177-206-91-333-281T128 896q0-209 103-385.5T510.5 231 896 128t385.5 103T1561 510.5 1664 896z"></path>\n </symbol>\n </defs>\n</svg>',"image/svg+xml");if(e.querySelector("parsererror"))tm.warn("Failed to load SVG Icons. Falling back to Font Icons."),this.options_.experimentalSvgIcons=null;else{const t=e.documentElement;t.style.display="none",this.el_.appendChild(t),this.addClass("vjs-svg-icons-enabled")}}this.initChildren(),this.isAudio("audio"===e.nodeName.toLowerCase()),this.controls()?this.addClass("vjs-controls-enabled"):this.addClass("vjs-controls-disabled"),this.el_.setAttribute("role","region"),this.isAudio()?this.el_.setAttribute("aria-label",this.localize("Audio Player")):this.el_.setAttribute("aria-label",this.localize("Video Player")),this.isAudio()&&this.addClass("vjs-audio"),tq&&this.addClass("vjs-touch-enabled"),tH||this.addClass("vjs-workinghover"),sl.players[this.id_]=this;const s=to.split(".")[0];this.addClass(`vjs-v${s}`),this.userActive(!0),this.reportUserActivity(),this.one("play",e=>this.listenForUserActivity_(e)),this.on("keydown",e=>this.handleKeyDown(e)),this.on("languagechange",e=>this.handleLanguagechange(e)),this.breakpoints(this.options_.breakpoints),this.responsive(this.options_.responsive),this.on("ready",()=>{this.audioPosterMode(this.options_.audioPosterMode),this.audioOnlyMode(this.options_.audioOnlyMode)})}dispose(){this.trigger("dispose"),this.off("dispose"),nO(o(),this.fsApi_.fullscreenchange,this.boundDocumentFullscreenChange_),nO(o(),"keydown",this.boundFullWindowOnEscKey_),this.styleEl_&&this.styleEl_.parentNode&&(this.styleEl_.parentNode.removeChild(this.styleEl_),this.styleEl_=null),sl.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),iq[this.id()]=null,iB.names.forEach(e=>{const t=this[iB[e].getterName]();t&&t.off&&t.off()}),super.dispose({restoreEl:this.options_.restoreEl})}createEl(){let e,t=this.tag,n=this.playerElIngest_=t.parentNode&&t.parentNode.hasAttribute&&t.parentNode.hasAttribute("data-vjs-player");const i="video-js"===this.tag.tagName.toLowerCase();n?e=this.el_=t.parentNode:i||(e=this.el_=super.createEl("div"));const s=t8(t);if(i){for(e=this.el_=t,t=this.tag=o().createElement("video");e.children.length;)t.appendChild(e.firstChild);t1(e,"video-js")||t2(e,"video-js"),e.appendChild(t),n=this.playerElIngest_=e,Object.keys(e).forEach(n=>{try{t[n]=e[n]}catch(e){}})}if(t.setAttribute("tabindex","-1"),s.tabindex="-1",tP&&tB&&(t.setAttribute("role","application"),s.role="application"),t.removeAttribute("width"),t.removeAttribute("height"),"width"in s&&delete s.width,"height"in s&&delete s.height,Object.getOwnPropertyNames(s).forEac
2h(function(n){i&&"class"===n||e.setAttribute(n,s[n]),i&&t.setAttribute(n,s[n])}),t.playerId=t.id,t.id+="_html5_api",t.className="vjs-tech",t.player=e.player=this,this.addClass("vjs-paused"),!0!==r().VIDEOJS_NO_DYNAMIC_STYLE){this.styleEl_=nT("vjs-styles-dimensions");const e=nd(".vjs-styles-defaults"),t=nd("head");t.insertBefore(this.styleEl_,e?e.nextSibling:t.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);const a=t.getElementsByTagName("a");for(let e=0;e<a.length;e++){const t=a.item(e);t2(t,"vjs-hidden"),t.setAttribute("hidden","hidden")}return t.initNetworkState_=t.networkState,t.parentNode&&!n&&t.parentNode.insertBefore(e,t),t0(t,e),this.children_.unshift(t),this.el_.setAttribute("lang",this.language_),this.el_.setAttribute("translate","no"),this.el_=e,e}crossOrigin(e){if(void 0===e)return this.techGet_("crossOrigin");null===e||"anonymous"===e||"use-credentials"===e?(this.techCall_("setCrossOrigin",e),this.posterImage&&this.posterImage.crossOrigin(e)):tm.warn(`crossOrigin must be null, "anonymous" or "use-credentials", given "${e}"`)}width(e){return this.dimension("width",e)}height(e){return this.dimension("height",e)}dimension(e,t){const n=e+"_";if(void 0===t)return this[n]||0;if(""===t||"auto"===t)return this[n]=void 0,void this.updateStyleEl_();const i=parseFloat(t);isNaN(i)?tm.error(`Improper value "${t}" supplied for for ${e}`):(this[n]=i,this.updateStyleEl_())}fluid(e){if(void 0===e)return!!this.fluid_;var t,n;this.fluid_=!!e,nG(this)&&this.off(["playerreset","resize"],this.boundUpdateStyleEl_),e?(this.addClass("vjs-fluid"),this.fill(!1),n=()=>{this.on(["playerreset","resize"],this.boundUpdateStyleEl_)},nG(t=this)?n():(t.eventedCallbacks||(t.eventedCallbacks=[]),t.eventedCallbacks.push(n))):this.removeClass("vjs-fluid"),this.updateStyleEl_()}fill(e){if(void 0===e)return!!this.fill_;this.fill_=!!e,e?(this.addClass("vjs-fill"),this.fluid(!1)):this.removeClass("vjs-fill")}aspectRatio(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_()}updateStyleEl_(){if(!0===r().VIDEOJS_NO_DYNAMIC_STYLE){const e="number"==typeof this.width_?this.width_:this.options_.width,t="number"==typeof this.height_?this.height_:this.options_.height,n=this.tech_&&this.tech_.el();return void(n&&(e>=0&&(n.width=e),t>=0&&(n.height=t)))}let e,t,n,i;n=void 0!==this.aspectRatio_&&"auto"!==this.aspectRatio_?this.aspectRatio_:this.videoWidth()>0?this.videoWidth()+":"+this.videoHeight():"16:9";const s=n.split(":"),o=s[1]/s[0];e=void 0!==this.width_?this.width_:void 0!==this.height_?this.height_/o:this.videoWidth()||300,t=void 0!==this.height_?this.height_:e*o,i=/^[^a-zA-Z]/.test(this.id())?"dimensions-"+this.id():this.id()+"-dimensions",this.addClass(i),nj(this.styleEl_,` 3 .${i} { 4 width: ${e}px; 5 height: ${t}px; 6 } 7 8 .${i}.vjs-fluid:not(.vjs-audio-only-mode) { 9 padding-top: ${100*o}%; 10 } 11 `)}loadTech_(e,t){this.tech_&&this.unloadTech_();const n=n3(e),i=e.charAt(0).toLowerCase()+e.slice(1);"Html5"!==n&&this.tag&&(iz.getTech("Html5").disposeMediaElement(this.tag),this.tag.player=null,this.tag=null),this.techName_=n,this.isReady_=!1;let r=this.autoplay();("string"==typeof this.autoplay()||!0===this.autoplay()&&this.options_.normalizeAutoplay)&&(r=!1);const s={source:t,autoplay:r,nativeControlsForTouch:this.options_.nativeControlsForTouch,playerId:this.id(),techId:`${this.id()}_${i}_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};
vendor: 3,042 bytes, line 11
11iB.names.forEach(e=>{const t=iB[e];s[t.getterName]=this[t.privateName]}),Object.assign(s,this.options_[n]),Object.assign(s,this.options_[i]),Object.assign(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);const o=iz.getTech(e);if(!o)throw new Error(`No Tech named '${n}' exists! '${n}' should be registered using videojs.registerTech()'`);var a,l;this.tech_=new o(s),this.tech_.ready(nB(this,this.handleTechReady_),!0),a=this.textTracksJson_||[],l=this.tech_,a.forEach(function(e){const t=l.addRemoteTextTrack(e).track;!e.src&&e.cues&&e.cues.forEach(e=>t.addCue(e))}),l.textTracks(),si.forEach(e=>{this.on(this.tech_,e,t=>this[`handleTech${n3(e)}_`](t))}),Object.keys(sr).forEach(e=>{this.on(this.tech_,e,t=>{0===this.tech_.playbackRate()&&this.tech_.seeking()?this.queuedCallbacks_.push({callback:this[`handleTech${sr[e]}_`].bind(this),event:t}):this[`handleTech${sr[e]}_`](t)})}),this.on(this.tech_,"loadstart",e=>this.handleTechLoadStart_(e)),this.on(this.tech_,"sourceset",e=>this.handleTechSourceset_(e)),this.on(this.tech_,"waiting",e=>this.handleTechWaiting_(e)),this.on(this.tech_,"ended",e=>this.handleTechEnded_(e)),this.on(this.tech_,"seeking",e=>this.handleTechSeeking_(e)),this.on(this.tech_,"play",e=>this.handleTechPlay_(e)),this.on(this.tech_,"pause",e=>this.handleTechPause_(e)),this.on(this.tech_,"durationchange",e=>this.handleTechDurationChange_(e)),this.on(this.tech_,"fullscreenchange",(e,t)=>this.handleTechFullscreenChange_(e,t)),this.on(this.tech_,"fullscreenerror",(e,t)=>this.handleTechFullscreenError_(e,t)),this.on(this.tech_,"enterpictureinpicture",e=>this.handleTechEnterPictureInPicture_(e)),this.on(this.tech_,"leavepictureinpicture",e=>this.handleTechLeavePictureInPicture_(e)),this.on(this.tech_,"error",e=>this.handleTechError_(e)),this.on(this.tech_,"posterchange",e=>this.handleTechPosterChange_(e)),this.on(this.tech_,"textdata",e=>this.handleTechTextData_(e)),this.on(this.tech_,"ratechange",e=>this.handleTechRateChange_(e)),this.on(this.tech_,"loadedmetadata",this.boundUpdateStyleEl_),this.usingNativeControls(this.techGet_("controls")),this.controls()&&!this.usingNativeControls()&&this.addTechControlsListeners_(),this.tech_.el().parentNode===this.el()||"Html5"===n&&this.tag||t0(this.tech_.el(),this.el()),this.tag&&(this.tag.player=null,this.tag=null)}unloadTech_(){iB.names.forEach(e=>{const t=iB[e];this[t.privateName]=this[t.getterName]()}),this.textTracksJson_=function(e){const t=e.$$("track"),n=Array.prototype.map.call(t,e=>e.track);return Array.prototype.map.call(t,function(e){const t=ih(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(ih))}(this.tech_),this.isReady_=!1,this.tech_.dispose(),this.tech_=!1,this.isPosterFromTech_&&(this.poster_="",this.trigger("posterchange")),this.isPosterFromTech_=!1}tech(e){return void 0===e&&tm.warn("Using the tech directly can be dangerous. I hope you know
11what you're doing.\nSee https://github.com/videojs/video.js/issues/2617 for more info.\n"),this.tech_}addTechControlsListeners_(){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_)}removeTechControlsListeners_(){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_)}handleTechReady_(){this.triggerReady(),this.cache_.volume&&this.techCall_("setVolume",this.cache_.volume),this.handleTechPosterChange_(),this.handleTechDurationChange_()}handleTechLoadStart_(){this.removeClass("vjs-ended","vjs-seeking"),this.error(null),this.handleTechDurationChange_(),this.paused()?(this.hasStarted(!1),this.trigger("loadstart")):this.trigger("loadstart"),this.manualAutoplay_(!0===this.autoplay()&&this.options_.normalizeAutoplay?"play":this.autoplay())}manualAutoplay_(e){if(!this.tech_||"string"!=typeof e)return;const t=()=>{const e=this.muted();this.muted(!0);const t=()=>{this.muted(e)};this.playTerminatedQueue_.push(t);const n=this.play();if(ic(n))return n.catch(e=>{throw t(),new Error(`Rejection at manualAutoplay. Restoring muted value. ${e||""}`)})};let n;return"any"!==e||this.muted()?n="muted"!==e||this.muted()?this.play():t():(n=this.play(),ic(n)&&(n=n.catch(t))),ic(n)?n.then(()=>{this.trigger({type:"autoplay-success",autoplay:e})}).catch(()=>{this.trigger({type:"autoplay-failure",autoplay:e})}):void 0}updateSourceCaches_(e=""){let 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=((e,t)=>{if(!t)return"";if(e.cache_.source.src===t&&e.cache_.source.type)return e.cache_.source.type;const n=e.cache_.sources.filter(e=>e.src===t);if(n.length)return n[0].type;const i=e.$$("source");for(let e=0;e<i.length;e++){const n=i[e];if(n.type&&n.src&&n.src===t)return n.type}return iK(t)})(this,t)),this.cache_.source=tw({},e,{src:t,type:n});const i=this.cache_.sources.filter(e=>e.src&&e.src===t),r=[],s=this.$$("source"),o=[];for(let e=0;e<s.length;e++){const n=t8(s[e]);r.push(n),n.src&&n.src===t&&o.push(n.src)}o.length&&!i.length?this.cache_.sources=r:i.length||(this.cache_.sources=[this.cache_.source]),this.cache_.src=t}handleTechSourceset_(e){if(!this.changingSrc_){let t=e=>this.updateSourceCaches_(e);const n=this.currentSource().src,i=e.src;n&&!/^blob:/.test(n)&&/^blob:/.test(i)&&(!this.lastSource_||this.lastSource_.tech!==i&&this.lastSource_.player!==n)&&(t=()=>{}),t(i),e.src||this.tech_.any(["sourceset","loadstart"],e=>{if("sourceset"===e.type)return;const t=this.techGet_("currentSrc");this.lastSource_.tech=t,this.updateSourceCaches_(t)})}this.lastSource_={player:this.currentSource().src,tech:e.src},this.trigger({src:e.src,type:"sourceset"})}hasStarted(e){if(void 0===e)return this.hasStarted_;e!==this.hasStarted_&&(this.hasStarted_=e,this.hasStarted_?this.addClass("vjs-has-started"):this.removeClass("vjs-has-started"))}handleTechPlay_(){this.removeClass("vjs-ended","vjs-paused"),this.addClass("vjs-playing"),this.hasStarted(!0),this.trigger("play")}handleTechRateChange_(){this.tech_.playbackRate()>0&&0===this.cache_.lastPlaybackRate&&(this.queuedCallbacks_.forEach(e=>e.callback(e.event)),this.queuedCallbacks_=[]),this.cache_.lastPlaybackRate=this.tech_.playbackRate(),this.trigger("ratechange")}handleTechWaiting_(){this.addClass("vjs-waiting"),this.trigger("waiting");const e=this.currentTime(),t=()=>{e!==this.currentTime()&&(this.removeClass("vjs-waiting"),this.off("timeupdate",t))};this.on("timeupdate",t)}handleTechCanPlay_(){this.removeClass("vjs-waiting"),this.trigger("canplay")}handleTechCanPlayThrough_(){this.removeClass("vjs-waiting"),this.trigger("canplaythrough")}handleTechPlaying_(){this.removeClass("vjs-waiting"),this.trigger("playing")}handleTechSeeking_(){this.addClass("vjs-seeking"),this.trigger("seeking")}
vendor: 8,541 bytes, line 11
11handleTechSeeked_(){this.removeClass("vjs-seeking","vjs-ended"),this.trigger("seeked")}handleTechPause_(){this.removeClass("vjs-playing"),this.addClass("vjs-paused"),this.trigger("pause")}handleTechEnded_(){this.addClass("vjs-ended"),this.removeClass("vjs-waiting"),this.options_.loop?(this.currentTime(0),this.play()):this.paused()||this.pause(),this.trigger("ended")}handleTechDurationChange_(){this.duration(this.techGet_("duration"))}handleTechClick_(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()?id(this.play()):this.pause()))}handleTechDoubleClick_(e){this.controls_&&(Array.prototype.some.call(this.$$(".vjs-control-bar, .vjs-modal-dialog"),t=>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()))}handleTechTap_(){this.userActive(!this.userActive())}handleTechTouchStart_(){this.userWasActive=this.userActive()}handleTechTouchMove_(){this.userWasActive&&this.reportUserActivity()}handleTechTouchEnd_(e){e.cancelable&&e.preventDefault()}toggleFullscreenClass_(){this.isFullscreen()?this.addClass("vjs-fullscreen"):this.removeClass("vjs-fullscreen")}documentFullscreenChange_(e){const t=e.target.player;if(t&&t!==this)return;const n=this.el();let i=o()[this.fsApi_.fullscreenElement]===n;!i&&n.matches&&(i=n.matches(":"+this.fsApi_.fullscreen)),this.isFullscreen(i)}handleTechFullscreenChange_(e,t){t&&(t.nativeIOSFullscreen&&(this.addClass("vjs-ios-native-fs"),this.tech_.one("webkitendfullscreen",()=>{this.removeClass("vjs-ios-native-fs")})),this.isFullscreen(t.isFullscreen))}handleTechFullscreenError_(e,t){this.trigger("fullscreenerror",t)}togglePictureInPictureClass_(){this.isInPictureInPicture()?this.addClass("vjs-picture-in-picture"):this.removeClass("vjs-picture-in-picture")}handleTechEnterPictureInPicture_(e){this.isInPictureInPicture(!0)}handleTechLeavePictureInPicture_(e){this.isInPictureInPicture(!1)}handleTechError_(){const e=this.tech_.error();e&&this.error(e)}handleTechTextData_(){let e=null;arguments.length>1&&(e=arguments[1]),this.trigger("textdata",e)}getCache(){return this.cache_}resetCache_(){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}}techCall_(e,t){this.ready(function(){if(e in i$)return function(e,t,n,i){return t[n](e.reduce(iZ(n),i))}(this.middleware_,this.tech_,e,t);if(e in iQ)return iW(this.middleware_,this.tech_,e,t);try{this.tech_&&this.tech_[e](t)}catch(e){throw tm(e),e}},!0)}techGet_(e){if(this.tech_&&this.tech_.isReady_){if(e in iG)return function(e,t,n){return e.reduceRight(iZ(n),t[n]())}(this.middleware_,this.tech_,e);if(e in iQ)return iW(this.middleware_,this.tech_,e);try{return this.tech_[e]()}catch(t){if(void 0===this.tech_[e])throw tm(`Video.js: ${e} method not defined for ${this.techName_} playback technology.`,t),t;if("TypeError"===t.name)throw tm(`Video.js: ${e} unavailable on ${this.techName_} playback technology element.`,t),this.tech_.isReady_=!1,t;throw tm(t),t}}}play(){return new Promise(e=>{this.play_(e)})}play_(e=id){this.playCallbacks_.push(e);const t=Boolean(!this.changingSrc_&&(this.src()||this.currentSrc())),n=Boolean(tW||tH);if(this.waitToPlay_&&(this.off(["ready","loadstart"],this.waitToPlay_),this.waitToPlay_=null),!this.isReady_||!t)return this.waitToPlay_=e=>{this.play_()},this.one(["ready","loadstart"],this.waitToPlay_),void(!t&&n&&this.load());const i=this.techGet_("play");n&&this.hasClass("vjs-ended")&&this.resetProgressBar_(),null===i?this.runPlayTerminatedQueue_():this.runPlayCallbacks_(i)}runPlayTerminatedQueue_(){const e=this.playTerminatedQueue_.slice(0);this.playTerminatedQueue_=[],e.forEach(function(e){e()})}runPlayCallbacks_(e){const t=this.playCallbacks_.slice(0);this.playCallbacks_=[],this.playTerminatedQueue_=[],t.forEach(function(t){t(e)})}pause(){this.techCall_("pause")}paused(){return!1!==this.techGet_("paused")}played(){return this.techGet_("played")||ie(0,0)}scrubbing(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")}currentTime(e){return void 0===e?(this.cache_.currentTime=this.techGet_("currentTime")||0,this.cache_.currentTime):(e<0&&(e=0),this.isReady_&&!this.changingSrc_&&this.tech_&&this.tech_.isReady_?(this.techCall_("setCurrentTime",e),this.cache_.initTime=0,void(isFinite(e)&&(this.cache_.currentTime=Number(e)))):(this.cache_.initTime=e,this.off("canplay",this.boundApplyInitTime_),void this.one("canplay",this.boundApplyInitTime_)))}applyInitTime_(){this.currentTime(this.cache_.initTime)}duration(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"))}remainingTime(){return this.duration()-this.currentTime()}remainingTimeDisplay(){return Math.floor(this.duration())-Math.floor(this.currentTime())}buffered(){let e=this.techGet_("buffered");return e&&e.length||(e=ie(0,0)),e}bufferedPercent(){return il(this.buffered(),this.duration())}bufferedEnd(){const e=this.buffered(),t=this.duration();let n=e.end(e.length-1);return n>t&&(n=t),n}volume(e){let t;return void 0!==e?(t=Math.max(0,Math.min(1,e)),this.cache_.volume=t,this.techCall_("setVolume",t),void(t>0&&this.lastVolume_(t))):(t=parseFloat(this.techGet_("volume")),isNaN(t)?1:t)}muted(e){if(void 0===e)return this.techGet_("muted")||!1;this.techCall_("setMuted",e)}defaultMuted(e){return void 0!==e&&this.techCall_("setDefaultMuted",e),this.techGet_("defaultMuted")||!1}lastVolume_(e){if(void 0===e||0===e)return this.cache_.lastVolume;this.cache_.lastVolume=e}supportsFullScreen(){return this.techGet_("supportsFullScreen")||!1}isFullscreen(e){if(void 0!==e){const t=this.isFullscreen_;return this.isFullscreen_=Boolean(e),this.isFullscreen_!==t&&this.fsApi_.prefixed&&this.trigger("fullscreenchange"),void this.toggleFullscreenClass_()}return this.isFullscreen_}requestFullscreen(e){this.isInPictureInPicture()&&this.exitPictureInPicture();const t=this;return new Promise((n,i)=>{function r(){t.off("fullscreenerror",o),t.off("fullscreenchange",s)}function s(){r(),n()}function o(e,t){r(),i(t)}t.one("fullscreenchange",s),t.one("fullscreenerror",o);const a=t.requestFullscreenHelper_(e);a&&(a.then(r,r),a.then(n,i))})}requestFullscreenHelper_(e){let t;if(this.fsApi_.prefixed||(t=this.options_.fullscreen&&this.options_.fullscreen.options||{},void 0!==e&&(t=e)),this.fsApi_.requestFullscreen){const e=this.el_[this.fsApi_.requestFullscreen](t);return e&&e.then(()=>this.isFullscreen(!0),()=>this.isFullscreen(!1)),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("enterFullScreen"):this.enterFullWindow()}exitFullscreen(){const e=this;return new Promise((t,n)=>{function i(){e.off("fullscreenerror",s),e.off("fullscreenchange",r)}function r(){i(),t()}function s(e,t){i(),n(t)}e.one("fullscreenchange",r),e.one("fullscreenerror",s);const o=e.exitFullscreenHelper_();o&&(o.then(i,i),o.then(t,n))})}exitFullscreenHelper_(){if(this.fsApi_.requestFullscreen){const e=o()[this.fsApi_.exitFullscreen]();return e&&id(e.then(()=>this.isFullscreen(!1))),e}this.tech_.supportsFullScreen()&&1==!this.options_.preferFullWindow?this.techCall_("exitFullScreen"):this.exitFullWindow()}enterFullWindow(){this.isFullscreen(!0),this.isFullWindow=!0,this.docOrigOverflow=o().documentElement.style.overflow,nM(o(),"keydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow="hidden",t2(o().body,"vjs-full-window"),this.trigger("enterFullWindow")}fullWindowOnEscKey(e){l().isEventKey(e,"Esc")&&!0===this.isFullscreen()&&(this.isFullWindow?this.exitFullWindow():this.exitFullscreen())}exitFullWindow(){this.isFullscreen(!1),this.isFullWindow=!1,nO(o(),"ke
11ydown",this.boundFullWindowOnEscKey_),o().documentElement.style.overflow=this.docOrigOverflow,t4(o().body,"vjs-full-window"),this.trigger("exitFullWindow")}disablePictureInPicture(e){if(void 0===e)return this.techGet_("disablePictureInPicture");this.techCall_("setDisablePictureInPicture",e),this.options_.disablePictureInPicture=e,this.trigger("disablepictureinpicturechanged")}isInPictureInPicture(e){return void 0!==e?(this.isInPictureInPicture_=!!e,void this.togglePictureInPictureClass_()):!!this.isInPictureInPicture_}requestPictureInPicture(){if(this.options_.enableDocumentPictureInPicture&&r().documentPictureInPicture){const e=o().createElement(this.el().tagName);return e.classList=this.el().classList,e.classList.add("vjs-pip-container"),this.posterImage&&e.appendChild(this.posterImage.el().cloneNode(!0)),this.titleBar&&e.appendChild(this.titleBar.el().cloneNode(!0)),e.appendChild(tK("p",{className:"vjs-pip-text"},{},this.localize("Playing in picture-in-picture"))),r().documentPictureInPicture.requestWindow({width:this.videoWidth(),height:this.videoHeight()}).then(t=>(nf(t),this.el_.parentNode.insertBefore(e,this.el_),t.document.body.appendChild(this.el_),t.document.body.classList.add("vjs-pip-window"),this.player_.isInPictureInPicture(!0),this.player_.trigger("enterpictureinpicture"),t.addEventListener("pagehide",t=>{const n=t.target.querySelector(".video-js");e.parentNode.replaceChild(n,e),this.player_.isInPictureInPicture(!1),this.player_.trigger("leavepictureinpicture")}),t))}return"pictureInPictureEnabled"in o()&&!1===this.disablePictureInPicture()?this.techGet_("requestPictureInPicture"):Promise.reject("No PiP mode is available")}exitPictureInPicture(){return r().documentPictureInPicture&&r().documentPictureInPicture.window?(r().documentPictureInPicture.window.close(),Promise.resolve()):"pictureInPictureEnabled"in o()?o().exitPictureInPicture():void 0}handleKeyDown(e){const{userActions:t}=this.options_;t&&t.hotkeys&&((e=>{const t=e.tagName.toLowerCase();return!!e.isContentEditable||("input"===t?-1===["button","checkbox","hidden","radio","reset","submit"].indexOf(e.type):-1!==["textarea"].indexOf(t))})(this.el_.ownerDocument.activeElement)||("function"==typeof t.hotkeys?t.hotkeys.call(this,e):this.handleHotkeys(e)))}handleHotkeys(e){const t=this.options_.userActions?this.options_.userActions.hotkeys:{},{fullscreenKey:n=e=>l().isEventKey(e,"f"),muteKey:i=e=>l().isEventKey(e,"m"),playPauseKey:r=e=>l().isEventKey(e,"k")||l().isEventKey(e,"Space")}=t;if(n.call(this,e)){e.preventDefault(),e.stopPropagation();const t=n6.getComponent("FullscreenToggle");!1!==o()[this.fsApi_.fullscreenEnabled]&&t.prototype.handleClick.call(this,e)}else i.call(this,e)?(e.preventDefault(),e.stopPropagation(),n6.getComponent("MuteToggle").prototype.handleClick.call(this,e)):r.call(this,e)&&(e.preventDefault(),e.stopPropagation(),n6.getComponent("PlayToggle").prototype.handleClick.call(this,e))}canPlayType(e){let t;for(let n=0,i=this.options_.techOrder;n<i.length;n++){const r=i[n];let s=iz.getTech(r);if(s||(s=n6.getComponent(r)),s){if(s.isSupported()&&(t=s.canPlayType(e),t))return t}else tm.error(`The "${r}" tech is undefined. Skipped browser support check for that tech.`)}return""}selectSource(e){const t=this.options_.techOrder.map(e=>[e,iz.getTech(e)]).filter(([e,t])=>t?t.isSupported():(tm.error(`The "${e}" tech is undefined. Skipped browser support check for that tech.`),!1)),n=function(e,t,n){let i;return e.some(e=>t.some(t=>{if(i=n(e,t),i)return!0})),i};let i;const r=([e,t],n)=>{if(t.canPlaySource(n,this.options_[e.toLowerCase()]))return{source:n,tech:e}};var s;return i=this.options_.sourceOrder?n(e,t,(s=r,(e,t)=>s(t,e))):n(t,e,r),i||!1}handleSrc_(e,t){if(void 0===e)return this.cache_.src||"";this.resetRetryOnError_&&this.resetRetryOnError_();const n=iJ(e);if(n.length){if(this.changingSrc_=!0,t||(this.cache_.sources=n),this.updateSourceCaches_(n[0]),iH(this,n[0],(e,i)=>{if(this.middleware_=i,t||(this.cache_.sources=n),this.updateSourceCaches_(e),this.src_(e))return n.length>1?this.handleSrc_(n.slice(1)):(this.changingSrc_=!1,this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0),void this.triggerReady());var r,s;
vendor: 19,684 bytes, line 11
11r=i,s=this.tech_,r.forEach(e=>e.setTech&&e.setTech(s))}),n.length>1){const e=()=>{this.error(null),this.handleSrc_(n.slice(1),!0)},t=()=>{this.off("error",e)};this.one("error",e),this.one("playing",t),this.resetRetryOnError_=()=>{this.off("error",e),this.off("playing",t)}}}else this.setTimeout(function(){this.error({code:4,message:this.options_.notSupportedMessage})},0)}src(e){return this.handleSrc_(e,!1)}src_(e){const t=this.selectSource([e]);return!t||(n5(t.tech,this.techName_)?(this.ready(function(){this.tech_.constructor.prototype.hasOwnProperty("setSource")?this.techCall_("setSource",e):this.techCall_("src",e.src),this.changingSrc_=!1},!0),!1):(this.changingSrc_=!0,this.loadTech_(t.tech,t.source),this.tech_.ready(()=>{this.changingSrc_=!1}),!1))}load(){this.tech_&&this.tech_.vhs?this.src(this.currentSource()):this.techCall_("load")}reset(){this.paused()?this.doReset_():id(this.play().then(()=>this.doReset_()))}doReset_(){this.tech_&&this.tech_.clearTracks("text"),this.resetCache_(),this.poster(""),this.loadTech_(this.options_.techOrder[0],null),this.techCall_("reset"),this.resetControlBarUI_(),nG(this)&&this.trigger("playerreset")}resetControlBarUI_(){this.resetProgressBar_(),this.resetPlaybackRate_(),this.resetVolumeBar_()}resetProgressBar_(){this.currentTime(0);const{currentTimeDisplay:e,durationDisplay:t,progressControl:n,remainingTimeDisplay:i}=this.controlBar||{},{seekBar:r}=n||{};e&&e.updateContent(),t&&t.updateContent(),i&&i.updateContent(),r&&(r.update(),r.loadProgressBar&&r.loadProgressBar.update())}resetPlaybackRate_(){this.playbackRate(this.defaultPlaybackRate()),this.handleTechRateChange_()}resetVolumeBar_(){this.volume(1),this.trigger("volumechange")}currentSources(){const e=this.currentSource(),t=[];return 0!==Object.keys(e).length&&t.push(e),this.cache_.sources||t}currentSource(){return this.cache_.source||{}}currentSrc(){return this.currentSource()&&this.currentSource().src||""}currentType(){return this.currentSource()&&this.currentSource().type||""}preload(e){return void 0!==e?(this.techCall_("setPreload",e),void(this.options_.preload=e)):this.techGet_("preload")}autoplay(e){if(void 0===e)return this.options_.autoplay||!1;let 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)}playsinline(e){return void 0!==e&&(this.techCall_("setPlaysinline",e),this.options_.playsinline=e),this.techGet_("playsinline")}loop(e){return void 0!==e?(this.techCall_("setLoop",e),void(this.options_.loop=e)):this.techGet_("loop")}poster(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"))}handleTechPosterChange_(){if((!this.poster_||this.options_.techCanOverridePoster)&&this.tech_&&this.tech_.poster){const e=this.tech_.poster()||"";e!==this.poster_&&(this.poster_=e,this.isPosterFromTech_=!0,this.trigger("posterchange"))}}controls(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.addTechControlsListeners_()):(this.removeClass("vjs-controls-enabled"),this.addClass("vjs-controls-disabled"),this.trigger("controlsdisabled"),this.usingNativeControls()||this.removeTechControlsListeners_()))}usingNativeControls(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")))}error(e){if(void 0===e)return this.error_||null;if(tl("beforeerror").forEach(t=>{const n=t(this,e);tT(n)&&!Array.isArray(n)||"string"==typeof n||"number"==typeof n||null===n?e=n:this.log.error("please return a value that MediaError expects in beforeerror hooks")}),this.options_.suppressNotSupportedError&&e&&4===e.code){const t=function(){this.error(e)};return this.options_.suppressNotSupportedError=!1,this.any(["click","touchstart"],t),void this.one("loadstart",function(){this.off(["click","touchstart"],t)})}if(null===e)return this.error_=null,this.removeClass("vjs-error"),void(this.errorDisplay&&this.errorDisplay.close());this.error_=new iu(e),this.addClass("vjs-error"),tm.error(`(CODE:${this.error_.code} ${iu.errorTypes[this.error_.code]})`,this.error_.message,this.error_),this.trigger("error"),tl("error").forEach(e=>e(this,this.error_))}reportUserActivity(e){this.userActivity_=!0}userActive(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")}}listenForUserActivity_(){let e,t,n;const i=nB(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);const s=this.getChild("controlBar");let o;!s||tH||tD||(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_)return;this.userActivity_=!1,this.userActive(!0),this.clearTimeout(o);const e=this.options_.inactivityTimeout;e<=0||(o=this.setTimeout(function(){this.userActivity_||this.userActive(!1)},e))},250)}playbackRate(e){if(void 0===e)return this.tech_&&this.tech_.featuresPlaybackRate?this.cache_.lastPlaybackRate||this.techGet_("playbackRate"):1;this.techCall_("setPlaybackRate",e)}defaultPlaybackRate(e){return void 0!==e?this.techCall_("setDefaultPlaybackRate",e):this.tech_&&this.tech_.featuresPlaybackRate?this.techGet_("defaultPlaybackRate"):1}isAudio(e){if(void 0===e)return!!this.isAudio_;this.isAudio_=!!e}enableAudioOnlyUI_(){this.addClass("vjs-audio-only-mode");const e=this.children(),t=this.getChild("ControlBar"),n=t&&t.currentHeight();e.forEach(e=>{e!==t&&e.el_&&!e.hasClass("vjs-hidden")&&(e.hide(),this.audioOnlyCache_.hiddenChildren.push(e))}),this.audioOnlyCache_.playerHeight=this.currentHeight(),this.height(n),this.trigger("audioonlymodechange")}disableAudioOnlyUI_(){this.removeClass("vjs-audio-only-mode"),this.audioOnlyCache_.hiddenChildren.forEach(e=>e.show()),this.height(this.audioOnlyCache_.playerHeight),this.trigger("audioonlymodechange")}audioOnlyMode(e){if("boolean"!=typeof e||e===this.audioOnlyMode_)return this.audioOnlyMode_;if(this.audioOnlyMode_=e,e){const e=[];return this.isInPictureInPicture()&&e.push(this.exitPictureInPicture()),this.isFullscreen()&&e.push(this.exitFullscreen()),this.audioPosterMode()&&e.push(this.audioPosterMode(!1)),Promise.all(e).then(()=>this.enableAudioOnlyUI_())}return Promise.resolve().then(()=>this.disableAudioOnlyUI_())}enablePosterModeUI_(){(this.tech_&&this.tech_).hide(),this.addClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}disablePosterModeUI_(){(this.tech_&&this.tech_).show(),this.removeClass("vjs-audio-poster-mode"),this.trigger("audiopostermodechange")}audioPosterMode(e){return"boolean"!=typeof e||e===this.audioPosterMode_?this.audioPosterMode_:(this.audioPosterMode_=e,e?this.audioOnlyMode()?this.audioOnlyMode(!1).then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.enablePosterModeUI_()}):Promise.resolve().then(()=>{this.disablePosterModeUI_()}))}addTextTrack(e,t,n){if(this.tech_)return this.tech_.addTextTrack(e,t,n)}addRemoteTextTrack(e,t){if(this.tech_)return this.tech_.addRemoteTextTrack(e,t)}removeRemoteTextTrack(e={}){let{track:t}=e;if(t||(t=e),this.tech_)return this.tech_.removeRemoteTextTrack(t)}getVideoPlaybackQuality(){return this.techGet_("getVideoPlaybackQuality")}videoWidth(){return this.tech_&&this.tech_.videoWidth&&this.tech_.videoWidth()||0}videoHeight(){return this.tech_&&this.tech_.videoHeight&&this.tech_.videoHeight()||0}language(e){if(void 0===e)return this.language_;this.language_!==String(e).toLowerCase()&&(this.language_=String(e).toLowerCase(),nG(this)&&this.trigger("languagechange"))}languages(){return tw(sl.prototype.options_.languages,this.languages_)}toJSON(){const e=tw(this.options_),t=e.tracks;e.tracks=[];for(let n=0;n<t.length;n++){let i=t[n];i=tw(i),i.player=void 0,e.tracks[n]=i}return e}createModal(e,t){(t=t||{}).content=e||"";const n=new im(this,t);return this.addChild(n),n.on("dispose",()=>{this.removeChild(n)}),n.open(),n}updateCurrentBreakpoint_(){if(!this.responsive())return;const e=this.currentBreakpoint(),t=this.currentWidth();for(let n=0;n<ss.length;n++){const i=ss[n];if(t<=this.breakpoints_[i]){if(e===i)return;e&&this.removeClass(so[e]),this.addClass(so[i]),this.breakpoint_=i;break}}}removeCurrentBreakpoint_(){const e=this.currentBreakpointClass();this.breakpoint_="",e&&this.removeClass(e)}breakpoints(e){return void 0===e||(this.breakpoint_="",this.breakpoints_=Object.assign({},sa,e),this.updateCurrentBreakpoint_()),Object.assign(this.breakpoints_)}responsive(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}currentBreakpoint(){return this.breakpoint_}currentBreakpointClass(){return so[this.breakpoint_]||""}loadMedia(e,t){if(!e||"object"!=typeof e)return;const n=this.crossOrigin();this.reset(),this.cache_.media=tw(e);const{artist:i,artwork:r,description:s,poster:o,src:a,textTracks:l,title:u}=this.cache_.media;!r&&o&&(this.cache_.media.artwork=[{src:o,type:iK(o)}]),n&&this.crossOrigin(n),a&&this.src(a),o&&this.poster(o),Array.isArray(l)&&l.forEach(e=>this.addRemoteTextTrack(e,!1)),this.titleBar&&this.titleBar.update({title:u,description:s||i||""}),this.ready(t)}getMedia(){if(!this.cache_.media){const e=this.poster(),t={src:this.currentSources(),textTracks:Array.prototype.map.call(this.remoteTextTracks(),e=>({kind:e.kind,label:e.label,language:e.language,src:e.src}))};return e&&(t.poster=e,t.artwork=[{src:t.poster,type:iK(t.poster)}]),t}return tw(this.cache_.media)}static getTagSettings(e){const t={sources:[],tracks:[]},n=t8(e),i=n["data-setup"];if(t1(e,"vjs-fill")&&(n.fill=!0),t1(e,"vjs-fluid")&&(n.fluid=!0),null!==i){const[e,t]=c()(i||"{}");e&&tm.error(e),Object.assign(n,t)}if(Object.assign(t,n),e.hasChildNodes()){const n=e.childNodes;for(let e=0,i=n.length;e<i;e++){const i=n[e],r=i.nodeName.toLowerCase();"source"===r?t.sources.push(t8(i)):"track"===r&&t.tracks.push(t8(i))}}return t}debug(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)}playbackRates(e){if(void 0===e)return this.cache_.playbackRates;Array.isArray(e)&&e.every(e=>"number"==typeof e)&&(this.cache_.playbackRates=e,this.trigger("playbackrateschange"))}}iB.names.forEach(function(e){const t=iB[e];sl.prototype[t.getterName]=function(){return this.tech_?this.tech_[t.getterName]():(this[t.privateName]=this[t.privateName]||new t.ListClass,this[t.privateName])}}),sl.prototype.crossorigin=sl.prototype.crossOrigin,sl.players={};const su=r().navigator;sl.prototype.options_={techOrder:iz.defaultTechOrder_,html5:{},enableSourceset:!0,inactivityTimeout:2e3,playbackRates:[],liveui:!1,children:["mediaLoader","posterImage","titleBar","textTrackDisplay","loadingSpinner","bigPlayButton","liveTracker","controlBar","errorDisplay","textTrackSettings","resizeManager"],language:su&&(su.languages&&su.languages[0]||su.userLanguage||su.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){sl.prototype[e]=function(){return this.techGet_(e)}}),si.forEach(function(e){sl.prototype[`handleTech${n3(e)}_`]=function(){return this.trigger(e)}}),n6.registerComponent("Player",sl);const sc="plugin",sd="activePlugins_",sh={},sp=e=>sh.hasOwnProperty(e),sf=e=>sp(e)?sh[e]:void 0,sm=(e,t)=>{e[sd]=e[sd]||{},e[sd][t]=!0},sg=(e,t,n)=>{const i=(n?"before":"")+"pluginsetup";e.trigger(i,t),e.trigger(i+":"+t.name,t)},sv=(e,t)=>(t.prototype.name=e,function(...n){sg(this,{name:e,plugin:t,instance:null},!0);const i=new t(...[this,...n]);return this[e]=()=>i,sg(this,i.getEventHash()),i});class sy{constructor(e){if(this.constructor===sy)throw new Error("Plugin must be sub-classed; not directly instantiated.");this.player=e,this.log||(this.log=this.player.log.createLogger(this.name)),n0(this),delete this.trigger,n2(this,this.constructor.defaultState),sm(e,this.name),this.dispose=this.dispose.bind(this),e.on("dispose",this.dispose)}version(){return this.constructor.VERSION}getEventHash(e={}){return e.name=this.name,e.plugin=this.constructor,e.instance=this,e}trigger(e,t={}){return nP(this.eventBusEl_,e,this.getEventHash(t))}handleStateChanged(e){}dispose(){const{name:e,player:t}=this;this.trigger("dispose"),this.off(),t.off("dispose",this.dispose),t[sd][e]=!1,this.player=this.state=null,t[e]=sv(e,sh[e])}static isBasic(e){const t="string"==typeof e?sf(e):e;return"function"==typeof t&&!sy.prototype.isPrototypeOf(t.prototype)}static registerPlugin(e,t){if("string"!=typeof e)throw new Error(`Illegal plugin name, "${e}", must be a string, was ${typeof e}.`);if(sp(e))tm.warn(`A plugin named "${e}" already exists. You may want to avoid re-registering plugins!`);else if(sl.prototype.hasOwnProperty(e))throw new Error(`Illegal plugin name, "${e}", cannot share a name with an existing player method!`);if("function"!=typeof t)throw new Error(`Illegal plugin for "${e}", must be a function, was ${typeof t}.`);return sh[e]=t,e!==sc&&(sy.isBasic(t)?sl.prototype[e]=function(e,t){const n=function(){sg(this,{name:e,plugin:t,instance:null},!0);const n=t.apply(this,arguments);return sm(this,e),sg(this,{name:e,plugin:t,instance:n}),n};return Object.keys(t).forEach(function(e){n[e]=t[e]}),n}(e,t):sl.prototype[e]=sv(e,t)),t}static deregisterPlugin(e){if(e===sc)throw new Error("Cannot de-register base plugin.");sp(e)&&(delete sh[e],delete sl.prototype[e])}static getPlugins(e=Object.keys(sh)){let t;return e.forEach(e=>{const n=sf(e);n&&(t=t||{},t[e]=n)}),t}static getPluginVersion(e){const t=sf(e);return t&&t.VERSION||""}}function sb(e,t,n,i){return function(e,t){let n=!1;return function(...i){return n||tm.warn(e),n=!0,t.apply(this,i)}}(`${t} is deprecated and will be removed in ${e}.0; please use ${n} instead.`,i)}sy.getPlugin=sf,sy.BASE_PLUGIN_NAME=sc,sy.registerPlugin(sc,sy),sl.prototype.usingPlugin=function(e){return!!this[sd]&&!0===this[sd][e]},sl.prototype.hasPlugin=function(e){return!!sp(e)};const s_=e=>0===e.indexOf("#")?e.slice(1):e;function sT(e,t,n){let i=sT.getPlayer(e);if(i)return t&&tm.warn(`Player "${e}" is already initialised. Options will not be applied.`),n&&i.ready(n),i;const s="string"==typeof e?nd("#"+s_(e)):e;if(!tZ(s))throw new TypeError("The element or ID supplied is not valid. (videojs)");const o="getRootNode"in s&&s.getRootNode() instanceof r().ShadowRoot?s.getRootNode():s.ownerDocument.body;s.ownerDocument.defaultView&&o.contains(s)||tm.warn("The element supplied is not included in the DOM"),!0===(t=t||{}).restoreEl&&(t.restoreEl=(s.parentNode&&s.parentNode.hasAttribute("data-vjs-player")?s.parentNode:s).cloneNode(!0)),tl("beforesetup").forEach(e=>{const n=e(s,tw(t));tT(n)&&!Array.isArray(n)?t=tw(t,n):tm.error("please return an object in beforesetup hooks")});const a=n6.getComponent("Player");return i=new a(s,t,n),tl("setup").forEach(e=>e(i)),i}if(sT.hooks_=ta,sT.hooks=tl,sT.hook=function(e,t){tl(e,t)},sT.hookOnce=function(e,t){tl(e,[].concat(t).map(t=>{const n=(...i)=>(tu(e,n),t(...i));return n}))},sT.removeHook=tu,!0!==r().VIDEOJS_NO_DYNAMIC_STYLE&&tQ()){let e=nd(".vjs-styles-defaults");if(!e){e=nT("vjs-styles-defaults");const t=nd("head");t&&t.insertBefore(e,t.firstChild),nj(e,"\n .video-js {\n width: 300px;\n height: 150px;\n }\n\n .vjs-fluid:not(.vjs-audio-only-mode) {\n padding-top: 56.25%\n }\n ")}}nb(1,sT),sT.VERSION=to,sT.options=sl.prototype.options_,sT.getPlayers=()=>sl.players,sT.getPlayer=e=>{const t=sl.players;let n;if("string"==typeof e){const i=s_(e),r=t[i];if(r)return r;n=nd("#"+i)}else n=e;if(tZ(n)){const{player:e,playerId:i}=n;if(e||t[i])return e||t[i]}},sT.getAllPlayers=()=>Object.keys(sl.players).map(e=>sl.players[e]).filter(Boolean),sT.players=sl.players,sT.getComponent=n6.getComponent,sT.registerComponent=(e,t)=>(iz.isTech(t)&&tm.warn(`The ${e} tech was registered as a component. It should instead be registered using videojs.registerTech(name, tech)`),n6.registerComponent.call(n6,e,t)),sT.getTech=iz.getTech,sT.registerTech=iz.registerTech,sT.use=function(e,t){iF[e]=iF[e]||[],iF[e].push(t)},Object.defineProperty(sT,"middleware",{value:{},writeable:!1,enumerable:!0}),Object.defineProperty(sT.middleware,"TERMINATOR",{value:iV,writeable:!1,enumerable:!0}),sT.browser=tG,sT.obj=tk,sT.mergeOptions=sb(9,"videojs.mergeOptions","videojs.obj.merge",tw),sT.defineLazyProperty=sb(9,"videojs.defineLazyProperty","videojs.obj.defineLazyProperty",tx),sT.bind=sb(9,"videojs.bind","native Function.prototype.bind",nB),sT.registerPlugin=sy.registerPlugin,sT.deregisterPlugin=sy.deregisterPlugin,sT.plugin=(e,t)=>(tm.warn("videojs.plugin() is deprecated; use videojs.registerPlugin() instead"),sy.registerPlugin(e,t)),sT.getPlugins=sy.getPlugins,sT.getPlugin=sy.getPlugin,sT.getPluginVersion=sy.getPluginVersion,sT.addLanguage=function(e,t){return e=(""+e).toLowerCase(),sT.options.languages=tw(sT.options.languages,{[e]:t}),sT.options.languages[e]},sT.log=tm,sT.createLogger=tg,sT.time=ia,sT.createTimeRange=sb(9,"videojs.createTimeRange","videojs.time.createTimeRanges",ie),sT.createTimeRanges=sb(9,"videojs.createTimeRanges","videojs.time.createTimeRanges",ie),sT.formatTime=sb(9,"videojs.formatTime","videojs.time.formatTime",io),sT.setFormatTime=sb(9,"videojs.setFormatTime","videojs.time.setFormatTime",ir),sT.resetFormatTime=sb(9,"videojs.resetFormatTime","videojs.time.resetFormatTime",is),sT.parseUrl=sb(9,"videojs.parseUrl","videojs.url.parseUrl",ik),sT.isCrossOrigin=sb(9,"videojs.isCrossOrigin","videojs.url.isCrossOrigin",iI),sT.EventTarget=nH,sT.any=nL,sT.on=nM,sT.one=nN,sT.off=nO,sT.trigger=nP,sT.xhr=h(),sT.TextTrack=iO,sT.AudioTrack=iP,sT.VideoTrack=iN,["isEl","isTextNode","createEl","hasClass","addClass","removeClass","toggleClass","setAttributes","getAttributes","emptyEl","appendContent","insertContent"].forEach(e
vendor: 4,107 bytes, line 11
11=>{sT[e]=function(){return tm.warn(`videojs.${e}() is deprecated; use videojs.dom.${e}() instead`),nm[e].apply(null,arguments)}}),sT.computedStyle=sb(9,"videojs.computedStyle","videojs.dom.computedStyle",np),sT.dom=nm,sT.fn=nq,sT.num=rl,sT.str=n8,sT.url=iD;class sj{constructor(e){let t=this;return t.id=e.id,t.label=t.id,t.width=e.width,t.height=e.height,t.bitrate=e.bandwidth,t.frameRate=e.frameRate,t.enabled_=e.enabled,Object.defineProperty(t,"enabled",{get:()=>t.enabled_(),set(e){t.enabled_(e)}}),t}}class sw extends sT.EventTarget{constructor(){super();let e=this;return e.levels_=[],e.selectedIndex_=-1,Object.defineProperty(e,"selectedIndex",{get:()=>e.selectedIndex_}),Object.defineProperty(e,"length",{get:()=>e.levels_.length}),e[Symbol.iterator]=()=>e.levels_.values(),e}addQualityLevel(e){let t=this.getQualityLevelById(e.id);if(t)return t;const n=this.levels_.length;return t=new sj(e),""+n in this||Object.defineProperty(this,n,{get(){return this.levels_[n]}}),this.levels_.push(t),this.trigger({qualityLevel:t,type:"addqualitylevel"}),t}removeQualityLevel(e){let t=null;for(let n=0,i=this.length;n<i;n++)if(this[n]===e){t=this.levels_.splice(n,1)[0],this.selectedIndex_===n?this.selectedIndex_=-1:this.selectedIndex_>n&&this.selectedIndex_--;break}return t&&this.trigger({qualityLevel:e,type:"removequalitylevel"}),t}getQualityLevelById(e){for(let t=0,n=this.length;t<n;t++){const n=this[t];if(n.id===e)return n}return null}dispose(){this.selectedIndex_=-1,this.levels_.length=0}}sw.prototype.allowedEvents_={change:"change",addqualitylevel:"addqualitylevel",removequalitylevel:"removequalitylevel"};for(const e in sw.prototype.allowedEvents_)sw.prototype["on"+e]=null;var sS="4.0.0";const sx=function(e){return function(e,t){const n=e.qualityLevels,i=new sw,r=function(){i.dispose(),e.qualityLevels=n,e.off("dispose",r)};return e.on("dispose",r),e.qualityLevels=()=>i,e.qualityLevels.VERSION=sS,i}(this,sT.obj.merge({},e))};sT.registerPlugin("qualityLevels",sx),sx.VERSION=sS;const sk=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),s=!r().location&&!/\/\//i.test(e);if(n?e=new(r()).URL(e,r().location||v):/\/\//i.test(e)||(e=g().buildAbsoluteURL(r().location&&r().location.href||"",e)),n){var o=new URL(t,e);return s?o.href.slice(v.length):i?o.href.slice(o.protocol.length):o.href}return g().buildAbsoluteURL(e,t)},sE=(e,t)=>t&&t.responseURL&&e!==t.responseURL?t.responseURL:e,sC=e=>sT.log.debug?sT.log.debug.bind(sT,"VHS:",`${e} >`):function(){};function sI(...e){const t=sT.obj||sT;return(t.merge||t.mergeOptions).apply(t,e)}function sD(...e){const t=sT.time||sT;return(t.createTimeRanges||t.createTimeRanges).apply(t,e)}const sA=1/30,sM=.1,sO=function(e,t){const n=[];let i;if(e&&e.length)for(i=0;i<e.length;i++)t(e.start(i),e.end(i))&&n.push([e.start(i),e.end(i)]);return sD(n)},sP=function(e,t){return sO(e,function(e,n){return e-sM<=t&&n+sM>=t})},sN=function(e,t){return sO(e,function(e){return e-sA>=t})},sL=e=>{const t=[];if(!e||!e.length)return"";for(let n=0;n<e.length;n++)t.push(e.start(n)+" => "+e.end(n));return t.join(", ")},sR=e=>{const t=[];for(let n=0;n<e.length;n++)t.push({start:e.start(n),end:e.end(n)});return t},sU=function(e){if(e&&e.length&&e.end)return e.end(e.length-1)},sB=function(e,t){let n=0;if(!e||!e.length)return n;for(let i=0;i<e.length;i++){const r=e.start(i),s=e.end(i);t>s||(n+=t>r&&t<=s?s-t:s-r)}return n},sz=(e,t)=>{if(!t.preload)return t.duration;let n=0;return(t.parts||[]).forEach(function(e){n+=e.duration}),(t.preloadHints||[]).forEach(function(t){"PART"===t.type&&(n+=e.partTargetDuration)}),n},sF=e=>(e.segments||[]).reduce((e,t,n)=>(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),[]),sq=e=>{const t=e.segments&&e.segments.length&&e.segments[e.segments.length-1];return t&&t.parts||[]},sV=({preloadSegment:e})=>{if(!e)return;const{parts:t,preloadHints:n}=e;let i=(n||[]).reduce((e,t)=>
vendor: 4,928 bytes, line 11
11e+("PART"===t.type?1:0),0);return i+=t&&t.length?t.length:0,i},sH=(e,t)=>{if(t.endList)return 0;if(e&&e.suggestedPresentationDelay)return e.suggestedPresentationDelay;const n=sq(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},sW=function(e,t,n){if(void 0===t&&(t=e.mediaSequence+e.segments.length),t<e.mediaSequence)return 0;const i=function(e,t){let 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(r=e.segments[i],void 0!==r.end)return{result:n+r.end,precise:!0};if(n+=sz(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;const r=function(e,t){let n,i=0,r=t-e.mediaSequence;for(;r<e.segments.length;r++){if(n=e.segments[r],void 0!==n.start)return{result:n.start-i,precise:!0};if(i+=sz(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},sG=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]}return sW(e,t,n)},s$=function({defaultDuration:e,durationList:t,startIndex:n,endIndex:i}){let r=0;if(n>i&&([n,i]=[i,n]),n<0){for(let t=n;t<Math.min(0,i);t++)r+=e;n=0}for(let e=n;e<i;e++)r+=t[e].duration;return r},sQ=function(e,t,n,i){if(!e||!e.segments)return null;if(e.endList)return sG(e);if(null===t)return null;t=t||0;let r=sW(e,e.mediaSequence+e.segments.length,t);return n&&(r-=i="number"==typeof i?i:sH(null,e)),Math.max(0,r)},sZ=function(e){return e.excludeUntil&&e.excludeUntil>Date.now()},sY=function(e){return e.excludeUntil&&e.excludeUntil===1/0},sX=function(e){const t=sZ(e);return!e.disabled&&!t},sK=function(e,t){return t.attributes&&t.attributes[e]},sJ=(e,t)=>{if(1===e.playlists.length)return!0;const n=t.attributes.BANDWIDTH||Number.MAX_VALUE;return 0===e.playlists.filter(e=>!!sX(e)&&(e.attributes.BANDWIDTH||0)<n).length},s0=(e,t)=>!(!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)),s1=function(e,t){const n=e&&e.mediaGroups&&e.mediaGroups.AUDIO||{};let i=!1;for(const e in n){for(const r in n[e])if(i=t(n[e][r]),i)break;if(i)break}return!!i},s2=e=>{if(!e||!e.playlists||!e.playlists.length)return s1(e,e=>e.playlists&&e.playlists.length||e.uri);for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t],i=n.attributes&&n.attributes.CODECS;if((!i||!i.split(",").every(e=>L(e)))&&!s1(e,e=>s0(n,e)))return!1}return!0};var s4={liveEdgeDelay:sH,duration:sG,seekable:function(e,t,n){const i=t||0;let r=sQ(e,t,!0,n);return null===r?sD():(r<i&&(r=i),sD(i,r))},getMediaInfoForTime:function({playlist:e,currentTime:t,startingSegmentIndex:n,startingPartIndex:i,startTime:r,exactManifestTimings:s}){let o=t-r;const a=sF(e);let l=0;for(let e=0;e<a.length;e++){const t=a[e];if(n===t.segmentIndex&&("number"!=typeof i||"number"!=typeof t.partIndex||i===t.partIndex)){l=e;break}}if(o<0){if(l>0)for(let t=l-1;t>=0;t--){const n=a[t];if(o+=n.duration,s){if(o<0)continue}else if(o+sA<=0)continue;return{partIndex:n.partIndex,segmentIndex:n.segmentIndex,startTime:r-s$({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:t})}}return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t}}if(l<0){for(let n=l;n<0;n++)if(o-=e.targetDuration,o<0)return{partIndex:a[0]&&a[0].partIndex||null,segmentIndex:a[0]&&a[0].segmentIndex||0,startTime:t};l=0}for(let t=l;t<a.length;t++){const n=a[t];if(o-=n.duration,s){if(o>0)continue}else if(o-sA>=0)continue;return{partIndex:n.partIndex,segmentIndex:n.segmentIndex,startTime:r+s$({defaultDuration:e.targetDuration,durationList:a,startIndex:l,endIndex:t})}}return{segmentIndex:a[a.length-1].segmentIndex,partIndex:a[a.length-1].partIndex,startTime:t}},isEnabled:sX,isDisabled:function(e){return e.disabled},isExcluded:sZ,isIncompatible:sY,playlistEnd:sQ,isAes:function(e){for(let t=0;t<e.segments.length;t++)if(e.segments[t].key)return!0;return!1},hasAttribute:sK,estimateSegmentRequestTime:function(e,t,n,i=0){return sK("BANDWIDTH",n)?(e*n.attributes.BANDWIDTH-8*i)/t:NaN},isLowestEnabledRendition:sJ,isAudioOnly:s2,playlistMatch:s0,segmentDurationWithParts:sz};const{log:s3}=sT,s5=(e,t)=>`${e}-${t}`,s8=(e,t,n)=>`placeholder-uri-${e}-${t}-${n}`,s6=(e,t)=>{e.mediaGroups&&["AUDIO","SUBTITLES"].forEach(n=>{if(e.mediaGroups[n])for(const i in e.mediaGroups[n])for(const r in e.mediaGroups[n][i]){const s=e.mediaGroups[n][i][r];t(s,n,i,r)}})},s9=({playlist:e,uri:t,id:n})=>{e.id=n,e.playlistErrors_=0,t&&(e.uri=t),e.attributes=e.attributes||{}},s7=(e,t,n=s8)=>{e.uri=t;
vendor: 4,116 bytes, line 11
11for(let t=0;t<e.playlists.length;t++)if(!e.playlists[t].uri){const n=`placeholder-uri-${t}`;e.playlists[t].uri=n}const i=s2(e);s6(e,(t,r,s,o)=>{if(!t.playlists||!t.playlists.length){if(i&&"AUDIO"===r&&!t.uri)for(let t=0;t<e.playlists.length;t++){const n=e.playlists[t];if(n.attributes&&n.attributes.AUDIO&&n.attributes.AUDIO===s)return}t.playlists=[y({},t)]}t.playlists.forEach(function(t,i){const a=n(r,s,o,t),l=s5(i,a);t.uri?t.resolvedUri=t.resolvedUri||sk(e.uri,t.uri):(t.uri=0===i?a:l,t.resolvedUri=t.uri),t.id=t.id||l,t.attributes=t.attributes||{},e.playlists[t.id]=t,e.playlists[t.uri]=t})}),(e=>{let t=e.playlists.length;for(;t--;){const n=e.playlists[t];s9({playlist:n,id:s5(t,n.uri)}),n.resolvedUri=sk(e.uri,n.uri),e.playlists[n.id]=n,e.playlists[n.uri]=n,n.attributes.BANDWIDTH||s3.warn("Invalid playlist STREAM-INF detected. Missing BANDWIDTH attribute.")}})(e),(e=>{s6(e,t=>{t.uri&&(t.resolvedUri=sk(e.uri,t.uri))})})(e)};class oe{constructor(){this.offset_=null,this.pendingDateRanges_=new Map,this.processedDateRanges_=new Map}setOffset(e=[]){if(null!==this.offset_)return;if(!e.length)return;const[t]=e;void 0!==t.programDateTime&&(this.offset_=t.programDateTime/1e3)}setPendingDateRanges(e=[]){if(!e.length)return;const[t]=e,n=t.startDate.getTime();this.trimProcessedDateRanges_(n),this.pendingDateRanges_=e.reduce((e,t)=>(e.set(t.id,t),e),new Map)}processDateRange(e){this.pendingDateRanges_.delete(e.id),this.processedDateRanges_.set(e.id,e)}getDateRangesToProcess(){if(null===this.offset_)return[];const e={},t=[];this.pendingDateRanges_.forEach((n,i)=>{if(!this.processedDateRanges_.has(i)&&(n.startTime=n.startDate.getTime()/1e3-this.offset_,n.processDateRange=()=>this.processDateRange(n),t.push(n),n.class))if(e[n.class]){const t=e[n.class].push(n);n.classListIndex=t-1}else e[n.class]=[n],n.classListIndex=0});for(const n of t){const t=e[n.class]||[];n.endDate?n.endTime=n.endDate.getTime()/1e3-this.offset_:n.endOnNext&&t[n.classListIndex+1]?n.endTime=t[n.classListIndex+1].startTime:n.duration?n.endTime=n.startTime+n.duration:n.plannedDuration?n.endTime=n.startTime+n.plannedDuration:n.endTime=n.startTime}return t}trimProcessedDateRanges_(e){new Map(this.processedDateRanges_).forEach((t,n)=>{t.startDate.getTime()<e&&this.processedDateRanges_.delete(n)})}}const{EventTarget:ot}=sT,on=(e,t)=>{if(!e)return t;const n=sI(e,t);if(e.preloadHints&&!t.preloadHints&&delete n.preloadHints,e.parts&&!t.parts)delete n.parts;else if(e.parts&&t.parts)for(let i=0;i<t.parts.length;i++)e.parts&&e.parts[i]&&(n.parts[i]=sI(e.parts[i],t.parts[i]));return!e.skipped&&t.skipped&&(n.skipped=!1),e.preload&&!t.preload&&(n.preload=!1),n},oi=(e,t)=>{!e.resolvedUri&&e.uri&&(e.resolvedUri=sk(t,e.uri)),e.key&&!e.key.resolvedUri&&(e.key.resolvedUri=sk(t,e.key.uri)),e.map&&!e.map.resolvedUri&&(e.map.resolvedUri=sk(t,e.map.uri)),e.map&&e.map.key&&!e.map.key.resolvedUri&&(e.map.key.resolvedUri=sk(t,e.map.key.uri)),e.parts&&e.parts.length&&e.parts.forEach(e=>{e.resolvedUri||(e.resolvedUri=sk(t,e.uri))}),e.preloadHints&&e.preloadHints.length&&e.preloadHints.forEach(e=>{e.resolvedUri||(e.resolvedUri=sk(t,e.uri))})},or=function(e){const t=e.segments||[],n=e.preloadSegment;if(n&&n.parts&&n.parts.length){if(n.preloadHints){for(let e=0;e<n.preloadHints.length;e++)if("MAP"===n.preloadHints[e].type)return t}n.duration=e.targetDuration,n.preload=!0,t.push(n)}return t},os=(e,t)=>e===t||e.segments&&t.segments&&e.segments.length===t.segments.length&&e.endList===t.endList&&e.mediaSequence===t.mediaSequence&&e.preloadSegment===t.preloadSegment,oo=(e,t,n=os)=>{const i=sI(e,{}),r=i.playlists[t.id];if(!r)return null;if(n(r,t))return null;t.segments=or(t);const s=sI(r,t);if(s.preloadSegment&&!t.preloadSegment&&delete s.preloadSegment,r.segments){if(t.skip){t.segments=t.segments||[];for(let e=0;e<t.skip.skippedSegments;e++)t.segments.unshift({skipped:!0})}s.segments=((e,t,n)=>{const i=e.slice(),r=t.slice();n=n||0;const s=[];let o;for(let e=0;e<r.length;e++){const t=i[e+n],a=r[e];t?(o=t.map||o,s.push(on(t,a))):(o&&!a.map&&(a.map=o),s.push(a))}return s})(r.segments,t.segments,t.mediaSequence-r.mediaSequence)}
vendor: 4,169 bytes, line 11
11s.segments.forEach(e=>{oi(e,s.resolvedUri)});for(let e=0;e<i.playlists.length;e++)i.playlists[e].id===t.id&&(i.playlists[e]=s);return i.playlists[t.id]=s,i.playlists[t.uri]=s,s6(e,(e,n,i,r)=>{if(e.playlists)for(let n=0;n<e.playlists.length;n++)t.id===e.playlists[n].id&&(e.playlists[n]=s)}),i},oa=(e,t)=>{const n=e.segments||[],i=n[n.length-1],r=i&&i.parts&&i.parts[i.parts.length-1],s=r&&r.duration||i&&i.duration;return t&&s?1e3*s:500*(e.partTargetDuration||e.targetDuration||10)};class ol extends ot{constructor(e,t,n={}){if(super(),!e)throw new Error("A non-empty playlist URL or object is required");this.logger_=sC("PlaylistLoader");const{withCredentials:i=!1}=n;this.src=e,this.vhs_=t,this.withCredentials=i,this.addDateRangesToTextTrack_=n.addDateRangesToTextTrack;const r=t.options_;this.customTagParsers=r&&r.customTagParsers||[],this.customTagMappers=r&&r.customTagMappers||[],this.llhls=r&&r.llhls,this.dateRangesStorage_=new oe,this.state="HAVE_NOTHING",this.handleMediaupdatetimeout_=this.handleMediaupdatetimeout_.bind(this),this.on("mediaupdatetimeout",this.handleMediaupdatetimeout_),this.on("loadedplaylist",this.handleLoadedPlaylist_.bind(this))}handleLoadedPlaylist_(){const e=this.media();if(!e)return;this.dateRangesStorage_.setOffset(e.segments),this.dateRangesStorage_.setPendingDateRanges(e.dateRanges);const t=this.dateRangesStorage_.getDateRangesToProcess();t.length&&this.addDateRangesToTextTrack_&&this.addDateRangesToTextTrack_(t)}handleMediaupdatetimeout_(){if("HAVE_METADATA"!==this.state)return;const e=this.media();let t=sk(this.main.uri,e.uri);this.llhls&&(t=((e,t)=>{if(t.endList||!t.serverControl)return e;const n={};if(t.serverControl.canBlockReload){const{preloadSegment:e}=t;let i=t.mediaSequence+t.segments.length;if(e){const r=e.parts||[],s=sV(t)-1;s>-1&&s!==r.length-1&&(n._HLS_part=s),(s>-1||r.length)&&i--}n._HLS_msn=i}if(t.serverControl&&t.serverControl.canSkipUntil&&(n._HLS_skip=t.serverControl.canSkipDateranges?"v2":"YES"),Object.keys(n).length){const t=new(r()).URL(e);["_HLS_skip","_HLS_msn","_HLS_part"].forEach(function(e){n.hasOwnProperty(e)&&t.searchParams.set(e,n[e])}),e=t.toString()}return e})(t,e)),this.state="HAVE_CURRENT_METADATA",this.request=this.vhs_.xhr({uri:t,withCredentials:this.withCredentials},(e,t)=>{if(this.request)return e?this.playlistRequestError(this.request,this.media(),"HAVE_METADATA"):void this.haveMetadata({playlistString:this.request.responseText,url:this.media().uri,id:this.media().id})})}playlistRequestError(e,t,n){const{uri:i,id:r}=t;this.request=null,n&&(this.state=n),this.error={playlist:this.main.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")}parseManifest_({url:e,manifestString:t}){return(({onwarn:e,oninfo:t,manifestString:n,customTagParsers:i=[],customTagMappers:r=[],llhls:s})=>{const o=new C;e&&o.on("warn",e),t&&o.on("info",t),i.forEach(e=>o.addParser(e)),r.forEach(e=>o.addTagMapper(e)),o.push(n),o.end();const a=o.manifest;if(s||(["preloadSegment","skip","serverControl","renditionReports","partInf","partTargetDuration"].forEach(function(e){a.hasOwnProperty(e)&&delete a[e]}),a.segments&&a.segments.forEach(function(e){["parts","preloadHints"].forEach(function(t){e.hasOwnProperty(t)&&delete e[t]})})),!a.targetDuration){let t=10;a.segments&&a.segments.length&&(t=a.segments.reduce((e,t)=>Math.max(e,t.duration),0)),e&&e(`manifest has no targetDuration defaulting to ${t}`),a.targetDuration=t}const l=sq(a);if(l.length&&!a.partTargetDuration){const t=l.reduce((e,t)=>Math.max(e,t.duration),0);e&&(e(`manifest has no partTargetDuration defaulting to ${t}`),s3.error("LL-HLS manifest has parts but lacks required #EXT-X-PART-INF:PART-TARGET value. See https://datatracker.ietf.org/doc/html/draft-pantos-hls-rfc8216bis-09#section-4.4.3.7. Playback is not guaranteed.")),a.partTargetDuration=t}return a})({onwarn:({message:t})=>this.logger_(`m3u8-parser warn for ${e}: ${t}`),oninfo:({message:t})=>this.logger_(`m3u8-parser info for ${e}: ${t}`),manifestString:t,customTagParsers:this.customTagParsers,customTagMappers:this.customTagMappers,llhls:this.llhls})}
vendor: 24,863 bytes, lines 11-13
11haveMetadata({playlistString:e,playlistObject:t,url:n,id:i}){this.request=null,this.state="HAVE_METADATA";const r=t||this.parseManifest_({url:n,manifestString:e});r.lastRequest=Date.now(),s9({playlist:r,uri:n,id:i});const s=oo(this.main,r);this.targetDuration=r.partTargetDuration||r.targetDuration,this.pendingMedia_=null,s?(this.main=s,this.media_=this.main.playlists[i]):this.trigger("playlistunchanged"),this.updateMediaUpdateTimeout_(oa(this.media(),!!s)),this.trigger("loadedplaylist")}dispose(){this.trigger("dispose"),this.stopRequest(),r().clearTimeout(this.mediaUpdateTimeout),r().clearTimeout(this.finalRenditionTimeout),this.dateRangesStorage_=new oe,this.off()}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e,t){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.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.main.playlists[e]}if(r().clearTimeout(this.finalRenditionTimeout),t){const t=(e.partTargetDuration||e.targetDuration)/2*1e3||5e3;return void(this.finalRenditionTimeout=r().setTimeout(this.media.bind(this,e,!1),t))}const n=this.state,i=!this.media_||e.id!==this.media_.id,s=this.main.playlists[e.id];if(s&&s.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(i&&(this.trigger("mediachanging"),"HAVE_MAIN_MANIFEST"===n?this.trigger("loadedmetadata"):this.trigger("mediachange")));if(this.updateMediaUpdateTimeout_(oa(e,!0)),i){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},(t,i)=>{if(this.request){if(e.lastRequest=Date.now(),e.resolvedUri=sE(e.resolvedUri,i),t)return this.playlistRequestError(this.request,e,n);this.haveMetadata({playlistString:i.responseText,url:e.uri,id:e.id}),"HAVE_MAIN_MANIFEST"===n?this.trigger("loadedmetadata"):this.trigger("mediachange")}})}}pause(){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_MAIN_MANIFEST":"HAVE_CURRENT_METADATA"===this.state&&(this.state="HAVE_METADATA")}load(e){this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null);const t=this.media();if(e){const e=t?(t.partTargetDuration||t.targetDuration)/2*1e3:5e3;this.mediaUpdateTimeout=r().setTimeout(()=>{this.mediaUpdateTimeout=null,this.load()},e)}else this.started?t&&!t.endList?this.trigger("mediaupdatetimeout"):this.trigger("loadedplaylist"):this.start()}updateMediaUpdateTimeout_(e){this.mediaUpdateTimeout&&(r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null),this.media()&&!this.media().endList&&(this.mediaUpdateTimeout=r().setTimeout(()=>{this.mediaUpdateTimeout=null,this.trigger("mediaupdatetimeout"),this.updateMediaUpdateTimeout_(e)},e))}start(){if(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(()=>{this.setupInitialPlaylist(this.src)},0);this.request=this.vhs_.xhr({uri:this.src,withCredentials:this.withCredentials},(e,t)=>{if(!this.request)return;if(this.request=null,e)return this.error={status:t.status,message:`HLS playlist request error at URL: ${this.src}.`,responseText:t.responseText,code:2},"HAVE_NOTHING"===this.state&&(this.started=!1),this.trigger("error");this.src=sE(this.src,t);const n=this.parseManifest_({manifestString:t.responseText,url:this.src});this.setupInitialPlaylist(n)})}srcUri(){return"string"==typeof this.src?this.src:this.src.uri}setupInitialPlaylist(e){if(this.state="HAVE_MAIN_MANIFEST",e.playlists)return this.main=e,s7(this.main,this.srcUri()),e.playlists.forEach(e=>{e.segments=or(e),e.segments.forEach(t=>{oi(t,e.resolvedUri)})}),this.trigger("loadedplaylist"),void(this.request||this.media(this.main.playlists[0]));const t=this.srcUri()||r().location.href;this.main=((e,t)=>{const n=s5(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.main.playlists[0].id}),this.trigger("loadedmetadata")}}const{xhr:ou}=sT,oc=function(e,t,n,i){const 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)},od=function(){const e=function e(t,n){t=sI({timeout:45e3},t);const i=e.beforeRequest||sT.Vhs.xhr.beforeRequest,r=e._requestCallbackSet||sT.Vhs.xhr._requestCallbackSet||new Set,s=e._responseCallbackSet||sT.Vhs.xhr._responseCallbackSet;i&&"function"==typeof i&&(sT.log.warn("beforeRequest is deprecated, use onRequest instead."),r.add(i));const o=!0===sT.Vhs.xhr.original?ou:sT.Vhs.xhr,a=((e,t)=>{if(!e||!e.size)return;let n=t;return e.forEach(e=>{n=e(n)}),n})(r,t);r.delete(i);const l=o(a||t,function(e,t){return((e,t,n,i)=>{e&&e.size&&e.forEach(e=>{e(t,n,i)})})(s,l,e,t),oc(l,e,t,n)}),u=l.abort;return l.abort=function(){return l.aborted=!0,u.apply(l,arguments)},l.uri=t.uri,l.requestTime=Date.now(),l};return e.original=!0,e},oh=function(e){const t={};return e.byterange&&(t.Range=function(e){let t;const n=e.offset;return t="bigint"==typeof e.offset||"bigint"==typeof e.length?r().BigInt(e.offset)+r().BigInt(e.length)-r().BigInt(1):e.offset+e.length-1,"bytes="+n+"-"+t}(e.byterange)),t},op=function(e,t){return e.start(t)+"-"+e.end(t)},of=function(e,t){const n=e.toString(16);return"00".substring(0,2-n.length)+n+(t%2?" ":"")},om=function(e){return e>=32&&e<126?String.fromCharCode(e):"."},og=function(e){const t={};return Object.keys(e).forEach(n=>{const i=e[n];H(i)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t},ov=function(e){const t=e.byterange||{length:1/0,offset:0};return[t.length,t.offset,e.resolvedUri].join(",")},oy=function(e){return e.resolvedUri},ob=e=>{const t=Array.prototype.slice.call(e),n=16;let i,r,s="";for(let e=0;e<t.length/n;e++)i=t.slice(e*n,e*n+n).map(of).join(""),r=t.slice(e*n,e*n+n).map(om).join(""),s+=i+" "+r+"\n";return s};var o_=Object.freeze({__proto__:null,createTransferableMessage:og,initSegmentId:ov,segmentKeyId:oy,hexDump:ob,tagDump:({bytes:e})=>ob(e),textRanges:e=>{let t,n="";for(t=0;t<e.length;t++)n+=op(e,t)+" ";return n}});const oT=({programTime:e,playlist:t,retryCount:n=2,seekTo:i,pauseAfterSeek:r=!0,tech:s,callback:o})=>{if(!o)throw new Error("seekToProgramTime: callback must be provided");if(void 0===e||!t||!i)return o({message:"seekToProgramTime: programTime, seekTo and playlist must be provided"});if(!t.endList&&!s.hasStarted_)return o({message:"player must be playing a live stream to start buffering"});if(!(e=>{if(!e.segments||0===e.segments.length)return!1;for(let t=0;t<e.segments.length;t++)if(!e.segments[t].dateTimeObject)return!1;return!0})(t))return o({message:"programDateTime tags must be provided in the manifest "+t.resolvedUri});const a=((e,t)=>{let n;try{n=new Date(e)}catch(e){return null}if(!t||!t.segments||0===t.segments.length)return null;let i=t.segments[0];if(n<new Date(i.dateTimeObject))return null;for(let e=0;e<t.segments.length-1&&(i=t.segments[e],!(n<new Date(t.segments[e+1].dateTimeObject)));e++);const r=t.segments[t.segments.length-1],s=r.dateTimeObject,o=r.videoTimingInfo?(a=r.videoTimingInfo).transmuxedPresentationEnd-a.transmuxedPresentationStart-a.transmuxerPrependedSeconds:r.duration+.25*r.duration;var a;return n>new Date(s.getTime()+1e3*o)?null:(n>new Date(s)&&(i=r),{segment:i,estimatedStart:i.videoTimingInfo?i.videoTimingInfo.transmuxedPresentationStart:s4.duration(t,t.mediaSequence+t.segments.indexOf(i)),type:i.videoTimingInfo?"accurate":"estimate"})})(e,t);if(!a)return o({message:`${e} was not found in the stream`});const l=a.segment,u=((e,t)=>{let n,i;try{n=new Date(e),i=new Date(t)}catch(e){}const r=n.getTime();return(i.getTime()-r)/1e3})(l.dateTimeObject,e);if("estimate"===a.type)return 0===n?o({message:`${e} is not buffered yet. Try again`}):(i(a.estimatedStart+u),void s.one("seeked",()=>{oT({programTime:e,playlist:t,retryCount:n-1,seekTo:i,pauseAfterSeek:r,tech:s,callback:o})}));const c=l.start+u;s.one("seeked",()=>o(null,s.currentTime())),r&&s.pause(),i(c)},oj=(e,t)=>{if(4===e.readyState)return t()},{EventTarget:ow}=sT,oS=function(e,t){if(!os(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(let n=0;n<e.segments.length;n++){const i=e.segments[n],r=t.segments[n];if(i.uri!==r.uri)return!1;if(!i.byterange&&!r.byterange)continue;const s=i.byterange,o=r.byterange;if(s&&!o||!s&&o)return!1;if(s.offset!==o.offset||s.length!==o.length)return!1}return!0},ox=(e,t,n,i)=>`placeholder-uri-${e}-${t}-${i.attributes.NAME||n}`,ok=(e,t)=>(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,oE=(e,t)=>{const n={};for(const i in e){const r=e[i].sidx;if(r){const e=em(r);if(!t[e])break;const i=t[e].sidxInfo;ok(i,r)&&(n[e]=t[e])}}return n};class oC extends ow{constructor(e,t,n={},i){super(),this.mainPlaylistLoader_=i||this,i||(this.isMain_=!0);const{withCredentials:r=!1}=n;if(this.vhs_=t,this.withCredentials=r,this.addMetadataToTextTrack=n.addMetadataToTextTrack,!e)throw new Error("A non-empty playlist URL or object is required");this.on("minimumUpdatePeriod",()=>{this.refreshXml_()}),this.on("mediaupdatetimeout",()=>{this.media().attributes.serviceLocation||this.refreshMedia_(this.media().id)}),this.state="HAVE_NOTHING",this.loadedPlaylists_={},this.logger_=sC("DashPlaylistLoader"),this.isMain_?(this.mainPlaylistLoader_.srcUrl=e,this.mainPlaylistLoader_.sidxMapping_={}):this.childPlaylist_=e}requestErrored_(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)}addSidxSegments_(e,t,n){const i=e.sidx&&em(e.sidx);if(!e.sidx||!i||this.mainPlaylistLoader_.sidxMapping_[i])return void(this.mediaRequest_=r().setTimeout(()=>n(!1),0));const s=sE(e.sidx.resolvedUri),o=(r,s)=>{if(this.requestErrored_(r,s,t))return;const o=this.mainPlaylistLoader_.sidxMapping_;let a;try{a=e$()(W(s.response).subarray(8))}catch(e){return void this.requestErrored_(e,s,t)}return o[i]={sidxInfo:e.sidx,sidx:a},ec(e,a,e.sidx.resolvedUri),n(!0)};this.request=((e,t,n)=>{let i,r=[],s=!1;const o=function(e,t,i,r){return t.abort(),s=!0,n(e,t,i,r)},a=function(e,t){if(s)return;if(e)return o(e,t,"",r);const 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 W(t[0]);var i=t.reduce(function(e,t,n){return e+(t.byteLength||t.length)},0),r=new Uint8Array(i),s=0;return t.forEach(function(e){e=W(e),r.set(e,s),s+=e.byteLength}),r}(r,Z(n,!0)),i=i||eZ(r),r.length<10||i&&r.length<i+2)return oj(t,()=>o(e,t,"",r));const a=tr(r);return"ts"===a&&r.length<188||!a&&r.length<376?oj(t,()=>o(e,t,"",r)):o(null,t,a,r)},l={uri:e,beforeSend(e){e.overrideMimeType("text/plain; charset=x-user-defined"),e.addEventListener("progress",function({total:t,loaded:n}){return oc(e,null,{statusCode:e.status},a)})}},u=t(l,function(e,t){return oc(u,e,t,a)});return u})(s,this.vhs_.xhr,(t,n,i,r)=>{if(t)return o(t,n);if(!i||"mp4"!==i)return o({status:n.status,message:`Unsupported ${i||"unknown"} container type for sidx segment at URL: ${s}`,response:"",playlist:e,internal:!0,playlistExclusionDuration:1/0,code:2},n);const{offset:a,length:l}=e.sidx.byterange;if(r.length>=l+a)return o(t,{response:r.subarray(a,a+l),status:n.status,uri:n.uri});this.request=this.vhs_.xhr({uri:s,responseType:"arraybuffer",headers:oh({byterange:e.sidx.byterange})},o)})}dispose(){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.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.off()}hasPendingRequest(){return this.request||this.mediaRequest_}stopRequest(){if(this.request){const e=this.request;this.request=null,e.onreadystatechange=null,e.abort()}}media(e){if(!e)return this.media_;if("HAVE_NOTHING"===this.state)throw new Error("Cannot switch media playlist from "+this.state);const t=this.state;if("string"==typeof e){if(!this.mainPlaylistLoader_.main.playlists[e])throw new Error("Unknown playlist URI: "+e);e=this.mainPlaylistLoader_.main.playlists[e]}const n=!this.media_||e.id!==this.media_.id;if(n&&this.loadedPlaylists_[e.id]&&this.loadedPlaylists_[e.id].endList)return this.state="HAVE_METADATA",this.media_=e,void(n&&(this.trigger("mediachanging"),this.trigger("mediachange")));n&&(this.media_&&this.trigger("mediachanging"),this.addSidxSegments_(e,t,n=>{this.haveMetadata({startingState:t,playlist:e})}))}haveMetadata({startingState:e,playlist:t}){this.state="HAVE_METADATA",this.loadedPlaylists_[t.id]=t,this.mediaRequest_=null,this.refreshMedia_(t.id),"HAVE_MAIN_MANIFEST"===e?this.trigger("loadedmetadata"):this.trigger("mediachange")}pause(){this.mainPlaylistLoader_.createMupOnMedia_&&(this.off("loadedmetadata",this.mainPlaylistLoader_.createMupOnMedia_),this.mainPlaylistLoader_.createMupOnMedia_=null),this.stopRequest(),r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null,this.isMain_&&(r().clearTimeout(this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_),this.mainPlaylistLoader_.minimumUpdatePeriodTimeout_=null),"HAVE_NOTHING"===this.state&&(this.started=!1)}load(e){r().clearTimeout(this.mediaUpdateTimeout),this.mediaUpdateTimeout=null;const t=this.media();if(e){const e=t?t.targetDuration/2*1e3:5e3;this.mediaUpdateTimeout=r().setTimeout(()=>this.load(),e)}else this.started?t&&!t.endList?(this.isMain_&&!this.minimumUpdatePeriodTimeout_&&(this.trigger("minimumUpdatePeriod"),this.updateMinimumUpdatePeriodTimeout_()),this.trigger("mediaupdatetimeout")):this.trigger("loadedplaylist"):this.start()}start(){this.started=!0,this.isMain_?this.requestMain_((e,t)=>{this.haveMain_(),this.hasPendingRequest()||this.media_||this.media(this.mainPlaylistLoader_.main.playlists[0])}):this.mediaRequest_=r().setTimeout(()=>this.haveMain_(),0)}requestMain_(e){this.request=this.vhs_.xhr({uri:this.mainPlaylistLoader_.srcUrl,withCredentials:this.withCredentials},(t,n)=>{if(this.requestErrored_(t,n))return void("HAVE_NOTHING"===this.state&&(this.started=!1));const i=n.responseText!==this.mainPlaylistLoader_.mainXml_;return this.mainPlaylistLoader_.mainXml_=n.responseText,n.responseHeaders&&n.responseHeaders.date?this.mainLoaded_=Date.parse(n.responseHeaders.date):this.mainLoaded_=Date.now(),this.mainPlaylistLoader_.srcUrl=sE(this.mainPlaylistLoader_.srcUrl,n),i?(this.handleMain_(),void this.syncClientServerClock_(()=>e(n,i))):e(n,i)})}syncClientServerClock_(e){const t=(n=this.mainPlaylistLoader_.mainXml_,(e=>{const t=eM(e,"UTCTiming")[0];if(!t)return null;const n=eL(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("UNSUPPORTED_UTC_TIMING_SCHEME")}return n})(eH(n)));var n;return null===t?(this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e()):"DIRECT"===t.method?(this.mainPlaylistLoader_.clientOffset_=t.value-Date.now(),e()):void(this.request=this.vhs_.xhr({uri:sk(this.mainPlaylistLoader_.srcUrl,t.value),method:t.method,withCredentials:this.withCredentials},(n,i)=>{if(!this.request)return;if(n)return this.mainPlaylistLoader_.clientOffset_=this.mainLoaded_-Date.now(),e();let r;r="HEAD"===t.method?i.responseHeaders&&i.responseHeaders.date?Date.parse(i.responseHeaders.date):this.mainLoaded_:Date.parse(i.responseText),this.mainPlaylistLoader_.clientOffset_=r-Date.now(),e()}))}haveMain_(){this.state="HAVE_MAIN_MANIFEST",this.isMain_?this.trigger("loadedplaylist"):this.media_||this.media(this.childPlaylist_)}handleMain_(){this.mediaRequest_=null;const e=this.mainPlaylistLoader_.main;let t=(({mainXml:e,srcUrl:t,clientOffset:n,sidxMapping:i,previousManifest:r})=>{const s=((e,t={})=>{const n=((e,t={})=>{const{manifestUri:n="",NOW:i=Date.now(),clientOffset:r=0,eventHandler:s=function(){}}=t,o=eM(e,"Period");if(!o.length)throw new Error("INVALID_NUMBER_OF_PERIOD");const a=eM(e,"Location"),l=eL(e),u=eU([{baseUrl:n}],eM(e,"BaseURL")),c=eM(e,"ContentSteering");l.type=l.type||"static",l.sourceDuration=l.mediaPresentationDuration||0,l.NOW=i,l.clientOffset=r,a.length&&(l.locations=a.map(eO));const d=[];return o.forEach((e,t)=>{const n=eL(e),i=d[t-1];n.start=(({attributes:e,priorPeriodAttributes:t,mpdType:n})=>"number"==typeof e.start?e.start:t&&"number"==typeof t.start&&"number"==typeof t.duration?t.start+t.duration:t||"static"!==n?null:0)({attributes:n,priorPeriodAttributes:i?i.attributes:null,mpdType:l.type}),d.push({node:e,attributes:n})}),{locations:l.locations,contentSteeringInfo:eV(c,s),representationInfo:ei(d.map(eq(l,u))),eventStream:ei(d.map(ez))}})(eH(e),t),i=n.representationInfo.map(eA);return eS({dashPlaylists:i,locations:n.locations,contentSteering:n.contentSteeringInfo,sidxMapping:t.sidxMapping,previousManifest:t.previousManifest,eventStream:n.eventStream})})(e,{manifestUri:t,clientOffset:n,sidxMapping:i,previousManifest:r});return s7(s,t,ox),s})({mainXml:this.mainPlaylistLoader_.mainXml_,srcUrl:this.mainPlaylistLoader_.srcUrl,clientOffset:this.mainPlaylistLoader_.clientOffset_,sidxMapping:this.mainPlaylistLoader_.sidxMapping_,previousManifest:e});e&&(t=((e,t,n)=>{let i=!0,r=sI(e,{duration:t.duration,minimumUpdatePeriod:t.minimumUpdatePeriod,timelineStarts:t.timelineStarts});for(let e=0;e<t.playlists.length;e++){const s=t.playlists[e];if(s.sidx){const e=em(s.sidx);n&&n[e]&&n[e].sidx&&ec(s,n[e].sidx,s.sidx.resolvedUri)}const o=oo(r,s,oS);o&&(r=o,i=!1)}return s6(t,(e,t,n,s)=>{if(e.playlists&&e.playlists.length){const o=e.playlists[0].id,a=oo(r,e.playlists[0],oS);a&&(r=a,s in r.mediaGroups[t][n]||(r.mediaGroups[t][n][s]=e),r.mediaGroups[t][n][s].playlists[0]=r.playlists[o],i=!1)}}),((e,t)=>{s6(e,(n,i,r,s)=>{s in t.mediaGroups[i][r]||delete e.mediaGroups[i][r][s]})})(r,t),t.minimumUpdatePeriod!==e.minimumUpdatePeriod&&(i=!1),i?null:r})(e,t,this.mainPlaylistLoader_.sidxMapping_)),this.mainPlaylistLoader_.main=t||e;const n=this.mainPlaylistLoader_.main.locations&&this.mainPlaylistLoader_.main.locations[0];return n&&n!==this.mainPlaylistLoader_.srcUrl&&(this.mainPlaylistLoader_.srcUrl=n),(!e||t&&t.minimumUpdatePeriod!==e.minimumUpdatePeriod)&&this.updateMinimumUpdatePeriodTimeout_(),this.addEventStreamToMetadataTrack_(t),Boolean(t)}updateMinimumUpdatePeriodTimeout_(){const e=this.mainPlaylistLoader_;e.createMupOnMedia_&&(e.off("loadedmetadata",e.createMupOnMedia_),e.createMupOnMedia_=null),e.minimumUpdatePeriodTimeout_&&(r().clearTimeout(e.minimumUpdatePeriodTimeout_),e.minimumUpdatePeriodTimeout_=null);let t=e.main&&e.main.minimumUpdatePeriod;0===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)}createMUPTimeout_(e){const t=this.mainPlaylistLoader_;t.minimumUpdatePeriodTimeout_=r().setTimeout(()=>{t.minimumUpdatePeriodTimeout_=null,t.trigger("minimumUpdatePeriod"),t.createMUPTimeout_(e)},e)}refreshXml_(){this.requestMain_((e,t)=>{t&&(this.media_&&(this.media_=this.mainPlaylistLoader_.main.playlists[this.media_.id]),this.mainPlaylistLoader_.sidxMapping_=((e,t)=>{let n=oE(e.playlists,t);return s6(e,(e,i,r,s)=>{if(e.playlists&&e.playlists.length){const i=e.playlists;n=sI(n,oE(i,t))}}),n})(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.sidxMapping_),this.addSidxSegments_(this.media(),this.state,e=>{this.refreshMedia_(this.media().id)}))})}refreshMedia_(e){if(!e)throw new Error("refreshMedia_ must take a media id");this.media_&&this.isMain_&&this.handleMain_();const t=this.mainPlaylistLoader_.main.playlists,n=!this.media_||this.media_!==t[e];if(n?this.media_=t[e]:this.trigger("playlistunchanged"),!this.mediaUpdateTimeout){const e=()=>{this.media().endList||(this.mediaUpdateTimeout=r().setTimeout(()=>{this.trigger("mediaupdatetimeout"),e()},oa(this.media(),Boolean(n))))};e()}this.trigger("loadedplaylist")}addEventStreamToMetadataTrack_(e){if(e&&this.mainPlaylistLoader_.main.eventStream){const e=this.mainPlaylistLoader_.main.eventStream.map(e=>({cueTime:e.start,frames:[{data:e.messageData}]}));this.addMetadataToTextTrack("EventStream",e,this.mainPlaylistLoader_.main.duration)}}}var oI={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};const oD=function(e){return e.on=e.addEventListener,e.off=e.removeEventListener,e},oA=function(e){return function(){const t=function(e){try{return URL.createObjectURL(new Blob([e],{type:"application/javascript"}))}catch(n){const t=new BlobBuilder;return t.append(e),URL.createObjectURL(t.getBlob())}}(e),n=oD(new Worker(t));n.objURL=t;const i=n.terminate;return n.on=n.addEventListener,n.off=n.removeEventListener,n.terminate=function(){return URL.revokeObjectURL(t),i.call(this)},n}},oM=function(e){return`var browserWorkerPolyFill = ${oD.toString()}; 12browserWorkerPolyFill(self); 13`+e},oO=function(e){return e.toString().replace(/^function.+?{/,"").slice(0,-1)},oP=oM(oO(function(){var e="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},t=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,s;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(s=[],i=arguments.length,i=1;i<arguments.length;++i)s.push(arguments[i]);for(r=n.length,i=0;i<r;++i)n[i].apply(this,s)}},this.dispose=function(){e={}}}};t.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},t.prototype.push=function(e){this.trigger("data",e)},t.prototype.flush=function(e){this.trigger("done",e)},t.prototype.partialFlush=function(e){this.trigger("partialdone",e)},t.prototype.endTimeline=function(e){this.trigger("endedtimeline",e)},t.prototype.reset=function(e){this.trigger("reset",e)};var i,r,s,o,a,l,u,c,d,h,p,f,m,g,v,y,b,_,T,j,w,S,x,k,E,C,I,D,A,M,O,P,N,L,R,U,B,z,F,q,V=t,H=Math.pow(2,32),W={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?
vendor: 4,191 bytes, line 13
13Number(t):t:n.getUint32(0)*H+n.getUint32(4)},MAX_UINT32:H},G=W.MAX_UINT32;!function(){var e;if(S={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 S)S.hasOwnProperty(e)&&(S[e]=[e.charCodeAt(0),e.charCodeAt(1),e.charCodeAt(2),e.charCodeAt(3)]);x=new Uint8Array(["i".charCodeAt(0),"s".charCodeAt(0),"o".charCodeAt(0),"m".charCodeAt(0)]),E=new Uint8Array(["a".charCodeAt(0),"v".charCodeAt(0),"c".charCodeAt(0),"1".charCodeAt(0)]),k=new Uint8Array([0,0,0,1]),C=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]),I=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]),D={video:C,audio:I},O=new Uint8Array([0,0,0,0,0,0,0,1,0,0,0,12,117,114,108,32,0,0,0,1]),M=new Uint8Array([0,0,0,0,0,0,0,0]),P=new Uint8Array([0,0,0,0,0,0,0,0]),N=P,L=new Uint8Array([0,0,0,0,0,0,0,0,0,0,0,0]),R=P,A=new Uint8Array([0,0,0,1,0,0,0,0,0,0,0,0])}}(),i=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},r=function(){return i(S.dinf,i(S.dref,O))},s=function(e){return i(S.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]))},v=function(e){return i(S.hdlr,D[e])},g=function(e){var t=new Uint8Array([0,0,0,0,0,0,0,2,0,0,0,3,0,1,95,144,e.duration>>>24&255,e.duration>>>16&255,e.duration>>>8&255,255&e.duration,85,196,0,0]);return e.samplerate&&(t[12]=e.samplerate>>>24&255,t[13]=e.samplerate>>>16&255,t[14]=e.samplerate>>>8&255,t[15]=255&e.samplerate),i(S.mdhd,t)},m=function(e){return i(S.mdia,g(e),v(e.type),l(e))},a=function(e){return i(S.mfhd,new Uint8Array([0,0,0,0,(4278190080&e)>>24,(16711680&e)>>16,(65280&e)>>8,255&e]))},l=function(e){return i(S.minf,"video"===e.type?i(S.vmhd,A):i(S.smhd,M),r(),b(e))},u=function(e,t){for(var n=[],r=t.length;r--;)n[r]=T(t[r]);return i.apply(null,[S.moof,a(e)].concat(n))},c=function(e){for(var t=e.length,n=[];t--;)n[t]=p(e[t]);return i.apply(null,[S.moov,h(4294967295)].concat(n).concat(d(e)))},d=function(e){for(var t=e.length,n=[];t--;)n[t]=j(e[t]);return i.apply(null,[S.mvex].concat(n))},h=function(e){var t=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 i(S.mvhd,t)},y=function(e){var t,n,r=e.samples||[],s=new Uint8Array(4+r.length);for(n=0;n<r.length;n++)t=r[n].flags,s[n+4]=t.dependsOn<<4|t.isDependedOn<<2|t.hasRedundancy;return i(S.sdtp,s)},b=function(e){return i(S.stbl,_(e),i(S.stts,R),i(S.stsc,N),i(S.stsz,L),i(S.stco,P))},_=function(e){return i(S.stsd,new Uint8Array([0,0,0,0,0,0,0,1]),"video"===e.type?U(e):B(e))},U=function(e){var t,n,r=e.sps||[],s=e.pps||[],o=[],a=[];for(t=0;t<r.length;t++)o.push((65280&r[t].byteLength)>>>8),o.push(255&r[t].byteLength),o=o.concat(Array.prototype.slice.call(r[t]));for(t=0;t<s.length;t++)a.push((65280&s[t].byteLength)>>>8),a.push(255&s[t].byteLength),a=a.concat(Array.prototype.slice.call(s[t]));if(n=[S.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]),i(S.avcC,new Uint8Array([1,e.profileIdc,e.profileCompatibility,e.levelIdc,255].concat([r.length],o,[s.length],a))),i(S.btrt,new Uint8Array([0,28,156,128,0,45,198,192,0,45,198,192]))],e.sarRatio){var l=e.s
vendor: 11,395 bytes, line 13
13arRatio[0],u=e.sarRatio[1];n.push(i(S.pasp,new Uint8Array([(4278190080&l)>>24,(16711680&l)>>16,(65280&l)>>8,255&l,(4278190080&u)>>24,(16711680&u)>>16,(65280&u)>>8,255&u])))}return i.apply(null,n)},B=function(e){return i(S.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]),s(e))},f=function(e){var t=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 i(S.tkhd,t)},T=function(e){var t,n,r,s,o,a;return t=i(S.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])),o=Math.floor(e.baseMediaDecodeTime/G),a=Math.floor(e.baseMediaDecodeTime%G),n=i(S.tfdt,new Uint8Array([1,0,0,0,o>>>24&255,o>>>16&255,o>>>8&255,255&o,a>>>24&255,a>>>16&255,a>>>8&255,255&a])),"audio"===e.type?(r=w(e,92),i(S.traf,t,n,r)):(s=y(e),r=w(e,s.length+92),i(S.traf,t,n,r,s))},p=function(e){return e.duration=e.duration||4294967295,i(S.trak,f(e),m(e))},j=function(e){var t=new Uint8Array([0,0,0,0,(4278190080&e.id)>>24,(16711680&e.id)>>16,(65280&e.id)>>8,255&e.id,0,0,0,1,0,0,0,0,0,0,0,0,0,1,0,1]);return"video"!==e.type&&(t[t.length-1]=0),i(S.trex,t)},q=function(e,t){var n=0,i=0,r=0,s=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&&(s=8)),[0,0,n|i|r|s,1,(4278190080&e.length)>>>24,(16711680&e.length)>>>16,(65280&e.length)>>>8,255&e.length,(4278190080&t)>>>24,(16711680&t)>>>16,(65280&t)>>>8,255&t]},F=function(e,t){var n,r,s,o,a,l;for(t+=20+16*(o=e.samples||[]).length,s=q(o,t),(r=new Uint8Array(s.length+16*o.length)).set(s),n=s.length,l=0;l<o.length;l++)a=o[l],r[n++]=(4278190080&a.duration)>>>24,r[n++]=(16711680&a.duration)>>>16,r[n++]=(65280&a.duration)>>>8,r[n++]=255&a.duration,r[n++]=(4278190080&a.size)>>>24,r[n++]=(16711680&a.size)>>>16,r[n++]=(65280&a.size)>>>8,r[n++]=255&a.size,r[n++]=a.flags.isLeading<<2|a.flags.dependsOn,r[n++]=a.flags.isDependedOn<<6|a.flags.hasRedundancy<<4|a.flags.paddingValue<<1|a.flags.isNonSyncSample,r[n++]=61440&a.flags.degradationPriority,r[n++]=15&a.flags.degradationPriority,r[n++]=(4278190080&a.compositionTimeOffset)>>>24,r[n++]=(16711680&a.compositionTimeOffset)>>>16,r[n++]=(65280&a.compositionTimeOffset)>>>8,r[n++]=255&a.compositionTimeOffset;return i(S.trun,r)},z=function(e,t){var n,r,s,o,a,l;for(t+=20+8*(o=e.samples||[]).length,s=q(o,t),(n=new Uint8Array(s.length+8*o.length)).set(s),r=s.length,l=0;l<o.length;l++)a=o[l],n[r++]=(4278190080&a.duration)>>>24,n[r++]=(16711680&a.duration)>>>16,n[r++]=(65280&a.duration)>>>8,n[r++]=255&a.duration,n[r++]=(4278190080&a.size)>>>24,n[r++]=(16711680&a.size)>>>16,n[r++]=(65280&a.size)>>>8,n[r++]=255&a.size;return i(S.trun,n)},w=function(e,t){return"audio"===e.type?z(e,t):F(e,t)};var $,Q,Z,Y,X,K,J,ee,et={ftyp:o=function(){return i(S.ftyp,x,k,x,E)},mdat:function(e){return i(S.mdat,e)},moof:u,moov:c,initSegment:function(e){var t,n=o(),i=c(e);return(t=new Uint8Array(n.byteLength+i.byteLength)).set(n),t.set(i,n.byteLength),t}},en=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},ei={groupNalsIntoFrames: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},groupFramesIntoGops: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},extendFirstKeyFrame: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},generateSampleTable:function(e,t){var n,i,r,s,o,a=t||0,l=[];for(n=0;n<e.length;n++)for(s=e[n],i=0;i<s.length;i++)o=s[i],a+=(r=en(o,a)).size,l.push(r);return l},concatenateNalData:function(e){var t,n,i,r,s,o,a=0,l=e.byteLength,u=e.nalCount,c=new Uint8Array(l+4*u),d=new DataView(c.buffer);for(t=0;t<e.length;t++)for(r=e[t],n=0;n<r.length;n++)for(s=r[n],i=0;i<s.length;i++)o=s[i],d.setUint32(a,o.data.byteLength),a+=4,c.set(o.data,a),a+=o.data.byteLength;return c},generateSampleTableForFrame:function(e,t){var n,i=[];return n=en(e,t||0),i.push(n),i},concatenateNalDataForFrame:function(e){var t,n,i=0,r=e.byteLength,s=e.length,o=new Uint8Array(r+4*s),a=new DataView(o.buffer);for(t=0;t<e.length;t++)n=e[t],a.setUint32(i,n.data.byteLength),i+=4,o.set(n.data,i),i+=n.data.byteLength;return o}},er=[33,16,5,32,164,27],es=[33,65,108,84,1,2,4,8,168,2,4,8,17,191,252],eo=function(e){for(var t=[];e--;)t.push(0);return t},ea=9e4;K=function(e,t){return Q(X(e,t))},J=function(e,t){return Z(Y(e),t)},ee=function(e,t,n){return Y(n?e:e-t)};var el={ONE_SECOND_IN_TS:ea,secondsToVideoTs:Q=function(e){return e*ea},secondsToAudioTs:Z=function(e,t){return e*t},videoTsToSeconds:Y=function(e){return e/ea},audioTsToSeconds:X=function(e,t){return e/t},audioTsToVideoTs:K,videoTsToAudioTs:J,metadataTsToSeconds:ee},eu=el,ec={prefixWithSilence:function(e,t,n,i){var r,s,o,a,l,u=0,c=0,d=0;if(t.length&&(r=eu.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),s=Math.ceil(eu.ONE_SECOND_IN_TS/(e.samplerate/1024)),n&&i&&(u=r-Math.max(n,i),d=(c=Math.floor(u/s))*s),!(c<1||d>eu.ONE_SECOND_IN_TS/2))){for((o=function(){if(!$){var e={96e3:[er,[227,64],eo(154),[56]],88200:[er,[231],eo(170),[56]],64e3:[er,[248,192],eo(240),[56]],48e3:[er,[255,192],eo(268),[55,148,128],eo(54),[112]],44100:[er,[255,192],eo(268),[55,163,128],eo(84),[112]],32e3:[er,[255,192],eo(268),[55,234],eo(226),[112]],24e3:[er,[255,192],eo(268),[55,255,128],eo(268),[111,112],eo(126),[224]],16e3:[er,[255,192],eo(268),[55,255,128],eo(268),[111,255],eo(269),[223,108],eo(195),[1,192]],12e3:[es,eo(268),[3,127,248],eo(268),[6,255,240],eo(268),[13,255,224],eo(268),[27,253,128],eo(259),[56]],11025:[es,eo(268),[3,127,248],eo(268),[6,255,240],eo(268),[13,255,224],eo(268),[27,255,192],eo(268),[55,175,128],eo(108),[112]],8e3:[es,eo(268),[3,121,16],eo(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 $}()[e.samplerate])||(o=t[0].data),a=0;a<c;a++)l=t[0],t.splice(0,0,{data:o,dts:l.dts-s,pts:l.pts-s});return e.baseMediaDecodeTime-=Math.floor(eu.videoTsToAudioTs(d,e.samplerate)),d}},trimAdtsFramesByEarliestDts: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)}))},generateSampleTable: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},concatenateFrameData: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}},ed=el.ONE_SECOND_IN_TS,eh={clearDtsInfo:function(e){delete e.minSegmentDts,delete e.maxSegmentDts,delete e.minSegmentPts,delete e.maxSegmentPts},calculateTrackBaseMediaDecodeTime: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/ed,n=Math.floor(n)),n},collectDtsInfo: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))}},ep={parseSei: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},parseUserData: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)},parseCaptionPackets:function(e,t){var n,i,r,s,o=[];if(!(64&t[0]))return o;for(i=31&t[0],n=0;n<i;n++)s={type:3&t[2+(r=3*n)],pts:e},4&t[r+2]&&(s.ccData=t[r+3]<<8|t[r+4],o.push(s));return o},discardEmulationPreventionBytes:function(e){for(var t,n,i=e.byteLength,r=[],s=1;s<i-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(s=0;s<t;o++,s++)o===r[0]&&(o++,r.shift()),n[s]=e[o];return n},USER_DATA_REGISTERED_ITU_T_T35:4},ef=V,em=ep,eg=function(e){e=e||{},eg.prototype.init.call(this),this.parse708captions_="boolean"!=typeof e.parse708captions||e.parse708captions,this.captionPackets_=[],this.ccStreams_=[new ek(0,0),new ek(0,1),new ek(1,0),new ek(1,1)],this.parse708captions_&&(this.cc708Stream_=new eT({captionServices:e.captionServices})),this.reset(),this.ccStreams_.forEach(function(e){e.on("data",this.trigger.bind(this,"data")),e.on("partialdone",this.trigger.bind(this,"partialdone")),e.on("done",this.trigger.bind(this,"done"))},this),this.parse708captions_&&(this.cc708Stream_.on("data",this.trigger.bind(this,"data")),this.cc708Stream_.on("partialdone",this.trigger.bind(this,"partialdone")),this.cc708Stream_.on("done",this.trigger.bind(this,"done")))};eg.prototype=new ef,eg.prototype.push=function(e){var t,n,i;
vendor: 4,443 bytes, line 13
13if("sei_rbsp"===e.nalUnitType&&(t=em.parseSei(e.escapedRBSP)).payload&&t.payloadType===em.USER_DATA_REGISTERED_ITU_T_T35&&(n=em.parseUserData(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=em.parseCaptionPackets(e.pts,n),this.captionPackets_=this.captionPackets_.concat(i),this.latestDts_!==e.dts&&(this.numSameDts_=0),this.numSameDts_++,this.latestDts_=e.dts}},eg.prototype.flushCCStreams=function(e){this.ccStreams_.forEach(function(t){return"flush"===e?t.flush():t.partialFlush()},this)},eg.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)},eg.prototype.flush=function(){return this.flushStream("flush")},eg.prototype.partialFlush=function(){return this.flushStream("partialFlush")},eg.prototype.reset=function(){this.latestDts_=null,this.ignoreNextEqualDts_=!1,this.numSameDts_=0,this.activeCea608Channel_=[null,null],this.ccStreams_.forEach(function(e){e.reset()})},eg.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)},eg.prototype.setsChannel1Active=function(e){return 4096==(30720&e.ccData)},eg.prototype.setsChannel2Active=function(e){return 6144==(30720&e.ccData)},eg.prototype.setsTextOrXDSActive=function(e){return 256==(28928&e.ccData)||4138==(30974&e.ccData)||6186==(30974&e.ccData)},eg.prototype.dispatchCea708Packet=function(e){this.parse708captions_&&this.cc708Stream_.push(e)};var ev={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},ey=function(e){return 32<=e&&e<=127||160<=e&&e<=255},eb=function(e){this.windowNum=e,this.reset()};eb.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},eb.prototype.getText=function(){return this.rows.join("\n")},eb.prototype.clearText=function(){this.rows=[""],this.rowIdx=0},eb.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--},eb.prototype.isEmpty=function(){return 0===this.rows.length||1===this.rows.length&&""===this.rows[0]},eb.prototype.addText=function(e){this.rows[this.rowIdx]+=e},eb.prototype.backspace=function(){if(!this.isEmpty()){var e=this.rows[this.rowIdx];this.rows[this.rowIdx]=e.substr(0,e.length-1)}};var e_=function(e,t,n){this.serviceNum=e,this.text="",this.currentWindow=new eb(-1),this.windows=[],this.stream=n,"string"==typeof t&&this.createTextDecoder(t)};e_.prototype.init=function(e,t){this.startPts=e;for(var n=0;n<8;n++)this.windows[n]=new eb(n),"function"==typeof t&&(this.windows[n].beforeRowOverflow=t)},e_.prototype.setCurrentWindow=function(e){this.currentWindow=this.windows[e]},e_.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 eT=function(e){e=e||{},eT.prototype.init.call(this);var t,n=this,i=e.captionServices||{},r={};
vendor: 4,326 bytes, line 13
13Object.keys(i).forEach(e=>{t=i[e],/^SERVICE/.test(e)&&(r[e]=t.encoding)}),this.serviceEncodings=r,this.current708Packet=null,this.services={},this.push=function(e){3===e.type?(n.new708Packet(),n.add708Bytes(e)):(null===n.current708Packet&&n.new708Packet(),n.add708Bytes(e))}};eT.prototype=new ef,eT.prototype.new708Packet=function(){null!==this.current708Packet&&this.push708Packet(),this.current708Packet={data:[],ptsVals:[]}},eT.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)},eT.prototype.push708Packet=function(){var e=this.current708Packet,t=e.data,n=null,i=null,r=0,s=t[r++];for(e.seq=s>>6,e.sizeCode=63&s;r<t.length;r++)i=31&(s=t[r++]),7==(n=s>>5)&&i>0&&(n=s=t[r++]),this.pushServiceBlock(n,r,i),i>0&&(r+=i-1)},eT.prototype.pushServiceBlock=function(e,t,n){var i,r=t,s=this.current708Packet.data,o=this.services[e];for(o||(o=this.initService(e,r));r<t+n&&r<s.length;r++)i=s[r],ey(i)?r=this.handleText(r,o):24===i?r=this.multiByteCharacter(r,o):16===i?r=this.extendedCommands(r,o):128<=i&&i<=135?r=this.setCurrentWindow(r,o):152<=i&&i<=159?r=this.defineWindow(r,o):136===i?r=this.clearWindows(r,o):140===i?r=this.deleteWindows(r,o):137===i?r=this.displayWindows(r,o):138===i?r=this.hideWindows(r,o):139===i?r=this.toggleWindows(r,o):151===i?r=this.setWindowAttributes(r,o):144===i?r=this.setPenAttributes(r,o):145===i?r=this.setPenColor(r,o):146===i?r=this.setPenLocation(r,o):143===i?o=this.reset(r,o):8===i?o.currentWindow.backspace():12===i?o.currentWindow.clearText():13===i?o.currentWindow.pendingNewLine=!0:14===i?o.currentWindow.clearText():141===i&&r++},eT.prototype.extendedCommands=function(e,t){var n=this.current708Packet.data[++e];return ey(n)&&(e=this.handleText(e,t,{isExtended:!0})),e},eT.prototype.getPts=function(e){return this.current708Packet.ptsVals[Math.floor(e/2)]},eT.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 e_(e,i,r),this.services[e].init(this.getPts(t),function(t){r.flushDisplayed(t,r.services[e])}),this.services[e]},eT.prototype.handleText=function(e,t,n){var i,r,s,o,a=n&&n.isExtended,l=n&&n.isMultiByte,u=this.current708Packet.data,c=a?4096:0,d=u[e],h=u[e+1],p=t.currentWindow;if(l?(r=[d,h],e++):r=[d],t.textDecoder_&&!a)i=t.textDecoder_.decode(new Uint8Array(r));else if(l){const e=r.map(e=>("0"+(255&e).toString(16)).slice(-2)).join("");i=String.fromCharCode(parseInt(e,16))}else o=ev[s=c|d]||s,i=4096&s&&s===o?"":String.fromCharCode(o);return p.pendingNewLine&&!p.isEmpty()&&p.newLine(this.getPts(e)),p.pendingNewLine=!1,p.addText(i),e},eT.prototype.multiByteCharacter=function(e,t){var n=this.current708Packet.data,i=n[e+1],r=n[e+2];return ey(i)&&ey(r)&&(e=this.handleText(++e,t,{isMultiByte:!0})),e},eT.prototype.setCurrentWindow=function(e,t){var n=7&this.current708Packet.data[e];return t.setCurrentWindow(n),e},eT.prototype.defineWindow=function(e,t){var n=this.current708Packet.data,i=n[e],r=7&i;t.setCurrentWindow(r);var s=t.currentWindow;return i=n[++e],s.visible=(32&i)>>5,s.rowLock=(16&i)>>4,s.columnLock=(8&i)>>3,s.priority=7&i,i=n[++e],s.relativePositioning=(128&i)>>7,s.anchorVertical=127&i,i=n[++e],s.anchorHorizontal=i,i=n[++e],s.anchorPoint=(240&i)>>4,s.rowCount=15&i,i=n[++e],s.columnCount=63&i,i=n[++e],s.windowStyle=(56&i)>>3,s.penStyle=7&i,s.virtualRowCount=s.rowCount+1,e},eT.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},eT.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},eT.prototype.pushCaption=function(e){""!==e.text&&(this.trigger("data",{startPts:e.startPts,endPts:e.endPts,text:e.text,stream
vendor: 8,586 bytes, line 13
13:"cc708_"+e.serviceNum}),e.text="",e.startPts=e.endPts)},eT.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},eT.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},eT.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},eT.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},eT.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},eT.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},eT.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},eT.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},eT.prototype.reset=function(e,t){var n=this.getPts(e);return this.flushDisplayed(n,t),this.initService(t.serviceNum,e)};var ej={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},ew=function(e){return null===e?"":(e=ej[e]||e,String.fromCharCode(e))},eS=[4352,4384,4608,4640,5376,5408,5632,5664,5888,5920,4096,4864,4896,5120,5152],ex=function(){for(var e=[],t=15;t--;)e.push({text:"",indent:0,offset:0});return e},ek=function(e,t){ek.prototype.init.call(this),this.field_=e||0,this.dataChannel_=t||0,this.name_="CC"+(1+(this.field_<<1|this.dataChannel_)),this.setConstants(),this.reset(),this.push=function(e){var t,n,i,r,s;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_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1);else if(t===this.ERASE_DISPLAYED_MEMORY_)this.flushDisplayed(e.pts),this.displayed_=ex();else if(t===this.ERASE_NON_DISPLAYED_MEMORY_)this.nonDisplayed_=ex();else if(t===this.RESUME_DIRECT_CAPTIONING_)"paintOn"!==this.mode_&&(this.flushDisplayed(e.pts),this.displayed_=ex()),this.mode_="paintOn",this.startPts_=e.pts;else if(this.isSpecialCharacter(i,r))s=ew((i=(3&i)<<8)|r),this[this.mode_](e.pts,s),this.column_++;else if(this.isExtCharacter(i,r))"popOn"===this.mode_?this.nonDisplayed_[this.row_].text=this.nonDisplayed_[this.row_].text.slice(0,-1):this.displayed_[this.row_].text=this.displayed_[this.row_].text.slice(0,-1),s=ew((i=(3&i)<<8)|r),this[this.mode_](e.pts,s),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)){const e=3&r;this.nonDisplayed_[this.row_].offset=e,this.column_+=e}else if(this.isPAC(i,r)){var o=eS.indexOf(7968&t);if("rollUp"===this.mode_&&(o-this.rollUpRows_+1<0&&(o=this.rollUpRows_-1),this.setRollUp(e.pts,o)),o!==this.row_&&(this.clearFormatting(e.pts),this.row_=o),1&r&&-1===this.formatting_.indexOf("u")&&this.addFormatting(e.pts,["u"]),16==(16&t)){const e=(14&t)>>1;this.column_=4*e,this.nonDisplayed_[this.row_].indent+=e}this.isColorPAC(r)&&14==(14&r)&&this.addFormatting(e.pts,["i"])}else this.isNormalChar(i)&&(0===r&&(r=null),s=ew(i),s+=ew(r),this[this.mode_](e.pts,s),this.column_+=s.length)}else this.lastControlCode_=null}};ek.prototype=new ef,ek.prototype.flushDisplayed=function(e){const t=e=>{this.trigger("log",{level:"warn",message:"Skipping a malformed 608 caption at index "+e+"."})},n=[];this.displayed_.forEach((e,i)=>{if(e&&e.text&&e.text.length){try{e.text=e.text.trim()}catch(e){t(i)}e.text.length&&n.push({text:e.text,line:i+1,position:10+Math.min(70,10*e.indent)+2.5*e.offset})}else null==e&&t(i)}),n.length&&this.trigger("data",{startPts:this.startPts_,endPts:e,content:n,stream:this.name_})},ek.prototype.reset=function(){this.mode_="popOn",this.topRow_=0,this.startPts_=0,this.displayed_=ex(),this.nonDisplayed_=ex(),this.lastControlCode_=null,this.column_=0,this.row_=14,this.rollUpRows_=2,this.formatting_=[]},ek.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_},ek.prototype.isSpecialCharacter=function(e,t){return e===this.EXT_&&t>=48&&t<=63},ek.prototype.isExtCharacter=function(e,t){return(e===this.EXT_+1||e===this.EXT_+2)&&t>=32&&t<=63},ek.prototype.isMidRowCode=function(e,t){return e===this.EXT_&&t>=32&&t<=47},ek.prototype.isOffsetControlCode=function(e,t){return e===this.OFFSET_&&t>=33&&t<=35},ek.prototype.isPAC=function(e,t){return e>=this.BASE_&&e<this.BASE_+8&&t>=64&&t<=127},ek.prototype.isColorPAC=function(e){return e>=64&&e<=79||e>=96&&e<=127},ek.prototype.isNormalChar=function(e){return e>=32&&e<=127},ek.prototype.setRollUp=function(e,t){if("rollUp"!==this.mode_&&(this.row_=14,this.mode_="rollUp",this.flushDisplayed(e),this.nonDisplayed_=ex(),this.displayed_=ex()),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]={text:"",indent:0,offset:0};void 0===t&&(t=this.row_),this.topRow_=t-this.rollUpRows_+1},ek.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)},ek.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)}},ek.prototype.popOn=function(e,t){var n=this.nonDisplayed_[this.row_].text;n+=t,this.nonDisplayed_[this.row_].text=n},ek.prototype.rollUp=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n},ek.prototype.shiftRowsUp_=function(){var e;
vendor: 6,680 bytes, line 13
13for(e=0;e<this.topRow_;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.row_+1;e<15;e++)this.displayed_[e]={text:"",indent:0,offset:0};for(e=this.topRow_;e<this.row_;e++)this.displayed_[e]=this.displayed_[e+1];this.displayed_[this.row_]={text:"",indent:0,offset:0}},ek.prototype.paintOn=function(e,t){var n=this.displayed_[this.row_].text;n+=t,this.displayed_[this.row_].text=n};var eE={CaptionStream:eg,Cea608Stream:ek,Cea708Stream:eT},eC={H264_STREAM_TYPE:27,ADTS_STREAM_TYPE:15,METADATA_STREAM_TYPE:21},eI=V,eD="shared",eA=function(e,t){var n=1;for(e>t&&(n=-1);Math.abs(t-e)>4294967296;)e+=8589934592*n;return e},eM=function(e){var t,n;eM.prototype.init.call(this),this.type_=e||eD,this.push=function(e){this.type_!==eD&&e.type!==this.type_||(void 0===n&&(n=e.dts),e.dts=eA(e.dts,n),e.pts=eA(e.pts,n),t=e.dts,this.trigger("data",e))},this.flush=function(){n=t,this.trigger("done")},this.endTimeline=function(){this.flush(),this.trigger("endedtimeline")},this.discontinuity=function(){n=void 0,t=void 0},this.reset=function(){this.discontinuity(),this.trigger("reset")}};eM.prototype=new eI;var eO,eP={TimestampRolloverStream:eM,handleRollover:eA},eN=(e,t,n)=>{if(!e)return-1;for(var i=n;i<e.length;i++)if(e[i]===t)return i;return-1},eL=function(e,t,n){var i,r="";for(i=t;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r},eR=function(e,t,n){return decodeURIComponent(eL(e,t,n))},eU=function(e,t,n){return unescape(eL(e,t,n))},eB=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},ez={APIC:function(e){var t,n,i=1;3===e.data[0]&&((t=eN(e.data,0,i))<0||(e.mimeType=eU(e.data,i,t),i=t+1,e.pictureType=e.data[i],i++,(n=eN(e.data,0,i))<0||(e.description=eR(e.data,i,n),i=n+1,"-->"===e.mimeType?e.url=eU(e.data,i,e.data.length):e.pictureData=e.data.subarray(i,e.data.length))))},"T*":function(e){3===e.data[0]&&(e.value=eR(e.data,1,e.data.length).replace(/\0*$/,""),e.values=e.value.split("\x00"))},TXXX:function(e){var t;3===e.data[0]&&-1!==(t=eN(e.data,0,1))&&(e.description=eR(e.data,1,t),e.value=eR(e.data,t+1,e.data.length).replace(/\0*$/,""),e.data=e.value)},"W*":function(e){e.url=eU(e.data,0,e.data.length).replace(/\0.*$/,"")},WXXX:function(e){var t;3===e.data[0]&&-1!==(t=eN(e.data,0,1))&&(e.description=eR(e.data,1,t),e.url=eU(e.data,t+1,e.data.length).replace(/\0.*$/,""))},PRIV:function(e){var t;for(t=0;t<e.data.length;t++)if(0===e.data[t]){e.owner=eU(e.data,0,t);break}e.privateData=e.data.subarray(t+1),e.data=e.privateData}},eF={parseId3Frames:function(e){var t,n=10,i=0,r=[];if(!(e.length<10||e[0]!=="I".charCodeAt(0)||e[1]!=="D".charCodeAt(0)||e[2]!=="3".charCodeAt(0))){i=eB(e.subarray(6,10)),i+=10,64&e[5]&&(n+=4,n+=eB(e.subarray(10,14)),i-=eB(e.subarray(16,20)));do{if((t=eB(e.subarray(n+4,n+8)))<1)break;var s={id:String.fromCharCode(e[n],e[n+1],e[n+2],e[n+3]),data:e.subarray(n+10,n+t+10)};s.key=s.id,ez[s.id]?ez[s.id](s):"T"===s.id[0]?ez["T*"](s):"W"===s.id[0]&&ez["W*"](s),r.push(s),n+=10,n+=t}while(n<i);return r}},parseSyncSafeInteger:eB,frameParsers:ez},eq=eC,eV=eF;(eO=function(e){var t,n={descriptor:e&&e.descriptor},i=0,r=[],s=0;if(eO.prototype.init.call(this),this.dispatchType=eq.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,o,a,l;if("timed-metadata"===e.type){if(e.dataAlignmentIndicator&&(s=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),s+=e.data.byteLength,1===r.length&&(i=eV.parseSyncSafeInteger(e.data.subarray(6,10)),i+=10),!(s<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,s-=r[0].data.byteLength,r.shift();n=10,64&t.data[5]&&(n+=4,n+=eV.parseSyncSafeInteger(t.data.subarray(10,14)),i-=eV.parseSyncSafeInteger(t.data.subarray(16,20)));do{if((o=eV.parseSyncSafeInteger(t.data.subarray(n+4,n+8)))<1){this.trigger("log",{level:"warn",message:"Malformed ID3 frame encountered. Skipping remaining metadata parsing."});break}if((a={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+o+10)}).key=a.id,eV.frameParsers[a.id]?eV.frameParsers[a.id](a):"T"===a.id[0]?eV.frameParsers["T*"](a):"W"===a.id[0]&&eV.frameParsers["W*"](a),"com.apple.streaming.transportStreamTimestamp"===a.owner){var u=a.data,c=(1&u[3])<<30|u[4]<<22|u[5]<<14|u[6]<<6|u[7]>>>2;c*=4,c+=3&u[7],a.timeStamp=c,void 0===t.pts&&void 0===t.dts&&(t.pts=a.timeStamp,t.dts=a.timeStamp),this.trigger("timestamp",a)}t.frames.push(a),n+=10,n+=o}while(n<i);this.trigger("data",t)}}}}).prototype=new V;var eH,eW,eG,e$=eO,eQ=V,eZ=eE,eY=eC,eX=eP.TimestampRolloverStream,eK=188;(eH=function(){var e=new Uint8Array(eK),t=0;eH.prototype.init.call(this),this.push=function(n){var i,r=0,s=eK;for(t?((i=new Uint8Array(n.byteLength+t)).set(e.subarray(0,t)),i.set(n,t),t=0):i=n;s<i.byteLength;)71!==i[r]||71!==i[s]?(r++,s++):(this.trigger("data",i.subarray(r,s)),r+=eK,s+=eK);r<i.byteLength&&(e.set(i.subarray(r),0),t=i.byteLength-r)},this.flush=function(){t===eK&&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 eQ,(eW=function(){var e,t,n,i;eW.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 s=e[r],o=(31&e[r+1])<<8|e[r+2];s===eY.H264_STREAM_TYPE&&null===i.programMapTable.video?i.programMapTable.video=o:s===eY.ADTS_STREAM_TYPE&&null===i.programMapTable.audio?i.programMapTable.audio=o:s===eY.METADATA_STREAM_TYPE&&(i.programMapTable["timed-metadata"][o]=s),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: 3,062 bytes, line 13
13else 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=eY.H264_STREAM_TYPE:n.pid===this.programMapTable.audio?n.streamType=eY.ADTS_STREAM_TYPE:n.streamType=this.programMapTable["timed-metadata"][n.pid],n.type="pes",n.data=e.subarray(t),this.trigger("data",n)}}).prototype=new eQ,eW.STREAM_TYPES={h264:27,adts:15},eG=function(){var e,t=this,n=!1,i={data:[],size:0},r={data:[],size:0},s={data:[],size:0},o=function(e,n,i){var r,s,o=new Uint8Array(e.size),a={type:n},l=0,u=0;if(e.data.length&&!(e.size<9)){for(a.trackId=e.data[0].pid,l=0;l<e.data.length;l++)s=e.data[l],o.set(s.data,u),u+=s.data.byteLength;!function(e,t){var n;const i=e[0]<<16|e[1]<<8|e[2];t.data=new Uint8Array,1===i&&(t.packetLength=6+(e[4]<<8|e[5]),t.dataAlignmentIndicator=0!=(4&e[6]),192&(n=e[7])&&(t.pts=(14&e[9])<<27|(255&e[10])<<20|(254&e[11])<<12|(255&e[12])<<5|(254&e[13])>>>3,t.pts*=4,t.pts+=(6&e[13])>>>1,t.dts=t.pts,64&n&&(t.dts=(14&e[14])<<27|(255&e[15])<<20|(254&e[16])<<12|(255&e[17])<<5|(254&e[18])>>>3,t.dts*=4,t.dts+=(6&e[18])>>>1)),t.data=e.subarray(9+e[8]))}(o,a),r="video"===n||a.packetLength<=e.size,(i||r)&&(e.size=0,e.data.length=0),r&&t.trigger("data",a)}};eG.prototype.init.call(this),this.push=function(a){({pat:function(){},pes:function(){var e,t;switch(a.streamType){case eY.H264_STREAM_TYPE:e=i,t="video";break;case eY.ADTS_STREAM_TYPE:e=r,t="audio";break;case eY.METADATA_STREAM_TYPE:e=s,t="timed-metadata";break;default:return}a.payloadUnitStartIndicator&&o(e,t,!0),e.data.push(a),e.size+=a.data.byteLength},pmt:function(){var i={type:"metadata",tracks:[]};null!==(e=a.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)}})[a.type]()},this.reset=function(){i.size=0,i.data.length=0,r.size=0,r.data.length=0,this.trigger("reset")},this.flushStreams_=function(){o(i,"video"),o(r,"audio"),o(s,"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")}},eG.prototype=new eQ;var eJ={PAT_PID:0,MP2T_PACKET_LENGTH:eK,TransportPacketStream:eH,TransportParseStream:eW,ElementaryStream:eG,TimestampRolloverStream:eX,CaptionStream:eZ.CaptionStream,Cea608Stream:eZ.Cea608Stream,Cea708Stream:eZ.Cea708Stream,MetadataStream:e$};for(var e0 in eY)eY.hasOwnProperty(e0)&&(eJ[e0]=eY[e0]);var e1,e2=eJ,e4=el.ONE_SECOND_IN_TS,e3=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350];(e1=function(e){var t,n=0;e1.prototype.init.call(this),this.skipWarn_=function(e,t){this.trigger("log",{level:"warn",message:`adts ski
13ping bytes ${e} to ${t} in frame ${n} outside syncword`})},this.push=function(i){var r,s,o,a,l,u=0;if(e||(n=0),"audio"===i.type){var c;for(t&&t.length?(o=t,(t=new Uint8Array(o.byteLength+i.data.byteLength)).set(o),t.set(i.data,o.byteLength)):t=i.data;u+7<t.length;)if(255===t[u]&&240==(246&t[u+1])){if("number"==typeof c&&(this.skipWarn_(c,u),c=null),s=2*(1&~t[u+1]),r=(3&t[u+3])<<11|t[u+4]<<3|(224&t[u+5])>>5,l=(a=1024*(1+(3&t[u+6])))*e4/e3[(60&t[u+2])>>>2],t.byteLength-u<r)break;this.trigger("data",{pts:i.pts+n*l,dts:i.dts+n*l,sampleCount:a,audioobjecttype:1+(t[u+2]>>>6&3),channelcount:(1&t[u+2])<<2|(192&t[u+3])>>>6,samplerate:e3[(60&t[u+2])>>>2],samplingfrequencyindex:(60&t[u+2])>>>2,samplesize:16,data:t.subarray(u+7+s,u+r)}),n++,u+=r}else"number"!=typeof c&&(c=u),u++;"number"==typeof c&&(this.skipWarn_(c,u),c=null),t=t.subarray(u)}},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")}}).prototype=new V;var e5,e8,e6,e9=e1,e7=V,te=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,s=new Uint8Array(4),o=Math.min(4,t);if(0===o)throw new Error("no bytes available");s.set(e.subarray(r,r+o)),n=new DataView(s.buffer).getUint32(0),i=8*o,t-=o},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),s=n>>>32-r;return(i-=r)>0?n<<=r:t>0&&this.loadWord(),(r=e-r)>0?s<<r|this.readBits(r):s},this.skipLeadingZeros=function(){var e;for(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()};(e8=function(){var e,t,n=0;e8.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 s=t.byteLength;n<s-3;n++)if(1===t[n+2]){e=n+5;break}for(;e<s;)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<s);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")}}).prototype=new e7,e6={100:!0,110:!0,122:!0,244:!0,44:!0,83:!0,86:!0,118:!0,128:!0,138:!0,139:!0,134:!0},e5=function(){var e,t,n,i,r,s,o,a=new e8;e5.prototype.init.call(this),e=this,this.push=function(e){"video"===e.type&&(t=e.trackId,n=e.pts,i=e.dts,a.push(e))},a.on("data",function(o){var a={trackId:t,pts:n,dts:i,data:o,nalUnitTypeCode:31&o[0]};switch(a.nalUnitTypeCode){case 5:a.nalUnitType="slice_layer_without_partitioning_rbsp_idr";break;case 6:a.nalUnitType="sei_rbsp",a.escapedRBSP=r(o.subarray(1));break;case 7:a.nalUnitType="seq_parameter_set_rbsp",a.escapedRBSP=r(o.subarray(1)),a.config=s(a.escapedRBSP);break;case 8:a.nalUnitType="pic_parameter_set_rbsp";break;case 9:a.nalUnitType="access_unit_delimiter_rbsp"}e.trigger("data",a)}),a.on("done",function(){e.trigger("done")}),a.on("partialdone",function(){e.trigger("partialdone")}),a.on("reset",function(){e.trigger("reset")}),a.on("endedtimeline",function(){e.trigger("endedtimeline")}),this.flush=function(){a.flush()},this.partialFlush=function(){a.partialFlush()},this.reset=function(){a.reset()},this.endTimeline=function(){a.endTimeline()},o=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=[],s=1;s<i-2;)0===e[s]&&0===e[s+1]&&3===e[s+2]?(r.push(s+2),s+=2):s++;if(0===r.length)return e;t=i-r.length,n=new Uint8Array(t);var o=0;for(s=0;s<t;o++,s++)o===r[0]&&(o++,r.shift()),n[s]=e[o];return n},s=function(e){var t,n,i,r,s,a,l,u,c,d,h,p,f=0,m=0,g=0,v=0,y=[1,1];if(n=(t=new te(e)).readUnsignedByte(),r=t.readUnsignedByte(),i=t.readUnsignedByte(),t.skipUnsignedExpGolomb(),e6[n]&&(3===(s=t.readUnsignedExpGolomb())&&t.skipBits(1),t.skipUnsignedExpGolomb(),t.skipUnsignedExpGolomb(),t.skipBits(1),t.readBoolean()))for(h=3!==s?8:12,p=0;p<h;p++)t.readBoolean()&&o(p<6?16:64,t);if(t.skipUnsignedExpGolomb(),0===(a=t.readUnsignedExpGolomb()))t.readUnsignedExpGolomb();else if(1===a)for(t.skipBits(1),t.skipExpGolomb(),t.skipExpGolomb(),l=t.readUnsignedExpGolomb(),p=0;p<l;p++)t.skipExpGolomb();if(t.skipUnsignedExpGolomb(),t.skipBits(1),u=t.readUnsignedExpGolomb(),c=t.readUnsignedExpGolomb(),0===(d=t.readBits(1))&&t.skipBits(1),t.skipBits(1),t.readBoolean()&&(f=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*(u+1)-2*f-2*m,height:(2-d)*(c+1)*16-2*g-2*v,sarRatio:y}}},e5.prototype=new e7;var tt,tn={H264Stream:e5,NalByteStream:e8},ti=[96e3,88200,64e3,48e3,44100,32e3,24e3,22050,16e3,12e3,11025,8e3,7350],tr=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},ts=function(e,t){return e.length-t<10||e[t]!=="I".charCodeAt(0)||e[t+1
vendor: 4,347 bytes, line 13
13]!=="D".charCodeAt(0)||e[t+2]!=="3".charCodeAt(0)?t:(t+=tr(e,t),ts(e,t))},to=function(e){return e[0]<<21|e[1]<<14|e[2]<<7|e[3]},ta={isLikelyAacData:function(e){var t=ts(e,0);return e.length>=t+2&&255==(255&e[t])&&240==(240&e[t+1])&&16==(22&e[t+1])},parseId3TagSize:tr,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 ti[(60&e[t+2])>>>2];t++}return null},parseAacTimestamp:function(e){var t,n,i;t=10,64&e[5]&&(t+=4,t+=to(e.subarray(10,14)));do{if((n=to(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 s=unescape(function(e,t,n){var i,r="";for(i=0;i<n;i++)r+="%"+("00"+e[i].toString(16)).slice(-2);return r}(i,0,r));if("com.apple.streaming.transportStreamTimestamp"===s){var o=i.subarray(r+1),a=(1&o[3])<<30|o[4]<<22|o[5]<<14|o[6]<<6|o[7]>>>2;return(a*=4)+(3&o[7])}break}}t+=10,t+=n}while(t<e.byteLength);return null}},tl=ta;(tt=function(){var e=new Uint8Array,t=0;tt.prototype.init.call(this),this.setTimestamp=function(e){t=e},this.push=function(n){var i,r,s,o,a=0,l=0;for(e.length?(o=e.length,(e=new Uint8Array(n.byteLength+o)).set(e.subarray(0,o)),e.set(n,o)):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+(a=tl.parseAdtsSize(e,l))>e.length)break;s={type:"audio",data:e.subarray(l,l+a),pts:t,dts:t},this.trigger("data",s),l+=a}else{if(e.length-l<10)break;if(l+(a=tl.parseId3TagSize(e,l))>e.length)break;r={type:"timed-metadata",data:e.subarray(l,l+a)},this.trigger("data",r),l+=a}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 V;var tu,tc,td,th,tp=V,tf=et,tm=ei,tg=ec,tv=eh,ty=e2,tb=el,t_=e9,tT=tn.H264Stream,tj=tt,tw=ta.isLikelyAacData,tS=el.ONE_SECOND_IN_TS,tx=["audioobjecttype","channelcount","samplerate","samplingfrequencyindex","samplesize"],tk=["width","height","profileIdc","levelIdc","profileCompatibility","sarRatio"],tE=function(e,t){t.stream=e,this.trigger("log",t)},tC=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",tE.bind(e,r))}},tI=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},tD=function(e,t,n,i,r,s){return{start:{dts:e,pts:e+(n-t)},end:{dts:e+(i-t),pts:e+(r-n)},prependedContentDuration:s,baseMediaDecodeTime:e}};tc=function(e,t){var n,i=[],r=0,s=0,o=1/0;n=(t=t||{}).firstSequenceNumber||0,tc.prototype.init.call(this),this.push=function(t){tv.collectDtsInfo(e,t),e&&tx.forEach(function(n){e[n]=t[n]}),i.push(t)},this.setEarliestDts=function(e){r=e},this.setVideoBaseMediaDecodeTime=function(e){o=e},this.setAudioAppendStart=function(e){s=e},this.flush=function(){var a,l,u,c,d,h,p;0!==i.length?(a=tg.trimAdtsFramesByEarliestDts(i,e,r),e.baseMediaDecodeTime=tv.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),p=tg.prefixWithSilence(e,a,s,o),e.samples=tg.generateSampleTable(a),u=tf.mdat(tg.concatenateFrameData(a)),i=[],l=tf.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),tv.clearDtsInfo(e),d=Math.ceil(1024*tS/e.samplerate),a.length&&(h=a.length*d,this.trigger("segmentTimingInfo",tD(tb.audioTsToVideoTs(e.baseMediaDecodeTime,e.samplerate),a[0].dts,a[0].pts,a[0].dts+h,a[0].pts+h,p||0)),this.trigger("timingInfo",{start:a[0].pts,end:a[0].pts+h})),this.trigger("data",{track:e,boxes:c}),this.trigger("done","AudioSegmentStream")):this.trigger("done","AudioSegmentStream")},this.reset=function(){tv.clearDtsInfo(e),i=[],this.trigger("reset")}},tc.prototype=new tp,tu=function(e,t){var n,i,r,s=[],o=[];n=(t=t||{}).firstSequenceNumber||0,tu.prototype.init.call(this),delete e.minPTS,this.gopCache_=[],this.push=function(t){tv.collectDtsInfo(e,t),"seq_parameter_set_rbsp"!==t.nalUnitType||i||(i=t.config,e.sps=[t.data],tk.forEac
vendor: 4,126 bytes, line 13
13h(function(t){e[t]=i[t]},this)),"pic_parameter_set_rbsp"!==t.nalUnitType||r||(r=t.data,e.pps=[t.data]),s.push(t)},this.flush=function(){for(var i,r,a,l,u,c,d,h,p=0;s.length&&"access_unit_delimiter_rbsp"!==s[0].nalUnitType;)s.shift();if(0===s.length)return this.resetStream_(),void this.trigger("done","VideoSegmentStream");if(i=tm.groupNalsIntoFrames(s),(a=tm.groupFramesIntoGops(i))[0][0].keyFrame||((r=this.getGopForFusion_(s[0],e))?(p=r.duration,a.unshift(r),a.byteLength+=r.byteLength,a.nalCount+=r.nalCount,a.pts=r.pts,a.dts=r.dts,a.duration+=r.duration):a=tm.extendFirstKeyFrame(a)),o.length){var f;if(!(f=t.alignGopsAtEnd?this.alignGopsAtEnd_(a):this.alignGopsAtStart_(a)))return this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.resetStream_(),void this.trigger("done","VideoSegmentStream");tv.clearDtsInfo(e),a=f}tv.collectDtsInfo(e,a),e.samples=tm.generateSampleTable(a),u=tf.mdat(tm.concatenateNalData(a)),e.baseMediaDecodeTime=tv.calculateTrackBaseMediaDecodeTime(e,t.keepOriginalTimestamps),this.trigger("processedGopsInfo",a.map(function(e){return{pts:e.pts,dts:e.dts,byteLength:e.byteLength}})),d=a[0],h=a[a.length-1],this.trigger("segmentTimingInfo",tD(e.baseMediaDecodeTime,d.dts,d.pts,h.dts+h.duration,h.pts+h.duration,p)),this.trigger("timingInfo",{start:a[0].pts,end:a[a.length-1].pts+a[a.length-1].duration}),this.gopCache_.unshift({gop:a.pop(),pps:e.pps,sps:e.sps}),this.gopCache_.length=Math.min(6,this.gopCache_.length),s=[],this.trigger("baseMediaDecodeTime",e.baseMediaDecodeTime),this.trigger("timelineStartInfo",e.timelineStartInfo),l=tf.moof(n,[e]),c=new Uint8Array(l.byteLength+u.byteLength),n++,c.set(l),c.set(u,l.byteLength),this.trigger("data",{track:e,boxes:c}),this.resetStream_(),this.trigger("done","VideoSegmentStream")},this.reset=function(){this.resetStream_(),s=[],this.gopCache_.length=0,o.length=0,this.trigger("reset")},this.resetStream_=function(){tv.clearDtsInfo(e),i=void 0,r=void 0},this.getGopForFusion_=function(t){var n,i,r,s,o,a=1/0;for(o=0;o<this.gopCache_.length;o++)r=(s=this.gopCache_[o]).gop,e.pps&&tI(e.pps[0],s.pps[0])&&e.sps&&tI(e.sps[0],s.sps[0])&&(r.dts<e.timelineStartInfo.dts||(n=t.dts-r.dts-r.duration)>=-1e4&&n<=45e3&&(!i||a>n)&&(i=s,a=n));return i?i.gop:null},this.alignGopsAtStart_=function(e){var t,n,i,r,s,a,l,u;for(s=e.byteLength,a=e.nalCount,l=e.duration,t=n=0;t<o.length&&n<e.length&&(i=o[t],r=e[n],i.pts!==r.pts);)r.pts>i.pts?t++:(n++,s-=r.byteLength,a-=r.nalCount,l-=r.duration);return 0===n?e:n===e.length?null:((u=e.slice(n)).byteLength=s,u.duration=l,u.nalCount=a,u.pts=u[0].pts,u.dts=u[0].dts,u)},this.alignGopsAtEnd_=function(e){var t,n,i,r,s,a,l;for(t=o.length-1,n=e.length-1,s=null,a=!1;t>=0&&n>=0;){if(i=o[t],r=e[n],i.pts===r.pts){a=!0;break}i.pts>r.pts?t--:(t===o.length-1&&(s=n),n--)}if(!a&&null===s)return null;if(0===(l=a?n:s))return e;var u=e.slice(l),c=u.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 u.byteLength=c.byteLength,u.duration=c.duration,u.nalCount=c.nalCount,u.pts=u[0].pts,u.dts=u[0].dts,u},this.alignGopsWith=function(e){o=e}},tu.prototype=new tp,th=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,th.prototype.init.call(this),this.push=function(e){return e.content||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))))}},th.prototype=new tp,th.prototype.flush=function(e){var t,n,i,r,s=0,o={captions:[],captionStream
vendor: 42,939 bytes, line 13
13s:{},metadata:[],info:{}},a=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?(a=this.videoTrack.timelineStartInfo.pts,tk.forEach(function(e){o.info[e]=this.videoTrack[e]},this)):this.audioTrack&&(a=this.audioTrack.timelineStartInfo.pts,tx.forEach(function(e){o.info[e]=this.audioTrack[e]},this)),this.videoTrack||this.audioTrack){for(1===this.pendingTracks.length?o.type=this.pendingTracks[0].type:o.type="combined",this.emittedTracks+=this.pendingTracks.length,i=tf.initSegment(this.pendingTracks),o.initSegment=new Uint8Array(i.byteLength),o.initSegment.set(i),o.data=new Uint8Array(this.pendingBytes),r=0;r<this.pendingBoxes.length;r++)o.data.set(this.pendingBoxes[r],s),s+=this.pendingBoxes[r].byteLength;for(r=0;r<this.pendingCaptions.length;r++)(t=this.pendingCaptions[r]).startTime=tb.metadataTsToSeconds(t.startPts,a,this.keepOriginalTimestamps),t.endTime=tb.metadataTsToSeconds(t.endPts,a,this.keepOriginalTimestamps),o.captionStreams[t.stream]=!0,o.captions.push(t);for(r=0;r<this.pendingMetadata.length;r++)(n=this.pendingMetadata[r]).cueTime=tb.metadataTsToSeconds(n.pts,a,this.keepOriginalTimestamps),o.metadata.push(n);for(o.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",o),r=0;r<o.captions.length;r++)t=o.captions[r],this.trigger("caption",t);for(r=0;r<o.metadata.length;r++)n=o.metadata[r],this.trigger("id3Frame",n)}this.emittedTracks>=this.numberOfTracks&&(this.trigger("done"),this.emittedTracks=0)},th.prototype.setRemux=function(e){this.remuxTracks=e},(td=function(e){var t,n,i=this,r=!0;td.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 ty.MetadataStream,r.aacStream=new tj,r.audioTimestampRolloverStream=new ty.TimestampRolloverStream("audio"),r.timedMetadataTimestampRolloverStream=new ty.TimestampRolloverStream("timed-metadata"),r.adtsStream=new t_,r.coalesceStream=new th(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(s){"timed-metadata"!==s.type&&"audio"!==s.type||r.audioSegmentStream||(n=n||{timelineStartInfo:{baseMediaDecodeTime:i.baseMediaDecodeTime},codec:"adts",type:"audio"},r.coalesceStream.numberOfTracks++,r.audioSegmentStream=new tc(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")),tC(this,r)},this.setupTsPipeline=function(){var r={};this.transmuxPipeline_=r,r.type="ts",r.metadataStream=new ty.MetadataStream,r.packetStream=new ty.TransportPacketStream,r.parseStream=new ty.TransportParseStream,r.elementaryStream=new ty.ElementaryStream,r.timestampRolloverStream=new ty.TimestampRolloverStream,r.adtsStream=new t_,r.h264Stream=new tT,r.captionStream=new ty.CaptionStream(e),r.coalesceStream=new th(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(s){var o;if("metadata"===s.type){for(o=s.tracks.length;o--;)t||"video"!==s.tracks[o].type?n||"audio"!==s.tracks[o].type||((n=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime):(t=s.tracks[o]).timelineStartInfo.baseMediaDecodeTime=i.baseMediaDecodeTime;t&&!r.videoSegmentStream&&(r.coalesceStream.numberOfTracks++,r.videoSegmentStream=new tu(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 tc(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")),tC(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,tv.clearDtsInfo(n),r.audioTimestampRolloverStream&&r.audioTimestampRolloverStream.discontinuity()),t&&(r.videoSegmentStream&&(r.videoSegmentStream.gopCache_=[]),t.timelineStartInfo.dts=void 0,t.timelineStartInfo.pts=void 0,tv.clearDtsInfo(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=tw(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()}}).prototype=new tp;var tA,tM,tO,tP,tN={Transmuxer:td,VideoSegmentStream:tu,AudioSegmentStream:tc,AUDIO_PROPERTIES:tx,VIDEO_PROPERTIES:tk,generateSegmentTimingInfo:tD},tL=function(e){return e>>>0},tR=function(e){var t="";return t+=String.fromCharCode(e[0]),t+=String.fromCharCode(e[1]),(t+=String.fromCharCode(e[2]))+String.fromCharCode(e[3])},tU=tL,tB=tR,tz=function(e,t){var n,i,r,s,o,a=[];if(!t.length)return null;for(n=0;n<e.byteLength;)i=tU(e[n]<<24|e[n+1]<<16|e[n+2]<<8|e[n+3]),r=tB(e.subarray(n+4,n+8)),s=i>1?n+i:e.byteLength,r===t[0]&&(1===t.length?a.push(e.subarray(n+8,s)):(o=tz(e.subarray(n+8,s),t.slice(1))).length&&(a=a.concat(o))),n=s;return a},tF=tL,tq=W.getUint64,tV=function(e){var t={version:e[0],flags:new Uint8Array(e.subarray(1,4))};return 1===t.version?t.baseMediaDecodeTime=tq(e.subarray(4)):t.baseMediaDecodeTime=tF(e[4]<<24|e[5]<<16|e[6]<<8|e[7]),t},tH=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]}},tW=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],s=4&n.flags[2],o=1&n.flags[1],a=2&n.flags[1],l=4&n.flags[1],u=8&n.flags[1],c=i.getUint32(4),d=8;for(r&&(n.dataOffset=i.getInt32(d),d+=4),s&&c&&(t={flags:tH(e.subarray(d,d+4))},d+=4,o&&(t.duration=i.getUint32(d),d+=4),a&&(t.size=i.getUint32(d),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t),c--);c--;)t={},o&&(t.duration=i.getUint32(d),d+=4),a&&(t.size=i.getUint32(d),d+=4),l&&(t.flags=tH(e.subarray(d,d+4)),d+=4),u&&(1===n.version?t.compositionTimeOffset=i.getInt32(d):t.compositionTimeOffset=i.getUint32(d),d+=4),n.samples.push(t);return n},tG=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],s=2&i.flags[2],o=8&i.flags[2],a=16&i.flags[2],l=32&i.flags[2],u=65536&i.flags[0],c=131072&i.flags[0];return t=8,r&&(t+=4,i.baseDataOffset=n.getUint32(12),t+=4),s&&(i.sampleDescriptionIndex=n.getUint32(t),t+=4),o&&(i.defaultSampleDuration=n.getUint32(t),t+=4),a&&(i.defaultSampleSize=n.getUint32(t),t+=4),l&&(i.defaultSampleFlags=n.getUint32(t)),u&&(i.durationIsEmpty=!0),!r&&c&&(i.baseDataOffsetIsMoof=!0),i},t$=(tA="undefined"!=typeof window?window:void 0!==e?e:"undefined"!=typeof self?self:{},ep.discardEmulationPreventionBytes),tQ=eE.CaptionStream,tZ=tz,tY=tV,tX=tW,tK=tG,tJ=tA,t0=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},t1=function(){var e,t,n,i,r,s,o=!1;this.isInitialized=function(){return o},this.init=function(t){e=new tQ,o=!0,s=!!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,s,o){var a;if(!this.isInitialized())return null;if(!s||!o)return null;if(this.isNewInit(s,o))n=s[0],i=o[n];else if(null===n||!i)return t.push(e),null;for(;t.length>0;){var l=t.shift();this.parse(l,s,o)}return a=function(e,t,n){if(null===t)return null;var i=function(e,t){var n=tZ(e,["moof","traf"]),i=tZ(e,["mdat"]),r={},s=[];return i.forEach(function(e,t){var i=n[t];s.push({mdat:e,traf:i})}),s.forEach(function(e){var n,i,s=e.mdat,o=e.traf,a=tZ(o,["tfhd"]),l=tK(a[0]),u=l.trackId,c=tZ(o,["tfdt"]),d=c.length>0?tY(c[0]).baseMediaDecodeTime:0,h=tZ(o,["trun"]);t===u&&h.length>0&&(n=function(e,t,n){var i=t,r=n.defaultSampleDuration||0,s=n.defaultSampleSize||0,o=n.trackId,a=[];return e.forEach(function(e){var t=tX(e).samples;t.forEach(function(e){void 0===e.duration&&(e.duration=r),void 0===e.size&&(e.size=s),e.trackId=o,e.dts=i,void 0===e.compositionTimeOffset&&(e.compositionTimeOffset=0),"bigint"==typeof i?(e.pts=i+tJ.BigInt(e.compositionTimeOffset),i+=tJ.BigInt(e.duration)):(e.pts=i+e.compositionTimeOffset,i+=e.duration)}),a=a.concat(t)}),a}(h,d,l),i=function(e,t,n){var i,r,s,o,a=new DataView(e.buffer,e.byteOffset,e.byteLength),l={logs:[],seiNals:[]};for(r=0;r+4<e.length;r+=s)if(s=a.getUint32(r),r+=4,!(s<=0))switch(31&e[r]){case 6:var u=e.subarray(r+1,r+1+s),c=t0(r,t);if(i={nalUnitType:"sei_rbsp",size:s,data:u,escapedRBSP:t$(u),trackId:n},c)i.pts=c.pts,i.dts=c.dts,o=c;else{if(!o){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=o.pts,i.dts=o.dts}l.seiNals.push(i)}return l}(s,n,u),r[u]||(r[u]={seiNals:[],logs:[]}),r[u].seiNals=r[u].seiNals.concat(i.seiNals),r[u].logs=r[u].logs.concat(i.logs))}),r}(e,t)[t]||{};return{seiNals:i.seiNals,logs:i.logs,timescale:n}}(e,n,i),a&&a.logs&&(r.logs=r.logs.concat(a.logs)),null!==a&&a.seiNals?(this.pushNals(a.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;s?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()},t2=function(e){for(var t=0,n=String.fromCharCode(e[t]),i="";"\x00"!==n;)i+=n,t++,n=String.fromCharCode(e[t]);return i+n},t4=W.getUint64,t3=function(e){return void 0!==e||null!==e},t5={parseEmsgBox:function(e){var t,n,i,r,s,o,a,l=4,u=e[0];if(0===u)l+=(t=t2(e.subarray(l))).length,l+=(n=t2(e.subarray(l))).length,i=(c=new DataView(e.buffer)).getUint32(l),l+=4,s=c.getUint32(l),l+=4,o=c.getUint32(l),l+=4,a=c.getUint32(l),l+=4;else if(1===u){var c;i=(c=new DataView(e.buffer)).getUint32(l),l+=4,r=t4(e.subarray(l)),l+=8,o=c.getUint32(l),l+=4,a=c.getUint32(l),l+=4,l+=(t=t2(e.subarray(l))).length,l+=(n=t2(e.subarray(l))).length}var d={scheme_id_uri:t,value:n,timescale:i||1,presentation_time:r,presentation_time_delta:s,event_duration:o,id:a,message_data:new Uint8Array(e.subarray(l,e.byteLength))};return function(e,t){var n="\x00"!==t.scheme_id_uri,i=0===e&&t3(t.presentation_time_delta)&&n,r=1===e&&t3(t.presentation_time)&&n;return!(e>1)&&i||r}(u,d)?d:void 0},scaleTime:function(e,t,n,i){return e||0===e?e/t:i+n/t}},t8=tL,t6=function(e){return("00"+e.toString(16)).slice(-2)},t9=tz,t7=tR,ne=t5,nt=W.getUint64,nn=tA,ni=eF.parseId3Frames;tM=function(e,t){var n=t9(t,["moof","traf"]).reduce(function(t,n){var i,r=t9(n,["tfhd"])[0],s=t8(r[4]<<24|r[5]<<16|r[6]<<8|r[7]),o=e[s]||9e4,a=t9(n,["tfdt"])[0],l=new DataView(a.buffer,a.byteOffset,a.byteLength);let u;return"bigint"==typeof(i=1===a[0]?nt(a.subarray(4,12)):l.getUint32(4))?u=i/nn.BigInt(o):"number"!=typeof i||isNaN(i)||(u=i/o),u<Number.MAX_SAFE_INTEGER&&(u=Number(u)),u<t&&(t=u),t},1/0);return"bigint"==typeof n||isFinite(n)?n:0},tP=function(e){var t=0===e[0]?12:20;return t8(e[t]<<24|e[t+1]<<16|e[t+2]<<8|e[t+3])},tO=function(e){var t=t9(e,["moov","trak"]),n=[];return t.forEach(function(e){var t,i,r={},s=t9(e,["tkhd"])[0];s&&(i=(t=new DataView(s.buffer,s.byteOffset,s.byteLength)).getUint8(0),r.id=0===i?t.getUint32(12):t.getUint32(20));var o=t9(e,["mdia","hdlr"])[0];if(o){var a=t7(o.subarray(8,12));r.type="vide"===a?"video":"soun"===a?"audio":a}var l=t9(e,["mdia","minf","stbl","stsd"])[0];if(l){var u=l.subarray(8);r.codec=t7(u.subarray(4,8));var c,d=t9(u,[r.codec])[0];d&&(/^[asm]vc[1-9]$/i.test(r.codec)?(c=d.subarray(78),"avcC"===t7(c.subarray(4,8))&&c.length>11?(r.codec+=".",r.codec+=t6(c[9]),r.codec+=t6(c[10]),r.codec+=t6(c[11])):r.codec="avc1.4d400d"):/^mp4[a,v]$/i.test(r.codec)?(c=d.subarray(28),"esds"===t7(c.subarray(4,8))&&c.length>20&&0!==c[19]?(r.codec+="."+t6(c[19]),r.codec+="."+t6(c[20]>>>2&63).replace(/^0/,"")):r.codec="mp4a.40.2"):r.codec=r.codec.toLowerCase())}var h=t9(e,["mdia","mdhd"])[0];h&&(r.timescale=tP(h)),n.push(r)}),n};var nr=tM,ns=tO,no=function(e,t=0){return t9(e,["emsg"]).map(e=>{var n=ne.parseEmsgBox(new Uint8Array(e)),i=ni(n.message_data);return{cueTime:ne.scaleTime(n.presentation_time,n.timescale,n.presentation_time_delta,t),duration:ne.scaleTime(n.event_duration,n.timescale),frames:i}})},na=eC,nl=function(e){var t=31&e[1];return(t<<=8)|e[2]},nu=function(e){return!!(64&e[1])},nc=function(e){var t=0;return(48&e[3])>>>4>1&&(t+=e[4]+1),t},nd=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}},nh={parseType:function(e,t){var n=nl(e);return 0===n?"pat":n===t?"pmt":t?"pes":null},parsePat:function(e){var t=nu(e),n=4+nc(e);return t&&(n+=e[n]+1),(31&e[n+10])<<8|e[n+11]},parsePmt:function(e){var t={},n=nu(e),i=4+nc(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 s=12+((15&e[i+10])<<8|e[i+11]);s<r;){var o=i+s;t[(31&e[o+1])<<8|e[o+2]]=e[o],s+=5+((15&e[o+3])<<8|e[o+4])}return t}},parsePayloadUnitStartIndicator:nu,parsePesType:function(e,t){switch(t[nl(e)]){case na.H264_STREAM_TYPE:return"video";case na.ADTS_STREAM_TYPE:return"audio";case na.METADATA_STREAM_TYPE:return"timed-metadata";default:return null}},parsePesTime:function(e){if(!nu(e))return null;var t=4+nc(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+nc(e),n=e.subarray(t),i=0,r=0,s=!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"===nd(31&n[r+3])&&(s=!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"===nd(31&n[r+3])&&(s=!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"===nd(31&n[r+3])&&(s=!0),s}},np=eC,nf=eP.handleRollover,nm={};nm.ts=nh,nm.aac=ta;var ng=el.ONE_SECOND_IN_TS,nv=188,ny=71,nb=function(e,t,n){for(var i,r,s,o,a=0,l=nv,u=!1;l<=e.byteLength;)if(e[a]!==ny||e[l]!==ny&&l!==e.byteLength)a++,l++;else{if(i=e.subarray(a,l),"pes"===nm.ts.parseType(i,t.pid)&&(r=nm.ts.parsePesType(i,t.table),s=nm.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(o=nm.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),u=!0)),u)break;a+=nv,l+=nv}for(a=(l=e.byteLength)-nv,u=!1;a>=0;)if(e[a]!==ny||e[l]!==ny&&l!==e.byteLength)a--,l--;else{if(i=e.subarray(a,l),"pes"===nm.ts.parseType(i,t.pid)&&(r=nm.ts.parsePesType(i,t.table),s=nm.ts.parsePayloadUnitStartIndicator(i),"audio"===r&&s&&(o=nm.ts.parsePesTime(i))&&(o.type="audio",n.audio.push(o),u=!0)),u)break;a-=nv,l-=nv}},n_=function(e,t,n){for(var i,r,s,o,a,l,u,c=0,d=nv,h=!1,p={data:[],size:0};d<e.byteLength;)if(e[c]!==ny||e[d]!==ny)c++,d++;else{if(i=e.subarray(c,d),"pes"===nm.ts.parseType(i,t.pid)&&(r=nm.ts.parsePesType(i,t.table),s=nm.ts.parsePayloadUnitStartIndicator(i),"video"===r&&(s&&!h&&(o=nm.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0),!n.firstKeyFrame))){if(s&&0!==p.size){for(a=new Uint8Array(p.size),l=0;p.data.length;)u=p.data.shift(),a.set(u,l),l+=u.byteLength;if(nm.ts.videoPacketContainsKeyFrame(a)){var f=nm.ts.parsePesTime(a);f?(n.firstKeyFrame=f,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.")}p.size=0}p.data.push(i),p.size+=i.byteLength}if(h&&n.firstKeyFrame)break;c+=nv,d+=nv}for(c=(d=e.byteLength)-nv,h=!1;c>=0;)if(e[c]!==ny||e[d]!==ny)c--,d--;else{if(i=e.subarray(c,d),"pes"===nm.ts.parseType(i,t.pid)&&(r=nm.ts.parsePesType(i,t.table),s=nm.ts.parsePayloadUnitStartIndicator(i),"video"===r&&s&&(o=nm.ts.parsePesTime(i))&&(o.type="video",n.video.push(o),h=!0)),h)break;c-=nv,d-=nv}},nT=function(e,t){var n;return n=nm.aac.isLikelyAacData(e)?function(e){for(var t,n=!1,i=0,r=null,s=null,o=0,a=0;e.length-a>=3;){switch(nm.aac.parseType(e,a)){case"timed-metadata":if(e.length-a<10){n=!0;break}if((o=nm.aac.parseId3TagSize(e,a))>e.length){n=!0;break}null===s&&(t=e.subarray(a,a+o),s=nm.aac.parseAacTimestamp(t)),a+=o;break;case"audio":if(e.length-a<7){n=!0;break}if((o=nm.aac.parseAdtsSize(e,a))>e.length){n=!0;break}null===r&&(t=e.subarray(a,a+o),r=nm.aac.parseSampleRate(t)),i++,a+=o;break;default:a++}if(n)return null}if(null===r||null===s)return null;var l=ng/r;return{audio:[{type:"audio",dts:s,pts:s},{type:"audio",dts:s+1024*i*l,pts:s+1024*i*l}]}}(e):function(e){var t={pid:null,table:null},n={};for(var i in function(e,t){for(var n,i=0,r=nv;r<e.byteLength;)if(e[i]!==ny||e[r]!==ny)i++,r++;else{switch(n=e.subarray(i,r),nm.ts.parseType(n,t.pid)){case"pat":t.pid=nm.ts.parsePat(n);break;case"pmt":var s=nm.ts.parsePmt(n);t.table=t.table||{},Object.keys(s).forEach(function(e){t.table[e]=s[e]})}i+=nv,r+=nv}}(e,t),t.table)if(t.table.hasOwnProperty(i))switch(t.table[i]){case np.H264_STREAM_TYPE:n.video=[],n_(e,t,n),0===n.video.length&&delete n.video;break;case np.ADTS_STREAM_TYPE:n.audio=[],nb(e,t,n),0===n.audio.length&&delete n.audio}return n}(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=nf(e.dts,n),e.pts=nf(e.pts,n),e.dtsTime=e.dts/ng,e.ptsTime=e.pts/ng})}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=nf(e.dts,i),e.pts=nf(e.pts,i),e.dtsTime=e.dts/ng,e.ptsTime=e.pts/ng}),e.firstKeyFrame){var r=e.firstKeyFrame;r.dts=nf(r.dts,i),r.pts=nf(r.pts,i),r.dtsTime=r.dts/ng,r.ptsTime=r.pts/ng}}}(n,t),n):null};class nj{constructor(e,t){this.options=t||{},this.self=e,this.init()}init(){this.transmuxer&&this.transmuxer.dispose(),this.transmuxer=new tN.Transmuxer(this.options),function(e,t){t.on("data",function(t){const n=t.initSegment;t.initSegment={data:n.buffer,byteOffset:n.byteOffset,byteLength:n.byteLength};const 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){const n={start:{decode:el.videoTsToSeconds(t.start.dts),presentation:el.videoTsToSeconds(t.start.pts)},end:{decode:el.videoTsToSeconds(t.end.dts),presentation:el.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:el.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=el.videoTsToSeconds(t.prependedContentDuration)),e.postMessage({action:"videoSegmentTimingInfo",videoSegmentTimingInfo:n})}),t.on("audioSegmentTimingInfo",function(t){const n={start:{decode:el.videoTsToSeconds(t.start.dts),presentation:el.videoTsToSeconds(t.start.pts)},end:{decode:el.videoTsToSeconds(t.end.dts),presentation:el.videoTsToSeconds(t.end.pts)},baseMediaDecodeTime:el.videoTsToSeconds(t.baseMediaDecodeTime)};t.prependedContentDuration&&(n.prependedContentDuration=el.videoTsToSeconds(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:el.videoTsToSeconds(t.start),end:el.videoTsToSeconds(t.end)}})}),t.on("videoTimingInfo",function(t){e.postMessage({action:"videoTimingInfo",videoTimingInfo:{start:el.videoTsToSeconds(t.start),end:el.videoTsToSeconds(t.end)}})}),t.on("log",function(t){e.postMessage({action:"log",log:t})})}(this.self,this.transmuxer)}pushMp4Captions(e){this.captionParser||(this.captionParser=new t1,this.captionParser.init());const 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])}probeMp4StartTime({timescales:e,data:t}){const n=nr(e,t);this.self.postMessage({action:"probeMp4StartTime",startTime:n,data:t},[t.buffer])}probeMp4Tracks({data:e}){const t=ns(e);this.self.postMessage({action:"probeMp4Tracks",tracks:t,data:e},[e.buffer])}probeEmsgID3({data:e,offset:t}){const n=no(e,t);this.self.postMessage({action:"probeEmsgID3",id3Frames:n,emsgData:e},[e.buffer])}probeTs({data:e,baseStartTime:t}){const n="number"!=typeof t||isNaN(t)?void 0:t*el.ONE_SECOND_IN_TS,i=nT(e,n);let r=null;i&&(r={hasVideo:i.video&&2===i.video.length||!1,hasAudio:i.audio&&2===i.audio.length||!1},r.hasVideo&&(r.videoStart=i.video[0].ptsTime),r.hasAudio&&(r.audioStart=i.audio[0].ptsTime)),this.self.postMessage({action:"probeTs",result:r,data:e},[e.buffer])}clearAllMp4Captions(){this.captionParser&&this.captionParser.clearAllCaptions()}clearParsedMp4Captions(){this.captionParser&&this.captionParser.clearParsedCaptions()}push(e){const t=new Uint8Array(e.data,e.byteOffset,e.byteLength);this.transmuxer.push(t)}reset(){this.transmuxer.reset()}setTimestampOffset(e){const t=e.timestampOffset||0;this.transmuxer.setBaseMediaDecodeTime(Math.round(el.secondsToVideoTs(t)))}setAudioAppendStart(e){this.transmuxer.setAudioAppendStart(Math.ceil(el.secondsToVideoTs(e.appendStart)))}setRemux(e){this.transmuxer.setRemux(e.remux)}flush(e){this.transmuxer.flush(),self.postMessage({action:"done",type:"transmuxed"})}endTimeline(){this.transmuxer.endTimeline(),self.postMessage({action:"endedtimeline",type:"transmuxed"})}alignGopsWith(e){this.transmuxer.alignGopsWith(e.gopsToAlignWith.slice())}}self.onmessage=function(e){"init"===e.data.action&&e.data.options?this.messageHandlers=new nj(self,e.data.options):(this.messageHandlers||(this.messageHandlers=new nj(self)),e.data&&e.data.action&&"init"!==e.data.action&&this.messageHandlers[e.data.action]&&this.messageHandlers[e.data.action](e.data))}}));var oN=oA(oP);const oL=e=>{const{transmuxer:t,bytes:n,audioAppendStart:i,gopsToAlignWith:r,remux:s,onData:o,onTrackInfo:a,onAudioTimingInfo:l,onVideoTimingInfo:u,onVideoSegmentTimingInfo:c,onAudioSegmentTimingInfo:d,onId3:h,onCaptions:p,onDone:f,onEndedTimeline:m,onTransmuxerLog:g,isEndOfTimeline:v}=e,y={buffer:[]};let b=v;if(t.onmessage=n=>{t.currentTransmux===e&&("data"===n.data.action&&((e,t,n)=>{const{type:i,initSegment:r,captions:s,captionStreams:o,metadata:a,videoFrameDtsTime:l,videoFramePtsTime:u}=e.data.segment;t.buffer.push({captions:s,captionStreams:o,metadata:a});const c=e.data.segment.boxes||{data:e.data.segment.data},d={type:i,data:new Uint8Array(c.data,c.data.byteOffset,c.data.byteLength),initSegment:new Uint8Array(r.data,r.byteOffset,r.byteLength)};void 0!==l&&(d.videoFrameDtsTime=l),void 0!==u&&(d.videoFramePtsTime=u),n(d)})(n,y,o),"trackinfo"===n.data.action&&a(n.data.trackInfo),"gopInfo"===n.data.action&&((e,t)=>{t.gopInfo=e.data.gopInfo})(n,y),"audioTimingInfo"===n.data.action&&l(n.data.audioTimingInfo),"videoTimingInfo"===n.data.action&&u(n.data.videoTimingInfo),"videoSegmentTimingInfo"===n.data.action&&c(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&&p(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,(({transmuxedData:e,callback:t})=>{e.buffer=[],t(e)})({transmuxedData:y,callback:f}),oR(t))))},i&&t.postMessage({action:"setAudioAppendStart",appendStart:i}),Array.isArray(r)&&t.postMessage({action:"alignGopsWith",gopsToAlignWith:r}),void 0!==s&&t.postMessage({action:"setRemux",remux:s}),n.byteLength){const e=n instanceof ArrayBuffer?n:n.buffer,i=n instanceof ArrayBuffer?0:n.byteOffset;t.postMessage({action:"push",data:e,byteOffset:i,byteLength:n.byteLength},[e])}v&&t.postMessage({action:"endTimeline"}),t.postMessage({action:"flush"})},oR=e=>{e.currentTransmux=null,e.transmuxQueue.length&&(e.currentTransmux=e.transmuxQueue.shift(),"function"==typeof e.currentTransmux?e.currentTransmux():oL(e.currentTransmux))},oU=(e,t)=>{e.postMessage({action:t}),oR(e)};var oB=e=>{((e,t)=>{if(!t.currentTransmux)return t.currentTransmux=e,void oU(t,e);t.transmuxQueue.push(oU.bind(null,t,e))})("reset",e)};const oz=function(e){const t=e.transmuxer,n=e.endAction||e.action,i=e.callback,r=y({},e,{endAction:null,transmuxer:null,callback:null}),s=r=>{r.data.action===n&&(t.removeEventListener("message",s),r.data.data&&(r.data.data=new Uint8Array(r.data.data,e.byteOffset||0,e.byteLength||r.data.data.byteLength),e.data&&(e.data=r.data.data)),i(r.data))};if(t.addEventListener("message",s),e.data){const n=e.data instanceof ArrayBuffer;r.byteOffset=n?0:e.data.byteOffset,r.byteLength=e.data.byteLength;const i=[n?e.data:e.data.buffer];t.postMessage(r,i)}else t.postMessage(r)},oF=-101,oq=-102,oV=e=>{e.forEach(e=>{e.abort()})},oH=(e,t)=>t.timedout?{status:t.status,message:"HLS request timed-out at URL: "+t.uri,code:oF,xhr:t}:t.aborted?{status:t.status,message:"HLS request aborted at URL: "+t.uri,code:oq,xhr:t}:e?{status:t.status,message:"HLS request errored at URL: "+t.uri,code:2,xhr:t}:"arraybuffer"===t.responseType&&0===t.response.byteLength?{status:t.status,message:"Empty HLS response at URL: "+t.uri,code:2,xhr:t}:null,oW=(e,t,n)=>(i,r)=>{const s=r.response,o=oH(i,r);if(o)return n(o,e);if(16!==s.byteLength)return n({status:r.status,message:"Invalid HLS key at URL: "+r.uri,code:2,xhr:r},e);const a=new DataView(s),l=new Uint32Array([a.getUint32(0),a.getUint32(4),a.getUint32(8),a.getUint32(12)]);for(let e=0;e<t.length;e++)t[e].bytes=l;return n(null,e)},oG=(e,t)=>{const n=tr(e.map.bytes);if("mp4"!==n){const i=e.map.resolvedUri||e.map.uri;return t({internal:!0,message:`Found unsupported ${n||"unknown"} container for initialization segment at URL: ${i}`,code:2})}oz({action:"probeMp4Tracks",data:e.map.bytes,transmuxer:e.transmuxer,callback:({tracks:n,data:i})=>(e.map.bytes=i,n.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))})},o$=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})=>{const p=e.map&&e.map.tracks||{},f=Boolean(p.audio&&p.video);let m=i.bind(null,e,"audio","start");const g=i.bind(null,e,"audio","end");let v=i.bind(null,e,"video","start");const y=i.bind(null,e,"video","end");oz({action:"probeTs",transmuxer:e.transmuxer,data:t,baseStartTime:e.baseStartTime,callback:i=>{e.bytes=t=i.data;const p=i.result;p&&(n(e,{hasAudio:p.hasAudio,hasVideo:p.hasVideo,isMuxed:f}),n=null),(e=>{if(!e.transmuxer.currentTransmux)return e.transmuxer.currentTransmux=e,void oL(e);e.transmuxer.transmuxQueue.push(e)})({bytes:t,transmuxer:e.transmuxer,audioAppendStart:e.audioAppendStart,gopsToAlignWith:e.gopsToAlignWith,remux:f,onData:t=>{t.type="combined"===t.type?"video":t.type,c(e,t)},onTrackInfo:t=>{n&&(f&&(t.isMuxed=!0),n(e,t))},onAudioTimingInfo:e=>{m&&void 0!==e.start&&(m(e.start),m=null),g&&void 0!==e.end&&g(e.end)},onVideoTimingInfo:e=>{v&&void 0!==e.start&&(v(e.start),v=null),y&&void 0!==e.end&&y(e.end)},onVideoSegmentTimingInfo:e=>{r(e)},onAudioSegmentTimingInfo:e=>{s(e)},onId3:(t,n)=>{o(e,t,n)},onCaptions:t=>{a(e,[t])},isEndOfTimeline:l,onEndedTimeline:()=>{u()},onTransmuxerLog:h,onDone:t=>{d&&(t.type="combined"===t.type?"video":t.type,d(null,e,t))}})}})},oQ=({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})=>{let p=new Uint8Array(t);if(function(e){return eK(e,["moof"]).length>0}(p)){e.isFmp4=!0;const{tracks:r}=e.map,s={isFmp4:!0,hasVideo:!!r.video,hasAudio:!!r.audio};r.audio&&r.audio.codec&&"enca"!==r.audio.codec&&(s.audioCodec=r.audio.codec),r.video&&r.video.codec&&"encv"!==r.video.codec&&(s.videoCodec=r.video.codec),r.video&&r.audio&&(s.isMuxed=!0),n(e,s);const l=(t,n)=>{c(e,{data:p,type:s.hasAudio&&!s.isMuxed?"audio":"video"}),n&&n.length&&o(e,n),t&&t.length&&a(e,t),d(null,e,{})};oz({action:"probeMp4StartTime",timescales:e.map.timescales,data:p,transmuxer:e.transmuxer,callback:({data:n,startTime:o})=>{t=n.buffer,e.bytes=p=n,s.hasAudio&&!s.isMuxed&&i(e,"audio","start",o),s.hasVideo&&i(e,"video","start",o),oz({action:"probeEmsgID3",data:p,transmuxer:e.transmuxer,offset:o,callback:({emsgData:n,id3Frames:i})=>{t=n.buffer,e.bytes=p=n,r.video&&n.byteLength&&e.transmuxer?oz({action:"pushMp4Captions",endAction:"mp4Captions",transmuxer:e.transmuxer,data:p,timescales:e.map.timescales,trackIds:[r.video.id],callback:n=>{t=n.data.buffer,e.bytes=p=n.data,n.logs.forEach(function(e){h(sI(e,{stream:"mp4CaptionParser"}))}),l(n.captions,i)}}):l(void 0,i)}})}})}else if(e.transmuxer){if(void 0===e.container&&(e.container=tr(p)),"ts"!==e.container&&"aac"!==e.container)return n(e,{hasAudio:!1,hasVideo:!1}),void d(null,e,{});o$({segment:e,bytes:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})}else d(null,e,{})},oZ=function({id:e,key:t,encryptedBytes:n,decryptionWorker:i},r){const s=t=>{if(t.data.source===e){i.removeEventListener("message",s);const e=t.data.decrypted;r(new Uint8Array(e.bytes,e.byteOffset,e.byteLength))}};let o;i.addEventListener("message",s),o=t.bytes.slice?t.bytes.slice():new Uint32Array(Array.prototype.slice.call(t.bytes)),i.postMessage(og({source:e,encrypted:n,key:o,iv:t.iv}),[n.buffer,o.buffer])},oY=({xhr:e,xhrOptions:t,decryptionWorker:n,segment:i,abortFn:r,progressFn:s,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g})=>{const v=[],y=(({activeXhrs:e,decryptionWorker:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})=>{let p=0,f=!1;return(m,g)=>{if(!f){if(m)return f=!0,oV(e),d(m,g);if(p+=1,p===e.length){const p=function(){if(g.encryptedBytes)return(({decryptionWorker:e,segment:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})=>{oZ({id:t.requestId,key:t.key,encryptedBytes:t.encryptedBytes,decryptionWorker:e},e=>{t.bytes=e,oQ({segment:t,bytes:t.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})})})({decryptionWorker:t,segment:g,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h});oQ({segment:g,bytes:g.bytes,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c,doneFn:d,onTransmuxerLog:h})};if(g.endOfAllRequests=Date.now(),g.map&&g.map.encryptedBytes&&!g.map.bytes)return oZ({decryptionWorker:t,id:g.requestId+"-init",encryptedBytes:g.map.encryptedBytes,key:g.map.key},t=>{g.map.bytes=t,oG(g,t=>{if(t)return oV(e),d(t,g);p()})});p()}}}})({activeXhrs:v,decryptionWorker:n,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f,doneFn:m,onTransmuxerLog:g});if(i.key&&!i.key.bytes){const n=[i.key];i.map&&!i.map.bytes&&i.map.key&&i.map.key.resolvedUri===i.key.resolvedUri&&n.push(i.map.key);const r=e(sI(t,{uri:i.key.resolvedUri,responseType:"arraybuffer"}),oW(i,n,y));v.push(r)}if(i.map&&!i.map.bytes){if(i.map.key&&(!i.key||i.key.resolvedUri!==i.map.key.resolvedUri)){const n=e(sI(t,{uri:i.map.key.resolvedUri,responseType:"arraybuffer"}),oW(i,[i.map.key],y));v.push(n)}const n=sI(t,{uri:i.map.resolvedUri,responseType:"arraybuffer",headers:oh(i.map)}),r=(({segment:e,finishProcessingFn:t})=>(n,i)=>{const r=oH(n,i);if(r)return t(r,e);const s=new Uint8Array(i.response);if(e.map.key)return e.map.encryptedBytes=s,t(null,e);e.map.bytes=s,oG(e,function(n){if(n)return n.xhr=i,n.status=i.status,t(n,e);t(null,e)})})({segment:i,finishProcessingFn:y}),s=e(n,r);v.push(s)}const b=sI(t,{uri:i.part&&i.part.resolvedUri||i.resolvedUri,responseType:"arraybuffer",headers:oh(i)}),_=e(b,(({segment:e,finishProcessingFn:t,responseType:n})=>(i,r)=>{const s=oH(i,r);if(s)return t(s,e);const o="arraybuffer"!==n&&r.responseText?(e=>{const t=new Uint8Array(new ArrayBuffer(e.length));for(let n=0;n<e.length;n++)t[n]=e.charCodeAt(n);return t.buffer})(r.responseText.substring(e.lastReachedChar||0)):r.response;return e.stats=(e=>({bandwidth:e.bandwidth,bytesReceived:e.bytesReceived||0,roundTripTime:e.roundTripTime||0}))(r),e.key?e.encryptedBytes=new Uint8Array(o):e.bytes=new Uint8Array(o),t(null,e)})({segment:i,finishProcessingFn:y,responseType:b.responseType}));_.addEventListener("progress",(({segment:e,progressFn:t,trackInfoFn:n,timingInfoFn:i,videoSegmentTimingInfoFn:r,audioSegmentTimingInfoFn:s,id3Fn:o,captionsFn:a,isEndOfTimeline:l,endedTimelineFn:u,dataFn:c})=>n=>{if(!n.target.aborted)return e.stats=sI(e.stats,(e=>{const 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})(n)),!e.stats.firstBytesReceivedAt&&e.stats.bytesReceived&&(e.stats.firstBytesReceivedAt=Date.now()),t(n,e)})({segment:i,progressFn:s,trackInfoFn:o,timingInfoFn:a,videoSegmentTimingInfoFn:l,audioSegmentTimingInfoFn:u,id3Fn:c,captionsFn:d,isEndOfTimeline:h,endedTimelineFn:p,dataFn:f})),v.push(_);const T={};return v.forEach(e=>{e.addEventListener("loadend",(({loadendState:e,abortFn:t})=>n=>{n.target.aborted&&t&&!e.calledAbortFn&&(t(),e.calledAbortFn=!0)})({loadendState:T,abortFn:r}))}),()=>oV(v)},oX=sC("CodecUtils"),oK=(e,t)=>{const n=t.attributes||{};return e&&e.mediaGroups&&e.mediaGroups.AUDIO&&n.AUDIO&&e.mediaGroups.AUDIO[n.AUDIO]},oJ=function(e){const t={};return e.forEach(({mediaType:e,type:n,details:i})=>{t[e]=t[e]||[],t[e].push(P(`${n}${i}`))}),Object.keys(t).forEach(function(e){if(t[e].length>1)return oX(`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},o0=function(e){let t=0;return e.audio&&t++,e.video&&t++,t},o1=function(e,t){const n=t.attributes||{},i=oJ(function(e){const t=e.attributes||{};if(t.CODECS)return N(t.CODECS)}(t)||[]);if(oK(e,t)&&!i.audio&&!((e,t)=>{if(!oK(e,t))return!0;const n=t.attributes||{},i=e.mediaGroups.AUDIO[n.AUDIO];for(const e in i)if(!i[e].uri&&!i[e].playlists)return!0;return!1})(e,t)){const t=oJ(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 N(r.playlists[0].attributes.CODECS)}return null}(e,n.AUDIO)||[]);t.audio&&(i.audio=t.audio)}return i},o2=sC("PlaylistSelector"),o4=function(e){if(!e||!e.playlist)return;const t=e.playlist;return JSON.stringify({id:t.id,bandwidth:e.bandwidth,width:e.width,height:e.height,codecs:t.attributes&&t.attributes.CODECS||""})},o3=function(e,t){if(!e)return"";const n=r().getComputedStyle(e);return n?n[t]:""},o5=function(e,t){const n=e.slice();e.sort(function(e,i){const r=t(e,i);return 0===r?n.indexOf(e)-n.indexOf(i):r})},o8=function(e,t){let n,i;return e.attributes.BANDWIDTH&&(n=e.attributes.BANDWIDTH),n=n||r().Number.MAX_VALUE,t.attributes.BANDWIDTH&&(i=t.attributes.BANDWIDTH),i=i||r().Number.MAX_VALUE,n-i};let o6=function(e,t,n,i,s,o){if(!e)return;const a={bandwidth:t,width:n,height:i,limitRenditionByPlayerDimensions:s};let l=e.playlists;s4.isAudioOnly(e)&&(l=o.getAudioTrackPlaylists_(),a.audioOnly=!0);let u=l.map(e=>{let t;const n=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.width,i=e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height;return t=e.attributes&&e.attributes.BANDWIDTH,t=t||r().Number.MAX_VALUE,{bandwidth:t,width:n,height:i,playlist:e}});o5(u,(e,t)=>e.bandwidth-t.bandwidth),u=u.filter(e=>!s4.isIncompatible(e.playlist));let c=u.filter(e=>s4.isEnabled(e.playlist));c.length||(c=u.filter(e=>!s4.isDisabled(e.playlist)));const d=c.filter(e=>e.bandwidth*oI.BANDWIDTH_VARIANCE<t);let h=d[d.length-1];const p=d.filter(e=>e.bandwidth===h.bandwidth)[0];if(!1===s){const e=p||c[0]||u[0];if(e&&e.playlist){let t="sortedPlaylistReps";return p&&(t="bandwidthBestRep"),c[0]&&(t="enabledPlaylistReps"),o2(`choosing ${o4(e)} using ${t} with options`,a),e.playlist}return o2("could not choose a playlist with options",a),null}const f=d.filter(e=>e.width&&e.height);o5(f,(e,t)=>e.width-t.width);const m=f.filter(e=>e.width===n&&e.height===i);h=m[m.length-1];const g=m.filter(e=>e.bandwidth===h.bandwidth)[0];let v,y,b,_;if(g||(v=f.filter(e=>e.width>n||e.height>i),y=v.filter(e=>e.width===v[0].width&&e.height===v[0].height),h=y[y.length-1],b=y.filter(e=>e.bandwidth===h.bandwidth)[0]),o.leastPixelDiffSelector){const e=f.map(e=>(e.pixelDiff=Math.abs(e.width-n)+Math.abs(e.height-i),e));o5(e,(e,t)=>e.pixelDiff===t.pixelDiff?t.bandwidth-e.bandwidth:e.pixelDiff-t.pixelDiff),_=e[0]}const T=_||b||g||p||c[0]||u[0];if(T&&T.playlist){let e="sortedPlaylistReps";return _?e="leastPixelDiffRep":b?e="resolutionPlusOneRep":g?e="resolutionBestRep":p?e="bandwidthBestRep":c[0]&&(e="enabledPlaylistReps"),o2(`choosing ${o4(T)} using ${e} with options`,a),T.playlist}return o2("could not choose a playlist with options",a),null};const o9=function(){const e=this.useDevicePixelRatio&&r().devicePixelRatio||1;return o6(this.playlists.main,this.systemBandwidth,parseInt(o3(this.tech_.el(),"width"),10)*e,parseInt(o3(this.tech_.el(),"height"),10)*e,this.limitRenditionByPlayerDimensions,this.playlistController_)},o7={id:"ID",class:"CLASS",startDate:"START-DATE",duration:"DURATION",endDate:"END-DATE",endOnNext:"END-ON-NEXT",plannedDuration:"PLANNED-DURATION",scte35Out:"SCTE35-OUT",scte35In:"SCTE35-IN"}
vendor: 4,426 bytes, line 13
13,ae=new Set(["id","class","startDate","duration","endDate","endOnNext","startTime","endTime","processDateRange"]),at=(e,t,n)=>{e.metadataTrack_||(e.metadataTrack_=n.addRemoteTextTrack({kind:"metadata",label:"Timed Metadata"},!1).track,sT.browser.IS_ANY_SAFARI||(e.metadataTrack_.inBandMetadataTrackDispatchType=t))},an=function(e,t,n){let i,r;if(n&&n.cues)for(i=n.cues.length;i--;)r=n.cues[i],r.startTime>=e&&r.endTime<=t&&n.removeCue(r)},ai=e=>"number"==typeof e&&isFinite(e),ar=1/60,as=e=>{const{startOfSegment:t,duration:n,segment:i,part:r,playlist:{mediaSequence:s,id:o,segments:a=[]},mediaIndex:l,partIndex:u,timeline:c}=e,d=a.length-1;let h="mediaIndex/partIndex increment";e.getMediaInfoForTime?h=`getMediaInfoForTime (${e.getMediaInfoForTime})`:e.isSyncRequest&&(h="getSyncSegmentCandidate (isSyncRequest)"),e.independent&&(h+=` with independent ${e.independent}`);const p="number"==typeof u,f=e.segment.uri?"segment":"pre-segment",m=p?sV({preloadSegment:i})-1:0;return`${f} [${s+l}/${s+d}]`+(p?` part [${u}/${m}]`:"")+` segment start/end [${i.start} => ${i.end}]`+(p?` part start/end [${r.start} => ${r.end}]`:"")+` startOfSegment [${t}]`+` duration [${n}]`+` timeline [${c}]`+` selected by [${h}]`+` playlist [${o}]`},ao=e=>`${e}TimingInfo`,aa=(e,t)=>e.length?e.end(e.length-1):t,al=({timelineChangeController:e,currentTimeline:t,segmentTimeline:n,loaderType:i,audioDisabled:r})=>{if(t===n)return!1;if("audio"===i){const t=e.lastTimelineChange({type:"main"});return!t||t.to!==n}if("main"===i&&r){const t=e.pendingTimelineChange({type:"audio"});return!t||t.to!==n}return!1},au=({segmentDuration:e,maxDuration:t})=>!!e&&Math.round(e)>t+sA;class ac extends sT.EventTarget{constructor(e,t={}){if(super(),!e)throw new TypeError("Initialization settings are required");if("function"!=typeof e.currentTime)throw new TypeError("No currentTime getter specified");if(!e.mediaSource)throw new TypeError("No MediaSource specified");this.bandwidth=e.bandwidth,this.throughput={rate:0,count:0},this.roundTrip=NaN,this.resetStats_(),this.mediaIndex=null,this.partIndex=null,this.hasPlayed_=e.hasPlayed,this.currentTime_=e.currentTime,this.seekable_=e.seekable,this.seeking_=e.seeking,this.duration_=e.duration,this.mediaSource_=e.mediaSource,this.vhs_=e.vhs,this.loaderType_=e.loaderType,this.currentMediaInfo_=void 0,this.startingMediaInfo_=void 0,this.segmentMetadataTrack_=e.segmentMetadataTrack,this.goalBufferLength_=e.goalBufferLength,this.sourceType_=e.sourceType,this.sourceUpdater_=e.sourceUpdater,this.inbandTextTracks_=e.inbandTextTracks,this.state_="INIT",this.timelineChangeController_=e.timelineChangeController,this.shouldSaveSegmentTimingInfo_=!0,this.parse708captions_=e.parse708captions,this.useDtsForTimestampOffset_=e.useDtsForTimestampOffset,this.calculateTimestampOffsetForEachSegment_=e.calculateTimestampOffsetForEachSegment,this.captionServices_=e.captionServices,this.exactManifestTimings=e.exactManifestTimings,this.addMetadataToTextTrack=e.addMetadataToTextTrack,this.checkBufferTimeout_=null,this.error_=void 0,this.currentTimeline_=-1,this.pendingSegment_=null,this.xhrOptions_=null,this.pendingSegments_=[],this.audioDisabled_=!1,this.isPendingTimestampOffset_=!1,this.gopBuffer_=[],this.timeMapping_=0,this.safeAppend_=!1,this.appendInitSegment_={audio:!0,video:!0},this.playlistOfLastInitSegment_={audio:null,video:null},this.callQueue_=[],this.loadQueue_=[],this.metadataQueue_={id3:[],caption:[]},this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=null,this.activeInitSegmentId_=null,this.initSegments_={},this.cacheEncryptionKeys_=e.cacheEncryptionKeys,this.keyCache_={},this.decrypter_=e.decrypter,this.syncController_=e.syncController,this.syncPoint_={segmentIndex:0,time:0},this.transmuxer_=this.createTransmuxer_(),this.triggerSyncInfoUpdate_=()=>this.trigger("syncinfoupdate"),this.syncController_.on("syncinfoupdate",this.triggerSyncInfoUpdate_),this.mediaSource_.addEventListener("sourceopen",()=>{this.isEndOfStream_()||(this.ended_=!1)}),this.fetchAtBuffer_=!1,this.replaceSegmentsUntil_=-1,this.logger_=sC(`SegmentLoader[${this.loaderType_}]`),Object.defineProperty(this,"state",{get(){return this.state_},set(e){e!==this.state_&&(this.logger_(`${this.state_} -> ${e}`),this.state_=e,this.trigger("statechange"))}}),this.sourceUpdater_.on("ready",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"main"===this.loaderType_&&this.timelineChangeController_.on("pe
13ndingtimelinechange",()=>{this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}),"audio"===this.loaderType_&&this.timelineChangeController_.on("timelinechange",()=>{this.hasEnoughInfoToLoad_()&&this.processLoadQueue_(),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()})}createTransmuxer_(){return(e=>{const t=new oN;t.currentTransmux=null,t.transmuxQueue=[];const n=t.terminate;return t.terminate=()=>(t.currentTransmux=null,t.transmuxQueue.length=0,n.call(t)),t.postMessage({action:"init",options:e}),t})({remux:!1,alignGopsAtEnd:this.safeAppend_,keepOriginalTimestamps:!0,parse708captions:this.parse708captions_,captionServices:this.captionServices_})}resetStats_(){this.mediaBytesTransferred=0,this.mediaRequests=0,this.mediaRequestsAborted=0,this.mediaRequestsTimedout=0,this.mediaRequestsErrored=0,this.mediaTransferDuration=0,this.mediaSecondsLoaded=0,this.mediaAppends=0}dispose(){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()}setAudio(e){this.audioDisabled_=!e,e?this.appendInitSegment_.audio=!0:this.sourceUpdater_.removeAudio(0,this.duration_())}abort(){"WAITING"===this.state?(this.abort_(),this.state="READY",this.paused()||this.monitorBuffer_()):this.pendingSegment_&&(this.pendingSegment_=null)}abort_(){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}checkForAbort_(e){return"APPENDING"!==this.state||this.pendingSegment_?!this.pendingSegment_||this.pendingSegment_.requestId!==e:(this.state="READY",!0)}error(e){return void 0!==e&&(this.logger_("error occurred:",e),this.error_=e),this.pendingSegment_=null,this.error_}endOfStream(){this.ended_=!0,this.transmuxer_&&oB(this.transmuxer_),this.gopBuffer_.length=0,this.pause(),this.trigger("ended")}buffered_(){const e=this.getMediaInfo_();if(!this.sourceUpdater_||!e)return sD();if("main"===this.loaderType_){const{hasAudio:t,hasVideo:n,isMuxed:i}=e;if(n&&t&&!this.audioDisabled_&&!i)return this.sourceUpdater_.buffered();if(n)return this.sourceUpdater_.videoBuffered()}return this.sourceUpdater_.audioBuffered()}initSegmentForMap(e,t=!1){if(!e)return null;const n=ov(e);let 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}segmentKey(e,t=!1){if(!e)return null;const n=oy(e);let i=this.keyCache_[n];this.cacheEncryptionKeys_&&t&&!i&&e.bytes&&(this.keyCache_[n]=i={resolvedUri:e.resolvedUri,bytes:e.bytes});const r={resolvedUri:(i||e).resolvedUri};return i&&(r.bytes=i.bytes),r}couldBeginLoading_(){return this.playlist_&&!this.paused()}load(){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"))}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}playlist(e,t={}){if(!e)return;const 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));let r=null;if(n&&(n.id?r=n.id:n.uri&&(r=n.uri)),this.logger_(`playlist update [${r} => ${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||"number"!=typeof e.partTargetDuration?this.resyncLoader():this.resetLoader()),this.currentMediaInfo_=void 0,void this.trigger("playlistupdate");const s=e.mediaSequence-n.mediaSequence;if(this.logger_(`live window shift [${s}]`),null!==this.mediaIndex)if(this.mediaIndex-=s,this.mediaIndex<0)this.mediaIndex=null,this.partIndex=null;else{const e=this.playlist_.segments[this.mediaIndex];if(this.partIndex&&(!e.parts||!e.parts.length||!e.parts[this.partIndex])){const e=this.mediaIndex;this.logger_(`currently processing part (index ${this.partIndex}) no longer exists.`),this.resetLoader(),this.mediaIndex=e}}i&&(i.mediaIndex-=s,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)}pause(){this.checkBufferTimeout_&&(r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=null)}paused(){return null===this.checkBufferTimeout_}
vendor: 4,737 bytes, line 13
13resetLoaderProperties(){this.ended_=!1,this.activeInitSegmentId_=null,this.appendInitSegment_={audio:!0,video:!0}}resetEverything(e){this.resetLoaderProperties(),this.resetLoader(),this.remove(0,1/0,e),this.transmuxer_&&(this.transmuxer_.postMessage({action:"clearAllMp4Captions"}),this.transmuxer_.postMessage({action:"reset"}))}resetLoader(){this.fetchAtBuffer_=!1,this.resyncLoader()}resyncLoader(){this.transmuxer_&&oB(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"})}remove(e,t,n=()=>{},i=!1){if(t===1/0&&(t=this.duration_()),t<=e)return void this.logger_("skipping remove because end ${end} is <= start ${start}");if(!this.sourceUpdater_||!this.getMediaInfo_())return void this.logger_("skipping remove because no source updater or starting media info");let r=1;const s=()=>{r--,0===r&&n()};!i&&this.audioDisabled_||(r++,this.sourceUpdater_.removeAudio(e,t,s)),(i||"main"===this.loaderType_)&&(this.gopBuffer_=((e,t,n,i)=>{const r=Math.ceil((t-i)*ts.ONE_SECOND_IN_TS),s=Math.ceil((n-i)*ts.ONE_SECOND_IN_TS),o=e.slice();let a=e.length;for(;a--&&!(e[a].pts<=s););if(-1===a)return o;let l=a+1;for(;l--&&!(e[l].pts<=r););return l=Math.max(l,0),o.splice(l,a-l+1),o})(this.gopBuffer_,e,t,this.timeMapping_),r++,this.sourceUpdater_.removeVideo(e,t,s));for(const n in this.inbandTextTracks_)an(e,t,this.inbandTextTracks_[n]);an(e,t,this.segmentMetadataTrack_),s()}monitorBuffer_(){this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r().setTimeout(this.monitorBufferTick_.bind(this),1)}monitorBufferTick_(){"READY"===this.state&&this.fillBuffer_(),this.checkBufferTimeout_&&r().clearTimeout(this.checkBufferTimeout_),this.checkBufferTimeout_=r().setTimeout(this.monitorBufferTick_.bind(this),500)}fillBuffer_(){if(this.sourceUpdater_.updating())return;const 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))}isEndOfStream_(e=this.mediaIndex,t=this.playlist_,n=this.partIndex){if(!t||!this.mediaSource_)return!1;const i="number"==typeof e&&t.segments[e],r=e+1===t.segments.length,s=!i||!i.parts||n+1===i.parts.length;return t.endList&&"open"===this.mediaSource_.readyState&&r&&s}chooseNextRequest_(){const e=this.buffered_(),t=sU(e)||0,n=sB(e,this.currentTime_()),i=!this.hasPlayed_()&&n>=1,r=n>=this.goalBufferLength_(),s=this.playlist_.segments;if(!s.length||i||r)return null;this.syncPoint_=this.syncPoint_||this.syncController_.getSyncPoint(this.playlist_,this.duration_(),this.currentTimeline_,this.currentTime_());const o={partIndex:null,mediaIndex:null,startOfSegment:null,playlist:this.playlist_,isSyncRequest:Boolean(!this.syncPoint_)};if(o.isSyncRequest)o.mediaIndex=function(e,t,n){t=t||[];const i=[];let r=0;for(let s=0;s<t.length;s++){const o=t[s];if(e===o.timeline&&(i.push(s),r+=o.duration,r>n))return s}return 0===i.length?0:i[i.length-1]}(this.currentTimeline_,s,t);else if(null!==this.mediaIndex){const e=s[this.mediaIndex],n="number"==typeof this.partIndex?this.partIndex:-1;o.startOfSegment=e.end?e.end:t,e.parts&&e.parts[n+1]?(o.mediaIndex=this.mediaIndex,o.partIndex=n+1):o.mediaIndex=this.mediaIndex+1}else{const{segmentIndex:e,startTime:n,partIndex:i}=s4.getMediaInfoForTime({exactManifestTimings:this.exactManifestTimings,playlist:this.playlist_,currentTime:this.fetchAtBuffer_?t:this.currentTime_(),startingPartIndex:this.syncPoint_.partIndex,startingSegmentIndex:this.syncPoint_.segmentIndex,startTime:this.syncPoint_.time});o.getMediaInfoForTime=this.fetchAtBuffer_?`bufferedEnd ${t}`:`currentTime ${this.currentTime_()}`,o.mediaIndex=e,o.startOfSegment=n,o.partIndex=i}const a=s[o.mediaIndex];let l=a&&"number"==typeof o.partIndex&&a.parts&&a.parts[o.partIndex];if(!a||"number"==typeof o.partIndex&&!l)return null;"number"!=typeof o.partIndex&&a.parts&&(o.partIndex=0,l=a.parts[0]);const u=this.vhs_.playlists&&this.vhs_.playlists.main&&this.vhs_.playlists.main.independentSegments||this.playlist_.independentSegments;if(!n&&l&&!u&&!l.independent)if(0===o.partIndex){const e=s[o.mediaIndex-1],t=e.parts&&e.parts.length&&e.parts[e.parts.length-1];t&&t.independent&&(o.mediaIndex-=1,o.partIndex=e.parts.length-1,o.independent="previous segment")}else a.parts[o.partIndex-1].independent&&(o.partIndex-=1,o.independent="previous part");const c=this.mediaSource_&&"ended"===this.mediaSource_.readyState;return o.mediaIndex>
vendor: 4,459 bytes, line 13
13=s.length-1&&c&&!this.seeking_()?null:this.generateSegmentInfo_(o)}generateSegmentInfo_(e){const{independent:t,playlist:n,mediaIndex:i,startOfSegment:r,isSyncRequest:s,partIndex:o,forceTimestampOffset:a,getMediaInfoForTime:l}=e,u=n.segments[i],c="number"==typeof o&&u.parts[o],d={requestId:"segment-loader-"+Math.random(),uri:c&&c.resolvedUri||u.resolvedUri,mediaIndex:i,partIndex:c?o:null,isSyncRequest:s,startOfSegment:r,playlist:n,bytes:null,encryptedBytes:null,timestampOffset:null,timeline:u.timeline,duration:c&&c.duration||u.duration,segment:u,part:c,byteLength:0,transmuxer:this.transmuxer_,getMediaInfoForTime:l,independent:t},h=void 0!==a?a:this.isPendingTimestampOffset_;d.timestampOffset=this.timestampOffsetForSegment_({segmentTimeline:u.timeline,currentTimeline:this.currentTimeline_,startOfSegment:r,buffered:this.buffered_(),calculateTimestampOffsetForEachSegment:this.calculateTimestampOffsetForEachSegment_,overrideCheck:h});const p=sU(this.sourceUpdater_.audioBuffered());return"number"==typeof p&&(d.audioAppendStart=p-this.sourceUpdater_.audioTimestampOffset()),this.sourceUpdater_.videoBuffered().length&&(d.gopsToAlignWith=((e,t,n)=>{if(null==t||!e.length)return[];const i=Math.ceil((t-n+3)*ts.ONE_SECOND_IN_TS);let r;for(r=0;r<e.length&&!(e[r].pts>i);r++);return e.slice(r)})(this.gopBuffer_,this.currentTime_()-this.sourceUpdater_.videoTimestampOffset(),this.timeMapping_)),d}timestampOffsetForSegment_(e){return(({segmentTimeline:e,currentTimeline:t,startOfSegment:n,buffered:i,calculateTimestampOffsetForEachSegment:r,overrideCheck:s})=>r?aa(i,n):s||e!==t?e<t?n:aa(i,n):null)(e)}earlyAbortWhenNeeded_(e){if(this.vhs_.tech_.paused()||!this.xhrOptions_.timeout||!this.playlist_.attributes.BANDWIDTH)return;if(Date.now()-(e.firstBytesReceivedAt||Date.now())<1e3)return;const t=this.currentTime_(),n=e.bandwidth,i=this.pendingSegment_.duration,r=s4.estimateSegmentRequestTime(i,n,this.playlist_,e.bytesReceived),s=function(e,t,n=1){return((e.length?e.end(e.length-1):0)-t)/n}(this.buffered_(),t,this.vhs_.tech_.playbackRate())-1;if(r<=s)return;const o=function(e){const{main:t,currentTime:n,bandwidth:i,duration:r,segmentDuration:s,timeUntilRebuffer:o,currentTimeline:a,syncController:l}=e,u=t.playlists.filter(e=>!s4.isIncompatible(e));let c=u.filter(s4.isEnabled);c.length||(c=u.filter(e=>!s4.isDisabled(e)));const d=c.filter(s4.hasAttribute.bind(null,"BANDWIDTH")).map(e=>{const t=l.getSyncPoint(e,r,a,n)?1:2;return{playlist:e,rebufferingImpact:s4.estimateSegmentRequestTime(s,i,e)*t-o}}),h=d.filter(e=>e.rebufferingImpact<=0);return o5(h,(e,t)=>o8(t.playlist,e.playlist)),h.length?h[0]:(o5(d,(e,t)=>e.rebufferingImpact-t.rebufferingImpact),d[0]||null)}({main:this.vhs_.playlists.main,currentTime:t,bandwidth:n,duration:this.duration_(),segmentDuration:i,timeUntilRebuffer:s,currentTimeline:this.currentTimeline_,syncController:this.syncController_});if(!o)return;const a=r-s-o.rebufferingImpact;let l=.5;s<=sA&&(l=1),!o.playlist||o.playlist.uri===this.playlist_.uri||a<l||(this.bandwidth=o.playlist.attributes.BANDWIDTH*oI.BANDWIDTH_VARIANCE+1,this.trigger("earlyabort"))}handleAbort_(e){this.logger_(`Aborting ${as(e)}`),this.mediaRequestsAborted+=1}handleProgress_(e,t){this.earlyAbortWhenNeeded_(t.stats),this.checkForAbort_(t.requestId)||this.trigger("progress")}handleTrackInfo_(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;const n=Object.keys(e).sort(),i=Object.keys(t).sort();if(n.length!==i.length)return!1;for(let r=0;r<n.length;r++){const s=n[r];if(s!==i[r])return!1;if(e[s]!==t[s])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_()))}handleTimingInfo_(e,t,n,i){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;const r=this.pendingSegment_,s=ao(t);r[s]=r[s]||{},r[s][n]=i,this.logger_(`timinginfo: ${t} - ${n} - ${i}`),this.hasEnoughInfoToAppend_()&&this.processCallQueue_()}handleCaptions_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(0===t.length)return void this.logger_("SegmentLoader received no captions from a caption event");
vendor: 5,492 bytes, line 13
13if(!this.pendingSegment_.hasAppendedData_)return void this.metadataQueue_.caption.push(this.handleCaptions_.bind(this,e,t));const n=null===this.sourceUpdater_.videoTimestampOffset()?this.sourceUpdater_.audioTimestampOffset():this.sourceUpdater_.videoTimestampOffset(),i={};t.forEach(e=>{i[e.stream]=i[e.stream]||{startTime:1/0,captions:[],endTime:0};const t=i[e.stream];t.startTime=Math.min(t.startTime,e.startTime+n),t.endTime=Math.max(t.endTime,e.endTime+n),t.captions.push(e)}),Object.keys(i).forEach(e=>{const{startTime:t,endTime:s,captions:o}=i[e],a=this.inbandTextTracks_;this.logger_(`adding cues from ${t} -> ${s} for ${e}`),function(e,t,n){if(!e[n]){t.trigger({type:"usage",name:"vhs-608"});let i=n;/^cc708_/.test(n)&&(i="SERVICE"+n.split("_")[1]);const r=t.textTracks().getTrackById(i);if(r)e[n]=r;else{let r=n,s=n,o=!1;const a=(t.options_.vhs&&t.options_.vhs.captionServices||{})[i];a&&(r=a.label,s=a.language,o=a.default),e[n]=t.addRemoteTextTrack({kind:"captions",id:i,default:o,label:r,language:s},!1).track}}}(a,this.vhs_.tech_,e),an(t,s,a[e]),function({inbandTextTracks:e,captionArray:t,timestampOffset:n}){if(!t)return;const i=r().WebKitDataCue||r().VTTCue;t.forEach(t=>{const r=t.stream;t.content?t.content.forEach(s=>{const o=new i(t.startTime+n,t.endTime+n,s.text);o.line=s.line,o.align="left",o.position=s.position,o.positionAlign="line-left",e[r].addCue(o)}):e[r].addCue(new i(t.startTime+n,t.endTime+n,t.text))})}({captionArray:o,inbandTextTracks:a,timestampOffset:n})}),this.transmuxer_&&this.transmuxer_.postMessage({action:"clearParsedMp4Captions"})}handleId3_(e,t,n){this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId)||(this.pendingSegment_.hasAppendedData_?this.addMetadataToTextTrack(n,t,this.duration_()):this.metadataQueue_.id3.push(this.handleId3_.bind(this,e,t,n)))}processMetadataQueue_(){this.metadataQueue_.id3.forEach(e=>e()),this.metadataQueue_.caption.forEach(e=>e()),this.metadataQueue_.id3=[],this.metadataQueue_.caption=[]}processCallQueue_(){const e=this.callQueue_;this.callQueue_=[],e.forEach(e=>e())}processLoadQueue_(){const e=this.loadQueue_;this.loadQueue_=[],e.forEach(e=>e())}hasEnoughInfoToLoad_(){if("audio"!==this.loaderType_)return!0;const e=this.pendingSegment_;return!(!e||this.getCurrentMediaInfo_()&&al({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}getCurrentMediaInfo_(e=this.pendingSegment_){return e&&e.trackInfo||this.currentMediaInfo_}getMediaInfo_(e=this.pendingSegment_){return this.getCurrentMediaInfo_(e)||this.startingMediaInfo_}getPendingSegmentPlaylist(){return this.pendingSegment_?this.pendingSegment_.playlist:null}hasEnoughInfoToAppend_(){if(!this.sourceUpdater_.ready())return!1;if(this.waitingOnRemove_||this.quotaExceededErrorRetryTimeout_)return!1;const e=this.pendingSegment_,t=this.getCurrentMediaInfo_();if(!e||!t)return!1;const{hasAudio:n,hasVideo:i,isMuxed:r}=t;return!(i&&!e.videoTimingInfo||n&&!this.audioDisabled_&&!r&&!e.audioTimingInfo||al({timelineChangeController:this.timelineChangeController_,currentTimeline:this.currentTimeline_,segmentTimeline:e.timeline,loaderType:this.loaderType_,audioDisabled:this.audioDisabled_}))}handleData_(e,t){if(this.earlyAbortWhenNeeded_(e.stats),this.checkForAbort_(e.requestId))return;if(this.callQueue_.length||!this.hasEnoughInfoToAppend_())return void this.callQueue_.push(this.handleData_.bind(this,e,t));const 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[ao(t.type)].start;else{const e=this.getCurrentMediaInfo_(),t="main"===this.loaderType_&&e&&e.hasVideo;let i;t&&(i=n.videoTimingInfo.start),n.timingInfo.start=this.trueSegmentStart_({currentStart:n.timingInfo.start,playlist:n.playlist,mediaIndex:n.mediaIndex,currentVideoTimestampOffset:this.sourceUpdater_.videoTimestampOffset(),useVideoTimingInfo:t,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_});const e=this.chooseNextRequest_();if(e.mediaIndex!==n.mediaIndex||e.partIndex!==n.partIndex)return void this.logger_("sync segment was incorrect, not appending");this.logger_("sync segment was correct, appending")}n.hasAppendedData_=!0,this.processMetadataQueue_(),this.appendData_(n,t)}}updateAppendInitSegmentStatus(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)}getInitSegmentAndUpdateState_({type:e,initSegment:t,map:n,playlist:i}){if(n){const e=ov(n);if(this.activeInitSegmentId_===e)return null;t=this.initSegmentForMap(n,!0).bytes,this.activeInitSegmentId_=e}return t&&this.appendInitSegment_[e]?(this.playlistOfLastInitSegment_[e]=i,this.appendInitSegment_[e]=!1,this.activeInitSegmentId_=null,t):null}handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n}
vendor: 8,712 bytes, line 13
13,i){const s=this.sourceUpdater_.audioBuffered(),o=this.sourceUpdater_.videoBuffered();s.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the audio buffer: "+sR(s).join(", ")),o.length>1&&this.logger_("On QUOTA_EXCEEDED_ERR, found gaps in the video buffer: "+sR(o).join(", "));const a=s.length?s.start(0):0,l=s.length?s.end(s.length-1):0,u=o.length?o.start(0):0,c=o.length?o.end(o.length-1):0;if(l-a<=1&&c-u<=1)return this.logger_(`On QUOTA_EXCEEDED_ERR, single segment too large to append to buffer, triggering an error. Appended byte length: ${n.byteLength}, audio buffer: ${sR(s).join(", ")}, video buffer: ${sR(o).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:e,type:t,bytes:n}));const d=this.currentTime_()-1;this.logger_(`On QUOTA_EXCEEDED_ERR, removing audio/video from 0 to ${d}`),this.remove(0,d,()=>{this.logger_("On QUOTA_EXCEEDED_ERR, retrying append in 1s"),this.waitingOnRemove_=!1,this.quotaExceededErrorRetryTimeout_=r().setTimeout(()=>{this.logger_("On QUOTA_EXCEEDED_ERR, re-processing call queue"),this.quotaExceededErrorRetryTimeout_=null,this.processCallQueue_()},1e3)},!0)}handleAppendError_({segmentInfo:e,type:t,bytes:n},i){i&&(22!==i.code?(this.logger_("Received non QUOTA_EXCEEDED_ERR on append",i),this.error(`${t} append of ${n.length}b failed for segment #${e.mediaIndex} in playlist ${e.playlist.id}`),this.trigger("appenderror")):this.handleQuotaExceededError_({segmentInfo:e,type:t,bytes:n}))}appendToSourceBuffer_({segmentInfo:e,type:t,initSegment:n,data:i,bytes:r}){if(!r){const e=[i];let t=i.byteLength;n&&(e.unshift(n),t+=n.byteLength),r=(e=>{let t,n=0;return e.bytes&&(t=new Uint8Array(e.bytes),e.segments.forEach(e=>{t.set(e,n),n+=e.byteLength})),t})({bytes:t,segments:e})}this.sourceUpdater_.appendBuffer({segmentInfo:e,type:t,bytes:r},this.handleAppendError_.bind(this,{segmentInfo:e,type:t,bytes:r}))}handleSegmentTimingInfo_(e,t,n){if(!this.pendingSegment_||t!==this.pendingSegment_.requestId)return;const 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}appendData_(e,t){const{type:n,data:i}=t;if(!i||!i.byteLength)return;if("audio"===n&&this.audioDisabled_)return;const 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})}loadSegment_(e){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(()=>{const t=y({},e,{forceTimestampOffset:!0});y(e,this.generateSegmentInfo_(t)),this.isPendingTimestampOffset_=!1,this.updateTransmuxerAndRequestSegment_(e)})}updateTransmuxerAndRequestSegment_(e){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}));const t=this.createSimplifiedSegmentObj_(e),n=this.isEndOfStream_(e.mediaIndex,e.playlist,e.partIndex),i=null!==this.mediaIndex,r=e.timeline!==this.currentTimeline_&&e.timeline>0,s=n||i&&r;this.logger_(`Requesting ${as(e)}`),t.map&&!t.map.bytes&&(this.logger_("going to request init segment."),this.appendInitSegment_={video:!0,audio:!0}),e.abortRequests=oY({xhr:this.vhs_.xhr,xhrOptions:this.xhrOptions_,decryptionWorker:this.decrypter_,segment:t,abortFn:this.handleAbort_.bind(this,e),progressFn:this.handleProgress_.bind(this),trackInfoFn:this.handleTrackInfo_.bind(this),timingInfoFn:this.handleTimingInfo_.bind(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:()=>{this.logger_("received endedtimeline callback")},id3Fn:this.handleId3_.bind(this),dataFn:this.handleData_.bind(this),doneFn:this.segmentRequestFinished_.bind(this),onTransmuxerLog:({message:t,level:n,stream:i})=>{this.logger_(`${as(e)} logged from transmuxer stream ${i} as a ${n}: ${t}`)}})}trimBackBuffer_(e){const t=((e,t,n)=>{let i=t-oI.BACK_BUFFER_LENGTH;e.length&&(i=Math.max(i,e.start(0)));const r=t-n;return Math.min(r,i)})(this.seekable_(),this.currentTime_(),this.playlist_.targetDuration||10);t>0&&this.remove(0,t)}createSimplifiedSegmentObj_(e){const 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){const n=t.key.iv||new Uint32Array([0,0,0,e.mediaIndex+e.playlist.mediaSequence]);i.key=this.segmentKey(t.key),i.key.iv=n}return t.map&&(i.map=this.initSegmentForMap(t.map)),i}saveTransferStats_(e){this.mediaRequests+=1,e&&(this.mediaBytesTransferred+=e.bytesReceived,this.mediaTransferDuration+=e.roundTripTime)}saveBandwidthRelatedStats_(e,t){this.pendingSegment_.byteLength=t.bytesReceived,e<ar?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)}handleTimeout_(){this.mediaRequestsTimedout+=1,this.bandwidth=1,this.roundTrip=NaN,this.trigger("bandwidthupdate"),this.trigger("timeout")}segmentRequestFinished_(e,t,n){if(this.callQueue_.length)return void this.callQueue_.push(this.segmentRequestFinished_.bind(this,e,t,n));if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return;if(t.requestId!==this.pendingSegment_.requestId)return;if(e){if(this.pendingSegment_=null,this.state="READY",e.code===oq)return;return this.pause(),e.code===oF?void this.handleTimeout_():(this.mediaRequestsErrored+=1,this.error(e),void this.trigger("error"))}const i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),i.endOfAllRequests=t.endOfAllRequests,n.gopInfo&&(this.gopBuffer_=((e,t,n)=>{if(!t.length)return e;if(n)return t.slice();const i=t[0].pts;let r=0;for(;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)}setTimeMapping_(e){const t=this.syncController_.mappingForTimeline(e);null!==t&&(this.timeMapping_=t)}updateMediaSecondsLoaded_(e){"number"==typeof e.start&&"number"==typeof e.end?this.mediaSecondsLoaded+=e.end-e.start:this.mediaSecondsLoaded+=e.duration}shouldUpdateTransmuxerTimestampOffset_(e){return null!==e&&("main"===this.loaderType_&&e!==this.sourceUpdater_.videoTimestampOffset()||!this.audioDisabled_&&e!==this.sourceUpdater_.audioTimestampOffset())}trueSegmentStart_({currentStart:e,playlist:t,mediaIndex:n,firstVideoFrameTimeForData:i,currentVideoTimestampOffset:r,useVideoTimingInfo:s,videoTimingInfo:o,audioTimingInfo:a}){if(void 0!==e)return e;if(!s)return a.start;const l=t.segments[n-1];return 0!==n&&l&&void 0!==l.start&&l.end===i+r?o.start:i}waitForAppendsToComplete_(e){const t=this.getCurrentMediaInfo_(e);if(!t)return this.error({message:"No starting media returned, likely due to an unsupported media format.",playlistExclusionDuration:1/0}),void this.trigger("error");const{hasAudio:n,hasVideo:i,isMuxed:r}=t,s="main"===this.loaderType_&&i,o=!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);s&&e.waitingOnAppends++,o&&e.waitingOnAppends++,s&&this.sourceUpdater_.videoQueueCallback(this.checkAppendsDone_.bind(this,e)),o&&this.sourceUpdater_.audioQueueCallback(this.checkAppendsDone_.bind(this,e))}
vendor: 4,763 bytes, line 13
13checkAppendsDone_(e){this.checkForAbort_(e.requestId)||(e.waitingOnAppends--,0===e.waitingOnAppends&&this.handleAppendsDone_())}checkForIllegalMediaSwitch(e){const t=((e,t,n)=>"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,playlistExclusionDuration:1/0}),this.trigger("error"),!0)}updateSourceBufferTimestampOffset_(e){if(null===e.timestampOffset||"number"!=typeof e.timingInfo.start||e.changedTimestampOffset||"main"!==this.loaderType_)return;let 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")}getSegmentStartTimeForTimestampOffsetCalculation_({videoTimingInfo:e,audioTimingInfo:t,timingInfo:n}){return this.useDtsForTimestampOffset_?e&&"number"==typeof e.transmuxedDecodeStart?e.transmuxedDecodeStart:t&&"number"==typeof t.transmuxedDecodeStart?t.transmuxedDecodeStart:n.start:n.start}updateTimingInfoEnd_(e){e.timingInfo=e.timingInfo||{};const 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)}handleAppendsDone_(){if(this.pendingSegment_&&this.trigger("appendsdone"),!this.pendingSegment_)return this.state="READY",void(this.paused()||this.monitorBuffer_());const e=this.pendingSegment_;this.updateTimingInfoEnd_(e),this.shouldSaveSegmentTimingInfo_&&this.syncController_.saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:"main"===this.loaderType_});const t=((e,t)=>{if("hls"!==t)return null;const n=(e=>{let t=0;return["video","audio"].forEach(function(n){const i=e[`${n}TimingInfo`];if(!i)return;const{start:s,end:o}=i;let a;"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>t&&(t=a)}),"bigint"==typeof t&&t<Number.MAX_SAFE_INTEGER&&(t=Number(t)),t})({audioTimingInfo:e.audioTimingInfo,videoTimingInfo:e.videoTimingInfo});if(!n)return null;const i=e.playlist.targetDuration,s=au({segmentDuration:n,maxDuration:2*i}),o=au({segmentDuration:n,maxDuration:i}),a=`Segment with index ${e.mediaIndex} from playlist ${e.playlist.id} has a duration of ${n} when the reported duration is ${e.duration} and the target duration is ${i}. For HLS content, a duration in excess of the target duration may result in playback issues. See the HLS specification section on EXT-X-TARGETDURATION for more details: https://tools.ietf.org/html/draft-pantos-http-live-streaming-23#section-4.3.3.1`;return s||o?{severity:s?"warn":"info",message:a}:null})(e,this.sourceType_);if(t&&("warn"===t.severity?sT.log.warn(t.message):this.logger_(t.message)),this.recordThroughput_(e),this.pendingSegment_=null,this.state="READY",e.isSyncRequest&&(this.trigger("syncinfoupdate"),!e.hasAppendedData_))return void this.logger_(`Throwing away un-appended sync request ${as(e)}`);this.logger_(`Appended ${as(e)}`),this.addSegmentMetadataCue_(e),this.currentTime_()>=this.replaceSegmentsUntil_&&(this.replaceSegmentsUntil_=-1,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");const n=e.segment,i=e.part,s=n.end&&this.currentTime_()-n.end>3*e.playlist.targetDuration,o=i&&i.end&&this.currentTime_()-i.end>3*e.playlist.partTargetDuration;if(s||o)return this.logger_(`bad ${s?"segment":"part"} ${as(e)}`),void this.resetEverything();null!==this.mediaIndex&&this.trigger("bandwidthupdate"),this.trigger("progress"),this.mediaIndex=e.mediaIndex,this.partIndex=e.partIndex,this.isEndOfStream_
vendor: 5,614 bytes, lines 13-14
13(e.mediaIndex,e.playlist,e.partIndex)&&this.endOfStream(),this.trigger("appended"),e.hasAppendedData_&&this.mediaAppends++,this.paused()||this.monitorBuffer_()}recordThroughput_(e){if(e.duration<ar)return void this.logger_(`Ignoring segment's throughput because its duration of ${e.duration} is less than the min to record 0.016666666666666666`);const 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}addSegmentMetadataCue_(e){if(!this.segmentMetadataTrack_)return;const t=e.segment,n=t.start,i=t.end;if(!ai(n)||!ai(i))return;an(n,i,this.segmentMetadataTrack_);const s=r().WebKitDataCue||r().VTTCue,o={custom:t.custom,dateTimeObject:t.dateTimeObject,dateTimeString:t.dateTimeString,programDateTime:t.programDateTime,bandwidth:e.playlist.attributes.BANDWIDTH,resolution:e.playlist.attributes.RESOLUTION,codecs:e.playlist.attributes.CODECS,byteLength:e.byteLength,uri:e.uri,timeline:e.timeline,playlist:e.playlist.id,start:n,end:i},a=new s(n,i,JSON.stringify(o));a.value=o,this.segmentMetadataTrack_.addCue(a)}set replaceSegmentsUntil(e){this.logger_(`Replacing currently buffered segments until ${e}`),this.replaceSegmentsUntil_=e}}function ad(){}const ah=function(e){return"string"!=typeof e?e:e.replace(/./,e=>e.toUpperCase())},ap=["video","audio"],af=(e,t)=>{const n=t[`${e}Buffer`];return n&&n.updating||t.queuePending[e]},am=(e,t)=>{if(0===t.queue.length)return;let n=0,i=t.queue[n];if("mediaSource"!==i.type){if("mediaSource"!==e&&t.ready()&&"closed"!==t.mediaSource.readyState&&!af(e,t)){if(i.type!==e){if(n=((e,t)=>{for(let n=0;n<t.length;n++){const i=t[n];if("mediaSource"===i.type)return null;if(i.type===e)return n}return null})(e,t.queue),null===n)return;i=t.queue[n]}return t.queue.splice(n,1),t.queuePending[e]=i,i.action(e,t),i.doneFn?void 0:(t.queuePending[e]=null,void am(e,t))}}else t.updating()||"closed"===t.mediaSource.readyState||(t.queue.shift(),i.action(t),i.doneFn&&i.doneFn(),am("audio",t),am("video",t))},ag=(e,t)=>{const n=t[`${e}Buffer`],i=ah(e);n&&(n.removeEventListener("updateend",t[`on${i}UpdateEnd_`]),n.removeEventListener("error",t[`on${i}Error_`]),t.codecs[e]=null,t[`${e}Buffer`]=null)},av=(e,t)=>e&&t&&-1!==Array.prototype.indexOf.call(e.sourceBuffers,t),ay=(e,t,n)=>(i,r)=>{const s=r[`${i}Buffer`];if(av(r.mediaSource,s)){r.logger_(`Appending segment ${t.mediaIndex}'s ${e.length} bytes to ${i}Buffer`);try{s.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)}}},ab=(e,t)=>(n,i)=>{const r=i[`${n}Buffer`];if(av(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`)}}},a_=e=>(t,n)=>{const i=n[`${t}Buffer`];av(n.mediaSource,i)&&(n.logger_(`Setting ${t}timestampOffset to ${e}`),i.timestampOffset=e)},aT=e=>(t,n)=>{e()},aj=e=>t=>{if("open"===t.mediaSource.readyState){t.logger_(`Calling mediaSource endOfStream(${e||""})`);try{t.mediaSource.endOfStream(e)}catch(e){sT.log.warn("Failed to call media source endOfStream",e)}}},aw=e=>t=>{t.logger_(`Setting mediaSource duration to ${e}`);try{t.mediaSource.duration=e}catch(e){sT.log.warn("Failed to set media source duration",e)}},aS=(e,t)=>n=>{const i=ah(e),r=R(t);n.logger_(`Adding ${e}Buffer with codec ${t} to mediaSource`);const s=n.mediaSource.addSourceBuffer(r);s.addEventListener("updateend",n[`on${i}UpdateEnd_`]),s.addEventListener("error",n[`on${i}Error_`]),n.codecs[e]=t,n[`${e}Buffer`]=s},ax=e=>t=>{const n=t[`${e}Buffer`];if(ag(e,t),av(t.mediaSource,n)){t.logger_(`Removing ${e}Buffer with codec ${t.codecs[e]} from mediaSource`);try{t.mediaSource.removeSourceBuffer(n)}catch(t){sT.log.warn(`Failed to removeSourceBuffer ${e}Buffer`,t)}}},ak=e=>(t,n)=>{const i=n[`${t}Buffer`],r=R(e);av(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)},aE=({type:e,sourceUpdater:t,action:n,doneFn:i,name:r})=>{t.queue.push({type:e,action:n,doneFn:i,name:r}),am(e,t)},aC=(e,t)=>n=>{const i=function(e){let t="";for(let n=0;n<e.length;n++){const i=e.start(n),r=e.end(n),s=r-i;t.length&&(t+="\n"),t+=`[${s}](${i} -> ${r})`}return t||"empty"}(t[`${e}Buffered`]());if(t.logger_(`${e} source buffer update end. Buffered: 14`,i),t.queuePending[e]){const n=t.queuePending[e].doneFn;t.queuePending[e]=null,n&&n(t[`${e}Error_`])}am(e,t)};class aI extends sT.EventTarget{constructor(e){super(),this.mediaSource=e,this.sourceopenListener_=()=>am("mediaSource",this),this.mediaSource.addEventListener("sourceopen",this.sourceopenListener_),this.logger_=sC("SourceUpdater"),this.audioTimestampOffset_=0,this.videoTimestampOffset_=0,this.queue=[],this.queuePending={audio:null,video:null},this.delayedAudioAppendQueue_=[],this.videoAppendQueued_=!1,this.codecs={},this.onVideoUpdateEnd_=aC("video",this),this.onAudioUpdateEnd_=aC("audio",this),this.onVideoError_=e=>{this.videoError_=e},this.onAudioError_=e=>{this.audioError_=e},this.createdSourceBuffers_=!1,this.initializedEme_=!1,this.triggeredReady_=!1}initializedEme(){this.initializedEme_=!0,this.triggerReady()}hasCreatedSourceBuffers(){return this.createdSourceBuffers_}hasInitializedAnyEme(){return this.initializedEme_}ready(){return this.hasCreatedSourceBuffers()&&this.hasInitializedAnyEme()}createSourceBuffers(e){this.hasCreatedSourceBuffers()||(this.addOrChangeSourceBuffers(e),this.createdSourceBuffers_=!0,this.trigger("createdsourcebuffers"),this.triggerReady())}
vendor: 4,399 bytes, line 14
14triggerReady(){this.ready()&&!this.triggeredReady_&&(this.triggeredReady_=!0,this.trigger("ready"))}addSourceBuffer(e,t){aE({type:"mediaSource",sourceUpdater:this,action:aS(e,t),name:"addSourceBuffer"})}abort(e){aE({type:e,sourceUpdater:this,action:(e,t)=>{if("open"!==t.mediaSource.readyState)return;const n=t[`${e}Buffer`];if(av(t.mediaSource,n)){t.logger_(`calling abort on ${e}Buffer`);try{n.abort()}catch(t){sT.log.warn(`Failed to abort on ${e}Buffer`,t)}}},name:"abort"})}removeSourceBuffer(e){this.canRemoveSourceBuffer()?aE({type:"mediaSource",sourceUpdater:this,action:ax(e),name:"removeSourceBuffer"}):sT.log.error("removeSourceBuffer is not supported!")}canRemoveSourceBuffer(){return!sT.browser.IS_FIREFOX&&r().MediaSource&&r().MediaSource.prototype&&"function"==typeof r().MediaSource.prototype.removeSourceBuffer}static canChangeType(){return r().SourceBuffer&&r().SourceBuffer.prototype&&"function"==typeof r().SourceBuffer.prototype.changeType}canChangeType(){return this.constructor.canChangeType()}changeType(e,t){this.canChangeType()?aE({type:e,sourceUpdater:this,action:ak(t),name:"changeType"}):sT.log.error("changeType is not supported!")}addOrChangeSourceBuffers(e){if(!e||"object"!=typeof e||0===Object.keys(e).length)throw new Error("Cannot addOrChangeSourceBuffers to undefined codecs");Object.keys(e).forEach(t=>{const n=e[t];if(!this.hasCreatedSourceBuffers())return this.addSourceBuffer(t,n);this.canChangeType()&&this.changeType(t,n)})}appendBuffer(e,t){const{segmentInfo:n,type:i,bytes:r}=e;if(this.processedAppend_=!0,"audio"===i&&this.videoBuffer&&!this.videoAppendQueued_)return this.delayedAudioAppendQueue_.push([e,t]),void this.logger_(`delayed audio append of ${r.length} until video append`);if(aE({type:i,sourceUpdater:this,action:ay(r,n||{mediaIndex:-1},t),doneFn:t,name:"appendBuffer"}),"video"===i){if(this.videoAppendQueued_=!0,!this.delayedAudioAppendQueue_.length)return;const e=this.delayedAudioAppendQueue_.slice();this.logger_(`queuing delayed audio ${e.length} appendBuffers`),this.delayedAudioAppendQueue_.length=0,e.forEach(e=>{this.appendBuffer.apply(this,e)})}}audioBuffered(){return av(this.mediaSource,this.audioBuffer)&&this.audioBuffer.buffered?this.audioBuffer.buffered:sD()}videoBuffered(){return av(this.mediaSource,this.videoBuffer)&&this.videoBuffer.buffered?this.videoBuffer.buffered:sD()}buffered(){const e=av(this.mediaSource,this.videoBuffer)?this.videoBuffer:null,t=av(this.mediaSource,this.audioBuffer)?this.audioBuffer:null;return t&&!e?this.audioBuffered():e&&!t?this.videoBuffered():function(e,t){let n=null,i=null,r=0;const s=[],o=[];if(!(e&&e.length&&t&&t.length))return sD();let a=e.length;for(;a--;)s.push({time:e.start(a),type:"start"}),s.push({time:e.end(a),type:"end"});for(a=t.length;a--;)s.push({time:t.start(a),type:"start"}),s.push({time:t.end(a),type:"end"});for(s.sort(function(e,t){return e.time-t.time}),a=0;a<s.length;a++)"start"===s[a].type?(r++,2===r&&(n=s[a].time)):"end"===s[a].type&&(r--,1===r&&(i=s[a].time)),null!==n&&null!==i&&(o.push([n,i]),n=null,i=null);return sD(o)}(this.audioBuffered(),this.videoBuffered())}setDuration(e,t=ad){aE({type:"mediaSource",sourceUpdater:this,action:aw(e),name:"duration",doneFn:t})}endOfStream(e=null,t=ad){"string"!=typeof e&&(e=void 0),aE({type:"mediaSource",sourceUpdater:this,action:aj(e),name:"endOfStream",doneFn:t})}removeAudio(e,t,n=ad){this.audioBuffered().length&&0!==this.audioBuffered().end(0)?aE({type:"audio",sourceUpdater:this,action:ab(e,t),doneFn:n,name:"remove"}):n()}removeVideo(e,t,n=ad){this.videoBuffered().length&&0!==this.videoBuffered().end(0)?aE({type:"video",sourceUpdater:this,action:ab(e,t),doneFn:n,name:"remove"}):n()}updating(){return!(!af("audio",this)&&!af("video",this))}audioTimestampOffset(e){return void 0!==e&&this.audioBuffer&&this.audioTimestampOffset_!==e&&(aE({type:"audio",sourceUpdater:this,action:a_(e),name:"timestampOffset"}),this.audioTimestampOffset_=e),this.audioTimestampOffset_}videoTimestampOffset(e){return void 0!==e&&this.videoBuffer&&this.videoTimestampOffset!==e&&(aE({type:"video",sourceUpdater:this,action:a_(e),name:"timestampOffset"}),this.videoTimestampOffset_=e),this.videoTimestampOffset_}audioQueueCallback(e){this.audioBuffer&&aE({type:"audio",sourceUpdater:this,action:aT(e),name:"callback"})}videoQueueCallback(e){this.videoBuffer&&aE({type:"video",sourceUpdater:this,action:aT(e),name:"callback"})}
vendor: 4,940 bytes, line 14
14dispose(){this.trigger("dispose"),ap.forEach(e=>{this.abort(e),this.canRemoveSourceBuffer()?this.removeSourceBuffer(e):this[`${e}QueueCallback`](()=>ag(e,this))}),this.videoAppendQueued_=!1,this.delayedAudioAppendQueue_.length=0,this.sourceopenListener_&&this.mediaSource.removeEventListener("sourceopen",this.sourceopenListener_),this.off()}}const aD=e=>decodeURIComponent(escape(String.fromCharCode.apply(null,e))),aA=new Uint8Array("\n\n".split("").map(e=>e.charCodeAt(0)));class aM extends Error{constructor(){super("Trying to parse received VTT cues, but there is no WebVTT. Make sure vtt.js is loaded.")}}class aO extends ac{constructor(e,t={}){super(e,t),this.mediaSource_=null,this.subtitlesTrack_=null,this.loaderType_="subtitle",this.featuresNativeTextTracks_=e.featuresNativeTextTracks,this.loadVttJs=e.loadVttJs,this.shouldSaveSegmentTimingInfo_=!1}createTransmuxer_(){return null}buffered_(){if(!this.subtitlesTrack_||!this.subtitlesTrack_.cues||!this.subtitlesTrack_.cues.length)return sD();const e=this.subtitlesTrack_.cues;return sD([[e[0].startTime,e[e.length-1].startTime]])}initSegmentForMap(e,t=!1){if(!e)return null;const n=ov(e);let i=this.initSegments_[n];if(t&&!i&&e.bytes){const t=aA.byteLength+e.bytes.byteLength,r=new Uint8Array(t);r.set(e.bytes),r.set(aA,e.bytes.byteLength),this.initSegments_[n]=i={resolvedUri:e.resolvedUri,byterange:e.byterange,bytes:r}}return i||e}couldBeginLoading_(){return this.playlist_&&this.subtitlesTrack_&&!this.paused()}init_(){return this.state="READY",this.resetEverything(),this.monitorBuffer_()}track(e){return void 0===e||(this.subtitlesTrack_=e,"INIT"===this.state&&this.couldBeginLoading_()&&this.init_()),this.subtitlesTrack_}remove(e,t){an(e,t,this.subtitlesTrack_)}fillBuffer_(){const e=this.chooseNextRequest_();if(e){if(null===this.syncController_.timestampOffsetForTimeline(e.timeline)){const e=()=>{this.state="READY",this.paused()||this.monitorBuffer_()};return this.syncController_.one("timestampoffset",e),void(this.state="WAITING_ON_TIMELINE")}this.loadSegment_(e)}}timestampOffsetForSegment_(){return null}chooseNextRequest_(){return this.skipEmptySegments_(super.chooseNextRequest_())}skipEmptySegments_(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}stopForError(e){this.error(e),this.state="READY",this.pause(),this.trigger("error")}segmentRequestFinished_(e,t,n){if(!this.subtitlesTrack_)return void(this.state="READY");if(this.saveTransferStats_(t.stats),!this.pendingSegment_)return this.state="READY",void(this.mediaRequestsAborted+=1);if(e)return e.code===oF&&this.handleTimeout_(),e.code===oq?this.mediaRequestsAborted+=1:this.mediaRequestsErrored+=1,void this.stopForError(e);const i=this.pendingSegment_;this.saveBandwidthRelatedStats_(i.duration,t.stats),t.key&&this.segmentKey(t.key,!0),this.state="APPENDING",this.trigger("appending");const s=i.segment;if(s.map&&(s.map.bytes=t.map.bytes),i.bytes=t.bytes,"function"!=typeof r().WebVTT&&"function"==typeof this.loadVttJs)return this.state="WAITING_ON_VTTJS",void this.loadVttJs().then(()=>this.segmentRequestFinished_(e,t,n),()=>this.stopForError({message:"Error loading vtt.js"}));s.requested=!0;try{this.parseVTTCues_(i)}catch(e){return void this.stopForError({message:e.message})}if(this.updateTimeMapping_(i,this.syncController_.timelines[i.timeline],this.playlist_),i.cues.length?i.timingInfo={start:i.cues[0].startTime,end:i.cues[i.cues.length-1].endTime}:i.timingInfo={start:i.startOfSegment,end:i.startOfSegment+i.duration},i.isSyncRequest)return this.trigger("syncinfoupdate"),this.pendingSegment_=null,void(this.state="READY");i.byteLength=i.bytes.byteLength,this.mediaSecondsLoaded+=s.duration,i.cues.forEach(e=>{this.subtitlesTrack_.addCue(this.featuresNativeTextTracks_?new(r()).VTTCue(e.startTime,e.endTime,e.text):e)}),function(e){const t=e.cues;if(!t)return;const n={};for(let i=t.length-1;i>=0;i--){const r=t[i],s=`${r.startTime}-${r.endTime}-${r.text}`;n[s]?e.removeCue(r):n[s]=r}}(this.subtitlesTrack_),this.handleAppendsDone_()}handleData_(){}updateTimingInfoEnd_(){}parseVTTCues_(e){let t,n=!1;if("function"!=typeof r().WebVTT)throw new aM;"function"==typeof r().TextDecoder?t=new(r()).TextDecoder("utf8"):(t=r().WebVTT.StringDecoder(),n=!0);const 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=t=>{e.timestampmap=t},i.onparsingerror=e=>{sT.log.warn("Error encountered when parsing cues: "+e.message)},e.segment.map){let t=e.segment.map.bytes;n&&(t=aD(t)),i.parse(t)}let s=e.bytes;n&&(s=aD(s)),i.parse(s),i.flush()}updateTimeMapping_(e,t,n){const i=e.segment;if(!t)return;if(!e.cues.length)return void(i.empty=!0);const r=e.timestampmap,s=r.MPEGTS/ts.ONE_SECOND_IN_TS-r.LOCAL+t.mapping;
vendor: 18,984 bytes, line 14
14if(e.cues.forEach(e=>{e.startTime+=s,e.endTime+=s}),!n.syncInfo){const t=e.cues[0].startTime,r=e.cues[e.cues.length-1].startTime;n.syncInfo={mediaSequence:n.mediaSequence+e.mediaIndex,time:Math.min(t,r-i.duration)}}}}const aP=function(e,t){const n=e.cues;for(let e=0;e<n.length;e++){const i=n[e];if(t>=i.adStartTime&&t<=i.adEndTime)return i}return null},aN=[{name:"VOD",run:(e,t,n,i,r)=>n!==1/0?{time:0,segmentIndex:0,partIndex:null}:null},{name:"ProgramDateTime",run:(e,t,n,i,r)=>{if(!Object.keys(e.timelineToDatetimeMappings).length)return null;let s=null,o=null;const a=sF(t);r=r||0;for(let n=0;n<a.length;n++){const i=a[t.endList||0===r?n:a.length-(n+1)],l=i.segment,u=e.timelineToDatetimeMappings[l.timeline];if(!u||!l.dateTimeObject)continue;let c=l.dateTimeObject.getTime()/1e3+u;if(l.parts&&"number"==typeof i.partIndex)for(let e=0;e<i.partIndex;e++)c+=l.parts[e].duration;const d=Math.abs(r-c);if(null!==o&&(0===d||o<d))break;o=d,s={time:c,segmentIndex:i.segmentIndex,partIndex:i.partIndex}}return s}},{name:"Segment",run:(e,t,n,i,r)=>{let s=null,o=null;r=r||0;const a=sF(t);for(let e=0;e<a.length;e++){const n=a[t.endList||0===r?e:a.length-(e+1)],l=n.segment,u=n.part&&n.part.start||l&&l.start;if(l.timeline===i&&void 0!==u){const e=Math.abs(r-u);if(null!==o&&o<e)break;(!s||null===o||o>=e)&&(o=e,s={time:u,segmentIndex:n.segmentIndex,partIndex:n.partIndex})}}return s}},{name:"Discontinuity",run:(e,t,n,i,r)=>{let s=null;if(r=r||0,t.discontinuityStarts&&t.discontinuityStarts.length){let n=null;for(let i=0;i<t.discontinuityStarts.length;i++){const o=t.discontinuityStarts[i],a=t.discontinuitySequence+i+1,l=e.discontinuities[a];if(l){const e=Math.abs(r-l.time);if(null!==n&&n<e)break;(!s||null===n||n>=e)&&(n=e,s={time:l.time,segmentIndex:o,partIndex:null})}}}return s}},{name:"Playlist",run:(e,t,n,i,r)=>t.syncInfo?{time:t.syncInfo.time,segmentIndex:t.syncInfo.mediaSequence-t.mediaSequence,partIndex:null}:null}];class aL extends sT.EventTarget{constructor(e={}){super(),this.timelines=[],this.discontinuities=[],this.timelineToDatetimeMappings={},this.logger_=sC("SyncController")}getSyncPoint(e,t,n,i){const r=this.runStrategies_(e,t,n,i);return r.length?this.selectSyncPoint_(r,{key:"time",value:i}):null}getExpiredTime(e,t){if(!e||!e.segments)return null;const n=this.runStrategies_(e,t,e.discontinuitySequence,0);if(!n.length)return null;const i=this.selectSyncPoint_(n,{key:"segmentIndex",value:0});return i.segmentIndex>0&&(i.time*=-1),Math.abs(i.time+s$({defaultDuration:e.targetDuration,durationList:e.segments,startIndex:i.segmentIndex,endIndex:0}))}runStrategies_(e,t,n,i){const r=[];for(let s=0;s<aN.length;s++){const o=aN[s],a=o.run(this,e,t,n,i);a&&(a.strategy=o.name,r.push({strategy:o.name,syncPoint:a}))}return r}selectSyncPoint_(e,t){let n=e[0].syncPoint,i=Math.abs(e[0].syncPoint[t.key]-t.value),r=e[0].strategy;for(let s=1;s<e.length;s++){const o=Math.abs(e[s].syncPoint[t.key]-t.value);o<i&&(i=o,n=e[s].syncPoint,r=e[s].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}saveExpiredSegmentInfo(e,t){const n=t.mediaSequence-e.mediaSequence;if(n>86400)sT.log.warn(`Not saving expired segment info. Media sequence gap ${n} is too large.`);else for(let i=n-1;i>=0;i--){const n=e.segments[i];if(n&&void 0!==n.start){t.syncInfo={mediaSequence:e.mediaSequence+i,time:n.start},this.logger_(`playlist refresh sync: [time:${t.syncInfo.time}, mediaSequence: ${t.syncInfo.mediaSequence}]`),this.trigger("syncinfoupdate");break}}}setDateTimeMappingForStart(e){if(this.timelineToDatetimeMappings={},e.segments&&e.segments.length&&e.segments[0].dateTimeObject){const t=e.segments[0],n=t.dateTimeObject.getTime()/1e3;this.timelineToDatetimeMappings[t.timeline]=-n}}saveSegmentTimingInfo({segmentInfo:e,shouldSaveTimelineMapping:t}){const n=this.calculateSegmentTimeMapping_(e,e.timingInfo,t),i=e.segment;n&&(this.saveDiscontinuitySyncInfo_(e),e.playlist.syncInfo||(e.playlist.syncInfo={mediaSequence:e.playlist.mediaSequence+e.mediaIndex,time:i.start}));const r=i.dateTimeObject;i.discontinuity&&t&&r&&(this.timelineToDatetimeMappings[i.timeline]=-r.getTime()/1e3)}timestampOffsetForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].time}mappingForTimeline(e){return void 0===this.timelines[e]?null:this.timelines[e].mapping}calculateSegmentTimeMapping_(e,t,n){const i=e.segment,r=e.part;let s,o,a=this.timelines[e.timeline];if("number"==typeof e.timestampOffset)a={time:e.startOfSegment,mapping:e.startOfSegment-t.start},n&&(this.timelines[e.timeline]=a,this.trigger("timestampoffset"),this.logger_(`time mapping for timeline ${e.timeline}: [time: ${a.time}] [mapping: ${a.mapping}]`)),s=e.startOfSegment,o=t.end+a.mapping;else{if(!a)return!1;s=t.start+a.mapping,o=t.end+a.mapping}return r&&(r.start=s,r.end=o),(!i.start||s<i.start)&&(i.start=s),i.end=o,!0}saveDiscontinuitySyncInfo_(e){const 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(let i=0;i<t.discontinuityStarts.length;i++){const r=t.discontinuityStarts[i],s=t.discontinuitySequence+i+1,o=r-e.mediaIndex,a=Math.abs(o);if(!this.discontinuities[s]||this.discontinuities[s].accuracy>a){let i;i=o<0?n.start-s$({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex,endIndex:r}):n.end+s$({defaultDuration:t.targetDuration,durationList:t.segments,startIndex:e.mediaIndex+1,endIndex:r}),this.discontinuities[s]={time:i,accuracy:a}}}}dispose(){this.trigger("dispose"),this.off()}}class aR extends sT.EventTarget{constructor(){super(),this.pendingTimelineChanges_={},this.lastTimelineChanges_={}}clearPendingTimelineChange(e){this.pendingTimelineChanges_[e]=null,this.trigger("pendingtimelinechange")}pendingTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.pendingTimelineChanges_[e]={type:e,from:t,to:n},this.trigger("pendingtimelinechange")),this.pendingTimelineChanges_[e]}lastTimelineChange({type:e,from:t,to:n}){return"number"==typeof t&&"number"==typeof n&&(this.lastTimelineChanges_[e]={type:e,from:t,to:n},delete this.pendingTimelineChanges_[e],this.trigger("timelinechange")),this.lastTimelineChanges_[e]}dispose(){this.trigger("dispose"),this.pendingTimelineChanges_={},this.lastTimelineChanges_={},this.off()}}const aU=oM(oO(function(){var e=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),s=t.length,o=0;o<s;++o)t[o].apply(this,r)},t.dispose=function(){this.listeners={}},t.pipe=function(e){this.on("data",function(t){e.push(t)})},e}();let t=null;class i{constructor(e){let n,i,r;t||(t=function(){const e=[[[],[],[],[],[]],[[],[],[],[],[]]],t=e[0],n=e[1],i=t[4],r=n[4];let s,o,a;const l=[],u=[];let c,d,h,p,f,m;for(s=0;s<256;s++)u[(l[s]=s<<1^283*(s>>7))^s]=s;for(o=a=0;!i[o];o^=c||1,a=u[a]||1)for(p=a^a<<1^a<<2^a<<3^a<<4,p=p>>8^255&p^99,i[o]=p,r[p]=o,h=l[d=l[c=l[o]]],m=16843009*h^65537*d^257*c^16843008*o,f=257*l[p]^16843008*p,s=0;s<4;s++)t[s][o]=f=f<<24^f>>>8,n[s][p]=m=m<<24^m>>>8;for(s=0;s<5;s++)t[s]=t[s].slice(0),n[s]=n[s].slice(0);return e}()),this._tables=[[t[0][0].slice(),t[0][1].slice(),t[0][2].slice(),t[0][3].slice(),t[0][4].slice()],[t[1][0].slice(),t[1][1].slice(),t[1][2].slice(),t[1][3].slice(),t[1][4].slice()]];const s=this._tables[0][4],o=this._tables[1],a=e.length;let l=1;if(4!==a&&6!==a&&8!==a)throw new Error("Invalid aes key size");const u=e.slice(0),c=[];for(this._key=[u,c],n=a;n<4*a+28;n++)r=u[n-1],(n%a==0||8===a&&n%a==4)&&(r=s[r>>>24]<<24^s[r>>16&255]<<16^s[r>>8&255]<<8^s[255&r],n%a==0&&(r=r<<8^r>>>24^l<<24,l=l<<1^283*(l>>7))),u[n]=u[n-a]^r;for(i=0;n;i++,n--)r=u[3&i?n:n-4],c[i]=n<=4||i<4?r:o[0][s[r>>>24]]^o[1][s[r>>16&255]]^o[2][s[r>>8&255]]^o[3][s[255&r]]}decrypt(e,t,n,i,r,s){const o=this._key[1];let a,l,u,c=e^o[0],d=i^o[1],h=n^o[2],p=t^o[3];const f=o.length/4-2;let m,g=4;const v=this._tables[1],y=v[0],b=v[1],_=v[2],T=v[3],j=v[4];for(m=0;m<f;m++)a=y[c>>>24]^b[d>>16&255]^_[h>>8&255]^T[255&p]^o[g],l=y[d>>>24]^b[h>>16&255]^_[p>>8&255]^T[255&c]^o[g+1],u=y[h>>>24]^b[p>>16&255]^_[c>>8&255]^T[255&d]^o[g+2],p=y[p>>>24]^b[c>>16&255]^_[d>>8&255]^T[255&h]^o[g+3],g+=4,c=a,d=l,h=u;for(m=0;m<4;m++)r[(3&-m)+s]=j[c>>>24]<<24^j[d>>16&255]<<16^j[h>>8&255]<<8^j[255&p]^o[g++],a=c,c=d,d=h,h=p,p=a}}class r extends e{constructor(){super(e),this.jobs=[],this.delay=1,this.timeout_=null}processJob_(){this.jobs.shift()(),this.jobs.length?this.timeout_=setTimeout(this.processJob_.bind(this),this.delay):this.timeout_=null}push(e){this.jobs.push(e),this.timeout_||(this.timeout_=setTimeout(this.processJob_.bind(this),this.delay))}}const s=function(e){return e<<24|(65280&e)<<8|(16711680&e)>>8|e>>>24};class o{constructor(e,t,n,i){const a=o.STEP,l=new Int32Array(e.buffer),u=new Uint8Array(e.byteLength);let c=0;for(this.asyncStream_=new r,this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+a),t,n,u)),c=a;c<l.length;c+=a)n=new Uint32Array([s(l[c-4]),s(l[c-3]),s(l[c-2]),s(l[c-1])]),this.asyncStream_.push(this.decryptChunk_(l.subarray(c,c+a),t,n,u));this.asyncStream_.push(function(){var e;i(null,(e=u).subarray(0,e.byteLength-e[e.byteLength-1]))})}static get STEP(){return 32e3}decryptChunk_(e,t,n,r){return function(){const o=function(e,t,n){const r=new Int32Array(e.buffer,e.byteOffset,e.byteLength>>2),o=new i(Array.prototype.slice.call(t)),a=new Uint8Array(e.byteLength),l=new Int32Array(a.buffer);let u,c,d,h,p,f,m,g,v;for(u=n[0],c=n[1],d=n[2],h=n[3],v=0;v<r.length;v+=4)p=s(r[v]),f=s(r[v+1]),m=s(r[v+2]),g=s(r[v+3]),o.decrypt(p,f,m,g,l,v),l[v]=s(l[v]^u),l[v+1]=s(l[v+1]^c),l[v+2]=s(l[v+2]^d),l[v+3]=s(l[v+3]^h),u=p,c=f,d=m,h=g;return a}(e,t,n);r.set(o,e.byteOffset)}}}var a="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{},l=("undefined"!=typeof window?window:void 0!==a?a:"undefined"!=typeof self?self:{}).BigInt||Number;l("0x1"),l("0x100"),l("0x10000"),l("0x1000000"),l("0x100000000"),l("0x10000000000"),l("0x1000000000000"),l("0x100000000000000"),l("0x10000000000000000"),function(){var e=new Uint16Array([65484]),t=new Uint8Array(e.buffer,e.byteOffset,e.byteLength);255===t[0]||t[0]}();self.onmessage=function(e){const 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 o(n,i,r,function(e,n){self.postMessage(function(e){const t={};return Object.keys(e).forEach(n=>{const i=e[n];var r;r=i,("function"===ArrayBuffer.isView?ArrayBuffer.isView(r):r&&r.buffer instanceof ArrayBuffer)?t[n]={bytes:i.buffer,byteOffset:i.byteOffset,byteLength:i.byteLength}:t[n]=i}),t}({source:t.source,decrypted:n}),[n.buffer])})}}));var aB=oA(aU);const az=e=>{let t=e.default?"main":"alternative";return e.characteristics&&e.characteristics.indexOf("public.accessibility.describes-video")>=0&&(t="main-desc"),t},aF=(e,t)=>{e.abort(),e.pause(),t&&t.activePlaylistLoader&&(t.activePlaylistLoader.pause(),t.activePlaylistLoader=null)},aq=(e,t)=>{t.activePlaylistLoader=e,e.load()},aV={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:n},excludePlaylist:i}=t,r=n.activeTrack(),s=n.activeGroup(),o=(s.filter(e=>e.default)[0]||s[0]).id,a=n.tracks[o];if(r!==a){sT.log.warn("Problem encountered loading the alternate audio track.Switching back to default.");for(const e in n.tracks)n.tracks[e].enabled=n.tracks[e]===a;n.onTrackChanged()}else i({error:{message:"Problem encountered loading the default audio track."}})},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:n}}=t;sT.log.warn("Problem encountered loading the subtitle track.Disabling subtitle track.");const i=n.activeTrack();i&&(i.mode="disabled"),n.onTrackChanged()}},aH={AUDIO:(e,t,n)=>{if(!t)return;const{tech:i,requestOptions:r,segmentLoaders:{[e]:s}}=n;t.on("loadedmetadata",()=>{const e=t.media();s.playlist(e,r),(!i.paused()||e.endList&&"none"!==i.preload())&&s.load()}),t.on("loadedplaylist",()=>{s.playlist(t.media(),r),i.paused()||s.load()}),t.on("error",aV[e](e,n))},SUBTITLES:(e,t,n)=>{const{tech:i,requestOptions:r,segmentLoaders:{[e]:s},mediaTypes:{[e]:o}}=n;t.on("loadedmetadata",()=>{const e=t.media();s.playlist(e,r),s.track(o.activeTrack()),(!i.paused()||e.endList&&"none"!==i.preload())&&s.load()}),t.on("loadedplaylist",()=>{s.playlist(t.media(),r),i.paused()||s.load()}),t.on("error",aV[e](e,n))}},aW={AUDIO:(e,t)=>{const{vhs:n,sourceType:i,segmentLoaders:{[e]:r},requestOptions:s,main:{mediaGroups:o},mediaTypes:{[e]:{groups:a,tracks:l,logger_:u}},mainPlaylistLoader:c}=t,d=s2(c.main);o[e]&&0!==Object.keys(o[e]).length||(o[e]={main:{default:{default:!0}}},d&&(o[e].main.default.playlists=c.main.playlists));for(const r in o[e]){a[r]||(a[r]=[]);for(const h in o[e][r]){let p,f=o[e][r][h];if(d?(u(`AUDIO group '${r}' label '${h}' is a main playlist`),f.isMainPlaylist=!0,p=null):p="vhs-json"===i&&f.playlists?new ol(f.playlists[0],n,s):f.resolvedUri?new ol(f.resolvedUri,n,s):f.playlists&&"dash"===i?new oC(f.playlists[0],n,s,c):null,f=sI({id:h,playlistLoader:p},f),aH[e](e,f.playlistLoader,t),a[r].push(f),void 0===l[h]){const e=new sT.AudioTrack({id:h,kind:az(f),enabled:!1,language:f.language,default:f.default,label:h});l[h]=e}}}r.on("error",aV[e](e,t))},SUBTITLES:(e,t)=>{const{tech:n,vhs:i,sourceType:r,segmentLoaders:{[e]:s},requestOptions:o,main:{mediaGroups:a},mediaTypes:{[e]:{groups:l,tracks:u}},mainPlaylistLoader:c}=t;for(const s in a[e]){l[s]||(l[s]=[]);for(const d in a[e][s]){if(!i.options_.useForcedSubtitles&&a[e][s][d].forced)continue;let h,p=a[e][s][d];if("hls"===r)h=new ol(p.resolvedUri,i,o);else if("dash"===r){if(!p.playlists.filter(e=>e.excludeUntil!==1/0).length)return;h=new oC(p.playlists[0],i,o,c)}else"vhs-json"===r&&(h=new ol(p.playlists?p.playlists[0]:p.resolvedUri,i,o));if(p=sI({id:d,playlistLoader:h},p),aH[e](e,p.playlistLoader,t),l[s].push(p),void 0===u[d]){const e=n.addRemoteTextTrack({id:d,kind:"subtitles",default:p.default&&p.autoselect,language:p.language,label:d},!1).track;u[d]=e}}}s.on("error",aV[e](e,t))},"CLOSED-CAPTIONS":(e,t)=>{const{tech:n,main:{mediaGroups:i},mediaTypes:{[e]:{groups:r,tracks:s}}}=t;for(const t in i[e]){r[t]||(r[t]=[]);for(const o in i[e][t]){const a=i[e][t][o];if(!/^(?:CC|SERVICE)/.test(a.instreamId))continue;const l=n.options_.vhs&&n.options_.vhs.captionServices||{};let u={label:o,language:a.language,instreamId:a.instreamId,default:a.default&&a.autoselect};if(l[u.instreamId]&&(u=sI(u,l[u.instreamId])),void 0===u.default&&delete u.default,r[t].push(sI({id:o},a)),void 0===s[o]){const e=n.addRemoteTextTrack({id:u.instreamId,kind:"captions",default:u.default,language:u.language,label:u.label},!1).track;s[o]=e}}}}},aG=(e,t)=>{for(let n=0;n<e.length;n++){if(s0(t,e[n]))return!0;if(e[n].playlists&&aG(e[n].playlists,t))return!0}return!1},a$={AUDIO:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if(n[e].enabled)return n[e];return null},SUBTITLES:(e,t)=>()=>{const{mediaTypes:{[e]:{tracks:n}}}=t;for(const e in n)if("showing"===n[e].mode||"hidden"===n[e].mode)return n[e];return null}};class aQ{constructor(){this.priority_=[]}set version(e){1===e&&(this.version_=e)}set ttl(e){this.ttl_=e||300}set reloadUri(e){e&&(this.reloadUri_=sk(this.reloadUri_,e))}set priority(e){e&&e.length&&(this.priority_=e)}get version(){return this.version_}get ttl(){return this.ttl_}get reloadUri(){return this.reloadUri_}get priority(){return this.priority_}}class aZ extends sT.EventTarget{constructor(e,t){super(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.availablePathways_=new Set,this.excludedPathways_=new Set,this.steeringManifest=new aQ,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.logger_=sC("Content Steering"),this.xhr_=e,this.getBandwidth_=t}assignTagProperties(e,t){this.manifestType_=t.serverUri?"HLS":"DASH";const n=t.serverUri||t.serverURL;if(!n)return this.logger_(`steering manifest URL is ${n}, cannot request steering manifest.`),void this.trigger("error");n.startsWith("data:")?this.decodeDataUriManifest_(n.substring(n.indexOf(",")+1)):(this.steeringManifest.reloadUri=this.queryBeforeStart?n:sk(e,n),this.defaultPathway=t.pathwayId||t.defaultServiceLocation,this.queryBeforeStart=t.queryBeforeStart||!1,this.proxyServerUrl_=t.proxyServerURL||null,this.defaultPathway&&!this.queryBeforeStart&&this.trigger("content-steering"),this.queryBeforeStart&&this.requestSteeringManifest(this.steeringManifest.reloadUri))}requestSteeringManifest(e){const t=this.steeringManifest.reloadUri;if(!e&&!t)return;const n=e||this.getRequestURI(t);if(!n)return this.logger_("No valid content steering manifest URIs. Stopping content steering."),this.trigger("error"),void this.dispose();this.request_=this.xhr_({uri:n},(e,t)=>{if(e){if(410===t.status)return this.logger_(`manifest request 410 ${e}.`),this.logger_(`There will be no more content steering requests to ${n} this session.`),void this.excludedSteeringManifestURLs.add(n);if(429===t.status){const n=t.responseHeaders["retry-after"];return this.logger_(`manifest request 429 ${e}.`),this.logger_(`content steering will retry in ${n} seconds.`),void this.startTTLTimeout_(parseInt(n,10))}return this.logger_(`manifest failed to load ${e}.`),void this.startTTLTimeout_()}const i=JSON.parse(this.request_.responseText);this.startTTLTimeout_(),this.assignSteeringProperties_(i)})}setProxyServerUrl_(e){const t=new(r()).URL(e),n=new(r()).URL(this.proxyServerUrl_);return n.searchParams.set("url",encodeURI(t.toString())),this.setSteeringParams_(n.toString())}decodeDataUriManifest_(e){const t=JSON.parse(r().atob(e));this.assignSteeringProperties_(t)}setSteeringParams_(e){const t=new(r()).URL(e),n=this.getPathway(),i=this.getBandwidth_();if(n){const e=`_${this.manifestType_}_pathway`;t.searchParams.set(e,n)}if(i){const e=`_${this.manifestType_}_throughput`;t.searchParams.set(e,i)}return t.toString()}assignSteeringProperties_(e){if(this.steeringManifest.version=e.VERSION,!this.steeringManifest.version)return this.logger_(`manifest version is ${e.VERSION}, which is not supported.`),void this.trigger("error");this.steeringManifest.ttl=e.TTL,this.steeringManifest.reloadUri=e["RELOAD-URI"],this.steeringManifest.priority=e["PATHWAY-PRIORITY"]||e["SERVICE-LOCATION-PRIORITY"],this.availablePathways_.size||(this.logger_("There are no available pathways for c
14ontent steering. Ending content steering."),this.trigger("error"),this.dispose());const t=(e=>{for(const t of e)if(this.availablePathways_.has(t))return t;return[...this.availablePathways_][0]})(this.steeringManifest.priority);this.currentPathway!==t&&(this.currentPathway=t,this.trigger("content-steering"))}getPathway(){return this.currentPathway||this.defaultPathway}getRequestURI(e){if(!e)return null;const t=e=>this.excludedSteeringManifestURLs.has(e);if(this.proxyServerUrl_){const n=this.setProxyServerUrl_(e);if(!t(n))return n}const n=this.setSteeringParams_(e);return t(n)?null:n}startTTLTimeout_(e=this.steeringManifest.ttl){const t=1e3*e;this.ttlTimeout_=r().setTimeout(()=>{this.requestSteeringManifest()},t)}clearTTLTimeout_(){r().clearTimeout(this.ttlTimeout_),this.ttlTimeout_=null}abort(){this.request_&&this.request_.abort(),this.request_=null}dispose(){this.off("content-steering"),this.off("error"),this.abort(),this.clearTTLTimeout_(),this.currentPathway=null,this.defaultPathway=null,this.queryBeforeStart=null,this.proxyServerUrl_=null,this.manifestType_=null,this.ttlTimeout_=null,this.request_=null,this.excludedSteeringManifestURLs=new Set,this.availablePathways_=new Set,this.excludedPathways_=new Set,this.steeringManifest=new aQ}addAvailablePathway(e){e&&this.availablePathways_.add(e)}clearAvailablePathways(){this.availablePathways_.clear()}excludePathway(e){return this.availablePathways_.delete(e)}}let aY;const aX=["mediaRequests","mediaRequestsAborted","mediaRequestsTimedout","mediaRequestsErrored","mediaTransferDuration","mediaBytesTransferred","mediaAppends"],aK=function(e){return this.audioSegmentLoader_[e]+this.mainSegmentLoader_[e]};class aJ extends sT.EventTarget{constructor(e){super();const{src:t,withCredentials:n,tech:i,bandwidth:s,externVhs:o,useCueTags:a,playlistExclusionDuration:l,enableLowInitialPlaylist:u,sourceType:c,cacheEncryptionKeys:d,bufferBasedABR:h,leastPixelDiffSelector:p,captionServices:f}=e;if(!t)throw new Error("A non-empty playlist URL or JSON manifest string is required");let{maxPlaylistRetries:m}=e;null==m&&(m=1/0),aY=o,this.bufferBasedABR=Boolean(h),this.leastPixelDiffSelector=Boolean(p),this.withCredentials=n,this.tech_=i,this.vhs_=i.vhs,this.sourceType_=c,this.useCueTags_=a,this.playlistExclusionDuration=l,this.maxPlaylistRetries=m,this.enableLowInitialPlaylist=u,this.useCueTags_&&(this.cueTagsTrack_=this.tech_.addTextTrack("metadata","ad-cues"),this.cueTagsTrack_.inBandMetadataTrackDispatchType=""),this.requestOptions_={withCredentials:n,maxPlaylistRetries:m,timeout:null},this.on("error",this.pauseLoading),this.mediaTypes_=(()=>{const e={};return["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{e[t]={groups:{},tracks:{},activePlaylistLoader:null,activeGroup:ad,activeTrack:ad,getActiveGroup:ad,onGroupChanged:ad,onTrackChanged:ad,lastTrack_:null,logger_:sC(`MediaGroups[${t}]`)}}),e})(),this.mediaSource=new(r()).MediaSource,this.handleDurationChange_=this.handleDurationChange_.bind(this),this.handleSourceOpen_=this.handleSourceOpen_.bind(this),this.handleSourceEnded_=this.handleSourceEnded_.bind(this),this.mediaSource.addEventListener("durationchange",this.handleDurationChange_),this.mediaSource.addEventListener("sourceopen",this.handleSourceOpen_),this.mediaSource.addEventListener("sourceended",this.handleSourceEnded_),this.seekable_=sD(),this.hasPlayed_=!1,this.syncController_=new aL(e),this.segmentMetadataTrack_=i.addRemoteTextTrack({kind:"metadata",label:"segment-metadata"},!1).track,this.decrypter_=new aB,this.sourceUpdater_=new aI(this.mediaSource),this.inbandTextTracks_={},this.timelineChangeController_=new aR;const g={vhs:this.vhs_,parse708captions:e.parse708captions,useDtsForTimestampOffset:e.useDtsForTimestampOffset,calculateTimestampOffsetForEachSegment:e.calculateTimestampOffsetForEachSegment,captionServices:f,mediaSource:this.mediaSource,currentTime:this.tech_.currentTime.bind(this.tech_),seekable:()=>this.seekable(),seeking:()=>this.tech_.seeking(),duration:()=>this.duration(),hasPlayed:()=>this.hasPlayed_,goalBufferLength:()=>this.goalBufferLength(),bandwidth:s,syncController:this.syncController_,decrypter:this.decrypter_,sourceType:this.sourceType_,inbandTextTracks:this.inbandTextTracks_,cacheEncryptionKeys:d,sourceUpdater:this.sourceUpdater_,timelineChangeController:this.timelineChangeController_,exactManifestTimings:e.exactManifestTimings,addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)};this.mainPlaylistLoader_="dash"===this.sourceType_?new oC(t,this.vhs_,sI(this.requestOptions_,{addMetadataToTextTrack:this.addMetadataToTextTrack.bind(this)})):new ol(t,this.vhs_,sI(this.requestOptions_,{addDateRangesToTextTrack:this.addDateRangesToTextTrack_.bind(this)})),this.setupMainPlaylistLoaderListeners_(),this.mainSegmentLoader_=new ac(sI(g,{segmentMetadataTrack:this.segmentMetadataTrack_,loaderType:"main"}),e),this.audioSegmentLoader_=new ac(sI(g,{loaderType:"audio"}),e),this.subtitleSegmentLoader_=new aO(sI(g,{loaderType:"vtt",featuresNativeTextTracks:this.tech_.featuresNativeTextTracks,loadVttJs:()=>new Promise((e,t)=>
vendor: 9,739 bytes, line 14
14{function n(){i.off("vttjserror",r),e()}function r(){i.off("vttjsloaded",n),t()}i.one("vttjsloaded",n),i.one("vttjserror",r),i.addWebVttScript_()})}),e),this.contentSteeringController_=new aZ(this.vhs_.xhr,()=>this.mainSegmentLoader_.bandwidth),this.setupSegmentLoaderListeners_(),this.bufferBasedABR&&(this.mainPlaylistLoader_.one("loadedplaylist",()=>this.startABRTimer_()),this.tech_.on("pause",()=>this.stopABRTimer_()),this.tech_.on("play",()=>this.startABRTimer_())),aX.forEach(e=>{this[e+"_"]=aK.bind(this,e)}),this.logger_=sC("pc"),this.triggeredFmp4Usage=!1,"none"===this.tech_.preload()?(this.loadOnPlay_=()=>{this.loadOnPlay_=null,this.mainPlaylistLoader_.load()},this.tech_.one("play",this.loadOnPlay_)):this.mainPlaylistLoader_.load(),this.timeToLoadedData__=-1,this.mainAppendsToLoadedData__=-1,this.audioAppendsToLoadedData__=-1;const v="none"===this.tech_.preload()?"play":"loadstart";this.tech_.one(v,()=>{const e=Date.now();this.tech_.one("loadeddata",()=>{this.timeToLoadedData__=Date.now()-e,this.mainAppendsToLoadedData__=this.mainSegmentLoader_.mediaAppends,this.audioAppendsToLoadedData__=this.audioSegmentLoader_.mediaAppends})})}mainAppendsToLoadedData_(){return this.mainAppendsToLoadedData__}audioAppendsToLoadedData_(){return this.audioAppendsToLoadedData__}appendsToLoadedData_(){const e=this.mainAppendsToLoadedData_(),t=this.audioAppendsToLoadedData_();return-1===e||-1===t?-1:e+t}timeToLoadedData_(){return this.timeToLoadedData__}checkABR_(e="abr"){const t=this.selectPlaylist();t&&this.shouldSwitchToMedia_(t)&&this.switchMedia_(t,e)}switchMedia_(e,t,n){const i=this.media(),r=i&&(i.id||i.uri),s=e.id||e.uri;r&&r!==s&&(this.logger_(`switch media ${r} -> ${s} from ${t}`),this.tech_.trigger({type:"usage",name:`vhs-rendition-change-${t}`})),this.mainPlaylistLoader_.media(e,n)}switchMediaForDASHContentSteering_(){["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(e=>{const t=this.mediaTypes_[e],n=t?t.activeGroup():null,i=this.contentSteeringController_.getPathway();if(n&&i){const t=(n.length?n[0].playlists:n.playlists).filter(e=>e.attributes.serviceLocation===i);t.length&&this.mediaTypes_[e].activePlaylistLoader.media(t[0])}})}startABRTimer_(){this.stopABRTimer_(),this.abrTimer_=r().setInterval(()=>this.checkABR_(),250)}stopABRTimer_(){this.tech_.scrubbing&&this.tech_.scrubbing()||(r().clearInterval(this.abrTimer_),this.abrTimer_=null)}getAudioTrackPlaylists_(){const e=this.main(),t=e&&e.playlists||[];if(!e||!e.mediaGroups||!e.mediaGroups.AUDIO)return t;const n=e.mediaGroups.AUDIO,i=Object.keys(n);let r;if(Object.keys(this.mediaTypes_.AUDIO.groups).length)r=this.mediaTypes_.AUDIO.activeTrack();else{const e=n.main||i.length&&n[i[0]];for(const t in e)if(e[t].default){r={label:t};break}}if(!r)return t;const s=[];for(const t in n)if(n[t][r.label]){const i=n[t][r.label];if(i.playlists&&i.playlists.length)s.push.apply(s,i.playlists);else if(i.uri)s.push(i);else if(e.playlists.length)for(let n=0;n<e.playlists.length;n++){const i=e.playlists[n];i.attributes&&i.attributes.AUDIO&&i.attributes.AUDIO===t&&s.push(i)}}return s.length?s:t}setupMainPlaylistLoaderListeners_(){this.mainPlaylistLoader_.on("loadedmetadata",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;sJ(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,e.endList&&"none"!==this.tech_.preload()&&(this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load()),(e=>{["AUDIO","SUBTITLES","CLOSED-CAPTIONS"].forEach(t=>{aW[t](t,e)});const{mediaTypes:t,mainPlaylistLoader:n,tech:i,vhs:r,segmentLoaders:{AUDIO:s,main:o}}=e;["AUDIO","SUBTITLES"].forEach(n=>{t[n].activeGroup=((e,t)=>n=>{const{mainPlaylistLoader:i,mediaTypes:{[e]:{groups:r}}}=t,s=i.media();if(!s)return null;let o=null;s.attributes[e]&&(o=r[s.attributes[e]]);const a=Object.keys(r);if(!o)if("AUDIO"===e&&a.length>1&&s2(t.main))for(let e=0;e<a.length;e++){const t=r[a[e]];if(aG(t,s)){o=t;break}}else r.main?o=r.main:1===a.length&&(o=r[a[0]]);return void 0===n?o:null!==n&&o&&o.filter(e=>e.id===n.id)[0]||null})(n,e),t[n].activeTrack=a$[n](n,e),t[n].onGroupChanged=((e,t)=>()=>{const{segmentLoaders:{[e]:n,main:i},mediaTypes:{[e]:r}}=t,s=r.activeTrack(),o=r.getActiveGroup(),a=r.activePlaylistLoader,l=r.lastGroup_;o&&l&&o.id===l.id||(r.lastGroup_=o,r.lastTrack_=s,aF(n,r),o&&!o.isMainPlaylist&&(o.playlistLoader?(n.resyncLoader(),aq(o.playlistLoader,r)):a&&i.resetEverything()))})(n,e),t[n].onGroupChanging=((e,t)=>()=>{const{segmentLoaders:{[e]:n},mediaTypes:{[e]:i}}=t;i.lastGroup_=null,n.abort(),n.pause()})(n,e),t[n].onTrackChanged=((e,t)=>()=>{const{mainPlaylistLoader:n,segmentLoaders:{[e]:i,main:r},mediaTypes:{[e]:s}}=t,o=s.activeTrack(),a=s.getActiveGroup(),l=s.activePlaylistLoader,u=s.lastTrack_;if((!u||!o||u.id!==o.id)&&(s.lastGroup_=a,s.lastTrack_=o,aF(i,s),a)){if(a.isMainPlaylist){if(!o||!u||o.id===u.id)return;const e=t.vhs.playlistController_,i=e.selectPlaylist();if(e.media()===i)return;return s.logger_(`track change. Switching main audio from ${u.id} to ${o.id}`),n.pause(),r.resetEverything(),void e.fastQualityChange_(i)}if("AUDIO"===e){if(!a.playlistLoader)return r.setAudio(!0),void r.resetEverything();i.setAudio(!0),r.setAudio(!1)}l!==a.playlistLoader?(i.track&&i.track(o),i.resetEverything(),aq(a.playlistLoader,s)):aq(a.playlistLoader,s)}})(n,e),t[n].getActiveGroup=((e,{mediaTypes:t})=>()=>{const n=t[e].activeTrack();return n?t[e].activeGroup(n):null})(n,e)});const a=t.AUDIO.activeGroup();if(a){const e=(a.filter(e=>e.default)[0]||a[0]).id;t.AUDIO.tracks[e].enabled=!0,t.AUDIO.onGroupChanged(),t.AUDIO.onTrackChanged(),t.AUDIO.getActiveGroup().playlistLoader?(o.setAudio(!1),s.setAudio(!0)):o.setAudio(!0)}n.on("mediachange",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanged())}),n.on("mediachanging",()=>{["AUDIO","SUBTITLES"].forEach(e=>t[e].onGroupChanging())});const l=()=>{t.AUDIO.onTrackChanged(),i.trigger({type:"usage",name:"vhs-audio-change"})};i.audioTracks().addEventListener("change",l),i.remoteTextTracks().addEventListener("change",t.SUBTITLES.onTrackChanged),r.on("dispose",()=>{i.audioTracks().removeEventListener("change",l),i.remoteTextTracks().removeEventListener("change",t.SUBTITLES.onTrackChanged)}),i.clearTracks("audio");for(const e in t.AUDIO.tracks)i.audioTracks().addTrack(t.AUDIO.tracks[e])})({sourceType:this.sourceType_,segmentLoaders:{AUDIO:this.audioSegmentLoader_,SUBTITLES:this.subtitleSegmentLoader_,main:this.mainSegmentLoader_},tech:this.tech_,requestOptions:this.requestOptions_,mainPlaylistLoader:this.mainPlaylistLoader_,vhs:this.vhs_,main:this.main(),mediaTypes:this.mediaTypes_,excludePlaylist:this.excludePlaylist.bind(this)}),this.triggerPresenceUsage_(this.main(),e),this.setupFirstPlay(),!this.mediaTypes_.AUDIO.activePlaylistLoader||this.mediaTypes_.AUDIO.activePlaylistLoader.media()?this.trigger("selectedinitialmedia"):this.mediaTypes_.AUDIO.activePlaylistLoader.one("loadedmetadata",()=>{this.trigger("selectedinitialmedia")})}),this.mainPlaylistLoader_.on("loadedplaylist",()=>{this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_);let e=this.mainPlaylistLoader_.media();if(!e){let t;if(this.initContentSteeringController_(),this.excludeUnsupportedVariants_(),this.enableLowInitialPlaylist&&(t=this.selectInitialPlaylist()),t||(t=this.selectPlaylist()),!t||!this.shouldSwitchToMedia_(t))return;if(this.initialMedia_=t,this.switchMedia_(this.initialMedia_,"initial"),"vhs-json"!==this.sourceType_||!this.initialMedia_.segments)return;e=this.initialMedia_}this.handleUpdatedMediaPlaylist(e)}),this.mainPlaylistLoader_.on("error",()=>{const e=this.mainPlaylistLoader_.error;this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainPlaylistLoader_.on("mediachanging",()=>{this.mainSegmentLoader_.abort(),this.mainSegmentLoader_.pause()}),this.mainPlaylistLoader_.on("mediachange",()=>{const e=this.mainPlaylistLoader_.media(),t=1.5*e.targetDuration*1e3;sJ(this.mainPlaylistLoader_.main,this.mainPlaylistLoader_.media())?this.requestOptions_.timeout=0:this.requestOptions_.timeout=t,this.mainPlaylistLoader_.load(),this.mainSegmentLoader_.playlist(e,this.requestOptions_),this.mainSegmentLoader_.load(),this.tech_.trigger({type:"mediachange",bubbles:!0})}),this.mainPlaylistLoader_.on("playlistunchanged",()=>{const e=this.mainPlaylistLoader_.media();"playlist-unchanged"!==e.lastExcludeReason_&&this.stuckAtPlaylistEnd_(e)&&(this.excludePlaylist({error:{message:"Playlist no longer updating.",reason:"playlist-unchanged"}}),this.tech_.trigger("playliststuck"))}),this.mainPlaylistLoader_.on("renditiondisabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-disabled"})}),this.mainPlaylistLoader_.on("renditionenabled",()=>{this.tech_.trigger({type:"usage",name:"vhs-rendition-enabled"})})}handleUpdatedMediaPlaylist(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())}triggerPresenceUsage_(e,t){const n=e.mediaGroups||{};let i=!0;const r=Object.keys(n.AUDIO);for(const e in n.AUDIO)for(const t in n.AUDIO[e])n.AUDIO[e][t].uri||(i=!1);i&&this.tech_.trigger({type:"usage",name:"vhs-demuxed"}),Object.keys(n.SUBTITLES).length&&this.tech_.trigger({type:"usage",name:"vhs-webvtt"}),aY.Playlist.isAes(t)&&this.tech_.trigger({type:"usage",name:"vhs-aes"}),r.length&&Object.keys(n.AUDIO[r[0]]).length>1&&this.tech_.trigger({type:"usage",name:"vhs-alternate-audio"}),this.useCueTags_&&this.tech_.trigger({type:"usage",name:"vhs-playlist-cue-tags"})}shouldSwitchToMedia_(e){const t=this.mainPlaylistLoader_.media()||this.mainPlaylistLoader_.pen
vendor: 2,531 bytes, line 14
14dingMedia_,n=this.tech_.currentTime(),i=this.bufferLowWaterLine(),r=this.bufferHighWaterLine();return function({currentPlaylist:e,buffered:t,currentTime:n,nextPlaylist:i,bufferLowWaterLine:r,bufferHighWaterLine:s,duration:o,bufferBasedABR:a,log:l}){if(!i)return sT.log.warn("We received no playlist to switch to. Please check your stream."),!1;const u=`allowing switch ${e&&e.id||"null"} -> ${i.id}`;if(!e)return l(`${u} as current playlist is not set`),!0;if(i.id===e.id)return!1;const c=Boolean(sP(t,n).length);if(!e.endList)return c||"number"!=typeof e.partTargetDuration?(l(`${u} as current playlist is live`),!0):(l(`not ${u} as current playlist is live llhls, but currentTime isn't in buffered.`),!1);const d=sB(t,n),h=a?oI.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE:oI.MAX_BUFFER_LOW_WATER_LINE;if(o<h)return l(`${u} as duration < max low water line (${o} < ${h})`),!0;const p=i.attributes.BANDWIDTH,f=e.attributes.BANDWIDTH;if(p<f&&(!a||d<s)){let e=`${u} as next bandwidth < current bandwidth (${p} < ${f})`;return a&&(e+=` and forwardBuffer < bufferHighWaterLine (${d} < ${s})`),l(e),!0}if((!a||p>f)&&d>=r){let e=`${u} as forwardBuffer >= bufferLowWaterLine (${d} >= ${r})`;return a&&(e+=` and next bandwidth > current bandwidth (${p} > ${f})`),l(e),!0}return l(`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(),bufferBasedABR:this.bufferBasedABR,log:this.logger_})}setupSegmentLoaderListeners_(){this.mainSegmentLoader_.on("bandwidthupdate",()=>{this.checkABR_("bandwidthupdate"),this.tech_.trigger("bandwidthupdate")}),this.mainSegmentLoader_.on("timeout",()=>{this.bufferBasedABR&&this.mainSegmentLoader_.load()}),this.bufferBasedABR||this.mainSegmentLoader_.on("progress",()=>{this.trigger("progress")}),this.mainSegmentLoader_.on("error",()=>{const e=this.mainSegmentLoader_.error();this.excludePlaylist({playlistToExclude:e.playlist,error:e})}),this.mainSegmentLoader_.on("appenderror",()=>{this.error=this.mainSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.mainSegmentLoader_.on("timestampoffset",()=>{this.tech_.trigger({type:"usage",name:"vhs-timestamp-offset"})}),this.audioSegmentLoader_.on("syncinfoupdate",()=>{this.onSyncInfoUpdate_()}),this.audioSegmentLoader_.on("appenderror",()=>{this.error=this.audioSegmentLoader_.error_,this.trigger("error")}),this.mainSegmentLoader_.on("ended",()=>
vendor: 4,512 bytes, line 14
14{this.logger_("main segment loader ended"),this.onEndOfStream()}),this.mainSegmentLoader_.on("earlyabort",e=>{this.bufferBasedABR||(this.delegateLoaders_("all",["abort"]),this.excludePlaylist({error:{message:"Aborted early because there isn't enough bandwidth to complete the request without rebuffering."},playlistExclusionDuration:10}))});const e=()=>{if(!this.sourceUpdater_.hasCreatedSourceBuffers())return this.tryToCreateSourceBuffers_();const e=this.getCodecsOrExclude_();e&&this.sourceUpdater_.addOrChangeSourceBuffers(e)};this.mainSegmentLoader_.on("trackinfo",e),this.audioSegmentLoader_.on("trackinfo",e),this.mainSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("fmp4",()=>{this.triggeredFmp4Usage||(this.tech_.trigger({type:"usage",name:"vhs-fmp4"}),this.triggeredFmp4Usage=!0)}),this.audioSegmentLoader_.on("ended",()=>{this.logger_("audioSegmentLoader ended"),this.onEndOfStream()})}mediaSecondsLoaded_(){return Math.max(this.audioSegmentLoader_.mediaSecondsLoaded+this.mainSegmentLoader_.mediaSecondsLoaded)}load(){this.mainSegmentLoader_.load(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.load(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.load()}fastQualityChange_(e=this.selectPlaylist()){e!==this.mainPlaylistLoader_.media()?(this.switchMedia_(e,"fast-quality"),this.resetMainLoaderReplaceSegments()):this.logger_("skipping fastQualityChange because new media is same as old")}resetMainLoaderReplaceSegments(){const e=this.tech_.buffered(),t=e.end(e.length-1);this.mainSegmentLoader_.replaceSegmentsUntil=t,this.mainSegmentLoader_.resetLoaderProperties(),this.mainSegmentLoader_.resetLoader()}play(){if(this.setupFirstPlay())return;this.tech_.ended()&&this.tech_.setCurrentTime(0),this.hasPlayed_&&this.load();const 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}setupFirstPlay(){const e=this.mainPlaylistLoader_.media();if(!e||this.tech_.paused()||this.hasPlayed_)return!1;if(!e.endList||e.start){const t=this.seekable();if(!t.length)return!1;const n=t.end(0);let i=n;if(e.start){const r=e.start.timeOffset;i=r<0?Math.max(n+r,t.start(0)):Math.min(n,r)}this.trigger("firstplay"),this.tech_.setCurrentTime(i)}return this.hasPlayed_=!0,this.load(),!0}handleSourceOpen_(){if(this.tryToCreateSourceBuffers_(),this.tech_.autoplay()){const e=this.tech_.play();void 0!==e&&"function"==typeof e.then&&e.then(null,e=>{})}this.trigger("sourceopen")}handleSourceEnded_(){if(!this.inbandTextTracks_.metadataTrack_)return;const e=this.inbandTextTracks_.metadataTrack_.cues;if(!e||!e.length)return;const t=this.duration();e[e.length-1].endTime=isNaN(t)||Math.abs(t)===1/0?Number.MAX_VALUE:t}handleDurationChange_(){this.tech_.trigger("durationchange")}onEndOfStream(){let e=this.mainSegmentLoader_.ended_;if(this.mediaTypes_.AUDIO.activePlaylistLoader){const t=this.mainSegmentLoader_.getCurrentMediaInfo_();e=!t||t.hasVideo?e&&this.audioSegmentLoader_.ended_:this.audioSegmentLoader_.ended_}e&&(this.stopABRTimer_(),this.sourceUpdater_.endOfStream())}stuckAtPlaylistEnd_(e){if(!this.seekable().length)return!1;const t=this.syncController_.getExpiredTime(e,this.duration());if(null===t)return!1;const n=aY.Playlist.playlistEnd(e,t),i=this.tech_.currentTime(),r=this.tech_.buffered();if(!r.length)return n-i<=sM;const s=r.end(r.length-1);return s-i<=sM&&n-s<=sM}excludePlaylist({playlistToExclude:e=this.mainPlaylistLoader_.media(),error:t={},playlistExclusionDuration:n}){if(e=e||this.mainPlaylistLoader_.media(),n=n||t.playlistExclusionDuration||this.playlistExclusionDuration,!e)return this.error=t,void("open"!==this.mediaSource.readyState?this.trigger("error"):this.sourceUpdater_.endOfStream("network"));e.playlistErrors_++;const i=this.mainPlaylistLoader_.main.playlists,r=i.filter(sX),s=1===r.length&&r[0]===e;if(1===i.length&&n!==1/0)return sT.log.warn(`Problem encountered with playlist ${e.id}. Trying again since it is the only playlist.`),this.tech_.trigger("retryplaylist"),this.mainPlaylistLoader_.load(s);if(s){if(this.main().contentSteering){const t=this.pathwayAttribute_(e),n=1e3*this.contentSteeringController_.steeringManifest.ttl;return this.contentSteeringController_.excludePathway(t),this.excludeThenChangePathway_(),void setTimeout(()=>{this.contentSteeringController_.addAvailablePathway(t)},n)}let t=!1;
14i.forEach(n=>{if(n===e)return;const i=n.excludeUntil;void 0!==i&&i!==1/0&&(t=!0,delete n.excludeUntil)}),t&&(sT.log.warn("Removing other playlists from the exclusion list because the last rendition is about to be excluded."),this.tech_.trigger("retryplaylist"))}let o;o=e.playlistErrors_>this.maxPlaylistRetries?1/0:Date.now()+1e3*n,e.excludeUntil=o,t.reason&&(e.lastExcludeReason_=t.reason),this.tech_.trigger("excludeplaylist"),this.tech_.trigger({type:"usage",name:"vhs-rendition-excluded"});const a=this.selectPlaylist();if(!a)return this.error="Playback cannot continue. No available working or supported playlists.",void this.trigger("error");const l=t.internal?this.logger_:sT.log.warn,u=t.message?" "+t.message:"";l(`${t.internal?"Internal problem":"Problem"} encountered with playlist ${e.id}.${u} Switching to playlist ${a.id}.`),a.attributes.AUDIO!==e.attributes.AUDIO&&this.delegateLoaders_("audio",["abort","pause"]),a.attributes.SUBTITLES!==e.attributes.SUBTITLES&&this.delegateLoaders_("subtitle",["abort","pause"]),this.delegateLoaders_("main",["abort","pause"]);const c=a.targetDuration/2*1e3||5e3,d="number"==typeof a.lastRequest&&Date.now()-a.lastRequest<=c;return this.switchMedia_(a,"exclude",s||d)}pauseLoading(){this.delegateLoaders_("all",["abort","pause"]),this.stopABRTimer_()}delegateLoaders_(e,t){const n=[],i="all"===e;(i||"main"===e)&&n.push(this.mainPlaylistLoader_);const r=[];(i||"audio"===e)&&r.push("AUDIO"),(i||"subtitle"===e)&&(r.push("CLOSED-CAPTIONS"),r.push("SUBTITLES")),r.forEach(e=>{const t=this.mediaTypes_[e]&&this.mediaTypes_[e].activePlaylistLoader;t&&n.push(t)}),["main","audio","subtitle"].forEach(t=>{const i=this[`${t}SegmentLoader_`];!i||e!==t&&"all"!==e||n.push(i)}),n.forEach(e=>t.forEach(t=>{"function"==typeof e[t]&&e[t]()}))}setCurrentTime(e){const t=sP(this.tech_.buffered(),e);return this.mainPlaylistLoader_&&this.mainPlaylistLoader_.media()&&this.mainPlaylistLoader_.media().segments?t&&t.length?e:(this.mainSegmentLoader_.resetEverything(),this.mediaTypes_.AUDIO.activePlaylistLoader&&this.audioSegmentLoader_.resetEverything(),this.mediaTypes_.SUBTITLES.activePlaylistLoader&&this.subtitleSegmentLoader_.resetEverything(),void this.load()):0}duration(){if(!this.mainPlaylistLoader_)return 0;const e=this.mainPlaylistLoader_.media();return e?e.endList?this.mediaSource?this.mediaSource.duration:aY.Playlist.duration(e):1/0:0}seekable(){return this.seekable_}onSyncInfoUpdate_(){let e;if(!this.mainPlaylistLoader_)return;let t=this.mainPlaylistLoader_.media();if(!t)return;let n=this.syncController_.getExpiredTime(t,this.duration());if(null===n)return;const i=this.mainPlaylistLoader_.main,r=aY.Playlist.seekable(t,n,aY.Playlist.liveEdgeDelay(i,t));if(0===r.length)return;if(this.mediaTypes_.AUDIO.activePlaylistLoader){if(t=this.mediaTypes_.AUDIO.activePlaylistLoader.media(),n=this.syncController_.getExpiredTime(t,this.duration()),null===n)return;if(e=aY.Playlist.seekable(t,n,aY.Playlist.liveEdgeDelay(i,t)),0===e.length)return}let s,o;this.seekable_&&this.seekable_.length&&(s=this.seekable_.end(0),o=this.seekable_.start(0)),e?e.start(0)>r.end(0)||r.start(0)>e.end(0)?this.seekable_=r:this.seekable_=sD([[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)===s&&this.seekable_.start(0)===o||(this.logger_(`seekable updated [${sL(this.seekable_)}]`),this.tech_.trigger("seekablechanged"))}updateDuration(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){const e=this.seekable();if(!e.length)return;return void((isNaN(this.mediaSource.duration)||this.mediaSource.duration<e.end(e.length-1))&&this.sourceUpdater_.setDuration(e.end(e.length-1)))}const t=this.tech_.buffered();let n=aY.Playlist.duration(this.mainPlaylistLoader_.media());t.length>0&&(n=Math.max(n,t.end(t.length-1))),this.mediaSource.duration!==n&&this.sourceUpdater_.setDuration(n)}dispose(){this.trigger("dispose"),this.decrypter_.terminate(),this.mainPlaylistLoader_.dispose(),this.mainSegmentLoader_.dispose(),this.contentSteeringController_.dispose(),this.loadOnPlay_&&this.tech_.off("play",this.loadOnPlay_),["AUDIO","SUBTITLES"].forEach(e
vendor: 2,006 bytes, line 14
14=>{const t=this.mediaTypes_[e].groups;for(const e in t)t[e].forEach(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()}main(){return this.mainPlaylistLoader_.main}media(){return this.mainPlaylistLoader_.media()||this.initialMedia_}areMediaTypesKnown_(){const e=!!this.mediaTypes_.AUDIO.activePlaylistLoader,t=!!this.mainSegmentLoader_.getCurrentMediaInfo_(),n=!e||!!this.audioSegmentLoader_.getCurrentMediaInfo_();return!(!t||!n)}getCodecsOrExclude_(){const e={main:this.mainSegmentLoader_.getCurrentMediaInfo_()||{},audio:this.audioSegmentLoader_.getCurrentMediaInfo_()||{}},t=this.mainSegmentLoader_.getPendingSegmentPlaylist()||this.media();e.video=e.main;const n=o1(this.main(),t),i={},r=!!this.mediaTypes_.AUDIO.activePlaylistLoader;if(e.main.hasVideo&&(i.video=n.video||e.main.videoCodec||"avc1.4d400d"),e.main.isMuxed&&(i.video+=`,${n.audio||e.main.audioCodec||z}`),(e.main.hasAudio&&!e.main.isMuxed||e.audio.hasAudio||r)&&(i.audio=n.audio||e.main.audioCodec||e.audio.audioCodec||z,e.audio.isFmp4=e.main.hasAudio&&!e.main.isMuxed?e.main.isFmp4:e.audio.isFmp4),!i.audio&&!i.video)return void this.excludePlaylist({playlistToExclude:t,error:{message:"Could not determine codecs for playlist."},playlistExclusionDuration:1/0});const s={};let o;if(["video","audio"].forEach(function(t){if(i.hasOwnProperty(t)&&(n=e[t].isFmp4,r=i[t],!(n?U(r):B(r)))){const n=e[t].isFmp4?"browser":"muxer";s[n]=s[n]||[],s[n].push(i[t]),"audio"===t&&(o=n)}var n,r}),r&&o&&t.attributes.AUDIO){const e=t.attributes.AUDIO;
vendor: 35,789 bytes, line 14
14this.main().playlists.forEach(n=>{(n.attributes&&n.attributes.AUDIO)===e&&n!==t&&(n.excludeUntil=1/0)}),this.logger_(`excluding audio group ${e} as ${o} does not support codec(s): "${i.audio}"`)}if(!Object.keys(s).length){if(this.sourceUpdater_.hasCreatedSourceBuffers()&&!this.sourceUpdater_.canChangeType()){const e=[];if(["video","audio"].forEach(t=>{const n=(N(this.sourceUpdater_.codecs[t]||"")[0]||{}).type,r=(N(i[t]||"")[0]||{}).type;n&&r&&n.toLowerCase()!==r.toLowerCase()&&e.push(`"${this.sourceUpdater_.codecs[t]}" -> "${i[t]}"`)}),e.length)return void this.excludePlaylist({playlistToExclude:t,error:{message:`Codec switching not supported: ${e.join(", ")}.`,internal:!0},playlistExclusionDuration:1/0})}return i}{const e=Object.keys(s).reduce((e,t)=>(e&&(e+=", "),e+`${t} does not support codec(s): "${s[t].join(",")}"`),"")+".";this.excludePlaylist({playlistToExclude:t,error:{internal:!0,message:e},playlistExclusionDuration:1/0})}}tryToCreateSourceBuffers_(){if("open"!==this.mediaSource.readyState||this.sourceUpdater_.hasCreatedSourceBuffers())return;if(!this.areMediaTypesKnown_())return;const e=this.getCodecsOrExclude_();if(!e)return;this.sourceUpdater_.createSourceBuffers(e);const t=[e.video,e.audio].filter(Boolean).join(",");this.excludeIncompatibleVariants_(t)}excludeUnsupportedVariants_(){const e=this.main().playlists,t=[];Object.keys(e).forEach(n=>{const i=e[n];if(-1!==t.indexOf(i.id))return;t.push(i.id);const r=o1(this.main,i),s=[];!r.audio||B(r.audio)||U(r.audio)||s.push(`audio codec ${r.audio}`),!r.video||B(r.video)||U(r.video)||s.push(`video codec ${r.video}`),r.text&&"stpp.ttml.im1t"===r.text&&s.push(`text codec ${r.text}`),s.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id} for unsupported: ${s.join(", ")}`))})}excludeIncompatibleVariants_(e){const t=[],n=this.main().playlists,i=oJ(N(e)),r=o0(i),s=i.video&&N(i.video)[0]||null,o=i.audio&&N(i.audio)[0]||null;Object.keys(n).forEach(e=>{const i=n[e];if(-1!==t.indexOf(i.id)||i.excludeUntil===1/0)return;t.push(i.id);const a=[],l=o1(this.mainPlaylistLoader_.main,i),u=o0(l);if(l.audio||l.video){if(u!==r&&a.push(`codec count "${u}" !== "${r}"`),!this.sourceUpdater_.canChangeType()){const e=l.video&&N(l.video)[0]||null,t=l.audio&&N(l.audio)[0]||null;e&&s&&e.type.toLowerCase()!==s.type.toLowerCase()&&a.push(`video codec "${e.type}" !== "${s.type}"`),t&&o&&t.type.toLowerCase()!==o.type.toLowerCase()&&a.push(`audio codec "${t.type}" !== "${o.type}"`)}a.length&&(i.excludeUntil=1/0,this.logger_(`excluding ${i.id}: ${a.join(" && ")}`))}})}updateAdCues_(e){let t=0;const n=this.seekable();n.length&&(t=n.start(0)),function(e,t,n=0){if(!e.segments)return;let i,s=n;for(let n=0;n<e.segments.length;n++){const o=e.segments[n];if(i||(i=aP(t,s+o.duration/2)),i){if("cueIn"in o){i.endTime=s,i.adEndTime=s,s+=o.duration,i=null;continue}if(s<i.endTime){s+=o.duration;continue}i.endTime+=o.duration}else if("cueOut"in o&&(i=new(r()).VTTCue(s,s+o.duration,o.cueOut),i.adStartTime=s,i.adEndTime=s+parseFloat(o.cueOut),t.addCue(i)),"cueOutCont"in o){const[e,n]=o.cueOutCont.split("/").map(parseFloat);i=new(r()).VTTCue(s,s+o.duration,""),i.adStartTime=s-e,i.adEndTime=i.adStartTime+n,t.addCue(i)}s+=o.duration}}(e,this.cueTagsTrack_,t)}goalBufferLength(){const e=this.tech_.currentTime(),t=oI.GOAL_BUFFER_LENGTH,n=oI.GOAL_BUFFER_LENGTH_RATE,i=Math.max(t,oI.MAX_GOAL_BUFFER_LENGTH);return Math.min(t+e*n,i)}bufferLowWaterLine(){const e=this.tech_.currentTime(),t=oI.BUFFER_LOW_WATER_LINE,n=oI.BUFFER_LOW_WATER_LINE_RATE,i=Math.max(t,oI.MAX_BUFFER_LOW_WATER_LINE),r=Math.max(t,oI.EXPERIMENTAL_MAX_BUFFER_LOW_WATER_LINE);return Math.min(t+e*n,this.bufferBasedABR?r:i)}bufferHighWaterLine(){return oI.BUFFER_HIGH_WATER_LINE}addDateRangesToTextTrack_(e){at(this.inbandTextTracks_,"com.apple.streaming",this.tech_),(({inbandTextTracks:e,dateRanges:t})=>{const n=e.metadataTrack_;if(!n)return;const i=r().WebKitDataCue||r().VTTCue;t.forEach(e=>{for(const t of Object.keys(e)){if(ae.has(t))continue;const r=new i(e.startTime,e.endTime,"");r.id=e.id,r.type="com.apple.quicktime.HLS",r.value={key:o7[t],data:e[t]},"scte35Out"!==t&&"scte35In"!==t||(r.value.data=new Uint8Array(r.value.data.match(/[\da-f]{2}/gi)).buffer),n.addCue(r)}e.processDateRange()})})({inbandTextTracks:this.inbandTextTracks_,dateRanges:e})}addMetadataToTextTrack(e,t,n){const i=this.sourceUpdater_.videoBuffer?this.sourceUpdater_.videoTimestampOffset():this.sourceUpdater_.audioTimestampOffset();at(this.inbandTextTracks_,e,this.tech_),(({inbandTextTracks:e,metadataArray:t,timestampOffset:n,videoDuration:i})=>{if(!t)return;const s=r().WebKitDataCue||r().VTTCue,o=e.metadataTrack_;if(!o)return;if(t.forEach(e=>{const t=e.cueTime+n;!("number"!=typeof t||r().isNaN(t)||t<0)&&t<1/0&&e.frames&&e.frames.length&&e.frames.forEach(e=>{const 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:()=>(sT.log.warn("cue.frame.id is deprecated. Use cue.value.key instead."),e.value.key)},value:{get:()=>(sT.log.warn("cue.frame.value is deprecated. Use cue.value.data instead."),e.value.data)},privateData:{get:()=>(sT.log.warn("cue.frame.privateData is deprecated. Use cue.value.data instead."),e.value.data)}})}(n),o.addCue(n)})}),!o.cues||!o.cues.length)return;const a=o.cues,l=[];for(let e=0;e<a.length;e++)a[e]&&l.push(a[e]);const u=l.reduce((e,t)=>{const n=e[t.startTime]||[];return n.push(t),e[t.startTime]=n,e},{}),c=Object.keys(u).sort((e,t)=>Number(e)-Number(t));c.forEach((e,t)=>{const n=u[e],r=isFinite(i)?i:0,s=Number(c[t+1])||r;n.forEach(e=>{e.endTime=s})})})({inbandTextTracks:this.inbandTextTracks_,metadataArray:t,timestampOffset:i,videoDuration:n})}pathwayAttribute_(e){return e.attributes["PATHWAY-ID"]||e.attributes.serviceLocation}initContentSteeringController_(){const e=this.main();if(!e.contentSteering)return;const t=e=>{for(const t of e.playlists)this.contentSteeringController_.addAvailablePathway(this.pathwayAttribute_(t));this.contentSteeringController_.assignTagProperties(e.uri,e.contentSteering)};t(e),this.contentSteeringController_.on("content-steering",this.excludeThenChangePathway_.bind(this)),"dash"===this.sourceType_&&this.mainPlaylistLoader_.on("mediaupdatetimeout",()=>{this.mainPlaylistLoader_.refreshMedia_(this.mainPlaylistLoader_.media().id),this.contentSteeringController_.abort(),this.contentSteeringController_.clearTTLTimeout_(),this.contentSteeringController_.clearAvailablePathways(),t(this.main())}),this.contentSteeringController_.queryBeforeStart||this.tech_.one("canplay",()=>{this.contentSteeringController_.requestSteeringManifest()})}excludeThenChangePathway_(){const e=this.contentSteeringController_.getPathway();if(!e)return;const t=this.main().playlists,n=new Set;let i=!1;Object.keys(t).forEach(r=>{const s=t[r],o=this.pathwayAttribute_(s),a=o&&e!==o;s.excludeUntil===1/0&&"content-steering"===s.lastExcludeReason_&&!a&&(delete s.excludeUntil,delete s.lastExcludeReason_,i=!0);const l=!s.excludeUntil&&s.excludeUntil!==1/0;!n.has(s.id)&&a&&l&&(n.add(s.id),s.excludeUntil=1/0,s.lastExcludeReason_="content-steering",this.logger_(`excluding ${s.id} for ${s.lastExcludeReason_}`))}),"DASH"===this.contentSteeringController_.manifestType_&&Object.keys(this.mediaTypes_).forEach(t=>{const n=this.mediaTypes_[t];if(n.activePlaylistLoader){const t=n.activePlaylistLoader.media_;t&&t.attributes.serviceLocation!==e&&(i=!0)}}),i&&this.changeSegmentPathway_()}changeSegmentPathway_(){const e=this.selectPlaylist();this.pauseLoading(),"DASH"===this.contentSteeringController_.manifestType_&&this.switchMediaForDASHContentSteering_(),this.switchMedia_(e,"content-steering")}}class a0{constructor(e,t,n){const{playlistController_:i}=e,r=i.fastQualityChange_.bind(i);if(t.attributes){const e=t.attributes.RESOLUTION;this.width=e&&e.width,this.height=e&&e.height,this.bandwidth=t.attributes.BANDWIDTH,this.frameRate=t.attributes["FRAME-RATE"]}var s,o,a;this.codecs=o1(i.main(),t),this.playlist=t,this.id=n,this.enabled=(s=e.playlists,o=t.id,a=r,e=>{const t=s.main.playlists[o],n=sY(t),i=sX(t);return void 0===e?i:(e?delete t.disabled:t.disabled=!0,e===i||n||(a(),e?s.trigger("renditionenabled"):s.trigger("renditiondisabled")),e)})}}const a1=["seeking","seeked","pause","playing","error"];class a2{constructor(e){this.playlistController_=e.playlistController,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.checkCurrentTimeTimeout_=null,this.logger_=sC("PlaybackWatcher"),this.logger_("initialize");const t=()=>this.monitorCurrentTime_(),n=()=>this.monitorCurrentTime_(),i=()=>this.techWaiting_(),s=()=>this.resetTimeUpdate_(),o=this.playlistController_,a=["main","subtitle","audio"],l={};a.forEach(e=>{l[e]={reset:()=>this.resetSegmentDownloads_(e),updateend:()=>this.checkSegmentDownloads_(e)},o[`${e}SegmentLoader_`].on("appendsdone",l[e].updateend),o[`${e}SegmentLoader_`].on("playlistupdate",l[e].reset),this.tech_.on(["seeked","seeking"],l[e].reset)});const u=e=>{["main","audio"].forEach(t=>{o[`${t}SegmentLoader_`][e]("appended",this.seekingAppendCheck_)})};this.seekingAppendCheck_=()=>{this.fixesBadSeeks_()&&(this.consecutiveUpdates=0,this.lastRecordedTime=this.tech_.currentTime(),u("off"))},this.clearSeekingAppendCheck_=()=>u("off"),this.watchForBadSeeking_=()=>{this.clearSeekingAppendCheck_(),u("on")},this.tech_.on("seeked",this.clearSeekingAppendCheck_),this.tech_.on("seeking",this.watchForBadSeeking_),this.tech_.on("waiting",i),this.tech_.on(a1,s),this.tech_.on("canplay",n),this.tech_.one("play",t),this.dispose=()=>{this.clearSeekingAppendCheck_(),this.logger_("dispose"),this.tech_.off("waiting",i),this.tech_.off(a1,s),this.tech_.off("canplay",n),this.tech_.off("play",t),this.tech_.off("seeking",this.watchForBadSeeking_),this.tech_.off("seeked",this.clearSeekingAppendCheck_),a.forEach(e=>{o[`${e}SegmentLoader_`].off("appendsdone",l[e].updateend),o[`${e}SegmentLoader_`].off("playlistupdate",l[e].reset),this.tech_.off(["seeked","seeking"],l[e].reset)}),this.checkCurrentTimeTimeout_&&r().clearTimeout(this.checkCurrentTimeTimeout_),this.resetTimeUpdate_()}}monitorCurrentTime_(){this.checkCurrentTime_(),this.checkCurrentTimeTimeout_&&r().clearTimeout(this.checkCurrentTimeTimeout_),this.checkCurrentTimeTimeout_=r().setTimeout(this.monitorCurrentTime_.bind(this),250)}resetSegmentDownloads_(e){const t=this.playlistController_[`${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_()}checkSegmentDownloads_(e){const t=this.playlistController_,n=t[`${e}SegmentLoader_`],i=n.buffered_(),r=function(e,t){if(e===t)return!1;if(!e&&t||!t&&e)return!0;if(e.length!==t.length)return!0;for(let 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:sR(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.excludePlaylist({error:{message:`Excessive ${e} segment downloading detected.`},playlistExclusionDuration:1/0})))}checkCurrentTime_(){if(this.tech_.paused()||this.tech_.seeking())return;const e=this.tech_.currentTime(),t=this.tech_.buffered();if(this.lastRecordedTime===e&&(!t.length||e+sM>=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)}resetTimeUpdate_(){this.consecutiveUpdates=0}fixesBadSeeks_(){if(!this.tech_.seeking())return!1;const e=this.seekable(),t=this.tech_.currentTime();let n;if(this.afterSeekableWindow_(e,t,this.media(),this.allowSeeksWithinUnsafeLiveWindow)&&(n=e.end(e.length-1)),this.beforeSeekableWindow_(e,t)){const t=e.start(0);n=t+(t===e.end(0)?0:sM)}if(void 0!==n)return this.logger_(`Trying to seek outside of seekable at time ${t} with seekable range ${sL(e)}. Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0;const i=this.playlistController_.sourceUpdater_,r=this.tech_.buffered(),s=i.audioBuffer?i.audioBuffered():null,o=i.videoBuffer?i.videoBuffered():null,a=this.media(),l=a.partTargetDuration?a.partTargetDuration:2*(a.targetDuration-sA),u=[s,o];for(let e=0;e<u.length;e++)if(u[e]&&sB(u[e],t)<l)return!1;const c=sN(r,t);return 0!==c.length&&(n=c.start(0)+sM,this.logger_(`Buffered region starts (${c.start(0)}) just beyond seek point (${t}). Seeking to ${n}.`),this.tech_.setCurrentTime(n),!0)}waiting_(){if(this.techWaiting_())return;const e=this.tech_.currentTime(),t=this.tech_.buffered(),n=sP(t,e);return n.length&&e+3<=n.end(0)?(this.resetTimeUpdate_(),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.`),void this.tech_.trigger({type:"usage",name:"vhs-unknown-waiting"})):void 0}techWaiting_(){const e=this.seekable(),t=this.tech_.currentTime();if(this.tech_.seeking())return!0;if(this.beforeSeekableWindow_(e,t)){const 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.resetTimeUpdate_(),this.tech_.setCurrentTime(n),this.tech_.trigger({type:"usage",name:"vhs-live-resync"}),!0}const n=this.tech_.vhs.playlistController_.sourceUpdater_,i=this.tech_.buffered();if(this.videoUnderflow_({audioBuffered:n.audioBuffered(),videoBuffered:n.videoBuffered(),currentTime:t}))return this.resetTimeUpdate_(),this.tech_.setCurrentTime(t),this.tech_.trigger({type:"usage",name:"vhs-video-underflow"}),!0;const r=sN(i,t);return r.length>0&&(this.logger_(`Stopped at ${t} and seeking to ${r.start(0)}`),this.resetTimeUpdate_(),this.skipTheGap_(t),!0)}afterSeekableWindow_(e,t,n,i=!1){if(!e.length)return!1;let r=e.end(e.length-1)+sM;const s=!n.endList,o="number"==typeof n.partTargetDuration;return s&&(o||i)&&(r=e.end(e.length-1)+3*n.targetDuration),t>r}beforeSeekableWindow_(e,t){return!!(e.length&&e.start(0)>0&&t<e.start(0)-this.liveRangeSafeTimeDelta)}videoUnderflow_({videoBuffered:e,audioBuffered:t,currentTime:n}){if(!e)return;let i;if(e.length&&t.length){const r=sP(e,n-3),s=sP(e,n),o=sP(t,n);o.length&&!s.length&&r.length&&(i={start:r.end(0),end:o.end(0)})}else sN(e,n).length||(i=this.gapFromVideoUnderflow_(e,n));return!!i&&(this.logger_(`Encountered a gap in video from ${i.start} to ${i.end}. Seeking to current time ${n}`),!0)}skipTheGap_(e){const t=this.tech_.buffered(),n=this.tech_.currentTime(),i=sN(t,n);this.resetTimeUpdate_(),0!==i.length&&n===e&&(this.logger_("skipTheGap_:","currentTime:",n,"scheduled currentTime:",e,"nextRange start:",i.start(0)),this.tech_.setCurrentTime(i.start(0)+sA),this.tech_.trigger({type:"usage",name:"vhs-gap-skip"}))}gapFromVideoUnderflow_(e,t){const n=function(e){if(e.length<2)return sD();const t=[];for(let n=1;n<e.length;n++){const i=e.end(n-1),r=e.start(n);t.push([i,r])}return sD(t)}(e);for(let e=0;e<n.length;e++){const i=n.start(e),r=n.end(e);if(t-i<4&&t-i>2)return{start:i,end:r}}return null}}const a4={errorInterval:30,getSource(e){return e(this.tech({IWillNotUseThisInPlugins:!0}).currentSource_||this.currentSource())}},a3=function(e,t){let n=0,i=0;const r=sI(a4,t);e.ready(()=>{e.trigger({type:"usage",name:"vhs-error-reload-initialized"})});const s=function(){i&&e.currentTime(i)},o=function(t){null!=t&&(i=e.duration()!==1/0&&e.currentTime()||0,e.one("loadedmetadata",s),e.src(t),e.trigger({type:"usage",name:"vhs-error-reload"}),e.play())},a=function(){if(Date.now()-n<1e3*r.errorInterval)e.trigger({type:"usage",name:"vhs-error-reload-canceled"});else{if(r.getSource&&"function"==typeof r.getSource)return n=Date.now(),r.getSource.call(e,o);sT.log.error("ERROR: reloadSourceOnError - The option getSource must be a function!")}},l=function(){e.off("loadedmetadata",s),e.off("error",a),e.off("dispose",l)};e.on("error",a),e.on("dispose",l),e.reloadSourceOnError=function(t){l(),a3(e,t)}};var a5="3.7.0";const a8={PlaylistLoader:ol,Playlist:s4,utils:o_,STANDARD_PLAYLIST_SELECTOR:o9,INITIAL_PLAYLIST_SELECTOR:function(){const e=this.playlists.main.playlists.filter(s4.isEnabled);return o5(e,(e,t)=>o8(e,t)),e.filter(e=>!!o1(this.playlists.main,e).video)[0]||null},lastBandwidthSelector:o9,movingAverageBandwidthSelector:function(e){let t=-1,n=-1;if(e<0||e>1)throw new Error("Moving average bandwidth decay must be between 0 and 1.");return function(){const 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),o6(this.playlists.main,t,parseInt(o3(this.tech_.el(),"width"),10)*i,parseInt(o3(this.tech_.el(),"height"),10)*i,this.limitRenditionByPlayerDimensions,this.playlistController_)}},comparePlaylistBandwidth:o8,comparePlaylistResolution:function(e,t){let 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),i=i||r().Number.MAX_VALUE,n===i&&e.attributes.BANDWIDTH&&t.attributes.BANDWIDTH?e.attributes.BANDWIDTH-t.attributes.BANDWIDTH:n-i},xhr:od()};Object.keys(oI).forEach(e=>{Object.defineProperty(a8,e,{get:()=>(sT.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),oI[e]),set(t){sT.log.warn(`using Vhs.${e} is UNSAFE be sure you know what you are doing`),"number"!=typeof t||t<0?sT.log.warn(`value of Vhs.${e} must be greater than or equal to 0`):oI[e]=t}})});const a6="videojs-vhs",a9=function(e,t){const n=t.media();let i=-1;for(let t=0;t<e.length;t++)if(e[t].id===n.id){i=t;break}e.selectedIndex_=i,e.trigger({selectedIndex:i,type:"change"})};a8.canPlaySource=function(){return sT.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")};const a7=()=>{if(!r().localStorage)return null;const e=r().localStorage.getItem(a6);if(!e)return null;try{return JSON.parse(e)}catch(e){return null}},le=(e,t)=>{e._requestCallbackSet||(e._requestCallbackSet=new Set),e._requestCallbackSet.add(t)},lt=(e,t)=>{e._responseCallbackSet||(e._responseCallbackSet=new Set),e._responseCallbackSet.add(t)},ln=(e,t)=>{e._requestCallbackSet&&(e._requestCallbackSet.delete(t),e._requestCallbackSet.size||delete e._requestCallbackSet)},li=(e,t)=>{e._responseCallbackSet&&(e._responseCallbackSet.delete(t),e._responseCallbackSet.size||delete e._responseCallbackSet)};a8.supportsNativeHls=function(){if(!o()||!o().createElement)return!1;const e=o().createElement("video");return!!sT.getTech("Html5").isSupported()&&["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))})}(),a8.supportsNativeDash=!!(o()&&o().createElement&&sT.getTech("Html5").isSupported())&&/maybe|probably/i.test(o().createElement("video").canPlayType("application/dash+xml")),a8.supportsTypeNatively=e=>"hls"===e?a8.supportsNativeHls:"dash"===e&&a8.supportsNativeDash,a8.isSupported=function(){return sT.log.warn("VHS is no longer a tech. Please remove it from your player's techOrder.")},a8.xhr.onRequest=function(e){le(a8.xhr,e)},a8.xhr.onResponse=function(e){lt(a8.xhr,e)},a8.xhr.offRequest=function(e){ln(a8.xhr,e)},a8.xhr.offResponse=function(e){li(a8.xhr,e)};const lr=sT.getComponent("Component");class ls extends lr{constructor(e,t,n){if(super(t,n.vhs),"number"==typeof n.initialBandwidth&&(this.options_.bandwidth=n.initialBandwidth),this.logger_=sC("VhsHandler"),t.options_&&t.options_.playerId){const e=sT.getPlayer(t.options_.playerId);this.player_=e}if(this.tech_=t,this.source_=e,this.stats={},this.ignoreNextSeekingEvent_=!1,this.setOptions_(),this.options_.overrideNative&&t.overrideNativeAudioTracks&&t.overrideNativeVideoTracks)t.overrideNativeAudioTracks(!0),t.overrideNativeVideoTracks(!0);else if(this.options_.overrideNative&&(t.featuresNativeVideoTracks||t.featuresNativeAudioTracks))throw new Error("Overriding native VHS requires emulated tracks. See https://git.io/vMpjB");this.on(o(),["fullscreenchange","webkitfullscreenchange","mozfullscreenchange","MSFullscreenChange"],e=>{const t=o().fullscreenElement||o().webkitFullscreenElement||o().mozFullScreenElement||o().msFullscreenElement;t&&t.contains(this.tech_.el())?this.playlistController_.fastQualityChange_():this.playlistController_.checkABR_()}),this.on(this.tech_,"seeking",function(){this.ignoreNextSeekingEvent_?this.ignoreNextSeekingEvent_=!1:this.setCurrentTime(this.tech_.currentTime())}),this.on(this.tech_,"error",function(){this.tech_.error()&&this.playlistController_&&this.playlistController_.pauseLoading()}),this.on(this.tech_,"play",this.play)}setOptions_(){if(this.options_.withCredentials=this.options_.withCredentials||!1,this.options_.limitRenditionByPlayerDimensions=!1!==this.options_.limitRenditionByPlayerDimensions,this.options_.useDevicePixelRatio=this.options_.useDevicePixelRatio||!1,this.options_.useBandwidthFromLocalStorage=void 0!==this.source_.useBandwidthFromLocalStorage?this.source_.useBandwidthFromLocalStorage:this.options_.useBandwidthFromLocalStorage||!1,this.options_.useForcedSubtitles=this.options_.useForcedSubtitles||!1,this.options_.useNetworkInformationApi=this.options_.useNetworkInformationApi||!1,this.options_.useDtsForTimestampOffset=this.options_.useDtsForTimestampOffset||!1,this.options_.calculateTimestampOffsetForEachSegment=this.options_.calculateTimestampOffsetForEachSegment||!1,this.options_.customTagParsers=this.options_.customTagParsers||[],this.options_.customTagMappers=this.options_.customTagMappers||[],this.options_.cacheEncryptionKeys=this.options_.cacheEncryptionKeys||!1,this.options_.llhls=!1!==this.options_.llhls,this.options_.bufferBasedABR=this.options_.bufferBasedABR||!1,"number"!=typeof this.options_.playlistExclusionDuration&&(this.options_.playlistExclusionDuration=60),"number"!=typeof this.options_.bandwidth&&this.options_.useBandwidthFromLocalStorage){const e=a7();e&&e.bandwidth&&(this.options_.bandwidth=e.bandwidth,this.tech_.trigger({type:"usage",name:"vhs-bandwidth-from-local-storage"})),e&&e.throughput&&(this.options_.throughput=e.throughput,this.tech_.trigger({type:"usage",name:"vhs-throughput-from-local-storage"}))}"number"!=typeof this.options_.bandwidth&&(this.options_.bandwidth=oI.INITIAL_BANDWIDTH),this.options_.enableLowInitialPlaylist=this.options_.enableLowInitialPlaylist&&this.options_.bandwidth===oI.INITIAL_BANDWIDTH,["withCredentials","useDevicePixelRatio","limitRenditionByPlayerDimensions","bandwidth","customTagParsers","customTagMappers","cacheEncryptionKeys","playlistSelector","initialPlaylistSelector","bufferBasedABR","liveRangeSafeTimeDelta","llhls","useForcedSubtitles","useNetworkInformationApi","useDtsForTimestampOffset","calculateTimestampOffsetForEachSegment","exactManifestTimings","leastPixelDiffSelector"].forEach(e=>{void 0!==this.source_[e]&&(this.options_[e]=this.source_[e])}),this.limitRenditionByPlayerDimensions=this.options_.limitRenditionByPlayerDimensions,this.useDevicePixelRatio=this.options_.useDevicePixelRatio}src(e,t){if(!e)return;var n;this.setOptions_(),this.options_.src=0===(n=this.source_.src).toLowerCase().indexOf("data:application/vnd.videojs.vhs+json,")?JSON.parse(n.substring(n.indexOf(",")+1)):n,this.options_.tech=this.tech_,this.options_.externVhs=a8,this.options_.sourceType=V(t),this.options_.seekTo=e=>{this.tech_.setCurrentTime(e)},this.playlistController_=new aJ(this.options_);const i=sI({liveRangeSafeTimeDelta:sM},this.options_,{seekable:()=>this.seekable(),media:()=>this.playlistController_.media(),playlistController:this.playlistController_});this.playbackWatcher_=new a2(i),this.playlistController_.on("error",()=>{const e=sT.players[this.tech_.options_.playerId];let t=this.playlistController_.error;"object"!=typeof t||t.code?"string"==typeof t&&(t={message:t,code:3}):t.code=3,e.error(t)});const s=this.options_.bufferBasedABR?a8.movingAverageBandwidthSelector(.55):a8.STANDARD_PLAYLIST_SELECTOR;this.playlistController_.selectPlaylist=this.selectPlaylist?this.selectPlaylist.bind(this):s.bind(this),this.playlistController_.selectInitialPlaylist=a8.INITIAL_PLAYLIST_SELECTOR.bind(this),this.playlists=this.playlistController_.mainPlaylistLoader_,this.mediaSource=this.playlistController_.mediaSource,Object.defineProperties(this,{selectPlaylist:{get(){return this.playlistController_.selectPlaylist},set(e){this.playlistController_.selectPlaylist=e.bind(this)}},throughput:{get(){return this.playlistController_.mainSegmentLoader_.throughput.rate},set(e){this.playlistController_.mainSegmentLoader_.throughput.rate=e,this.playlistController_.mainSegmentLoader_.throughput.count=1}},bandwidth:{get(){let e=this.playlistController_.mainSegmentLoader_.bandwidth;const t=r().navigator.connection||r().navigator.mozConnection||r().navigator.webkitConnection,n=1e7;if(this.options_.useNetworkInformationApi&&t){const i=1e3*t.downlink*1e3;e=i>=n&&e>=n?Math.max(e,i):i}return e},set(e){this.playlistController_.mainSegmentLoader_.bandwidth=e,this.playlistController_.mainSegmentLoader_.throughput={rate:0,count:0}}},systemBandwidth:{get(){const e=1/(this.bandwidth||1);let t;return t=this.throughput>0?1/this.throughput:0,Math.floor(1/(e+t))},set(){sT.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:()=>this.bandwidth||0,enumerable:!0},mediaRequests:{get:()=>this.playlistController_.mediaRequests_()||0,enumerable:!0},mediaRequestsAborted:{get:()=>this.playlistController_.mediaRequestsAborted_()||0,enumerable:!0},mediaRequestsTimedout:{get:()=>this.playlistController_.mediaRequestsTimedout_()||0,enumerable:!0},mediaRequestsErrored:{get:()=>this.playlistController_.mediaRequestsErrored_()||0,enumerable:!0},mediaTransferDuration:{get:()=>this.playlistController_.mediaTransferDuration_()||0,enumerable:!0},mediaBytesTransferred:{get:()=>this.playlistController_.mediaBytesTransferred_()||0,enumerable:!0},mediaSecondsLoaded:{get:()=>this.playlistController_.mediaSecondsLoaded_()||0,enumerable:!0},mediaAppends:{get:()=>this.playlistController_.mediaAppends_()||0,enumerable:!0},mainAppendsToLoadedData:{get:()=>this.playlistController_.mainAppendsToLoadedData_()||0,enumerable:!0},audioAppendsToLoadedData:{get:()=>this.playlistController_.audioAppendsToLoadedData_()||0,enumerable:!0},appendsToLoadedData:{get:()=>this.playlistController_.appendsToLoadedData_()||0,enumerable:!0},timeToLoadedData:{get:()=>this.playlistController_.timeToLoadedData_()||0,enumerable:!0},buffered:{get:()=>sR(this.tech_.buffered()),enumerable:!0},currentTime:{get:()=>this.tech_.currentTime(),enumerable:!0},currentSource:{get:()=>this.tech_.currentSource_,enumerable:!0},currentTech:{get:()=>this.tech_.name_,enumerable:!0},duration:{get:()=>this.tech_.duration(),enumerable:!0},main:{get:()=>this.playlists.main,enumerable:!0},playerDimensions:{get:()=>this.tech_.currentDimensions(),enumerable:!0},seekable:{get:()=>sR(this.tech_.seekable()),enumerable:!0},timestamp:{get:()=>Date.now(),enumerable:!0},videoPlaybackQuality:{get:()=>this.tech_.getVideoPlaybackQuality(),enumerable:!0}}),this.tech_.one("canplay",this.playlistController_.setupFirstPlay.bind(this.playlistController_)),this.tech_.on("bandwidthupdate",()=>{this.options_.useBandwidthFromLocalStorage&&(e=>{if(!r().localStorage)return!1;let t=a7();t=t?sI(t,e):e;try{r().localStorage.setItem(a6,JSON.stringify(t))}catch(e){return!1}})({bandwidth:this.bandwidth,throughput:Math.round(this.throughput)})}),this.playlistController_.on("selectedinitialmedia",()=>{var e;(e=this).representations=()=>{const t=e.playlistController_.main(),n=s2(t)?e.playlistController_.getAudioTrackPlaylists_():t.playlists;return n?n.filter(e=>!sY(e)).map((t,n)=>new a0(e,t,t.id)):[]}}),this.playlistController_.sourceUpdater_.on("createdsourcebuffers",()=>{this.setupEme_()}),this.on(this.playlistController_,"progress",function(){this.tech_.trigger("progress")}),this.on(this.playlistController_,"firstplay",function(){this.ignoreNextSeekingEvent_=!0}),this.setupQualityLevels_(),this.tech_.el()&&(this.mediaSourceUrl_=r().URL.createObjectURL(this.playlistController_.mediaSource),this.tech_.src(this.mediaSourceUrl_))}createKeySessions_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader;this.logger_("waiting for EME key session creation"),(({player:e,sourceKeySystems:t,audioMedia:n,mainPlaylists:i})=>{if(!e.eme.initializeMediaKeys)return Promise.resolve();const r=(a=n?i.concat([n]):i,l=Object.keys(t),a.reduce((e,t)=>{if(!t.contentProtection)return e;const n=l.reduce((e,n)=>{const i=t.contentProtection[n];return i&&i.pssh&&(e[n]={pssh:i.pssh}),e},{});return Object.keys(n).length&&e.push(n),e},[])),s=[],o=[];var a,l;return r.forEach(t=>{o.push(new Promise((t,n)=>{e.tech_.one("keysessioncreated",t)})),s.push(new Promise((n,i)=>{e.eme.initializeMediaKeys({keySystems:t},e=>{e?i(e):n()})}))}),Promise.race([Promise.all(s),Promise.race(o)])})({player:this.player_,sourceKeySystems:this.source_.keySystems,audioMedia:e&&e.media(),mainPlaylists:this.playlists.main.playlists}).then(()=>{this.logger_("created EME key session"),this.playlistController_.sourceUpdater_.initializedEme()}).catch(e=>{this.logger_("error while creating EME key session",e),this.player_.error({message:"Failed to initialize media keys for EME",code:3})})}handleWaitingForKey_(){this.logger_("waitingforkey fired, attempting to create any new key sessions"),this.createKeySessions_()}setupEme_(){const e=this.playlistController_.mediaTypes_.AUDIO.activePlaylistLoader,t=(({player:e,sourceKeySystems:t,media:n,audioMedia:i})=>{const r=((e,t,n)=>{if(!e)return e;let i={};t&&t.attributes&&t.attributes.CODECS&&(i=oJ(N(t.attributes.CODECS))),n&&n.attributes&&n.attributes.CODECS&&(i.audio=n.attributes.CODECS);const r=R(i.video),s=R(i.audio),o={};for(const n in e)o[n]={},s&&(o[n].audioContentType=s),r&&(o[n].videoContentType=r),t.contentProtection&&t.contentProtection[n]&&t.contentProtection[n].pssh&&(o[n].pssh=t.contentProtection[n].pssh),"string"==typeof e[n]&&(o[n].url=e[n]);return sI(e,o)})(t,n,i);return!(!r||(e.currentSource().keySystems=r,r&&!e.eme&&(sT.log.warn("DRM encrypted source cannot be decrypted without a DRM plugin"),1)))})({player:this.player_,sourceKeySystems:this.source_.keySystems,media:this.playlists.media(),audioMedia:e&&e.media()});this.player_.tech_.on("keystatuschange",e=>{if("output-restricted"!==e.status)return;const t=this.playlistController_.main();if(!t||!t.playlists)return;const n=[];t.playlists.forEach(e=>{e&&e.attributes&&e.attributes.RESOLUTION&&e.attributes.RESOLUTION.height>=720&&(!e.excludeUntil||e.excludeUntil<1/0)&&(e.excludeUntil=1/0,n.push(e))}),n.length&&(sT.log.warn('DRM keystatus changed to "output-restricted." Removing the following HD playlists that will most likely fail to play and clearing the buffer. This may be due to HDCP restrictions on the stream and the capabilities of the current device.',...n),this.playlistController_.mainSegmentLoader_.resetEverything(),this.playlistController_.fastQualityChange_())}),this.handleWaitingForKey_=this.handleWaitingForKey_.bind(this),this.player_.tech_.on("waitingforkey",this.handleWaitingForKey_),t?this.createKeySessions_():this.playlistController_.sourceUpdater_.initializedEme()}setupQualityLevels_(){const e=sT.players[this.tech_.options_.playerId];e&&e.qualityLevels&&!this.qualityLevels_&&(this.qualityLevels_=e.qualityLevels(),this.playlistController_.on("selectedinitialmedia",()=>{!function(e,t){t.representations().forEach(t=>{e.addQualityLevel(t)}),a9(e,t.playlists)}(this.qualityLevels_,this)}),this.playlists.on("mediachange",()=>{a9(this.qualityLevels_,this.playlists)}))}static version(){return{"@videojs/http-streaming":a5,"mux.js":"7.0.1","mpd-parser":"1.2.2","m3u8-parser":"7.1.0","aes-decrypter":"4.0.1"}}version(){return this.constructor.version()}canChangeType(){return aI.canChangeType()}play(){this.playlistController_.play()}setCurrentTime(e){this.playlistController_.setCurrentTime(e)}duration(){return this.playlistController_.duration()}seekable(){return this.playlistController_.seekable()}dispose(){this.playbackWatcher_&&this.playbackWatcher_.dispose(),this.playlistController_&&this.playlistController_.dispose(),this.qualityLevels_&&this.qualityLevels_.dispose(),this.tech_&&this.tech_.vhs&&delete this.tech_.vhs,this.mediaSourceUrl_&&r().URL.revokeObjectURL&&(r().URL.revokeObjectURL(this.mediaSourceUrl_),this.mediaSourceUrl_=null),this.tech_&&this.tech_.off("waitingforkey",this.handleWaitingForKey_),super.dispose()}convertToProgramTime(e,t){return(({playlist:e,time:t,callback:n})=>{if(!n)throw new Error("getProgramTime: callback must be provided");if(!e||void 0===t)return n({message:"getProgramTime: playlist and time must be provided"});const i=((e,t)=>{if(!t||!t.segments||0===t.segments.length)return null;let n,i=0;for(let r=0;r<t.segments.length&&(n=t.segments[r],i=n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationEnd:i+n.duration,!(e<=i));r++);const r=t.segments[t.segments.length-1];if(r.videoTimingInfo&&r.videoTimingInfo.transmuxedPresentationEnd<e)return null;if(e>i){if(e>i+.25*r.duration)return null;n=r}return{segment:n,estimatedStart:n.videoTimingInfo?n.videoTimingInfo.transmuxedPresentationStart:i-n.duration,type:n.videoTimingInfo?"accurate":"estimate"}})(t,e);if(!i)return n({message:"valid programTime was not found"});if("estimate"===i.type)return n({message:"Accurate programTime could not be determined. Please seek to e.seekTime and try again",seekTime:i.estimatedStart});const r={mediaSeconds:t},s=((e,t)=>{if(!t.dateTimeObject)return null;const n=t.videoTimingInfo.transmuxerPrependedSeconds,i=e-(t.videoTimingInfo.transmuxedPresentationStart+n);return new Date(t.dateTimeObject.getTime()+1e3*i)})(t,i.segment);return s&&(r.programDateTime=s.toISOString()),n(null,r)})({playlist:this.playlistController_.media(),time:e,callback:t})}seekToProgramTime(e,t,n=!0,i=2){return oT({programTime:e,playlist:this.playlistController_.media(),retryCount:i,pauseAfterSeek:n,seekTo:this.options_.seekTo,tech:this.options_.tech,callback:t})}setupXhrHooks_(){this.xhr.onRequest=e=>{le(this.xhr,e)},this.xhr.onResponse=e=>{lt(this.xhr,e)},this.xhr.offRequest=e=>{ln(this.xhr,e)},this.xhr.offResponse=e=>{li(this.xhr,e)},this.player_.trigger("xhr-hooks-ready")}}const lo={name:"videojs-http-streaming",VERSION:a5,canHandleSource(e,t={}){const n=sI(sT.options,t);return lo.canPlayType(e.type,n)},handleSource(e,t,n={}){const i=sI(sT.options,n);return t.vhs=new ls(e,t,i),t.vhs.xhr=od(),t.vhs.setupXhrHooks_(),t.vhs.src(e.src,e.type),t.vhs},canPlayType(e,t){const n=V(e);if(!n)return"";const i=lo.getOverrideNative(t);return!a8.supportsTypeNatively(n)||i?"maybe":""},getOverrideNative(e={}){const{vhs:t={}}=e,n=!(sT.browser.IS_ANY_SAFARI||sT.browser.IS_IOS),{overrideNative:i=n}=t;return i}};U("avc1.4d400d,mp4a.40.2")&&sT.getTech("Html5").registerSourceHandler(lo,0),sT.VhsHandler=ls,sT.VhsSourceHandler=lo,sT.Vhs=a8,sT.use||sT.registerComponent("
14Vhs",a8),sT.options.vhs=sT.options.vhs||{},sT.getPlugin&&sT.getPlugin("reloadSourceOnError")||sT.registerPlugin("reloadSourceOnError",function(e){a3(this,e)})},8390:function(e,t,n){e.exports=function(e){"use strict";function t(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var n=t(e);const i=n.default.getComponent("Component"),r=n.default.dom||n.default;i.registerComponent("TouchOverlay",class extends i{constructor(e,t){super(e,t),this.seekSeconds=t.seekSeconds,this.tapTimeout=t.tapTimeout,this.taps=0,this.addChild("playToggle",{}),e.on(["playing","userinactive"],e=>{this.removeClass("show-play-toggle")}),0===this.player_.options_.inactivityTimeout&&(this.player_.options_.inactivityTimeout=5e3),this.handleTaps_=n.default.fn.debounce(e=>{const t=(this.taps-1)*this.seekSeconds;if(this.taps=0,t<1)return;const n=this.el_.getBoundingClientRect(),i=e.changedTouches[0].clientX-n.left;if(i<.4*n.width)this.player_.currentTime(Math.max(0,this.player_.currentTime()-t)),this.addClass("reverse");else{if(!(i>n.width-.4*n.width))return;this.player_.currentTime(Math.min(this.player_.duration(),this.player_.currentTime()+t)),this.removeClass("reverse")}this.removeClass("show-play-toggle"),this.setAttribute("data-skip-text",`${t} ${this.localize("seconds")}`),this.removeClass("skip"),window.requestAnimationFrame(()=>{this.addClass("skip")})},this.tapTimeout),this.enable()}createEl(){return r.createEl("div",{className:"vjs-touch-overlay",tabIndex:-1})}handleTap(e){e.target===this.el_&&(e.preventDefault(),this.taps+=1,1===this.taps&&(this.removeClass("skip"),this.toggleClass("show-play-toggle")),this.handleTaps_(e))}enable(){this.firstTapCaptured=!1,this.on("touchend",this.handleTap)}disable(){this.off("touchend",this.handleTap)}});const s={fullscreen:{enterOnRotate:!0,exitOnRotate:!0,lockOnRotate:!0,lockToLandscapeOnEnter:!1,disabled:!1},touchControls:{seekSeconds:10,tapTimeout:300,disableOnEnd:!1,disabled:!1}},o=window.screen,a=()=>{if(o){const e=((o.orientation||{}).type||o.mozOrientation||o.msOrientation||"").split("-")[0];if("landscape"===e||"portrait"===e)return e}return"number"==typeof window.orientation?0===window.orientation||180===window.orientation?"portrait":"landscape":"portrait"},l=function(e={}){(e.forceForTesting||n.default.browser.IS_ANDROID||n.default.browser.IS_IOS)&&this.ready(()=>{((e,t)=>
14{if(e.addClass("vjs-mobile-ui"),!t.touchControls.disabled){(t.touchControls.disableOnEnd||"function"==typeof e.endscreen)&&e.addClass("vjs-mobile-ui-disable-end");const n=e.children_.indexOf(e.getChild("ControlBar"));e.touchOverlay=e.addChild("TouchOverlay",t.touchControls,n)}if(t.fullscreen.disabled)return;let i=!1;const r=()=>{const r=a();"landscape"===r&&t.fullscreen.enterOnRotate?!1===e.paused()&&(e.requestFullscreen(),(t.fullscreen.lockOnRotate||t.fullscreen.lockToLandscapeOnEnter)&&o.orientation&&o.orientation.lock&&o.orientation.lock("landscape").then(()=>{i=!0}).catch(e=>{n.default.log("Browser refused orientation lock:",e)})):"portrait"===r&&t.fullscreen.exitOnRotate&&!i&&e.isFullscreen()&&e.exitFullscreen()};(t.fullscreen.enterOnRotate||t.fullscreen.exitOnRotate)&&(n.default.browser.IS_IOS?(window.addEventListener("orientationchange",r),e.on("dispose",()=>{window.removeEventListener("orientationchange",r)})):o.orientation&&(o.orientation.onchange=r,e.on("dispose",()=>{o.orientation.onchange=null}))),e.on("fullscreenchange",r=>{e.isFullscreen()&&t.fullscreen.lockToLandscapeOnEnter&&"portrait"===a()?o.orientation.lock("landscape").then(()=>{i=!0}).catch(e=>{n.default.log("Browser refused orientation lock:",e)}):!e.isFullscreen()&&i&&(o.orientation.unlock(),i=!1)}),e.on("ended",e=>{!0===i&&(o.orientation.unlock(),i=!1)})})(this,n.default.obj.merge(s,e))})};return n.default.registerPlugin("mobileUi",l),l.VERSION="1.1.0",l}(n(1144))},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 s=r.VTTCue,o=r.VTTRegion,a=i.VTTCue,l=i.VTTRegion;r.shim=function(){i.VTTCue=s,i.VTTRegion=o},r.restore=function(){i.VTTCue=a,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}}();function s(e,t){this.name="ParsingError",this.code=e.code,this.message=t||e.message}function o(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 a(){this.values=r(null)}function l(e,t,n,i){var r=i?e.split(i):[e];for(var s in r)if("string"==typeof r[s]){var o=r[s].split(n);2===o.length&&t(o[0].trim(),o[1].trim())}}function u(e,t,n){var i=e;function r(){var t=o(e);if(null===t)throw new s(s.Errors.BadTimeStamp,"Malformed timestamp: "+i);return e=e.replace(/^[^\sa-zA-Z-]+/,""),t}function u(){e=e.replace(/^\s+/,"")}if(u(),t.startTime=r(),u(),"-->"!==e.substr(0,3))throw new s(s.Errors.BadTimeStamp,"Malformed time stamp (time stamps must be separated by '-->'): "+i);e=e.substr(3),u(),t.endTime=r(),u(),function(e,t){var i=new a;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 s=t.split(","),o=s[0];i.integer(e,o),i.percent(e,o)&&i.set("snapToLines",!1),i.alt(e,o,["auto"]),2===s.length&&i.alt("lineAlign",s[1],["start","center","end"]);break;case"position":s=t.split(","),i.percent(e,s[0]),2===s.length&&i.alt("positionAlign",s[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)}s.prototype=r(Error.prototype),s.prototype.constructor=s,s.Errors={BadSignature:{code:0,message:"Malformed WebVTT signature."},BadTimeStamp:{code:1,message:"Malformed time stamp."}},a.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 c=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)"},p={v:"title",lang:"lang"},f={rt:"ruby"};function m(e,t){function n(){if(!t)return null;var e,n=t.match(/^([^<]*)(<[^>
14]*>?)?/);return e=n[1]?n[1]:n[2],t=t.substr(e.length),e}function i(e,t){return!f[t.localName]||f[t.localName]===e.localName}function r(t,n){var i=d[t];if(!i)return null;var r=e.document.createElement(i),s=p[t];return s&&n&&(r[s]=n.trim()),r}for(var s,a,l=e.document.createElement("div"),u=l,m=[];null!==(s=n());)if("<"!==s[0])u.appendChild(e.document.createTextNode((a=s,c.innerHTML=a,a=c.textContent,c.textContent="",a)));else{if("/"===s[1]){m.length&&m[m.length-1]===s.substr(2).replace(">","")&&(m.pop(),u=u.parentNode);continue}var g,v=o(s.substr(1,s.length-2));if(v){g=e.document.createProcessingInstruction("timestamp",v),u.appendChild(g);continue}var y=s.match(/^<([^.\s/0-9>]+)(\.[^\s\\>]+)?([^>\\]+)?(\\?)>?$/);if(!y)continue;if(!(g=r(y[1],y[3])))continue;if(!i(u,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]),u.appendChild(g),u=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],[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 s=n.match(/^.*(\n|\r)/);return s?(e.length=0,s[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 s=0;s<n.length;s++)if(v(n.charCodeAt(s)))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":case"line-left":r=t.position;break;case"center":r=t.position-t.size/2;break;case"end":case"line-right":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")}
vendor: 10,925 bytes, line 14
14)}}function T(e){var t,n,i,r;if(e.div){n=e.div.offsetHeight,i=e.div.offsetWidth,r=e.div.offsetTop;var s=(s=e.div.childNodes)&&(s=s[0])&&s.getClientRects&&s.getClientRects();e=e.div.getBoundingClientRect(),t=s?Math.max(s[0]&&s[0].height||0,e.height/s.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 j(e,t,n,i){var r=new T(t),s=t.cue,o=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}(s),a=[];if(s.snapToLines){var l;switch(s.vertical){case"":a=["+y","-y"],l="height";break;case"rl":a=["+x","-x"],l="width";break;case"lr":a=["-x","+x"],l="width"}var u=r.lineHeight,c=u*Math.round(o),d=n[l]+u,h=a[0];Math.abs(c)>d&&(c=c<0?-1:1,c*=Math.ceil(d/u)*u),o<0&&(c+=""===s.vertical?n.height:n.width,a=a.reverse()),r.move(h,c)}else{var p=r.lineHeight/n.height*100;switch(s.lineAlign){case"center":o-=p/2;break;case"end":o-=p}switch(s.vertical){case"":t.applyStyles({top:t.formatStyle(o,"%")});break;case"rl":t.applyStyles({left:t.formatStyle(o,"%")});break;case"lr":t.applyStyles({right:t.formatStyle(o,"%")})}a=["+y","-x","+x","-y"],r=new T(t)}var f=function(e,t){for(var r,s=new T(e),o=1,a=0;a<t.length;a++){for(;e.overlapsOppositeAxis(n,t[a])||e.within(n)&&e.overlapsAny(i);)e.move(t[a]);if(e.within(n))return e;var l=e.intersectPercentage(n);o>l&&(r=new T(e),o=l),e=new T(s)}return r||s}(r,a);t.move(f.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",i.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=[],s=T.getSimpleBoxPosition(i),o={font:Math.round(.05*s.height*100)/100+"px sans-serif"};!function(){for(var n,a,l=0;l<t.length;l++)a=t[l],n=new _(e,a,o),i.appendChild(n.div),j(0,n,s,r),a.displayState=n.div,r.push(T.getSimpleBoxPosition(n))}()}else for(var a=0;a<t.length;a++)i.appendChild(t[a].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 s))throw e;this.onparsingerror&&this.onparsingerror(e)},parse:function(e){var t,n=this;function i(){for(var e=n.buffer,t=0;t<e.length&&"\r"!==e[t]&&"\n"!==e[t];)++t;var i=e.substr(0,t);return"\r"===e[t]&&++t,"\n"===e[t]&&++t,n.buffer=e.substr(t),i}e&&(n.buffer+=n.decoder.decode(e,{stream:!0}));try{var r;if("INITIAL"===n.state){if(!/\r\n|\n/.test(n.buffer))return this;var c=(r=i()).match(/^WEBVTT([ \t].*)?$/);if(!c||!c[0])throw new s(s.Errors.BadSignature);n.state="HEADER"}for(var d=!1;n.buffer;){if(!/\r\n|\n/.test(n.buffer))return this;switch(d?d=!1:r=i(),n.state){case"HEADER":/:/.test(r)?(t=r).match(/X-TIMESTAMP-MAP/)?l(t,function(e,t){"X-TIMESTAMP-MAP"===e&&function(e){var t=new a;l(e,function(e,n){switch(e){case"MPEGT":t.integer(e+"S",n);break;case"LOCA":t.set(e+"L",o(n))}},/[^\d]:/,/,/),n.ontimestampmap&&n.ontimestampmap({MPEGTS:t.get("MPEGTS"),LOCAL:t.get("LOCAL")})}(t)},/=/):l(t,function(e,t){"Region"===e&&function(e){var t=new a;if(l(e,function(e,n){switch(e){case"id":t.set(e,n);break;case"width":t.percent(e,n);break;case"lines":t.integer(e,n);break;case"regionanchor":case"viewportanchor":var i=n.split(",");if(2!==i.length)break;var r=new a;if(r.percent("x",i[0]),r.percent("y",i[1]),!r.has("x")||!r.has("y"))break;t.set(e+"X",r.get("x")),t.set(e+"Y",r.get("y"));break;case"scroll":t.alt(e,n,["up"])}},/=/,/\s/),t.has("id")){var i=new(n.vttjs.VTTRegion||n.window.VTTRegion);i.width=t.get("width",100),i.lines=t.get("lines",3),i.regionAnchorX=t.get("regionanchorX",0),i.regionAnchorY=t.get("regionanchorY",100),i.viewportAnchorX=t.get("viewportanchorX",0),i.viewportAnchorY=t.get("viewportanchorY",100),i.scroll=t.get("scroll",""),n.onregion&&n.onregion(i),n.regionList.push({id:t.get("id"),region:i})}}(t)},/:/):r||(n.state="ID");continue;case"NOTE":r||(n.state="ID");continue;case"ID":if(/^NOTE($|[ \t])/.test(r)){n.state="NOTE";break}if(!r)continue;n.cue=new(n.vttjs.VTTCue||n.window.VTTCue)(0,0,"");try{n.cue.align="center"}catch(e){n.cue.align="middle"}if(n.state="CUE",-1===r.indexOf("-->")){n.cue.id=r;continue}case"CUE":try{u(r,n.cue,n.regionList)}catch(e){n.reportOrThrowError(e),n.cue=null,n.state="BADCUE";continue}n.state="CUETEXT";continue;case"CUETEXT":var h=-1!==r.indexOf("-->");if(!r||h&&(d=!0)){n.oncue&&n.oncue(n.cue),n.cue=null,n.state="ID";continue}n.cue.text&&(n.cue.text+="\n"),n.cue.text+=r.replace(/\u2028/g,"\n").replace(/u2029/g,"\n");continue;case"BADCUE":r||(n.state="ID");continue}}}catch(e){n.reportOrThrowError(e),"CUETEXT"===n.state&&n.cue&&n.oncue&&n.oncue(n.cue),n.cue=null,n.state="INITIAL"===n.state?"BADWEBVTT":"BADCUE"}return this},flush:function(){var 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 s(s.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 s="",o=!1,a=e,l=n,u=r,c=null,d="",h=!0,p="auto",f="start",m="auto",g="auto",v=100,y="center";Object.defineProperties(this,{id:{enumerable:!0,get:function(){return s},set:function(e){s=""+e}},pauseOnExit:{enumerable:!0,get:function(){return o},set:function(e){o=!!e}},startTime:{enumerable:!0,get:function(){return a},set:function(e){if("number"!=typeof e)throw new TypeError("Start time must be set to a number.");a=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 u},set:function(e){u=""+e,this.hasBeenReset=!0}},region:{enumerable:!0,get:function(){return c},set:function(e){c=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 p},set:function(e){if("number"!=typeof e&&"auto"!==e)throw new SyntaxError("Line: an invalid number or illegal string was specified.");p=e,this.hasBeenReset=!0}},lineAlign:{enumerable:!0,get:function(){return f},set:function(e){var t=i(e);t?(f=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,s=100,o=0,a=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 s},set:function(e){if(!n(e))throw new Error("RegionAnchorX must be between 0 and 100.");s=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 a}
14,set:function(e){if(!n(e))throw new Error("ViewportAnchorY must be between 0 and 100.");a=e}},viewportAnchorX:{enumerable:!0,get:function(){return o},set:function(e){if(!n(e))throw new Error("ViewportAnchorX must be between 0 and 100.");o=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}}})}},8106:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTIuNzUgNUMyLjc1IDQuMzA5NjQgMy4zMDk2NCAzLjc1IDQgMy43NUgyMEMyMC42OTA0IDMuNzUgMjEuMjUgNC4zMDk2NCAyMS4yNSA1VjE5QzIxLjI1IDE5LjY5MDQgMjAuNjkwNCAyMC4yNSAyMCAyMC4yNUg0QzMuMzA5NjQgMjAuMjUgMi43NSAxOS42OTA0IDIuNzUgMTlWNVpNNCAyLjI1QzIuNDgxMjIgMi4yNSAxLjI1IDMuNDgxMjIgMS4yNSA1VjE5QzEuMjUgMjAuNTE4OCAyLjQ4MTIyIDIxLjc1IDQgMjEuNzVIMjBDMjEuNTE4OCAyMS43NSAyMi43NSAyMC41MTg4IDIyLjc1IDE5VjVDMjIuNzUgMy40ODEyMiAyMS41MTg4IDIuMjUgMjAgMi4yNUg0Wk03IDEySDE3VjEzLjVIN1YxMlpNNyAxNUgxN1YxNi41SDdWMTVaIgoJCWZpbGw9IndoaXRlIgoJLz4KPC9zdmc+Cg=="},1133:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoIGQ9Ik0xMS4xMTExIDhIMjBNMTEuMTExMSAxNUgyMCIgc3Ryb2tlPSIjRkZGRkZGIiBzdHJva2Utd2lkdGg9IjEuNSIvPgoJPHBhdGggZD0iTTUuNSAxMFY2TDQgNi41IiBzdHJva2U9IiNGRkZGRkYiLz4KCTxwYXRoIGQ9Ik02LjI2NTYyIDEyLjgwNDdDNS43OTI4NCAxMi4xOTQgNS4wNDU2OSAxMi4yOTQ3IDQuNTYzNzggMTIuNDM3OEM0LjMwNjQ5IDEyLjUxNDIgNC4wNTc2NSAxMi42MzA4IDMuODQ2MyAxMi43NDQ5TDMuOTc2NzMgMTMuODI3MkM0LjE2Nzk3IDEzLjY1NjMgNC40NDYzNiAxMy40MDUgNC43NTc4MSAxMy4zMTI1QzUuMDk4MTcgMTMuMjExNCA1LjMzNjA3IDEzLjMzNzMgNS40MjU3OCAxMy40NTMxQzUuNjM1MjcgMTMuNzIzNyA1LjM5MjQgMTQuMjg4MyA1LjI2NTYyIDE0LjUwNzlDNC43NzUzNyAxNS4zNTcyIDQuMzM1OTQgMTYuMTAxNyAzLjgxNjQxIDE3LjAwMDJINi41MDAwNlYxNi4wMDAySDUuNTg1OTRDNS44NjMyOCAxNS40MjU5IDYuNDAwMzYgMTQuNTU3IDYuNTAwMDYgMTMuODk0NUM2LjU1MTcgMTMuNTUxNCA2LjUxOTI4IDEzLjEzMjMgNi4yNjU2MiAxMi44MDQ3WiIgZmlsbD0iI0ZGRkZGRiIvPgo8L3N2Zz4K"},3967:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSI+CiAgICA8cGF0aCBkPSJNMTQuNiA3bC0xLjItMUw4IDEybDUuNCA2IDEuMi0xLTQuNi01eiIgZmlsbD0id2hpdGUiPjwvcGF0aD4KPC9zdmc+Cg=="},8477:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHZpZXdCb3g9IjAgMCAyNCAyNCIgd2lkdGg9IjI0IiBoZWlnaHQ9IjI0IiBhcmlhLWhpZGRlbj0idHJ1ZSIgZm9jdXNhYmxlPSJmYWxzZSI+CiAgICA8cGF0aCBkPSJNMTAuNiA2TDkuNCA3bDQuNiA1LTQuNiA1IDEuMiAxIDUuNC02eiIgZmlsbD0id2hpdGUiPjwvcGF0aD4KPC9zdmc+Cg=="},925:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTEyIDEyLjg5OEw2LjUzODA1IDE4LjUyMjVMNS40NjE5NiAxNy40Nzc1TDEwLjk1NDYgMTEuODIxNEw1LjgwODcyIDYuNTIyNDhMNi44ODQ4MiA1LjQ3NzQ4TDEyIDEwLjc0NDlMMTcuMTE1MiA1LjQ3NzQ4TDE4LjE5MTMgNi41MjI0OEwxMy4wNDU1IDExLjgyMTRMMTguNTM4MSAxNy40Nzc1TDE3LjQ2MiAxOC41MjI1TDEyIDEyLjg5OFoiCgkJZmlsbD0id2hpdGUiCgkvPgo8L3N2Zz4K"},7042:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzIDExLjk5OThMMTEgMTEuOTk5OE0xOSAxMS45OTk4TDE3IDExLjk5OThNNyAxMS45OTk4TDUgMTEuOTk5OCIgc3Ryb2tlPSJ3aGl0ZSIgc3Ryb2tlLXdpZHRoPSIyIi8+Cjwvc3ZnPgo="},4924:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTUgNy43NUM2LjUxODc4IDcuNzUgNy43NSA2LjUxODc4IDcuNzUgNVYzSDYuMjVWNUM2LjI1IDUuNjkwMzYgNS42OTAzNiA2LjI1IDUgNi4yNUgyVjcuNzVINVpNMiAxNi4yNUg1QzYuNTE4NzggMTYuMjUgNy43NSAxNy40ODEyIDcuNzUgMTlMNy43NSAyMUg2LjI1TDYuMjUgMTlDNi4yNSAxOC4zMDk2IDUuNjkwMzYgMTcuNzUgNSAxNy43NUgyVjE2LjI1Wk0xOSA3Ljc1QzE3LjQ4MTIgNy43NSAxNi4yNSA2LjUxODc4IDE2LjI1IDVWM0gxNy43NVY1QzE3Ljc1IDUuNjkwMzYgMTguMzA5NiA2LjI1IDE5IDYuMjVMMjIgNi4yNVY3Ljc1SDE5Wk0xNi4yNSAyMVYxOUMxNi4yNSAxNy40ODEyIDE3LjQ4MTIgMTYuMjUgMTkgMTYuMjVIMjJWMTcuNzVIMTlDMTguMzA5NiAxNy43NSAxNy43NSAxOC4zMDk2IDE3Ljc1IDE5VjIxSDE2LjI1WiIKCQlmaWxsPSJ3aGl0ZSIKCS8+Cjwvc3ZnPgo="},7348:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTQgMi4yNUMyLjQ4MTIyIDIuMjUgMS4yNSAzLjQ4MTIyIDEuMjUgNVY3SDIuNzVWNUMyLjc1IDQuMzA5NjQgMy4zMDk2NCAzLjc1IDQgMy43NUg3VjIuMjVINFpNMTcgMjEuNzVIMjBDMjEuNTE4OCAyMS43NSAyMi43NSAyMC41MTg4IDIyLjc1IDE5VjE3SDIxLjI1VjE5QzIxLjI1IDE5LjY5MDQgMjAuNjkwNCAyMC4yNSAyMCAyMC4yNUgxN0wxNyAyMS43NVpNMjAgMi4yNUMyMS41MTg4IDIuMjUgMjIuNzUgMy40ODEyMiAyMi43NSA1VjdMMjEuMjUgN1Y1QzIxLjI1IDQuMzA5NjQgMjAuNjkwNCAzLjc1IDIwIDMuNzVMMTcgMy43NUwxNyAyLjI1SDIwWk0xLjI1IDE3VjE5QzEuMjUgMjAuNTE4OCAyLjQ4MTIyIDIxLjc1IDQgMjEuNzVIN1Y
14yMC4yNUg0QzMuMzA5NjQgMjAuMjUgMi43NSAxOS42OTA0IDIuNzUgMTlMMi43NSAxN0wxLjI1IDE3WiIKCQlmaWxsPSJ3aGl0ZSIKCS8+Cjwvc3ZnPgo="},3888:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNjYiIGhlaWdodD0iNjYiIHZpZXdCb3g9IjAgMCA2NiA2NiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxjaXJjbGUgY3g9IjMzIiBjeT0iMzMiIHI9IjMyIiBzdHJva2U9IndoaXRlIiBzdHJva2Utd2lkdGg9IjIiIHN0cm9rZS1vcGFjaXR5PSIwLjMiIC8+Cgk8cGF0aCBkPSJNMSAzM0MxIDE1LjMyNjkgMTUuMzI2OSAxIDMzIDEiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMiIgLz4KPC9zdmc+Cg=="},1372:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTUgMjBDNSAyMC41NTIzIDUuNDQ3NzIgMjEgNiAyMUg5QzkuNTUyMjkgMjEgMTAgMjAuNTUyMyAxMCAyMEwxMCA0QzEwIDMuNDQ3NzIgOS41NTIyOCAzIDkgM0g2QzUuNDQ3NzEgMyA1IDMuNDQ3NzIgNSA0VjIwWiBNMTQgMjBDMTQgMjAuNTUyMyAxNC40NDc3IDIxIDE1IDIxSDE4QzE4LjU1MjMgMjEgMTkgMjAuNTUyMyAxOSAyMFY0QzE5IDMuNDQ3NzIgMTguNTUyMyAzIDE4IDNIMTVDMTQuNDQ3NyAzIDE0IDMuNDQ3NzIgMTQgNEwxNCAyMFoiCgkJZmlsbD0id2hpdGUiCgkvPgo8L3N2Zz4K"},7700:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZmlsbD0iI2ZmZmZmZiIKCQlmaWxsLXJ1bGU9ImV2ZW5vZGQiCgkJY2xpcC1ydWxlPSJldmVub2RkIgoJCWQ9Ik0yLjc1IDVDMi43NSA0LjMwOTY0IDMuMzA5NjQgMy43NSA0IDMuNzVIMjBDMjAuNjkwNCAzLjc1IDIxLjI1I
14DQuMzA5NjQgMjEuMjUgNVYxOUMyMS4yNSAxOS42OTA0IDIwLjY5MDQgMjAuMjUgMjAgMjAuMjVINEMzLjMwOTY0IDIwLjI1IDIuNzUgMTkuNjkwNCAyLjc1IDE5VjVaTTQgMi4yNUMyLjQ4MTIyIDIuMjUgMS4yNSAzLjQ4MTIyIDEuMjUgNVYxOUMxLjI1IDIwLjUxODggMi40ODEyMiAyMS43NSA0IDIxLjc1SDIwQzIxLjUxODggMjEuNzUgMjIuNzUgMjAuNTE4OCAyMi43NSAxOVY1QzIyLjc1IDMuNDgxMjIgMjEuNTE4OCAyLjI1IDIwIDIuMjVINFpNMTggN0g2VjE3SDE4VjdaIgoJLz4KPC9zdmc+Cg=="},866:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZmlsbD0iI2ZmZmZmZiIKCQlmaWxsLXJ1bGU9ImV2ZW5vZGQiCgkJY2xpcC1ydWxlPSJldmVub2RkIgoJCWQ9Ik0yLjc1IDVDMi43NSA0LjMwOTY0IDMuMzA5NjQgMy43NSA0IDMuNzVIMjBDMjAuNjkwNCAzLjc1IDIxLjI1IDQuMzA5NjQgMjEuMjUgNVYxOUMyMS4yNSAxOS42OTA0IDIwLjY5MDQgMjAuMjUgMjAgMjAuMjVINEMzLjMwOTY0IDIwLjI1IDIuNzUgMTkuNjkwNCAyLjc1IDE5VjVaTTQgMi4yNUMyLjQ4MTIyIDIuMjUgMS4yNSAzLjQ4MTIyIDEuMjUgNVYxOUMxLjI1IDIwLjUxODggMi40ODEyMiAyMS43NSA0IDIxLjc1SDIwQzIxLjUxODggMjEuNzUgMjIuNzUgMjAuNTE4OCAyMi43NSAxOVY1QzIyLjc1IDMuNDgxMjIgMjEuNTE4OCAyLjI1IDIwIDIuMjVINFpNMTkgMTJIMTJWMThIMTlWMTJaIgoJLz4KPC9zdmc+Cg=="},9956:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjIiIGhlaWdodD0iMjIiIHZpZXdCb3g9IjAgMCAyMiAyMiIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTYuMjU3MjUgMS4wNzVDNi4xMDI3OSAwLjk3NzQ0OSA1LjkxMDQxIDAuOTc0ODg5IDUuNzUzNjUgMS4wNjgzMkM1LjU5Njg5IDEuMTYxNzQgNS41IDEuMzM2NyA1LjUgMS41MjYzMlYyMC40NzM3QzUuNSAyMC42NjMzIDUuNTk2ODkgMjAuODM4MyA1Ljc1MzY1IDIwLjkzMTdDNS45MTA0MSAyMS4wMjUxIDYuMTAyNzkgMjEuMDIyNiA2LjI1NzI1IDIwLjkyNUwyMS4yNTczIDExLjQ1MTNDMjEuNDA3OSAxMS4zNTYyIDIxLjUgMTEuMTg0OSAyMS41IDExQzIxLjUgMTAuODE1MSAyMS40MDc5IDEwLjY0MzggMjEuMjU3MyAxMC41NDg3TDYuMjU3MjUgMS4wNzVaIgoJCWZpbGw9IndoaXRlIgoJLz4KPC9zdmc+"},8793:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTQuNzU3MjUgMi4wNzVDNC42MDI3OSAxLjk3NzQ1IDQuNDEwNDEgMS45NzQ4OSA0LjI1MzY1IDIuMDY4MzJDNC4wOTY4OSAyLjE2MTc0IDQgMi4zMzY3IDQgMi41MjYzMlYyMS40NzM3QzQgMjEuNjYzMyA0LjA5Njg5IDIxLjgzODMgNC4yNTM2NSAyMS45MzE3QzQuNDEwNDEgMjIuMDI1MSA0LjYwMjc5IDIyLjAyMjYgNC43NTcyNSAyMS45MjVMMTkuNzU3MyAxMi40NTEzQzE5LjkwNzkgMTIuMzU2MiAyMCAxMi4xODQ5IDIwIDEyQzIwIDExLjgxNTEgMTkuOTA3OSAxMS42NDM4IDE5Ljc1NzMgMTEuNTQ4N0w0Ljc1NzI1IDIuMDc1WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg=="},5954:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTguNzMzMzMgNUw1IDkuMzQ0ODNNNSA5LjM0NDgzTDguNzMzMzMgMTMuMjA2OU01IDkuMzQ0ODNDOC4xMTExMSA5LjM0NDgzIDEyLjI3NzggOS4zNDQ4MyAxNS4yNjQ0IDkuMzQ0ODNDMTUuMjY0NCA5LjM0NDgzIDE5IDkuMzQ0ODMgMTkgMTQuMTcyNEMxOSAxOSAxNi42NjY3IDE5IDExLjUzMzMgMTkiIHN0cm9rZT0id2hpdGUiIHN0cm9rZS13aWR0aD0iMS41Ii8+Cjwvc3ZnPgo="},8611:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoIGQ9Ik00IDE1LjZWMTdDOS40ODI5MSAxNyAxNC44ODk1IDE3IDIwIDE3VjE1LjVDMTQuNjUwNCAxNS41IDkuOTIzMzYgMTUuNiA0IDE1LjZaTTQgN1Y4LjVDOS4zMDYyNSA4LjUgMTQuMzE3MSA4LjUgMjAgOC41VjdDMTMuODMzNiA3IDkuODA3NDMgNyA0IDdaIiBmaWxsPSJ3aGl0ZSIvPgogICAgPGNpcmNsZSBjeD0iOS41IiBjeT0iMTYuMjUiIHI9IjIuNSIgZmlsbD0id2hpdGUiLz4KICAgIDxjaXJjbGUgY3g9IjE0LjUiIGN5PSI3Ljc1IiByPSIyLjUiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPgo="},6380:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZmlsbD0iI2ZmZmZmZiIgZmlsbC1ydWxlPSJldmVub2RkIiBjbGlwLXJ1bGU9ImV2ZW5vZGQiIGQ9Ik0xOC4xODI5IDQuNDg2NDVMMjMuMDI5MSA5LjY0NDE4TDE4LjE4MjkgMTQuODAxOUwxNy4wODk4IDEzLjc3NDhMMjAuMjY2MiAxMC4zOTQySDE1LjQ1NDVDMTUuMzA1OSAxMC4zOTQyIDE1LjA0MSAxMC4zOTIxIDE0LjcwNzUgMTAuMzg5NEMxMy42OTQ5IDEwLjM4MTMgMTIuMDUwNCAxMC4zNjgyIDExLjExMTQgMTAuMzkzOUwxMS4xMDEyIDEwLjM5NDJIMTEuMDkwOUM5LjgyODU1IDEwLjM5NDIgOC4yMTU2OCAxMC43MTE5IDYuOTQyNjkgMTEuNTcyMkM1LjcwOTc1IDEyLjQwNTUgNC43NSAxMy43NzMgNC43NSAxNi4wMjk5VjE4LjVDNC43NSAxOC41IDQuNDE0MjEgMTguNSA0IDE4LjVDMy41ODU3OSAxOC41IDMuMjUgMTguNSAzLjI1IDE4LjVWMTYuMDI5OUMzLjI1IDEzLjI1NyA0LjQ3MjA2IDExLjQzMTUgNi4xMDI3NiAxMC4zMjk0QzcuNjg5NjUgOS4yNTY5NCA5LjYxNjg1IDguODk1ODkgMTEuMDgwNSA4Ljg5NDE5QzEyLjA1MjYgOC44Njc5OSAxMy43NjA4IDguODgxNjcgMTQuNzYzNSA4Ljg4OTdDMTUuMDc4MiA4Ljg5MjIyIDE1LjMyMzQgOC44OTQxOCAxNS40NTQ1IDguODk0MThIMjAuMjY2MkwxNy4wODk4IDUuNTEzNThMMTguMTgyOSA0LjQ4NjQ1WiIgLz4KPC9zdmc+Cg=="},8396:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTIwLjg0MTUgNi4wNDA5OWMtLjA5OC0uMDU2MDYtLjIxODItLjA1NDUyLS4zMTQ4LjAwNDAxTDEyIDExLjIxNDlWNi4zMTU3OWMwLS4xMTM3Ny0uMDYwNi0uMjE4NzUtLjE1ODUtLjI3NDgtLjA5OC0uMDU2MDYtLjIxODItLjA1NDUyLS4zMTQ4LjAwNDAxbC05LjM3NTAxIDUuNjg0MkMyLjA1NzU2IDExLjc4NjMgMiAxMS44ODkxIDIgMTJzLjA1NzU2LjIxMzcuMTUxNjkuMjcwOGw5LjM3NTAxIDUuNjg0MmMuMDk2Ni4wNTg1LjIxNjguMDYwMS4zMTQ4LjAwNC4wOTc5LS4wNTYuMTU4NS0uMTYxLjE1ODUtLjI3NDh2LTQuODk5MWw4LjUyNjcgNS4xNjk5Yy4wOTY2LjA1ODUuMjE2OC4wNjAxLjMxNDguMDA0LjA5NzktLjA1Ni4xNTg1LS4xNjEuMTU4NS0uMjc0OFY2LjMxNTc5YzAtLjExMzc3LS4wNjA2LS4yMTg3NS0uMTU4NS0uMjc0OFoiIGZpbGw9IndoaXRlIi8+Cjwvc3ZnPg=="},9676:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTMuMTU4NTMgNi4wNDA5OWMuMDk3OTgtLjA1NjA2LjIxODIxLS4wNTQ1Mi4zMTQ3NS4wMDQwMUwxMiAxMS4yMTQ5VjYuMzE1NzljMC0uMTEzNzcuMDYwNi0uMjE4NzUuMTU4NS0uMjc0OC4wOTgtLjA1NjA2LjIxODItLjA1NDUyLjMxNDguMDA0MDFsOS4zNzUgNS42ODQyYy4wOTQxLjA1NzEuMTUxNy4xNTk5LjE1MTcuMjcwOHMtLjA1NzYuMjEzNy0uMTUxNy4yNzA4bC05LjM3NSA1LjY4NDJjLS4wOTY2LjA1ODUtLjIxNjguMDYwMS0uMzE0OC4wMDQtLjA5NzktLjA1Ni0uMTU4NS0uMTYxLS4xNTg1LS4yNzQ4di00Ljg5OTFMMy40NzMyOCAxNy45NTVjLS4wOTY1NC4wNTg1LS4yMTY3Ny4wNjAxLS4zMTQ3NS4wMDRDMy4wNjA1NiAxNy45MDMgMyAxNy43OTggMyAxNy42ODQyVjYuMzE1NzljMC0uMTEzNzcuMDYwNTYtLjIxODc1LjE1ODUzLS4yNzQ4WiIgZmlsbD0id2hp
14dGUiLz4KPC9zdmc+"},5409:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTEuNSAxMEgzVjE0SDEuNVYxMFogTTYuNSA1SDhWMTlINi41VjVaIE0xMS41IDlIMTNWMTVIMTEuNVY5WiBNMTYuNSA3SDE4VjE3SDE2LjVWN1ogTTIxLjUgMTBIMjNWMTRIMjEuNVYxMFoiCgkJZmlsbD0id2hpdGUiCgkvPgo8L3N2Zz4K"},5301:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTYuNSAzSDhWMjFINi41VjNaIE0xLjUgOEgzVjE2SDEuNVY4WiBNMTMgN0gxMS41VjE3SDEzVjdaIE0xNi41IDVIMThWMTlIMTYuNVY1WiBNMjMgMTBIMjEuNVYxNEgyM1YxMFoiCgkJZmlsbD0id2hpdGUiCgkvPgo8L3N2Zz4K"},448:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTEuNSAxMEgzVjE0SDEuNVYxMFogTTYuNSAxMEg4VjE0SDYuNVYxMFogTTEzIDEwSDExLjVWMTRIMTNWMTBaIE0xNi41IDEwSDE4VjE0SDE2LjVWMTBaIE0yMyAxMEgyMS41VjE0SDIzVjEwWiIKCQlmaWxsPSJ3aGl0ZSIKCS8+Cjwvc3ZnPgo="},8942:e=>{"use strict";e.exports="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjQiIGhlaWdodD0iMjQiIHZpZXdCb3g9IjAgMCAyNCAyNCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KCTxwYXRoCgkJZD0iTTYuNSAySDhWMjJINi41VjJaIE0xLjUgN0gzVjE3SDEuNVY3WiBNMTMgNkgxMS41VjE4SDEzVjZaIE0xNi41IDQuMTI1SDE4VjIwLjEyNUgxNi41VjQuMTI1WiBNMjMgOUgyMS41VjE1SDIzVjlaIgoJCWZpbGw9IndoaXRlIgoJLz4KPC9zdmc+Cg=="},4763:e=>{"use strict";e.exports="data:application/font-woff;charset=utf-8;base64,d09GRgABAAAAABUgAAsAAAAAItAAAQAAAAAAAAAAAAAAAAAAAAAAAAAAAABHU1VCAAABCAAAADsAAABUIIslek9TLzIAAAFEAAAAPgAAAFZRiV33Y21hcAAAAYQAAAEJAAAD5p42+VxnbHlmAAACkAAADwwAABdk9R/WHmhlYWQAABGcAAAAKwAAADYn8kSnaGhlYQAAEcgAAAAdAAAAJA+RCL1obXR4AAAR6AAAABMAAAC8Q44AAGxvY2EAABH8AAAAYAAAAGB7SIHGbWF4cAAAElwAAAAfAAAAIAFAAI9uYW1lAAASfAAAASUAAAIK1cf1oHBvc3QAABOkAAABfAAAAnXdFqh1eJxjYGRgYOBiMGCwY2BycfMJYeDLSSzJY5BiYGGAAJA8MpsxJzM9kYEDxgPKsYBpDiBmg4gCACY7BUgAeJxjYGR7xDiBgZWBgaWQ5RkDA8MvCM0cwxDOeI6BgYmBlZkBKwhIc01hcPjI+FGPHcRdyA4RZgQRADbZCycAAHic7dPXbcMwAEXRK1vuvffem749XAbKV3bjBA6fXsaIgMMLEWoQJaAEFKNnlELyQ4K27zib5PNF6vl8yld+TKr5kH0+cUw0xv00Hwvx2DResUyFKrV4XoMmLdp06NKjz4AhI8ZMmDJjzoIlK9Zs2LJjz4EjJ85cuHLjziPe/0UWL17mf2tqKLz/9jK9f8tXpGCoRdPKhtS0RqFkWvVQNtSKoVYNtWaoddPXEBqG2jQ9XWgZattQO4baNdSeofYNdWCoQ0MdGerYUCeGOjXUmaHODXVhqEtDXRnq2lA3hro11J2h7g31YKhHQz0Z6tlQL4Z6NdSbod4N9WGoT9MfHF6GmhnZLxyDcRMAAAB4nJ1YC1gUV5auc6urCmxEGrq6VRD6ATQP5dHPKK8GRIyoKApoEBUDAiGzGmdUfKNRM4qLZrUZdGKcGN/GZJKd0SyOWTbfbmZ2NxqzM5IxRtNZd78vwYlJdtREoO7sudVNq6PmmxmKqrqPU+eee173P80Bh39Cu9DOEY4DHZBK3i20D/QRLcfxbE5sEVtwLpZzclw4ibFIkSCJUcZ4MBpMnnzwuKNsGWBL5i3qy6kO2dVpvUpKbkAP9fq62rdeGJ+TM/7C1nbIutfuWrWk5ci4zMxxR1qW/N+9JsmCGXj9VKWhFx/6tr/nz78INDm2C9yPF/fDcxLuyKxLBZ1ZBz2QTi+RSkiH5RrDQJ/GgGQadX9m0YSURs7GpSG905Zsk41uj14yul1OtieZ7QUk5GRG/YiS7PYYPSAZNRed9sq3+bOpz00rKb7pe/ZEZvbALxZAHT3AFoH8GXP3rt67QFn40kt8W13FjLTDb48c+fSi5/7h0P4dL5yz7DPtbmgmYxfQA9RL2+EOfTcvdp+1vmuBpvOll1As1S6ak0IvJzC7sKWJFtJgBd2uWcg+0Zyg7dzQfhcjXRgXGZRf5/a4A58IDU777Nl252AUk4m2ByRRjqTNqIDCEJeAnU3iCFwrkrNwXEzg4yFevBwypzxkcX+AIfk3VEKl3XmWbT8788SzvpvFJaiOezL6QyuSr9VNf97csNu0z3LuhR0wATUxZAfVBwVOy+nQFhxYdWaXlXe4HC4zWGWzzsrLDtmhI9pOWOHv7PTT7XybH1Z0+v2d5Abd3kmG+TsH23CS/KwTxx/JkzEwx6jcQOUc42LLwHJ/J93uZ9ygh3HuZGwqsY9dWDHQ58dxNqyqKRQTYdxwTubiOSs3FiMDkq0WSZQgCT0GBDOg2lxOAd1FlPVGs4AKBAcYHHaP2wPkHaivmLF5zYqnIZrvcHx5gN4k/6tchNW1DtdgNL2KrxEkS/kfnIHoVnp1VjmjpTf5r0lTzLj0mdS28tX+XGorU364eMPmnWVl8J36nlKGw3CZhjEiuMw8h8mKvhGD+4/lElBWjAhLJMg6fTw4zPZ8cOmcGQBm2Qxml1nAm13CpYGq1JKUlJJUzQn1PTAO0mgv6VMMpA/DuRfSWEu4lDIxdbAtdWIKvnn2Vk766CWfz9fpY0sH/UpdP50rfszaVpdVRmvIejEdLMk45s4Bu0EWHjeOySmFyZSiMahvZdNSn29peoI/YexYfKQTLeurTXXwEVLeSfInTWHkkMaeUx7sBvOCSTSj3AlcKjfueyS36tCrXDlgRtF0etFq9jhc1kfKuBT/OwMr0F4UUTTh1AN0g20+H/ScPcsIEsYu9d/zN5PmjprPtNwI1ZZcDK6iC97Mcjp2y2aX36f+QbpGHrgRuHlXJ+Zf6PFRL2uQSp8vxHeF2IoRb8Rd2rhMzsNxSRmEuKK4JFnkojhMcx6jzqHzGMGFcW+MhBj0bhf6cowN+45I4LHvwT6fteu7M42wGRI/pxcg6/MZdEvt1U1XaulHFXuLmqov/MukvRVL35/b3ODM1+4aPjtzeK7zmUkV2h3DN54HaQ9GzJvxHRb6Ks2gB81fwqraT+A7GvZJrRLRofU6G0urNL+zFw3v0FaVDFxsKEZW56F31r6ip6vOL+FCObBPuIMRiXld9RaMdLzRIOGhPey2T9vA/35DmZPK9IWaT9d/WgOGMieYqJ/dzjLIhZU118gbysxrNUGefxD6UO/hyNNllpFTOIbx32kSFQctnweV5PxTMHLjRqiAN+fQE9gL+Xy5WB6MOS4GJJuYbDUHhcKDhHGRbLzOpjsjdM1+iwAZLGeieehACX2hhI7SjK/ZUTNrvVje31TxJiFBGYViWFkCn9PMeX9fS6qVbzfCj4fOCTzDnuWy2
14c4xA7mdNkA3RS9FH2VeqzdCBlixxbzXjvkHU1I8BOYFb1pZvPIHSSIj4svT8xpzcxtXN+ZKyjdDvbz08niiF3PqV9Tn5NST8vg48MTaY8E5xqSSIsWoWHo+LtAzxdH/GDUyp37CBEYfso04F/NlMTcDJUTpECLY0HFGQHImE8xsEUdgnrQlixIvGhJA1BvxpDHGxEMBYFeNOHcBJlSjwe2JcSfbBEsGOPPBHg/6SBBOCsLLw0SpUxod0Z1bFMfLkbQ3UiZxEyd0Dx8t+SRBu18Q9msFbI4e3p1THEfkSEh7kEJ5orR10qTWDvbgPWn5aWvCYyOAjwgXyjJi34uMjo58L25cmRAeQZWI2PA1QQLsPESAH8WGFwZZ4SPoR73BHPzIPMJj9AreBzKUmrH4todT18ANvi1oc3YGjUT/0j+ExUwq8PI9BLaCQIpvewwYu2evAG/Vo/5avPdY7o+BemLLXw3y+AdkzP9bpIxB1wm5EYq8fesHbPEPtm6HrHvtx4jcGPR8fDDpkZBefIjB46QnlUNRltv4Z/pO/J6dxEjhYAtmoMeq+GozvUVvNYOW3m6GCIhoprcfr97B8AcIQYsfD8ljUvGNjvkrpj0ETA48ZMIxCeqsRIsQALE0gi2GB+glSOfbOjW3GSBM9yPq8/rpJXrJDz0BPxV6xdN4uiCGDQed3WhgFkBUZEFsmeyyBpzXrm7UGTBZG8Lh5aubFufk5eUsbrrFGr7McYdbltxa0nKYqRKbQjvikXYkTGM0f2xuyM3Ly21oXnWfvf6I1BmZwfh7EWWIYsg2nHhsDhOnczhJcmI6eBAmy3jZ3RiJmKQR/JA99FcwsfaVbNDDyi1rL9NPj9hfo61wjM6BjzOLijLpeTgk/pL+ip6tfYWupzeOgPny2tcUu9J/9mhxJlgyi985NFRbvCVewXUNXLJaW0RxZqtRYtnfYdcYomXQWdnJHQA3jiEEkeTQWcWxdDP9IvvVWvo2TK553XEMEq+s69/QDU1Q7p0zxwsm9qS379whr8NI2PJqLUyGyfNeX3eFfnJU2U+uHR9cVV1IqgurqwuV44XVp0h2qN55X5XJwtk59yP0IZuHrqBOBIuIYhkcoT6Kx79Pu2HS/IPZIMOqLWs/pteOOk4NPgEb6QAIdAPsyZk5Mwd+wVaHMexJv719W7xCu2l37UG6lvYdBcvHa08p89741zd63phTRGqL5ggo6SlvdbWXzCqsPq78NnSu7wnKy2HNZbVoRCI7UJEOyRj+sPE002tOOY7Qa5fXboFWkLNeqYUSZRocp9XwSUZxcQZ9Hw6LV2pOoVmvHQEDbGIENEG5i6bLgMSM4n8+FNLTtAds99DaWEvgcf4o5SyYe9x+kF6/tGoTPAdRmS/XQIEy//QxKC2oqioAI3tS5auvxCtzT6y6RK8fhChYcwCJaMJhxc0vqSxQ/qmgsrKAlBZUHlauheTpvd9uj5DnLzJct6qfq5fXbYHVIGcfrIVJihbaVLu1wW7Vbs8zK0A8e9Jvb91S9cVMjPrazD6gpfeZTXzYbCFMcppVRsGMpp55OWgx1/3JeAxW1Y7AORgM/m3rWrsdLkQVmEVSU16cX/e7uvkvpqRiQsG06XJ0t64Tf+l0nG1dt025gyOIZlvq5u9KSU1N2TW/rsWnnMRPyTDkctbhvIcNvYIXWyLzdwYLoYesUbaQG4iK2cWO2gdpeUYLqDD0MUTOPhDIGnZEs58yArR86FznuWEsU4YDi2x26dA4klkn8Qa6vhk2QUfX4Jxm/ngX9r7ogn1dmlmwqZmuhxtdg9XN/DEcUgqb+9hMyNansfaQET2mcROCmGEMVqxm5u+h6kN2MOwgqykV2wH9yQG9DvVFU38Pogaf4FVuE62KI/oJ02RDdWW2w5dqQwU/8+N1q1DlvsL863u61KLE7x/o8w0VJQM/Y/SQ3unIrqxueEa1BqT5VFNsO7p39/UC771a77RowpaKe9nvJQIT1Pog5LGx8XblBKmCNGTf3xMogAQvPnz9PYKX/08sVDTG1OKUlOLUgS/UaZtm1NAaYTsl7i9ZQ+L6O4Rl0OGa577LuWvc+C+x96/vYh0lLBuM+7XwI/dTLtdT7v4d6rRTWDnku0IBrqFnZ5bVIqKP8lasJlithWnaLhTsr8qFJBulF/70p4undou36HeTJ5+jv1fCybeQ8nH3+Xv6aENczmOFlab+hqMDg1rLOt12A+tiUFrYDwQ6c3RUJp601nzegTNX6WlYAI2zSUV945F6zU56ZmZVQaWspWcIADxJ9GmljQUnL2p2Dpr5T8H+5KJFu+vqBq8qvyHRzStLHPEO5SPYCV9nZe0yZT2RcH0oHvegSzNEJ0oGWU8iQWM12dgPEugngVceGIwZgPFp0BiT1a0a3R5Rcot7ihfA1J/20v96jX7zmTX9s583H0kwx6WnLd09cXrR9LGroOa9sHNbdyz8wcKk5lqhaVFJZNwmqtw884MXNdvJujpBa3xzuSaZH9sxa06Z7x+HJSduPbdYHv/DgmEhfbehvlmGN7JUkcG78GDM12CeyFFTPNqVeNxC1gzjz+c2nVo63Xxs8rKJWXoBJM0tmEbfGm4qzpoOH3xpzQfyxLzW1gnE9NHo6tol1eMEic4ZVPrjnVi0kqAe2sQ2bgqupScaq8WGlUWgWHI51SKJl/UYT6zccNsCSkBtiVZLsiefuFSDYT3Fi8Zk7EUnmjTRYtsFeuDDJS05MW79M3mr3mla+d8dzac31KTPmBYfFiYSUef48PhPjm9ryZsSGZZkdNvzq0Y9rdNcwDq5Dg5C3QW+7UN64IKptvS3tvHbvu5c9pv1Exau21rc9LIpwpQwUjTq8576yeVDz5+4WZ1nXT43wV60rPLJbDp/UksNrP3iQ2SA63Pst058gOYDbhRnRUw8l/sRt4HbxPzO4WYpInCpuVgSbVh6JXuwnnJngKTTCwaPWmG5Xbhpm1U0Yt3FyBGpGYemPM77p2TD904JjgJ2QFpFLeYpGx8X15Qx1Zk31p5ki9ZLUuXE0lmuJlcakJMVLeFS1iIvrB8drY0aloilakqCZwzwRORtxlgwxS4IThggJd4TDxoiaAIT80fFPGrCPPru+puFn504P/ybr4ihA/6dKASLshEJic7xE8tmzu3KzA7TABBe8y5fNbWo3ilQn/SuFKM16b2l5bOeayqfGhYmhIulU+fVNDdWVv4NMzX10MBHyPR5uhWUu8D9P1VnIMt4nGNgZGBgAOJ/1bf64vltvjJwszOAwAOlmqvINEc/WJyDgQlEAQA+dgnjAHicY2BkYGBnAAGOPgaG//85+hkYGVCBPgBGJwNkAAAAeJxjYGBgYB/EmKMPtxwAhg4B0gAAAAAAAA4AaAB+AMwA4AECAUIBbAGYAe4CLgKKAtAC/ANiA4wDqAPgBDAEsATaBQgFWgXABggGLgZwBqwG9gdOB4oH0ggqCHAIhgicCMgJJAlWCYgJrAnyCkAKdgrkC7J4nGNgZGBg0GdoZmBnAAEmIOYCQgaG/2A+AwAaqwHQAHicXZBNaoNAGIZfE5PQCKFQ2lUps2oXBfOzzAESyDKBQJdGR2NQR3QSSE/QE/QEPUUPUHqsvsrXjTMw83zPvPMNCuAWP3DQDAejdm1GjzwS7pMmwi75XngAD4/CQ/oX4TFe4Qt7uMMbOzjuDc0EmXCP/C7cJ38Iu+RP4QEe8CU8pP8WHmOPX2EPz87TPo202ey2OjlnQSXV/6arOjWFmvszMWtd6CqwOlKHq6ovycLaWMWVydXKFFZnmVFlZU46tP7R2nI5ncbi/dDkfDtFBA2DDXbYkhKc+V0Bqs5Zt9JM1HQGBRTm/EezTmZNKtpcAMs9Yu6AK9caF76zoLWIWcfMGOSkVduvSWechqZsz040Ib2PY3urxBJTzriT95lipz+TN1fmAAAAeJxtkXlT2zAQxf1C4thJAwRajt4HRy8VMwwfSJHXsQZZcnUQ+PYoTtwpM+wf2t9brWZ2n5JBsol58nJcYYAdDDFCijEy5JhgileYYRd72MccBzjEa7zBEY5xglO8xTu8xwd8xCd8xhd8xTec4RwXuMR3/MBP/MJvMPzBFYpk2Cr+OF0fTEgrFI1aHhxN740KDbEmeJpsWZlVj40s+45aLuv9KijlhCXSjLQnu/d/4UH6sWul1mRzFxZeekUuE7z10mg3qMtM1FGQddPSrLQyvJR6OaukItYXDp6pCJrmz0umqkau5pZ2hFmm7m+ImG5W2t0kZoJXUtPhVnYTbbdOBdeCVGqpJe7XKTqSbRK7zbdwXfR0U+SVsStuS3Y76em6+Ic3xYiHUppc04Nn0lMzay3dSxNcp8auDlWlaCi48yetFD7Y9USsx87G45cuop1ZxQUtjLnL4j53FO0a+5X08UXqQ7NQNo92R0XOz7sxWEnxN2TneJI8Acttu4Q="},3868:e=>{"use strict";e.exports='data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h24v24H0z" fill="none"/><path d="M12 5V1L7 6l5 5V7c3.31 0 6 2.69 6 6s-2.69 6-6 6-6-2.69-6-6H4c0 4.42 3.58 8 8 8s8-3.58 8-8-3.58-8-8-8z"/></svg>'},7500:e=>{"use strict";e.exports='data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M11 18V6l-8.5 6 8.5 6zm.5-6l8.5 6V6l-8.5 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'},4122:e=>{"use strict";e.exports='data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M4 18l8.5-6L4 6v12zm9-12v12l8.5-6L13 6z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'},719:e=>{"use strict";e.exports='data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M6 19h4V5H6v14zm8-14v14h4V5h-4z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'},1762:e=>{"use strict";e.exports='data:image/svg+xml;utf8,<svg fill="%23FFFFFF" height="24" viewBox="0 0 24 24" width="24" xmlns="http://www.w3.org/2000/svg"><path d="M8 5v14l11-7z"/><path d="M0 0h24v24H0z" fill="none"/></svg>'},5893:()=>{},434: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)}
14e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},t={};function n(i){var r=t[i];if(void 0!==r)return r.exports;var s=t[i]={id:i,loaded:!1,exports:{}};return e[i].call(s.exports,s,s.exports,n),s.loaded=!0,s.exports}n.m=e,n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var i in t)n.o(t,i)&&!n.o(e,i)&&Object.defineProperty(e,i,{enumerable:!0,get:t[i]})},n.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),n.b=document.baseURI||self.location.href,n.nc=void 0;var i={};return(()=>{"use strict";n.d(i,{default:()=>aN});var e=n(9144),t=n.n(e),r=n(1144),s=n(7361),o=n.n(s),a=n(3379),l=n.n(a),u=n(7795),c=n.n(u),d=n(569),h=n.n(d),p=n(3565),f=n.n(p),m=n(9216),g=n.n(m),v=n(4589),y=n.n(v),b=n(9056),_={};_.styleTagTransform=y(),_.setAttributes=f(),_.insert=h().bind(null,"head"),_.domAPI=c(),_.insertStyleElement=g(),l()(b.Z,_),b.Z&&b.Z.locals&&b.Z.locals,n(8390);var T="DONE",j="ERROR",w={Escape:"Escape",ArrowUp:"ArrowUp",ArrowDown:"ArrowDown",ArrowLeft:"ArrowLeft",ArrowRight:"ArrowRight",GreaterThan:">",LessThan:"<",Tab:"Tab"};const S=function(){return{selectPreviousSubMenuItem:function(e){if(e.length){for(var t=0,n=0;n<e.length;++n)if(document.activeElement===e[n]){t=n;break}--t<0&&(t=0),e[t].focus()}},selectNextSubMenuItem:function(e){if(e.length){for(var t=-1,n=0;n<e.length;++n)if(document.activeElement===e[n]){t=n;break}++t>=e.length&&(t=e.length-1),e[t].focus()}}}};var x=n(3175),k={};function E(e){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},E(e)}function C(e,t,n){return(t=M(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function D(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,M(i.key),i)}}function A(e,t,n){return t&&D(e.prototype,t),n&&D(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function M(e){var t=function(e,t){if("object"!==E(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==E(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===E(t)?t:String(t)}function O(){return O="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=U(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},O.apply(this,arguments)}function P(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&&N(e,t)}function N(e,t){return N=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},N(e,t)}function L(e){var t=function(){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}}();return function(){var n,i=U(e);if(t){var r=U(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===E(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return R(e)}(this,n)}}function R(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
14function U(e){return U=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},U(e)}k.styleTagTransform=y(),k.setAttributes=f(),k.insert=h().bind(null,"head"),k.domAPI=c(),k.insertStyleElement=g(),l()(x.Z,k),x.Z&&x.Z.locals&&x.Z.locals;var B=r.default.getComponent("Menu"),z=r.default.dom,F=r.default.getComponent("ChaptersButton"),q=r.default.getComponent("ChaptersTrackMenuItem"),V=function(e){P(n,e);var t=L(n);function n(e){var i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,n),i.contentElType="ol",t.call(this,e,i)}return A(n,[{key:"createEl",value:function(){var e=this.options_.contentElType||"ol";this.contentEl_=z.createEl(e,{className:"vjs-menu-content"}),this.contentEl_.setAttribute("role","menu"),this.contentEl_.classList.add("vp-chapters-menu-content");var t=O(U(n.prototype),"createEl",this).call(this,"div",{append:this.contentEl_,className:"vjs-menu"});return t.appendChild(this.contentEl_),t.classList.add("vp-chapters-menu"),this.player_.on(t,"click",function(e){e.preventDefault(),e.stopImmediatePropagation()}),t}}]),n}(B),H=function(e){P(n,e);var t=L(n);function n(e){var i,r,s,o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return I(this,n),(s=t.call(this,e,o)).el().title=null!==(i=null==o||null===(r=o.cue)||void 0===r?void 0:r.text)&&void 0!==i?i:s.player.localize("Chapter"),s}return A(n,[{key:"buildWrapperCSSClass",value:function(){return"".concat("vp-chapter-menu-item"," ").concat(O(U(n.prototype),"buildWrapperCSSClass",this).call(this))}}]),n}(q),W=function(e){P(n,e);var t=L(n);function n(e){var i,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};I(this,n),C(R(i=t.call(this,e,r)),"hideMenuOnClickOutside",function(e){if(i.isMenuOpen()&&!i.el_.contains(e.target)){if(document.querySelector(".vjs-control-bar").contains(e.target))return void i.closeMenu();i.handleClick()}}),C(R(i),"_removeMouseXEvents",function(){i.menuButton_.off("mouseenter"),i.menuButton_.off("mouseleave")}),C(R(i),"changeButtonText",function(){if(i.track_&&i.track_.activeCues){var e=i.track_.activeCues[0];e&&i.controlText(e.text.trim())}}),i._removeMouseXEvents(),e.on("chapters-track-changed",function(e){return i.update(e)}),e.on("vp-chapters-set-from-bar",function(){i.closeMenu()}),e.on("click",i.hideMenuOnClickOutside.bind(R(i))),e.on("touchend",i.hideMenuOnClickOutside.bind(R(i)));var s=S();return i.on("keyup",function(e){if(e.key&&i.isMenuOpen()&&(!i.menuItemFocusActivated||![w.ArrowUp,w.ArrowDown].includes(e.key)))switch(e.key){case w.ArrowUp:e.preventDefault(),s.selectPreviousSubMenuItem(i.el().getElementsByTagName("li")),i.menuItemFocusActivated=!0;break;case w.ArrowDown:e.preventDefault(),s.selectNextSubMenuItem(i.el().getElementsByTagName("li")),i.menuItemFocusActivated=!0;break;default:i.menuItemFocusActivated=!1}}),i}return A(n,[{key:"isMenuOpen",value:function(){return this.player().hasClass("videopress-chapters-menu-open")}},{key:"closeMenu",value:function(){this.isMenuOpen()&&this.player().removeClass("videopress-chapters-menu-open"),this.unpressButton()}},{key:"openMenu",value:function(){this.isMenuOpen()||this.player().addClass("videopress-chapters-menu-open"),this.pressButton()}},{key:"handleClick",value:function(){this.buttonPressed_?this.closeMenu():this.openMenu()}},{key:"createItems",value: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],s=new H(this.player_,{track:this.track_,cue:r,index:n,maxIndex:t.length});e.push(s)}return e}},{key:"buildWrapperCSSClass",value:function(){return"".concat("vp-chapter-text-button"," ").concat(O(U(n.prototype),"buildWrapperCSSClass",this).call(this))}},{key:"setTrack",value:function(e){if(this.track_!==e){var t=this.track_;t&&t.removeEventListener("cuechange",this.changeButtonText),O(U(n.prototype),"setTrack",this).call(this,e),t&&t!==this.track_&&(t=null),this.track_&&this.track_.addEventListener("cuechange",this.changeButtonText)}}},{key:"controlText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.el();O(U(n.prototype),"controlText",this).call(this,e,t),t.setAttribute("title",this.localize("Chapters"))}},{key:"createMenu",value:function(){var e=new V(this.player_,{menuButton:this,contentElType:"ol"});if(this.hideThreshold_=0,this.items=this.createItems(),this.items)for(var t=0;t<this.items.length;t++)e.addItem(this.items[t]);return e}}]),n}(F),G=n(5006),$={};function Q(e){return Q="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Q(e)}
14function Z(e,t){return Z=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},Z(e,t)}function Y(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function X(e){return X=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},X(e)}function K(e){var t=function(e,t){if("object"!==Q(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==Q(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Q(t)?t:String(t)}$.styleTagTransform=y(),$.setAttributes=f(),$.insert=h().bind(null,"head"),$.domAPI=c(),$.insertStyleElement=g(),l()(G.Z,$),G.Z&&G.Z.locals&&G.Z.locals;var J=r.default.getComponent("Button"),ee=function(e){!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&&Z(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=X(n);if(i){var r=X(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===Q(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return Y(e)}(this,e)});function s(e,t){var n,i,o,a;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i=Y(n=r.call(this,e,t)),a=function(){this.player().director().trigger("share-dialog-open")},(o=K(o="handleClick"))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,n.addClass("videopress-share");var l=document.createElement("div");l.appendChild(document.createTextNode(t.title)),n.addChild("Component",{el:l});var u=new J(e,{clickHandler:n.handleClick,name:"Button"});return u.addClass("vjs-control"),u.addClass("vjs-share-ui-button"),u.controlText(n.localize("Share Button")),n.addChild(u),n}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getComponent("Component"));const et=ee;var en=n(4849),ei={};function er(e){return er="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},er(e)}function es(e,t){return es=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},es(e,t)}function eo(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function ea(e){return ea=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ea(e)}function el(e,t,n){return(t=eu(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eu(e){var t=function(e,t){if("object"!==er(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==er(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===er(t)?t:String(t)}ei.styleTagTransform=y(),ei.setAttributes=f(),ei.insert=h().bind(null,"head"),ei.domAPI=c(),ei.insertStyleElement=g(),l()(en.Z,ei),en.Z&&en.Z.locals&&en.Z.locals;var ec=function(e){!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&&es(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=ea(n);if(i){var r=ea(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===er(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eo(e)}(this,e)});function s(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),el(eo(n=r.call(this,e,t)),"disableAnimation",function(){n.canAnimate=!1,n.hideElement()}),el(eo(n),"hideElement",function(){n.el().style.display="none"}),el(eo(n),"enableAnimation",function(){n.canAnimate=!0}),n.seekedTime=Date.now(),n.canAnimate=!1,n.addClass("videopress-play-pause-animation"),n.el().addEventListener("animationend",function(){return n.hideElement()});var i=function(){!n.canAnimate||Date.now()-n.seekedTime<500||setTimeout(function(){n.canAnimate&&(n.el().style.display="block")},30)};return e.on("play",i),e.on("pause",i),e.on("firstplay",function(){return setTimeout(function(){return n.enableAnimation()},10)}),e.on("seeking",function(){return n.disableAnimation()}),e.on("seeked",function(){n.seekedTime=Date.now(),n.enableAnimation()}),e.on("ended",function(){return n.disableAnimation()}),e.director().on("toggle-source",function(){return n.disableAnimation()}),n}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getComponent("Component"));const ed=ec;var eh=n(1609),ep=n.n(eh),ef=n(9734),em=n.n(ef),eg=function(){return eb("vp09.00.50.08.00.02.02.02.00,mp4a.40.2")&&!r.default.browser.IS_ANY_SAFARI},ev=function(){return eb("hvc1.1.6.L150.90,mp4a.40.2")},ey=function(e){return"vp9"===e?eg():"hevc"===e?ev():"avc"===e},eb=function(e){return"MediaSource"in window&&MediaSource.isTypeSupp
14orted('video/mp4; codecs="'.concat(e,'"'))},e_=function(e,t){return t?(0===t.indexOf("https://")?"":e)+t:null},eT=n(9090),ej=n.n(eT);function ew(e){var t=function(t){e(t,n.g.io)};n.g.io?setTimeout(t.bind(null,null),10):ej()("https://cdn.socket.io/4.1.1/socket.io.min.js",t)}var eS="vp-playback-progress-";function ex(){return eC("quality")?eC("quality"):null}function ek(){return eC("volume")?parseInt(eC("volume"))/100:null}function eE(e){!function(e){try{return localStorage.removeItem(e)}catch(e){}}(eS+e)}function eC(e){try{return localStorage.getItem(e)}catch(e){return null}}function eI(e,t){try{return localStorage.setItem(e,t)}catch(e){}}var eD=n(3414),eA={};function eM(e){return eM="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eM(e)}function eO(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,eU(i.key),i)}}function eP(e,t){return eP=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eP(e,t)}function eN(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function eL(e){return eL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eL(e)}function eR(e,t,n){return(t=eU(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function eU(e){var t=function(e,t){if("object"!==eM(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==eM(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===eM(t)?t:String(t)}eA.styleTagTransform=y(),eA.setAttributes=f(),eA.insert=h().bind(null,"head"),eA.domAPI=c(),eA.insertStyleElement=g(),l()(eD.Z,eA),eD.Z&&eD.Z.locals&&eD.Z.locals;var eB=r.default.getComponent("MenuButton"),ez=r.default.getComponent("MenuItem"),eF=r.default.getComponent("Menu"),eq=r.default.dom,eV={index:-1,disableAuto:!0},eH=function(e){!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&&eP(e,t)}(l,e);var t,n,i,s,a=(i=l,s=function(){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(){var e,t=eL(i);if(s){var n=eL(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===eM(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return eN(e)}(this,e)});function l(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),eR(eN(n=a.call(this,e,t)),"updateAutoLabel",function(){var e="",t=null,i=n.qualityLevels.some(function(e){var n="adaptive"===e.internalName;return n&&(t=e),n&&e.isCurrent}),r=n.player.qualityLevels();if(i&&r){var s=r.selectedIndex;if(s>=0){var o,a,l=null!==(o=r[s].height)&&void 0!==o?o:0,u=null!==(a=r[s].width)&&void 0!==a?a:0,c=l;(c<=0||u>0&&u<l)&&(c=u),c>0&&(e+=n.findQualityLabelFromResolution(c))}}t&&n.autoButton&&(n.autoButton.innerHTML="<span>"+t.name+'<span class="current-auto-quality-label">'+e+"</span></span>",n.player.trigger("refresh-settings-menu-items"))}),eR(eN(n),"findQualityLabelFromResolution",function(e){var t=/([0-9]{3,})(?:p|i)/i,i=-1,r=null,s="",o=function(e,t){return!(!t.name.includes(e)&&!t.internalName.includes(e)||(s=t.name,0))};return n.qualityLevels.some(function(n){return function(n){var s=n.name.match(t)||n.internalName.match(t);if(s){var o=parseInt(s[1]);if(!(isNaN(o)||o<e)){var a=o-e;(i<0||a<i)&&(r=n.name,i=a)}}}(n),o(e+"p",n)||o(e+"i",n)}),s.length||(s=r.length?r:e+"p"),s}),eR(eN(n),"buildQualityLevels",function(e,t){n.qualityLevels=[];var i=t.file_url_base.https,r=[];
14Object.keys(t.format_meta).forEach(function(e){var n=t.format_meta[e],i=!1;!ep()(n)&&ey(n.codec)&&(i=!0),r.push({name:n.label,internalName:e,isSupported:i,vertical_lines:n.vertical_lines})}),null!==t.adaptive_streaming&&r.push({name:n.localize("Auto"),internalName:"adaptive",isSupported:!0,vertical_lines:0}),r=em()(r,function(e){return e.vertical_lines}).reverse();var s=0,a={};r.forEach(function(e){if(e.isSupported&&!(a[e.name]||a["240p"]&&"224p"===e.name&&"std"!==ex())){var r=!1,l=null,u=null;if("adaptive"===e.internalName)r=!0,u=t.adaptive_streaming;else{var c="files_status.".concat(e.internalName,".mp4");if(ep()(o()(t,c)))return;var d=o()(t,c);if(j===d)return;(r=T===d)&&(l=i+t.files[e.internalName].mp4,u=e_(i,t.files[e.internalName].hls))}n.qualityLevels.push({id:s,name:e.name,internalName:e.internalName,mp4Source:l,hlsSource:u,ready:r}),s++,a[e.name]=!0}});var l=n.player.src();if(ep()(l))n.refreshButton();else{var u=n.qualityLevels.find(function(e){return[e.mp4Source,e.hlsSource].indexOf(l)>-1});u||(u=n.qualityLevels.find(function(e){return"adaptive"===e.internalName&&l.search(/adaptive_\d(-\d)?.m3u8/)>-1||"avc_240p"===e.internalName&&l.search(/_std(-\d)?.mp4/)>-1})),u?n.setCurrentQualityLevel(u.internalName):n.refreshButton()}n.qualityLevels.some(function(e){return!e.ready})&&ew(function(e,i){if(n.previousSocket&&n.previousSocket.disconnect(),!e){var r=i("https://io.videopress.com",{upgrade:!1,query:{guid:t.guid}});n.previousSocket=r;var s=[];
14n.qualityLevels.forEach(function(e){e.ready||s.push(e.internalName+"_mp4")}),r.on("video status",function e(i){-1!==s.indexOf(i.type)&&("ready"===i.status&&(n.player.api.wpcom.videoInfo(t.guid,n.player.director().getViewerBirthDate(),!0),s.splice(s.indexOf(i.type),1)),0===s.length&&(r.off("video status",e),r.disconnect()))})}})}),eR(eN(n),"getQualityDisplayString",function(e){return e?e.name:""}),eR(eN(n),"changeLevel",function(e){n.qualityLevels.forEach(function(t){t.id===e?t.isCurrent=!0:t.isCurrent=!1});var t=n.qualityLevels.find(function(t){return e===t.id});n.player.director().trigger("toggle-source",{quality:t.internalName})}),eR(eN(n),"setCurrentQualityLevel",function(e){var t=n.qualityLevels.find(function(t){return e===t.internalName});t?(n.$(".vjs-icon-placeholder").innerHTML=n.getQualityDisplayString(t),n.qualityLevels.forEach(function(e){t.internalName===e.internalName&&(e.isCurrent=!0)}),n.refreshButton()):n.refreshButton()}),eR(eN(n),"refreshButton",function(){n.items=n.qualityLevels,n.update(),n.player.trigger("refresh-settings-menu-items")}),eR(eN(n),"handleSubmenuKeyPress",function(e){if(void 0!==e.currentTarget.dataset.id){var t=parseInt(e.currentTarget.dataset.id,10);n.changeLevel(t)}}),eR(eN(n),"createButton",function(e,t,i,r){var s=eq.createEl("li",{className:t,innerHTML:i,tabIndex:-1},{"data-id":r}),o=new ez(n.player_,{el:s});return o.on("click",n.handleMenuItemClick.bind(eN(n))),o.on("touchend",n.handleMenuItemClick.bind(eN(n))),e.addItem(o),s}),eR(eN(n),"createMenu",function(){var e=new eF(n.player_,{menuButton:eN(n)});if(n.items){n.autoMode||n.options.disableAuto||n.createButton(e,"vjs-menu-item",n.options.autoLabel,-1);for(var t=0;t<n.items.length;t++){var i=n.items[t],r="vjs-menu-item";r+=i.isCurrent?" vjs-selected":"",r+=i.ready?"":" videopress-quality-transcoding";var s=n.createButton(e,r,n.getQualityDisplayString(i),i.id);"adaptive"===i.internalName&&(n.autoButton=s)}}return n.updateAutoLabel(),e}),n.options=r.default.obj.merge(eV,t),n.parent=n.options.parent,n.autoButton=null,n.items=[],n.addClass("vjs-max-quality-selector-button"),n.defaults=eV,n.qualityLevels=[],n.player=e,e.on("ready",function(){e.director().on("build-quality-levels",n.buildQualityLevels),e.ready(function(){n.player.addClass("vjs-quality-selector")}),e.director().on("source-set",function(e,t){var i=t.quality;n.setCurrentQualityLevel(i)}),e.qualityLevels().on("change",function(){return n.updateAutoLabel()})}),n}return t=l,n=[{key:"handleMenuItemClick",value:function(e){var t=e.currentTarget||e.target;if(t.dataset){var n=parseInt(t.dataset.id,10);this.changeLevel(n)}}}],n&&eO(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(eB);r.default.registerComponent("maxQualityButton",eH);const eW=eH;function eG(e){return eG="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},eG(e)}function e$(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return eQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?eQ(e,t):void 0}}(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,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}function eQ(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}function eZ(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,(r=function(e,t){if("object"!==eG(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==eG(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===eG(r)?r:String(r)),i)}var r}function eY(e,t){return eY=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},eY(e,t)}
14function eX(e){return eX=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},eX(e)}var eK=r.default.getComponent("MenuItem"),eJ=r.default.getComponent("PlaybackRateMenuButton"),e0=r.default.getComponent("MaxQualityButton"),e1=r.default.getComponent("SubsCapsButton"),e2=r.default.getComponent("Component"),e4=function(e){!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&&eY(e,t)}(a,e);var t,n,i,s,o=(i=a,s=function(){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(){var e,t=eX(i);if(s){var n=eX(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===eG(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function a(e,t,n){var i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=o.call(this,e,t);var s=r.default.getComponent(n);if(!s)throw new Error("Component ".concat(n," does not exist"));return i.subMenu=new s(e,t),i.titleText="",i.subMenu instanceof eJ?i.titleText=i.localize("Speed"):i.subMenu instanceof e0?i.titleText=i.localize("Quality"):i.subMenu instanceof e1&&(i.titleText=i.localize("Captions")),i.settingsSubMenuTitleEl_.innerHTML=i.titleText,i.update(),e.on("subs-caps-button-updated",function(){i.update()}),e.on("refresh-settings-menu-items",function(){i.update()}),e.on("ratechange",function(){i.update()}),i.on("keyup",function(t){if(t.key)switch(t.key){case w.ArrowUp:e.trigger("settings-menu-up");break;case w.ArrowDown:e.trigger("settings-menu-down")}}),i}return t=a,(n=[{key:"createEl",value:function(){var e=r.default.dom.createEl("li",{className:"vjs-menu-item",tabIndex:-1});return this.settingsSubMenuTitleEl_=r.default.dom.createEl("div",{className:"vjs-settings-sub-menu-title"}),e.appendChild(this.settingsSubMenuTitleEl_),this.settingsSubMenuValueEl_=r.default.dom.createEl("div",{className:"vjs-settings-sub-menu-value"}),e.appendChild(this.settingsSubMenuValueEl_),this.settingsSubMenuEl_=r.default.dom.createEl("div",{className:"vjs-settings-sub-menu"}),e.appendChild(this.settingsSubMenuEl_),e}},{key:"handleClick",value:function(){this.player().trigger("show-settings-detail",{content:this.settingsSubMenuEl_,title:this.titleText,subMenu:this.subMenu})}},{key:"update",value:function(){var e,t=this.update.bind(this),n=this.player.bind(this),i=function(){setTimeout(t,0),n().trigger("settings-changed")},r=e$(this.subMenu.menu.children());try{for(r.s();!(e=r.n()).done;){var s=e.value;s instanceof e2&&(s.on("click",i),s.on("tap",i))}}catch(e){r.e(e)}finally{r.f()}if(this.settingsSubMenuEl_.appendChild(this.subMenu.menu.el_),this.subMenu instanceof eJ)this.settingsSubMenuValueEl_.innerHTML=this.subMenu.labelEl_.innerHTML;else{var o,a=e$(this.subMenu.menu.children_);try{for(a.s();!(o=a.n()).done;){var l,u=o.value;u instanceof e2&&(u.options_.selected||u.hasClass("vjs-selected"))&&(this.settingsSubMenuValueEl_.innerHTML=null!==(l=u.options_.label)&&void 0!==l?l:u.options_.el.innerHTML)}}catch(e){a.e(e)}finally{a.f()}}}}])&&eZ(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(eK);e4.prototype.contentElType="button",r.default.registerComponent("SettingsMenuItem",e4);const e3=e4;var e5=n(1333),e8={};function e6(e){return e6="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e6(e)}function e9(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}function e7(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,ts(i.key),i)}}function te(){return te="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=ti(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},te.apply(this,arguments)}function tt(e,t){return tt=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tt(e,t)}function tn(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}
14function ti(e){return ti=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},ti(e)}function tr(e,t,n){return(t=ts(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ts(e){var t=function(e,t){if("object"!==e6(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==e6(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===e6(t)?t:String(t)}e8.styleTagTransform=y(),e8.setAttributes=f(),e8.insert=h().bind(null,"head"),e8.domAPI=c(),e8.insertStyleElement=g(),l()(e5.Z,e8),e5.Z&&e5.Z.locals&&e5.Z.locals;var to=r.default.getComponent("Component"),ta=r.default.getComponent("Menu"),tl=r.default.getComponent("MenuButton"),tu=r.default.getComponent("SubsCapsButton"),tc=function(e){!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&&tt(e,t)}(a,e);var t,n,i,s,o=(i=a,s=function(){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(){var e,t=ti(i);if(s){var n=ti(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===e6(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return tn(e)}(this,e)});function a(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),tr(tn(n=o.call(this,e,t)),"isMenuVisible",function(){return n.player().hasClass("videopress-settings-open")}),tr(tn(n),"showMenu",function(){r.default.dom.hasClass(n.el_,"settings-menu-button__active")||r.default.dom.addClass(n.el_,"settings-menu-button__active"),n.player().hasClass("videopress-settings-open")||n.player().addClass("videopress-settings-open"),n.children().forEac
14h(function(e){e.hasClass("vjs-menu")&&e.removeClass("vjs-hidden")})}),tr(tn(n),"hideMenu",function(){n.hideSubMenu(),r.default.dom.removeClass(n.el_,"settings-menu-button__active"),r.default.dom.removeClass(n.el_,"open"),n.player().removeClass("videopress-settings-open")}),tr(tn(n),"handleClick",function(){n.toggleMenuVisibility()}),tr(tn(n),"isSubMenuVisible",function(){return r.default.dom.hasClass(n.el_,"settings-menu-button__active")}),n.controlText(n.localize("Settings Menu")),n.addClass("vjs-settings-menu-button"),e.on("show-settings-detail",function(e,t){var i=t.content,r=t.title,s=t.subMenu;n.detailContent.replaceChildren(i),n.detailHeaderTitle.innerHTML=r,s instanceof tu&&n.shouldShowCaptionsSettings()?n.addClass("settings-menu-button__show-captions-settings"):n.removeClass("settings-menu-button__show-captions-settings")}),e.on("settings-changed",function(){return n.hideMenu()}),n.on(n.menuButton_,"mouseenter",function(){n.removeClass("vjs-hover")}),e.on("click",n.hideMenuOnClickOutside.bind(tn(n))),e.on("touchend",n.hideMenuOnClickOutside.bind(tn(n))),n.on("keyup",function(e){e.key&&w.Escape===e.key&&(n.isSubMenuVisible()?n.hideSubMenu():n.hideMenu())});var i=S();return e.on("settings-menu-up",function(){return i.selectPreviousSubMenuItem(n.detailContent.getElementsByTagName("li"))}),e.on("settings-menu-down",function(){return i.selectNextSubMenuItem(n.detailContent.getElementsByTagName("li"))}),window.addEventListener("blur",function(){return n.hideMenu()}),n}return t=a,(n=[{key:"shouldShowCaptionsSettings",value:function(){return!this.player().tech({IWillNotUseThisInPlugins:!0}).featuresNativeTextTracks&&this.player().getChild("textTrackSettings")}},{key:"buildCSSClass",value:function(){return"vjs-settings-menu-button ".concat(te(ti(a.prototype),"buildCSSClass",this).call(this))}},{key:"hideMenuOnClickOutside",value:function(e){this.isShowingMenuOrDetailView&&!this.el_.contains(e.target)&&this.hideMenu()}},{key:"isShowingMenuOrDetailView",value:function(){return r.default.dom.hasClass(this.el_,"settings-menu-button__active")||r.default.dom.hasClass(this.el_,"open")}},{key:"toggleMenuVisibility",value:function(){this.isMenuVisible()?this.hideMenu():this.showMenu()}},{key:"createEl",value:function(){var e=this,t=te(ti(a.prototype),"createEl",this).call(this),n=r.default.dom.createEl("div",{className:"settings-menu-button__detail"}),i=r.default.dom.createEl("div",{className:"settings-menu-button__detail-header"});this.detailHeaderTitle=r.default.dom.createEl("div",{className:"settings-menu-button__detail-header-title"}),this.detailHeaderTitle.addEventListener("click",this.hideSubMenu.bind(this)),this.detailHeaderTitle.addEventListener("touchend",this.hideSubMenu.bind(this)),i.appendChild(this.detailHeaderTitle);var s=r.default.dom.createEl("div",{className:"settings-menu-button__detail-header-button",innerHTML:"Settings"});return s.addEventListener("click",function(){return e.player().getChild("textTrackSettings").open()}),s.addEventListener("touchend",function(){return e.player().getChild("textTrackSettings").open()}),i.appendChild(s),n.appendChild(i),this.detailContent=r.default.dom.createEl("div",{className:"settings-menu-button__detail-content"}),n.appendChild(this.detailContent),t.appendChild(n),t}},{key:"hideSubMenu",value:function(){r.default.dom.removeClass(this.el_,"open"),r.default.dom.addClass(this.el_,"settings-menu-button__active")}},{key:"showSubMenu",value:function(){r.default.dom.addClass(this.el_,"open"),r.default.dom.removeClass(this.el_,"settings-menu-button__active")}},{key:"createMenu",value:function(){var e=new ta(this.player());e.contentEl().classList.add("settings-menu-button__content");var t=this.options_.entries;if(t){var n,i=function(e,t){var n="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!n){if(Array.isArray(e)||(n=function(e,t){if(e){if("string"==typeof e)return e9(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?e9(e,t):void 0}}(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,a=!1;return{s:function(){n=n.call(e)},n:function(){var e=n.next();return o=e.done,e},e:function(e){a=!0,s=e},f:function(){try{o||null==n.return||n.return()}finally{if(a)throw s}}}}(t);try{for(i.s();!(n=i.n()).done;){var r=n.value,s=new e3(this.player(),this.options_,r);e.addChild(s),s.on("click",this.showSubMenu.bind(this)),s.on("touchend",this.showSubMenu.bind(this))}}catch(e){i.e(e)}finally{i.f()}}return e}}])&&e7(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(tl);to.registerComponent("SettingsMenuButton",tc);const td=tc;function th(e){return th="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},th(e)}function tp(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,(r=function(e,t){if("object"!==th(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==th(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===th(r)?r:String(r)),i)}var r}function tf(){return tf="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=tg(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},tf.apply(this,arguments)}function tm(e,t){return tm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tm(e,t)}function tg(e){return tg=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tg(e)}var tv=r.default.getComponent("SubsCapsButton"),ty=r.default.getComponent("OffTextTrackMenuItem"),tb=r.default.getComponent("CaptionSettingsMenuItem"),t_=function(e){!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&&tm(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=tg(i);if(r){var n=tg(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===th(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=s.call(this,e,t)).label_=n.localize("Captions"),e.on("refresh-subs-caps-button",function(){return n.update()}),n}return t=o,(n=[{key:"update",value:function(){tf(tg(o.prototype),"update",this).call(this),this.player_.trigger("subs-caps-button-updated")}},{key:"createItems",value:function(){var e=tf(tg(o.prototype),"createItems",this).call(this),t=[];return t.push(new ty(this.player_,{kinds:this.kinds_,kind:this.kind_,label:this.localize("Off")}
14)),e.forEach(function(e){e instanceof tb||e instanceof ty||t.push(e)}),t}}])&&tp(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(tv);const tT=t_;var tj=n(192),tw={};function tS(e){return tS="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tS(e)}function tx(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,(r=function(e,t){if("object"!==tS(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==tS(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===tS(r)?r:String(r)),i)}var r}function tk(e,t){return tk=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tk(e,t)}function tE(e){return tE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tE(e)}tw.styleTagTransform=y(),tw.setAttributes=f(),tw.insert=h().bind(null,"head"),tw.domAPI=c(),tw.insertStyleElement=g(),l()(tj.Z,tw),tj.Z&&tj.Z.locals&&tj.Z.locals;var tC=function(e){!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&&tk(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=tE(i);if(r){var n=tE(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tS(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=s.call(this,e,t)).addClass("videopress-spinner"),t.className&&n.addClass(t.className);var i=t.size||66;return n.el().style.width="".concat(i,"px"),n.el().style.height="".concat(i,"px"),n}return t=o,(n=[{key:"show",value:function(){this.addClass("show")}},{key:"hide",value:function(){this.removeClass("show")}}])&&tx(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default.getComponent("Component"));const tI="data:image/svg+xml;base64,PHN2ZyB2aWV3Qm94PSIwIDAgMjQgMjQiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+Cgk8cGF0aAoJZmlsbC1ydWxlPSJldmVub2RkIgoJY2xpcC1ydWxlPSJldmVub2RkIgoJZmlsbD0id2hpdGUiCgoJZD0iTTE3IDEwaC0xLjJWN2MwLTIuMS0xLjctMy44LTMuOC0zLjgtMi4xIDAtMy44IDEuNy0zLjggMy44djNIN2MtLjYgMC0xIC40LTEgMXY4YzAgLjYuNCAxIDEgMWgxMGMuNiAwIDEtLjQgMS0xdi04YzAtLjYtLjQtMS0xLTF6bS0yLjggMEg5LjhWN2MwLTEuMiAxLTIuMiAyLjItMi4yczIuMiAxIDIuMiAyLjJ2M3oiIC8+Cjwvc3ZnPgo=",tD="data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjkiIGhlaWdodD0iMjEiIHZpZXdCb3g9IjAgMCAyOSAyMSIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KICAgIDxwYXRoCiAgICAgICAgZmlsbC1ydWxlPSJldmVub2RkIgogICAgICAgIGNsaXAtcnVsZT0iZXZlbm9kZCIKICAgICAgICBkPSJNMi43OTAzNyAwLjU5Mzc1QzQuMDM2MyAwLjU5Mzc1IDUuMTMxMDIgMS40MTY1OCA1LjQ3MjE1IDIuNjA5NDdMOC44NDUyIDE0LjQwNDRDOC44NDg2IDE0LjQxNjQgOC44NTQxMSAxNC40MjczIDguODYxMjQgMTQuNDM2OEwxMi44NTcyIDAuNTkzNzVIMTUuMDkyN0gyMS4yNzIxQzI1LjYwMzMgMC41OTM3NSAyOC41MDY2IDMuMzk4OTIgMjguNTA2NiA3LjY0NTY1QzI4LjUwNjYgMTEuOTQxMSAyNS41MjcyIDE0LjYxOTYgMjEuMDgxOCAxNC42MTk2SDE4LjE0OTlIMTQuMzcxOUwxMy42Mzc5IDE2Ljg4MTNDMTIuOTc5NiAxOC45MDk1IDExLjA4MjcgMjAuMjgzOSA4Ljk0MTUyIDIwLjI4MzlDNi44MDAzNSAyMC4yODM5IDQuOTAzNDEgMTguOTA5NSA0LjI0NTE3IDE2Ljg4MTNMMC4xMzcwNjkgNC4yMjI3NkMtMC40NDQ2NzEgMi40MzAyMiAwLjg5ODAzOCAwLjU5Mzc1IDIuNzkwMzcgMC41OTM3NVpNMTUuNzM3NCAxMC40MTE5SDIwLjAxNTZDMjEuODcxOCAxMC40MTE5IDIyLjk4NTYgOS4zNTAxOCAyMi45ODU2IDcuNjQ1NjVDMjIuOTg1NiA1LjkzMTM3IDIxLjg3MTggNC45MTgzOSAyMC4wMTU2IDQuOTE4MzlIMTcuNTIwMkwxNS43Mzc0IDEwLjQxMTlaIgogICAgICAgIGZpbGw9IndoaXRlIiAvPgo8L3N2Zz4=";var tA=n(670),tM={};function tO(e){return tO="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tO(e)}function tP(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,(r=function(e,t){if("object"!==tO(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==tO(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===tO(r)?r:String(r)),i)}var r}
14function tN(e,t){return tN=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tN(e,t)}function tL(e){return tL=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tL(e)}tM.styleTagTransform=y(),tM.setAttributes=f(),tM.insert=h().bind(null,"head"),tM.domAPI=c(),tM.insertStyleElement=g(),l()(tA.Z,tM),tA.Z&&tA.Z.locals&&tA.Z.locals;var tR=function(e){!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&&tN(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=tL(i);if(r){var n=tL(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tO(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=s.call(this,e,t)).player=e,n.options=t,n}return t=o,n=[{key:"showPrivacyError",value:function(){var e="\n<h3>".concat(this.localize("This video is private"),"</h3>\n<p>").concat(this.localize("Make sure you are signed in and a member of the site."),' <a href="https://wordpress.com/support/videopress/#private-videos" target="_blank">').concat(this.localize("Learn More"),"</a></p>\n");this.showError({message:e,icon:tI})}},{key:"showRestrictedVideoError",value:function(e){var t=e?this.localize("This video belongs to a site in trial mode. Only the site owner is able to view it at this time."):this.localize("This siteâs video trial has expired."),n="\n<h3>".concat(this.localize("This video isnât available."),"</h3>\n<p>").concat(t,"</p>\n");this.showError({message:n,icon:tI})}},{key:"showError",value:function(e){var t=e.message,n=e.icon,i=void 0===n?tI:n,r=e.title,s=void 0===r?null:r,o=e.iconSize,a=void 0===o?[36,36]:o,l=document.createElement("div");l.innerHTML=this._renderErrorScreen({icon:i,message:t,title:s,iconSize:a}),this.player.createModal(l,{uncloseable:!0}).open()}},{key:"_renderErrorScreen",value:function(e){var t=e.icon,n=void 0===t?tI:t,i=e.message,r=void 0===i?"Unknown Error":i,s=e.title,o=void 0===s?null:s,a=e.iconSize,l=void 0===a?[36,36]:a,u=o?'<h3 class="videopress-error-title">'+o+"</h3>":"";return'\n<div class="vjs-modal-dialog videopress-error-screen">\n <img\n src='.concat(n,'\n width="').concat(l[0],'"\n height="').concat(l[1],'"\n />\n ').concat(u,'\n <span class="videopress-error-message">').concat(r,'</span>\n</div>\n<div class="videopress-error-screen__vp-logo">\n <img\n src=').concat(tD,'\n width="29"\n height="21"\n alt="VideoPress"\n />\n</div>')}}],n&&tP(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default.getComponent("Component"));function tU(e){return tU="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tU(e)}function tB(e,t){return tB=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tB(e,t)}function tz(e){return tz=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},tz(e)}var tF=function(e){!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&&tB(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=tz(n);if(i){var r=tz(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===tU(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),(n=r.call(this,e,t)).addClass("videopress-focus-anchor"),n}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getComponent("Component"));const tq=tF;function tV(e){var t=tH(e,"defaultColor","rgb(26, 26, 26)");return Array.isArray(t)||"string"!=typeof t?t:0===(t=t.trim().toLowerCase()).indexOf("rgb")?function(e){return e.replace(/[^0-9,]/g,"").split(",").map(function(e){return parseInt(e,10)})}(t):0===t.indexOf("#")?function(e){var t=e.replace(/[^0-9a-f]/gi,"");if(t.length<6){var n=6-t.length;t+="0".repeat(n)}else t.length>
146&&(t=t.slice(0,6));var i=parseInt(t,16);return[i>>16&255,i>>8&255,255&i]}(t):t}function tH(e,t,n){return void 0===e[t]?n:e[t]}function tW(e){if(e instanceof HTMLImageElement){var t=e.naturalWidth,n=e.naturalHeight;return e.naturalWidth||-1===e.src.search(/\.svg(\?|$)/i)||(t=n=100),{width:t,height:n}}return e instanceof HTMLVideoElement?{width:e.videoWidth,height:e.videoHeight}:{width:e.width,height:e.height}}function tG(e){return e instanceof HTMLCanvasElement?"canvas":e.src}function t$(e){return t$="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},t$(e)}function tQ(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}function tZ(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,(r=function(e,t){if("object"!==t$(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==t$(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===t$(r)?r:String(r)),i)}var r}var tY=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.canvas=null,this.ctx=null}var t,n;return t=e,n=[{key:"getColorAsync",value:function(e,t){var n=this;return new Promise(function(i,r){e?i(n.getColor(e,t)):r("call .getColorAsync() without resource.")})}},{key:"getBorderColorsAsync",value:function(e,t){var n=this;return new Promise(function(i,r){if(!e)return r("call .getBorderColorsAsync() without resource.");var s=!1,o=tV(t),a=tW(e),l=a.width,u=a.height,c=u/2,d=l/2,h=n.getColor(e,{height:c,silent:s}),p=n.getColor(e,{left:l-d,width:d,silent:s}),f=n.getColor(e,{width:d,silent:s}),m=n.getColor(e,{top:u-c,height:c,silent:s}),g=function(e){return e||o};i([g(h),g(p),g(m),g(f)])})}},{key:"getColor",value:function(e,t){var n=tV(t=t||{});if(!e)return this.outputError("call .getColor(null) without resource.",t.silent),this.prepareResult(n);var i=function(e,t){var n,i=tH(t,"left",0),r=tH(t,"top",0),s=tH(t,"width",e.width),o=tH(t,"height",e.height),a=s,l=o;return"precision"===t.mode||(s>o?(n=s/o,a=100,l=Math.round(a/n)):(n=o/s,l=100,a=Math.round(l/n)),(a>s||l>o||a<10||l<10)&&(a=s,l=o)),{srcLeft:i,srcTop:r,srcWidth:s,srcHeight:o,destWidth:a,destHeight:l}}(tW(e),t);if(!(i.srcWidth&&i.srcHeight&&i.destWidth&&i.destHeight))return this.outputError('incorrect sizes for resource "'.concat(tG(e),'".'),t.silent),this.prepareResult(n);if(this.canvas||(this.canvas="undefined"==typeof window?new OffscreenCanvas(1,1):document.createElement("canvas")),!this.ctx&&(this.ctx=this.canvas.getContext&&this.canvas.getContext("2d"),!this.ctx))return this.outputError("Canvas Context 2D is not supported in this browser.",t.silent),this.prepareResult(n);this.canvas.width=i.destWidth,this.canvas.height=i.destHeight;var r=n;try{this.ctx.clearRect(0,0,i.destWidth,i.destHeight),this.ctx.drawImage(e,i.srcLeft,i.srcTop,i.srcWidth,i.srcHeight,0,0,i.destWidth,i.destHeight);var s=this.ctx.getImageData(0,0,i.destWidth,i.destHeight).data,o=this.getColorFromArray4(s,t);o&&(r=o)}catch(n){this.outputError("security error (CORS) for resource ".concat(tG(e),".\nDetails: https://developer.mozilla.org/en/docs/Web/HTML/CORS_enabled_image"),t.silent,n)}return this.prepareResult(r)}},{key:"getColorFromArray4",value:function(e,t){t=t||{};var n=e.length,i=tV(t);if(n<4)return i;var r=n-n%4,s=4*(t.step||1);return this.sqrtAlgorithm(e,r,{defaultColor:i,step:s})}},{key:"sqrtAlgorithm",value:function(e,t,n){for(var i=0,r=0,s=0,o=0,a=n.step,l=0;l<t;l+=a,o++){var u=e[l],c=e[l+1],d=e[l+2];i+=u*u,r+=c*c,s+=d*d}return o>0&&0===i+r+s?null:o?[Math.round(Math.sqrt(i/o)),Math.round(Math.sqrt(r/o)),Math.round(Math.sqrt(s/o))]:n.defaultColor}},{key:"clipColor",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return Math.max(t,Math.min(n,e))}},{key:"clipRgb",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:255;return e.map(function(e){return t.clipColor(e,n,i)})}}
14,{key:"adjustBrightness",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return this.clipRgb(e.map(function(e){return Math.floor(e*t)}))}},{key:"calculateBrightness",value:function(e){var t,n,i=(n=3,function(e){if(Array.isArray(e))return e}(t=e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return a}}(t,n)||function(e,t){if(e){if("string"==typeof e)return tQ(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?tQ(e,t):void 0}}(t,n)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}());return(299*i[0]+587*i[1]+114*i[2])/1e3}},{key:"prepareResult",value:function(e){if(!Array.isArray(e))return null;var t=this.calculateBrightness(e),n=this.clipRgb(e.slice(0,3),30,255);return t>=200&&(n=this.adjustBrightness(n,.5)),t<=40&&(n=this.adjustBrightness(n,1.5)),"rgb("+n.join(",")+")"}},{key:"destroy",value:function(){this.canvas=null,this.ctx=null}},{key:"outputError",value:function(e,t,n){t||(console.error("FastAverageColor: "+e),n&&console.error(n))}}],n&&tZ(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();function tX(e){return tX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},tX(e)}function tK(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,(r=function(e,t){if("object"!==tX(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==tX(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===tX(r)?r:String(r)),i)}var r}function tJ(e,t){return tJ=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},tJ(e,t)}function t0(e,t){if(t&&("object"===tX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function t1(e){return t1=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},t1(e)}var t2=function(e){!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&&tJ(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=t1(i);if(r){var n=t1(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return t0(this,e)});function o(e,t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=s.call(this,e,t),!t.guid)return t0(n);if(!1===t.controls)return t0(n);var i=t.useAverageColor,r=void 0!==i&&i;n.rootElement=document.querySelector(":root"),n.playProgressBar=e.getDescendant(["controlBar","progressControl","seekBar","playProgressBar"]),n.loadProgressBar=e.getDescendant(["controlBar","progressControl","seekBar","loadProgressBar"]);var a=-1,l=function(){n.getAverageColor().getColorAsync(n.player.tech({IWillNotUseThisInPlugins:!0}).el()).then(function(e){e&&void 0!==n.playProgressBar&&(n.rootElement.style.setProperty("--vp-color-vjs-play-progress",e),void 0!==n.loadProgressBar&&n.loadProgressBar.el().getElementsByTagName("div")[0]&&n.rootElement.style.setProperty("--vp-color-vjs-load-progress",u(e,.5)))})},u=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return e.replace("rgb(","rgba(").replace(")",", ".concat(t.toString(),")"))};return e.on("timeupdate",function(){var i=Math.round(e.currentTime());r&&0==i%2&&a!==i&&(a=i,l(),n.getAverageColor().getBorderColorsAsync(n.player.tech({IWillNotUseThisInPlugins:!0}).el(),t).then(function(e){e&&void 0!==n.playProgressBar&&n.player.api.controls.setBorderColors(e)}))}),e.on("seeked",function(){r&&l()}),n}return t=o,(n=[{key:"getAverageColor",value:function(){return this.averageColor||(this.averageColor=new tY),this.averageColor}},{key:"dispose",value:function(){this.averageColor&&this.averageColor.destroy()}}])&&tK(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default.getPlugin("plugin"));const t4=t2;var t3,t5,t8,t6,t9,t7,ne,nt={},nn=[],ni=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i;function nr(e,t){for(var n in t)e[n]=t[n];return e}function ns(e){var t=e.parentNode;t&&t.removeChild(e)}function no(e,t,n){var i,r,s,o={};for(s in t)"key"==s?i=t[s]:"ref"==s?r=t[s]:o[s]=t[s];if(arguments.length>2&&(o.children=arguments.length>3?t3.call(arguments,2):n),"function"==typeof e&&null!=e.defaultProps)for(s in e.defaultProps)void 0===o[s]&&(o[s]=e.defaultProps[s]);return na(e,o,i,r,null)}function na(e,t,n,i,r){var s={type:e,props:t,key:n,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,__h:null,constructor:void 0,__v:null==r?++t8:r};return null==r&&null!=t5.vnode&&t5.vnode(s),s}function nl(e){return e.children}function nu(e,t){this.props=e,this.context=t}function nc(e,t){if(null==t)return e.__?nc(e.__,e.__.__k.indexOf(e)+1):null;for(var n;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e)return n.__e;return"function"==typeof e.type?nc(e):null}
vendor: 4,582 bytes, line 14
14function nd(e){var t,n;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(n=e.__k[t])&&null!=n.__e){e.__e=e.__c.base=n.__e;break}return nd(e)}}function nh(e){(!e.__d&&(e.__d=!0)&&t6.push(e)&&!np.__r++||t9!==t5.debounceRendering)&&((t9=t5.debounceRendering)||t7)(np)}function np(){var e,t,n,i,r,s,o,a;for(t6.sort(ne);e=t6.shift();)e.__d&&(t=t6.length,i=void 0,r=void 0,o=(s=(n=e).__v).__e,(a=n.__P)&&(i=[],(r=nr({},s)).__v=s.__v+1,nw(a,s,r,n.__n,void 0!==a.ownerSVGElement,null!=s.__h?[o]:null,i,null==o?nc(s):o,s.__h),nS(i,s),s.__e!=o&&nd(s)),t6.length>t&&t6.sort(ne));np.__r=0}function nf(e,t,n,i,r,s,o,a,l,u){var c,d,h,p,f,m,g,v=i&&i.__k||nn,y=v.length;for(n.__k=[],c=0;c<t.length;c++)if(null!=(p=n.__k[c]=null==(p=t[c])||"boolean"==typeof p||"function"==typeof p?null:"string"==typeof p||"number"==typeof p||"bigint"==typeof p?na(null,p,null,null,p):Array.isArray(p)?na(nl,{children:p},null,null,null):p.__b>0?na(p.type,p.props,p.key,p.ref?p.ref:null,p.__v):p)){if(p.__=n,p.__b=n.__b+1,null===(h=v[c])||h&&p.key==h.key&&p.type===h.type)v[c]=void 0;else for(d=0;d<y;d++){if((h=v[d])&&p.key==h.key&&p.type===h.type){v[d]=void 0;break}h=null}nw(e,p,h=h||nt,r,s,o,a,l,u),f=p.__e,(d=p.ref)&&h.ref!=d&&(g||(g=[]),h.ref&&g.push(h.ref,null,p),g.push(d,p.__c||f,p)),null!=f?(null==m&&(m=f),"function"==typeof p.type&&p.__k===h.__k?p.__d=l=nm(p,l,e):l=nv(e,p,h,v,f,l),"function"==typeof n.type&&(n.__d=l)):l&&h.__e==l&&l.parentNode!=e&&(l=nc(h))}for(n.__e=m,c=y;c--;)null!=v[c]&&("function"==typeof n.type&&null!=v[c].__e&&v[c].__e==n.__d&&(n.__d=ny(i).nextSibling),nE(v[c],v[c]));if(g)for(c=0;c<g.length;c++)nk(g[c],g[++c],g[++c])}function nm(e,t,n){for(var i,r=e.__k,s=0;r&&s<r.length;s++)(i=r[s])&&(i.__=e,t="function"==typeof i.type?nm(i,t,n):nv(n,i,i,r,i.__e,t));return t}function ng(e,t){return t=t||[],null==e||"boolean"==typeof e||(Array.isArray(e)?e.some(function(e){ng(e,t)}):t.push(e)),t}function nv(e,t,n,i,r,s){var o,a,l;if(void 0!==t.__d)o=t.__d,t.__d=void 0;else if(null==n||r!=s||null==r.parentNode)e:if(null==s||s.parentNode!==e)e.appendChild(r),o=null;else{for(a=s,l=0;(a=a.nextSibling)&&l<i.length;l+=1)if(a==r)break e;e.insertBefore(r,s),o=s}return void 0!==o?o:r.nextSibling}function ny(e){var t,n,i;if(null==e.type||"string"==typeof e.type)return e.__e;if(e.__k){for(t=e.__k.length-1;t>=0;t--)if((n=e.__k[t])&&(i=ny(n)))return i}return null}function nb(e,t,n){"-"===t[0]?e.setProperty(t,null==n?"":n):e[t]=null==n?"":"number"!=typeof n||ni.test(t)?n:n+"px"}function n_(e,t,n,i,r){var s;e:if("style"===t)if("string"==typeof n)e.style.cssText=n;else{if("string"==typeof i&&(e.style.cssText=i=""),i)for(t in i)n&&t in n||nb(e.style,t,"");if(n)for(t in n)i&&n[t]===i[t]||nb(e.style,t,n[t])}else if("o"===t[0]&&"n"===t[1])s=t!==(t=t.replace(/Capture$/,"")),t=t.toLowerCase() in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}),e.l[t+s]=n,n?i||e.addEventListener(t,s?nj:nT,s):e.removeEventListener(t,s?nj:nT,s);else if("dangerouslySetInnerHTML"!==t){if(r)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if("width"!==t&&"height"!==t&&"href"!==t&&"list"!==t&&"form"!==t&&"tabIndex"!==t&&"download"!==t&&t in e)try{e[t]=null==n?"":n;break e}catch(e){}"function"==typeof n||(null==n||!1===n&&"-"!==t[4]?e.removeAttribute(t):e.setAttribute(t,n))}}function nT(e){return this.l[e.type+!1](t5.event?t5.event(e):e)}function nj(e){return this.l[e.type+!0](t5.event?t5.event(e):e)}function nw(e,t,n,i,r,s,o,a,l){var u,c,d,h,p,f,m,g,v,y,b,_,T,j,w,S=t.type;if(void 0!==t.constructor)return null;null!=n.__h&&(l=n.__h,a=t.__e=n.__e,t.__h=null,s=[a]),(u=t5.__b)&&u(t);try{e:if("function"==typeof S){if(g=t.props,v=(u=S.contextType)&&i[u.__c],y=u?v?v.props.value:u.__:i,n.__c?m=(c=t.__c=n.__c).__=c.__E:("prototype"in S&&S.prototype.render?t.__c=c=new S(g,y):(t.__c=c=new nu(g,y),c.constructor=S,c.render=nC),v&&v.sub(c),c.props=g,c.state||(c.state={}),c.context=y,c.__n=i,d=c.__d=!0,c.__h=[],c._sb=[]),null==c.__s&&(c.__s=c.state),null!=S.getDerivedStateFromProps&&(c.__s==c.state&&(c.__s=nr({},c.__s)),nr(c.__s,S.getDerivedStateFromProps(g,c.__s))),h=c.props,p=c.state,c.__v=t,d)null==S.getDerivedStateFromProps&&null!=c.componentWillMount&&c.componentWillMount(),null!=c.componentDidMount&&c.__h.push(c.componentDidMount);else{if(null==S.getDerivedStateFromProps&&g!==h&&null!=c.componentWillReceiveProps&&c.componentWillReceiveProps(g,y),!c.__e&&null!=c.shouldComponentUpdate&&!1===c.shouldComponentUpdate(g,c.__s,y)||t.__v===n.__v){for(t.__v!==n.__v&&(c.props=g,c.state=c.__s,c.__d=!1),c.__e=!1,t.__e=n.__e,t.__k=n.__k,t.__k.forEac
vendor: 4,055 bytes, line 14
14h(function(e){e&&(e.__=t)}),b=0;b<c._sb.length;b++)c.__h.push(c._sb[b]);c._sb=[],c.__h.length&&o.push(c);break e}null!=c.componentWillUpdate&&c.componentWillUpdate(g,c.__s,y),null!=c.componentDidUpdate&&c.__h.push(function(){c.componentDidUpdate(h,p,f)})}if(c.context=y,c.props=g,c.__P=e,_=t5.__r,T=0,"prototype"in S&&S.prototype.render){for(c.state=c.__s,c.__d=!1,_&&_(t),u=c.render(c.props,c.state,c.context),j=0;j<c._sb.length;j++)c.__h.push(c._sb[j]);c._sb=[]}else do{c.__d=!1,_&&_(t),u=c.render(c.props,c.state,c.context),c.state=c.__s}while(c.__d&&++T<25);c.state=c.__s,null!=c.getChildContext&&(i=nr(nr({},i),c.getChildContext())),d||null==c.getSnapshotBeforeUpdate||(f=c.getSnapshotBeforeUpdate(h,p)),w=null!=u&&u.type===nl&&null==u.key?u.props.children:u,nf(e,Array.isArray(w)?w:[w],t,n,i,r,s,o,a,l),c.base=t.__e,t.__h=null,c.__h.length&&o.push(c),m&&(c.__E=c.__=null),c.__e=!1}else null==s&&t.__v===n.__v?(t.__k=n.__k,t.__e=n.__e):t.__e=nx(n.__e,t,n,i,r,s,o,l);(u=t5.diffed)&&u(t)}catch(e){t.__v=null,(l||null!=s)&&(t.__e=a,t.__h=!!l,s[s.indexOf(a)]=null),t5.__e(e,t,n)}}function nS(e,t){t5.__c&&t5.__c(t,e),e.some(function(t){try{e=t.__h,t.__h=[],e.some(function(e){e.call(t)})}catch(e){t5.__e(e,t.__v)}})}function nx(e,t,n,i,r,s,o,a){var l,u,c,d=n.props,h=t.props,p=t.type,f=0;if("svg"===p&&(r=!0),null!=s){for(;f<s.length;f++)if((l=s[f])&&"setAttribute"in l==!!p&&(p?l.localName===p:3===l.nodeType)){e=l,s[f]=null;break}}if(null==e){if(null===p)return document.createTextNode(h);e=r?document.createElementNS("http://www.w3.org/2000/svg",p):document.createElement(p,h.is&&h),s=null,a=!1}if(null===p)d===h||a&&e.data===h||(e.data=h);else{if(s=s&&t3.call(e.childNodes),u=(d=n.props||nt).dangerouslySetInnerHTML,c=h.dangerouslySetInnerHTML,!a){if(null!=s)for(d={},f=0;f<e.attributes.length;f++)d[e.attributes[f].name]=e.attributes[f].value;(c||u)&&(c&&(u&&c.__html==u.__html||c.__html===e.innerHTML)||(e.innerHTML=c&&c.__html||""))}if(function(e,t,n,i,r){var s;for(s in n)"children"===s||"key"===s||s in t||n_(e,s,null,n[s],i);for(s in t)r&&"function"!=typeof t[s]||"children"===s||"key"===s||"value"===s||"checked"===s||n[s]===t[s]||n_(e,s,t[s],n[s],i)}(e,h,d,r,a),c)t.__k=[];else if(f=t.props.children,nf(e,Array.isArray(f)?f:[f],t,n,i,r&&"foreignObject"!==p,s,o,s?s[0]:n.__k&&nc(n,0),a),null!=s)for(f=s.length;f--;)null!=s[f]&&ns(s[f]);a||("value"in h&&void 0!==(f=h.value)&&(f!==e.value||"progress"===p&&!f||"option"===p&&f!==d.value)&&n_(e,"value",f,d.value,!1),"checked"in h&&void 0!==(f=h.checked)&&f!==e.checked&&n_(e,"checked",f,d.checked,!1))}return e}function nk(e,t,n){try{"function"==typeof e?e(t):e.current=t}catch(e){t5.__e(e,n)}}function nE(e,t,n){var i,r;if(t5.unmount&&t5.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||nk(i,null,t)),null!=(i=e.__c)){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(e){t5.__e(e,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(r=0;r<i.length;r++)i[r]&&nE(i[r],t,n||"function"!=typeof e.type);n||null==e.__e||ns(e.__e),e.__=e.__e=e.__d=void 0}function nC(e,t,n){return this.constructor(e,n)}function nI(e,t,n){var i,r,s;t5.__&&t5.__(e,t),r=(i="function"==typeof n)?null:n&&n.__k||t.__k,s=[],nw(t,e=(!i&&n||t).__k=no(nl,null,[e]),r||nt,nt,void 0!==t.ownerSVGElement,!i&&n?[n]:r?null:t.firstChild?t3.call(t.childNodes):null,s,!i&&n?n:r?r.__e:t.firstChild,i),nS(s,e)}t3=nn.slice,t5={__e:function(e,t,n,i){for(var r,s,o;t=t.__;)if((r=t.__c)&&!r.__)try{if((s=r.constructor)&&null!=s.getDerivedStateFromError&&(r.setState(s.getDerivedStateFromError(e)),o=r.__d),null!=r.componentDidCatch&&(r.componentDidCatch(e,i||{}),o=r.__d),o)return r.__E=r}catch(t){e=t}throw e}},t8=0,nu.prototype.setState=function(e,t){var n;n=null!=this.__s&&this.__s!==this.state?this.__s:this.__s=nr({},this.state),"function"==typeof e&&(e=e(nr({},n),this.props)),e&&nr(n,e),null!=e&&this.__v&&(t&&this._sb.push(t),nh(this))},nu.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),nh(this))},nu.prototype.render=nl,t6=[],t7="function"==typeof Promise?Promise.prototype.then.bind(Prom
vendor: 8,640 bytes, line 14
14ise.resolve()):setTimeout,ne=function(e,t){return e.__v.__b-t.__v.__b},np.__r=0;var nD,nA,nM,nO,nP=0,nN=[],nL=[],nR=t5.__b,nU=t5.__r,nB=t5.diffed,nz=t5.__c,nF=t5.unmount;function nq(e,t){t5.__h&&t5.__h(nA,e,nP||t),nP=0;var n=nA.__H||(nA.__H={__:[],__h:[]});return e>=n.__.length&&n.__.push({__V:nL}),n.__[e]}function nV(e){return nP=1,nH(nY,e)}function nH(e,t,n){var i=nq(nD++,2);if(i.t=e,!i.__c&&(i.__=[n?n(t):nY(void 0,t),function(e){var t=i.__N?i.__N[0]:i.__[0],n=i.t(t,e);t!==n&&(i.__N=[n,i.__[1]],i.__c.setState({}))}],i.__c=nA,!nA.u)){var r=function(e,t,n){if(!i.__c.__H)return!0;var r=i.__c.__H.__.filter(function(e){return e.__c});if(r.every(function(e){return!e.__N}))return!s||s.call(this,e,t,n);var o=!1;return r.forEach(function(e){if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(o=!0)}}),!(!o&&i.__c.props===e)&&(!s||s.call(this,e,t,n))};nA.u=!0;var s=nA.shouldComponentUpdate,o=nA.componentWillUpdate;nA.componentWillUpdate=function(e,t,n){if(this.__e){var i=s;s=void 0,r(e,t,n),s=i}o&&o.call(this,e,t,n)},nA.shouldComponentUpdate=r}return i.__N||i.__}function nW(){for(var e;e=nN.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(nQ),e.__H.__h.forEach(nZ),e.__H.__h=[]}catch(t){e.__H.__h=[],t5.__e(t,e.__v)}}t5.__b=function(e){nA=null,nR&&nR(e)},t5.__r=function(e){nU&&nU(e),nD=0;var t=(nA=e.__c).__H;t&&(nM===nA?(t.__h=[],nA.__h=[],t.__.forEach(function(e){e.__N&&(e.__=e.__N),e.__V=nL,e.__N=e.i=void 0})):(t.__h.forEach(nQ),t.__h.forEach(nZ),t.__h=[])),nM=nA},t5.diffed=function(e){nB&&nB(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==nN.push(t)&&nO===t5.requestAnimationFrame||((nO=t5.requestAnimationFrame)||n$)(nW)),t.__H.__.forEach(function(e){e.i&&(e.__H=e.i),e.__V!==nL&&(e.__=e.__V),e.i=void 0,e.__V=nL})),nM=nA=null},t5.__c=function(e,t){t.some(function(e){try{e.__h.forEach(nQ),e.__h=e.__h.filter(function(e){return!e.__||nZ(e)})}catch(n){t.some(function(e){e.__h&&(e.__h=[])}),t=[],t5.__e(n,e.__v)}}),nz&&nz(e,t)},t5.unmount=function(e){nF&&nF(e);var t,n=e.__c;n&&n.__H&&(n.__H.__.forEach(function(e){try{nQ(e)}catch(e){t=e}}),n.__H=void 0,t&&t5.__e(t,n.__v))};var nG="function"==typeof requestAnimationFrame;function n$(e){var t,n=function(){clearTimeout(i),nG&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(n,100);nG&&(t=requestAnimationFrame(n))}function nQ(e){var t=nA,n=e.__c;"function"==typeof n&&(e.__c=void 0,n()),nA=t}function nZ(e){var t=nA;e.__c=e.__(),nA=t}function nY(e,t){return"function"==typeof t?t(e):t}function nX(e,t){for(var n in t)e[n]=t[n];return e}function nK(e,t){for(var n in e)if("__source"!==n&&!(n in t))return!0;for(var i in t)if("__source"!==i&&e[i]!==t[i])return!0;return!1}function nJ(e){this.props=e}(nJ.prototype=new nu).isPureReactComponent=!0,nJ.prototype.shouldComponentUpdate=function(e,t){return nK(this.props,e)||nK(this.state,t)};var n0=t5.__b;t5.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),n0&&n0(e)};"undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.forward_ref");var n1=t5.__e;t5.__e=function(e,t,n,i){if(e.then){for(var r,s=t;s=s.__;)if((r=s.__c)&&r.__c)return null==t.__e&&(t.__e=n.__e,t.__k=n.__k),r.__c(e,t)}n1(e,t,n,i)};var n2=t5.unmount;function n4(e,t,n){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(e){"function"==typeof e.__c&&e.__c()}),e.__c.__H=null),null!=(e=nX({},e)).__c&&(e.__c.__P===n&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(e){return n4(e,t,n)})),e}function n3(e,t,n){return e&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(e){return n3(e,t,n)}),e.__c&&e.__c.__P===t&&(e.__e&&n.insertBefore(e.__e,e.__d),e.__c.__e=!0,e.__c.__P=n)),e}function n5(){this.__u=0,this.t=null,this.__b=null}function n8(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function n6(){this.u=null,this.o=null}t5.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&!0===e.__h&&(e.type=null),n2&&n2(e)},(n5.prototype=new nu).__c=function(e,t){var n=t.__c,i=this;null==i.t&&(i.t=[]),i.t.push(n);var r=n8(i.__v),s=!1,o=function(){s||(s=!0,n.__R=null,r?r(a):a())};n.__R=o;var a=function(){if(!--i.__u){if(i.state.__a){var e=i.state.__a;i.__v.__k[0]=n3(e,e.__c.__P,e.__c.__O)}var t;for(i.setState({__a:i.__b=null});t=i.t.pop();)t.forceUpdate()}},l=!0===t.__h;i.__u++||l||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(o,o)},n5.prototype.componentWillUnmount=function(){this.t=[]},n5.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var n=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=n4(this.__b,n,i.__O=i.__P)}this.__b=null}var r=t.__a&&no(nl,null,e.fallback);return r&&(r.__h=null),[no(nl,null,t.__a?null:e.children),r]};var n9=function(e,t,n){if(++n[1]===n[0]&&e.o.delete(t),e.props.revealOrder&&("t"!==e.props.revealOrder[0]||!e.o.size))for(n=e.u;n;){for(;n.length>3;)n.pop()();if(n[1]<n[0])break;e.u=n=n[2]}};(n6.prototype=new nu).__a=function(e){var t=this,n=n8(t.__v),i=t.o.get(e);return i[0]++,function(r){var s=function(){t.props.revealOrder?(i.push(r),n9(t,e,i)):r()};n?n(s):s()}},n6.prototype.render=function(e){this.u=null,this.o=new Map;var t=ng(e.children);e.revealOrder&&"b"===e.revealOrder[0]&&t.reverse();for(var n=t.length;n--;)this.o.set(t[n],this.u=[1,0,this.u]);return e.children},n6.prototype.componentDidUpdate=n6.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,n){n9(e,n,t)})};var n7="undefined"!=typeof Symbol&&Symbol.for&&Symbol.for("react.element")||60103,ie=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,it=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,ii=/[A-Z0-9]/g,ir="undefined"!=typeof document,is=function(e){return("undefined"!=typeof Symbol&&"symbol"==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e)};nu.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(nu.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var io=t5.event;function ia(){}function il(){return this.cancelBubble}function iu(){return this.defaultPrevented}t5.event=function(e){return io&&(e=io(e)),e.persist=ia,e.isPropagationStopped=il,e.isDefaultPrevented=iu,e.nativeEvent=e};var ic={enumerable:!1,configurable:!0,get:function(){return this.class}},id=t5.vnode;t5.vnode=function(e){"string"==typeof e.type&&function(e){var t=e.props,n=e.type,i={};for(var r in t){var s=t[r];if(!("value"===r&&"defaultValue"in t&&null==s||ir&&"children"===r&&"noscript"===n||"class"===r||"className"===r)){var o=r.toLowerCase();"defaultValue"===r&&"value"in t&&null==t.value?r="value":"download"===r&&!0===s?s="":"ondoubleclick"===o?r="ondblclick":"onchange"!==o||"input"!==n&&"textarea"!==n||is(t.type)?"onfocus"===o?r="onfocusin":"onblur"===o?r="onfocusout":it.test(r)?r=o:-1===n.indexOf("-")&&ie.test(r)?r=r.replace(ii,"-$&").toLowerCase():null===s&&(s=void 0):o=r="oninput","oninput"===o&&i[r=o]&&(r="oninputCapture"),i[r]=s}}"select"==n&&i.multiple&&Array.isArray(i.value)&&(i.value=ng(t.children).forEach(function(e){e.props.selected=-1!=i.value.indexOf(e.props.value)})),"select"==n&&null!=i.defaultValue&&(i.value=ng(t.children).forEach(function(e){e.props.selected=i.multiple?-1!=i.defaultValue.indexOf(e.props.value):i.defaultValue==e.props.value})),t.class&&!t.className?(i.class=t.class,Object.defineProperty(i,"className",ic)):(t.className&&!t.class||t.class&&t.className)&&(i.class=i.className=t.className),e.props=i}(e),e.$$typeof=n7,id&&id(e)};var ih=t5.__r;t5.__r=function(e){ih&&ih(e),e.__c};var ip=t5.diffed;t5.diffed=function(e){ip&&ip(e);var t=e.props,n=e.__e;null!=n&&"textarea"===e.type&&"value"in t&&t.value!==n.value&&(n.value=null==t.value?"":t.value),null};var im=function(e,t,n){return null==t.__k&&(t.textContent=""),nI(e,t),"function"==typeof n&&n(),e?e.__c:null},ig=no,iv=nl,iy=nu,ib=n(931),i_={};function iT(e){return iT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iT(e)}function ij(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}
14finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iw(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iw(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iw(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}function iS(){return iS=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},iS.apply(this,arguments)}function ix(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,(r=function(e,t){if("object"!==iT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==iT(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===iT(r)?r:String(r)),i)}var r}function ik(e,t){return ik=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ik(e,t)}function iE(e){return iE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iE(e)}i_.styleTagTransform=y(),i_.setAttributes=f(),i_.insert=h().bind(null,"head"),i_.domAPI=c(),i_.insertStyleElement=g(),l()(ib.Z,i_),ib.Z&&ib.Z.locals&&ib.Z.locals;var iC=r.default.getComponent("Component"),iI=r.default.getComponent("ModalDialog"),iD=function(e){!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&&ik(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=iE(i);if(r){var n=iE(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===iT(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),n=s.call(this,e,t),"className"in t&&e.addClass(t.className),n.elem=document.createElement("div"),n.modal=new iI(e,{temporary:!1,fillAlways:!0,pauseOnOpen:!1,content:n.elem}),n.addChild(n.modal),n}return t=o,(n=[{key:"open",value:function(e){var t=this;this.modal.open(),im(ig(iA,iS({},e,{player:this.player(),localize:function(e,n,i){return t.localize(e,n,i)}})),this.elem)}},{key:"close",value:function(){this.modal.close()}}])&&ix(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(iC),iA=function(e){var t=e.guid,n=e.currentTime,i=e.player,r=e.isPrivate,s=e.canDisplayEmbed,o=e.canDisplayDownload,a=e.downloadUrl,l=e.localize,u=parseFloat(getComputedStyle(i.el()).height),c="videopress-share-dialog__inner";return u<=170?c+=" videopress-size-xs":u<=280?c+=" videopress-size-s":u<=380&&(c+=" videopress-size-m"),ig("div",{className:"videopress-share-dialog",onClick:function(e){e.target.classList.contains("videopress-share-dialog")&&i.director().trigger("share-dialog-close")},role:"presentation"},ig("div",{className:c},s&&ig(iM,iS({},{guid:t,currentTime:n,isPrivate:r},{localize:l})),o&&ig(iO,{downloadUrl:a,localize:l})))},iM=function(e){var t=e.guid,n=e.currentTime,i=e.isPrivate,s=e.localize,o=ij(nV(!1),2),a=o[0],l=o[1],u=ij(nV(!1),2),c=u[0],d=u[1],h=ij(nV(!1),2),p=h[0],f=h[1],m=ij(nV(!1),2),g=m[0],v=m[1],y=ij(nV(!1),2),b=y[0],_=y[1];if(!t)return ig("div",null,"No video guid, can't show share screen");var T=function(e){return navigator&&navigator.clipboard?(navigator.clipboard.writeText(e.innerText),!0):j(e)},j=function(e){var t=document.createElement("div");t.style.position="absolute",t.style.left="-1000px",t.style.width="0px",t.style.height="0px",t.innerText=e.innerText,document.body.appendChild(t);var n=document.createRange();n.selectNode(t),window.getSelection().addRange(n);var i=document.execCommand("copy");return i&&window.getSelection().removeAllRanges(),document.body.removeChild(t),i},w={};a&&(w.at=n),p&&(w.loop=1),c&&(w.autoPlay=1);var S="";if(!ep()(w)){var x=[];
14Object.keys(w).forEach(function(e){x.push("".concat(e,"=").concat(w[e]))}),S="?".concat(x.join("&"))}var k=i?"video.wordpress.com":"videopress.com",E="https://".concat(k,"/v/").concat(t).concat(S),C="https://".concat(k,"/embed/").concat(t).concat(S),I=i?"https://video.wordpress.com/wp-content/plugins/video/assets/js/next/videopress-iframe.js":"https://videopress.com/videopress-iframe.js",D='<iframe width="560" height="315" src="'.concat(C,'" frameborder="0" allowfullscreen allow="clipboard-write"></iframe>'),A='<script src="'.concat(I,'"></script>');return ig(nl,null,ig("div",null,ig("div",{className:"videopress-share-dialog__title"},s("Link")),ig("div",{className:"videopress-share-dialog__link ".concat(g?s("Copied"):"")},ig("div",{id:"link",className:"text"},E),ig("button",{className:"copy-button",onClick:function(e){T(e.target.parentNode.childNodes[0])&&(v(!0),setTimeout(function(){v(!1)},1e3))}},s(g?"Copied":"Copy")))),ig("div",{className:"videopress-share-dialog__options"},ig("div",{className:"videopress-share-dialog__option option_playtime"},ig("input",{id:"at",className:"videopress-share-dialog__at",type:"checkbox",onClick:function(){l(!a)}}),ig("label",{htmlFor:"at",className:"videopress-share-dialog__playtime"},s("Start at {1}",[r.default.time.formatTime(n,600)]))),ig("div",{className:"videopress-share-dialog__option option_loop"},ig("input",{id:"loop",className:"videopress-share-dialog__loop",type:"checkbox",onClick:function(){f(!p)}}),ig("label",{htmlFor:"loop"},s("Loop"))),ig("div",{className:"videopress-share-dialog__option option_autoplay"},ig("input",{id:"autoplay",className:"videopress-share-dialog__autoplay",type:"checkbox",onClick:function(){d(!c)}}),ig("label",{htmlFor:"autoplay"},s("Autoplay")))),ig("div",null,ig("div",{className:"videopress-share-dialog__embed-title"},ig("div",{className:"videopress-share-dialog__title"},s("Embed (HTML)")),ig("button",{className:"raised-copy-button",onClick:function(e){T(e.target.parentNode.parentNode.childNodes[1].childNodes[0])&&(_(!0),setTimeout(function(){_(!1)},1e3))}},s(b?"Copied":"Copy"))),ig("div",{className:"videopress-share-dialog__embed ".concat(b?s("Copied"):"")},ig("div",{id:"embed",className:"text"},D,ig("br",null),A))))},iO=function(e){var t=e.downloadUrl,n=e.localize;return ig("a",{className:"videopress-share-dialog-download-button",href:t,download:t,target:"_blank"},n("Download this video"))},iP=n(4834),iN={};function iL(e){return iL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iL(e)}function iR(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return a}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iU(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?iU(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function iU(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}function iB(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,iV(i.key),i)}}function iz(e,t){return iz=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},iz(e,t)}function iF(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function iq(e){return iq=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},iq(e)}function iV(e){var t=function(e,t){if("object"!==iL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==iL(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===iL(t)?t:String(t)}
14iN.styleTagTransform=y(),iN.setAttributes=f(),iN.insert=h().bind(null,"head"),iN.domAPI=c(),iN.insertStyleElement=g(),l()(iP.Z,iN),iP.Z&&iP.Z.locals&&iP.Z.locals;var iH=function(e){!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&&iz(e,t)}(a,e);var t,n,i,s,o=(i=a,s=function(){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(){var e,t=iq(i);if(s){var n=iq(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===iL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return iF(e)}(this,e)});function a(e,t){var n,i,s,l;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),i=iF(n=o.call(this,e,t)),l=function(e,t,i){n.showLoadingIndicator(),n.player().director().trigger("update-viewer-birthdate",{m:e,d:t,y:i})},(s=iV(s="handleAgeSubmit"))in i?Object.defineProperty(i,s,{value:l,enumerable:!0,configurable:!0,writable:!0}):i[s]=l,r.default.registerComponent("Spinner",tC);var u=document.createElement("div");return n.modal=e.createModal(u,{uncloseable:!0}),n.modal.addClass("videopress-age-gate__modal-dialog"),n.modal.open(),n.renderAgeGate(),n.spinner=n.modal.addChild("Spinner"),n}return t=a,(n=[{key:"hide",value:function(){this.hideLoadingIndicator(),this.modal.close()}},{key:"show",value:function(){this.modal.open()}},{key:"showLoadingIndicator",value:function(){this.spinner.show(),this.setState({isLoading:!0}),this.renderAgeGate()}},{key:"hideLoadingIndicator",value:function(){this.spinner.hide(),this.setState({isLoading:!1}),this.renderAgeGate()}},{key:"showError",value:function(e){this.setState({errorMessage:e}),this.renderAgeGate()}},{key:"renderAgeGate",value:function(){var e,t=this;im(ig(iW,{onAgeSubmit:this.handleAgeSubmit,isLoading:this.state.isLoading,errorMessage:null!==(e=this.state.errorMessage)&&void 0!==e?e:"",localize:function(e,n,i){return t.localize(e,n,i)}}),this.modal.contentEl())}}])&&iB(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(r.default.getComponent("Component")),iW=function(e){var t=e.onAgeSubmit,n=e.errorMessage,i=e.isLoading,r=e.localize,s=iR(nV(null),2),o=s[0],a=s[1],l=iR(nV(null),2),u=l[0],c=l[1],d=iR(nV(null),2),h=d[0],p=d[1],f=(new Intl.DateTimeFormat).formatToParts(),m=!0;f.some(function(e){return"day"===e.type||"month"===e.type&&(m=!1,!0)});var g=function(e){var t=e.target.value;switch(e.target.name){case"m":a(t);break;case"d":c(t);break;case"y":p(t)}},v=""!==n,y=i&&!v,b=!v&&!y;return ig("div",{className:"videopress-age-gate"},ig("div",{className:"videopress-error-screen__vp-logo"},ig("img",{src:tD,width:"29",height:"21",alt:"VideoPress"})),ig("div",{className:"wrap"},y||ig(iv,null,ig("img",{src:tI,width:"48px",height:"48px",alt:""}),ig("h3",null,r("This video may display mature content."))),v&&ig("p",{className:"error"},n),b&&ig(iv,null,ig("p",null,r("Please enter your birth date")),ig("form",{onSubmit:function(e){e.preventDefault(),t(o,u,h)}},ig("div",{className:"input-list"},ig("input",{className:m?"dd":"mm",autoComplete:"off",name:m?"d":"m",type:"text",maxLength:2,placeholder:r(m?"DD":"MM"),pattern:"[0-9]+",value:m?u:o,onChange:g}),ig("input",{className:m?"mm":"dd",autoComplete:"off",name:m?"m":"d",type:"text",maxLength:2,placeholder:r(m?"MM":"DD"),pattern:"[0-9]+",value:m?o:u,onChange:g}),ig("input",{className:"yyyy",autoComplete:"off",name:"y",type:"text",maxLength:4,placeholder:r("YYYY"),pattern:"[0-9][0-9][0-9][0-9]",value:h,onChange:g})),ig("button",{id:"submitButton"},r("Continue"))))))};const iG=iH;var i$=n(3105),iQ=n.n(i$),iZ=n(3311),iY=n.n(iZ),iX=n(8721),iK=n.n(iX);function iJ(e){return iJ="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},iJ(e)}
14function i0(e,t){return i0=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i0(e,t)}function i1(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function i2(){return i2="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,n){var i=function(e,t){for(;!Object.prototype.hasOwnProperty.call(e,t)&&null!==(e=i4(e)););return e}(e,t);if(i){var r=Object.getOwnPropertyDescriptor(i,t);return r.get?r.get.call(arguments.length<3?e:n):r.value}},i2.apply(this,arguments)}function i4(e){return i4=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},i4(e)}function i3(e,t,n){return(t=i5(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function i5(e){var t=function(e,t){if("object"!==iJ(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==iJ(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===iJ(t)?t:String(t)}var i8=function(e){!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&&i0(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=i4(n);if(i){var r=i4(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===iJ(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return i1(e)}(this,e)});function s(e,t){var n,i;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i3(i1(i=r.call(this,e,t)),"startPollingInfoEndpoint",function(e,t){i.fetchTimeout||(i.fetchTimeout=setInterval(function(){return i.player.api.wpcom.videoInfo(e,t)},5e3))}),i3(i1(i),"stopPollingInfoEndpoint",function(){i.fetchTimeout&&(clearInterval(i.fetchTimeout),i.fetchTimeout=null)}),i3(i1(i),"dispose",function(){i2((n=i1(i),i4(s.prototype)),"dispose",n).call(n),i.stopPollingInfoEndpoint()});var o=t.token||"";o&&e.setState({metadataToken:o});var a=e.api.wpcom;return a.onTokenReceived(function(t,n){e.setState({metadataToken:n}),a.videoInfo(t,{},!1)}),a.onTokenRequest(function(e,t,n){var i={event:"videopress_token_request",guid:e,requestId:t,isRetry:!!n};window.postMessage(i,"*"),parent!==window&&parent.postMessage(i,"*")}),i}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getPlugin("plugin"));const i6=i8;var i9=n(925),i7=n(7938),re={};function rt(e){return rt="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rt(e)}function rn(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ri(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,(r=function(e,t){if("object"!==rt(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==rt(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===rt(r)?r:String(r)),i)}var r}function rr(e,t,n){return t&&ri(e.prototype,t),n&&ri(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function rs(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&&ro(e,t)}
14function ro(e,t){return ro=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},ro(e,t)}function ra(e){var t=function(){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}}();return function(){var n,i=rl(e);if(t){var r=rl(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===rt(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,n)}}function rl(e){return rl=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rl(e)}re.styleTagTransform=y(),re.setAttributes=f(),re.insert=h().bind(null,"head"),re.domAPI=c(),re.insertStyleElement=g(),l()(i7.Z,re),i7.Z&&i7.Z.locals&&i7.Z.locals;var ru=r.default.getPlugin("plugin"),rc=r.default.getComponent("ModalDialog"),rd=function(e){rs(n,e);var t=ra(n);function n(e,i){var r;rn(this,n),(r=t.call(this,e,i)).convertingModal=null;var s=i.progressColor,o=void 0===s?"":s,a=i.progressBackgroundColor,l=void 0===a?"":a;return r.progressColor=o,r.progressBackgroundColor=l,r}return rr(n,[{key:"closeConvertingModalIfNecessary",value:function(){this.convertingModal&&this.convertingModal.close(),this.player.apiFetch().stopPollingInfoEndpoint()}},{key:"showConversionErrorModal",value:function(){this.closeConvertingModalIfNecessary(),this.player.director().getErrorScreen().showError({message:"".concat(this.player.localize("Conversion failed."),' <a target="_blank" href="https://wordpress.com/support/videopress/">').concat(this.player.localize("Learn more"),"</a>"),icon:i9})}},{key:"showConversionModal",value:function(e){var t,n=this,i=e.files_status;if(t=i.dvd?["dvd_mp4"]:["std_mp4"],window.postMessage({event:"videopress_progress",status:i,supported:t,id:e.guid}),this.convertingModal&&this.convertingModal.opened())return!1;var r=document.createElement("div");return r.className="videopress-converting",this.convertingModal=new rc(this.player,{temporary:!0,content:r,fillAlways:!0,uncloseable:!0}),this.convertingModal.addClass("videopress-converting-modal"),this.player.removeChild(this.convertingModal),this.player.addChild(this.convertingModal),this.convertingModal.open(),im(ig(rh,{videoInfo:e,progressColor:this.progressColor,progressBackgroundColor:this.progressBackgroundColor,supportedTypes:t,localize:function(e,t,i){return n.player.localize(e,t,i)}}),r),!0}}]),n}(ru),rh=function(e){rs(n,e);var t=ra(n);function n(e){var i;return rn(this,n),(i=t.call(this,e)).state={currentProgress:0},i.initSocketIO(e.videoInfo),i}return rr(n,[{key:"initSocketIO",value:function(e){var t=this,n=this.props.supportedTypes;ew(function(i,r){if(!i){var s=r("https://io.videopress.com",{upgrade:!1,query:{guid:e.guid}}),o={};n.forEach(function(e){return o[e]=0}),s.on("conversion status",function e(i){if(i.type in o){o[i.type]=i.progress;var r=0;for(var a in o){var l=o[a];l<0&&(l=0),r+=l}var u=r/n.length,c=Math.floor(u);t.setState({currentProgress:c}),100===c&&(s.off("conversion status",e),s.disconnect())}})}})}},{key:"render",value:function(){var e=this.props,t=e.progressColor,n=e.progressBackgroundColor,i=e.localize,r=this.state.currentProgress,s=null;null!==n&&n.length>0&&(s="background: "+n);var o="width: "+r+"%";return null!==t&&t.length>0&&(o+=";background: "+t),ig("div",null,ig("div",{className:"videopress-converting-toprow"},ig("div",{className:"videopress-converting-toprow-container"},ig("div",{className:"videopress-converting-logo-container"},ig("img",{src:tD,width:"29",height:"21",alt:"VideoPress"}))),ig("div",{className:"videopress-converting-percentage-container"},ig("div",{className:"videopress-converting-text-container"},ig("span",null,i("We are converting this video for optimal playback..."))),ig("div",{className:"videopress-converting-percentage-text"},r,"%"))),ig("div",{className:"videopress-converting-bottomrow"},ig("div",{className:"videopress-converting-progress-container",style:s},ig("div",{className:"videopress-converting-current-progress",style:o}))))}}]),n}(iy);const rp=rd;function rf(e){return rf="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rf(e)}function rm(e,t){return rm=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rm(e,t)}function rg(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rv(e){return rv=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rv(e)}function ry(e){var t=function(e,t){if("object"!==rf(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==rf(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rf(t)?t:String(t)}var rb=function(e){!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&&rm(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=rv(n);if(i){var r=rv(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rf(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rg(e)}(this,e)});function s(e,t){var n,i,o,a;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),i=rg(n=r.call(this,e,t)),a=function(){n.player.one("play",function(){var e=(new Date).getTime();n.player.one("timeupdate",function(){var t=(new Date).getTime()-e;setTimeout(function(){return n.player.stats().sendTTFP(t)},0)})})},(o=ry(o="initTTFP"))in i?Object.defineProperty(i,o,{value:a,enumerable:!0,configurable:!0,writable:!0}):i[o]=a,n.initTTFP(),n}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getPlugin("plugin"));const r_=rb;var rT=n(7137),rj={};function rw(e){return rw="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rw(e)}function rS(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,rI(i.key),i)}}
14function rx(e,t){return rx=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rx(e,t)}function rk(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rE(e){return rE=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rE(e)}function rC(e,t,n){return(t=rI(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rI(e){var t=function(e,t){if("object"!==rw(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==rw(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rw(t)?t:String(t)}rj.styleTagTransform=y(),rj.setAttributes=f(),rj.insert=h().bind(null,"head"),rj.domAPI=c(),rj.insertStyleElement=g(),l()(rT.Z,rj),rT.Z&&rT.Z.locals&&rT.Z.locals;var rD=r.default.getPlugin("plugin");r.default.registerPlugin("apiFetch",i6),r.default.registerPlugin("converting",rp),r.default.registerPlugin("ttfp",r_);var rA=function(e){!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&&rx(e,t)}(l,e);var t,n,i,s,a=(i=l,s=function(){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(){var e,t=rE(i);if(s){var n=rE(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rw(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rk(e)}(this,e)});function l(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,l),rC(rk(n=a.call(this,e,t)),"conversionFailed",function(e){var t=o()(e,"files_status",{});return o()(e,"finished",!1)&&Object.keys(t).every(function(e){return ep()(t[e])||j===o()(t[e],"mp4")})}),rC(rk(n),"conversionModalShouldShow",function(e){var t=o()(e,"files_status",{});return!iY()(t,{mp4:T})&&!!iY()(t,{mp4:"CONVERTING"})}),rC(rk(n),"getSourcePlaylists",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,i=e.file_url_base,r=e.files,s=null,a=null,l=e.format_meta[t],u=!1;return!ep()(l)&&ey(l.codec)&&(u=!0),o()(r,t)&&u?(s=r[t].hls,r[t].hls_r&&n.player.state.overrideNativeHls&&(s=r[t].hls_r),a=r[t].dash):ep()(n.getAdaptiveStreamingPlaylist(e))?"std"!==t&&o()(r,"dvd")?(s=r.dvd.hls,r.dvd.hls_r&&n.player.state.overrideNativeHls&&(s=r.dvd.hls_r),a=r.dvd.dash):o()(r,"avc_240p")?(s=r.avc_240p.hls,r.avc_240p.hls_r&&n.player.state.overrideNativeHls&&(s=r.avc_240p.hls_r),a=r.avc_240p.dash):o()(r,"std")&&(s=r.std.hls,r.std.hls_r&&n.player.state.overrideNativeHls&&(s=r.std.hls_r),a=r.std.dash):s=n.getAdaptiveStreamingPlaylist(e).src,iQ()([s&&{src:e_(i.https,s),type:"application/x-mpegURL",withCredentials:n.requestShouldIncludeCredentials(e)},a&&{src:i.https+a,type:"application/dash+xml",withCredentials:n.requestShouldIncludeCredentials(e)}])}),rC(rk(n),"getAdaptiveStreamingPlaylist",function(e){return e.adaptive_streaming?{src:e_(e.file_url_base.https,e.adaptive_streaming),type:"application/x-mpegURL",withCredentials:n.requestShouldIncludeCredentials(e)}:null}),rC(rk(n),"requestShouldIncludeCredentials",function(e){return e.is_private&&window.location.href.startsWith("https://video.wordpress.com")}),rC(rk(n),"getFallbackSourceFile",function(e,t){var i=e.file_url_base,r=e.files,s=e.format_meta[t],a=null,l=!1;!ep()(s)&&ey(s.codec)&&(l=!0);var u=null;return n.selectedQualityExists(r,t)&&l?a=r[t].mp4:"std"!==t&&o()(r,"dvd")?(a=r.dvd.mp4,u="dvd"):o()(r,"avc_240p")?(a=r.avc_240p.mp4,u="avc_240p"):o()(r,"std")&&(a=r.std.mp4,u="std"),a&&{src:i.https+a,fallbackQuality:u}}),rC(rk(n),"setVideoSource",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"dvd",i=n.getAdaptiveStreamingPlaylist(e),r=n.getSourcePlaylists(e,t),s=n.getFallbackSourceFile(e,t);if(ep()(i)&&ep()(r)&&ep()(s))return!1;var o=[],a=!ep()(i)&&"adaptive"===t;return a?o.push(i):ep()(r)||o.push(r),o.push({src:s.src,type:"video/mp4"}),n.player.networkStatus().setTestUrl(s.src),n.player.src(o),a||n.selectedQualityExists(e.files,t)||(t=s.fallbackQuality),n.trigger("source-set",{sources:o,quality:t}),!0}),rC(rk(n),"onPlayerError",function(e,t){MediaError.MEDIA_ERR_NETWORK!==e&&(t=n.getErrorMessageFromVjsErrorC
14ode(e,t),n.getErrorScreen().showError({message:t,title:n.player.localize("Thereâs been an error"),icon:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iNDgiIGhlaWdodD0iNDgiIHZpZXdCb3g9IjAgMCA0OCA0OCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPHBhdGggZD0iTTEzLjYwOTIgNC4xNTAwMUMxMy4yODA5IDMuOTU0ODkgMTIuODcyMSAzLjk0OTc4IDEyLjUzOSA0LjEzNjYzQzEyLjIwNTkgNC4zMjM0OCAxMiA0LjY3MzQgMTIgNS4wNTI2M1YxNC41NDkzTDAuODg2ODg3IDcuODU3NDlMMC4xMTMxMTMgOS4xNDI1MUw0Ni42MTMxIDM3LjE0MjVMNDcuMzg2OSAzNS44NTc1TDM3LjI4NjUgMjkuNzc1NUw0NS40ODQyIDI0LjkwMjZDNDUuODA0MiAyNC43MTI0IDQ2IDI0LjM2OTggNDYgMjRDNDYgMjMuNjMwMyA0NS44MDQyIDIzLjI4NzYgNDUuNDg0MiAyMy4wOTc0TDEzLjYwOTIgNC4xNTAwMVoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0xMiA0Mi45NDc0VjE5LjY0OTNMMzMuMDYyMiAzMi4yODY2TDEzLjYwOTIgNDMuODVDMTMuMjgwOSA0NC4wNDUxIDEyLjg3MjEgNDQuMDUwMiAxMi41MzkgNDMuODYzNEMxMi4yMDU5IDQzLjY3NjUgMTIgNDMuMzI2NiAxMiA0Mi45NDc0WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",iconSize:[50,50]}),n.player.error(null))}),rC(rk(n),"getErrorMessageFromVjsErrorCode",function(e,t){switch(e){case MediaError.MEDIA_ERR_NETWORK:return n.player.localize("A network error occurred, check your connection and try again.");case MediaError.MEDIA_ERR_DECODE:case MediaError.MEDIA_ERR_SRC_NOT_SUPPORTED:case MediaError.MEDIA_ERR_ABORTED:return n.player.localize("Something went wrong and we're unable to play the video. Please try again later.");default:return t}}),rC(rk(n),"videoInfoFetchError",function(e){if(n.closeLoadingScreen(),"invalid_input"!==e.code||n.state.isAgeGateShowing)if(n.state.isAgeGateShowing){var t=n.player.localize("Error occurred");"forbidden"===e.code&&(t=n.player.localize("Content Unavailable")),n.ageGate.showError(t),n.ageGate.hideLoadingIndicator()}else if("auth"===e.code){if(n.state.isRestrictedVideoSite)return void n.getErrorScreen().showRestrictedVideoError(n.state.isActiveVideoTrialSite);n.getErrorScreen().showPrivacyError()}else{var i=e.errorMessage||e.message||n.player.localize("Unknown error");n.getErrorScreen().showError({message:i,title:e.title||"This video is private"})}else n.showAgeGate()}),rC(rk(n),"getOptimizedPosterUrlForPlayerSize",function(e){if(!e.poster)return null;var t=e.poster,i=t.indexOf("?")>-1?"&":"?",r=window.devicePixelRatio||1;return e.width&&e.height&&e.height>e.width?t+i+"h="+Math.round(n.player.currentHeight()*r):t+i+"w="+Math.round(n.player.currentWidth()*r)}),rC(rk(n),"videoInfoFetched",function(e){var t;if(n.closeLoadingScreen(),n.state.isAgeGateShowing&&n.hideAgeGate(),n.setState({videoInfo:e}),n.player.poster()||n.player.poster(n.getOptimizedPosterUrlForPlayerSize(e)),n.conversionFailed(e))return n.player.converting().closeConvertingModalIfNecessary(),void n.player.converting().showConversionErrorModal();if(n.conversionModalShouldShow(e))n.player.converting().showConversionModal(e)&&n.player.apiFetch().startPollingInfoEndpoint(n.state.guid,n.state.birthDate);else{n.player.converting().closeConvertingModalIfNecessary(),n.trigger("build-quality-levels",e);var i=n.state.hd?"hd":"dvd";null!==e.adaptive_streaming?i="adaptive":ex()&&(i=ex()),n.setVideoSource(e,i)&&(n.player.addClass("videopress-loaded"),n.player.postMessageApi().sendLoaded()),n.initShareAndDownloadOptions(e);var r=null!==(t=eC("captionsLanguage")?eC("captionsLanguage"):null)&&void 0!==t?t:"",s=r.startsWith("auto_"),o=r.replace("auto_",""),a=function(e){var t=r;return s?e.hasOwnProperty(o)&&(t=o):t&&!e.hasOwnProperty(t)&&e.hasOwnProperty("auto_"+t)&&(t="auto_"+t),t};if(ep()(e.subtitles))ep()(e.tracks)||Object.keys(e.tracks).forEac
14h(function(t){var i="subtitles"===t?a(e.tracks[t]):null;for(var r in e.tracks[t]){var s=e.tracks[t][r],o="https://videos.files.wordpress.com/".concat(e.guid,"/").concat(s.src);n.player.addRemoteTextTrack({src:o,kind:t,srcLang:r,language:r,label:s.label,default:i===r},!0)}});else{var l=a(e.subtitles);Object.keys(e.subtitles).forEach(function(t){var i=e.subtitles[t];n.player.addRemoteTextTrack({src:i.vtt,kind:"subtitles",srcLang:t,language:t,label:i.localized_label,default:l===t},!0)})}var u=n.player.remoteTextTracks();u.length>0&&(n.player.addClass("videopress-has-tracks"),u.on("change",function(){for(var e="",t=0;t<u.length;t++){var n=u[t];"subtitles"===n.kind&&"showing"===n.mode&&(e=n.language)}eI("captionsLanguage",e)})),n.setState({videoDataRequested:!0}),setTimeout(function(){return n.player.trigger("refresh-subs-caps-button")},500)}}),rC(rk(n),"initShareAndDownloadOptions",function(e){n.player.api.customize.get("shareButton").then(function(t){var i=t.customized,r=t.value,s=i&&!r||!!n.player.options().autoplay&&!!n.player.options().muted&&n.player.hasClass("videopress-controls-disabled"),a=!s&&o()(e,"display_embed",!1),l=!s&&o()(e,"allow_download",!1);if(a||l){for(var u=o()(e,"title",""),c=n.player.children(),d=c.length,h=0;h<c.length;++h){var p=c[h];if(p.name&&"controlbar"===p.name().toLowerCase()){d=h;break}}n.player.addChild("ShareButton",{title:u},d)}n.setState({canDisplayEmbed:a,canDisplayDownload:l})})}),rC(rk(n),"videoInfoFetchedInBackground",function(e){n.trigger("build-quality-levels",e),n.setState({videoInfo:e}),e.adaptive_streaming&&n.trigger("toggle-source",{quality:"adaptive",persistQuality:!1})}),rC(rk(n),"isChangingSrc",function(){return o()(n.state,"changing-src",!1)}),n.setState({guid:t.guid,hd:t.hd,videoDataRequested:!1,timeWhenOffline:0,loadingSpinner:null,canDisplayEmbed:!1,canDisplayDownload:!1,chapterTrack:null,chapters:null,currentChapter:null,borderColors:["#fff","#fff","#fff","#fff"],isRestrictedVideoSite:t.isRestrictedVideoSite,isActiveVideoTrialSite:t.isActiveVideoTrialSite}),n.setViewerBirthdate(t),n.registerComponentsAndEvents(e),e.api.wpcom.onVideoInfoFetched(function(e,t){t?n.videoInfoFetchedInBackground(e):n.videoInfoFetched(e)}),e.api.wpcom.onVideoInfoFetchError(function(e){return n.videoInfoFetchError(e)}),e.api.status.onBorderColorsChanged(function(e){return n.setState({borderColors:e})}),e.api.status.onError(function(e,t){return n.onPlayerError(e,t)}),n.requestVideoDataFromAPI(),console.info("vp9 support: "+(eg()?"yes":"no")),console.info("hevc support: "+(ev()?"yes":"no")),n}return t=l,n=[{key:"setViewerBirthdate",value:function(e){var t=e.m,n=e.d,i=e.y;this.player.options().bypassAgeGate&&(t=1,n=1,i=1984),t&&n&&i?this.setState({birthDate:{m:t,d:n,y:i}}):this.setState({birthDate:{}})}},{key:"getViewerBirthDate",value:function(){return this.state.birthDate}},{key:"setChaptersTrack",value:function(e){var t=e.cues,n=e&&e.activeCues_?e.activeCues_[0]:null;this.setState({chapterTrack:e,chapters:t,currentChapter:n})}},{key:"setCurrentChapter",value:function(e){var t=this.state,n=t.chapterTrack,i=t.chapters;if(n&&e&&i){for(var r=null,s=0;s<i.length;s++)if(i[s].id===e.id){r=i[s];break}r&&this.setState({currentChapter:r})}}},{key:"getBorderColors",value:function(){return this.state.borderColors}},{key:"getChapters",value:function(){var e=[];if(!this.state.chapterTrack||!this.state.chapters)return e;for(var t=0;t<this.state.chapters.length;t++){var n=this.state.chapters[t],i=n.id,r=n.text,s=n.startTime,o=n.endTime;e.push({id:i,text:r,startTime:s,endTime:o})}return e}},{key:"getCurrentChapter",value:function(){if(!this.state.currentChapter)return null;var e=this.state.currentChapter;return{id:e.id,text:e.text,startTime:e.startTime,endTime:e.endTime}}},{key:"requestVideoDataFromAPI",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];e||this.state.isAgeGateShowing||this.showLoadingScreen(),this.player.api.wpcom.videoInfo(this.state.guid,this.state.birthDate,e).catch(function(e){return e})}},{key:"registerComponentsAndEvents",value:function(e){var t=this;r.default.registerComponent("Spinner",tC),r.default.registerComponent("ShareDialog",iD);var n=e.addChild("ShareDialog");this.on("share-dialog-open",function(){var e,i=t.state,r=i.canDisplayEmbed,s=i.canDisplayDownload;(r||s)&&n.open({guid:t.state.videoInfo.guid,isPrivate:t.state.videoInfo.is_private,currentTime:Math.floor(t.player.currentTime()),canDisplayEmbed:r,canDisplayDownload:s,downloadUrl:null!==(e=t.state.videoInfo.original)&&void 0!==e?e:""})}),this.on("share-dialog-close",function(){return n.close()}),this.on("toggle-source",function(e,n){var i=n.quality,r=n.persistQuality,s=void 0===r||r;t.setState({"changing-src":!0});var o=t.player.currentTime(),a=t.state.videoInfo,l=t.player.paused();t.setVideoSource(a,i),t.player.currentTime(o),t.player.play().finally(function(){t.setState({"changing-src":!1}),l&&t.player.pause()}),s&&function(e){eI("quality",e)}(i)}),this.setState({isAgeGateShowing:!1}),r.default.registerComponent("AgeGateDialog",iG),this.on("update-viewer-birthdate",function(e,n){var i=n.m,r=n.d,s=n.y;t.setViewerBirthdate({m:i,d:r,y:s}
14),t.requestVideoDataFromAPI()}),this.player.on("fullscreenchange",function(){t.player.isFullscreen()||t.player.tech({IWillNotUseThisInPlugins:!0}).removeAttribute("controls")}),this.player.networkStatus().on("network-down",function(){return t.onNetworkDown()}),this.player.networkStatus().on("network-up",function(){return t.onNetworkUp()}),this.player.on("playing",function(){return t.preventPlayerPlayOnNetworkDown()})}},{key:"preventPlayerPlayOnNetworkDown",value:function(){null!==this.state.loadingSpinner&&this.player.pause()}},{key:"onNetworkDown",value:function(){var e=this.state,t=e.loadingSpinner,n=e.videoDataRequested,i=this.player.currentTime();n&&this.player.pause(),null===t&&(t=this.createLoadingSpinnerModal()).open(),this.setState({timeWhenOffline:i,loadingSpinner:t})}},{key:"onNetworkUp",value:function(){var e=this.state,t=e.loadingSpinner,n=e.videoDataRequested,i=e.timeWhenOffline;n?null!==t&&(this.player.pause(),this.player.load(),this.player.currentTime(i),this.player.play(),t.close(),this.setState({loadingSpinner:null})):this.requestVideoDataFromAPI()}},{key:"createLoadingSpinnerModal",value:function(){var e=document.createElement("div");e.className="videopress-director-transparent-modal";var t=this.player.createModal(e,{uncloseable:!0});return t.addChild("Spinner",{className:"videopress-spinner__waiting"}).show(),t}},{key:"showLoadingScreen",value:function(){var e=document.createElement("div");e.className="videopress-director-loading",e.innerText=this.player.localize("Loadingâ¦"),this.loadingModal=this.player.createModal(e,{uncloseable:!0}),this.loadingModal.open()}},{key:"closeLoadingScreen",value:function(){this.loadingModal&&this.loadingModal.close()}},{key:"selectedQualityExists",value:function(e,t){return o()(e,t,!1)}},{key:"showAgeGate",value:function(){this.setState({isAgeGateShowing:!0}),this.ageGate?this.ageGate.show():this.ageGate=this.player.addChild("AgeGateDialog")}},{key:"getErrorScreen",value:function(){return this.errorScreen||(this.errorScreen=this.player.addChild("ErrorScreen")),this.errorScreen}},{key:"hideAgeGate",value:function(){this.setState({isAgeGateShowing:!1}),this.ageGate.hide()}},{key:"hasVideoInfo",value:function(){return iK()(this.state,"videoInfo")}},{key:"videoFileCount",value:function(){return Object.keys(this.state.videoInfo.files).length}}],n&&rS(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),l}(rD);const rM=rA;var rO=n(335),rP={};function rN(e){return rN="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rN(e)}function rL(e,t){return rL=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rL(e,t)}function rR(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function rU(e){return rU=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rU(e)}function rB(e,t,n){return(t=rz(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rz(e){var t=function(e,t){if("object"!==rN(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==rN(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rN(t)?t:String(t)}rP.styleTagTransform=y(),rP.setAttributes=f(),rP.insert=h().bind(null,"head"),rP.domAPI=c(),rP.insertStyleElement=g(),l()(rO.Z,rP),rO.Z&&rO.Z.locals&&rO.Z.locals;var rF=r.default.getPlugin("plugin"),rq="videopress-keyboard-navigation",rV=function(e){!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&&rL(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=rU(n);if(i){var r=rU(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rN(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return rR(e)}(this,e)});function s(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),rB(rR(n=r.call(this,e,t)),"installEventListener",function(){n.player.on("keyup",function(e){return n.onKeyUp(e)}
14),n.player.on("keydown",function(e){return n.onKeyDown(e)}),n.player.on("keypress",function(e){return n.onKeyDown(e)}),n.player.on("blur",function(){return n.removeKeyboardNavigationClass()}),n.player.on("click",function(){return n.removeKeyboardNavigationClass()})}),rB(rR(n),"removeKeyboardNavigationClass",function(){n.player.hasClass(rq)&&n.player.removeClass(rq)}),rB(rR(n),"addKeyboardNavigationClass",function(){n.player.hasClass(rq)||n.player.addClass(rq)}),rB(rR(n),"initFocusableComponents",function(){n.focusableComponents=[];var e=function(e){if(e){var t=e.el();t&&(t.tabIndex=-1),n.focusableComponents.push(e)}};e(n.player.getChild("FirstFocusAnchor"));var t=n.player.controlBar;t&&(e(t.playToggle),e(t.volumePanel),t.chapterTitleButton&&e(t.chapterTitleButton),t.chaptersButton&&e(t.chaptersButton),e(t.settingsMenuButton),e(t.pictureInPictureToggle),e(t.fullscreenToggle));var i=n.player.getChild("ShareButton");if(i){var r=i.getChild("Button");r&&e(r)}e(n.player.getChild("LastFocusAnchor"))}),rB(rR(n),"onKeyUp",function(e){if(e.key)switch(e.key){case w.Escape:n.removeKeyboardNavigationClass();break;case w.ArrowRight:200<Date.now()-n.lastArrowDownEvent&&n.handleArrowRightEvent(e);break;case w.ArrowLeft:200<Date.now()-n.lastArrowDownEvent&&n.handleArrowLeftEvent(e)}}),rB(rR(n),"onKeyDown",function(e){if(e.key)switch(e.key){case w.Tab:var t=n.focusableComponents[n.focusedIndex];if(t&&(e.shiftKey&&"FirstFocusAnchor"===t.name()||!e.shiftKey&&"LastFocusAnchor"===t.name()))return;e.preventDefault(),e.shiftKey?n.focusOnPrevItem():n.focusOnNextItem();break;case w.ArrowRight:n.lastArrowDownEvent=Date.now(),n.handleArrowRightEvent(e);break;case w.ArrowLeft:n.lastArrowDownEvent=Date.now(),n.handleArrowLeftEvent(e);break;case w.GreaterThan:n.handleGreaterThanEvent(e);break;case w.LessThan:n.handleLessThanEvent(e)}}),rB(rR(n),"isVolumePanelFocused",function(){var e=n.player.controlBar;if(e&&e.volumePanel){var t=document.activeElement;return e.volumePanel.el()===t}}),rB(rR(n),"handleArrowRightEvent",function(e){e.preventDefault(),n.isVolumePanelFocused()?n.handleVolumeUp():n.handleEventForward()}),rB(rR(n),"handleArrowLeftEvent",function(e){e.preventDefault(),n.isVolumePanelFocused()?n.handleVolumeDown():n.handleEventBackward()}),rB(rR(n),"handleGreaterThanEvent",function(e){e.preventDefault();var t=n.player.playbackRates(),i=n.player.playbackRate();t.indexOf(i)!==t.length-1&&n.player.playbackRate(t[t.indexOf(i)+1])}),rB(rR(n),"handleLessThanEvent",function(e){e.preventDefault();var t=n.player.playbackRates(),i=n.player.playbackRate();0!==t.indexOf(i)&&n.player.playbackRate(t[t.indexOf(i)-1])}),rB(rR(n),"handleEventForward",function(){var e=!n.player.paused(),t=n.player.duration(),i=n.player.currentTime()+5;i>=n.duration&&(i=e?t-.001:t),n.player.currentTime(i)}),rB(rR(n),"handleEventBackward",function(){var e=Math.max(0,n.player.currentTime()-5);n.player.currentTime(e)}),rB(rR(n),"handleVolumeDown",function(){var e=n.player.volume();if(e>0){var t=Math.max(0,Math.min(1,e-.1));n.player.volume(t),t<=0&&n.player.muted(!0)}}),rB(rR(n),"handleVolumeUp",function(){var e=n.player.muted()?0:n.player.volume();if(e<1){var t=Math.max(.1,Math.min(1,e+.1));n.player.volume(t)}n.player.muted()&&n.player.muted(!1)}),rB(rR(n),"focusOnNextItem",function(){return n.focusOnItemInDirection(1)}),rB(rR(n),"focusOnPrevItem",function(){return n.focusOnItemInDirection(-1)}),rB(rR(n),"focusOnItemInDirection",function(e){if(n.addKeyboardNavigationClass(),!(n.focusableComponents.length<=0)){if(e>=0?n.focusedIndex+=1:n.focusedIndex-=1,n.focusableComponents[n.focusedIndex].el().classList.contains("vjs-hidden"))return n.focusOnItemInDirection(e);n.focusableComponents[n.focusedIndex].focus()}}),n.focusedIndex=-1,n.focusableComponents=[],n.lastArrowDownEvent=0,e.api.wpcom.onVideoInfoFetched(function(){n.installEventListener(),n.initFocusableComponents()}),n}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(rF);const rH=rV;function rW(e){return rW="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rW(e)}function rG(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,(r=function(e,t){if("object"!==rW(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==rW(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(i.key),"symbol"===rW(r)?r:String(r)),i)}var r}function r$(e,t){return r$=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r$(e,t)}
14function rQ(e){return rQ=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},rQ(e)}var rZ=function(e){!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&&r$(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=rQ(i);if(r){var n=rQ(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===rW(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),(n=s.call(this,e,t)).setState({isBrowserOnline:window.navigator.onLine,isNetworkReachable:window.navigator.onLine,testUrl:"",networkRetryIntervalMSec:4e3,networkRetryScheduled:!1,networkDownTriggered:!1}),window.addEventListener("offline",function(){return n.onBrowserOffline()}),window.addEventListener("online",function(){return n.onBrowserOnline()}),e.api.status.onError(function(t){return n.onPlayerError(e,t)}),e.on("timeupdate",function(){return n.onPlayerTimeUpdate()}),n.on("network-down",function(){return n.scheduleNetworkStatusRetry()}),n.checkAndUpdateNetworkStatus(),n}return t=o,(n=[{key:"isOnline",value:function(){return this.state.isBrowserOnline&&this.state.isPlayerOnline}},{key:"setTestUrl",value:function(e){this.setState({testUrl:e})}},{key:"onPlayerTimeUpdate",value:function(){if(!this.state.isBrowserOnline&&this.state.isNetworkReachable){var e=this.player.buffered();if(null!==e)for(var t=this.player.currentTime(),n=0;n<e.length;++n){var i=e.start(n),r=e.end(n);if(t>=i&&t<=r)return}this.setNetworkUnreachable()}}},{key:"setNetworkRetryIntervalMSec",value:function(e){e>0&&this.setState({networkRetryIntervalMSec:e})}},{key:"setNetworkUnreachable",value:function(){this.setState({isNetworkReachable:!1}),this.triggerNetworkDown()}},{key:"checkAndUpdateNetworkStatus",value:function(){var e=this;if(this.setState({networkRetryScheduled:!1}),this.state.isBrowserOnline&&this.state.isNetworkReachable)this.triggerNetworkUp();else if(!this.state.isBrowserOnline||this.state.testUrl.length<=0)this.scheduleNetworkStatusRetry();else{var t=new XMLHttpRequest;t.onerror=function(){e.scheduleNetworkStatusRetry()},t.onload=function(){e.setState({isNetworkReachable:!0}),e.triggerNetworkUp()},t.open("HEAD",this.state.testUrl);try{t.send(null)}catch(e){this.scheduleNetworkStatusRetry()}}}},{key:"scheduleNetworkStatusRetry",value:function(){var e=this;this.state.networkRetryScheduled||(this.setState({networkRetryScheduled:!0}),setTimeout(function(){return e.checkAndUpdateNetworkStatus()},this.state.networkRetryIntervalMSec))}},{key:"onBrowserOffline",value:function(){this.state.isBrowserOnline&&this.setState({isBrowserOnline:!1})}},{key:"onBrowserOnline",value:function(){this.state.isBrowserOnline||this.setState({isBrowserOnline:!0})}},{key:"triggerNetworkDown",value:function(){this.state.networkDownTriggered||(this.trigger("network-down"),this.setState({networkDownTriggered:!0}))}},{key:"triggerNetworkUp",value:function(){this.setState({networkDownTriggered:!1}),this.trigger("network-up")}},{key:"onPlayerError",value:function(e,t){MediaError.MEDIA_ERR_NETWORK===t&&(e.error(null),this.setNetworkUnreachable())}}])&&rG(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default.getPlugin("plugin"));const rY=rZ;function rX(e){return rX="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rX(e)}
14function rK(e,t){return rK=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},rK(e,t)}function rJ(e,t){if(t&&("object"===rX(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}function r0(e){return r0=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},r0(e)}var r1=function(e){!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&&rK(e,t)}(s,e);var t,n,i,r=(n=s,i=function(){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(){var e,t=r0(n);if(i){var r=r0(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return rJ(this,e)});function s(e,t){var n;if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s),n=r.call(this,e,t),function(){var e=new Date;e.setDate(e.getDate()-7);var t=null;try{t=Object.keys(localStorage)}catch(e){}null!==t&&t.forEach(function(t){if(0===t.indexOf(eS)){var n=t.substring(eS.length),i=eC(eS+n);try{var r=JSON.parse(i);(null===r||new Date(r.expiry)<=e)&&eE(n)}catch(e){eE(n)}}})}(),!t.guid)return rJ(n);var i=0,o=function(e){i=e,function(e,t){var n=(new Date).getTime();eI(eS+e,JSON.stringify({progress:t,expiry:n}))}(t.guid,i)};return e.on("timeupdate",function(){var t=Math.round(e.currentTime());0==t%5&&i!==t&&o(t)}),e.on("seeked",function(){var t=Math.round(e.currentTime());i!==t&&o(t)}),e.on("loadeddata",function(){if(!e.director().isChangingSrc()&&(i=function(e){var t=eC(eS+e);return null!==t?JSON.parse(t).progress:null}(t.guid),void 0!==i)){if(0===(i=parseInt(i)))return;i<e.duration()&&e.currentTime(i)}}),e.on("ended",function(){eE(t.guid)}),n}return t=s,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getPlugin("plugin"));const r2=r1;function r4(e){return r4="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r4(e)}function r3(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,i)}return n}function r5(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r3(Object(n),!0).forEach(function(t){st(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r3(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function r8(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,sn(i.key),i)}}function r6(e,t){return r6=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r6(e,t)}function r9(e,t){if(t&&("object"===r4(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return r7(e)}function r7(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function se(e){return se=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},se(e)}function st(e,t,n){return(t=sn(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sn(e){var t=function(e,t){if("object"!==r4(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==r4(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===r4(t)?t:String(t)}var si=function(e){!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&&r6(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=se(i);if(r){var n=se(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return r9(this,e)});function o(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),st(r7(n=s.call(this,e,t)),"receiveMessage",function(e){var t=n.player.api;if("iframe_ack"!==e.data.event){if("videopress_action_play"===e.data.event&&t.controls.play(),"videopress_action_pause"===e.data.event&&t.controls.pause().then(function(){var e=n.player.currentTime();n.postMessage({event:"action_pause_response",currentTime:Math.floor(e),currentTimeMs:Math.round(1e3*e)})}),"videopress_action_set_currenttime"===e.data.event){var i=Number(e.data.currentTime);t.controls.seek(1e3*i).catch(function(e){return e})}if("videopress_action_set_volume"===e.data.event){var r=parseFloat(e.data.volume);t.controls.volume(100*r).catch(function(e){return e})}"videopress_token_request_ack"===e.data.event&&t.wpcom.ackJwtRequest({guid:e.data.guid,requestId:e.data.requestId}),"videopress_token_received"===e.data.event&&t.wpcom.setJwt({guid:e.data.guid,jwt:e.data.jwt,requestId:e.data.requestId}),"videopress_token_error"===e.data.event&&(e.data.privacyDetails&&t.wpcom.setPrivacyDetails(e.data.privacyDetails),t.wpcom.triggerTokenExternalAuthError()),"videopress_get_thumbnails"===e.data.event&&n.player.thumbnails().trigger("request-thumbnails",{count:e.data.count})}else{var s;n.postMessage({event:"iframe_ack_response",uid:null!==(s=e.data.uid)&&void 0!==s?s:""})}}),n.setState({guid:t.guid});var i=e.api;return i.status.onPlayerStatusChanged(function(e,t){n.postMessage({event:t})}),i.status.onTimeUpdate(function(e){n.postMessage({event:"timeupdate",currentTime:Math.floor(e),currentTimeMs:Math.round(1e3*e)})}),i.status.onFullscreenChanged(function(e){n.postMessage({event:"toggle_fullscreen",isFullscreen:e})}
14),n.on(e,["seeking","resize","volumechange"],function(e){return n.postMessage({event:e.type})}),n.on(e,["durationchange"],function(e){var t=n.player.duration();0!==t&&n.postMessage({event:e.type,duration:Math.floor(t),durationMs:Math.round(1e3*t)})}),n.on(e.director(),["toggle-source"],function(e,t){return n.postMessage({event:e.type,qualityLevelInternalName:t.quality})}),"undefined"==typeof window?r9(n):(window.addEventListener("message",n.receiveMessage),n)}return t=o,(n=[{key:"postMessage",value:function(e){if("undefined"!=typeof window){var t=r5(r5({},e),{},{id:this.state.guid});window.postMessage(t,"*"),parent!==window&&parent.postMessage(t,"*"),t.event&&(t.event="videopress_".concat(t.event)),window.postMessage(t,"*"),parent!==window&&parent.postMessage(t,"*")}}},{key:"sendLoaded",value:function(){this.postMessage({event:"loading_state",state:"loaded",converting:!1,processing:!1,fetchingSubs:!1})}}])&&r8(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default.getPlugin("plugin"));const sr=si;function ss(e){return ss="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ss(e)}function so(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,sd(i.key),i)}}function sa(e,t){return sa=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sa(e,t)}function sl(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function su(e){return su=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},su(e)}function sc(e,t,n){return(t=sd(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sd(e){var t=function(e,t){if("object"!==ss(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==ss(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ss(t)?t:String(t)}var sh=function(e){!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&&sa(e,t)}(o,e);var t,n,i,r,s=(i=o,r=function(){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(){var e,t=su(i);if(r){var n=su(this).constructor;e=Reflect.construct(t,arguments,n)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===ss(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sl(e)}(this,e)});function o(e,t){var n;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),sc(sl(n=s.call(this,e,t)),"statRequest",null),sc(sl(n),"sendTTFP",function(e){isNaN(e)||e<0||n.sendStat("ttfp",e.toString())}),sc(sl(n),"sendStat",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"1";n.player.director().hasVideoInfo()&&(n.statRequest=new Image,n.statRequest.src=n.pixelUrl()+"&video_".concat(e,"=")+t)}),sc(sl(n),"sendWatched",function(e){n.player.director().hasVideoInfo()&&(n.statRequest=new Image,n.statRequest.src=n.pixelUrl()+"&t="+e)}),sc(sl(n),"getVideoFormat",function(){return"std"===ex()?"fmt_std":"fmt_dvd"}),sc(sl(n),"pixelUrl",function(){var e=n.player.director().state.videoInfo;return"https://pixel.wp.com/v.gif?v=wpcomv&sid=0&site=default&blog="+e.blog_id+"&post="+e.post_id+"&video_fmt="+n.getVideoFormat()+"&page_url="+encodeURIComponent(window.location.href)+"&rand="+Math.random().toString(36).substr(7)}),e.on("loadeddata",function(){n.sendStat("impression")}),e.on("play",function(){e.director().isChangingSrc()||n.state.playSent||(n.sendStat("play"),n.setState({playSent:!0}))});var i=0,r=function(e,t){var r=Math.round(e);n.sendWatched(r),i=t+(e-r)};return e.api.status.onPlaybackTimeUpdated(function(e){var t=e-i;t>=10&&r(t,e)}),e.on("ended",function(){e.api.status.playbackTime().then(function(e){var t=e-i;t>=.01&&r(t,e)})}),n}return t=o,(n=[{key:"dispose",value:function(){}}])&&so(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),o}(r.default.getPlugin("plugin"));const sp=sh;var sf=n(6291),sm={};function sg(e){return sg="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sg(e)}function sv(e,t,n){return(t=sT(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sy(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}
14function sb(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,sT(i.key),i)}}function s_(e,t,n){return t&&sb(e.prototype,t),n&&sb(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function sT(e){var t=function(e,t){if("object"!==sg(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==sg(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sg(t)?t:String(t)}function sj(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&&sw(e,t)}function sw(e,t){return sw=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sw(e,t)}function sS(e){var t=function(){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}}();return function(){var n,i=sk(e);if(t){var r=sk(this).constructor;n=Reflect.construct(i,arguments,r)}else n=i.apply(this,arguments);return function(e,t){if(t&&("object"===sg(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sx(e)}(this,n)}}function sx(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sk(e){return sk=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sk(e)}sm.styleTagTransform=y(),sm.setAttributes=f(),sm.insert=h().bind(null,"head"),sm.domAPI=c(),sm.insertStyleElement=g(),l()(sf.Z,sm),sf.Z&&sf.Z.locals&&sf.Z.locals;var sE=r.default.getPlugin("plugin"),sC=r.default.getComponent("Component"),sI={controls:!0},sD=function(e){sj(n,e);var t=sS(n);function n(e,i){var r;return sy(this,n),(r=t.call(this,e,i)).addClass("videopress-thumb-img"),r.setSize(i.width,i.height),r}return s_(n,[{key:"setSize",value:function(e,t){this.el().style.width="".concat(e,"px"),this.el().style.height="".concat(t,"px")}},{key:"show",value:function(){this.addClass("show")}},{key:"hide",value:function(){this.removeClass("show")}},{key:"setImage",value:function(e,t,n,i,r,s,o){this.setState({imageUrl:e});var a="url(".concat(e,")");this.el().style.backgroundSize="".concat(t*i,"px ").concat(n*r,"px"),this.el().style.backgroundImage=a,this.el().style.backgroundPosition="-".concat(s,"px -").concat(o,"px")}},{key:"getImage",value:function(){return this.state.imageUrl}}]),n}(sC),sA=function(e){sj(n,e);var t=sS(n);function n(e,i){var s;return sy(this,n),(s=t.call(this,e,i)).player=e,r.default.registerComponent("Spinner",tC),r.default.registerComponent("ThumbImg",sD),s.addClass("videopress-thumbnail"),s.resizeThumbnails(),s.loadedImgs={},s.thumbImg=s.addChild("ThumbImg",{width:s.state.width,height:s.state.height}),s.spinner=s.addChild("Spinner",{size:Math.round(s.state.height/3)}),s.chapterTitleTextElement=document.createElement("div"),s.chapterTitleTextElement.className="videopress-thumbnail-chapter",s.addChild("Component",{el:s.chapterTitleTextElement}),e.on("playerresize",function(){return s.resizeThumbnails()}),s}return s_(n,[{key:"resizeThumbnails",value:function(){var e=this.player.options().height;if(this.player.el){var t=getComputedStyle(this.player.el());e=parseFloat(t.height)}var n=this.options(),i=e<=240?3:4,r=Math.min(n.thumbHeight,e/i),s=Math.round(n.videoWidth*r/n.videoHeight);this.setState({width:s,height:r}),this.el().style.width="".concat(s,"px"),this.el().style.height="".concat(r,"px"),this.thumbImg&&this.thumbImg.setSize(s,r)}},{key:"show",value:function(){this.addClass("show")}},{key:"hide",value:function(){this.removeClass("show")}},{key:"setChapterTitle",value:function(e){this.chapterTitleTextElement.innerHTML=e}},{key:"setPosition",value:function(e,t){var n=this.calculateThumbPreviewLeftPosition(e,this.state.width,t);this.el().style.transform="translateX(".concat(n,"px)")}},{key:"setImage",value:function(e,t,n,i){var r=this,s=i.find(function(t){return t.src===e&&t.complete});if(this.loadedImgs[e]||s?(this.spinner.hide(),this.thumbImg.show()):(this.spinner.show(),this.thumbImg.hide()),void 0===this.loadedImgs[e]&&!s){this.loadedImgs[e]=!1;var o=new Image;o.onload=function(){r.loadedImgs[e]=!0;var t=r.thumbImg.getImage();e===t&&(r.spinner.hide(),r.thumbImg.show())},o.src=e}var a=this.options();this.thumbImg.setImage(e,this.state.width,this.state.height,a.maxSheetCols,a.maxSheetRows,t,n)}},{key:"calculateThumbPreviewLeftPosition",value:function(e,t,n){var i=t+2*this.options().padding,r=e-i/2;return r<0?r=0:r+i>n&&(r=n-i),r}},{key:"getWidth",value:function(){return this.state.width}},{key:"getHeight",value:function(){return this.state.height}}]),n}(sC),sM=function(e){sj(n,e);var t=sS(n);function n(e,i){var s;
14return sy(this,n),sv(sx(s=t.call(this,e,i)),"requestThumbnails",function(e,t){for(var n=[],i=Math.min(isNaN(t.count)?1:t.count,s.state.duration)+1,r=1;r<i;r++){var o=100/i*r/100,a=s.calculateThumbImagePosition(o);a.seekPosition=o*s.state.duration,n.push(a)}window.postMessage({event:"videopress_thumbnail_response",thumbs:n,size:{width:s.thumb.state.width,height:s.thumb.state.height}})}),sv(sx(s),"videoInfoFetched",function(e){if(!(void 0===e.thumbnails_grid||e.thumbnails_grid.length<=0||!1===s.areControlsEnabled)){var t=e.duration/1e3,n=e.thumbnails_grid.grid_interval/1e3;s.setState({guid:e.guid,duration:t,thumbInterval:n,videoInfo:e}),s.loadThumbnailsArrangement(),s.generateThumbnailTimeline(),null!==s.thumb&&s.player.controlBar.removeChild("Thumbnail"),s.thumb=s.player.controlBar.addChild("Thumbnail",{videoWidth:e.width,videoHeight:e.height,padding:s.padding,maxSheetRows:s.maxSheetRows,maxSheetCols:s.maxSheetCols,thumbHeight:s.thumbHeight}),"none"!==s.player.options().preload&&s.preloadThumbnailUrls();var i=s.player.controlBar.progressControl;r.default.browser.TOUCH_ENABLED?(i.on("touchstart",s.mouseListener),i.on("touchmove",s.mouseListener),i.on("touchend",s.mouseListener),i.on("touchcancel",s.mouseListener)):(i.on("mouseover",s.mouseListener),i.on("mouseout",s.mouseListener),i.on("mousemove",s.mouseListener))}}),sv(sx(s),"loadThumbnailsArrangement",function(){var e=s.state.videoInfo.thumbnails_grid;s.padding=0,s.thumbGridMax=e.grid_width*e.grid_height,s.maxSheetRows=e.grid_height,s.maxSheetCols=e.grid_width}),sv(sx(s),"cancelPreloadThumbnailRequests",function(){s.setState({preloaded:!1}),s.preloadThumbImgs.forEach(function(e){return e.src=""})}),sv(sx(s),"preloadThumbnailUrls",function(){if(!s.state.preloaded){s.cancelPreloadThumbnailRequests();var e=s.getThumbnailUrls();s.preloadThumbImgs=e.reverse().map(function(e){var t=new Image;return t.src=e,t}),s.setState({preloaded:!0})}}),sv(sx(s),"generateThumbnailTimeline",function(){var e=0,t=[];s.state.videoInfo.thumbnails_grid.files.forEach(function(n){t.push(n),e+=n.thumbs_count}),s.totalFramesCount=e,t.sort(function(e,t){return e.start_time_ms<t.start_time_ms?-1:1}),s.timeline=t}),sv(sx(s),"getThumbnailUrls",function(){var e=[];return s.timeline.forEach(function(t){e.push(s.thumbUrl(t.start_time_ms/1e3))}),e}),sv(sx(s),"mouseListener",function(e){var t=s.state.duration,n=s.player.controlBar.progressControl.el(),i=r.default.dom.getPointerPosition(n,e).x,o=parseInt(n.clientWidth);ep()(e.touches)||(i=e.touches[0].clientX/o);var a=Math.floor(i*o),l=s.calculateThumbImagePosition(i),u=l.thumbSheetUrl,c=l.thumbFrameLeft,d=l.thumbFrameTop;s.updateChaptersIfNecessary(e.type,i*t),-1<["mouseover","touchstart"].indexOf(e.type)||-1<["mousemove","touchmove"].indexOf(e.type)?(s.thumb.show(),s.thumb.setPosition(a,o),s.thumb.setImage(u,c,d,s.preloadThumbImgs)):-1<["mouseout","touchend","touchcancel"].indexOf(e.type)&&s.thumb.hide()}),sv(sx(s),"updateChaptersIfNecessary",function(e,t){if(!(["mouseover","mousemove","touchmove","touchstart","touchend"].indexOf(e)<0)){var n=s.player.chaptersMarkers();if(n.hasChapters()){var i=n.getChapterTitleAtTime(t);i.length>20&&(i=i.slice(0,17)+"â¦");var o=r.default.time.formatTime(t,600);s.thumb.setChapterTitle("".concat(o," â ").concat(i))}}}),sv(sx(s),"calculateThumbImagePosition",function(e){var t,n=s.state.duration,i=s.thumb.getWidth(),r=s.thumb.getHeight(),o=0,a=n/s.totalFramesCount,l=e*n;(o=Math.floor(l/a))>=s.totalFramesCount&&(o=s.totalFramesCount-1),t=o%s.thumbGridMax;var u=Math.floor(t/s.maxSheetCols),c=t%s.maxSheetRows;return{thumbFrame:o,thumbFrameIndex:t,thumbFrameRow:u,thumbFrameCol:c,thumbFrameLeft:c*i,thumbFrameTop:u*r,thumbSheetUrl:s.thumbUrl(o)}}),sv(sx(s),"thumbUrl",function(e){for(var t,n=s.state.videoInfo,i=n.thumbnails_grid,r=n.file_url_base.https,o=i.thumbs_height,a=null!==(t=window.devicePixelRatio)&&void 0!==t?t:1,l=Math.min(o,144*a)*i.grid_height,u=1e3*e,c=0;c<s.timeline.length;++c){var d=s.timeline[c],h=c<s.timeline.length-1?s.timeline[c+1]:null;if(null===h||d.start_time_ms<=u&&null!==h&&h.start_time_ms>u){var p="?h=";return-1!==d.file.indexOf("?")&&(p="&h="),r+d.file+p+l.toString()}}return""}),i=r.default.obj.merge(sI,i),s.areControlsEnabled=!!i.controls,s.preloadThumbImgs=[],s.padding=2,s.thumbGridMax=100,s.maxSheetRows=Math.sqrt(s.thumbGridMax),s.maxSheetCols=Math.sqrt(s.thumbGridMax),s.thumbHe
14ight=144,s.totalFramesCount=0,s.timeline=[],r.default.registerComponent("Thumbnail",sA),e.api.wpcom.onVideoInfoFetched(function(e){return s.videoInfoFetched(e)}),e.one("play",function(){s.cancelPreloadThumbnailRequests(),e.one("timeupdate",function(){s.preloadThumbnailUrls()})}),s.on("request-thumbnails",s.requestThumbnails),s}return s_(n)}(sE);const sO=sM;var sP=n(6889),sN={};function sL(e){return sL="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sL(e)}function sR(e,t){return sR=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},sR(e,t)}function sU(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function sB(e){return sB=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},sB(e)}function sz(e,t,n){return(t=sF(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function sF(e){var t=function(e,t){if("object"!==sL(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==sL(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===sL(t)?t:String(t)}sN.styleTagTransform=y(),sN.setAttributes=f(),sN.insert=h().bind(null,"head"),sN.domAPI=c(),sN.insertStyleElement=g(),l()(sP.Z,sN),sP.Z&&sP.Z.locals&&sP.Z.locals;var sq=function(e){!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&&sR(e,t)}(o,e);var t,n,i,s=(n=o,i=function(){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(){var e,t=sB(n);if(i){var r=sB(this).constructor;e=Reflect.construct(t,arguments,r)}else e=t.apply(this,arguments);return function(e,t){if(t&&("object"===sL(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return sU(e)}(this,e)});function o(e,t){var n;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,o),sz(sU(n=s.call(this,e,t)),"clearMarkers",function(){null!==n.markerContainer&&(n.markerContainer.remove(),n.markerContainer=null),n.cues=null}),sz(sU(n),"createChapterTitleContainer",function(){var e=document.createElement("div");return e.className="videopress-chapter-title-container",e}),sz(sU(n),"hasChapters",function(){return null!==n.cues&&n.cues.length>0}),sz(sU(n),"forEachTrackCue",function(e,t){if(n.checkTrackHasCues(e))for(var i=0;i<e.cues.length;++i)t(e.cues[i],i)}),sz(sU(n),"_isChapterTrack",function(e){return e&&"chapters"===e.kind&&null!==e.cues&&e.cues.length>=0}),sz(sU(n),"findTextTrack",function(){var e=n.player.textTracks();if(e&&e.length)for(var t=e.length-1;t>=0;--t){var i=e[t];if(n._isChapterTrack(i))return i}}),sz(sU(n),"onPlayerMetadataLoaded",function(){var e=n.player.textTracks();if(e&&e.length){var t=n.findTextTrack();n.onPlayerChapterTrackChange(t)}}),sz(sU(n),"_cleanup",function(){n.clearMarkers(),n.player.removeClass("videopress-has-chapters")}),sz(sU(n),"_waitForSeekbarContainer",function(){var e=0,t=function t(i,r){if((e+=1)>10)return r("");var s=n.player.el().getElementsByClassName("vjs-progress-holder");if(s.length<=0)return setTimeout(function(){return t(i,r)},150);var o=s[0].parentElement;return o?i({seekbarContainer:o,seekbarElements:s}):setTimeout(function(){return t()},150)};return new Promise(function(e,n){t(e,n)})}),sz(sU(n),"onPlayerChapterTrackChange",function(e){if(n.cues||n._cleanup(),n.areControlsEnabled){var t=n.player.duration();t<=0||n._isChapterTrack(e)&&(n.chapterTrack=e,n.cues=n.chapterTrack.cues,n.player.director().setChaptersTrack(n.chapterTrack),n.player.trigger("chaptersTrackChange"),n._waitForSeekbarContainer().then(function(i){var r=i.seekbarContainer,s=document.createElement("div");s.className="videopress-markers-container",n.loadMarkersFromTrack(t,e,s),n.hasChapters()&&n.player.addClass("videopress-has-chapters"),n.markerContainer=s,r.appendChild(n.markerContainer)}).catch(function(){}))}else n._cleanup()}),sz(sU(n),"asPercentOfDuration",function(e,t){return parseFloat(e)/parseFloat(t)*100}),sz(sU(n),"checkTrackHasCues",function(e){return e&&e.cues&&e.cues.length>0}),sz(sU(n),"generateClipPathFromChapters",function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0;if(n.checkTrackHasCues(e)){var r="40%",s="100%",o=[],a=s;
14n.forEachTrackCue(e,function(e,l){var u=i===l-1?"1%":r,c=i===l?"1%":r,d=s,h=n.asPercentOfDuration(e.startTime,t);0===l&&h<=0?o.push("".concat(h,"% ").concat(c)):o.push("".concat(h,"% ").concat(u,", ").concat(h,"% ").concat(d,", calc(").concat(h,"% + 2px) ").concat(d,", calc(").concat(h,"% + 2px) ").concat(c)),a=c});var l="polygon(0 ".concat(r,", ").concat(o.join(","),", 100% ").concat(a,", 100% ").concat(s,", 0 ").concat(s,")");n.player.el().querySelector(".vjs-progress-holder").style["clip-path"]=l}}),sz(sU(n),"loadMarkersFromTrack",function(e,t,i){n.checkTrackHasCues(t)&&(n.generateClipPathFromChapters(t,e),n.forEachTrackCue(t,function(r,s){var o=Math.min(100,n.asPercentOfDuration(r.endTime,e)),a=n.asPercentOfDuration(r.startTime,e),l=n.createMarkerElement(a,o,r.startTime);l.addEventListener("mouseover",function(){n.generateClipPathFromChapters(t,e,s)}),l.addEventListener("mouseout",function(){n.generateClipPathFromChapters(t,e)}),i.appendChild(l),t.addEventListener("cuechange",function(){n.player.director().setCurrentChapter(t.activeCues[0]),n.player.trigger("chaptersChapterChange");for(var e="",i=0;i<t.activeCues.length;++i){var r=t.activeCues[i].text.trim();r.length&&(e.length&&(e+=" - "),e+=r)}})}))}),sz(sU(n),"getChapterTitleAtTime",function(e){if(null===n.cues)return"";for(var t,i=0,r=n.cues.length-1;i<=r;){var s=Math.floor((i+r)/2),o=n.cues[s],a=o.startTime,l=o.endTime;if(e>=a&&e<=l)return t=o.text.trim(),String(t).replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""");e>a?i=s+1:r=s-1}return""}),sz(sU(n),"createMarkerElement",function(e,t,i){var r=document.createElement("div");r.innerHTML='<button class="videopress-marker-button"></button><span></span>';var s=r.querySelector(".videopress-marker-button"),o=t-e;return r.className="videopress-marker",r.style.left="calc(".concat(e.toString(),"% - 2px)"),r.style["min-width"]="".concat(o.toString(),"%"),s.onclick=function(e){e.stopPropagation(),n.player.currentTime(i),n.player.trigger("vp-chapters-set-from-bar")},r.onclick=function(){n.player.trigger("vp-chapters-set-from-bar")},r}),t=r.default.obj.merge({controls:!0},t),n.areControlsEnabled=!!t.controls,n.markerContainer=null,n.cues=null,n.chapterTitleContainer=n.createChapterTitleContainer(),n.player.el().appendChild(n.chapterTitleContainer),n.player.on("loadedmetadata",function(){return n.onPlayerMetadataLoaded()}),n.player.on("chapters-track-changed",function(){return n.onPlayerMetadataLoaded()}),n}return t=o,Object.defineProperty(t,"prototype",{writable:!1}),t}(r.default.getPlugin("plugin"));const sV=sq;var sH,sW=/^#[0-9a-f]{3,6}$/i,sG=function(e,t){return"\n.video-js.vjs-videopress ".concat(e," {\n background: ").concat(t,";\n }\n")};const s$=function(e){return{name:"pause",description:"Pause the player",onEvent:function(){return e.pause()},example:String.raw(sH||(t=["api.controls.pause(); // Will pause the player"],n||(n=t.slice(0)),sH=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var sQ;const sZ=function(e){return{name:"play",description:"Play the video",onEvent:function(){return e.play()},example:String.raw(sQ||(t=["api.controls.play(); // Will start the playback"],n||(n=t.slice(0)),sQ=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var sY;const sX=function(e){return{name:"audio",description:"Get the current player audio status",returns:[{name:"isMuted",type:"bool",description:"Whether the player is currently muted"},{name:"volume",type:"number",description:"The current player volume, as a percentage"}],onEvent:function(){return{isMuted:e.muted(),volume:100*e.volume()}},example:String.raw(sY||(t=["const { isMuted, volume } = await api.status.audio();"],n||(n=t.slice(0)),sY=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};function sK(e){return sK="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},sK(e)}var sJ,s0;function s1(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}function s2(){s2=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,o=Object.create(s.prototype),a=new D(i||[]);return r(o,"_invoke",{value:k(e,n,a)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};u(_,o,function(){return this});var T=Object.getPrototypeOf,j=T&&T(T(A([])));j&&j!==n&&i.call(j,o)&&(_=j);var w=b.prototype=v.prototype=Object.create(_);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){function n(r,s,o,a){var l=d(e[r],e,s);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==sK(c)&&i.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(c).then(function(e){u.value=e,o(u)},function(e){return n("throw",e,o,a)})}a(l.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return s=s?s.then(r,r):r()}})}function k(t,n,i){var r=h;return function(s,o){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===s)throw o;return{value:e,done:!0}}for(i.method=s,i.arg=o;;){var a=i.delegate;if(a){var l=E(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=f;var u=d(t,n,i);if("normal"===u.type){if(r=i.done?m:p,u.arg===g)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=m,i.method="throw",i.arg=u.arg)}}}function E(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&
14(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=d(r,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var o=s.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(sK(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(x.prototype),u(x.prototype,a,function(){return this}),t.AsyncIterator=x,t.async=function(e,n,i,r,s){void 0===s&&(s=Promise);var o=new x(c(e,n,i,r),s);return t.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},S(w),u(w,l,"Generator"),u(w,o,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function s4(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function s3(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function o(e){s4(s,i,r,o,a,"next",e)}function a(e){s4(s,i,r,o,a,"throw",e)}o(void 0)})}}const s5=function(e,t){return e&&e.on("fullscreenchange",s3(s2().mark(function e(){return s2().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.t0=t.status.fullscreenChanged,e.next=3,t.status.fullscreen();case 3:e.t1=e.sent,e.t0.trigger.call(e.t0,e.t1);case 5:case"end":return e.stop()}},e)}))),[{name:"fullscreen",description:"Get the current player fullscreen status",returns:[{name:"isFullscreen",type:"bool",description:"The current player fullscreen status"}],onEvent:function(){return e.isFullscreen()},example:String.raw(sJ||(sJ=s1(["const isPlayerFullscreen = await api.status.fullscreen();"])))},{name:"fullscreenChanged",description:"Event triggered whenever the current fullscreen status changed",returns:[{name:"isFullscreen",type:"bool",description:"The current player fullscreen status"}],example:String.raw(s0||(s0=s1(["api.status.onFullscreenChanged( ( isFullscreen ) => console.log( 'Current fullscreen status: ' + isFullscreen ) )"])))}]};var s8,s6;function s9(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const s7=function(e){var t=0,n=null;return[{name:"_postInit",onEvent:function(){e.status.playerStatusChanged.on(function(i,r){"playing"===r?n=setInterval(function(){t+=.5,e.status.playbackTimeUpdated.trigger(t)},500):(clearInterval(n),n=null)})}},{name:"playbackTime",description:"Get the cumulative playback time, in seconds",returns:[{name:"playbackTime",type:"float",description:"The current cumulative playback time, in seconds"}],onEvent:function(){return t},example:String.raw(s8||(s8=s9(["const totalPlaybackTime = await api.status.playbackTime();"])))},{name:"playbackTimeUpdated",description:"Sent whenever the cumulative playback time is updated",returns:[{name:"playbackTime",type:"float",description:"The current cumulative playback time, in seconds"}],example:String.raw(s6||(s6=s9(["api.status.onPlaybackTimeUpdated(\n ( newPlaybackTime ) => {\n // If the user watched 10 or more seconds of video, do something.\n if ( newPlaybackTime >= 10 ) {\n doSomething();\n }\n }\n);)"])))}]};var oe;const ot=function(e,t){return e&&e.on("ratechange",function(){t.status.playbackRateUpdate.trigger(e.playbackRate())}),{name:"playbackRateUpdate",description:"Triggered when the playback rate has been updated",returns:[{name:"rate",description:"The current playback rate",type:"float"}],example:String.raw(oe||(n=["// This will be called every time the playback rate gets updated\nplayer.status.onPlaybackRateUpdate( ( rate ) => {\n console.log( 'New playback rate is ' + rate + '.' );\n} );\n"],i||(i=n.slice(0)),oe=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))};var n,i};var on,oi;function or(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const os=function(e,t){var n=oT.LOADING,i=function(e){if(e!==n){var i=n;n=e,t.status.playerStatusChanged.trigger(i,e)}};return e&&(e.on("ready",function(){return i(oT.READY)}),e.on("playing",function(){return i(oT.PLAYING)}),e.on("pause",function(){return i(oT.PAUSED)}),e.on("ended",function(){return i(oT.ENDED)}),e.on("stalled",function(){return i(oT.STALLED)}),e.on("timeupdate",function(){oT.ENDED===n&&i(e.paused()?oT.PAUSED:oT.PLAYING)})),[{name:"player",description:"Get the current player status",returns:[{name:"playerStatus",type:"PlayerStatus",description:"The current player status"}],onEvent:function(){return n},example:String.raw(on||(on=or(["// Player status can either be ready, playing, paused, ended or stalled\nconst currentPlayerStatus = await api.status.player();"])))},{name:"playerStatusChanged",description:"Fired when the player status has changed",returns:[{name:"oldStatus",description:"The old status",type:"PlayerStatus"},{name:"newStatus",description:"The new status",type:"PlayerStatus"}],example:String.raw(oi||(oi=or(["api.status.onPlayerStatusChanged(\n ( oldStatus, newStatus ) => {\n // Log the old player status\n console.log( 'Old player status was ' + oldStatus );\n // Log the new player status\n console.log( 'New player status is ' + newStatus );\n // Player status can either be ready, playing, paused, ended or stalled\n if ( 'playing' === newStatus ) {\n console.log( 'The player is playing' );\n }\n }\n);"])))}]};var oo;const oa=function(e,t){return e&&e.on("timeupdate",function(){t.status.timeUpdate.trigger(e.currentTime())}),{name:"timeUpdate",description:"Triggered when the player time has been updated",returns:[{name:"time",description:"The current player time",type:"float"}
14],example:String.raw(oo||(n=["// This will be called every time the playback time gets updated\nplayer.status.onTimeUpdate( ( time ) => {\n console.log( 'New player time is ' + time + 's.' );\n} );\n"],i||(i=n.slice(0)),oo=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))};var n,i};var ol;const ou=function(e,t){return e&&e.on("chaptersChapterChange",function(){t.status.chaptersChapterChange.trigger(e.director().getCurrentChapter())}),{name:"chaptersChapterChange",description:"Triggered when the player chapters track has changed",returns:[{name:"currentChapter",description:"The currently active chapter",type:"object"}],example:String.raw(ol||(n=["// This will be called every time the currently playing chapter changes.\nplayer.status.onChaptersChapterChange( ( currentChapter ) => {\n console.log( 'New chapters track is ' + JSON.encode( chaptersTrack ) + 's.' );\n} );\n"],i||(i=n.slice(0)),ol=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))};var n,i};var oc;const od=function(e,t){return e&&e.on("chaptersTrackChange",function(){t.status.chaptersTrackChange.trigger(e.director().getChapters())}),{name:"chaptersTrackChange",description:"Triggered when the player chapters track has changed",returns:[{name:"chapters",description:"The current chapter track chapters",type:"array"}],example:String.raw(oc||(n=["// This will be called every time the currently playing chpater changes.\nplayer.status.onChaptersTrackChange( ( chaptersTrack ) => {\n console.log( 'New chapters track is ' + JSON.encode( chaptersTrack ) + 's.' );\n} );\n"],i||(i=n.slice(0)),oc=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))};var n,i};var oh,op;function of(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const om=function(e){return[{name:"borderColorsChanged",description:"Triggered when the player border colors change",returns:[{name:"borderColors",description:"The current border colors",type:"array"}],example:String.raw(oh||(oh=of(["// This will be called every time the border colors change.\n player.status.onBorderColorsChanged( ( newBorderColors ) => {\n console.log( 'New border colors are: ' + JSON.encode( newBorderColors ) + '.' );\n } );\n "])))},{name:"borderColors",description:"Returns the current border colors",returns:[{name:"borderColors",description:"The current border colors",type:"array"}],onEvent:function(){return e.director().getBorderColors()},example:String.raw(op||(op=of(["const borderColors = await player.status.borderColors();"])))}]};var og;const ov=function(e,t){return e&&e.on("error",function(){var n=e.error();t.status.error.trigger(n.code,n.message)}),[{name:"error",description:"Triggered when a player error happens.",returns:[{name:"code",description:"The error code",type:"number"},{name:"message",description:"The error message",type:"string"}],example:String.raw(og||(n=["// This will be called every time the player raises an error\nplayer.status.onError( ( code, message ) => {\n console.log( 'Player error ' + code + ': ' + message );\n} );\n "],i||(i=n.slice(0)),og=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))}];var n,i};var oy;function ob(e){return function(e){if(Array.isArray(e))return o_(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return o_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o_(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function o_(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}var oT={LOADING:"loading",READY:"ready",PLAYING:"playing",PAUSED:"pause",ENDED:"ended",STALLED:"stalled"};function oj(e){return oj="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},oj(e)}var ow;function oS(){oS=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,o=Object.create(s.prototype),a=new D(i||[]);return r(o,"_invoke",{value:k(e,n,a)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};u(_,o,function(){return this});var T=Object.getPrototypeOf,j=T&&T(T(A([])));j&&j!==n&&i.call(j,o)&&(_=j);var w=b.prototype=v.prototype=Object.create(_);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){function n(r,s,o,a){var l=d(e[r],e,s);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==oj(c)&&i.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(c).then(function(e){u.value=e,o(u)},function(e){return n("throw",e,o,a)})}a(l.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return s=s?s.then(r,r):r()}})}function k(t,n,i){var r=h;return function(s,o){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===s)throw o;return{value:e,done:!0}}for(i.method=s,i.arg=o;;){var a=i.delegate;if(a){var l=E(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=f;var u=d(t,n,i);if("normal"===u.type){if(r=i.done?m:p,u.arg===g)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=m,i.method="throw",i.arg=u.arg)}}}function E(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&
vendor: 4,490 bytes, line 14
14(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=d(r,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var o=s.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(oj(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(x.prototype),u(x.prototype,a,function(){return this}),t.AsyncIterator=x,t.async=function(e,n,i,r,s){void 0===s&&(s=Promise);var o=new x(c(e,n,i,r),s);return t.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},S(w),u(w,l,"Generator"),u(w,o,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function ox(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}const ok=function(e,t){var n,i,r;return{name:"seek",description:"Seek in the video",returns:[{name:"timeMs",de
14scription:"The new player time, in milliseconds",type:"int"}],arguments:[{name:"timeMs",description:"The timestamp to seek to, in milliseconds",type:"int"}],onEvent:function(i){return(n=n||(r=oS().mark(function n(i){var r;return oS().wrap(function(n){for(;;)switch(n.prev=n.next){case 0:if(!(i<0)){n.next=2;break}throw"Invalid timeMs provided";case 2:if(r=1e3*e.duration(),!(i>r)){n.next=5;break}throw"Invalid timeMs provided";case 5:return n.t0=oT.PLAYING,n.next=8,t.status.player();case 8:return n.t1=n.sent,n.t0===n.t1&&i>=r&&(i=r-1),e.currentTime(i/1e3),n.abrupt("return",1e3*e.currentTime());case 13:case"end":return n.stop()}},n)}),function(){var e=this,t=arguments;return new Promise(function(n,i){var s=r.apply(e,t);function o(e){ox(s,n,i,o,a,"next",e)}function a(e){ox(s,n,i,o,a,"throw",e)}o(void 0)})})).apply(this,arguments);var r},example:String.raw(ow||(i=["api.controls.seek( 1000 ); // Will seek the video to the 1000 milliseconds timepoint"],r||(r=i.slice(0)),ow=Object.freeze(Object.defineProperties(i,{raw:{value:Object.freeze(r)}}))))}};var oE;const oC=function(e){return{name:"mute",description:"Mute or unmute the player",arguments:[{name:"mute",description:"Whether to mute or unmute the player",type:"bool"}],onEvent:function(t){return e.muted(t)},example:String.raw(oE||(t=["api.controls.mute( true ); // Will mute the player\napi.controls.mute( false ); // Will unmute the player\n"],n||(n=t.slice(0)),oE=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oI;const oD=function(e){return{name:"volume",description:"Set the player volume",arguments:[{name:"volume",description:"The volume, as a percentage (0-100)",type:"int"}],onEvent:function(t){if(t<0||t>100)throw"Invalid volume provided";e.volume(t/100)},example:String.raw(oI||(t=["api.controls.volume( 10 ); // Will set the volume to 10%\napi.controls.volume( 100 ); // Will set the volume to 100%\napi.controls.volume( 0 ); // Will set the volume to 0%\n"],n||(n=t.slice(0)),oI=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oA;const oM=function(e){return{name:"fullscreen",description:"Switch the player fullscreen status",arguments:[{name:"fullscreen",description:"Whether to set the player to fullscreen mode. This event might fail if it doesn't come from (or after) a user action with the player",type:"bool"}],onEvent:function(t){if(t)return e.requestFullscreen();e.exitFullscreen()},example:String.raw(oA||(t=["// Will set the player to fullscreen (might fail if it doesn't come from a user-generated event)\napi.controls.fullscreen( true );\n// Will turn off fullscreen mode\napi.controls.fullscreen( false );\n"],n||(n=t.slice(0)),oA=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oO;const oP=function(e){return{name:"setChapters",description:"Sets chapters track for the current video.",arguments:[{name:"chapters",description:"An array containing chapters object defined by { start: int, end: int, title: string }.",type:"array"}],returns:[{name:"status",description:'"ok" if the track was set successfully, "<error message>" otherwise.',type:"string"}],onEvent:function(t){if(!t||!Array.isArray(t)||!t.length)return"Failed to parse chapters";var n=[];if(t.forEach(function(e){"start"in e&&"end"in e&&"title"in e&&(isNaN(e.start)||isNaN(e.end)||"string"!=typeof e.title||n.push(new VTTCue(e.start,e.end,e.title)))}),!n.length)return"Failed to parse chapters";try{var i=e.addTextTrack("chapters","Chapters","en");return i?(n.forEach(function(e){i.addCue(e)}),e.trigger("chapters-track-changed",{track:i}),"ok"):"Failed to create chapters track"}catch(e){return e}},example:String.raw(oO||(t=["api.controls.setChapters( [ { start: 0, end: 1, title: 'Chapter' } ] );"],n||(n=t.slice(0)),oO=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oN,oL;function oR(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const oU=function(e){var t={};
14return[{name:"get",description:"Returns the current player's customization option, if set.",arguments:[{name:"option",description:"The option to get (see arguments of the set method).",type:"string"}],returns:[{name:"customized",type:"boolean",description:"Whether the option is customized or not."},{name:"value",type:"mixed",description:"The value of the option, false if not set."}],onEvent:function(e){return void 0!==t[e]?{customized:!0,value:t[e]}:{customized:!1,value:!1}},example:String.raw(oN||(oN=oR(["api.customize.get( 'shareButton' ).then( ( { customized, value } ) => { ... } );"])))},{name:"set",description:"It customizes the player's appearance \n and behavior by configuring elements such as the control bar, \n share button, and other related components. \n It also allows adjustments to various interactions, \n including the play/pause animation.\n Provide an `options` object to define the desired settings for the player's visual and functional aspects.\n ",arguments:[{name:"options",description:"Object with the controls to set:\n\n - `autoplay` (boolean): Whether the player should start playing as soon as it can.\n - `bigPlayButton` (boolean): Whether the big play button should be visible.\n - `controlBar` (boolean): Whether the control bar should be visible.\n - `hasStarted` (boolean): Whether the player has started playing.\n - `loop` (boolean): Whether the player should start over again when it reaches the end.\n - `muted` (boolean): Whether the player should be muted.\n - `playPauseAnimation` (boolean): Whether the play/pause animation should be visible.\n - `playsinline` (boolean): Whether the player should play inline on supported mobile devices.\n - `poster` (string): The URL of the poster image to show before the video plays.\n - `preload` (string): Whether the player should preload the video.\n - `shareButton` (boolean): Whether the share button should be visible.\n - `showPoster` (boolean): Whether the poster image should be visible.\n ",type:"object"}],onEvent:function(n){var i=null==e?void 0:e.getChild("BigPlayButton"),r=e.getChild("ControlBar"),s=e.getChild("PosterImage"),o=e.getChild("PlayPauseAnimation"),a=e.getChild("ShareButton");void 0!==n.autoplay&&n.autoplay!==e.autoplay()&&(e.autoplay(n.autoplay),t.autoplay=!!n.autoplay),void 0!==n.loop&&n.loop!==e.loop()&&(e.loop(n.loop),t.loop=!!n.loop),void 0!==n.muted&&n.muted!==e.muted()&&(e.muted(n.muted),t.muted=!!n.muted),void 0!==n.controlBar&&(r[n.controlBar?"show":"hide"](),t.controlBar=!!n.controlBar),void 0!==n.playsinline&&n.playsinline!==e.playsinline()&&(e.playsinline(n.playsinline),t.playsinline=!!n.playsinline),void 0!==n.preload&&n.preload!==e.preload()&&(e.preload(n.preload),t.preload=n.preload),void 0!==n.poster&&n.poster!==e.poster()&&(e.poster(n.poster),t.poster=n.poster),void 0!==n.showPoster&&(s[n.showPoster?"show":"hide"](),null==s||s[n.showPoster?"addClass":"removeClass"]("videopress-poster-image-is-visible"),t.showPoster=!!n.showPoster),void 0!==n.shareButton&&(null==a||a[n.shareButton?"show":"hide"](),t.shareButton=!!n.shareButton),void 0!==n.hasStarted&&(e.hasStarted(n.hasStarted),t.hasStarted=!!n.hasStarted),void 0!==n.bigPlayButton&&(i[n.bigPlayButton?"show":"hide"](),i[n.bigPlayButton?"addClass":"removeClass"]("videopress-big-play-button-is-visible"),t.bigPlayButton=!!n.bigPlayButton),void 0!==n.playPauseAnimation&&(o[n.playPauseAnimation?"show":"hide"](),t.playPauseAnimation=!!n.playPauseAnimation)},example:String.raw(oL||(oL=oR(["api.customize.set( { shareButton: fal
14se }); // It will hide the share button"])))}]};function oB(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}var oz;const oF=function(e,t){return e&&e.on(["loadedmetadata","durationchanged"],function(){t.info.infoUpdated.trigger()}),{name:"duration",description:"Get the video duration in seconds or milliseconds",arguments:[{name:"inMilliseconds",description:"If true, will return the duration in milliseconds",type:"bool",default:!1}],returns:[{name:"duration",description:"Duration in seconds or milliseconds",type:"float"}],onEvent:function(t){return e.duration()*(t?1e3:1)},example:String.raw(oz||(n=["const videoDurationInSeconds = await api.info.duration();\nconst videoDurationInMilliSeconds = await api.info.duration( true );"],i||(i=n.slice(0)),oz=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))};var n,i};var oq;const oV=function(e){return{name:"guid",description:"Get the current video GUID",returns:[{name:"guid",description:"The video GUID",type:"string"}],onEvent:function(){var t;return null!==(t=e.videoInfo.guid)&&void 0!==t?t:""},example:String.raw(oq||(t=["const videoGuid = await api.info.guid();"],n||(n=t.slice(0)),oq=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oH;const oW=function(e){return{name:"poster",description:"Get the current video poster image URL",returns:[{name:"poster",description:"The video poster image URL",type:"string"}],onEvent:function(){var t;return null!==(t=e.videoInfo.poster)&&void 0!==t?t:""},example:String.raw(oH||(t=["const videoPosterUrl = await api.info.poster();"],n||(n=t.slice(0)),oH=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oG;const o$=function(e){return{name:"privacy",description:"Get the current video privacy setting (private or public)",returns:[{name:"privacy",description:"The video privacy setting",type:"string"}],onEvent:function(){return e.videoInfo.is_private?"private":"public"},example:String.raw(oG||(t=["const videoPrivacySetting = await api.info.privacy();\nconst isVideoPrivate = 'private' === videoPrivacySetting;"],n||(n=t.slice(0)),oG=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oQ;const oZ=function(e){return{name:"title",description:"Get the current video title",returns:[{name:"title",description:"The video title",type:"string"}],onEvent:function(){var t;return null!==(t=e.videoInfo.title)&&void 0!==t?t:""},example:String.raw(oQ||(t=["const videoTitle = await api.info.title();"],n||(n=t.slice(0)),oQ=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oY;const oX=function(e){return{name:"getThumbnailSample",description:"Gets an evenly distributed sample of thumbnails. Can only be called after video info has been loaded.",arguments:[{name:"count",description:"The number of thumbnails to retrieve",type:"number"}],returns:[{name:"thumbnails",description:"A series of evenly distributed thumbnails represented by their position in a sprite sheet.",type:"Array<object>"},{name:"size",description:"The width and height of a thumbnail in the sprite sheet.",type:"object"}],onEvent:function(t){if(0===e.thumbnails().state.length)return{};for(var n=[],i=Math.min(t,Math.floor(e.thumbnails().state.duration))+1,r=1;r<i;r++){var s=100/i*r/100,o=e.thumbnails().calculateThumbImagePosition(s);o.seekPosition=s*e.thumbnails().state.duration,n.push(o)}return{thumbnails:n,size:{width:e.thumbnails().thumb.state.width,height:e.thumbnails().thumb.state.height}}},example:String.raw(oY||(t=["const thumbs = await api.info.getThumbnailSample();"],n||(n=t.slice(0)),oY=Object.freeze(Object.defineProperties(t,{raw:{value:Object.freeze(n)}}))))};var t,n};var oK,oJ,o0,o1,o2;function o4(e,t){return t||(t=e.slice(0)),Object.freeze(Object.defineProperties(e,{raw:{value:Object.freeze(t)}}))}const o3=function(e,t){var n=[],i=null,r=0,s=function(e,t){return t&&e>=t[0]&&e<=t[1]},o=function(){var o=Math.round(e.currentTime());if(!s(o,i)){var a=function(e){for(var t=0;t<n.length;t++){if(s(e,n[t]))return t;if(e<n[t][0])return t;if(t===n.length-1)return t;if(e>n[t][1]&&e<n[t+1][0])return t}return-1}(o),l=a>=0?n[a]:null;if(!s(o,l)){var u=[o,o+1];if(null===l)n.push(u),i=u;else if(o<l[0])l[0]===o+1?(l[0]=o,i=l):(n.unshift(u),i=u);else if(l[1]===o-1)l[1]=o,i=l;else if(a+1<n.length&&n[a+1][0]===o+1){var c=n[a+1];c[0]=o,i=c}else o>l[1]&&(a===n.length-1?(n.push(u),i=u):(n.splice(a+1,0,u),i=u));!function(){for(var e=0;e<n.length;e++){var t=n[e],i=n[e+1];!i||t[1]!==i[0]&&t[1]!==i[0]-1||(t[1]=i[1],n.splice(e+1,1),e--)}}(),r=n.reduce(function(e,t){return e+(t[1]-t[0])},0),t.status.segmentsWatched.trigger(n)}}},a=!1,l=function(t){a!==t&&(e.off("timeupdate",o),t&&e.on("timeupdate",o),a=t)};return[{name:"enableWatchedSegments",description:"Enable watched segments tracking",onEvent:function(){return l(!0)},example:String.raw(oK||(oK=o4(["await api.info.enableWatchedSegments();"])))},{name:"disableWatchedSegments",description:"Disable watched segments tracking",onEvent:function(){return l(!1)}
14,example:String.raw(oJ||(oJ=o4(["await api.info.disableWatchedSegments();"])))},{name:"toggleWatchedSegments",description:"Toggle watched segments tracking",onEvent:function(){return l(!a)},example:String.raw(o0||(o0=o4(["await api.info.toggleWatchedSegments();"])))},{name:"watched",description:"Get the percentage and duration of the video that has been watched",returns:[{name:"percentage",description:"Percentage of the video that has been watched",type:"float"},{name:"duration",description:"Duration watched, in seconds",type:"int"}],onEvent:function(){var t=e.duration()||1;return{percentage:Math.min(100,Math.ceil(r/t*100)),duration:r}},example:String.raw(o1||(o1=o4(["const [ percentage, duration ] = await api.info.watched();"])))},{name:"resetWatched",description:"Reset the watched segments",onEvent:function(){n=[],r=0,i=null,t.status.segmentsWatched.trigger(n)},example:String.raw(o2||(o2=o4(["await api.info.resetWatched();"])))}]};function o5(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}const o8=function(e){return{name:"getJwt",description:"Get the JWT token",returns:[{name:"jwt",description:"The JWT token",type:"string"}],onEvent:function(){return e.jwt||""}}},o6=function(e,t){return[{name:"ackJwtRequest",description:"Acknowledge the JWT request",arguments:[{name:"data",description:"The acknowledgement data",type:"object"}],onEvent:function(n){var i=n.guid,r=n.requestId;e.guid===i&&(r&&e.requestId!==r||t.wpcom.tokenRequestAck.trigger(i))}},{name:"setJwt",description:"Set the JWT token",arguments:[{name:"data",description:"The JWT token data",type:"object"}],onEvent:function(n){var i=n.guid,r=n.jwt,s=n.requestId;s&&e.requestId!==s||(e.guid===i?r?(e.jwt=r,t.wpcom.tokenReceived.trigger(i,r)):e.tokenError="jwt missing from token response":e.tokenError="Guid mismatch")}},{name:"tokenRequestAck",description:"Event triggered when the bridge acknowledges a token request",returns:[{name:"guid",description:"The video GUID for which a token request was received",type:"string"}]},{name:"tokenReceived",description:"Event triggered when we received a new JWT token",returns:[{name:"guid",description:"The video GUID for which we received a token",type:"string"},{name:"jwt",description:"The received jwt token",type:"string"}]},{name:"tokenExternalAuthError",description:"Event triggered when an external error occurred on JWT authentication"},{name:"triggerTokenExternalAuthError",description:"Callback used to trigger the external auth error",onEvent:function(){return t.wpcom.tokenExternalAuthError.trigger()}}]},o9=function(e){return[{name:"setPrivacyDetails",description:"Set the Privacy error message details",arguments:[{name:"details",description:"The details",type:"object"}],onEvent:function(t){e.privacyDetails=t}}]};function o7(e){return o7="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},o7(e)}function ae(){ae=function(){return t};var e,t={},n=Object.prototype,i=n.hasOwnProperty,r=Object.defineProperty||function(e,t,n){e[t]=n.value},s="function"==typeof Symbol?Symbol:{},o=s.iterator||"@@iterator",a=s.asyncIterator||"@@asyncIterator",l=s.toStringTag||"@@toStringTag";function u(e,t,n){return Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{u({},"")}catch(e){u=function(e,t,n){return e[t]=n}}function c(e,t,n,i){var s=t&&t.prototype instanceof v?t:v,o=Object.create(s.prototype),a=new D(i||[]);return r(o,"_invoke",{value:k(e,n,a)}),o}function d(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}t.wrap=c;var h="suspendedStart",p="suspendedYield",f="executing",m="completed",g={};function v(){}function y(){}function b(){}var _={};u(_,o,function(){return this});var T=Object.getPrototypeOf,j=T&&T(T(A([])));j&&j!==n&&i.call(j,o)&&(_=j);var w=b.prototype=v.prototype=Object.create(_);function S(e){["next","throw","return"].forEach(function(t){u(e,t,function(e){return this._invoke(t,e)})})}function x(e,t){function n(r,s,o,a){var l=d(e[r],e,s);if("throw"!==l.type){var u=l.arg,c=u.value;return c&&"object"==o7(c)&&i.call(c,"__await")?t.resolve(c.__await).then(function(e){n("next",e,o,a)},function(e){n("throw",e,o,a)}):t.resolve(c).then(function(e){u.value=e,o(u)},function(e){return n("throw",e,o,a)})}a(l.arg)}var s;r(this,"_invoke",{value:function(e,i){function r(){return new t(function(t,r){n(e,i,t,r)})}return s=s?s.then(r,r):r()}})}function k(t,n,i){var r=h;return function(s,o){if(r===f)throw new Error("Generator is already running");if(r===m){if("throw"===s)throw o;return{value:e,done:!0}}for(i.method=s,i.arg=o;;){var a=i.delegate;if(a){var l=E(a,i);if(l){if(l===g)continue;return l}}if("next"===i.method)i.sent=i._sent=i.arg;else if("throw"===i.method){if(r===h)throw r=m,i.arg;i.dispatchException(i.arg)}else"return"===i.method&&i.abrupt("return",i.arg);r=f;var u=d(t,n,i);if("normal"===u.type){if(r=i.done?m:p,u.arg===g)continue;return{value:u.arg,done:i.done}}"throw"===u.type&&(r=m,i.method="throw",i.arg=u.arg)}}}function E(t,n){var i=n.method,r=t.iterator[i];if(r===e)return n.delegate=null,"throw"===i&&t.iterator.return&&
vendor: 4,838 bytes, line 14
14(n.method="return",n.arg=e,E(t,n),"throw"===n.method)||"return"!==i&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+i+"' method")),g;var s=d(r,t.iterator,n.arg);if("throw"===s.type)return n.method="throw",n.arg=s.arg,n.delegate=null,g;var o=s.arg;return o?o.done?(n[t.resultName]=o.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,g):o:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,g)}function C(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function I(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(C,this),this.reset(!0)}function A(t){if(t||""===t){var n=t[o];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var r=-1,s=function n(){for(;++r<t.length;)if(i.call(t,r))return n.value=t[r],n.done=!1,n;return n.value=e,n.done=!0,n};return s.next=s}}throw new TypeError(o7(t)+" is not iterable")}return y.prototype=b,r(w,"constructor",{value:b,configurable:!0}),r(b,"constructor",{value:y,configurable:!0}),y.displayName=u(b,l,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===y||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,b):(e.__proto__=b,u(e,l,"GeneratorFunction")),e.prototype=Object.create(w),e},t.awrap=function(e){return{__await:e}},S(x.prototype),u(x.prototype,a,function(){return this}),t.AsyncIterator=x,t.async=function(e,n,i,r,s){void 0===s&&(s=Promise);var o=new x(c(e,n,i,r),s);return t.isGeneratorFunction(n)?o:o.next().then(function(e){return e.done?e.value:o.next()})},S(w),u(w,l,"Generator"),u(w,o,function(){return this}),u(w,"toString",function(){return"[object Generator]"}),t.keys=function(e){var t=Object(e),n=[];for(var i in t)n.push(i);return n.reverse(),function e(){for(;n.length;){var i=n.pop();if(i in t)return e.value=i,e.done=!1,e}return e.done=!0,e}},t.values=A,D.prototype={constructor:D,reset:function(t){if(this.prev=0,this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(I),!t)for(var n in this)"t"===n.charAt(0)&&i.call(this,n)&&!isNaN(+n.slice(1))&&(this[n]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var n=this;function r(i,r){return a.type="throw",a.arg=t,n.next=i,r&&(n.method="next",n.arg=e),!!r}for(var s=this.tryEntries.length-1;s>=0;--s){var o=this.tryEntries[s],a=o.completion;if("root"===o.tryLoc)return r("end");if(o.tryLoc<=this.prev){var l=i.call(o,"catchLoc"),u=i.call(o,"finallyLoc");if(l&&u){if(this.prev<o.catchLoc)return r(o.catchLoc,!0);if(this.prev<o.finallyLoc)return r(o.finallyLoc)}else if(l){if(this.prev<o.catchLoc)return r(o.catchLoc,!0)}else{if(!u)throw new Error("try statement without catch or finally");if(this.prev<o.finallyLoc)return r(o.finallyLoc)}}}},abrupt:function(e,t){for(var n=this.tryEntries.length-1;n>=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&i.call(r,"finallyLoc")&&this.prev<r.finallyLoc){var s=r;break}}s&&("break"===e||"continue"===e)&&s.tryLoc<=t&&t<=s.finallyLoc&&(s=null);var o=s?s.completion:{};return o.type=e,o.arg=t,s?(this.method="next",this.next=s.finallyLoc,g):this.complete(o)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),I(n),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var i=n.completion;if("throw"===i.type){var r=i.arg;I(n)}return r}}throw new Error("illegal catch attempt")},delegateYield:function(t,n,i){return this.delegate={iterator:A(t),resultName:n,nextLoc:i},"next"===this.method&&(this.arg=e),g}},t}function at(e,t,n,i,r,s,o){try{var a=e[s](o),l=a.value}catch(e){return void n(e)}a.done?t(l):Promise.resolve(l).then(i,r)}function an(e){return function(){var t=this,n=arguments;return new Promise(function(i,r){var s=e.apply(t,n);function o(e){at(s,i,r,o,a,"next",e)}function a(e){at(s,i,r,o,a,"throw",e)}o(void 0)})}}const ai=function(e,t,n,i){var r,s=function(e){if(null===e)return null;var n=e.indexOf("?")>-1?"&":"?";return e+n+"metadata_token="+encodeURIComponent(t.jwt)},o=function(i,r,o){var a=arguments.length>3&&void 0!==arguments[3]&&arguments[3],u=r.m,c=r.d,d=r.y,h={};
14c&&u&&d&&(h.birth_month=u,h.birth_day=c,h.birth_year=d),t.jwt.length&&(h.metadata_token=t.jwt);var p="https://public-api.wordpress.com/rest/v1.1/videos/"+i;return Object.keys(h).forEach(function(e,t){p+=(0===t?"?":"&")+e+"="+h[e]}),new Promise(function(u,c){fetch(p,{method:"GET",headers:{"content-type":"application/json"}}).then(function(e){return e.json()}).then(function(d){if(d&&d.upload_date)d=function(n){if(!n||!t.jwt||!n.files)return n;var i={};return i.files=Object.keys(n.files).reduce(function(e,t){var i=n.files[t],r=Object.keys(i).reduce(function(e,t){return e[t]=s(i[t]),e},{});return e[t]=r,e},{}),i.tracks=Object.keys(n.tracks).reduce(function(e,t){var i=n.tracks[t];return e[t]=Object.keys(i).reduce(function(e,t){var n=i[t];return n.src=s(n.src),e[t]=n,e},{}),e},{}),i.poster=s(n.poster),i.original=s(n.original),n.adaptive_streaming&&(i.adaptive_streaming=s(n.adaptive_streaming)),n.adaptive_streaming_r&&e.state.overrideNativeHls&&(i.adaptive_streaming=s(n.adaptive_streaming_r)),n.thumbnails_grid&&n.thumbnails_grid.files&&(i.thumbnails_grid=Object.assign({},n.thumbnails_grid,{files:n.thumbnails_grid.files.map(function(e){return Object.assign({},e,{file:s(e.file)})})})),Object.assign({},n,i)}(d),n.wpcom.videoInfoFetched.trigger(d,o),u(d);else{var h=new Error(d?d.message:"Unknown");if(!a&&d&&"auth"===d.error)return void l(i,r,o,!0);h.code=d?d.error:null,h.errorMessage=d?d.message:null,n.wpcom.videoInfoFetchError.trigger(h,o),c(h)}},function(){var e=new Error;e.errorMessage="Unknown",n.wpcom.videoInfoFetchError.trigger(e,o),c(e)})})},a=function(e){return(r=r||an(ae().mark(function e(t){return ae().wrap(function(e){for(;;)switch(e.prev=e.next){case 0:return e.abrupt("return",new Promise(function(e){return setTimeout(e,t)}));case 1:case"end":return e.stop()}},e)}))).apply(this,arguments)},l=function(e,i,r){var s,l=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return new Promise(function(u,c){return(s=s||an(ae().mark(function s(u,c){var d,h,p,f,m,g,v,y,b,_;return ae().wrap(function(s){for(;;)switch(s.prev=s.next){case 0:t.guid=e,t.tokenError=!1,t.requestId="".concat(e,"-").concat(Math.floor(1e5*Math.random())),d=!1,h=!1,p=n.wpcom.tokenReceived.on(function(){return d=!0}),f=n.wpcom.tokenExternalAuthError.on(function(){t.tokenError=!0,d=!0}),m=n.wpcom.tokenRequestAck.on(function(){return h=!0}),n.wpcom.tokenRequest.trigger(e,t.requestId,l),g=0;case 10:if(d||!(g<30)){s.next=19;break}return s.next=13,a(500);case 13:if(!h){s.next=15;break}return s.abrupt("break",19);case 15:g++,n.wpcom.tokenRequest.trigger(e,t.requestId,l),s.next=10;break;case 19:v=0;case 20:if(d||!(v<3e4)){s.next=28;break}return s.next=23,a(200);case 23:if(v+=200,!t.tokenError){s.next=26;break}return s.abrupt("break",28);case 26:s.next=20;break;case 28:if(n.wpcom.tokenReceived.off(p),n.wpcom.tokenExternalAuthError.off(f),n.wpcom.tokenRequestAck.off(m),!d||!t.jwt.length){s.next=33;break}return s.abrupt("return",o(e,i,r,l).then(function(e){return u(e)}).catch(function(e){return c(e)}));case 33:t.guid="",y=new Error(t.tokenError?"Authentication error.":"Post message timed out."),t.tokenError&&(y.code="auth"),t.privacyDetails&&((b=t.privacyDetails).provider&&(y.code=b.provider),b.unauthorized_message&&(_=b.title?b.title:"This video is private",y.title=_,y.message=b.unauthorized_message)),n.wpcom.videoInfoFetchError.trigger(y,r),c(y);case 39:case"end":return s.stop()}},s)}))).apply(this,arguments)})};return[{name:"videoInfo",description:"Get video info from public-api",arguments:[{name:"guid",description:"The video GUID",type:"string"},{name:"birthDate",description:"The viewer's birth date",type:"object",default:{}},{name:"isBackgroundRefresh",description:"Whether the current request is a background refresh",type:"bool",default:!1}],returns:[{name:"videoInfo",description:"The video info object",type:"object"}],onEvent:function(e,n,r){if(t.guid!==e)return i.isPrivate&&!t.jwt?l(e,n,r):o(e,n,r)}},{name:"tokenRequest",description:"Event triggered when the API needs a token",arguments:[{name:"guid",description:"The video GUID",type:"string"},{name:"requestId",description:"The id of the request, to track responses to simultaneous requests.",type:"string"},{name:"isRetry",description:"If the request for a token is the result of a retry after an auth error",type:"boolean"}]},{name:"videoInfoFetchError",description:"Event triggered when video info fetch failed",returns:[{name:"error",description:"The fetch error",type:"object"}
14,{name:"isBackgroundRefresh",description:"Whether this is a background refresh operation",type:"bool"}]},{name:"videoInfoFetched",description:"Event triggered when video info were fetched",returns:[{name:"videoInfo",description:"The video info object",type:"object"},{name:"isBackgroundRefresh",description:"Whether this is a background refresh operation",type:"bool"}]}]};function ar(e){return function(e){if(Array.isArray(e))return as(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return as(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?as(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function as(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}var ao=[function(e,t,n,i){var r=[sZ(e),s$(e),ok(e,t),oD(e),oC(e),oM(e),oP(e)];return i||r.push(function(e,t){return{name:"setBorderColors",description:"Sets the border colors",arguments:[{name:"colors",description:"The border colors, an array of length for with rgb() colors colors",type:"array"}],returns:[{name:"done",description:"done",type:"bool"}],onEvent:function(e){if(!Array.isArray(e)||4!==e.length||e.some(function(e){return"string"!=typeof e}))throw new Error("Border colors must be an array of 4 strings");t.status.borderColorsChanged.trigger(e)},onPublicCall:function(){throw"not public"}}}(0,t)),["controls",r]},function(e,t,n,i){return["customize",(r=oU(e),function(e){if(Array.isArray(e))return oB(e)}(r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(r)||function(e,t){if(e){if("string"==typeof e)return oB(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?oB(e,t):void 0}}(r)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())];var r},function(e,t){var n,i={videoInfo:{}};return["info",[{name:"_postInit",onEvent:function(){t.wpcom.videoInfoFetched.on(function(e){i.videoInfo=JSON.parse(JSON.stringify(e)),t.info.infoUpdated.trigger()})}},{name:"infoUpdated",description:"Event triggered when media information has changed",example:'api.status.onInfoUpdated( () => console.log( "Video info updated" ) );'},oF(e,t),oV(i),oZ(i),oW(i),o$(i),oX(e)].concat((n=o3(e,t),function(e){if(Array.isArray(e))return o5(e)}(n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(n)||function(e,t){if(e){if("string"==typeof e)return o5(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?o5(e,t):void 0}}(n)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()))]},function(e,t){return["status",[].concat(ob(s5(e,t)),ob(os(e,t)),[sX(e)],ob(s7(t)),[oa(e,t),ou(e,t),od(e,t)],ob(om(e)),ob(ov(e,t)),[{name:"segmentsWatched",description:"Triggered when the user watches a new segment of the video",returns:[{name:"segmentsWatched",description:"The segments of the video that have been watched",type:"array"}],example:String.raw(oy||(n=["api.status.onSegmentsWatched(\n ( segments ) => {\n segments.forEach( ( segment ) => {\n const start = segment[0];\n const end = segment[1];\n // Do something with the segment\n } );\n }\n);)"],i||(i=n.slice(0)),oy=Object.freeze(Object.defineProperties(n,{raw:{value:Object.freeze(i)}}))))},ot(e,t)])];var n,i}
14,function(e,t,n,i){var r={jwt:n.token||"",guid:"",tokenError:!1,privacyDetails:{}};return["wpcom",i?[]:[].concat(ar(o6(r,t)),ar(o9(r)),[o8(r)],ar(ai(e,r,t,n)))]}];function aa(e){return aa="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aa(e)}function al(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}function au(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,ap(i.key),i)}}function ac(e,t,n){return t&&au(e.prototype,t),n&&au(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function ad(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function ah(e,t,n){return(t=ap(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ap(e){var t=function(e,t){if("object"!==aa(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==aa(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===aa(t)?t:String(t)}var af=ac(function e(t,n){var i=this;ad(this,e),ah(this,"initRegistry",function(e,t){var n=[];ao.forEach(function(r){var s,o,a=(s=r(e,i,t,!1),o=2,function(e){if(Array.isArray(e))return e}(s)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var i,r,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(i=s.call(n)).done)&&(a.push(i.value),a.length!==t);l=!0);}catch(e){u=!0,r=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw r}}return a}}(s,o)||function(e,t){if(e){if("string"==typeof e)return al(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?al(e,t):void 0}}(s,o)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),l=a[0],u=a[1];i[l]={},u.forEach(function(e){var t=e.name;"_postInit"===t?n.push(e.onEvent):e.onEvent?i[l][t]=i.generateEndpointFunction(e):i[l][t]=i.generateEndpointEvent()})}),n.forEach(function(e){e()})}),ah(this,"generateEndpointEvent",function(){return new(function(){return ac(function e(){var t=this;ad(this,e),ah(this,"on",function(e){var n=t.currentId++;return t.callbacks[n]=e,n}),ah(this,"off",function(e){e in t.callbacks&&delete t.callbacks[e]}),ah(this,"trigger",function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];
14Object.keys(t.callbacks).forEach(function(e){var i;return(i=t.callbacks)[e].apply(i,n)})}),this.currentId=0,this.callbacks={}})}())}),ah(this,"generateEndpointFunction",function(e){return function(t){for(var n=arguments.length,i=new Array(n>1?n-1:0),r=1;r<n;r++)i[r-1]=arguments[r];return new Promise(function(n,r){try{t&&e.onPublicCall&&e.onPublicCall();var s=e.onEvent.apply(e,i);"object"===aa(s)&&"function"==typeof s.then?s.then(n).catch(r):n(s)}catch(e){r(e)}})}}),this.initRegistry(t,n)});const am=af;function ag(e){return ag="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ag(e)}function av(e){return av="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},av(e)}function ay(e){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=[],s=n.useAverageColor,a={};if(void 0===s||!s){var l=n.seekbarColor,u=void 0===l?"":l,c=n.seekbarPlayedColor,d=void 0===c?"":c,h=n.seekbarLoadedColor,p=void 0===h?"":h;sW.test(u)&&i.push(sG(".vjs-slider",u)),sW.test(d)&&(i.push(sG(".vjs-play-progress",d)),a.progressColor=d),sW.test(p)&&(i.push(sG(".vjs-load-progress",p)),i.push(sG(".vjs-load-progress div",p)),a.progressBackgroundColor=p)}var f=t().getElementsByTagName("head")[0],m=t().createElement("style"),g=i.join("");m.type="text/css",m.appendChild(t().createTextNode(g)),f.appendChild(m);var v=!(r.default.browser.IS_ANY_SAFARI&&!n.overrideNativeHls||!window.MediaSource),y=!1;try{localStorage.length,y=!0}catch(e){}var b={responsive:!0,controls:!0,crossOrigin:"anonymous",preload:"metadata",muted:!1,playbackRates:[.25,.5,.75,1,1.25,1.5,1.75,2],inactivityTimeout:r.default.browser.TOUCH_ENABLED?5e3:1500,nativeControlsForTouch:!1,loadingSpinner:!1,resizeManager:!0,persistTextTrackSettings:!0,controlBar:{children:[r.default.browser.TOUCH_ENABLED?{}:{name:"playToggle"},r.default.browser.TOUCH_ENABLED?{name:"muteToggle"}:{name:"volumePanel"},{name:"currentTimeDisplay"},{name:"timeDivider"},{name:"durationDisplay"},{name:"liveDisplay"},{name:"chapterTitleButton"},{name:"customControlSpacer"},{name:"settingsMenuButton",entries:["playbackRateMenuButton","maxQualityButton","settingsMenuCapsButton"]},t().pictureInPictureEnabled?{name:"pictureInPictureToggle"}:{},{name:"fullscreenToggle"},{name:"progressControl"}]},html5:{vhs:{useDevicePixelRatio:!0,overrideNative:v,useBandwidthFromLocalStorage:y},nativeAudioTracks:!v,nativeVideoTracks:!v},textTrackDisplay:{allowMultipleShowingTracks:!0},userActions:{hotkeys:function(e){S.handleHotkeys(e)},click:function(){var e=S.controlBar.settingsMenuButton,t=S.controlBar.chapterTitleButton;e&&e.isShowingMenuOrDetailView()||t&&t.isMenuOpen()||(S.paused()?S.play():S.pause())}}};if(n.translations){var _=n.translations,T=_.language,j=_.languages;T&&j&&j[T]&&(b.language=T,b.languages=j)}n.hd&&(b.html5.vhs.limitRenditionByPlayerDimensions=!1,b.html5.vhs.bandwidth=Number.MAX_SAFE_INTEGER);var w=r.default.obj.merge(b,function(e){var t=["autoplay","bypassAgeGate","defaultLangCode","fill","height","loop","mentalHealthFilterLevel","muted","playsinline","poster","preload","width"],n={autoPlay:"autoplay",preloadContent:"preload"},i=[];return Object.keys(e).forEach(function(r){t.indexOf(r)>-1?i[r]=e[r]:Object.keys(n).indexOf(r)>-1&&(i[n[r]]=e[r])}),i}(n));w.autoplay&&(w.autoplay="any");var S=(0,r.default)(e,w,function(){var e=this;S.setState({overrideNativeHls:v}),S.on("loadeddata",function(){if(!isNaN(n.at)){var e=parseInt(n.at);e<=S.duration()&&S.currentTime(e)}}),S.ttfp(),S.averageSeekbarColor(n),S.networkStatus(n),S.apiFetch(n),S.converting(a),S.director(n),S.chaptersMarkers(n),isNaN(n.at)&&S.playbackProgress(n),S.postMessageApi(n),S.stats(),S.keyboardNavigation(),S.thumbnails(n),S.reloadSourceOnError({getSource:function(e){var t,n=S.error(),i=n?n.code:null;if(null!==n&&MediaError.MEDIA_ERR_NETWORK!==i)if(MediaError.MEDIA_ERR_DECODE===i){var r=n.message,s=null;if(r.split(" ").some(function(e){return!!e.endsWith("m3u8")&&(s=e,!0)}),null!==s){var o=s.replace(".playlist.m3u8","").replace(".audio.m3u8",""),a=null;if(Object.keys(S.director().state.videoInfo.format_meta).some(function(e){return!!o.endsWith(e)&&(a=e,!0)}),null!==a){var l=null!==(t=S.state.formatsToCacheBust)&&void 0!==t?t:{};1<=l[a]?l[a]+=1:l[a]=1,S.setState({formatsToCacheBust:l}),e(S.src())}}}else e(S.src())},errorInterval:5}),S.on("xhr-hooks-ready",function(){S.tech({IWillNotUseThisInPlugins:!0}).vhs.xhr.onRequest(function(e){var t={};if(0!==e.uri.indexOf("https://videos.files.wordpress.com"))return e;if(S.state.metadataToken&&(t.metadata_token=S.state.metadataToken),"object"===av(S.state.formatsToCacheBust)){var n=e.uri;for(var i in S.state.formatsToCacheBust){var r=S.state.formatsToCacheBust[i],s=new RegExp("_"+i+"(\\.audio)?\\.mp4\\??");null!==n.match(s)&&(t.cachebust=r)}}var o="?";return Object.keys(t).forEach(function(n){-1<e.uri.indexOf(o)&&(o="&"),e.uri+="".concat(o).concat(n,"=").concat(t[n])}),e})}),n.useCoverPlaylistAlgorithm&&(b.html5.vhs.limitRenditionByPlayerDimensions=!1);var i=t().createElement("div");i.className="videopress-overlay",S.addChild("Component",{el:i},3),n.mentalHealthFilterLevel&&(S.addClass("videopress-mental-health-filter"),S.el().style.setProperty("--vp-blur-amount",n.mentalHealthFilterLevel+"px")),t().pictureInPictureEnabled&&S.addClass("videopress-has-pip"),r.default.browser.TOUCH_ENABLED?S.addChild("PlayToggle",{},4).addClass("videopress-touch-play-toggle"):S.addChild("PlayPauseAnimation"),ek()&&S.volume(ek()),S.on("volumechange",function(){!function(e){e<=1&&e>=0&&eI("volume",Math.round(100*e))}(S.volume())}),this.spinner=S.addChild("Spinner",{className:"videopress-spinner__waiting"}),S.on("waiting",function(){e.spinner.show()}),S.on(["playing","canplay","canplaythrough","ended"],function(){e.spinner.hide()}),t().addEventListener("touchstart",function(e){for(var t=S.el(),n=e.targetTouches,i=0;i<n.length;++i){var r=n.item(i);if(t.contains(r.target))return void(S.options().inactivityTimeout=b.inactivityTimeout)}S.options().inactivityTimeout=1,S.userActive(!1)}),S.on("mouseenter",function(){S.options().inactivityTimeout=b.inactivityTimeout}),S.on("mouseleave",function(){S.options().inactivityTimeout=1}),S.api.status.onFullscreenChanged(function(){S.el().focus()});try{S.addChild("FirstFocusAnchor",{},0),S.addChild("LastFocusAnchor")}catch(e){}});return S.apiRegistry=new am(S,n),S.api=function(e){return{controls:{play:function(){return new Promise(function(t,n){return e.controls.play(!1).then(t).cat
14ch(n)})},pause:function(){return new Promise(function(t,n){return e.controls.pause(!1).then(t).catch(n)})},seek:function(t){return new Promise(function(n,i){if(t=Number(t),!isNaN(t))return e.controls.seek(!1,t).then(n).catch(i);i("Invalid argument provided for timeMs")})},volume:function(t){return new Promise(function(n,i){if(t=Number(t),!isNaN(t))return e.controls.volume(!1,t).then(n).catch(i);i("Invalid argument provided for volume")})},mute:function(t){return new Promise(function(n,i){return t=(!("toLowerCase"in Object(t))||"false"!==t.toLowerCase()&&"0"!==t)&&Boolean(t),e.controls.mute(!1,t).then(n).catch(i)})},fullscreen:function(t){return new Promise(function(n,i){return t=(!("toLowerCase"in Object(t))||"false"!==t.toLowerCase()&&"0"!==t)&&Boolean(t),e.controls.fullscreen(!1,t).then(n).catch(i)})},setChapters:function(t){return new Promise(function(n,i){if(Array.isArray(t))return e.controls.setChapters(!1,t).then(n).catch(i);i("Invalid argument provided for chapters")})},setBorderColors:function(t){return new Promise(function(n,i){if(Array.isArray(t))return e.controls.setBorderColors(!1,t).then(n).catch(i);i("Invalid argument provided for colors")})}},customize:{get:function(t){return new Promise(function(n,i){return t=String(t),e.customize.get(!1,t).then(n).catch(i)})},set:function(t){return new Promise(function(n,i){if("object"===ag(t))return e.customize.set(!1,t).then(n).catch(i);i("Invalid argument provided for options")})}},info:{onInfoUpdated:function(t){return e.info.infoUpdated.on(t)},offInfoUpdated:function(t){return e.info.infoUpdated.off(t)},duration:function(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:JSON.parse(!1);return new Promise(function(n,i){return t=(!("toLowerCase"in Object(t))||"false"!==t.toLowerCase()&&"0"!==t)&&Boolean(t),e.info.duration(!1,t).then(n).catch(i)})},guid:function(){return new Promise(function(t,n){return e.info.guid(!1).then(t).catch(n)})},title:function(){return new Promise(function(t,n){return e.info.title(!1).then(t).catch(n)})},poster:function(){return new Promise(function(t,n){return e.info.poster(!1).then(t).catch(n)})},privacy:function(){return new Promise(function(t,n){return e.info.privacy(!1).then(t).catch(n)})},getThumbnailSample:function(t){return new Promise(function(n,i){if(t=Number(t),!isNaN(t))return e.info.getThumbnailSample(!1,t).then(n).catch(i);i("Invalid argument provided for count")})},enableWatchedSegments:function(){return new Promise(function(t,n){return e.info.enableWatchedSegments(!1).then(t).catch(n)})},disableWatchedSegments:function(){return new Promise(function(t,n){return e.info.disableWatchedSegments(!1).then(t).catch(n)})},toggleWatchedSegments:function(){return new Promise(function(t,n){return e.info.toggleWatchedSegments(!1).then(t).catch(n)})},watched:function(){return new Promise(function(t,n){return e.info.watched(!1).then(t).catch(n)})},resetWatched:function(){return new Promise(function(t,n){return e.info.resetWatched(!1).then(t).catch(n)})}},status:{fullscreen:function(){return new Promise(function(t,n){return e.status.fullscreen(!1).then(t).catch(n)})},onFullscreenChanged:function(t){return e.status.fullscreenChanged.on(t)},offFullscreenChanged:function(t){return e.status.fullscreenChanged.off(t)},player:function(){return new Promise(function(t,n){return e.status.player(!1).then(t).catch(n)})},onPlayerStatusChanged:function(t){return e.status.playerStatusChanged.on(t)},offPlayerStatusChanged:function(t){return e.status.playerStatusChanged.off(t)},audio:function(){return new Promise(function(t,n){return e.status.audio(!1).then(t).catch(n)})},playbackTime:function(){return new Promise(function(t,n){return e.status.playbackTime(!1).then(t).catch(n)})},onPlaybackTimeUpdated:function(t){return e.status.playbackTimeUpdated.on(t)},offPlaybackTimeUpdated:function(t){return e.status.playbackTimeUpdated.off(t)},onTimeUpdate:function(t){return e.status.timeUpdate.on(t)},offTimeUpdate:function(t){return e.status.timeUpdate.off(t)},onChaptersChapterChange:function(t){return e.status.chaptersChapterChange.on(t)},offChaptersChapterChange:function(t){return e.status.chaptersChapterChange.off(t)},onChaptersTrackChange:function(t){return e.status.chaptersTrackChange.on(t)},offChaptersTrackChange:function(t){return e.status.chaptersTrackChange.off(t)},onBorderColorsChanged:function(t){return e.status.borderColorsChanged.on(t)},offBorderColorsChanged:function(t){return e.status.borderColorsChanged.off(t)},borderColors:function(){return new Promise(function(t,n){return e.status.borderColors(!1).then(t).cat
14ch(n)})},onError:function(t){return e.status.error.on(t)},offError:function(t){return e.status.error.off(t)},onSegmentsWatched:function(t){return e.status.segmentsWatched.on(t)},offSegmentsWatched:function(t){return e.status.segmentsWatched.off(t)},onPlaybackRateUpdate:function(t){return e.status.playbackRateUpdate.on(t)},offPlaybackRateUpdate:function(t){return e.status.playbackRateUpdate.off(t)}},wpcom:{ackJwtRequest:function(t){return new Promise(function(n,i){if("object"===ag(t))return e.wpcom.ackJwtRequest(!1,t).then(n).catch(i);i("Invalid argument provided for data")})},setJwt:function(t){return new Promise(function(n,i){if("object"===ag(t))return e.wpcom.setJwt(!1,t).then(n).catch(i);i("Invalid argument provided for data")})},onTokenRequestAck:function(t){return e.wpcom.tokenRequestAck.on(t)},offTokenRequestAck:function(t){return e.wpcom.tokenRequestAck.off(t)},onTokenReceived:function(t){return e.wpcom.tokenReceived.on(t)},offTokenReceived:function(t){return e.wpcom.tokenReceived.off(t)},onTokenExternalAuthError:function(t){return e.wpcom.tokenExternalAuthError.on(t)},offTokenExternalAuthError:function(t){return e.wpcom.tokenExternalAuthError.off(t)},triggerTokenExternalAuthError:function(){return new Promise(function(t,n){return e.wpcom.triggerTokenExternalAuthError(!1).then(t).catch(n)})},setPrivacyDetails:function(t){return new Promise(function(n,i){if("object"===ag(t))return e.wpcom.setPrivacyDetails(!1,t).then(n).catch(i);i("Invalid argument provided for details")})},getJwt:function(){return new Promise(function(t,n){return e.wpcom.getJwt(!1).then(t).catch(n)})},videoInfo:function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:JSON.parse({}),i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:JSON.parse(!1);return new Promise(function(r,s){if(t=String(t),"object"===ag(n))return i=(!("toLowerCase"in Object(i))||"false"!==i.toLowerCase()&&"0"!==i)&&Boolean(i),e.wpcom.videoInfo(!1,t,n,i).then(r).catch(s);s("Invalid argument provided for birthDate")})},onTokenRequest:function(t){return e.wpcom.tokenRequest.on(t)},offTokenRequest:function(t){return e.wpcom.tokenRequest.off(t)},onVideoInfoFetchError:function(t){return e.wpcom.videoInfoFetchError.on(t)},offVideoInfoFetchError:function(t){return e.wpcom.videoInfoFetchError.off(t)},onVideoInfoFetched:function(t){return e.wpcom.videoInfoFetched.on(t)},offVideoInfoFetched:function(t){return e.wpcom.videoInfoFetched.off(t)}}}}(S.apiRegistry),o()(n,"cover",!1)&&S.addClass("videopress-cover"),!1===o()(n,"controls",!0)?(S.addClass("videopress-controls-disabled"),S.on("touchend",function(e){"VIDEO"===e.target.tagName&&(S.paused()?S.play():S.pause())})):S.mobileUi({fullscreen:{enterOnRotate:!1,exitOnRotate:!1,lockOnRotate:!1},touchControls:{seekSeconds:10,tapTimeout:300,disableOnEnd:!1}}),S.posterImage&&S.posterImage.crossOrigin(null),S}r.default.registerComponent("MaxQualityButton",eW),r.default.registerComponent("SettingsMenuButton",td),r.default.registerComponent("SettingsMenuCapsButton",tT),r.default.registerComponent("ShareButton",et),r.default.registerComponent("PlayPauseAnimation",ed),r.default.registerComponent("Spinner",tC),r.default.registerComponent("ErrorScreen",tR),r.default.registerComponent("ChapterTitleButton",W),r.default.registerComponent("FirstFocusAnchor",tq),r.default.registerComponent("LastFocusAnchor",tq),r.default.registerPlugin("averageSeekbarColor",t4),r.default.registerPlugin("keyboardNavigation",rH),r.default.registerPlugin("playbackProgress",r2),r.default.registerPlugin("postMessageApi",sr),r.default.registerPlugin("stats",sp),r.default.registerPlugin("thumbnails",sO),r.default.registerPlugin("director",rM),r.default.registerPlugin("networkStatus",rY),r.default.registerPlugin("chaptersMarkers",sV),n(8390);var ab=n(4420);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}function aT(e){return aT="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},aT(e)}function aj(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,ax(i.key),i)}}function aw(e,t,n){return t&&aj(e.prototype,t),n&&aj(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}function aS(e,t,n){return(t=ax(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ax(e){var t=function(e,t){if("object"!==aT(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,"string");if("object"!==aT(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===aT(t)?t:String(t)}var ak="channel_init",aE="Call to an unknown method",aC="unknown_method",aI=aw(function e(t){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),aS(this,"hookEventsFromApi",function(){Object.keys(n.publicApi).forEac
14h(function(e){var t=n.publicApi[e];"object"===aT(t)&&Object.keys(t).forEach(function(t){var i=/^on([A-Z].*)/.exec(t);if(i){var r=i[1].charAt(0).toLowerCase()+i[1].slice(1);n.publicApi[e][t](function(){for(var t=arguments.length,i=new Array(t),s=0;s<t;s++)i[s]=arguments[s];n.postEvent(e+"."+r,i)})}})})}),aS(this,"onMessage",function(e){var t,i=null!==(t=e.data.event)&&void 0!==t&&t;if(i&&e.ports.length&&ak===i){var r=e.ports[0];n.postMessageListeners.push(r),r.onmessage=function(e){return n.callPublicApi(r,e)},n.postMessage({event:ak,message:{ack:!0}},[r])}}),aS(this,"callPublicApi",function(e,t){var i,r,s,o=null!==(i=t.data.event)&&void 0!==i&&i;if(o){var a=[e],l=null!==(r=t.data.xchgId)&&void 0!==r?r:0,u=o.split(".");if(2===u.length){var c=u[0],d=u[1];if(n.publicApi[c]&&n.publicApi[c][d]){var h=n.publicApi[c][d],p=h.length,f=Array.isArray(t.data.args)?t.data.args:[];p>f.length?n.postError("Missing arguments","missing_arguments",l,a):h.apply(void 0,(s=f,function(e){if(Array.isArray(e))return a_(e)}(s)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(s)||function(e,t){if(e){if("string"==typeof e)return a_(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?a_(e,t):void 0}}(s)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())).then(function(e){return n.postResult(o,e,l,a)}).catch(function(e){n.postError({method:o,result:e},"method_failed",l,a)})}else n.postError(aE,aC,l,a)}else n.postError(aE,aC,l,a)}}),aS(this,"postResult",function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n.postMessage({event:"result",message:{method:e,result:t},xchgId:i},r)}),aS(this,"postError",function(e,t,i){var r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null;n.postMessage({event:"error",message:e,code:t,xchgId:i},r)}),aS(this,"postEvent",function(e,t){var i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null;n.postMessage({event:"event",type:e,args:t},i)}),aS(this,"postMessage",function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;(null!=t?t:n.postMessageListeners).forEach(function(t){t.postMessage(e)})}),this.publicApi=t,this.hookEventsFromApi(),this.postMessageListeners=[],window.addEventListener("message",function(e){return n.onMessage(e)})});const aD=aI;var aA=n(1985),aM={};aM.styleTagTransform=y(),aM.setAttributes=f(),aM.insert=h().bind(null,"head"),aM.domAPI=c(),aM.insertStyleElement=g(),l()(aA.Z,aM),aA.Z&&aA.Z.locals&&aA.Z.locals;var aO=n(7192),aP={};aP.styleTagTransform=y(),aP.setAttributes=f(),aP.insert=h().bind(null,"head"),aP.domAPI=c(),aP.insertStyleElement=g(),l()(aO.Z,aP),aO.Z&&aO.Z.locals&&aO.Z.locals;const aN=function(e,t,n){if(e&&t)return function(e,t,n){var i="videopress-player-"+t,r=null!==document.getElementById(i),s=r?document.getElementById(i):document.createElement("video");s.className="video-js vjs-videopress",s.setAttribute("id",i),s.setAttribute("crossorigin","anonymous"),n.height&&s.setAttribute("height",n.height),n.width&&s.setAttribute("width",n.width),n.guid=t,r||e.appendChild(s);var o=ay(s,n);!function(e,t){var n=getComputedStyle(t),i=parseFloat(n.height);i>=400?e.addClass("videopress-layout-vertical-large"):i>290?e.addClass("videopress-layout-vertical-medium"):e.addClass("videopress-layout-vertical-small")}(o,s);var a=!!n.disableApi,l=a?null:(0,ab.default)(o.apiRegistry,n);return a||new aD(l),{state:null,destroy:function(){return o&&o.dispose()},api:l}}(t,e,n)}})(),i.default})());
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.