From 43a3a85e7a811b4c2d57bb1179af1b1aab5fb113 Mon Sep 17 00:00:00 2001 From: Alexandre Iooss Date: Mon, 14 Sep 2020 21:25:54 +0200 Subject: [PATCH] Add ovenplayer in statics --- ghostream/static/ovenplayer/ovenplayer.js | 2 ++ ghostream/static/ovenplayer/ovenplayer.js.LICENSE | 1 + ...ovider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js | 2 ++ ...venplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE | 1 + .../ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js | 2 ++ .../ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE | 1 + 6 files changed, 9 insertions(+) create mode 100644 ghostream/static/ovenplayer/ovenplayer.js create mode 100644 ghostream/static/ovenplayer/ovenplayer.js.LICENSE create mode 100644 ghostream/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js create mode 100644 ghostream/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE create mode 100644 ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js create mode 100644 ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE diff --git a/ghostream/static/ovenplayer/ovenplayer.js b/ghostream/static/ovenplayer/ovenplayer.js new file mode 100644 index 0000000..cfce58b --- /dev/null +++ b/ghostream/static/ovenplayer/ovenplayer.js @@ -0,0 +1,2 @@ +/*! For license information please see ovenplayer.js.LICENSE */ +!function(e){function t(t){for(var n,o,i=t[0],A=t[1],a=0,u=[];aGet Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"Can not load due to dashjs. Please check the lastest version.",reason:"dash.js version is old. Please check the lastest."},104:{code:104,message:"Can not load due to google ima for Ads. ",reason:"Please check the google ima library."},105:{code:105,message:"Can not find the dashjs. Please check the dashjs.",reason:"Not found dashjs."},106:{code:106,message:"Can not find the hlsjs. Please check the hlsjs.",reason:"Not found hlsjs."},300:{code:300,message:"Can not play due to unknown reasons.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"Fetching process aborted by user.",reason:"Fetching process aborted by user."},302:{code:302,message:"Some of the media could not be downloaded due to a network error.",reason:"Error occurred when downloading."},303:{code:303,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"Error occurred when decoding."},304:{code:304,message:"Media playback has been canceled. It looks like your media is corrupted or your browser does not support the features your media uses.",reason:"Media playback not supported."},305:{code:305,message:"Can not load captions due to unknown reasons.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server cannot or will not process the request."},307:{code:307,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server refused the request."},308:{code:308,message:"Unable to load media. This may be due to a server or network error, or due to an unsupported format.",reason:"The server do not accept the request."},501:{code:501,message:"Connection with low-latency(OME) server failed.",reason:"WebSocket connection failed."},502:{code:502,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"Connection with low-latency(OME) server failed.",reason:"WebRTC setLocalDescription failed."},510:{code:510,message:"Network connection is unstable. Check the network connection.",reason:"Network is slow."},511:{code:511,message:"Connection with low-latency(OME) terminated unexpectedly.",reason:"Unexpected end of connection."}}}},{lang:"ko",ui:{context:"오븐플레이어에 관하여",controls:{live:"라이브",low_latency_live:"초저지연 라이브",low_latency_p2p:"초저지연 P2P"},playlist:"플레이리스트",setting:{title:"설정",speed:"재생 속도",source:"소스",quality:"품질",caption:"자막",display:"표시"}},api:{message:{muted_play:"눌러서 소리 켜기"},error:{100:{code:100,message:"알 수 없는 이유로 로드 할 수 없습니다.",reason:"알 수 없는 이유로 로드 할 수 없습니다."},101:{code:101,message:"지원되지 않는 미디어로 인해 로드 할 수 없습니다.",reason:"Can not load due to unsupported media."},102:{code:102,message:"플레시 로드가 중단 되었습니다.
Get Adobe Flash player",reason:"It looks like not found swf or your environment is localhost."},103:{code:103,message:"DashJS로 인해 로드 할 수 없습니다. dashjs 버전을 확인해주세요.",reason:"dash.js version is old. Please check the lastest."},104:{code:104,message:"Google IMA 라이브러리가 없어 로드 할 수 없습니다.",reason:"Please check the google ima library."},105:{code:105,message:"DashJS 라이브러리가 없어 로드 할 수 없습니다.",reason:"Not found dashjs."},106:{code:106,message:"HLSJS 라이브러리가 없어 로드 할 수 없습니다.",reason:"Not found hlsjs."},300:{code:300,message:"알 수 없는 이유로 재생할 수 없습니다.",reason:"Can not play due to unknown reasons."},301:{code:301,message:"사용자에 의한 프로세스 중단.",reason:"Fetching process aborted by user."},302:{code:302,message:"네트워크 오류로 인해 일부 미디어를 다운로드 할 수 없습니다.",reason:"Error occurred when downloading."},303:{code:303,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"Error occurred when decoding."},304:{code:304,message:"미디어 재생이 취소되었습니다. 미디어가 손상되었거나 브라우저가 미디어에서 사용하는 기능을 지원하지 않는 것 같습니다.",reason:"Media playback not supported."},305:{code:305,message:"알 수 없는 이유로 자막을 로드 할 수 없습니다.",reason:"Can not load captions due to unknown reasons."},306:{code:306,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"The server cannot or will not process the request."},307:{code:307,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"The server refused the request."},308:{code:308,message:"미디어를 로드 할 수 없습니다. 서버 또는 네트워크 오류 또는 지원되지 않는 형식으로 인해 발생할 수 있습니다.",reason:"The server do not accept the request."},501:{code:501,message:"웹소켓 연결 실패",reason:"WebSocket connection failed."},502:{code:502,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC addIceCandidate failed."},503:{code:503,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC setRemoteDescription failed."},504:{code:504,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC peer createOffer failed."},505:{code:505,message:"저지연(OME) 서버와 연결에 실패했습니다.",reason:"WebRTC setLocalDescription failed."},510:{code:510,message:"네트워크 연결이 불안정합니다. 네트워크 연결을 확인하십시오.",reason:"Network is slow."}}}}]},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var r=n(2);e.exports=function(e){if(!r(e))throw TypeError(e+" is not an object!");return e}},function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(138)),o=A(n(6)),i=A(n(7));function A(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n,A,a,s,u,l){var c=i.default.isElement(e)?(0,o.default)(e):e,f=void 0,p={},g=null,d={};d.data=A;var y=function(e){var t=document.createElement("div");return t.innerHTML=e,f=(0,o.default)(t.firstChild),t.firstChild};return n&&n.systemText&&(g=n.systemText.ui),l?c.replace(y(r.default[t+"Template"](g,A))):c.append(y(r.default[t+"Template"](g,A))),s&&s(f,d),Object.keys(a).forEach(function(e){var t=e.split(" "),n=t[0].replace(/ /gi,""),r=t[1].replace(/ /gi,""),i="";if(i="document"===r||"window"===r||"body"===r?(0,o.default)(r):f.find(r)||(f.hasClass(r.replace(".",""))?f:null),!(n&&r&&i))return!1;var A=Object.keys(p).length++,s=function(t){return a[e](t,f,d)};p[A]={name:n,target:r,callback:s};var u=i.get().length;if(u>1)for(var l=i.get(),c=0;c1)for(var i=n.get(),A=0;A1?n:n[0]},i="";return(i=r.default.isElement(t)||r.default.every(t,function(e){return r.default.isElement(e)})?t:"document"===t?document:"window"===t?window:o(document,t))?(n.show=function(){i.style.display="block"},n.hide=function(){i.style.display="none"},n.addClass=function(e){i.classList?i.classList.add(e):-1===i.className.split(" ").indexOf(e)&&(i.className+=" "+e)},n.after=function(e){i.insertAdjacentHTML("afterend",e)},n.append=function(e){i.appendChild(e)},n.before=function(e){i.insertAdjacentHTML("beforebegin",e)},n.children=function(){return i.children||[]},n.contains=function(e){return i!==e&&i.contains(e)},n.empty=function(){i.innerHTML=""},n.find=function(t){return e(o(i,t))},n.css=function(e,t){if(!t)return i.style[e];i.length>0?i.forEach(function(n){n.style[e]=t}):i.style[e]=t},n.removeClass=function(e){i.classList?i.classList.remove(e):i.className=i.className.replace(new RegExp("(^|\\b)"+e.split(" ").join("|")+"(\\b|$)","gi")," ")},n.removeAttribute=function(e){i.removeAttribute(e)},n.text=function(e){if(void 0===e)return i.textContent;i.textContent=e},n.html=function(e){i.innerHTML=e},n.hasClass=function(e){return i.classList?i.classList.contains(e):new RegExp("(^| )"+e+"( |$)","gi").test(i.name)},n.is=function(e){return i===e},n.offset=function(){var e=i.getBoundingClientRect();return{top:e.top+document.body.scrollTop,left:e.left+document.body.scrollLeft}},n.width=function(){return i.clientWidth},n.height=function(){return i.clientHeight},n.attr=function(e){return i.getAttribute(e)},n.replace=function(e){i.replaceWith(e)},n.remove=function(){i.length>1?i.parentElement.removeChild(i):i.remove()},n.removeChild=function(e){if(e)i.removeChild(e);else for(;i.hasChildNodes();)i.removeChild(i.firstChild)},n.get=function(){return i},n.closest=function(t){var n=i.closest(t);return n?e(n):null},n):null}},function(e,t,n){"use strict";(function(e,n){var r,o="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};!function(){var i="object"==("undefined"==typeof self?"undefined":o(self))&&self.self===self&&self||"object"==(void 0===e?"undefined":o(e))&&e.global===e&&e||this||{},A=i._,a=Array.prototype,s=Object.prototype,u="undefined"!=typeof Symbol?Symbol.prototype:null,l=a.push,c=a.slice,f=s.toString,p=s.hasOwnProperty,g=Array.isArray,d=Object.keys,y=Object.create,h=function(){},v=function e(t){return t instanceof e?t:this instanceof e?void(this._wrapped=t):new e(t)};t.nodeType?i._=v:(!n.nodeType&&n.exports&&(t=n.exports=v),t._=v),v.VERSION="1.9.1";var E,M=function(e,t,n){if(void 0===t)return e;switch(null==n?3:n){case 1:return function(n){return e.call(t,n)};case 3:return function(n,r,o){return e.call(t,n,r,o)};case 4:return function(n,r,o,i){return e.call(t,n,r,o,i)}}return function(){return e.apply(t,arguments)}},w=function(e,t,n){return v.iteratee!==E?v.iteratee(e,t):null==e?v.identity:v.isFunction(e)?M(e,t,n):v.isObject(e)&&!v.isArray(e)?v.matcher(e):v.property(e)};v.iteratee=E=function(e,t){return w(e,t,1/0)};var m=function(e,t){return t=null==t?e.length-1:+t,function(){for(var n=Math.max(arguments.length-t,0),r=Array(n),o=0;o":">",'"':""","'":"'","`":"`"},H=v.invert(W),Z=function(e){var t=function(t){return e[t]},n="(?:"+v.keys(e).join("|")+")",r=RegExp(n),o=RegExp(n,"g");return function(e){return e=null==e?"":""+e,r.test(e)?e.replace(o,t):e}};v.escape=Z(W),v.unescape=Z(H),v.result=function(e,t,n){v.isArray(t)||(t=[t]);var r=t.length;if(!r)return v.isFunction(n)?n.call(e):n;for(var o=0;o/g,interpolate:/<%=([\s\S]+?)%>/g,escape:/<%-([\s\S]+?)%>/g};var V=/(.)^/,K={"'":"'","\\":"\\","\r":"r","\n":"n","\u2028":"u2028","\u2029":"u2029"},X=/\\|'|\r|\n|\u2028|\u2029/g,q=function(e){return"\\"+K[e]};v.template=function(e,t,n){!t&&n&&(t=n),t=v.defaults({},t,v.templateSettings);var r,o=RegExp([(t.escape||V).source,(t.interpolate||V).source,(t.evaluate||V).source].join("|")+"|$","g"),i=0,A="__p+='";e.replace(o,function(t,n,r,o,a){return A+=e.slice(i,a).replace(X,q),i=a+t.length,n?A+="'+\n((__t=("+n+"))==null?'':_.escape(__t))+\n'":r?A+="'+\n((__t=("+r+"))==null?'':__t)+\n'":o&&(A+="';\n"+o+"\n__p+='"),t}),A+="';\n",t.variable||(A="with(obj||{}){\n"+A+"}\n"),A="var __t,__p='',__j=Array.prototype.join,print=function(){__p+=__j.call(arguments,'');};\n"+A+"return __p;\n";try{r=new Function(t.variable||"obj","_",A)}catch(t){throw t.source=A,t}var a=function(e){return r.call(this,e,v)},s=t.variable||"obj";return a.source="function("+s+"){\n"+A+"}",a},v.chain=function(e){var t=v(e);return t._chain=!0,t};var $=function(e,t){return e._chain?v(t).chain():t};v.mixin=function(e){return v.each(v.functions(e),function(t){var n=v[t]=e[t];v.prototype[t]=function(){var e=[this._wrapped];return l.apply(e,arguments),$(this,n.apply(v,e))}}),v},v.mixin(v),v.each(["pop","push","reverse","shift","sort","splice","unshift"],function(e){var t=a[e];v.prototype[e]=function(){var n=this._wrapped;return t.apply(n,arguments),"shift"!==e&&"splice"!==e||0!==n.length||delete n[0],$(this,n)}}),v.each(["concat","join","slice"],function(e){var t=a[e];v.prototype[e]=function(){return $(this,t.apply(this._wrapped,arguments))}}),v.prototype.value=function(){return this._wrapped},v.prototype.valueOf=v.prototype.toJSON=v.prototype.value,v.prototype.toString=function(){return String(this._wrapped)},void 0===(r=function(){return v}.apply(t,[]))||(n.exports=r)}()}).call(this,n(65),n(67)(e))},function(e,t,n){var r=n(53)("wks"),o=n(30),i=n(4).Symbol,A="function"==typeof i;(e.exports=function(e){return r[e]||(r[e]=A&&i[e]||(A?i:o)("Symbol."+e))}).store=r},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t,n){var r=n(24),o=Math.min;e.exports=function(e){return e>0?o(r(e),9007199254740991):0}},function(e,t,n){var r=n(3),o=n(109),i=n(48),A=Object.defineProperty;t.f=n(12)?Object.defineProperty:function(e,t,n){if(r(e),t=i(t,!0),r(n),o)try{return A(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(9)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.extractExtension=void 0,t.trim=function(e){return e?e.replace(/^\s+|\s+$/g,""):""},t.naturalHms=function(e){var t=parseInt(e,10);if(!e)return"00:00";var n=Math.floor(t/3600),r=Math.floor((t-3600*n)/60),o=t-3600*n-60*r;r<10&&(r="0"+r);o<10&&(o="0"+o);return n>0?n+":"+r+":"+o:r+":"+o},t.hmsToSecond=function(e,t){if(!e)return 0;if(r.default.isNumber(e)&&!r.default.isNaN(e))return e;var n=(e=e.replace(",",".")).split(":"),o=n.length,i=0;if("s"===e.slice(-1))i=parseFloat(e);else if("m"===e.slice(-1))i=60*parseFloat(e);else if("h"===e.slice(-1))i=3600*parseFloat(e);else if(o>1){var A=o-1;4===o&&(t&&(i=parseFloat(n[A])/t),A-=1),i+=parseFloat(n[A]),i+=60*parseFloat(n[A-1]),o>=3&&(i+=3600*parseFloat(n[A-2]))}else i=parseFloat(e);if(r.default.isNaN(i))return 0;return i};var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.extractExtension=function(e){if(!e||"rtmp"==e.substr(0,4))return"";var t=function(e){var t="";return/[(,]format=mpd-/i.test(e)?t="mpd":/[(,]format=m3u8-/i.test(e)&&(t="m3u8"),t}(e);return t||((e=e.split("?")[0].split("#")[0]).lastIndexOf(".")>-1?e.substr(e.lastIndexOf(".")+1,e.length).toLowerCase():"")}},function(e,t,n){var r=n(11),o=n(29);e.exports=n(12)?function(e,t,n){return r.f(e,t,o(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var r=n(89),o=n(33);e.exports=function(e){return r(o(e))}},function(e,t,n){var r=n(33);e.exports=function(e){return Object(r(e))}},function(e,t,n){var r=n(0),o=n(28),i=n(9);e.exports=function(e,t){var n=(o.Object||{})[e]||Object[e],A={};A[e]=t(n),r(r.S+r.F*i(function(){n(1)}),"Object",A)}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));var o=[];t.default=function(){var e={},t=function(){for(var e=0;en;)o[n]=t[n++];return o},De=function(e,t,n){z(e,t,{get:function(){return this._d[n]}})},Le=function(e){var t,n,r,o,i,A,a=m(e),s=arguments.length,l=s>1?arguments[1]:void 0,c=void 0!==l,f=T(a);if(void 0!=f&&!I(f)){for(A=f.call(a),r=[],t=0;!(i=A.next()).done;t++)r.push(i.value);a=r}for(c&&s>2&&(l=u(l,arguments[2],2)),t=0,n=d(a.length),o=Ce(this,n);n>t;t++)o[t]=c?l(a[t],t):a[t];return o},xe=function(){for(var e=0,t=arguments.length,n=Ce(this,t);t>e;)n[e]=arguments[e++];return n},Qe=!!W&&i(function(){pe.call(new W(1))}),Se=function(){return pe.apply(Qe?ce.call(Be(this)):Be(this),arguments)},Oe={copyWithin:function(e,t){return F.call(Be(this),e,t,arguments.length>2?arguments[2]:void 0)},every:function(e){return q(Be(this),e,arguments.length>1?arguments[1]:void 0)},fill:function(e){return j.apply(Be(this),arguments)},filter:function(e){return Te(this,K(Be(this),e,arguments.length>1?arguments[1]:void 0))},find:function(e){return $(Be(this),e,arguments.length>1?arguments[1]:void 0)},findIndex:function(e){return ee(Be(this),e,arguments.length>1?arguments[1]:void 0)},forEach:function(e){V(Be(this),e,arguments.length>1?arguments[1]:void 0)},indexOf:function(e){return ne(Be(this),e,arguments.length>1?arguments[1]:void 0)},includes:function(e){return te(Be(this),e,arguments.length>1?arguments[1]:void 0)},join:function(e){return ue.apply(Be(this),arguments)},lastIndexOf:function(e){return Ae.apply(Be(this),arguments)},map:function(e){return we(Be(this),e,arguments.length>1?arguments[1]:void 0)},reduce:function(e){return ae.apply(Be(this),arguments)},reduceRight:function(e){return se.apply(Be(this),arguments)},reverse:function(){for(var e,t=Be(this).length,n=Math.floor(t/2),r=0;r1?arguments[1]:void 0)},sort:function(e){return le.call(Be(this),e)},subarray:function(e,t){var n=Be(this),r=n.length,o=h(e,r);return new(Q(n,n[he]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,d((void 0===t?r:h(t,r))-o))}},Ye=function(e,t){return Te(this,ce.call(Be(this),e,t))},Re=function(e){Be(this);var t=be(arguments[1],1),n=this.length,r=m(e),o=d(r.length),i=0;if(o+t>n)throw U("Wrong length!");for(;i255?255:255&r),o.v[p](n*t+o.o,r,me)}(this,n,e)},enumerable:!0})};E?(g=n(function(e,n,r,o){l(e,g,u,"_d");var i,A,a,s,c=0,p=0;if(w(n)){if(!(n instanceof Z||"ArrayBuffer"==(s=M(n))||"SharedArrayBuffer"==s))return Ee in n?Ne(g,n):Le.call(g,n);i=n,p=be(r,t);var h=n.byteLength;if(void 0===o){if(h%t)throw U("Wrong length!");if((A=h-p)<0)throw U("Wrong length!")}else if((A=d(o)*t)+p>h)throw U("Wrong length!");a=A/t}else a=y(n),i=new Z(A=a*t);for(f(e,"_d",{b:i,o:p,l:A,e:a,v:new J(i)});c0?r:n)(e)}},function(e,t,n){var r=n(30)("meta"),o=n(2),i=n(15),A=n(11).f,a=0,s=Object.isExtensible||function(){return!0},u=!n(9)(function(){return s(Object.preventExtensions({}))}),l=function(e){A(e,r,{value:{i:"O"+ ++a,w:{}}})},c=e.exports={KEY:r,NEED:!1,fastKey:function(e,t){if(!o(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,r)){if(!s(e))return"F";if(!t)return"E";l(e)}return e[r].i},getWeak:function(e,t){if(!i(e,r)){if(!s(e))return!0;if(!t)return!1;l(e)}return e[r].w},onFreeze:function(e){return u&&c.NEED&&s(e)&&!i(e,r)&&l(e),e}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.getBrowserLanguage=function(){var e=window.navigator,t=["language","browserLanguage","systemLanguage","userLanguage"],n=void 0,r=void 0;if(Array.isArray(e.languages))for(n=0;n=0)return r.substr(0,o+1)}}return""}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.version="0.9.0-2020091017-rev.da3b48d"},function(e,t,n){var r=n(23);e.exports=function(e,t,n){for(var o in t)r(e,o,t[o],n);return e}},function(e,t){e.exports=function(e,t,n,r){if(!(e instanceof t)||void 0!==r&&r in e)throw TypeError(n+": incorrect invocation!");return e}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var r=n(24),o=Math.max,i=Math.min;e.exports=function(e,t){return(e=r(e))<0?o(e+t,0):i(e,t)}},function(e,t,n){var r=n(11).f,o=n(15),i=n(8)("toStringTag");e.exports=function(e,t,n){e&&!o(e=n?e:e.prototype,i)&&r(e,i,{configurable:!0,value:t})}},function(e,t){e.exports={}},function(e,t,n){var r=n(15),o=n(17),i=n(91)("IE_PROTO"),A=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=o(e),r(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?A:null}},function(e,t,n){var r=n(8)("unscopables"),o=Array.prototype;void 0==o[r]&&n(14)(o,r,{}),e.exports=function(e){o[r][e]=!0}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(27),o=n(26);t.default=function(){var e={};OvenPlayerConsole.log("SupportChecker loaded.");var t=(0,o.analUserAgent)(),n=[{name:"html5",checkSupport:function(e){var n=document.createElement("video");if(!n.canPlayType)return!1;var o=e.file,i=e.type;if(!i)return!1;var A=e.mimeType||{aac:"audio/mp4",mp4:"video/mp4",f4v:"video/mp4",m4v:"video/mp4",mov:"video/mp4",mp3:"audio/mpeg",mpeg:"audio/mpeg",ogv:"video/ogg",ogg:"video/ogg",oga:"video/ogg",vorbis:"video/ogg",webm:"video/webm",f4a:"video/aac",m3u8:"application/vnd.apple.mpegurl",m3u:"application/vnd.apple.mpegurl",hls:"application/vnd.apple.mpegurl"}[i];return!((0,r.isHls)(o,i)&&"Microsoft Edge"===t.browser||(0,r.isRtmp)(o,i)||(0,r.isWebRTC)(o,i)||!A||!n.canPlayType(A))}},{name:"webrtc",checkSupport:function(e){if(!document.createElement("video").canPlayType)return!1;if((0,r.isRtmp)(t,n))return!1;var t=e.file,n=e.type;return!!(0,r.isWebRTC)(t,n)}},{name:"dash",checkSupport:function(e){var t=e.file,n=e.type;return!(0,r.isRtmp)(t,n)&&!("function"!=typeof(window.MediaSource||window.WebKitMediaSource)||!(0,r.isDash)(t,n))}},{name:"hls",checkSupport:function(e){document.createElement("video");var t=e.file,n=e.type;return!(0,r.isRtmp)(t,n)&&function(){var e=function(){if("undefined"!=typeof window)return window.MediaSource||window.WebKitMediaSource}(),t=window.SourceBuffer||window.WebKitSourceBuffer,n=e&&"function"==typeof e.isTypeSupported&&e.isTypeSupported('video/mp4; codecs="avc1.42E01E,mp4a.40.2"'),r=!t||t.prototype&&"function"==typeof t.prototype.appendBuffer&&"function"==typeof t.prototype.remove;return!!n&&!!r}()}},{name:"rtmp",checkSupport:function(e){var n=e.file,o=e.type;return!(!(0,r.isRtmp)(n,o)||!function(){var e=!1;if("ActiveXObject"in window)try{e=!!new ActiveXObject("ShockwaveFlash.ShockwaveFlash")}catch(t){e=!1}else e=!!navigator.mimeTypes["application/x-shockwave-flash"];return e}()||"Microsoft Edge"===t.browser||"Android"===t.os||"iOS"===t.os||"Safari"===t.browser)}}];return e.findProviderNameBySource=function(e){OvenPlayerConsole.log("SupportChecker : findProviderNameBySource()",e);for(var t=e===Object(e)?e:{},r=0;rdocument.F=Object<\/script>"),e.close(),s=e.F;r--;)delete s.prototype[i[r]];return s()};e.exports=Object.create||function(e,t){var n;return null!==e?(a.prototype=r(e),n=new a,a.prototype=null,n[A]=e):n=s(),void 0===t?n:o(n,t)}},function(e,t,n){var r=n(20),o=n(89),i=n(17),A=n(10),a=n(198);e.exports=function(e,t){var n=1==e,s=2==e,u=3==e,l=4==e,c=6==e,f=5==e||c,p=t||a;return function(t,a,g){for(var d,y,h=i(t),v=o(h),E=r(a,g,3),M=A(v.length),w=0,m=n?p(t,M):s?p(t,0):void 0;M>w;w++)if((f||w in v)&&(y=E(d=v[w],w,h),e))if(n)m[w]=y;else if(y)switch(e){case 3:return!0;case 5:return d;case 6:return w;case 2:m.push(d)}else if(l)return!1;return c?-1:u||l?l:m}}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var r=n(28),o=n(4),i=o["__core-js_shared__"]||(o["__core-js_shared__"]={});(e.exports=function(e,t){return i[e]||(i[e]=void 0!==t?t:{})})("versions",[]).push({version:r.version,mode:n(31)?"pure":"global",copyright:"© 2019 Denis Pushkarev (zloirock.ru)"})},function(e,t,n){for(var r,o=n(4),i=n(14),A=n(30),a=A("typed_array"),s=A("view"),u=!(!o.ArrayBuffer||!o.DataView),l=u,c=0,f="Int8Array,Uint8Array,Uint8ClampedArray,Int16Array,Uint16Array,Int32Array,Uint32Array,Float32Array,Float64Array".split(",");c<9;)(r=o[f[c++]])?(i(r.prototype,a,!0),i(r.prototype,s,!0)):l=!1;e.exports={ABV:u,CONSTR:l,TYPED:a,VIEW:s}},function(e,t,n){var r=n(3),o=n(32),i=n(8)("species");e.exports=function(e,t){var n,A=r(e).constructor;return void 0===A||void 0==(n=r(A)[i])?t:o(n)}},function(e,t,n){"use strict";var r=n(4),o=n(11),i=n(12),A=n(8)("species");e.exports=function(e){var t=r[e];i&&t&&!t[A]&&o.f(t,A,{configurable:!0,get:function(){return this}})}},function(e,t,n){var r=n(40),o=n(8)("toStringTag"),i="Arguments"==r(function(){return arguments}());e.exports=function(e){var t,n,A;return void 0===e?"Undefined":null===e?"Null":"string"==typeof(n=function(e,t){try{return e[t]}catch(e){}}(t=Object(e),o))?n:i?r(t):"Object"==(A=r(t))&&"function"==typeof t.callee?"Arguments":A}},function(e,t,n){var r=n(8)("iterator"),o=!1;try{var i=[7][r]();i.return=function(){o=!0},Array.from(i,function(){throw 2})}catch(e){}e.exports=function(e,t){if(!t&&!o)return!1;var n=!1;try{var i=[7],A=i[r]();A.next=function(){return{done:n=!0}},i[r]=function(){return A},e(i)}catch(e){}return n}},function(e,t,n){var r=n(20),o=n(118),i=n(94),A=n(3),a=n(10),s=n(95),u={},l={};(t=e.exports=function(e,t,n,c,f){var p,g,d,y,h=f?function(){return e}:s(e),v=r(n,c,t?2:1),E=0;if("function"!=typeof h)throw TypeError(e+" is not iterable!");if(i(h)){for(p=a(e.length);p>E;E++)if((y=t?v(A(g=e[E])[0],g[1]):v(e[E]))===u||y===l)return y}else for(d=h.call(e);!(g=d.next()).done;)if((y=o(d,v,g.value,t))===u||y===l)return y}).BREAK=u,t.RETURN=l},function(e,t,n){"use strict";var r=n(4),o=n(0),i=n(23),A=n(38),a=n(25),s=n(59),u=n(39),l=n(2),c=n(9),f=n(58),p=n(42),g=n(210);e.exports=function(e,t,n,d,y,h){var v=r[e],E=v,M=y?"set":"add",w=E&&E.prototype,m={},I=function(e){var t=w[e];i(w,e,"delete"==e?function(e){return!(h&&!l(e))&&t.call(this,0===e?0:e)}:"has"==e?function(e){return!(h&&!l(e))&&t.call(this,0===e?0:e)}:"get"==e?function(e){return h&&!l(e)?void 0:t.call(this,0===e?0:e)}:"add"==e?function(e){return t.call(this,0===e?0:e),this}:function(e,n){return t.call(this,0===e?0:e,n),this})};if("function"==typeof E&&(h||w.forEach&&!c(function(){(new E).entries().next()}))){var b=new E,B=b[M](h?{}:-0,1)!=b,C=c(function(){b.has(1)}),T=f(function(e){new E(e)}),N=!h&&c(function(){for(var e=new E,t=5;t--;)e[M](t,t);return!e.has(-0)});T||((E=t(function(t,n){u(t,E,e);var r=g(new v,t,E);return void 0!=n&&s(n,y,r[M],r),r})).prototype=w,w.constructor=E),(C||N)&&(I("delete"),I("has"),y&&I("get")),(N||B)&&I(M),h&&w.clear&&delete w.clear}else E=d.getConstructor(t,e,y,M),A(E.prototype,n),a.NEED=!0;return p(E,e),m[e]=E,o(o.G+o.W+o.F*(E!=v),m),h||d.setStrong(E,e,y),E}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var r=n(4).navigator;e.exports=r&&r.userAgent||""},function(e,t,n){"use strict";var r=n(57),o=RegExp.prototype.exec;e.exports=function(e,t){var n=e.exec;if("function"==typeof n){var i=n.call(e,t);if("object"!=typeof i)throw new TypeError("RegExp exec method returned something other than an Object or null");return i}if("RegExp"!==r(e))throw new TypeError("RegExp#exec called on incompatible receiver");return o.call(e,t)}},function(e,t,n){"use strict";n(258);var r=n(23),o=n(14),i=n(9),A=n(33),a=n(8),s=n(102),u=a("species"),l=!i(function(){var e=/./;return e.exec=function(){var e=[];return e.groups={a:"7"},e},"7"!=="".replace(e,"$")}),c=function(){var e=/(?:)/,t=e.exec;e.exec=function(){return t.apply(this,arguments)};var n="ab".split(e);return 2===n.length&&"a"===n[0]&&"b"===n[1]}();e.exports=function(e,t,n){var f=a(e),p=!i(function(){var t={};return t[f]=function(){return 7},7!=""[e](t)}),g=p?!i(function(){var t=!1,n=/a/;return n.exec=function(){return t=!0,null},"split"===e&&(n.constructor={},n.constructor[u]=function(){return n}),n[f](""),!t}):void 0;if(!p||!g||"replace"===e&&!l||"split"===e&&!c){var d=/./[f],y=n(A,f,""[e],function(e,t,n,r,o){return t.exec===s?p&&!o?{done:!0,value:d.call(t,n,r)}:{done:!0,value:e.call(n,t,r)}:{done:!1}}),h=y[0],v=y[1];r(String.prototype,e,h),o(RegExp.prototype,f,2==t?function(e,t){return v.call(e,this,t)}:function(e){return v.call(e,this)})}}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){var t=e,n=[],r=function(e,t,n){var r=0,o=e.length;for(r=0;r100)throw new Error("Position must be between 0 and 100.");E=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"positionAlign",a({},s,{get:function(){return M},set:function(e){var t=A(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");M=t,this.hasBeenReset=!0}})),Object.defineProperty(r,"size",a({},s,{get:function(){return w},set:function(e){if(e<0||e>100)throw new Error("Size must be between 0 and 100.");w=e,this.hasBeenReset=!0}})),Object.defineProperty(r,"align",a({},s,{get:function(){return m},set:function(e){var t=A(e);if(!t)throw new SyntaxError("An invalid or illegal string was specified.");m=t,this.hasBeenReset=!0}})),r.displayState=void 0,i)return r}).prototype.getCueAsHTML=function(){return WebVTT.convertCueToDOMTree(window,this.text)}),t.default=r},,,,,,,,,function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.checkAndGetContainerElement=void 0;var r=a(n(78)),o=n(27),i=a(n(7)),A=(a(n(6)),n(36));function a(e){return e&&e.__esModule?e:{default:e}}n.p=(0,A.getScriptPath)("ovenplayer.sdk.js");var s=window.OvenPlayerSDK={},u=s.playerList=[],l=t.checkAndGetContainerElement=function(e){if(!e)return null;var t=null;if("string"==typeof e)t=document.getElementById(e);else{if(!e.nodeType)return null;t=e}return t};s.create=function(e,t){var n=l(e),o=(0,r.default)(n);return o.init(t),u.push(o),o},s.getPlayerList=function(){return u},s.getPlayerByContainerId=function(e){for(var t=0;t0)return void(b=setTimeout(function(){t.setCurrentSource(E.getSourceIndex()),I--},1e3));m&&I<=0&&(clearInterval(b),m=!1,I=3),E.getConfig().autoFallback&&E.getSourceIndex()+1> ",t);var c=function(e,t){return e.data=t||[],e.name=e.label||e.name||e.language,e.id=function(e,t){var n,r=e.kind||"cc";return n=e.default||e.defaulttrack?"default":e.id||r+t,l&&(f(A.length||0),l=!1),n}(e,A.length),A.push(e),e.id},f=function(t){s=t,e.trigger(o.CONTENT_CAPTION_CHANGED,s)};if(e.getConfig().playlist&&e.getConfig().playlist.length>0){var p=e.getConfig().playlist[t];if(p&&p.tracks&&p.tracks.length>0)for(var g=function(t){var n=p.tracks[t];a(n.kind)&&!i.default.findWhere(n,{file:n.file})&&u.load(n,n.lang,function(e){e&&e.length>0&&c(n,e)},function(t){var n=o.ERRORS.codes[o.PLAYER_CAPTION_ERROR];n.error=t,e.trigger(o.ERROR,n)})},d=0;d-1&&A[s]){var r=i.default.filter(A[s].data,function(e){return n>=e.startTime&&(!e.endTime||n)<=e.endTime});r&&r.length>0&&e.trigger(o.CONTENT_CAPTION_CUE_CHANGED,r[0])}}),n.flushCaptionList=function(e){A=[],f(e)},n.getCaptionList=function(){return A||[]},n.getCurrentCaption=function(){return s},n.setCurrentCaption=function(e){if(!(e>-2&&e0&&c(t,e)},function(t){var n=errors[o.PLAYER_CAPTION_ERROR];n.error=t,e.trigger(o.ERROR,n)})},n.removeCaption=function(e){return e>-1&&e=0?(OvenPlayerConsole.log("WEBVTT LOADED"),n.e(11).then(function(e){return n(70).default}.bind(null,n)).catch(function(e){console.log(e)}).then(function(e){var t=new e.Parser(window,e.StringDecoder());l=[],t.oncue=function(e){l.push(e)},t.onflush=function(){i(l)},t.parse(s)}).catch(function(e){A(e)})):s.indexOf("SAMI")>=0?(OvenPlayerConsole.log("SAMI LOADED"),n.e(9).then(function(e){return n(71).default}.bind(null,n)).catch(function(e){console.log(e)}).then(function(e){var n=e(s,{fixedLang:o});l=t(n.result),i(l)}).catch(function(e){A(e)})):(OvenPlayerConsole.log("SRT LOADED"),u=(0,r.default)(s),l=t(u),i(l))}})}).catch(function(e){A(e)})},e}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(13);function o(e){var t={},n=e.split("\r\n");1===n.length&&(n=e.split("\n"));var o=1;if(n[0].indexOf(" --\x3e ")>0&&(o=0),n.length>o+1&&n[o+1]){var i=n[o],A=i.indexOf(" --\x3e ");A>0&&(t.start=(0,r.hmsToSecond)(i.substr(0,A)),t.end=(0,r.hmsToSecond)(i.substr(A+5)),t.text=n.slice(o+1).join("\r\n"))}return t}t.default=function(e){var t=[],n=(e=(0,r.trim)(e)).split("\r\n\r\n");1===n.length&&(n=e.split("\n\n"));for(var i=0;i=.25&&e<=4}).map(function(e){return Math.round(4*e)/4})).indexOf(1)<0&&s.push(1),s.sort(),t.playbackRates=s,t.rtmpBufferTime=t.rtmpBufferTime>10?10:t.rtmpBufferTime,t.rtmpBufferTimeMax=t.rtmpBufferTimeMax>50?50:t.rtmpBufferTimeMax,t.playbackRates.indexOf(t.playbackRate)<0&&(t.playbackRate=1);var u=t.playlist;if(u)o.default.isArray(u.playlist)&&(t.feedData=u,t.playlist=u.playlist);else{var l=o.default.pick(t,["title","description","type","image","file","sources","tracks","host","application","stream","adTagUrl"]);t.playlist=[l]}return delete t.duration,t}(e),A={getConfig:function(){return n},getAdClient:function(){return n.adClient},setConfig:function(e,t){n[e]=t},getContainer:function(){return n.mediaContainer},getPlaybackRate:function(){return n.playbackRate},setPlaybackRate:function(e){return n.playbackRate=e,e},getQualityLabel:function(){return n.qualityLabel},setQualityLabel:function(e){n.qualityLabel=e},isCurrentProtocolOnly:function(){return n.currentProtocolOnly},getSourceIndex:function(){return n.sourceIndex},setSourceIndex:function(e){n.sourceIndex=e},setTimecodeMode:function(e){n.timecode!==e&&(n.timecode=e,t.trigger(i.CONTENT_TIME_MODE_CHANGED,e))},isTimecodeMode:function(){return n.timecode},getRtmpBufferTime:function(){return n.rtmpBufferTime},getRtmpBufferTimeMax:function(){return n.rtmpBufferTimeMax},isMute:function(){return n.mute},getVolume:function(){return n.volume},setVolume:function(e){n.volume=e},isLoop:function(){return n.loop},isAutoStart:function(){return n.autoStart},isControls:function(){return n.controls},getPlaybackRates:function(){return n.playbackRates},getBrowser:function(){return n.browser},getSystemText:function(){return n.systemText},getLanguage:function(){return n.lang},getPlaylist:function(){return n.playlist},setPlaylist:function(e){return o.default.isArray(e)?n.playlist=e:n.playlist=[e],n.playlist}};return A}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.default=function(e,t){var n=[],o={},i=!1,A={};OvenPlayerConsole.log("LazyCommandExecutor loaded."),t.forEach(function(t){var n=e[t];o[t]=n||function(){},e[t]=function(){var e=Array.prototype.slice.call(arguments,0);i?(a(),n&&n.apply(A,e)):A.addQueue(t,e)}});var a=function(){for(;n.length>0;){var t=n.shift(),r=t.command,i=t.args;(o[r]||e[r]).apply(e,i)}};return A.setExecuteMode=function(e){i=e,OvenPlayerConsole.log("LazyCommandExecutor : setExecuteMode()",e)},A.getUndecoratedMethods=function(){return OvenPlayerConsole.log("LazyCommandExecutor : getUndecoratedMethods()",o),o},A.getQueue=function(){return OvenPlayerConsole.log("LazyCommandExecutor : getQueue()",getQueue),n},A.addQueue=function(e,t){OvenPlayerConsole.log("LazyCommandExecutor : addQueue()",e,t),n.push({command:e,args:t})},A.flush=function(){OvenPlayerConsole.log("LazyCommandExecutor : flush()"),a()},A.empty=function(){OvenPlayerConsole.log("LazyCommandExecutor : empty()"),n.length=0},A.off=function(){OvenPlayerConsole.log("LazyCommandExecutor : off()"),t.forEach(function(t){var n=o[t];n&&(e[t]=n,delete o[t])})},A.removeAndExcuteOnce=function(t){var i=r.default.findWhere(n,{command:t});OvenPlayerConsole.log("LazyCommandExecutor : removeAndExcuteOnce()",t),n.splice(r.default.findIndex(n,{command:t}),1);var A=o[t];A&&(OvenPlayerConsole.log("removeCommand()"),i&&(A||e[t]).apply(e,i.args),e[t]=A,delete o[t])},A.destroy=function(){OvenPlayerConsole.log("LazyCommandExecutor : destroy()"),A.off(),A.empty()},A}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(26);var r=n(1),o=function(e){return e&&e.__esModule?e:{default:e}}(n(6)),i=n(36),A=n(37);t.default=function(e,t){var n={},a=(0,i.getScriptPath)("ovenplayer.js")+"OvenPlayerFlash.swf?v="+A.version,s=e.getAttribute("data-parent-id"),u=(0,o.default)(e),l="";OvenPlayerConsole.log("MediaManager loaded. browser : ",t);return n.createMedia=function(e,o){return e===r.PROVIDER_RTMP?(l&&n.empty(),function(e,n,r){var o=void 0,i=void 0,A=void 0,c=void 0,f=void 0,p=void 0,g=void 0,d=void 0,y=void 0,h=void 0,v=void 0;return OvenPlayerConsole.log("MediaManager Flash buffer setting : ",n,r),(o=document.createElement("param")).setAttribute("name","movie"),o.setAttribute("value",a),(i=document.createElement("param")).setAttribute("name","flashvars"),i.setAttribute("value","playerId="+s+"&bufferTime="+n+"&bufferMaxTime="+r),(A=document.createElement("param")).setAttribute("name","allowscriptaccess"),A.setAttribute("value","always"),(c=document.createElement("param")).setAttribute("name","allowfullscreen"),c.setAttribute("value","true"),(f=document.createElement("param")).setAttribute("name","quality"),f.setAttribute("value","height"),(p=document.createElement("param")).setAttribute("name","name"),p.setAttribute("value",s+"-flash"),(g=document.createElement("param")).setAttribute("name","menu"),g.setAttribute("value","false"),(d=document.createElement("param")).setAttribute("name","quality"),d.setAttribute("value","high"),(y=document.createElement("param")).setAttribute("name","bgcolor"),y.setAttribute("value","#000000"),(v=document.createElement("param")).setAttribute("name","wmode"),v.setAttribute("value","opaque"),e&&((h=document.createElement("param")).setAttribute("name","loop"),h.setAttribute("value","true")),(l=document.createElement("object")).setAttribute("id",s+"-flash"),l.setAttribute("name",s+"-flash"),l.setAttribute("width","100%"),l.setAttribute("height","100%"),l.setAttribute("scale","default"),l.setAttribute("wmode","opaque"),"Microsoft Internet Explorer"===t.browser&&t.browserMajorVersion<=9?(l.setAttribute("classid","clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"),l.appendChild(o)):(l.setAttribute("data",a),l.setAttribute("type","application/x-shockwave-flash")),e&&l.appendChild(h),l.appendChild(v),l.appendChild(y),l.appendChild(d),l.appendChild(c),l.appendChild(A),l.appendChild(i),u.append(l),l}(o.isLoop(),o.getRtmpBufferTime(),o.getRtmpBufferTimeMax())):l||function(e){return(l=document.createElement("video")).setAttribute("disableremoteplayback",""),l.setAttribute("webkit-playsinline","true"),l.setAttribute("playsinline","true"),e&&l.setAttribute("loop",""),u.append(l),l}(o.isLoop())},n.createAdContainer=function(){var e=document.createElement("div");return e.setAttribute("class","op-ads"),u.append(e),e},n.empty=function(){OvenPlayerConsole.log("MediaManager removeElement()"),u.removeChild(l),l=null},n.destroy=function(){u.removeChild(),u=null,l=null,s=null},n}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t0})||[];return n.playlist=i,i},t.getPlaylist=function(){return OvenPlayerConsole.log("PlaylistManager getPlaylist() ",n.playlist),n.playlist},t.getCurrentPlayList=function(){return n.playlist[n.currentIndex]?n.playlist[n.currentIndex]:[]},t.getCurrentPlaylistIndex=function(){return n.currentIndex},t.setCurrentPlaylist=function(t){return n.playlist[t]&&(n.currentIndex=t,e.trigger(s.PLAYLIST_CHANGED,n.currentIndex)),n.currentIndex},t.getCurrentSources=function(){return n.playlist[n.currentIndex]?(OvenPlayerConsole.log("PlaylistManager getCurrentSources() ",n.playlist[n.currentIndex].sources),n.playlist[n.currentIndex].sources):null},t.getCurrentAdTag=function(){if(n.playlist[n.currentIndex])return n.playlist[n.currentIndex].adTagUrl||""},t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(46)),o=(n(47),n(1));t.default=function(){var e=(0,r.default)(),t={},i={};OvenPlayerConsole.log("ProviderController loaded.");var A=function(e,n){t[e]||(OvenPlayerConsole.log("ProviderController _registerProvider() ",e),t[e]=n)},a={html5:function(){return Promise.all([n.e(0),n.e(5)]).then(function(e){var t=n(72).default;return A(o.PROVIDER_HTML5,t),{name:o.PROVIDER_HTML5,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},webrtc:function(){return Promise.all([n.e(0),n.e(7)]).then(function(e){var t=n(73).default;return A(o.PROVIDER_WEBRTC,t),{name:o.PROVIDER_WEBRTC,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},dash:function(){return Promise.all([n.e(0),n.e(3)]).then(function(e){var t=n(74).default;return A(o.PROVIDER_DASH,t),{name:o.PROVIDER_DASH,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},hls:function(){return Promise.all([n.e(0),n.e(4)]).then(function(e){var t=n(75).default;return A(o.PROVIDER_HLS,t),{name:o.PROVIDER_HLS,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})},rtmp:function(){return Promise.all([n.e(0),n.e(6)]).then(function(e){var t=n(76).default;return A(o.PROVIDER_RTMP,t),{name:o.PROVIDER_RTMP,provider:t}}.bind(null,n)).catch(function(e){throw new Error("Network error")})}};return i.loadProviders=function(t){var n=e.findProviderNamesByPlaylist(t);return OvenPlayerConsole.log("ProviderController loadProviders() ",n),n?Promise.all(n.filter(function(e){return!!a[e]}).map(function(e){return a[e]()})):Promise.reject(o.ERRORS.codes[o.INIT_UNSUPPORT_ERROR])},i.findByName=function(e){return OvenPlayerConsole.log("ProviderController findByName() ",e),t[e]},i.getProviderBySource=function(t){var n=e.findProviderNameBySource(t);return OvenPlayerConsole.log("ProviderController getProviderBySource() ",n),i.findByName(n)},i.isSameProvider=function(t,n){return OvenPlayerConsole.log("ProviderController isSameProvider() ",e.findProviderNameBySource(t),e.findProviderNameBySource(n)),e.findProviderNameBySource(t)===e.findProviderNameBySource(n)},i}},function(e,t,n){var r=n(2),o=n(4).document,i=r(o)&&r(o.createElement);e.exports=function(e){return i?o.createElement(e):{}}},function(e,t,n){"use strict";var r=n(4),o=n(12),i=n(31),A=n(54),a=n(14),s=n(38),u=n(9),l=n(39),c=n(24),f=n(10),p=n(110),g=n(49).f,d=n(11).f,y=n(93),h=n(42),v="prototype",E="Wrong index!",M=r.ArrayBuffer,w=r.DataView,m=r.Math,I=r.RangeError,b=r.Infinity,B=M,C=m.abs,T=m.pow,N=m.floor,D=m.log,L=m.LN2,x=o?"_b":"buffer",Q=o?"_l":"byteLength",S=o?"_o":"byteOffset";function O(e,t,n){var r,o,i,A=new Array(n),a=8*n-t-1,s=(1<>1,l=23===t?T(2,-24)-T(2,-77):0,c=0,f=e<0||0===e&&1/e<0?1:0;for((e=C(e))!=e||e===b?(o=e!=e?1:0,r=s):(r=N(D(e)/L),e*(i=T(2,-r))<1&&(r--,i*=2),(e+=r+u>=1?l/i:l*T(2,1-u))*i>=2&&(r++,i/=2),r+u>=s?(o=0,r=s):r+u>=1?(o=(e*i-1)*T(2,t),r+=u):(o=e*T(2,u-1)*T(2,t),r=0));t>=8;A[c++]=255&o,o/=256,t-=8);for(r=r<0;A[c++]=255&r,r/=256,a-=8);return A[--c]|=128*f,A}function Y(e,t,n){var r,o=8*n-t-1,i=(1<>1,a=o-7,s=n-1,u=e[s--],l=127&u;for(u>>=7;a>0;l=256*l+e[s],s--,a-=8);for(r=l&(1<<-a)-1,l>>=-a,a+=t;a>0;r=256*r+e[s],s--,a-=8);if(0===l)l=1-A;else{if(l===i)return r?NaN:u?-b:b;r+=T(2,t),l-=A}return(u?-1:1)*r*T(2,l-t)}function R(e){return e[3]<<24|e[2]<<16|e[1]<<8|e[0]}function j(e){return[255&e]}function F(e){return[255&e,e>>8&255]}function k(e){return[255&e,e>>8&255,e>>16&255,e>>24&255]}function P(e){return O(e,52,8)}function z(e){return O(e,23,4)}function _(e,t,n){d(e[v],t,{get:function(){return this[n]}})}function U(e,t,n,r){var o=p(+n);if(o+t>e[Q])throw I(E);var i=e[x]._b,A=o+e[S],a=i.slice(A,A+t);return r?a:a.reverse()}function G(e,t,n,r,o,i){var A=p(+n);if(A+t>e[Q])throw I(E);for(var a=e[x]._b,s=A+e[S],u=r(+o),l=0;lJ;)(W=Z[J++])in M||a(M,W,B[W]);i||(H.constructor=M)}var V=new w(new M(2)),K=w[v].setInt8;V.setInt8(0,2147483648),V.setInt8(1,2147483649),!V.getInt8(0)&&V.getInt8(1)||s(w[v],{setInt8:function(e,t){K.call(this,e,t<<24>>24)},setUint8:function(e,t){K.call(this,e,t<<24>>24)}},!0)}else M=function(e){l(this,M,"ArrayBuffer");var t=p(e);this._b=y.call(new Array(t),0),this[Q]=t},w=function(e,t,n){l(this,w,"DataView"),l(e,M,"DataView");var r=e[Q],o=c(t);if(o<0||o>r)throw I("Wrong offset!");if(o+(n=void 0===n?r-o:f(n))>r)throw I("Wrong length!");this[x]=e,this[S]=o,this[Q]=n},o&&(_(M,"byteLength","_l"),_(w,"buffer","_b"),_(w,"byteLength","_l"),_(w,"byteOffset","_o")),s(w[v],{getInt8:function(e){return U(this,1,e)[0]<<24>>24},getUint8:function(e){return U(this,1,e)[0]},getInt16:function(e){var t=U(this,2,e,arguments[1]);return(t[1]<<8|t[0])<<16>>16},getUint16:function(e){var t=U(this,2,e,arguments[1]);return t[1]<<8|t[0]},getInt32:function(e){return R(U(this,4,e,arguments[1]))},getUint32:function(e){return R(U(this,4,e,arguments[1]))>>>0},getFloat32:function(e){return Y(U(this,4,e,arguments[1]),23,4)},getFloat64:function(e){return Y(U(this,8,e,arguments[1]),52,8)},setInt8:function(e,t){G(this,1,e,j,t)},setUint8:function(e,t){G(this,1,e,j,t)},setInt16:function(e,t){G(this,2,e,F,t,arguments[2])},setUint16:function(e,t){G(this,2,e,F,t,arguments[2])},setInt32:function(e,t){G(this,4,e,k,t,arguments[2])},setUint32:function(e,t){G(this,4,e,k,t,arguments[2])},setFloat32:function(e,t){G(this,4,e,z,t,arguments[2])},setFloat64:function(e,t){G(this,8,e,P,t,arguments[2])}});h(M,"ArrayBuffer"),h(w,"DataView"),a(w[v],A.VIEW,!0),t.ArrayBuffer=M,t.DataView=w},function(e,t,n){var r=n(40);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==r(e)?e.split(""):Object(e)}},function(e,t,n){var r=n(16),o=n(10),i=n(41);e.exports=function(e){return function(t,n,A){var a,s=r(t),u=o(s.length),l=i(A,u);if(e&&n!=n){for(;u>l;)if((a=s[l++])!=a)return!0}else for(;u>l;l++)if((e||l in s)&&s[l]===n)return e||l||0;return!e&&-1}}},function(e,t,n){var r=n(53)("keys"),o=n(30);e.exports=function(e){return r[e]||(r[e]=o(e))}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){"use strict";var r=n(17),o=n(41),i=n(10);e.exports=function(e){for(var t=r(this),n=i(t.length),A=arguments.length,a=o(A>1?arguments[1]:void 0,n),s=A>2?arguments[2]:void 0,u=void 0===s?n:o(s,n);u>a;)t[a++]=e;return t}},function(e,t,n){var r=n(43),o=n(8)("iterator"),i=Array.prototype;e.exports=function(e){return void 0!==e&&(r.Array===e||i[o]===e)}},function(e,t,n){var r=n(57),o=n(8)("iterator"),i=n(43);e.exports=n(28).getIteratorMethod=function(e){if(void 0!=e)return e[o]||e["@@iterator"]||i[r(e)]}},function(e,t,n){"use strict";var r=n(45),o=n(114),i=n(43),A=n(16);e.exports=n(115)(Array,"Array",function(e,t){this._t=A(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,o(1)):o(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(e,t,n){var r=n(2),o=n(3),i=function(e,t){if(o(e),!r(t)&&null!==t)throw TypeError(t+": can't set as prototype!")};e.exports={set:Object.setPrototypeOf||("__proto__"in{}?function(e,t,r){try{(r=n(20)(Function.call,n(22).f(Object.prototype,"__proto__").set,2))(e,[]),t=!(e instanceof Array)}catch(e){t=!0}return function(e,n){return i(e,n),t?e.__proto__=n:r(e,n),e}}({},!1):void 0),check:i}},function(e,t,n){var r,o,i,A=n(20),a=n(121),s=n(112),u=n(87),l=n(4),c=l.process,f=l.setImmediate,p=l.clearImmediate,g=l.MessageChannel,d=l.Dispatch,y=0,h={},v=function(){var e=+this;if(h.hasOwnProperty(e)){var t=h[e];delete h[e],t()}},E=function(e){v.call(e.data)};f&&p||(f=function(e){for(var t=[],n=1;arguments.length>n;)t.push(arguments[n++]);return h[++y]=function(){a("function"==typeof e?e:Function(e),t)},r(y),y},p=function(e){delete h[e]},"process"==n(40)(c)?r=function(e){c.nextTick(A(v,e,1))}:d&&d.now?r=function(e){d.now(A(v,e,1))}:g?(i=(o=new g).port2,o.port1.onmessage=E,r=A(i.postMessage,i,1)):l.addEventListener&&"function"==typeof postMessage&&!l.importScripts?(r=function(e){l.postMessage(e+"","*")},l.addEventListener("message",E,!1)):r="onreadystatechange"in u("script")?function(e){s.appendChild(u("script")).onreadystatechange=function(){s.removeChild(this),v.call(e)}}:function(e){setTimeout(A(v,e,1),0)}),e.exports={set:f,clear:p}},function(e,t,n){var r=n(129),o=n(33);e.exports=function(e,t,n){if(r(t))throw TypeError("String#"+n+" doesn't accept regex!");return String(o(e))}},function(e,t,n){var r=n(8)("match");e.exports=function(e){var t=/./;try{"/./"[e](t)}catch(n){try{return t[r]=!1,!"/./"[e](t)}catch(e){}}return!0}},function(e,t,n){"use strict";var r=n(127)(!0);e.exports=function(e,t,n){return t+(n?r(e,t).length:1)}},function(e,t,n){"use strict";var r=n(130),o=RegExp.prototype.exec,i=String.prototype.replace,A=o,a=function(){var e=/a/,t=/b*/g;return o.call(e,"a"),o.call(t,"a"),0!==e.lastIndex||0!==t.lastIndex}(),s=void 0!==/()??/.exec("")[1];(a||s)&&(A=function(e){var t,n,A,u,l=this;return s&&(n=new RegExp("^"+l.source+"$(?!\\s)",r.call(l))),a&&(t=l.lastIndex),A=o.call(l,e),a&&A&&(l.lastIndex=l.global?A.index+A[0].length:t),s&&A&&A.length>1&&i.call(A[0],n,function(){for(u=1;u22025.465794806718||n(10)<22025.465794806718||-2e-17!=n(-2e-17)?function(e){return 0==(e=+e)?e:e>-1e-6&&e<1e-6?e+e*e/2:Math.exp(e)-1}:n},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.playlistItemTemplate=void 0;var r=n(13);t.default=function(e,t){return'
'+e.playlist+'
'};t.playlistItemTemplate=function(e,t){return'
'+(e.image?"":'')+" "+(e.duration?''+(0,r.naturalHms)(e.duration)+"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orsDwrLbBxLLA6K7A9Ky2wciyzCQQCA0VYIRsjIVlCK7AIZbADJFB4sAEVMC0AS7gAyFJYsQEBjlmwAbkIAAgAY3CxAAVCsgABACqxAAVCswoCAQgqsQAFQrMOAAEIKrEABkK6AsAAAQAJKrEAB0K6AEAAAQAJKrEDAESxJAGIUViwQIhYsQNkRLEmAYhRWLoIgAABBECIY1RYsQMARFlZWVmzDAIBDCq4Af+FsASNsQIARAAA"},function(e,t,n){e.exports=!n(12)&&!n(9)(function(){return 7!=Object.defineProperty(n(87)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var r=n(24),o=n(10);e.exports=function(e){if(void 0===e)return 0;var t=r(e),n=o(t);if(t!==n)throw RangeError("Wrong length!");return n}},function(e,t,n){var r=n(15),o=n(16),i=n(90)(!1),A=n(91)("IE_PROTO");e.exports=function(e,t){var n,a=o(e),s=0,u=[];for(n in a)n!=A&&r(a,n)&&u.push(n);for(;t.length>s;)r(a,n=t[s++])&&(~i(u,n)||u.push(n));return u}},function(e,t,n){var r=n(4).document;e.exports=r&&r.documentElement},function(e,t,n){var r=n(40);e.exports=Array.isArray||function(e){return"Array"==r(e)}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},function(e,t,n){"use strict";var r=n(31),o=n(0),i=n(23),A=n(14),a=n(43),s=n(200),u=n(42),l=n(44),c=n(8)("iterator"),f=!([].keys&&"next"in[].keys()),p=function(){return this};e.exports=function(e,t,n,g,d,y,h){s(n,t,g);var v,E,M,w=function(e){if(!f&&e in B)return B[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},m=t+" Iterator",I="values"==d,b=!1,B=e.prototype,C=B[c]||B["@@iterator"]||d&&B[d],T=C||w(d),N=d?I?w("entries"):T:void 0,D="Array"==t&&B.entries||C;if(D&&(M=l(D.call(new e)))!==Object.prototype&&M.next&&(u(M,m,!0),r||"function"==typeof M[c]||A(M,c,p)),I&&C&&"values"!==C.name&&(b=!0,T=function(){return C.call(this)}),r&&!h||!f&&!b&&B[c]||A(B,c,T),a[t]=T,a[m]=p,d)if(v={values:I?T:w("values"),keys:y?T:w("keys"),entries:N},h)for(E in v)E in B||i(B,E,v[E]);else o(o.P+o.F*(f||b),t,v);return v}},function(e,t,n){"use strict";var r=n(17),o=n(41),i=n(10);e.exports=[].copyWithin||function(e,t){var n=r(this),A=i(n.length),a=o(e,A),s=o(t,A),u=arguments.length>2?arguments[2]:void 0,l=Math.min((void 0===u?A:o(u,A))-s,A-a),c=1;for(s0;)s in n?n[a]=n[s]:delete n[a],a+=c,s+=c;return n}},function(e,t,n){"use strict";var r=n(11).f,o=n(50),i=n(38),A=n(20),a=n(39),s=n(59),u=n(115),l=n(114),c=n(56),f=n(12),p=n(25).fastKey,g=n(35),d=f?"_s":"size",y=function(e,t){var n,r=p(t);if("F"!==r)return e._i[r];for(n=e._f;n;n=n.n)if(n.k==t)return n};e.exports={getConstructor:function(e,t,n,u){var l=e(function(e,r){a(e,l,t,"_i"),e._t=t,e._i=o(null),e._f=void 0,e._l=void 0,e[d]=0,void 0!=r&&s(r,n,e[u],e)});return i(l.prototype,{clear:function(){for(var e=g(this,t),n=e._i,r=e._f;r;r=r.n)r.r=!0,r.p&&(r.p=r.p.n=void 0),delete n[r.i];e._f=e._l=void 0,e[d]=0},delete:function(e){var n=g(this,t),r=y(n,e);if(r){var o=r.n,i=r.p;delete n._i[r.i],r.r=!0,i&&(i.n=o),o&&(o.p=i),n._f==r&&(n._f=o),n._l==r&&(n._l=i),n[d]--}return!!r},forEach:function(e){g(this,t);for(var n,r=A(e,arguments.length>1?arguments[1]:void 0,3);n=n?n.n:this._f;)for(r(n.v,n.k,this);n&&n.r;)n=n.p},has:function(e){return!!y(g(this,t),e)}}),f&&r(l.prototype,"size",{get:function(){return g(this,t)[d]}}),l},def:function(e,t,n){var r,o,i=y(e,t);return i?i.v=n:(e._l=i={i:o=p(t,!0),k:t,v:n,p:r=e._l,n:void 0,r:!1},e._f||(e._f=i),r&&(r.n=i),e[d]++,"F"!==o&&(e._i[o]=i)),e},getEntry:y,setStrong:function(e,t,n){u(e,t,function(e,n){this._t=g(e,t),this._k=n,this._l=void 0},function(){for(var e=this._k,t=this._l;t&&t.r;)t=t.p;return this._t&&(this._l=t=t?t.n:this._t._f)?l(0,"keys"==e?t.k:"values"==e?t.v:[t.k,t.v]):(this._t=void 0,l(1))},n?"entries":"values",!n,!0),c(t)}}},function(e,t,n){var r=n(3);e.exports=function(e,t,n,o){try{return o?t(r(n)[0],n[1]):t(n)}catch(t){var i=e.return;throw void 0!==i&&r(i.call(e)),t}}},function(e,t,n){"use strict";var r=n(34),o=n(61),i=n(52),A=n(17),a=n(89),s=Object.assign;e.exports=!s||n(9)(function(){var e={},t={},n=Symbol(),r="abcdefghijklmnopqrst";return e[n]=7,r.split("").forEach(function(e){t[e]=e}),7!=s({},e)[n]||Object.keys(s({},t)).join("")!=r})?function(e,t){for(var n=A(e),s=arguments.length,u=1,l=o.f,c=i.f;s>u;)for(var f,p=a(arguments[u++]),g=l?r(p).concat(l(p)):r(p),d=g.length,y=0;d>y;)c.call(p,f=g[y++])&&(n[f]=p[f]);return n}:s},function(e,t,n){"use strict";var r=n(38),o=n(25).getWeak,i=n(3),A=n(2),a=n(39),s=n(59),u=n(51),l=n(15),c=n(35),f=u(5),p=u(6),g=0,d=function(e){return e._l||(e._l=new y)},y=function(){this.a=[]},h=function(e,t){return f(e.a,function(e){return e[0]===t})};y.prototype={get:function(e){var t=h(this,e);if(t)return t[1]},has:function(e){return!!h(this,e)},set:function(e,t){var n=h(this,e);n?n[1]=t:this.a.push([e,t])},delete:function(e){var t=p(this.a,function(t){return t[0]===e});return~t&&this.a.splice(t,1),!!~t}},e.exports={getConstructor:function(e,t,n,i){var u=e(function(e,r){a(e,u,t,"_i"),e._t=t,e._i=g++,e._l=void 0,void 0!=r&&s(r,n,e[i],e)});return r(u.prototype,{delete:function(e){if(!A(e))return!1;var n=o(e);return!0===n?d(c(this,t)).delete(e):n&&l(n,this._i)&&delete n[this._i]},has:function(e){if(!A(e))return!1;var n=o(e);return!0===n?d(c(this,t)).has(e):n&&l(n,this._i)}}),u},def:function(e,t,n){var r=o(i(t),!0);return!0===r?d(e).set(t,n):r[e._i]=n,e},ufstore:d}},function(e,t){e.exports=function(e,t,n){var r=void 0===n;switch(t.length){case 0:return r?e():e.call(n);case 1:return r?e(t[0]):e.call(n,t[0]);case 2:return r?e(t[0],t[1]):e.call(n,t[0],t[1]);case 3:return r?e(t[0],t[1],t[2]):e.call(n,t[0],t[1],t[2]);case 4:return r?e(t[0],t[1],t[2],t[3]):e.call(n,t[0],t[1],t[2],t[3])}return e.apply(n,t)}},function(e,t,n){var r=n(49),o=n(61),i=n(3),A=n(4).Reflect;e.exports=A&&A.ownKeys||function(e){var t=r.f(i(e)),n=o.f;return n?t.concat(n(e)):t}},function(e,t,n){"use strict";var r=n(32);e.exports.f=function(e){return new function(e){var t,n;this.promise=new e(function(e,r){if(void 0!==t||void 0!==n)throw TypeError("Bad Promise constructor");t=e,n=r}),this.resolve=r(t),this.reject=r(n)}(e)}},function(e,t,n){t.f=n(8)},function(e,t,n){var r=n(16),o=n(49).f,i={}.toString,A="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return A&&"[object Window]"==i.call(e)?function(e){try{return o(e)}catch(e){return A.slice()}}(e):o(r(e))}},function(e,t){e.exports=Object.is||function(e,t){return e===t?0!==e||1/e==1/t:e!=e&&t!=t}},function(e,t,n){var r=n(24),o=n(33);e.exports=function(e){return function(t,n){var i,A,a=String(o(t)),s=r(n),u=a.length;return s<0||s>=u?e?"":void 0:(i=a.charCodeAt(s))<55296||i>56319||s+1===u||(A=a.charCodeAt(s+1))<56320||A>57343?e?a.charAt(s):i:e?a.slice(s,s+2):A-56320+(i-55296<<10)+65536}}},function(e,t,n){"use strict";var r=n(24),o=n(33);e.exports=function(e){var t=String(o(this)),n="",i=r(e);if(i<0||i==1/0)throw RangeError("Count can't be negative");for(;i>0;(i>>>=1)&&(t+=t))1&i&&(n+=t);return n}},function(e,t,n){var r=n(2),o=n(40),i=n(8)("match");e.exports=function(e){var t;return r(e)&&(void 0!==(t=e[i])?!!t:"RegExp"==o(e))}},function(e,t,n){"use strict";var r=n(3);e.exports=function(){var e=r(this),t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),e.unicode&&(t+="u"),e.sticky&&(t+="y"),t}},function(e,t,n){var r=n(2),o=Math.floor;e.exports=function(e){return!r(e)&&isFinite(e)&&o(e)===e}},function(e,t){e.exports=Math.log1p||function(e){return(e=+e)>-1e-8&&e<1e-8?e-e*e/2:Math.log(1+e)}},function(e,t,n){var r=n(34),o=n(16),i=n(52).f;e.exports=function(e){return function(t){for(var n,A=o(t),a=r(A),s=a.length,u=0,l=[];s>u;)i.call(A,n=a[u++])&&l.push(e?[n,A[n]]:A[n]);return l}}},function(e,t,n){var r=n(10),o=n(128),i=n(33);e.exports=function(e,t,n,A){var a=String(i(e)),s=a.length,u=void 0===n?" ":String(n),l=r(t);if(l<=s||""==u)return a;var c=l-s,f=o.call(u,Math.ceil(c/u.length));return f.length>c&&(f=f.slice(0,c)),A?f+a:a+f}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t,n){var r=t?1e3:1024;if(Math.abs(e)=r&&A0)return!1;f.addClass("op-autohide")}else f.removeClass("op-autohide"),t&&(d=setTimeout(function(){if(v.size()>0)return!1;f.addClass("op-autohide")},3e3))}function I(e,t){var n=g.getDuration(),r=g.getPosition(),o=0;o=t?Math.max(r-e,0):Math.min(r+e,n),g.seek(o)}function b(e){var t=g.getVolume(),n=0;n=e?Math.min(t+5,100):Math.max(t-5,0),g.setVolume(n)}function B(){var e=f.width();e<576?(E="xsmall",f.addClass("xsmall")):e<768?(E="small",f.addClass("small")):e<992?(E="medium",f.addClass("medium")):(E="large",f.addClass("large"))}var C={"click .ovenplayer":function(e,t,n){g&&g.trigger(u.PLAYER_CLICKED,e),p&&(e.preventDefault(),p.destroy(),p=null),(0,s.default)(e.target).closest(".op-controls-container")||(0,s.default)(e.target).closest(".op-setting-panel")||v.size()>0&&(e.preventDefault(),v.clear())},"dblclick .ovenplayer":function(e,t,n){g&&g.getConfig().expandFullScreenUI&&g.toggleFullScreen&&((0,s.default)(e.target).closest(".op-controls-container")||(0,s.default)(e.target).closest(".op-setting-panel")||g.toggleFullScreen())},"touchstart .ovenplayer":function(e,t,n){y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===E?m(!1,!0):m(!1)},"mouseenter .ovenplayer":function(e,t,n){e.preventDefault(),y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===E?m(!1,!0):m(!1)},"mousemove .ovenplayer":function(e,t,n){e.preventDefault(),y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===E?m(!1,!0):m(!1)},"mouseleave .ovenplayer":function(e,t,n){e.preventDefault(),(y===u.STATE_PLAYING||y===u.STATE_IDLE||y===u.STATE_LOADING||y===u.STATE_AD_PLAYING&&"xsmall"===E)&&m(!0)},"keydown .ovenplayer":function(e,t,n){var r=g.getFramerate();switch(e.keyCode){case 16:e.preventDefault(),h=!0;break;case 32:e.preventDefault(),function(){var e=y;e===u.STATE_IDLE||e===u.STATE_PAUSED||e===u.STATE_COMPLETE?g.play():e===u.STATE_PLAYING&&g.pause()}();break;case 37:e.preventDefault(),h&&r?g.seekFrame(-1):I(5,!0);break;case 39:e.preventDefault(),h&&r?g.seekFrame(1):I(5,!1);break;case 38:e.preventDefault(),b(!0);break;case 40:e.preventDefault(),b(!1)}},"keyup .ovenplayer":function(e,t,n){switch(e.keyCode){case 16:e.preventDefault(),h=!1}},"contextmenu .ovenplayer":function(e,t,n){if(e.stopPropagation(),!(0,s.default)(e.currentTarget).find("object"))return e.preventDefault(),function(e,t){p&&(p.destroy(),p=null),p=(0,a.default)(f,g,{pageX:e,pageY:t})}(e.pageX,e.pageY),!1}};return(w=(0,r.default)(e,"View",null,e.id,C,function(e,n){f=e,t=n,B(),new l.default(f.get(),function(){f.removeClass("large"),f.removeClass("medium"),f.removeClass("small"),f.removeClass("xsmall"),B(),E!==M&&(M=E,g&&g.trigger(u.PLAYER_RESIZED,M))})},function(){c&&(c.destroy(),c=null),n&&(n.destroy(),n=null)},!0)).getMediaElementContainer=function(){return f.find(".op-media-element-container").get()},w.setApi=function(e){(g=e).on(u.READY,function(t){!n&&r&&(n=(0,i.default)(f.find(".op-ui"),e))}),g.on(u.ERROR,function(e){if(g){var t=g.getSources()||[];n&&t.length}}),g.on(u.DESTROY,function(e){t.destroy()}),g.on(u.PLAYER_PLAY,function(t){!n&&r&&(n=(0,i.default)(f.find(".op-ui"),e))}),g.on(u.PLAYER_STATE,function(e){e&&e.newstate&&(y=e.newstate,e.newstate===u.STATE_PLAYING||e.newstate===u.STATE_AD_PLAYING&&"xsmall"===E?m(!1,!0):m(!1))});var r=g.getConfig()&&g.getConfig().controls;c=(0,o.default)(f.find(".op-ui"),e),r?n=(0,i.default)(f.find(".op-ui"),e):g.getConfig()&&g.getConfig().expandFullScreenUI&&(n=(0,i.default)(f.find(".op-ui"),e)).destroy()},w}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=m(n(139)),o=m(n(140)),i=m(n(141)),A=m(n(142)),a=m(n(143)),s=m(n(144)),u=m(n(145)),l=m(n(146)),c=m(n(147)),f=m(n(148)),p=m(n(149)),g=m(n(150)),d=m(n(151)),y=m(n(152)),h=m(n(153)),v=m(n(154)),E=m(n(155)),M=m(n(156)),w=m(n(106));function m(e){return e&&e.__esModule?e:{default:e}}var I={TextViewTemplate:r.default,ViewTemplate:o.default,HelpersTemplate:i.default,BigButtonTemplate:A.default,ThumbnailTemplate:a.default,MessageBoxTemplate:s.default,SpinnerTemplate:u.default,ContextPanelTemplate:l.default,CaptionViewerTemplate:c.default,ControlsTemplate:f.default,VolumeButtonTemplate:p.default,ProgressBarTemplate:g.default,PlayButtonTemplate:d.default,SettingButtonTemplate:y.default,FrameButtonsTemplate:h.default,TimeDisplayTemplate:v.default,FullScreenButtonTemplate:E.default,PanelsTemplate:M.default,SpeedPanelTemplate:M.default,SourcePanelTemplate:M.default,QualityPanelTemplate:M.default,CaptionPanelTemplate:M.default,TimeDisplayPanelTemplate:M.default,PlaylistPanelTemplate:w.default};t.default=I},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e){return'

'+e+'

'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){return'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){return'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(1);t.default=function(e,t){return'
'+(t===r.STATE_PLAYING?'':"")+(t===r.STATE_PAUSED?'':"")+(t===r.STATE_IDLE?'':"")+(t===r.STATE_COMPLETE?'':"")+"
"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return'
'+(t.image?'':"")+(t.title?'
'+t.title+"
":"")+"
"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return'
'+t.message+(t.description?'
'+t.description+"
":"")+"
"+(t.iconClass?'
':"")+"
"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(37);t.default=function(e){return'
Help
'+e.context+" "+r.version+"
"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
      
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.default=function(e,t){return'
'+(t?'':"")+'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
00:00
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return''}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return'
'}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){return'
'+(t.duration===1/0?''+("webrtc"===t.type?t.isP2P?''+e.controls.low_latency_p2p+"":''+e.controls.low_latency_live+"":""+e.controls.live+"")+"":'00:00 / 00:00')+"
"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return''}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.settingItemTemplate=void 0;var r=function(e){return e&&e.__esModule?e:{default:e}}(n(7));t.default=function(e,t){var n='
'+(t.isRoot?"":'<')+''+t.title+'
';return r.default.forEach(t.body,function(e){n+=o(e,t.useCheck)}),n+="
"};var o=t.settingItemTemplate=function(e,t){return'
'+(t?'':"")+''+e.title+""+(e.hasNext?'>'+e.description+"":"")+"
"}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=l(n(5)),o=l(n(158)),i=l(n(159)),A=l(n(160)),a=l(n(161)),s=l(n(162)),u=n(1);function l(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n="",l="",c="",f=void 0,p=null,g=t.getConfig().image||t.getConfig().title,d=!1;return(0,r.default)(e,"Helpers",t.getConfig(),null,{},function(e,r){var y=!1,h=-1;function v(r){n&&n.destroy(),n=(0,o.default)(e,t,r)}function E(){f&&f.destroy(),f=(0,a.default)(e,t,t.getConfig())}c=(0,s.default)(e,t),(0,A.default)(e,t),t.on(u.READY,function(){g&&E(),v(u.STATE_PAUSED)},r),t.on(u.PLAYER_WARNING,function(o){o.message&&(n&&n.destroy(),l&&l.destroy(),p=(0,i.default)(e,t,o.message,null,o.timer,o.iconClass,o.onClickCallback,!1),t.once(u.CONTENT_MUTE,function(e){!e.mute&&p&&p.destroy()},r))},r),t.on(u.PLAYER_STATE,function(e){e&&e.newstate&&(e.newstate===u.STATE_IDLE&&l&&l.destroy(),e.newstate===u.STATE_PLAYING||e.newstate===u.STATE_AD_PLAYING?(d=!1,l&&l.destroy(),n&&n.destroy(),f&&f.destroy(),y||c.show(!1)):(v(e.newstate),e.newstate===u.STATE_STALLED||e.newstate===u.STATE_LOADING||e.newstate===u.STATE_AD_LOADING?(d=!1,l&&l.destroy(),c.show(!0)):y||c.show(!1)))},r),t.on(u.CONTENT_LEVEL_CHANGED,function(e){if(e.currentQuality<0)return!1;e.isAuto?(y=!1,c.show(!1)):"request"===e.type?(h=e.currentQuality,y=!0,c.show(!0)):"render"===e.type&&h===e.currentQuality&&(y=!1,c.show(!1))},r),t.on(u.ERROR,function(r){if(510===r.code&&(d=!0),!d){var o="",A="";n&&n.destroy(),r&&r.code&&r.code>=100&&r.code<1e3?(o=r.message,100===r.code&&(A=r.error.toString())):o="Can not play due to unknown reasons.",OvenPlayerConsole.log("error occured : ",r),function(n,r,o,A,a,s){l&&l.destroy(),l=(0,i.default)(e,t,n,r,o,A,a,s)}(o,A,null,u.UI_ICONS.op_warning,null,!0)}},r),t.on(u.NETWORK_UNSTABLED,function(e){var n="Because the network connection is unstable, the following media source will be played.";t.getCurrentSource()+1===t.getQualityLevels().length&&(n="Network connection is unstable. Check the network connection."),OvenPlayerConsole.log(n)},r),t.on(u.ALL_PLAYLIST_ENDED,function(){g&&E()},r)},function(e){t.off(u.READY,null,e),t.off(u.PLAYER_STATE,null,e),t.off(u.PLAYER_WARNING,null,e),t.off(u.ERROR,null,e),t.off(u.NETWORK_UNSTABLED,null,e),t.off(u.ALL_PLAYLIST_ENDED,null,e),t.off(u.PLAYLIST_CHANGED,null,e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),o=n(1),i=n(1);t.default=function(e,t,n){var A={"click .op-bigbutton-container":function(e){e.preventDefault();var n=t.getState(),r=t.getPlaylist(),A=t.getCurrentPlaylist();n===o.STATE_IDLE||n===o.STATE_PAUSED?t.play():n===i.STATE_ERROR?t.setCurrentSource(t.getCurrentSource()):n===o.STATE_COMPLETE&&r.length===A+1&&t.setCurrentPlaylist(0)}};return(0,r.default)(e,"BigButton",t.getConfig(),n,A,function(e,t,n){},function(){})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5));n(1);t.default=function(e,t,n,o,i,A,a,s){var u="",l={message:n,description:o,iconClass:A,dontClose:s},c={"click .op-message-text":function(e,t,n){e.stopPropagation(),s||(u&&clearTimeout(u),a&&a(),n.destroy())},"click .op-con":function(e,t,n){e.preventDefault(),s||(u&&clearTimeout(u),a&&a(),n.destroy())}};return(0,r.default)(e,"MessageBox",t.getConfig(),l,c,function(e,t){i&&(u=setTimeout(function(){t.destroy()},i||5e3))},function(){})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(5)),o=n(1),i=A(n(6));function A(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){(0,i.default)("#"+t.getContainerId());return(0,r.default)(e,"CaptionViewer",t.getConfig(),n,{},function(e,n,r){var i=!1,A=0;t.on(o.CONTENT_CAPTION_CHANGED,function(t){t>-1?i=!1:(i=!0,e.find(".op-caption-text").text(""))},r),t.on(o.CONTENT_CAPTION_CUE_CHANGED,function(t){if(!i&&t&&t.text){var n=t.endTime-t.startTime;A&&clearTimeout(A),e.find(".op-caption-text").html(t.text),n&&(A=setTimeout(function(){e.find(".op-caption-text").text("")},1e3*n))}},r)},function(n){e.find(".op-caption-text").text(""),t.off(o.CONTENT_CAPTION_CHANGED,null,n),t.off(o.CONTENT_CAPTION_CUE_CHANGED,null,n)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5));n(1);t.default=function(e,t,n){return(0,r.default)(e,"Thumbnail",t.getConfig(),n,{},function(e,t,n){},function(){})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=Object.assign||function(e){for(var t=1;t1,!0===t.getConfig().hidePlaylistIcon&&(E=!1);var D={"mouseleave .op-controls":function(e,t,r){e.preventDefault(),n.setMouseDown(!1),t.find(".op-volume-slider-container").removeClass("active")},"click .op-playlist-button":function(e,n,r){e.preventDefault(),(0,s.default)(n,t)}};return(0,r.default)(e,"Controls",t.getConfig(),E,D,function(e,r){function s(n){y&&y.destroy(),y=(0,l.default)(e.find(".op-left-controls"),t,n)}function u(n){d&&d.destroy(),d=(0,a.default)(e.find(".op-progressbar-container"),t,n)}function E(){g&&g.destroy(),g=(0,i.default)(e.find(".setting-holder"),t)}function b(){h&&h.destroy(),h=(0,c.default)(e.find(".fullscreen-holder"),t)}function D(e){e.duration>9e15&&(e.duration=1/0),s(e),b(),t.getFramerate&&t.getFramerate()>0||v&&v.destroy(),e.duration===1/0?(OvenPlayerConsole.log("[[[[LIVE MODE]]]]"),I=!0,d&&d.destroy()):u(!1),w=!0}function L(){s(N),E(),b(),I?d&&d.destroy():u(!1),T.removeClass("linear-ad")}p=(0,o.default)(e.find(".op-left-controls"),t),n=(0,A.default)(e.find(".op-left-controls"),t);var x=t.getPlaylist(),Q=t.getCurrentPlaylist();x&&x[Q]&&x[Q].adTagUrl||E(),b(),t.on(f.READY,function(){e.show()},r),t.on(f.CONTENT_META,function(e){M=e.duration,N=e,e.isP2P=m,D(e)},r),t.on(f.CONTENT_TIME,function(e){(B||t&&t.getProviderName&&"rtmp"===t.getProviderName())&&!M&&N&&N.duration!==e.duration&&(N=e,D(e))},r),t.on(f.PLAYER_RESIZED,function(e){T.find(".op-setting-panel")&&T.find(".op-setting-panel").css("max-height",T.height()-T.find(".op-bottom-panel").height()+"px")},r),t.on(f.OME_P2P_MODE,function(e){m=e},r),t.on(f.PLAYER_PLAY,function(){if(!w){var n="";t.getSources().length>0&&t.getSources()[t.getCurrentSource()]&&t.getSources()[t.getCurrentSource()].type&&(n=t.getSources()[t.getCurrentSource()].type),D({isP2P:m,duration:t.getDuration(),type:n})}e.show()},r),t.on(f.ERROR,function(t){e.show()},r),t.on(f.AD_CHANGED,function(e){e.isLinear?(T.addClass("linear-ad"),u(!0),y&&y.destroy(),g&&g.destroy(),C&&h&&h.destroy()):T.removeClass("linear-ad")},r),t.on(f.STATE_AD_COMPLETE,function(){L()},r),t.on(f.STATE_AD_ERROR,function(){L()},r)},function(e){t.off(f.CONTENT_META,null,e),t.off(f.CONTENT_TIME,null,e),t.off(f.STATE_AD_COMPLETE,null,e),t.off(f.AD_CHANGED,null,e),t.off(f.OME_P2P_MODE,null,e),t.off(f.STATE_AD_ERROR,null,e),t.off(f.PLAYER_RESIZED,null,e),y&&y.destroy(),p&&p.destroy(),d&&d.destroy(),h&&h.destroy(),n&&n.destroy()})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),o=n(1);t.default=function(e,t){var n="",i="",A="";var a={"click .op-play-button":function(e,n,r){e.preventDefault();var i=t.getState(),A=t.getPlaylist(),a=t.getCurrentPlaylist();i===o.STATE_IDLE?t.play():i===o.STATE_PLAYING||i===o.STATE_AD_PLAYING?t.pause():i===o.STATE_LOADING||i===o.STATE_STALLED?t.stop():i===o.STATE_PAUSED||i===o.STATE_AD_PAUSED?t.play():i===o.STATE_ERROR?t.setCurrentSource(t.getCurrentSource()):i===o.STATE_COMPLETE&&A.length===a+1&&t.setCurrentPlaylist(0)}};return(0,r.default)(e,"PlayButton",t.getConfig(),null,a,function(e,r){n=e.find(".op-play"),i=e.find(".op-pause"),A=e.find(".op-replay"),t.on(o.PLAYER_STATE,function(e){e&&e.newstate&&function(e){n.hide(),i.hide(),A.hide(),e===o.STATE_PLAYING||e===o.STATE_AD_PLAYING||e===o.STATE_LOADING||e===o.STATE_STALLED?i.show():e===o.STATE_PAUSED||e===o.STATE_AD_PAUSED?n.show():(o.STATE_COMPLETE,n.show())}(e.newstate)},r)},function(e){t.off(o.PLAYER_STATE,null,e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(5)),o=a(n(166)),i=a(n(19)),A=n(1);function a(e){return e&&e.__esModule?e:{default:e}}var s={speed:"Speed",source:"Source",quality:"Quality",caption:"Caption",display:"Display"};t.default=function(e,t){var n=(0,i.default)();var a={"click .op-setting-button":function(e,r,i){e.preventDefault();var a=r.closest(".op-controls-container");if(n.size()>0)n.clear();else{var u=function(e){var t={id:"panel-"+(new Date).getTime(),title:"Settings",body:[],isRoot:!0,panelType:""},n=e.getConfig();n&&n.systemText&&(Object.keys(s).forEach(function(e){s[e]=n.systemText.ui.setting[e]}),t.title=n.systemText.ui.setting.title);var r=e.getSources(),o=r&&r.length>0?r[e.getCurrentSource()]:null,i=e.getQualityLevels(),a=i&&i.length>0?i[e.getCurrentQuality()]:null,u=e.getCaptionList(),l=e.getCurrentCaption(),c=e.getFramerate();if(e.getDuration()!==1/0&&o&&o.type!==A.PROVIDER_RTMP){var f={title:s.speed,value:e.getPlaybackRate()+"x",description:e.getPlaybackRate()+"x",panelType:"speed",hasNext:!0};t.body.push(f)}if(r.length>0){var p={title:s.source,value:o?o.label:"Default",description:o?o.label:"Default",panelType:"source",hasNext:!0};t.body.push(p)}if(i.length>0){var g={title:s.quality,value:a?a.label:"Default",description:a?a.label:"Default",panelType:"quality",hasNext:!0};t.body.push(g)}if(u.length>0){var d={title:s.caption,value:u[l]?u[l].label:"OFF",description:u[l]?u[l].label:"OFF",panelType:"caption",hasNext:!0};t.body.push(d)}if(c>0){var y={title:s.display,value:e.isTimecodeMode()?"Play time":"Framecode",description:e.isTimecodeMode()?"Play time":"Framecode",panelType:"display",hasNext:!0};t.body.push(y)}return t}(t);n.add((0,o.default)(a,t,u))}}};return(0,r.default)(e,"SettingButton",t.getConfig(),null,a,function(e,t){},function(e){})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=g(n(5)),o=g(n(19)),i=g(n(6)),A=g(n(7)),a=g(n(135)),s=g(n(167)),u=g(n(168)),l=g(n(169)),c=g(n(170)),f=g(n(171)),p=n(1);function g(e){return e&&e.__esModule?e:{default:e}}var d={speed:"Speed",source:"Source",quality:"Quality",caption:"Caption",display:"Display"};t.default=function(e,t,n){var g=(0,i.default)("#"+t.getContainerId()),y=(0,o.default)(),h=t.getConfig();function v(e,t){var n={id:"panel-"+(new Date).getTime(),title:"",body:[],useCheck:!0,panelType:t,height:g.height()-g.find(".op-bottom-panel").height()};if(n.title=d[t],"speed"===t)for(var r=e.getConfig().playbackRates,o=e.getPlaybackRate(),i=0;i=70?u.show():e<70&&e>0?l.show():0==e?c.show():u.show()}(e);var n=g*e/100;a.css("left",n+"px"),s.css("width",n+"px")}function h(e){var t=((e.pageX||e.touches[0].clientX)-A.offset().left)/p*100;return t<0&&(t=0),t>100&&(t=100),t}var v={"click .op-volume-button":function(e,n,r){e.preventDefault(),d||(0===t.getVolume()?(t.setMute(!1),t.setVolume(100)):t.setMute())},"touchstart .op-volume-slider-handle":function(e){f=!0},"touchmove .op-volume-slider-handle":function(e){f&&(t.setMute(!1),t.setVolume(h(e)))},"touchend .op-volume-slider-handle":function(e){f&&(f=!1)},"touchstart .op-volume-button":function(e){d&&n.hasClass("active")?0===t.getVolume()?(t.setMute(!1),t.setVolume(100)):t.setMute():n.addClass("active")},"mouseenter .op-volume-button":function(e,t,r){e.preventDefault(),d||n.addClass("active")},"mouseleave .op-volume-silder":function(e,t,n){e.preventDefault(),f=!1},"mousedown .op-volume-silder":function(e,n,r){e.preventDefault(),f=!0,t.setMute(!1),t.setVolume(h(e))},"mouseup .op-volume-silder":function(e,t,n){e.preventDefault(),f=!1},"mousemove .op-volume-silder":function(e,n,r){if(e.preventDefault(),!f)return!1;t.setVolume(h(e))}},E=(0,r.default)(e,"VolumeButton",t.getConfig(),null,v,function(e,r){n=e.find(".op-volume-slider-container"),A=e.find(".op-volume-silder"),a=e.find(".op-volume-slider-handle"),s=e.find(".op-volume-slider-value"),u=e.find(".op-volume-max"),l=e.find(".op-volume-small"),c=e.find(".op-volume-mute"),g=p-6,a.css("left",g+"px"),t.on(o.READY,function(){y(t.getVolume())},r),t.on(i.PLAYER_PLAY,function(e){y(e.volume)},r),t.on(o.CONTENT_VOLUME,function(e){y(e.volume)},r),t.on(o.CONTENT_MUTE,function(e){e.mute?y(0):y(t.getVolume())},r)},function(e){t.off(o.READY,null,e),t.off(o.CONTENT_VOLUME,null,e),t.off(o.CONTENT_MUTE,null,e)});return E.setMouseDown=function(e){f=e},E}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=s(n(5)),o=s(n(19)),i=n(13),A=s(n(6)),a=n(1);n(1);function s(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,n){var s=(0,A.default)("#"+t.getContainerId()),u=0,l=!1,c=(0,o.default)(),f="",p="",g="",d="",y="",h="",v="",E=0,M="",w="",m="",I="",b="iOS"===t.getBrowser().os||"Android"===t.getBrowser().os;function B(e){var n=p.width(),r=n*e,o=0,i=t.getSources()[t.getCurrentSource()].sectionStart;i&&i>0?(o=n*(i/t.getDuration()),w.show(),w.css("left",o-3+"px")):(w.hide(),w.css("left","-10px"));var A=t.getSources()[t.getCurrentSource()].sectionEnd,a=0;A&&A>0?(a=n*(A/t.getDuration()),m.show(),m.css("left",a+"px")):(m.hide(),m.css("left","-10px")),d.css("width",r-o+"px"),d.css("left",o+"px"),y.css("left",r+"px");var s=(n-E)*e;h.css("left",s+"px"),u=r}function C(e){var n=p.width(),r=n*e,o=0,i=t.getSources()[t.getCurrentSource()].sectionEnd;i&&i>0&&(o=n*(i/t.getDuration()));var A=0===e?e:r-u;o>0&&A+u>o&&(A=o-u),y.css("width",A+"px")}function T(e){var n=p.width(),r=p.offset().left,o=((e.pageX||e.touches[0].clientX)-r)/n,i=t.getSources()[t.getCurrentSource()].sectionStart;if(i&&i>0&&o0&&o>A/t.getDuration()?-1:o<0?0:o>1?1:o}function N(e,n){if(c.size()>0||-1===e)return M.hide(),void I.hide();M.show(),I.show();var r=t.getDuration()*e;t.isTimecodeMode()?M.text((0,i.naturalHms)(r)):M.text(Math.round(r*t.getFramerate()));var o=M.width(),A=p.width(),a=A*e,s=(n.pageX||n.touches[0].clientX)-p.offset().left,u=function(e){return s0&&(o=n*(i/t.getDuration()));var A=0,a=t.getSources()[t.getCurrentSource()].sectionEnd;a&&a>0&&(A=n*(a/t.getDuration()));var s=r-o;A>0&&s+o>A&&(s=A-o),g.css("width",s+"px"),g.css("left",o+"px")}(e.bufferPercent/100)},r))},function(e){n?t.off(a.AD_TIME,null,e):(t.off(a.CONTENT_TIME,null,e),t.off(a.CONTENT_BUFFER,null,e))})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=a(n(5)),o=(n(13),n(106)),i=a(n(6)),A=n(1);function a(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=(0,i.default)("#"+t.getContainerId()),a="",s=t.getPlaylist(),u=s.length,l=6,c=0,f=[];function p(e){var n=Math.ceil(u/l),r=t.getCurrentPlaylist();f=s.slice(e*l,e*l+l),a.find(".op-playlist-body-row").removeChild(),a.find(".op-arrow-left").removeClass("disable"),a.find(".op-arrow-right").removeClass("disable");for(var i=0;i576?l=6:n.width()<=576&&(l=1);var y={"click .btn-close":function(e,t,n){e.preventDefault(),n.destroy()},"click .op-arrow-left":function(e,t,n){e.preventDefault(),(0,i.default)(e.target).hasClass("disable")||p(--c)},"click .op-arrow-right":function(e,t,n){e.preventDefault(),(0,i.default)(e.target).hasClass("disable")||p(++c)}};return(0,r.default)(e,"PlaylistPanel",t.getConfig(),s,y,function(e,n){a=e,p(c=g()),t.on(A.PLAYER_RESIZED,function(e){"xsmall"===e&&6===l?(l=1,p(c=g())):"small"!==e&&"medium"!==e&&"large"!==e||1!==l||(l=6,p(c=g()))},n),t.on(A.PLAYLIST_CHANGED,function(e){p(c=g())},n),e.get().addEventListener("click",function(e){for(var n=e.target;n;){if((0,i.default)(n).hasClass("op-playlist-card"))return void t.setCurrentPlaylist(parseInt((0,i.default)(n).attr("data-index")));n=n.parentElement}},!0)},function(e){t.off(A.PLAYER_RESIZED,null,e),t.off(A.PLAYLIST_CHANGED,null,e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(e){return e&&e.__esModule?e:{default:e}}(n(5)),o=n(13),i=n(1);t.default=function(e,t,n){var A="",a="";function s(e){return(0,o.naturalHms)(e)}return(0,r.default)(e,"TimeDisplay",t.getConfig(),n,{},function(e,r){var o=t.isTimecodeMode();A=e.find(".op-time-current"),a=e.find(".op-time-duration"),n.duration!==1/0&&(o?a.text(s(n.duration)):a.text(Math.round(n.duration*t.getFramerate())+" ("+t.getFramerate()+"fps)"),t.on(i.CONTENT_TIME_MODE_CHANGED,function(e){(o=e)?a.text(s(n.duration)):a.text(Math.round(n.duration*t.getFramerate())+" ("+t.getFramerate()+"fps)")},r),t.on(i.CONTENT_TIME,function(e){o?A.text(s(e.position)):A.text(Math.round(e.position*t.getFramerate()))},r))},function(e){t.off(i.CONTENT_TIME_MODE_CHANGED,null,e),t.off(i.CONTENT_TIME,null,e)})}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=A(n(5)),o=A(n(6)),i=n(1);function A(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t){var n=(0,o.default)("#"+t.getContainerId()),A="",a="",s=!1,u=(t.getConfig(),t.getBrowser()),l="iOS"===u.os,c=(u.os,""),f=!1,p={onfullscreenchange:"fullscreenchange",onmozfullscreenchange:"mozfullscreenchange",onwebkitfullscreenchange:"webkitfullscreenchange",MSFullscreenChange:"MSFullscreenChange"};function g(){return document.fullscreenElement||document.webkitFullscreenElement||document.mozFullScreenElement||document.msFullscreenElement}function d(){OvenPlayerConsole.log("FULLSCREEN STATE : ",g()),g()?(n.addClass("op-fullscreen"),s=!0,A.hide(),a.show()):(n.removeClass("op-fullscreen"),s=!1,A.show(),a.hide())}function y(){OvenPlayerConsole.log("afterFullScreenChangedCallback () "),d(),t.trigger(i.PLAYER_FULLSCREEN_CHANGED,s)}function h(){s?(n.removeClass("op-fullscreen"),s=!1,A.show(),a.hide()):(n.addClass("op-fullscreen"),s=!0,A.hide(),a.show()),t.trigger(i.PLAYER_FULLSCREEN_CHANGED,s)}function v(){!s||l&&!g()?function(){var e="",r=n.get(),o=n.find("video")?n.find("video").get():r,A=void 0,a=null;if(l){if(o.length>1)for(var u=0;u1)for(var o=0;oe;e++)this.q[e].call()}},e.resizedAttached.add(n);e.resizeSensor=document.createElement("div"),e.resizeSensor.className="resize-sensor";var r="position: absolute; left: 0; top: 0; right: 0; bottom: 0; overflow: hidden; z-index: -1; visibility: hidden; opacity: 0;",o="position: absolute; left: 0; top: 0; transition: 0s;";e.resizeSensor.style.cssText=r,e.resizeSensor.innerHTML='
',e.appendChild(e.resizeSensor),"static"==function(e,t){return e.currentStyle?e.currentStyle[t]:window.getComputedStyle?window.getComputedStyle(e,null).getPropertyValue(t):e.style[t]}(e,"position")&&(e.style.position="relative");var i=e.resizeSensor.childNodes[0],A=i.childNodes[0],a=e.resizeSensor.childNodes[1],s=function(){A.style.width=1e5+"px",A.style.height=1e5+"px",i.scrollLeft=1e5,i.scrollTop=1e5,a.scrollLeft=1e5,a.scrollTop=1e5};s();var u=!1,l=function(){e.resizedAttached&&(u&&(e.resizedAttached.call(),u=!1),t(l))};t(l);var c,f,p,g,d=function(){((p=e.offsetWidth)!=c||(g=e.offsetHeight)!=f)&&(u=!0,c=p,f=g),s()},y=function(e,t,n){e.attachEvent?e.attachEvent("on"+t,n):e.addEventListener(t,n)};y(i,"scroll",d),y(a,"scroll",d)}var t=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){return window.setTimeout(e,20)},n=function(t,n){var r=Object.prototype.toString.call(t),o=this._isCollectionTyped="[object Array]"===r||"[object NodeList]"===r||"[object HTMLCollection]"===r||"undefined"!=typeof jQuery&&t instanceof window.jQuery||"undefined"!=typeof Elements&&t instanceof window.Elements;if(this._element=t,o)for(var i=0,A=t.length;A>i;i++)e(t[i],n);else e(t,n)};return n.prototype.detach=function(){var e=this._isCollectionTyped,t=this._element;if(e)for(var r=0,o=t.length;o>r;r++)n.detach(t[r]);else n.detach(t)},n.detach=function(e){e.resizeSensor&&(e.removeChild(e.resizeSensor),delete e.resizeSensor,delete e.resizedAttached)},n}()}.apply(t,[]))||(e.exports=r)}(this)},function(e,t,n){var r=n(181);"string"==typeof r&&(r=[[e.i,r,""]]);var o={hmr:!0,transform:void 0,insertInto:void 0};n(190)(r,o);r.locals&&(e.exports=r.locals)},function(e,t,n){var r=n(182);(e.exports=n(183)(!1)).push([e.i,'@charset "UTF-8";@keyframes op-spinner{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}@-webkit-keyframes op-slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@keyframes op-slideOutDown{from{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}to{visibility:hidden;-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0)}}@-webkit-keyframes op-slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);opacity:1}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@keyframes op-slideInUp{from{-webkit-transform:translate3d(0, 100%, 0);transform:translate3d(0, 100%, 0);opacity:1}to{-webkit-transform:translate3d(0, 0, 0);transform:translate3d(0, 0, 0)}}@font-face{font-family:"frameIcon";src:url('+r(n(107))+");src:url("+r(n(107))+"#iefix) format('embedded-opentype'),url("+r(n(184))+") format('truetype'),url("+r(n(185))+"#icomoon) format('svg');font-weight:normal;font-style:normal}@font-face{font-family:'op-icons';src:url("+r(n(108))+");src:url("+r(n(108))+"#iefix) format('embedded-opentype'),url("+r(n(186))+") format('truetype'),url("+r(n(187))+'#fontello) format(\'svg\');font-weight:normal;font-style:normal}.op-wrapper.ovenplayer{position:relative;max-height:100%;overflow:hidden;zoom:1 !important;width:100%;display:block;font-family:Helvetica,Arial,sans-serif;background-color:#000;-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;color:#eee;font-size:14px;font-weight:100;outline:0;-webkit-touch-callout:none;user-select:none}.op-wrapper.ovenplayer *{box-sizing:inherit}.op-wrapper.ovenplayer object{width:100%;height:100%;position:absolute}.op-wrapper.ovenplayer:before,.op-wrapper.ovenplayer:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-wrapper.ovenplayer *,.op-wrapper.ovenplayer *:before,.op-wrapper.ovenplayer *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-wrapper.ovenplayer.op-fullscreen{width:100% !important;height:100% !important;top:0;right:0;bottom:0;left:0;z-index:1000;margin:0;position:fixed}.op-wrapper.ovenplayer.op-autohide{cursor:none}.op-wrapper.ovenplayer.op-autohide .op-bottom-panel{-webkit-animation-name:op-slideOutDown;animation-name:op-slideOutDown;-webkit-animation-duration:.2s;animation-duration:.2s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.op-wrapper.ovenplayer.op-autohide .op-progressbar-container,.op-wrapper.ovenplayer.op-autohide .op-controls .op-button{cursor:none}.op-wrapper.ovenplayer.op-autohide .op-caption-text-container{bottom:25px}.op-wrapper.ovenplayer .op-ratio{padding-bottom:56.25%}.op-wrapper.ovenplayer ::-webkit-scrollbar{width:5px;height:8px}.op-wrapper.ovenplayer ::-webkit-scrollbar-button:start:decrement,.op-wrapper.ovenplayer ::-webkit-scrollbar-button:end:increment{display:block;height:3px;background:#2f2f3e}.op-wrapper.ovenplayer ::-webkit-scrollbar-track{background:#2f2f3e;-webkit-border-radius:10px;border-radius:10px}.op-wrapper.ovenplayer ::-webkit-scrollbar-thumb{height:50px;width:50px;background:#606071;-webkit-border-radius:8px;border-radius:8px}.op-wrapper.ovenplayer .op-clear{color:inherit;background-color:transparent;padding:0;margin:0;float:none;font-family:Helvetica,Arial,sans-serif;font-size:1em;line-height:1em;list-style:none;text-transform:none;vertical-align:baseline;border:0;font-variant:inherit;font-stretch:inherit;-webkit-tap-highlight-color:rgba(255,255,255,0)}.op-player{position:absolute;top:0;height:100%;width:100%}.op-player .op-core-ui-wrapper{position:relative;height:100%}.op-player .op-media-element-container{position:absolute;left:0px;top:0px;width:100%;height:100%}.op-player .op-media-element-container video{width:100%;height:100%}.op-player .op-media-element-container object{width:100%;height:100%}.op-ads{position:absolute;height:100%;width:100%;padding-bottom:34px;top:0}.op-ads>div{position:absolute !important;width:100% !important;height:100% !important}.op-ads>div iframe{pointer-events:auto}.op-ads video.op-ads-vast-video{background-color:#000;position:absolute;width:100%;height:100%;left:0px;top:0px;z-index:1000}.op-ads .op-ads-button{bottom:36px;cursor:default;margin-right:4px;pointer-events:auto;position:absolute;right:0;z-index:1000;width:auto !important;height:auto !important;border-radius:4px;background-color:rgba(18,18,28,0.7);min-width:155px;display:none}.op-ads .op-ads-button .op-ads-textview{color:#e6e6e6;font-weight:normal;font-size:11px;padding:6px 12px;text-align:center;display:inline-block;width:100%;vertical-align:middle}.op-ads .op-ads-button .videoAdUiAction{color:#fff;padding:8px 24px;cursor:pointer;direction:ltr;font-weight:normal;font-size:20px;border:1px solid rgba(255,255,255,0.5)}.op-ads .op-ads-button .videoAdUiAction:hover{border-radius:4px;border:1px solid #fff}.op-ads .op-ads-button .videoAdUiAction i{display:inline-block;width:auto}.op-button{display:inline-block;border:none;background:transparent;padding:0;color:inherit;text-align:inherit;overflow:hidden;font-weight:100;font-size:30px;text-indent:0 !important}.op-button:focus,.op-button{outline:0}i.op-con{font-family:"op-icons";font-style:normal;font-weight:normal;speak:none;font-size:inherit;width:30px;line-height:30px;display:block;text-decoration:inherit;text-align:center;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;cursor:pointer}i.op-con.disable{color:#4f4f4f}i.op-con.op-close-icon::before{content:"\\E900"}i.op-con.op-pause-big::before{content:"\\E911"}i.op-con.op-fullscreen-compress::before{content:"\\E901"}i.op-con.op-fullscreen-expand::before{content:"\\E902"}i.op-con.op-arrow-left::before{content:"\\E903"}i.op-con.op-arrow-right::before{content:"\\E909"}i.op-con.op-empty-video::before{content:"\\E904"}i.op-con.op-play::before{content:"\\E906"}i.op-con.op-playlist-icon::before{content:"\\E907"}i.op-con.op-replay-big::before{content:"\\E908"}i.op-con.op-setting::before{content:"\\E90A"}i.op-con.op-pause::before{content:"\\E90C"}i.op-con.op-volume-small{display:none}i.op-con.op-volume-small::before{content:"\\E90D"}i.op-con.op-volume-mute{display:none}i.op-con.op-volume-mute::before{content:"\\E90E"}i.op-con.op-volume-max::before{content:"\\E90F"}i.op-con.op-play-big::before{content:"\\E910"}i.op-con.op-warning::before{content:"\\E912"}.op-badge{display:inline-block;padding:.75em .714em .714em .68em;font-size:1em;line-height:1;text-align:center;white-space:nowrap;vertical-align:baseline;border-radius:.286em;color:#fff;background-color:#12121c}.op-playlist{position:absolute;width:100%;height:100%;left:0;top:0;padding:2.857em;background:#000;z-index:1008}.op-playlist .op-badge{position:absolute;top:.857em;right:.857em;opacity:.7}.op-playlist .btn-left{float:left;font-size:2.857em}.op-playlist .btn-right{float:right;font-size:2.857em}.op-playlist .op-playlist-header{font-size:2.857em;font-weight:bold}.op-playlist .op-playlist-header:after{dispaly:block;content:\'\';clear:both}.op-playlist .op-playlist-header .op-con.op-close-icon{float:right}.op-playlist .op-playlist-body{height:100%;overflow:hidden;position:relative}.op-playlist .op-playlist-body .op-playlist-body-arrows{margin-top:-15px;position:absolute;top:50%;height:30px;-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%;left:0}.op-playlist .op-playlist-body .op-playlist-body-container{width:100%;height:100%;position:relative;margin-right:auto;margin-left:auto;max-width:992px}.op-playlist .op-playlist-body .op-playlist-body-container .op-playlist-body-center{margin:0;position:absolute;top:50%;padding-right:3em;padding-left:3em;-ms-transform:translateY(-50%);transform:translateY(-50%);width:100%}.op-playlist .op-playlist-body .op-playlist-body-row{margin-right:-15px;margin-left:-15px;display:-ms-flexbox;display:flex;-ms-flex-wrap:wrap;flex-wrap:wrap}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card{padding-right:15px;padding-left:15px;margin:15px 0;-ms-flex-preferred-size:0;flex-basis:0;-ms-flex-positive:1;flex-grow:1;-ms-flex:0 0 33.333333%;flex:0 0 33.333333%;max-width:33.333333%;cursor:pointer}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card.active{color:#50e3c2}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card.active .op-playlist-card-thumbnail{border-color:#50e3c2}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail{position:relative;display:block;width:100%;padding:0;overflow:hidden;border:.214em solid transparent;background-color:#000}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail img{position:absolute;top:0;bottom:0;left:0;width:100%;height:100%;border:0}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail.empty{background-color:#bababa}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail.empty>i{margin:0;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%);color:#fff !important;font-size:1.6em !important}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-thumbnail::before{padding-top:56.25%;display:block;content:""}.op-playlist .op-playlist-body .op-playlist-body-row .op-playlist-card .op-playlist-card-title{margin-top:.857em;font-size:1.429em;padding:2px 0;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.op-message-box{position:absolute;top:0;left:0;width:100%;height:100%;z-index:1007}.op-message-box .op-message-container{position:absolute;top:45%;margin-top:-35px;width:100%;padding:0 12px;text-align:center;color:#fff}.op-message-box .op-message-container .op-message-text{display:inline-block;background-color:rgba(18,18,28,0.3);padding:.8em 1.2em;word-wrap:break-word;max-width:80%;border-radius:4px;cursor:pointer}.op-message-box .op-message-container .op-message-text .op-message-description{font-size:12px;margin-top:12px;color:#999}.op-message-box .op-message-container .op-message-icon{display:inline-block;margin-top:12px;width:100%}.op-message-box .op-message-container .op-message-icon i.op-con{cursor:pointer;font-size:80px;width:80px;height:80px;line-height:80px;display:inline-block}.op-message-box.op-message-box-default-cursor .op-message-container .op-message-text{cursor:default}.op-message-box.op-message-box-default-cursor .op-message-container .op-message-icon i.op-con{cursor:default}.op-bigbutton-container{cursor:pointer;position:absolute;top:50%;left:50%;margin-top:-40px;margin-left:-40px;text-align:center;z-index:1007}.op-bigbutton-container .op-bigbutton{width:80px;height:80px;display:block;font-size:80px;line-height:80px}.op-thumbnail-container{position:absolute;top:0;width:100%;left:0;height:100%;z-index:1001;pointer-events:none}.op-thumbnail-container .op-thumbnail-wrapper{position:relative;height:100%;padding:2.857em}.op-thumbnail-container .op-thumbnail-wrapper img{width:100%;max-height:100%;position:absolute;top:50%;left:50%;transform:translate(-50%, -50%)}.op-thumbnail-container .op-thumbnail-wrapper .op-thumbnail-header{position:relative;left:0;top:0;font-size:2.857em;font-weight:bold;line-height:1.4;text-shadow:1px 1px 2px rgba(217,217,217,0.5)}.op-thumbnail-container .op-thumbnail-wrapper .op-thumbnail-header:after{dispaly:block;content:\'\';clear:both}.op-setting-panel{position:absolute;bottom:55px;right:12px;overflow-y:auto;max-height:100%;width:260px;user-select:none;background-color:rgba(28,28,28,0.9);text-shadow:0 0 2px rgba(0,0,0,0.5);z-index:1010}.op-setting-panel.background{display:none}.op-setting-panel .op-setting-title,.op-setting-panel .op-setting-item{width:100%;height:38px;line-height:38px;color:#eee;cursor:pointer;outline:none}.op-setting-panel .op-setting-title-container .op-setting-title .op-setting-title-title{padding-left:12px;font-weight:bold}.op-setting-panel .op-setting-title-container .op-setting-title .op-setting-title-previcon{padding:0 0 0 12px;margin-right:-6px}.op-setting-panel .op-setting-item-container .op-setting-item:hover{background-color:rgba(255,255,255,0.1)}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-title{padding-left:12px}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-nexticon{float:right;padding-right:12px;margin-left:-6px}.op-setting-panel .op-setting-item-container .op-setting-item span.op-setting-item-value{float:right;padding-right:12px}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-checked{padding-left:12px;visibility:hidden}.op-setting-panel .op-setting-item-container .op-setting-item .op-setting-item-checked.op-show{visibility:visible}.op-controls-container{display:none}.op-controls-container .op-bottom-panel{position:absolute;left:0px;bottom:0px;height:54px;width:100%;z-index:1007;-webkit-animation-name:op-slideInUp;animation-name:op-slideInUp;-webkit-animation-duration:.5s;animation-duration:.5s;-webkit-animation-fill-mode:both;animation-fill-mode:both}.op-controls-container .op-bottom-panel .op-gradient-bottom{position:absolute;width:100%;height:100%;background-color:rgba(18,18,28,0.3);pointer-events:none}.op-controls-container .op-bottom-panel .op-progressbar-container{display:block;position:relative;width:100%;height:4px;cursor:pointer;bottom:50px}.op-controls-container .op-bottom-panel .op-progressbar-container .op-progressbar-padding{position:absolute;width:100%;height:15px;bottom:-5px}.op-controls-container .op-bottom-panel .op-controls{position:relative;width:100%;text-align:left;overflow:hidden}.op-controls-container .op-bottom-panel .op-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-setting-button{position:relative;margin-right:12px}.op-controls-container .op-bottom-panel .op-controls .op-playlist-button{position:relative;margin-right:12px}.op-controls-container .op-bottom-panel .op-controls .op-navigators{float:left;height:30px;line-height:30px}.op-controls-container .op-bottom-panel .op-controls .op-left-controls{float:left;height:50px;padding:14px 0 10px 0}.op-controls-container .op-bottom-panel .op-controls .op-left-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-right-controls{float:right;height:50px;padding:14px 0 10px 0}.op-controls-container .op-bottom-panel .op-controls .op-right-controls:after{content:\'\';clear:both}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons{position:relative;display:inline-block;margin-left:14px;overflow:hidden;font-weight:100;height:30px}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button{margin-right:6px;position:relative;text-align:center;color:#fff}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon{position:relative}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon.reverse:after{content:\'\\E900\'}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon:after{font-family:\'frameIcon\' !important;speak:none;content:\'\\E901\';font-style:normal;font-weight:normal;font-variant:normal;text-transform:none;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;position:absolute;font-size:2.4em;left:0;line-height:30px;height:30px}.op-controls-container .op-bottom-panel .op-controls .op-frame-buttons .op-frame-button .frame-icon .btn-text{font-weight:bold;font-size:.8em;line-height:30px;height:30px}.op-progressbar{position:absolute;bottom:0;left:0;width:100%;height:100%;outline:none;margin-top:10px}.op-progressbar .op-play-background-color{background-color:#50e3c2}.op-progressbar .op-progress-list{position:relative;height:100%;background:rgba(255,255,255,0.2)}.op-progressbar .op-progress-list .op-load-progress,.op-progressbar .op-progress-list .op-play-progress,.op-progressbar .op-progress-list .op-hover-progress{position:absolute;left:0;bottom:0;width:100%;height:100%;-moz-transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.op-progressbar .op-progress-list .op-play-progress{width:0;-moz-transform-origin:0 0;-ms-transform-origin:0 0;-webkit-transform-origin:0 0;transform-origin:0 0}.op-progressbar .op-progress-list .op-load-progress{width:0;background-color:rgba(255,255,255,0.5);-webkit-transition:width .5s ease;transition:width .5s ease}.op-progressbar .op-progress-list .op-hover-progress{left:0;width:0;background-color:rgba(255,255,255,0.6)}.op-progressbar .op-progressbar-knob-container{position:absolute;top:-5px;left:0px}.op-progressbar .op-progressbar-knob-container .op-progressbar-knob{width:14px;height:14px;border-radius:7px;-webkit-transition:width .1s ease;transition:width .1s ease}.op-progressbar .op-progressbar-time{display:none;position:absolute;bottom:15px;left:auto;width:auto;background-color:rgba(28,28,28,0.9);border-radius:2px;padding:5px 9px;font-size:.8em;line-height:15px;user-select:none;opacity:.7}.op-progressbar-hover .op-progressbar-knob-container{-moz-transform:none;-ms-transform:none;-webkit-transform:none;transform:none;-moz-transition:-moz-transform .1s cubic-bezier(0, 0, .2, 1);-webkit-transition:-webkit-transform .1s cubic-bezier(0, 0, .2, 1);-ms-transition:-ms-transform .1s cubic-bezier(0, 0, .2, 1);transition:transform .1s cubic-bezier(0, 0, .2, 1)}.op-progressbar-hover .op-progressbar-time{display:inline-block}.op-on-error .op-progressbar-time{display:none}.op-progressbar-section-start,.op-progressbar-section-end{display:none;position:absolute;width:3px;height:14px;bottom:-5px;background-color:#50e3c2}.op-progressbar-preview{position:absolute;display:none;bottom:50px;border:2px solid #fff;border-radius:2px;background-color:#000;z-index:1020}.op-play-button{position:relative;margin-left:15px}.op-play-button .op-play-button-playicon{background:url('+r(n(188))+")}.op-play-button .op-play-button-pauseicon{background:url("+r(n(189))+")}.op-volume-controller{display:inline-block;position:relative;margin-left:12px}.op-volume-controller:after{content:'';clear:both}.op-volume-controller .op-volume-button{float:left}@-webkit-keyframes slide{100%{left:0}}@keyframes slide{100%{left:0}}.op-volume-controller .op-volume-slider-container{float:left;opacity:0;position:relative;width:0px;margin-right:0;line-height:30px;height:30px;cursor:pointer;user-select:none;outline:none}.op-volume-controller .op-volume-slider-container.active{width:70px;opacity:1;margin-left:8px;-moz-transition:opacity .4s cubic-bezier(0, 0, .2, 1);-webkit-transition:opacity .4s cubic-bezier(0, 0, .2, 1);transition:opacity .4s cubic-bezier(0, 0, .2, 1)}.op-volume-controller .op-volume-slider-container .op-volume-silder{height:100%;position:relative}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-bg,.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-value{position:absolute;display:block;left:0;top:50%;height:4px;margin-top:-2px;border-radius:10px}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-bg{width:100%;background:#fff}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-value{width:100%;background:#50e3c2;border-radius:10px 0 0 10px;-moz-transition:width .2s cubic-bezier(0, 0, .2, 1);-webkit-transition:width .2s cubic-bezier(0, 0, .2, 1);transition:width .2s cubic-bezier(0, 0, .2, 1)}.op-volume-controller .op-volume-slider-container .op-volume-silder .op-volume-slider-handle{position:absolute;top:50%;left:30px;width:12px;height:12px;border-radius:10px;margin-top:-6px;background:#fff;-moz-transition:left .2s cubic-bezier(0, 0, .2, 1);-webkit-transition:left .2s cubic-bezier(0, 0, .2, 1);transition:left .2s cubic-bezier(0, 0, .2, 1)}.op-time-display{float:left;position:relative;margin-left:14px;height:30px;line-height:30px;white-space:nowrap;vertical-align:top;font-size:14px;user-select:none}.op-time-display .op-time-current,.op-time-display .op-time-separator,.op-time-display .op-time-duration{color:#fff}.op-time-display .op-live-badge{opacity:1;width:auto;display:inline-block}.op-time-display .op-live-badge:before{background:#ff0000;display:inline-block;position:relative;top:-2px;width:6px;height:6px;margin-right:5px;content:'';border-radius:6px}.op-time-display .op-live-badge .op-live-badge-lowlatency{display:inline-block;margin-right:5px}.op-context-panel{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box;display:block;position:absolute;overflow:hidden;width:200px;padding:6px 0;background:rgba(28,28,28,0.9);text-shadow:0 0 2px rgba(0,0,0,0.5);font-weight:lighter;user-select:none}.op-context-panel:before,.op-context-panel:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-context-panel *,.op-context-panel *:before,.op-context-panel *:after{-moz-box-sizing:border-box;-webkit-box-sizing:border-box;box-sizing:border-box}.op-context-panel .op-context-item{width:100%;height:38px;padding-left:12px;line-height:38px;color:#eee;cursor:pointer;outline:none;font-size:.8em;font-weight:lighter;text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.op-context-panel .op-context-item:hover{background-color:rgba(255,255,255,0.1)}.op-fullscreen-button{position:relative;margin-right:15px}.op-fullscreen-button .op-fullscreen-compress{display:none}.op-spinner-container{position:absolute;top:50%;width:64px;left:50%;margin-left:-32px;margin-top:-32px;z-index:1009;display:none}.op-spinner-container .op-spinner{display:inline-block;position:relative;width:64px;height:64px;border:4px solid transparent;border-top:4px solid #50e3c2;border-radius:50%;animation:spin 1.2s cubic-bezier(.5, 0, .5, 1) infinite}@keyframes spin{0%{transform:rotate(0deg)}100%{transform:rotate(360deg)}}.op-caption-viewer .op-caption-text-container{position:absolute;bottom:60px;width:100%;padding:0 12px;text-align:center;-moz-transition:bottom .25s cubic-bezier(0, 0, .2, 1);-webkit-transition:bottom .25s cubic-bezier(0, 0, .2, 1);transition:bottom .25s cubic-bezier(0, 0, .2, 1)}.op-caption-viewer .op-caption-text-container .op-caption-text{font-size:1em;line-height:1.2em;text-shadow:2px 2px 2px gray;color:#fff;padding:.1em .3em;user-select:none;word-break:break-word;white-space:pre-line}.op-caption-button{width:36px}.op-caption-button>i{font-size:18px;-moz-transition:color .25s cubic-bezier(0, 0, .2, 1);-webkit-transition:color .25s cubic-bezier(0, 0, .2, 1);transition:color .25s cubic-bezier(0, 0, .2, 1)}.op-caption-active .op-caption-button>i{color:#F36446}.op-wrapper.ovenplayer.large{font-size:14px}.op-wrapper.ovenplayer.large .op-caption-text{font-size:2em;line-height:2em}.op-wrapper.ovenplayer.medium{font-size:12px}.op-wrapper.ovenplayer.medium .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.small{font-size:10px}.op-wrapper.ovenplayer.small .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.small .op-playlist{padding:1rem}.op-wrapper.ovenplayer.small .op-playlist .op-playlist-card{margin:5px 0}.op-wrapper.ovenplayer.xsmall{font-size:10px}.op-wrapper.ovenplayer.xsmall .op-bigbutton-container{margin-top:-20px;margin-left:-20px}.op-wrapper.ovenplayer.xsmall .op-bigbutton-container .op-bigbutton{width:40px;height:40px;font-size:40px;line-height:40px}.op-wrapper.ovenplayer.xsmall .op-caption-text{font-size:1.4em;line-height:1.4em}.op-wrapper.ovenplayer.xsmall .op-playlist{padding:1rem}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-header{font-size:2em}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-card{margin:5px 0;-ms-flex:0 0 100%;flex:0 0 100%;max-width:100%;padding:0 6em}.op-wrapper.ovenplayer.xsmall .op-playlist .op-playlist-card .op-playlist-card-title{margin-top:0}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container{top:50%;font-weight:bold}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container .op-message-icon{margin-top:0}.op-wrapper.ovenplayer.xsmall .op-message-box .op-message-container .op-message-icon .op-con{font-size:40px;width:40px;height:40px;line-height:40px}.op-wrapper.ovenplayer.xsmall .op-ads-button{bottom:22px}.op-wrapper.ovenplayer.xsmall .op-ads-button .videoAdUiAction{padding:4px;font-size:14px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel{height:34px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls{top:4px}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls .op-left-controls{height:30px;padding:0}.op-wrapper.ovenplayer.linear-ad .op-bottom-panel .op-controls .op-right-controls{height:30px;padding:0}.op-wrapper.ovenplayer.linear-ad .op-ads{top:0;bottom:0}.op-wrapper.ovenplayer.linear-ad .op-button i.op-con{width:24px;height:24px;font-size:24px}.op-wrapper.ovenplayer.linear-ad .op-controls-container .op-bottom-panel .op-progressbar-container{bottom:30px}@keyframes fade{from{opacity:.3}55%{opacity:1}75%{opacity:1}to{opacity:.3}}@-webkit-keyframes bounceIn{from,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215, .61, .355, 1);animation-timing-function:cubic-bezier(.215, .61, .355, 1)}0%{opacity:0;-webkit-transform:scale3d(.5, .5, .5);transform:scale3d(.5, .5, .5)}20%{-webkit-transform:scale3d(1.1, 1.1, 1.1);transform:scale3d(1.1, 1.1, 1.1)}40%{-webkit-transform:scale3d(.9, .9, .9);transform:scale3d(.9, .9, .9)}60%{opacity:1;-webkit-transform:scale3d(1.03, 1.03, 1.03);transform:scale3d(1.03, 1.03, 1.03)}80%{-webkit-transform:scale3d(.97, .97, .97);transform:scale3d(.97, .97, .97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}@keyframes bounceIn{from,20%,40%,60%,80%,to{-webkit-animation-timing-function:cubic-bezier(.215, .61, .355, 1);animation-timing-function:cubic-bezier(.215, .61, .355, 1)}0%{opacity:0;-webkit-transform:scale3d(.3, .3, .3);transform:scale3d(.3, .3, .3)}20%{-webkit-transform:scale3d(1.1, 1.1, 1.1);transform:scale3d(1.1, 1.1, 1.1)}40%{-webkit-transform:scale3d(.9, .9, .9);transform:scale3d(.9, .9, .9)}60%{opacity:1;-webkit-transform:scale3d(1.03, 1.03, 1.03);transform:scale3d(1.03, 1.03, 1.03)}80%{-webkit-transform:scale3d(.97, .97, .97);transform:scale3d(.97, .97, .97)}to{opacity:1;-webkit-transform:scale3d(1, 1, 1);transform:scale3d(1, 1, 1)}}.op-player .bounceIn{-webkit-animation-duration:.75s;animation-duration:.75s;-webkit-animation-name:bounceIn;animation-name:bounceIn}@-webkit-keyframes fadeIn{from{opacity:0}to{opacity:1}}@keyframes fadeIn{from{opacity:0}to{opacity:1}}.op-player .fadeIn{-webkit-animation-name:fadeIn;animation-name:fadeIn}.op-player .animated{-webkit-animation-duration:1s;animation-duration:1s;-webkit-animation-fill-mode:both;animation-fill-mode:both}@media (prefers-reduced-motion){.op-player .animated{-webkit-animation:unset !important;animation:unset !important;-webkit-transition:none !important;transition:none !important}}",""])},function(e,t){e.exports=function(e){return"string"!=typeof e?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),/["'() \t\n]/.test(e)?'"'+e.replace(/"/g,'\\"').replace(/\n/g,"\\n")+'"':e)}},function(e,t){e.exports=function(e){var t=[];return t.toString=function(){return this.map(function(t){var n=function(e,t){var n=e[1]||"",r=e[3];if(!r)return n;if(t&&"function"==typeof btoa){var o=function(e){return"/*# sourceMappingURL=data:application/json;charset=utf-8;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(e))))+" */"}(r),i=r.sources.map(function(e){return"/*# sourceURL="+r.sourceRoot+e+" */"});return[n].concat(i).concat([o]).join("\n")}return[n].join("\n")}(t,e);return t[2]?"@media "+t[2]+"{"+n+"}":n}).join("")},t.i=function(e,n){"string"==typeof e&&(e=[[null,e,""]]);for(var r={},o=0;o=0&&s.splice(t,1)}function g(e){var t=document.createElement("style");return void 0===e.attrs.type&&(e.attrs.type="text/css"),d(t,e.attrs),f(e,t),t}function d(e,t){Object.keys(t).forEach(function(n){e.setAttribute(n,t[n])})}function y(e,t){var n,r,o,i;if(t.transform&&e.css){if(!(i=t.transform(e.css)))return function(){};e.css=i}if(t.singleton){var s=a++;n=A||(A=g(t)),r=v.bind(null,n,s,!1),o=v.bind(null,n,s,!0)}else e.sourceMap&&"function"==typeof URL&&"function"==typeof URL.createObjectURL&&"function"==typeof URL.revokeObjectURL&&"function"==typeof Blob&&"function"==typeof btoa?(n=function(e){var t=document.createElement("link");return void 0===e.attrs.type&&(e.attrs.type="text/css"),e.attrs.rel="stylesheet",d(t,e.attrs),f(e,t),t}(t),r=function(e,t,n){var r=n.css,o=n.sourceMap,i=void 0===t.convertToAbsoluteUrls&&o;(t.convertToAbsoluteUrls||i)&&(r=u(r));o&&(r+="\n/*# sourceMappingURL=data:application/json;base64,"+btoa(unescape(encodeURIComponent(JSON.stringify(o))))+" */");var A=new Blob([r],{type:"text/css"}),a=e.href;e.href=URL.createObjectURL(A),a&&URL.revokeObjectURL(a)}.bind(null,n,t),o=function(){p(n),n.href&&URL.revokeObjectURL(n.href)}):(n=g(t),r=function(e,t){var n=t.css,r=t.media;r&&e.setAttribute("media",r);if(e.styleSheet)e.styleSheet.cssText=n;else{for(;e.firstChild;)e.removeChild(e.firstChild);e.appendChild(document.createTextNode(n))}}.bind(null,n),o=function(){p(n)});return r(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap)return;r(e=t)}else o()}}e.exports=function(e,t){if("undefined"!=typeof DEBUG&&DEBUG&&"object"!=typeof document)throw new Error("The style-loader cannot be used in a non-browser environment");(t=t||{}).attrs="object"==typeof t.attrs?t.attrs:{},t.singleton||"boolean"==typeof t.singleton||(t.singleton=o()),t.insertInto||(t.insertInto="head"),t.insertAt||(t.insertAt="bottom");var n=c(e,t);return l(n,t),function(e){for(var o=[],i=0;i=0&&t.item(n)!==this;);return n>-1})),window.Element&&!Element.prototype.closest&&(Element.prototype.closest=function(e){var t,n=(this.document||this.ownerDocument).querySelectorAll(e),r=this;do{for(t=n.length;--t>=0&&n.item(t)!==r;);}while(t<0&&(r=r.parentElement));return r});var t={prepend:function(){var e=[].slice.call(arguments);e=o(e),this.insertBefore(e,this.firstChild)},append:function(){var e=[].slice.call(arguments);e=o(e),this.appendChild(e)}};r(e.Document||e.HTMLDocument,t),r(e.DocumentFragment,t),r(e.Element,t);var n={before:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.previousSibling;-1!==e.indexOf(n);)n=n.previousSibling;var r=o(e);t.insertBefore(r,n?n.nextSibling:t.firstChild)}},after:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;-1!==e.indexOf(n);)n=n.nextSibling;var r=o(e);t.insertBefore(r,n)}},replaceWith:function(){var e=[].slice.call(arguments),t=this.parentNode;if(t){for(var n=this.nextSibling;-1!==e.indexOf(n);)n=n.nextSibling;var r=o(e);this.parentNode===t?t.replaceChild(r,this):t.insertBefore(r,n)}},remove:function(){this.parentNode&&this.parentNode.removeChild(this)}};r(e.DocumentType,n),r(e.Element,n),r(e.CharacterData,n)}function r(e,t){e&&Object.keys(t).forEach(function(n){if(!(n in e||n in e.prototype))try{Object.defineProperty(e.prototype,n,Object.getOwnPropertyDescriptor(t,n))}catch(r){e[n]=t[n]}})}function o(e){var t=null;return 1===(e=e.map(function(e){return e instanceof Node?e:document.createTextNode(e)})).length?t=e[0]:(t=document.createDocumentFragment(),e.forEach(function(e){t.appendChild(e)})),t}}(self)},function(e,t,n){"use strict";var r=n(0),o=n(54),i=n(88),A=n(3),a=n(41),s=n(10),u=n(2),l=n(4).ArrayBuffer,c=n(55),f=i.ArrayBuffer,p=i.DataView,g=o.ABV&&l.isView,d=f.prototype.slice,y=o.VIEW;r(r.G+r.W+r.F*(l!==f),{ArrayBuffer:f}),r(r.S+r.F*!o.CONSTR,"ArrayBuffer",{isView:function(e){return g&&g(e)||u(e)&&y in e}}),r(r.P+r.U+r.F*n(9)(function(){return!new f(2).slice(1,void 0).byteLength}),"ArrayBuffer",{slice:function(e,t){if(void 0!==d&&void 0===t)return d.call(A(this),e);for(var n=A(this).byteLength,r=a(e,n),o=a(void 0===t?n:t,n),i=new(c(this,f))(s(o-r)),u=new p(this),l=new p(i),g=0;rs;)r.f(e,n=A[s++],t[n]);return e}},function(e,t,n){var r=n(199);e.exports=function(e,t){return new(r(e))(t)}},function(e,t,n){var r=n(2),o=n(113),i=n(8)("species");e.exports=function(e){var t;return o(e)&&("function"!=typeof(t=e.constructor)||t!==Array&&!o(t.prototype)||(t=void 0),r(t)&&null===(t=t[i])&&(t=void 0)),void 0===t?Array:t}},function(e,t,n){"use strict";var r=n(50),o=n(29),i=n(42),A={};n(14)(A,n(8)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=r(A,{next:o(1,n)}),i(e,t+" Iterator")}},function(e,t,n){n(21)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(21)("Uint8",1,function(e){return function(t,n,r){return e(this,t,n,r)}},!0)},function(e,t,n){n(21)("Int16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(21)("Uint16",2,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(21)("Int32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(21)("Uint32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(21)("Float32",4,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){n(21)("Float64",8,function(e){return function(t,n,r){return e(this,t,n,r)}})},function(e,t,n){"use strict";var r=n(117),o=n(35);e.exports=n(60)("Map",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{get:function(e){var t=r.getEntry(o(this,"Map"),e);return t&&t.v},set:function(e,t){return r.def(o(this,"Map"),0===e?0:e,t)}},r,!0)},function(e,t,n){var r=n(2),o=n(97).set;e.exports=function(e,t,n){var i,A=t.constructor;return A!==n&&"function"==typeof A&&(i=A.prototype)!==n.prototype&&r(i)&&o&&o(e,i),e}},function(e,t,n){"use strict";var r=n(117),o=n(35);e.exports=n(60)("Set",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"Set"),e=0===e?0:e,e)}},r)},function(e,t,n){"use strict";var r,o=n(4),i=n(51)(0),A=n(23),a=n(25),s=n(119),u=n(120),l=n(2),c=n(35),f=n(35),p=!o.ActiveXObject&&"ActiveXObject"in o,g=a.getWeak,d=Object.isExtensible,y=u.ufstore,h=function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},v={get:function(e){if(l(e)){var t=g(e);return!0===t?y(c(this,"WeakMap")).get(e):t?t[this._i]:void 0}},set:function(e,t){return u.def(c(this,"WeakMap"),e,t)}},E=e.exports=n(60)("WeakMap",h,v,u,!0,!0);f&&p&&(s((r=u.getConstructor(h,"WeakMap")).prototype,v),a.NEED=!0,i(["delete","has","get","set"],function(e){var t=E.prototype,n=t[e];A(t,e,function(t,o){if(l(t)&&!d(t)){this._f||(this._f=new r);var i=this._f[e](t,o);return"set"==e?this:i}return n.call(this,t,o)})}))},function(e,t,n){"use strict";var r=n(120),o=n(35);n(60)("WeakSet",function(e){return function(){return e(this,arguments.length>0?arguments[0]:void 0)}},{add:function(e){return r.def(o(this,"WeakSet"),e,!0)}},r,!1,!0)},function(e,t,n){var r=n(0),o=n(32),i=n(3),A=(n(4).Reflect||{}).apply,a=Function.apply;r(r.S+r.F*!n(9)(function(){A(function(){})}),"Reflect",{apply:function(e,t,n){var r=o(e),s=i(n);return A?A(r,t,s):a.call(r,t,s)}})},function(e,t,n){var r=n(0),o=n(50),i=n(32),A=n(3),a=n(2),s=n(9),u=n(216),l=(n(4).Reflect||{}).construct,c=s(function(){function e(){}return!(l(function(){},[],e)instanceof e)}),f=!s(function(){l(function(){})});r(r.S+r.F*(c||f),"Reflect",{construct:function(e,t){i(e),A(t);var n=arguments.length<3?e:i(arguments[2]);if(f&&!c)return l(e,t,n);if(e==n){switch(t.length){case 0:return new e;case 1:return new e(t[0]);case 2:return new e(t[0],t[1]);case 3:return new e(t[0],t[1],t[2]);case 4:return new e(t[0],t[1],t[2],t[3])}var r=[null];return r.push.apply(r,t),new(u.apply(e,r))}var s=n.prototype,p=o(a(s)?s:Object.prototype),g=Function.apply.call(e,p,t);return a(g)?g:p}})},function(e,t,n){"use strict";var r=n(32),o=n(2),i=n(121),A=[].slice,a={};e.exports=Function.bind||function(e){var t=r(this),n=A.call(arguments,1),s=function(){var r=n.concat(A.call(arguments));return this instanceof s?function(e,t,n){if(!(t in a)){for(var r=[],o=0;oi;)A(n[i++]);e._c=[],e._n=!1,t&&!e._h&&O(e)})}},O=function(e){h.call(s,function(){var t,n,r,o=e._v,i=Y(e);if(i&&(t=M(function(){N?b.emit("unhandledRejection",o,e):(n=s.onunhandledrejection)?n({promise:e,reason:o}):(r=s.console)&&r.error&&r.error("Unhandled promise rejection",o)}),e._h=N||Y(e)?2:1),e._a=void 0,i&&t.e)throw t.v})},Y=function(e){return 1!==e._h&&0===(e._a||e._c).length},R=function(e){h.call(s,function(){var t;N?b.emit("rejectionHandled",e):(t=s.onrejectionhandled)&&t({promise:e,reason:e._v})})},j=function(e){var t=this;t._d||(t._d=!0,(t=t._w||t)._v=e,t._s=2,t._a||(t._a=t._c.slice()),S(t,!0))},F=function(e){var t,n=this;if(!n._d){n._d=!0,n=n._w||n;try{if(n===e)throw I("Promise can't be resolved itself");(t=Q(e))?v(function(){var r={_w:n,_d:!1};try{t.call(e,u(F,r,1),u(j,r,1))}catch(e){j.call(r,e)}}):(n._v=e,n._s=1,S(n,!1))}catch(e){j.call({_w:n,_d:!1},e)}}};x||(T=function(e){g(this,T,"Promise","_h"),p(e),r.call(this);try{e(u(F,this,1),u(j,this,1))}catch(e){j.call(this,e)}},(r=function(e){this._c=[],this._a=void 0,this._s=0,this._d=!1,this._v=void 0,this._h=0,this._n=!1}).prototype=n(38)(T.prototype,{then:function(e,t){var n=L(y(this,T));return n.ok="function"!=typeof e||e,n.fail="function"==typeof t&&t,n.domain=N?b.domain:void 0,this._c.push(n),this._a&&this._a.push(n),this._s&&S(this,!1),n.promise},catch:function(e){return this.then(void 0,e)}}),i=function(){var e=new r;this.promise=e,this.resolve=u(F,e,1),this.reject=u(j,e,1)},E.f=L=function(e){return e===T||e===A?new i(e):o(e)}),c(c.G+c.W+c.F*!x,{Promise:T}),n(42)(T,"Promise"),n(56)("Promise"),A=n(28).Promise,c(c.S+c.F*!x,"Promise",{reject:function(e){var t=L(this);return(0,t.reject)(e),t.promise}}),c(c.S+c.F*(a||!x),"Promise",{resolve:function(e){return m(a&&this===A?T:this,e)}}),c(c.S+c.F*!(x&&n(58)(function(e){T.all(e).catch(D)})),"Promise",{all:function(e){var t=this,n=L(t),r=n.resolve,o=n.reject,i=M(function(){var n=[],i=0,A=1;d(e,!1,function(e){var a=i++,s=!1;n.push(void 0),A++,t.resolve(e).then(function(e){s||(s=!0,n[a]=e,--A||r(n))},o)}),--A||r(n)});return i.e&&o(i.v),n.promise},race:function(e){var t=this,n=L(t),r=n.reject,o=M(function(){d(e,!1,function(e){t.resolve(e).then(n.resolve,r)})});return o.e&&r(o.v),n.promise}})},function(e,t,n){var r=n(4),o=n(98).set,i=r.MutationObserver||r.WebKitMutationObserver,A=r.process,a=r.Promise,s="process"==n(40)(A);e.exports=function(){var e,t,n,u=function(){var r,o;for(s&&(r=A.domain)&&r.exit();e;){o=e.fn,e=e.next;try{o()}catch(r){throw e?n():t=void 0,r}}t=void 0,r&&r.enter()};if(s)n=function(){A.nextTick(u)};else if(!i||r.navigator&&r.navigator.standalone)if(a&&a.resolve){var l=a.resolve(void 0);n=function(){l.then(u)}}else n=function(){o.call(r,u)};else{var c=!0,f=document.createTextNode("");new i(u).observe(f,{characterData:!0}),n=function(){f.data=c=!c}}return function(r){var o={fn:r,next:void 0};t&&(t.next=o),e||(e=o,n()),t=o}}},function(e,t){e.exports=function(e){try{return{e:!1,v:e()}}catch(e){return{e:!0,v:e}}}},function(e,t,n){var r=n(3),o=n(2),i=n(123);e.exports=function(e,t){if(r(e),o(t)&&t.constructor===e)return t;var n=i.f(e);return(0,n.resolve)(t),n.promise}},function(e,t,n){"use strict";var r=n(4),o=n(15),i=n(12),A=n(0),a=n(23),s=n(25).KEY,u=n(9),l=n(53),c=n(42),f=n(30),p=n(8),g=n(124),d=n(233),y=n(234),h=n(113),v=n(3),E=n(2),M=n(16),w=n(48),m=n(29),I=n(50),b=n(125),B=n(22),C=n(11),T=n(34),N=B.f,D=C.f,L=b.f,x=r.Symbol,Q=r.JSON,S=Q&&Q.stringify,O=p("_hidden"),Y=p("toPrimitive"),R={}.propertyIsEnumerable,j=l("symbol-registry"),F=l("symbols"),k=l("op-symbols"),P=Object.prototype,z="function"==typeof x,_=r.QObject,U=!_||!_.prototype||!_.prototype.findChild,G=i&&u(function(){return 7!=I(D({},"a",{get:function(){return D(this,"a",{value:7}).a}})).a})?function(e,t,n){var r=N(P,t);r&&delete P[t],D(e,t,n),r&&e!==P&&D(P,t,r)}:D,W=function(e){var t=F[e]=I(x.prototype);return t._k=e,t},H=z&&"symbol"==typeof x.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof x},Z=function(e,t,n){return e===P&&Z(k,t,n),v(e),t=w(t,!0),v(n),o(F,t)?(n.enumerable?(o(e,O)&&e[O][t]&&(e[O][t]=!1),n=I(n,{enumerable:m(0,!1)})):(o(e,O)||D(e,O,m(1,{})),e[O][t]=!0),G(e,t,n)):D(e,t,n)},J=function(e,t){v(e);for(var n,r=y(t=M(t)),o=0,i=r.length;i>o;)Z(e,n=r[o++],t[n]);return e},V=function(e){var t=R.call(this,e=w(e,!0));return!(this===P&&o(F,e)&&!o(k,e))&&(!(t||!o(this,e)||!o(F,e)||o(this,O)&&this[O][e])||t)},K=function(e,t){if(e=M(e),t=w(t,!0),e!==P||!o(F,t)||o(k,t)){var n=N(e,t);return!n||!o(F,t)||o(e,O)&&e[O][t]||(n.enumerable=!0),n}},X=function(e){for(var t,n=L(M(e)),r=[],i=0;n.length>i;)o(F,t=n[i++])||t==O||t==s||r.push(t);return r},q=function(e){for(var t,n=e===P,r=L(n?k:M(e)),i=[],A=0;r.length>A;)!o(F,t=r[A++])||n&&!o(P,t)||i.push(F[t]);return i};z||(a((x=function(){if(this instanceof x)throw TypeError("Symbol is not a constructor!");var e=f(arguments.length>0?arguments[0]:void 0),t=function(n){this===P&&t.call(k,n),o(this,O)&&o(this[O],e)&&(this[O][e]=!1),G(this,e,m(1,n))};return i&&U&&G(P,e,{configurable:!0,set:t}),W(e)}).prototype,"toString",function(){return this._k}),B.f=K,C.f=Z,n(49).f=b.f=X,n(52).f=V,n(61).f=q,i&&!n(31)&&a(P,"propertyIsEnumerable",V,!0),g.f=function(e){return W(p(e))}),A(A.G+A.W+A.F*!z,{Symbol:x});for(var $="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),ee=0;$.length>ee;)p($[ee++]);for(var te=T(p.store),ne=0;te.length>ne;)d(te[ne++]);A(A.S+A.F*!z,"Symbol",{for:function(e){return o(j,e+="")?j[e]:j[e]=x(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");for(var t in j)if(j[t]===e)return t},useSetter:function(){U=!0},useSimple:function(){U=!1}}),A(A.S+A.F*!z,"Object",{create:function(e,t){return void 0===t?I(e):J(I(e),t)},defineProperty:Z,defineProperties:J,getOwnPropertyDescriptor:K,getOwnPropertyNames:X,getOwnPropertySymbols:q}),Q&&A(A.S+A.F*(!z||u(function(){var e=x();return"[null]"!=S([e])||"{}"!=S({a:e})||"{}"!=S(Object(e))})),"JSON",{stringify:function(e){for(var t,n,r=[e],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=t=r[1],(E(t)||void 0!==e)&&!H(e))return h(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!H(t))return t}),r[1]=t,S.apply(Q,r)}}),x.prototype[Y]||n(14)(x.prototype,Y,x.prototype.valueOf),c(x,"Symbol"),c(Math,"Math",!0),c(r.JSON,"JSON",!0)},function(e,t,n){var r=n(4),o=n(28),i=n(31),A=n(124),a=n(11).f;e.exports=function(e){var t=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==e.charAt(0)||e in t||a(t,e,{value:A.f(e)})}},function(e,t,n){var r=n(34),o=n(61),i=n(52);e.exports=function(e){var t=r(e),n=o.f;if(n)for(var A,a=n(e),s=i.f,u=0;a.length>u;)s.call(e,A=a[u++])&&t.push(A);return t}},function(e,t,n){var r=n(2),o=n(25).onFreeze;n(18)("freeze",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(2),o=n(25).onFreeze;n(18)("seal",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(2),o=n(25).onFreeze;n(18)("preventExtensions",function(e){return function(t){return e&&r(t)?e(o(t)):t}})},function(e,t,n){var r=n(2);n(18)("isFrozen",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(2);n(18)("isSealed",function(e){return function(t){return!r(t)||!!e&&e(t)}})},function(e,t,n){var r=n(2);n(18)("isExtensible",function(e){return function(t){return!!r(t)&&(!e||e(t))}})},function(e,t,n){var r=n(16),o=n(22).f;n(18)("getOwnPropertyDescriptor",function(){return function(e,t){return o(r(e),t)}})},function(e,t,n){var r=n(17),o=n(44);n(18)("getPrototypeOf",function(){return function(e){return o(r(e))}})},function(e,t,n){var r=n(17),o=n(34);n(18)("keys",function(){return function(e){return o(r(e))}})},function(e,t,n){n(18)("getOwnPropertyNames",function(){return n(125).f})},function(e,t,n){var r=n(0);r(r.S+r.F,"Object",{assign:n(119)})},function(e,t,n){var r=n(0);r(r.S,"Object",{is:n(126)})},function(e,t,n){var r=n(0);r(r.S,"Object",{setPrototypeOf:n(97).set})},function(e,t,n){var r=n(11).f,o=Function.prototype,i=/^\s*function ([^ (]*)/;"name"in o||n(12)&&r(o,"name",{configurable:!0,get:function(){try{return(""+this).match(i)[1]}catch(e){return""}}})},function(e,t,n){var r=n(0),o=n(16),i=n(10);r(r.S,"String",{raw:function(e){for(var t=o(e.raw),n=i(t.length),r=arguments.length,A=[],a=0;n>a;)A.push(String(t[a++])),aA;){if(t=+arguments[A++],o(t,1114111)!==t)throw RangeError(t+" is not a valid code point");n.push(t<65536?i(t):i(55296+((t-=65536)>>10),t%1024+56320))}return n.join("")}})},function(e,t,n){"use strict";var r=n(0),o=n(127)(!1);r(r.P,"String",{codePointAt:function(e){return o(this,e)}})},function(e,t,n){var r=n(0);r(r.P,"String",{repeat:n(128)})},function(e,t,n){"use strict";var r=n(0),o=n(10),i=n(99),A="".startsWith;r(r.P+r.F*n(100)("startsWith"),"String",{startsWith:function(e){var t=i(this,e,"startsWith"),n=o(Math.min(arguments.length>1?arguments[1]:void 0,t.length)),r=String(e);return A?A.call(t,r,n):t.slice(n,n+r.length)===r}})},function(e,t,n){"use strict";var r=n(0),o=n(10),i=n(99),A="".endsWith;r(r.P+r.F*n(100)("endsWith"),"String",{endsWith:function(e){var t=i(this,e,"endsWith"),n=arguments.length>1?arguments[1]:void 0,r=o(t.length),a=void 0===n?r:Math.min(o(n),r),s=String(e);return A?A.call(t,s,a):t.slice(a-s.length,a)===s}})},function(e,t,n){"use strict";var r=n(0),o=n(99);r(r.P+r.F*n(100)("includes"),"String",{includes:function(e){return!!~o(this,e,"includes").indexOf(e,arguments.length>1?arguments[1]:void 0)}})},function(e,t,n){n(12)&&"g"!=/./g.flags&&n(11).f(RegExp.prototype,"flags",{configurable:!0,get:n(130)})},function(e,t,n){"use strict";var r=n(3),o=n(10),i=n(101),A=n(63);n(64)("match",1,function(e,t,n,a){return[function(n){var r=e(this),o=void 0==n?void 0:n[t];return void 0!==o?o.call(n,r):new RegExp(n)[t](String(r))},function(e){var t=a(n,e,this);if(t.done)return t.value;var s=r(e),u=String(this);if(!s.global)return A(s,u);var l=s.unicode;s.lastIndex=0;for(var c,f=[],p=0;null!==(c=A(s,u));){var g=String(c[0]);f[p]=g,""===g&&(s.lastIndex=i(u,o(s.lastIndex),l)),p++}return 0===p?null:f}]})},function(e,t,n){"use strict";var r=n(102);n(0)({target:"RegExp",proto:!0,forced:r!==/./.exec},{exec:r})},function(e,t,n){"use strict";var r=n(3),o=n(17),i=n(10),A=n(24),a=n(101),s=n(63),u=Math.max,l=Math.min,c=Math.floor,f=/\$([$&`']|\d\d?|<[^>]*>)/g,p=/\$([$&`']|\d\d?)/g,g=function(e){return void 0===e?e:String(e)};n(64)("replace",2,function(e,t,n,d){return[function(r,o){var i=e(this),A=void 0==r?void 0:r[t];return void 0!==A?A.call(r,i,o):n.call(String(i),r,o)},function(e,t){var o=d(n,e,this,t);if(o.done)return o.value;var c=r(e),f=String(this),p="function"==typeof t;p||(t=String(t));var h=c.global;if(h){var v=c.unicode;c.lastIndex=0}for(var E=[];;){var M=s(c,f);if(null===M)break;if(E.push(M),!h)break;""===String(M[0])&&(c.lastIndex=a(f,i(c.lastIndex),v))}for(var w="",m=0,I=0;I=m&&(w+=f.slice(m,B)+L,m=B+b.length)}return w+f.slice(m)}];function y(e,t,r,i,A,a){var s=r+e.length,u=i.length,l=p;return void 0!==A&&(A=o(A),l=f),n.call(a,l,function(n,o){var a;switch(o.charAt(0)){case"$":return"$";case"&":return e;case"`":return t.slice(0,r);case"'":return t.slice(s);case"<":a=A[o.slice(1,-1)];break;default:var l=+o;if(0===l)return n;if(l>u){var f=c(l/10);return 0===f?n:f<=u?void 0===i[f-1]?o.charAt(1):i[f-1]+o.charAt(1):n}a=i[l-1]}return void 0===a?"":a})}})},function(e,t,n){"use strict";var r=n(129),o=n(3),i=n(55),A=n(101),a=n(10),s=n(63),u=n(102),l=n(9),c=Math.min,f=[].push,p=!l(function(){RegExp(4294967295,"y")});n(64)("split",2,function(e,t,n,l){var g;return g="c"=="abbc".split(/(b)*/)[1]||4!="test".split(/(?:)/,-1).length||2!="ab".split(/(?:ab)*/).length||4!=".".split(/(.?)(.?)/).length||".".split(/()()/).length>1||"".split(/.?/).length?function(e,t){var o=String(this);if(void 0===e&&0===t)return[];if(!r(e))return n.call(o,e,t);for(var i,A,a,s=[],l=(e.ignoreCase?"i":"")+(e.multiline?"m":"")+(e.unicode?"u":"")+(e.sticky?"y":""),c=0,p=void 0===t?4294967295:t>>>0,g=new RegExp(e.source,l+"g");(i=u.call(g,o))&&!((A=g.lastIndex)>c&&(s.push(o.slice(c,i.index)),i.length>1&&i.index=p));)g.lastIndex===i.index&&g.lastIndex++;return c===o.length?!a&&g.test("")||s.push(""):s.push(o.slice(c)),s.length>p?s.slice(0,p):s}:"0".split(void 0,0).length?function(e,t){return void 0===e&&0===t?[]:n.call(this,e,t)}:n,[function(n,r){var o=e(this),i=void 0==n?void 0:n[t];return void 0!==i?i.call(n,o,r):g.call(String(o),n,r)},function(e,t){var r=l(g,e,this,t,g!==n);if(r.done)return r.value;var u=o(e),f=String(this),d=i(u,RegExp),y=u.unicode,h=(u.ignoreCase?"i":"")+(u.multiline?"m":"")+(u.unicode?"u":"")+(p?"y":"g"),v=new d(p?u:"^(?:"+u.source+")",h),E=void 0===t?4294967295:t>>>0;if(0===E)return[];if(0===f.length)return null===s(v,f)?[f]:[];for(var M=0,w=0,m=[];w1?arguments[1]:void 0,y=void 0!==d,h=0,v=l(f);if(y&&(d=r(d,g>2?arguments[2]:void 0,2)),void 0==v||p==Array&&a(v))for(n=new p(t=s(f.length));t>h;h++)u(n,h,y?d(f[h],h):f[h]);else for(c=v.call(f),n=new p;!(o=c.next()).done;h++)u(n,h,y?A(c,d,[o.value,h],!0):o.value);return n.length=h,n}})},function(e,t,n){"use strict";var r=n(0),o=n(103);r(r.S+r.F*n(9)(function(){function e(){}return!(Array.of.call(e)instanceof e)}),"Array",{of:function(){for(var e=0,t=arguments.length,n=new("function"==typeof this?this:Array)(t);t>e;)o(n,e,arguments[e++]);return n.length=t,n}})},function(e,t,n){var r=n(0);r(r.P,"Array",{copyWithin:n(116)}),n(45)("copyWithin")},function(e,t,n){"use strict";var r=n(0),o=n(51)(5),i=!0;"find"in[]&&Array(1).find(function(){i=!1}),r(r.P+r.F*i,"Array",{find:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(45)("find")},function(e,t,n){"use strict";var r=n(0),o=n(51)(6),i="findIndex",A=!0;i in[]&&Array(1)[i](function(){A=!1}),r(r.P+r.F*A,"Array",{findIndex:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(45)(i)},function(e,t,n){var r=n(0);r(r.P,"Array",{fill:n(93)}),n(45)("fill")},function(e,t,n){var r=n(0),o=n(4).isFinite;r(r.S,"Number",{isFinite:function(e){return"number"==typeof e&&o(e)}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isInteger:n(131)})},function(e,t,n){var r=n(0),o=n(131),i=Math.abs;r(r.S,"Number",{isSafeInteger:function(e){return o(e)&&i(e)<=9007199254740991}})},function(e,t,n){var r=n(0);r(r.S,"Number",{isNaN:function(e){return e!=e}})},function(e,t,n){var r=n(0);r(r.S,"Number",{EPSILON:Math.pow(2,-52)})},function(e,t,n){var r=n(0);r(r.S,"Number",{MIN_SAFE_INTEGER:-9007199254740991})},function(e,t,n){var r=n(0);r(r.S,"Number",{MAX_SAFE_INTEGER:9007199254740991})},function(e,t,n){var r=n(0),o=n(132),i=Math.sqrt,A=Math.acosh;r(r.S+r.F*!(A&&710==Math.floor(A(Number.MAX_VALUE))&&A(1/0)==1/0),"Math",{acosh:function(e){return(e=+e)<1?NaN:e>94906265.62425156?Math.log(e)+Math.LN2:o(e-1+i(e-1)*i(e+1))}})},function(e,t,n){var r=n(0),o=Math.asinh;r(r.S+r.F*!(o&&1/o(0)>0),"Math",{asinh:function e(t){return isFinite(t=+t)&&0!=t?t<0?-e(-t):Math.log(t+Math.sqrt(t*t+1)):t}})},function(e,t,n){var r=n(0),o=Math.atanh;r(r.S+r.F*!(o&&1/o(-0)<0),"Math",{atanh:function(e){return 0==(e=+e)?e:Math.log((1+e)/(1-e))/2}})},function(e,t,n){var r=n(0),o=n(104);r(r.S,"Math",{cbrt:function(e){return o(e=+e)*Math.pow(Math.abs(e),1/3)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{clz32:function(e){return(e>>>=0)?31-Math.floor(Math.log(e+.5)*Math.LOG2E):32}})},function(e,t,n){var r=n(0),o=Math.exp;r(r.S,"Math",{cosh:function(e){return(o(e=+e)+o(-e))/2}})},function(e,t,n){var r=n(0),o=n(105);r(r.S+r.F*(o!=Math.expm1),"Math",{expm1:o})},function(e,t,n){var r=n(0);r(r.S,"Math",{fround:n(283)})},function(e,t,n){var r=n(104),o=Math.pow,i=o(2,-52),A=o(2,-23),a=o(2,127)*(2-A),s=o(2,-126);e.exports=Math.fround||function(e){var t,n,o=Math.abs(e),u=r(e);return oa||n!=n?u*(1/0):u*n}},function(e,t,n){var r=n(0),o=Math.abs;r(r.S,"Math",{hypot:function(e,t){for(var n,r,i=0,A=0,a=arguments.length,s=0;A0?(r=n/s)*r:n;return s===1/0?1/0:s*Math.sqrt(i)}})},function(e,t,n){var r=n(0),o=Math.imul;r(r.S+r.F*n(9)(function(){return-5!=o(4294967295,5)||2!=o.length}),"Math",{imul:function(e,t){var n=+e,r=+t,o=65535&n,i=65535&r;return 0|o*i+((65535&n>>>16)*i+o*(65535&r>>>16)<<16>>>0)}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log1p:n(132)})},function(e,t,n){var r=n(0);r(r.S,"Math",{log10:function(e){return Math.log(e)*Math.LOG10E}})},function(e,t,n){var r=n(0);r(r.S,"Math",{log2:function(e){return Math.log(e)/Math.LN2}})},function(e,t,n){var r=n(0);r(r.S,"Math",{sign:n(104)})},function(e,t,n){var r=n(0),o=n(105),i=Math.exp;r(r.S+r.F*n(9)(function(){return-2e-17!=!Math.sinh(-2e-17)}),"Math",{sinh:function(e){return Math.abs(e=+e)<1?(o(e)-o(-e))/2:(i(e-1)-i(-e-1))*(Math.E/2)}})},function(e,t,n){var r=n(0),o=n(105),i=Math.exp;r(r.S,"Math",{tanh:function(e){var t=o(e=+e),n=o(-e);return t==1/0?1:n==1/0?-1:(t-n)/(i(e)+i(-e))}})},function(e,t,n){var r=n(0);r(r.S,"Math",{trunc:function(e){return(e>0?Math.floor:Math.ceil)(e)}})},function(e,t,n){"use strict";var r=n(0),o=n(90)(!0);r(r.P,"Array",{includes:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0)}}),n(45)("includes")},function(e,t,n){var r=n(0),o=n(133)(!1);r(r.S,"Object",{values:function(e){return o(e)}})},function(e,t,n){var r=n(0),o=n(133)(!0);r(r.S,"Object",{entries:function(e){return o(e)}})},function(e,t,n){var r=n(0),o=n(122),i=n(16),A=n(22),a=n(103);r(r.S,"Object",{getOwnPropertyDescriptors:function(e){for(var t,n,r=i(e),s=A.f,u=o(r),l={},c=0;u.length>c;)void 0!==(n=s(r,t=u[c++]))&&a(l,t,n);return l}})},function(e,t,n){"use strict";var r=n(0),o=n(134),i=n(62),A=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*A,"String",{padStart:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!0)}})},function(e,t,n){"use strict";var r=n(0),o=n(134),i=n(62),A=/Version\/10\.\d+(\.\d+)?( Mobile\/\w+)? Safari\//.test(i);r(r.P+r.F*A,"String",{padEnd:function(e){return o(this,e,arguments.length>1?arguments[1]:void 0,!1)}})},function(e,t,n){var r=n(4),o=n(0),i=n(62),A=[].slice,a=/MSIE .\./.test(i),s=function(e){return function(t,n){var r=arguments.length>2,o=!!r&&A.call(arguments,2);return e(r?function(){("function"==typeof t?t:Function(t)).apply(this,o)}:t,n)}};o(o.G+o.B+o.F*a,{setTimeout:s(r.setTimeout),setInterval:s(r.setInterval)})},function(e,t,n){var r=n(0),o=n(98);r(r.G+r.B,{setImmediate:o.set,clearImmediate:o.clear})},function(e,t,n){for(var r=n(96),o=n(34),i=n(23),A=n(4),a=n(14),s=n(43),u=n(8),l=u("iterator"),c=u("toStringTag"),f=s.Array,p={CSSRuleList:!0,CSSStyleDeclaration:!1,CSSValueList:!1,ClientRectList:!1,DOMRectList:!1,DOMStringList:!1,DOMTokenList:!0,DataTransferItemList:!1,FileList:!1,HTMLAllCollection:!1,HTMLCollection:!1,HTMLFormElement:!1,HTMLSelectElement:!1,MediaList:!0,MimeTypeArray:!1,NamedNodeMap:!1,NodeList:!0,PaintRequestList:!1,Plugin:!1,PluginArray:!1,SVGLengthList:!1,SVGNumberList:!1,SVGPathSegList:!1,SVGPointList:!1,SVGStringList:!1,SVGTransformList:!1,SourceBufferList:!1,StyleSheetList:!0,TextTrackCueList:!1,TextTrackList:!1,TouchList:!1},g=o(p),d=0;d=0;--i){var A=this.tryEntries[i],a=A.completion;if("root"===A.tryLoc)return r("end");if(A.tryLoc<=this.prev){var s=o.call(A,"catchLoc"),u=o.call(A,"finallyLoc");if(s&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&o.call(r,"finallyLoc")&&this.prev=0;--t){var n=this.tryEntries[t];if(n.finallyLoc===e)return this.complete(n.completion,n.afterLoc),D(n),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var n=this.tryEntries[t];if(n.tryLoc===e){var r=n.completion;if("throw"===r.type){var o=r.arg;D(n)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,t,r){return this.delegate={iterator:x(e),resultName:t,nextLoc:r},"next"===this.method&&(this.arg=n),d}}}function M(e,t,n,r){var o=t&&t.prototype instanceof m?t:m,i=Object.create(o.prototype),A=new L(r||[]);return i._invoke=function(e,t,n){var r=c;return function(o,i){if(r===p)throw new Error("Generator is already running");if(r===g){if("throw"===o)throw i;return Q()}for(n.method=o,n.arg=i;;){var A=n.delegate;if(A){var a=T(A,n);if(a){if(a===d)continue;return a}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(r===c)throw r=g,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);r=p;var s=w(e,t,n);if("normal"===s.type){if(r=n.done?g:f,s.arg===d)continue;return{value:s.arg,done:n.done}}"throw"===s.type&&(r=g,n.method="throw",n.arg=s.arg)}}}(e,n,A),i}function w(e,t,n){try{return{type:"normal",arg:e.call(t,n)}}catch(e){return{type:"throw",arg:e}}}function m(){}function I(){}function b(){}function B(e){["next","throw","return"].forEach(function(t){e[t]=function(e){return this._invoke(t,e)}})}function C(e){var t;this._invoke=function(n,r){function i(){return new Promise(function(t,i){!function t(n,r,i,A){var a=w(e[n],e,r);if("throw"!==a.type){var s=a.arg,u=s.value;return u&&"object"==typeof u&&o.call(u,"__await")?Promise.resolve(u.__await).then(function(e){t("next",e,i,A)},function(e){t("throw",e,i,A)}):Promise.resolve(u).then(function(e){s.value=e,i(s)},A)}A(a.arg)}(n,r,t,i)})}return t=t?t.then(i,i):i()}}function T(e,t){var r=e.iterator[t.method];if(r===n){if(t.delegate=null,"throw"===t.method){if(e.iterator.return&&(t.method="return",t.arg=n,T(e,t),"throw"===t.method))return d;t.method="throw",t.arg=new TypeError("The iterator does not provide a 'throw' method")}return d}var o=w(r,e.iterator,t.arg);if("throw"===o.type)return t.method="throw",t.arg=o.arg,t.delegate=null,d;var i=o.arg;return i?i.done?(t[e.resultName]=i.value,t.next=e.nextLoc,"return"!==t.method&&(t.method="next",t.arg=n),t.delegate=null,d):i:(t.method="throw",t.arg=new TypeError("iterator result is not an object"),t.delegate=null,d)}function N(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 D(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function L(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(N,this),this.reset(!0)}function x(e){if(e){var t=e[A];if(t)return t.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var r=-1,i=function t(){for(;++r0&&y.creatives[0].mediaFiles&&y.creatives[0].mediaFiles.length>0&&y.creatives[0].mediaFiles[0].fileURL&&(r=y.creatives[0].mediaFiles[0].fileURL,OvenPlayerConsole.log("VAST : media url : ",r)),d.src=r,d.volume=e.volume,d.muted=e.muted}).catch(function(e){E(e)}),s())})):setTimeout(v,100)}()})},s.pause=function(){d.pause()},s.videoEndedCallback=function(e){e(),l.isVideoEnded=!0},s.destroy=function(){u&&(u.destroy(),u=null),T=null,f=null,c.remove()},s}},334:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});t.TEMP_VIDEO_URL="data:video/mp4;base64, AAAAHGZ0eXBNNFYgAAACAGlzb21pc28yYXZjMQAAAAhmcmVlAAAGF21kYXTeBAAAbGliZmFhYyAxLjI4AABCAJMgBDIARwAAArEGBf//rdxF6b3m2Ui3lizYINkj7u94MjY0IC0gY29yZSAxNDIgcjIgOTU2YzhkOCAtIEguMjY0L01QRUctNCBBVkMgY29kZWMgLSBDb3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QAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAAAJAAAACQAAAAkAAACMc3RjbwAAAAAAAAAfAAAALAAAA1UAAANyAAADhgAAA6IAAAO+AAAD0QAAA+0AAAQAAAAEHAAABC8AAARLAAAEZwAABHoAAASWAAAEqQAABMUAAATYAAAE9AAABRAAAAUjAAAFPwAABVIAAAVuAAAFgQAABZ0AAAWwAAAFzAAABegAAAX7AAAGFwAAAGJ1ZHRhAAAAWm1ldGEAAAAAAAAAIWhkbHIAAAAAAAAAAG1kaXJhcHBsAAAAAAAAAAAAAAAALWlsc3QAAAAlqXRvbwAAAB1kYXRhAAAAAQAAAABMYXZmNTUuMzMuMTAw"},381:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=A(1);t.default=function(e,t,A,i){var r={},a={},o=null,s=google.ima.AdEvent.Type.AD_BUFFERING,l=google.ima.AdEvent.Type.CONTENT_PAUSE_REQUESTED,u=google.ima.AdEvent.Type.CONTENT_RESUME_REQUESTED,c=google.ima.AdErrorEvent.Type.AD_ERROR,d=google.ima.AdEvent.Type.ALL_ADS_COMPLETED,h=google.ima.AdEvent.Type.CLICK,p=google.ima.AdEvent.Type.SKIPPED,g=google.ima.AdEvent.Type.COMPLETE,v=google.ima.AdEvent.Type.FIRST_QUARTILE,m=google.ima.AdEvent.Type.LOADED,f=google.ima.AdEvent.Type.MIDPOINT,T=google.ima.AdEvent.Type.PAUSED,y=google.ima.AdEvent.Type.RESUMED,E=google.ima.AdEvent.Type.STARTED,k=google.ima.AdEvent.Type.USER_CLOSE,C=google.ima.AdEvent.Type.THIRD_QUARTILE,R=!1,L=null;return OvenPlayerConsole.log("IMA : Listener Created"),a[l]=function(e){OvenPlayerConsole.log("IMA LISTENER : ",e.type),A.started&&(A.active=!0,t.pause())},a[u]=function(e){OvenPlayerConsole.log("IMA LISTENER : ",e.type),A.active=!1,!A.started||0!==t.getPosition()&&A.isVideoEnded||t.play()},a[c]=function(e){R=!0,i(e)},a[d]=function(e){OvenPlayerConsole.log("IMA LISTENER : ",e.type),R=!0,A.isVideoEnded&&t.setState(n.STATE_COMPLETE)},a[h]=function(e){OvenPlayerConsole.log(e.type),t.trigger(n.PLAYER_CLICKED,{type:n.PLAYER_AD_CLICK})},a[v]=function(e){OvenPlayerConsole.log(e.type)},a[s]=function(e){OvenPlayerConsole.log("AD_BUFFERING",e.type)},a[m]=function(A){OvenPlayerConsole.log(A.type);var i=e.getRemainingTime(),r=A.getAd();t.trigger(n.STATE_AD_LOADED,{remaining:i,isLinear:r.isLinear()})},a[f]=function(e){OvenPlayerConsole.log(e.type)},a[T]=function(e){OvenPlayerConsole.log(e.type),t.setState(n.STATE_AD_PAUSED)},a[y]=function(e){OvenPlayerConsole.log(e.type),t.setState(n.STATE_AD_PLAYING)},a[E]=function(i){OvenPlayerConsole.log(i.type);var r=i.getAd();L=r;var a={isLinear:r.isLinear(),duration:r.getDuration(),skipTimeOffset:r.getSkipTimeOffset()};t.trigger(n.AD_CHANGED,a),r.isLinear()?(t.setState(n.STATE_AD_PLAYING),A.started=!0,o=setInterval(function(){var A=e.getRemainingTime(),i=r.getDuration();t.trigger(n.AD_TIME,{duration:i,skipTimeOffset:r.getSkipTimeOffset(),remaining:A,position:i-A,skippable:e.getAdSkippableState()})},300)):t.play()},a[g]=function(e){OvenPlayerConsole.log(e.type),e.getAd().isLinear()&&clearInterval(o),t.trigger(n.STATE_AD_COMPLETE)},a[p]=function(e){OvenPlayerConsole.log(e.type),e.getAd().isLinear()&&clearInterval(o),t.trigger(n.STATE_AD_COMPLETE)},a[k]=function(e){OvenPlayerConsole.log(e.type),e.getAd().isLinear()&&clearInterval(o),t.trigger(n.STATE_AD_COMPLETE)},a[C]=function(e){OvenPlayerConsole.log(e.type)},Object.keys(a).forEach(function(t){e.removeEventListener(t,a[t]),e.addEventListener(t,a[t])}),r.setAdCompleteCallback=function(e){},r.isAllAdComplete=function(){return R},r.isLinearAd=function(){return!L||L.isLinear()},r.destroy=function(){OvenPlayerConsole.log("IMAEventListener : destroy()"),Object.keys(a).forEach(function(t){e.removeEventListener(t,a[t])})},r}},382:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=Object.assign||function(e){for(var t=1;t0&&void 0!==arguments[0]?arguments[0]:{};o(this,e),this.id=t.id||null,this.adId=t.adId||null,this.sequence=t.sequence||null,this.apiFramework=t.apiFramework||null,this.trackingEvents={}},h=function(e){function t(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,A))).type="companion",e.variations=[],e}return a(t,d),t}();function p(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},A=[];for(var n in t.ASSETURI&&(t.ASSETURI=g(t.ASSETURI)),t.CONTENTPLAYHEAD&&(t.CONTENTPLAYHEAD=g(t.CONTENTPLAYHEAD)),t.ERRORCODE&&!/^[0-9]{3}$/.test(t.ERRORCODE)&&(t.ERRORCODE=900),t.CACHEBUSTING=v(Math.round(1e8*Math.random()).toString()),t.TIMESTAMP=g((new Date).toISOString()),t.RANDOM=t.random=t.CACHEBUSTING,e){var i=e[n];if("string"==typeof i){for(var r in t){var a=t[r],o="["+r+"]",s="%%"+r+"%%";i=(i=i.replace(o,a)).replace(s,a)}A.push(i)}}return A}function g(e){return encodeURIComponent(e).replace(/[!'()*]/g,function(e){return"%"+e.charCodeAt(0).toString(16)})}function v(e){return e.length<8?m(0,8-e.length,!1).map(function(e){return"0"}).join("")+e:e}function m(e,t,A){for(var n=[],i=er;i?a++:a--)n.push(a);return n}var f={track:function(e,t){p(e,t).forEach(function(e){"undefined"!=typeof window&&null!==window&&((new Image).src=e)})},resolveURLTemplates:p,encodeURIComponentRFC3986:g,leftpad:v,range:m,isNumeric:function(e){return!isNaN(parseFloat(e))&&isFinite(e)},flatten:function e(t){return t.reduce(function(t,A){return t.concat(Array.isArray(A)?e(A):A)},[])}};var T={childByName:function(e,t){var A=e.childNodes;for(var n in A){var i=A[n];if(i.nodeName===t)return i}},childrenByName:function(e,t){var A=[],n=e.childNodes;for(var i in n){var r=n[i];r.nodeName===t&&A.push(r)}return A},resolveVastAdTagURI:function(e,t){return t?0===e.indexOf("//")?""+location.protocol+e:-1===e.indexOf("://")?t.slice(0,t.lastIndexOf("/"))+"/"+e:e:e},parseBoolean:function(e){return-1!==["true","TRUE","1"].indexOf(e)},parseNodeText:function(e){return e&&(e.textContent||e.text||"").trim()},copyNodeAttribute:function(e,t,A){var n=t.getAttribute(e);n&&A.setAttribute(e,n)},parseDuration:function(e){if(null==e)return-1;if(f.isNumeric(e))return parseInt(e);var t=e.split(":");if(3!==t.length)return-1;var A=t[2].split("."),n=parseInt(A[0]);2===A.length&&(n+=parseFloat("0."+A[1]));var i=parseInt(60*t[1]),r=parseInt(60*t[0]*60);return isNaN(r)||isNaN(i)||isNaN(n)||i>3600||n>60?-1:r+i+n},splitVAST:function(e){var t=[],A=null;return e.forEach(function(n,i){if(n.sequence&&(n.sequence=parseInt(n.sequence,10)),n.sequence>1){var r=e[i-1];if(r&&r.sequence===n.sequence-1)return void(A&&A.push(n));delete n.sequence}A=[n],t.push(A)}),t},mergeWrapperAdData:function(e,t){e.errorURLTemplates=t.errorURLTemplates.concat(e.errorURLTemplates),e.impressionURLTemplates=t.impressionURLTemplates.concat(e.impressionURLTemplates),e.extensions=t.extensions.concat(e.extensions),e.creatives.forEach(function(e){if(t.trackingEvents&&t.trackingEvents[e.type])for(var A in t.trackingEvents[e.type]){var n=t.trackingEvents[e.type][A];e.trackingEvents[A]||(e.trackingEvents[A]=[]),e.trackingEvents[A]=e.trackingEvents[A].concat(n)}}),t.videoClickTrackingURLTemplates&&t.videoClickTrackingURLTemplates.length&&e.creatives.forEach(function(e){"linear"===e.type&&(e.videoClickTrackingURLTemplates=e.videoClickTrackingURLTemplates.concat(t.videoClickTrackingURLTemplates))}),t.videoCustomClickURLTemplates&&t.videoCustomClickURLTemplates.length&&e.creatives.forEach(function(e){"linear"===e.type&&(e.videoCustomClickURLTemplates=e.videoCustomClickURLTemplates.concat(t.videoCustomClickURLTemplates))}),t.videoClickThroughURLTemplate&&e.creatives.forEach(function(e){"linear"===e.type&&null==e.videoClickThroughURLTemplate&&(e.videoClickThroughURLTemplate=t.videoClickThroughURLTemplate)})}};function y(e,t){var A=new h(t);return T.childrenByName(e,"Companion").forEach(function(e){var t=new c;t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.companionClickTrackingURLTemplates=[],T.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=T.parseNodeText(e)}),T.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=T.parseNodeText(e)}),T.childrenByName(e,"StaticResource").forEach(function(A){t.type=A.getAttribute("creativeType")||0,T.childrenByName(e,"AltText").forEach(function(e){t.altText=T.parseNodeText(e)}),t.staticResource=T.parseNodeText(A)}),T.childrenByName(e,"TrackingEvents").forEach(function(e){T.childrenByName(e,"Tracking").forEach(function(e){var A=e.getAttribute("event"),n=T.parseNodeText(e);A&&n&&(null==t.trackingEvents[A]&&(t.trackingEvents[A]=[]),t.trackingEvents[A].push(n))})}),T.childrenByName(e,"CompanionClickTracking").forEach(function(e){t.companionClickTrackingURLTemplates.push(T.parseNodeText(e))}),t.companionClickThroughURLTemplate=T.parseNodeText(T.childByName(e,"CompanionClickThrough")),t.companionClickTrackingURLTemplate=T.parseNodeText(T.childByName(e,"CompanionClickTracking")),A.variations.push(t)}),A}var E=function(e){function t(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,A))).type="linear",e.duration=0,e.skipDelay=null,e.mediaFiles=[],e.videoClickThroughURLTemplate=null,e.videoClickTrackingURLTemplates=[],e.videoCustomClickURLTemplates=[],e.adParameters=null,e.icons=[],e}return a(t,d),t}(),k=function e(){o(this,e),this.program=null,this.height=0,this.width=0,this.xPosition=0,this.yPosition=0,this.apiFramework=null,this.offset=null,this.duration=0,this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.iconClickThroughURLTemplate=null,this.iconClickTrackingURLTemplates=[],this.iconViewTrackingURLTemplate=null},C=function e(){o(this,e),this.id=null,this.fileURL=null,this.deliveryType="progressive",this.mimeType=null,this.codec=null,this.bitrate=0,this.minBitrate=0,this.maxBitrate=0,this.width=0,this.height=0,this.apiFramework=null,this.scalable=null,this.maintainAspectRatio=null};function R(e,t){var A=void 0,n=new E(t);n.duration=T.parseDuration(T.parseNodeText(T.childByName(e,"Duration")));var i=e.getAttribute("skipoffset");if(null==i)n.skipDelay=null;else if("%"===i.charAt(i.length-1)&&-1!==n.duration){var r=parseInt(i,10);n.skipDelay=n.duration*(r/100)}else n.skipDelay=T.parseDuration(i);var a=T.childByName(e,"VideoClicks");a&&(n.videoClickThroughURLTemplate=T.parseNodeText(T.childByName(a,"ClickThrough")),T.childrenByName(a,"ClickTracking").forEach(function(e){n.videoClickTrackingURLTemplates.push(T.parseNodeText(e))}),T.childrenByName(a,"CustomClick").forEach(function(e){n.videoCustomClickURLTemplates.push(T.parseNodeText(e))}));var o=T.childByName(e,"AdParameters");o&&(n.adParameters=T.parseNodeText(o)),T.childrenByName(e,"TrackingEvents").forEach(function(e){T.childrenByName(e,"Tracking").forEach(function(e){var t=e.getAttribute("event"),i=T.parseNodeText(e);if(t&&i){if("progress"===t){if(!(A=e.getAttribute("offset")))return;t="%"===A.charAt(A.length-1)?"progress-"+A:"progress-"+Math.round(T.parseDuration(A))}null==n.trackingEvents[t]&&(n.trackingEvents[t]=[]),n.trackingEvents[t].push(i)}})}),T.childrenByName(e,"MediaFiles").forEach(function(e){T.childrenByName(e,"MediaFile").forEach(function(e){var t=new C;t.id=e.getAttribute("id"),t.fileURL=T.parseNodeText(e),t.deliveryType=e.getAttribute("delivery"),t.codec=e.getAttribute("codec"),t.mimeType=e.getAttribute("type"),t.apiFramework=e.getAttribute("apiFramework"),t.bitrate=parseInt(e.getAttribute("bitrate")||0),t.minBitrate=parseInt(e.getAttribute("minBitrate")||0),t.maxBitrate=parseInt(e.getAttribute("maxBitrate")||0),t.width=parseInt(e.getAttribute("width")||0),t.height=parseInt(e.getAttribute("height")||0);var A=e.getAttribute("scalable");A&&"string"==typeof A&&("true"===(A=A.toLowerCase())?t.scalable=!0:"false"===A&&(t.scalable=!1));var i=e.getAttribute("maintainAspectRatio");i&&"string"==typeof i&&("true"===(i=i.toLowerCase())?t.maintainAspectRatio=!0:"false"===i&&(t.maintainAspectRatio=!1)),n.mediaFiles.push(t)})});var s=T.childByName(e,"Icons");return s&&T.childrenByName(s,"Icon").forEach(function(e){var t=new k;t.program=e.getAttribute("program"),t.height=parseInt(e.getAttribute("height")||0),t.width=parseInt(e.getAttribute("width")||0),t.xPosition=function(e){return-1!==["left","right"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("xPosition")),t.yPosition=function(e){return-1!==["top","bottom"].indexOf(e)?e:parseInt(e||0)}(e.getAttribute("yPosition")),t.apiFramework=e.getAttribute("apiFramework"),t.offset=T.parseDuration(e.getAttribute("offset")),t.duration=T.parseDuration(e.getAttribute("duration")),T.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=T.parseNodeText(e)}),T.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=T.parseNodeText(e)}),T.childrenByName(e,"StaticResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=T.parseNodeText(e)});var A=T.childByName(e,"IconClicks");A&&(t.iconClickThroughURLTemplate=T.parseNodeText(T.childByName(A,"IconClickThrough")),T.childrenByName(A,"IconClickTracking").forEach(function(e){t.iconClickTrackingURLTemplates.push(T.parseNodeText(e))})),t.iconViewTrackingURLTemplate=T.parseNodeText(T.childByName(e,"IconViewTracking")),n.icons.push(t)}),n}var L=function(e){function t(){var e,A=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,A))).type="nonlinear",e.variations=[],e}return a(t,d),t}(),w=function e(){o(this,e),this.id=null,this.width=0,this.height=0,this.expandedWidth=0,this.expandedHeight=0,this.scalable=!0,this.maintainAspectRatio=!0,this.minSuggestedDuration=0,this.apiFramework="static",this.type=null,this.staticResource=null,this.htmlResource=null,this.iframeResource=null,this.nonlinearClickThroughURLTemplate=null,this.nonlinearClickTrackingURLTemplates=[],this.adParameters=null};function b(e,t){var A=new L(t);return T.childrenByName(e,"TrackingEvents").forEach(function(e){var t=void 0,n=void 0;T.childrenByName(e,"Tracking").forEach(function(e){t=e.getAttribute("event"),n=T.parseNodeText(e),t&&n&&(null==A.trackingEvents[t]&&(A.trackingEvents[t]=[]),A.trackingEvents[t].push(n))})}),T.childrenByName(e,"NonLinear").forEach(function(e){var t=new w;t.id=e.getAttribute("id")||null,t.width=e.getAttribute("width"),t.height=e.getAttribute("height"),t.expandedWidth=e.getAttribute("expandedWidth"),t.expandedHeight=e.getAttribute("expandedHeight"),t.scalable=T.parseBoolean(e.getAttribute("scalable")),t.maintainAspectRatio=T.parseBoolean(e.getAttribute("maintainAspectRatio")),t.minSuggestedDuration=T.parseDuration(e.getAttribute("minSuggestedDuration")),t.apiFramework=e.getAttribute("apiFramework"),T.childrenByName(e,"HTMLResource").forEach(function(e){t.type=e.getAttribute("creativeType")||"text/html",t.htmlResource=T.parseNodeText(e)}),T.childrenByName(e,"IFrameResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.iframeResource=T.parseNodeText(e)}),T.childrenByName(e,"StaticResource").forEach(function(e){t.type=e.getAttribute("creativeType")||0,t.staticResource=T.parseNodeText(e)});var n=T.childByName(e,"AdParameters");n&&(t.adParameters=T.parseNodeText(n)),t.nonlinearClickThroughURLTemplate=T.parseNodeText(T.childByName(e,"NonLinearClickThrough")),T.childrenByName(e,"NonLinearClickTracking").forEach(function(e){t.nonlinearClickTrackingURLTemplates.push(T.parseNodeText(e))}),A.variations.push(t)}),A}function I(e){var t=e.childNodes;for(var A in t){var n=t[A];if(-1!==["Wrapper","InLine"].indexOf(n.nodeName)){if(T.copyNodeAttribute("id",e,n),T.copyNodeAttribute("sequence",e,n),"Wrapper"===n.nodeName)return U(n);if("InLine"===n.nodeName)return N(n)}}}function N(e){var t=e.childNodes,A=new s;for(var n in A.id=e.getAttribute("id")||null,A.sequence=e.getAttribute("sequence")||null,t){var i=t[n];switch(i.nodeName){case"Error":A.errorURLTemplates.push(T.parseNodeText(i));break;case"Impression":A.impressionURLTemplates.push(T.parseNodeText(i));break;case"Creatives":T.childrenByName(i,"Creative").forEach(function(e){var t={id:e.getAttribute("id")||null,adId:O(e),sequence:e.getAttribute("sequence")||null,apiFramework:e.getAttribute("apiFramework")||null};for(var n in e.childNodes){var i=e.childNodes[n];switch(i.nodeName){case"Linear":var r=R(i,t);r&&A.creatives.push(r);break;case"NonLinearAds":var a=b(i,t);a&&A.creatives.push(a);break;case"CompanionAds":var o=y(i,t);o&&A.creatives.push(o)}}});break;case"Extensions":S(A.extensions,T.childrenByName(i,"Extension"));break;case"AdSystem":A.system={value:T.parseNodeText(i),version:i.getAttribute("version")||null};break;case"AdTitle":A.title=T.parseNodeText(i);break;case"Description":A.description=T.parseNodeText(i);break;case"Advertiser":A.advertiser=T.parseNodeText(i);break;case"Pricing":A.pricing={value:T.parseNodeText(i),model:i.getAttribute("model")||null,currency:i.getAttribute("currency")||null};break;case"Survey":A.survey=T.parseNodeText(i)}}return A}function U(e){var t=N(e),A=T.childByName(e,"VASTAdTagURI");if(A?t.nextWrapperURL=T.parseNodeText(A):(A=T.childByName(e,"VASTAdTagURL"))&&(t.nextWrapperURL=T.parseNodeText(T.childByName(A,"URL"))),t.creatives.forEach(function(e){if(-1!==["linear","nonlinear"].indexOf(e.type)){if(e.trackingEvents){t.trackingEvents||(t.trackingEvents={}),t.trackingEvents[e.type]||(t.trackingEvents[e.type]={});var A=function(A){var n=e.trackingEvents[A];t.trackingEvents[e.type][A]||(t.trackingEvents[e.type][A]=[]),n.forEach(function(n){t.trackingEvents[e.type][A].push(n)})};for(var n in e.trackingEvents)A(n)}e.videoClickTrackingURLTemplates&&(t.videoClickTrackingURLTemplates||(t.videoClickTrackingURLTemplates=[]),e.videoClickTrackingURLTemplates.forEach(function(e){t.videoClickTrackingURLTemplates.push(e)})),e.videoClickThroughURLTemplate&&(t.videoClickThroughURLTemplate=e.videoClickThroughURLTemplate),e.videoCustomClickURLTemplates&&(t.videoCustomClickURLTemplates||(t.videoCustomClickURLTemplates=[]),e.videoCustomClickURLTemplates.forEach(function(e){t.videoCustomClickURLTemplates.push(e)}))}}),t.nextWrapperURL)return t}function S(e,t){t.forEach(function(t){var A=new l,n=t.attributes,i=t.childNodes;if(t.attributes)for(var r in n){var a=n[r];a.nodeName&&a.nodeValue&&(A.attributes[a.nodeName]=a.nodeValue)}for(var o in i){var s=i[o],c=T.parseNodeText(s);if("#comment"!==s.nodeName&&""!==c){var d=new u;if(d.name=s.nodeName,d.value=c,s.attributes){var h=s.attributes;for(var p in h){var g=h[p];d.attributes[g.nodeName]=g.nodeValue}}A.children.push(d)}}e.push(A)})}function O(e){return e.getAttribute("AdID")||e.getAttribute("adID")||e.getAttribute("adId")||null}function B(){}function P(){P.init.call(this)}function D(e){return void 0===e._maxListeners?P.defaultMaxListeners:e._maxListeners}function M(e,t,A,n){var i,r,a;if("function"!=typeof A)throw new TypeError('"listener" argument must be a function');if((r=e._events)?(r.newListener&&(e.emit("newListener",t,A.listener?A.listener:A),r=e._events),a=r[t]):(r=e._events=new B,e._eventsCount=0),a){if("function"==typeof a?a=r[t]=n?[A,a]:[a,A]:n?a.unshift(A):a.push(A),!a.warned&&(i=D(e))&&i>0&&a.length>i){a.warned=!0;var o=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+t+" listeners added. Use emitter.setMaxListeners() to increase limit");o.name="MaxListenersExceededWarning",o.emitter=e,o.type=t,o.count=a.length,function(e){"function"==typeof console.warn?console.warn(e):console.log(e)}(o)}}else a=r[t]=A,++e._eventsCount;return e}function _(e,t,A){var n=!1;function i(){e.removeListener(t,i),n||(n=!0,A.apply(e,arguments))}return i.listener=A,i}function x(e){var t=this._events;if(t){var A=t[e];if("function"==typeof A)return 1;if(A)return A.length}return 0}function Q(e,t){for(var A=new Array(t);t--;)A[t]=e[t];return A}B.prototype=Object.create(null),P.EventEmitter=P,P.usingDomains=!1,P.prototype.domain=void 0,P.prototype._events=void 0,P.prototype._maxListeners=void 0,P.defaultMaxListeners=10,P.init=function(){this.domain=null,P.usingDomains&&(!(void 0).active||this instanceof(void 0).Domain||(this.domain=(void 0).active)),this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=new B,this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},P.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||isNaN(e))throw new TypeError('"n" argument must be a positive number');return this._maxListeners=e,this},P.prototype.getMaxListeners=function(){return D(this)},P.prototype.emit=function(e){var t,A,n,i,r,a,o,s="error"===e;if(a=this._events)s=s&&null==a.error;else if(!s)return!1;if(o=this.domain,s){if(t=arguments[1],!o){if(t instanceof Error)throw t;var l=new Error('Uncaught, unspecified "error" event. ('+t+")");throw l.context=t,l}return t||(t=new Error('Uncaught, unspecified "error" event')),t.domainEmitter=this,t.domain=o,t.domainThrown=!1,o.emit("error",t),!1}if(!(A=a[e]))return!1;var u="function"==typeof A;switch(n=arguments.length){case 1:!function(e,t,A){if(t)e.call(A);else for(var n=e.length,i=Q(e,n),r=0;r0;)if(A[r]===t||A[r].listener&&A[r].listener===t){a=A[r].listener,i=r;break}if(i<0)return this;if(1===A.length){if(A[0]=void 0,0==--this._eventsCount)return this._events=new B,this;delete n[e]}else!function(e,t){for(var A=t,n=A+1,i=e.length;n0?Reflect.ownKeys(this._events):[]};var V={get:function(e,t,A){var n="function"==typeof window.ActiveXObject?new window.ActiveXObject("Microsoft.XMLDOM"):void 0;if(!n)return A(new Error("FlashURLHandler: Microsoft.XMLDOM format not supported"));n.async=!1,request.open("GET",e),request.timeout=t.timeout||0,request.withCredentials=t.withCredentials||!1,request.send(),request.onprogress=function(){},request.onload=function(){n.loadXML(request.responseText),A(null,n)}},supported:function(){return!!function(){var e=void 0;return window.XDomainRequest&&(e=new XDomainRequest),e}()}};var X={get:function(e,t,A){A(new Error("Please bundle the library for node to use the node urlHandler"))}};function Z(){try{var e=new window.XMLHttpRequest;return"withCredentials"in e?e:null}catch(e){return console.log("Error in XHRURLHandler support check:",e),null}}var F={get:function(e,t,A){if("https:"===window.location.protocol&&0===e.indexOf("http://"))return A(new Error("XHRURLHandler: Cannot go from HTTPS to HTTP."));try{var n=Z();n.open("GET",e),n.timeout=t.timeout||0,n.withCredentials=t.withCredentials||!1,n.overrideMimeType&&n.overrideMimeType("text/xml"),n.onreadystatechange=function(){4===n.readyState&&(200===n.status?A(null,n.responseXML):A(new Error("XHRURLHandler: "+n.statusText)))},n.send()}catch(e){A(new Error("XHRURLHandler: Unexpected error"))}},supported:function(){return!!Z()}};var G={get:function(e,t,A){return A||("function"==typeof t&&(A=t),t={}),"undefined"==typeof window||null===window?X.get(e,t,A):F.supported()?F.get(e,t,A):V.supported()?V.get(e,t,A):A(new Error("Current context is not supported by any of the default URLHandlers. Please provide a custom URLHandler"))}},H={ERRORCODE:900,extensions:[]},W=function(e){function t(){var e;return o(this,t),(e=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).remainingAds=[],e.parentURLs=[],e.errorURLTemplates=[],e.rootErrorURLTemplates=[],e.maxWrapperDepth=null,e.URLTemplateFilters=[],e.fetchingOptions={},e}return a(t,P),i(t,[{key:"addURLTemplateFilter",value:function(e){"function"==typeof e&&this.URLTemplateFilters.push(e)}},{key:"removeURLTemplateFilter",value:function(){this.URLTemplateFilters.pop()}},{key:"countURLTemplateFilters",value:function(){return this.URLTemplateFilters.length}},{key:"clearURLTemplateFilters",value:function(){this.URLTemplateFilters=[]}},{key:"trackVastError",value:function(e,t){for(var A=arguments.length,i=Array(A>2?A-2:0),r=2;r0&&void 0!==arguments[0]?arguments[0]:{};this.rootURL="",this.remainingAds=[],this.parentURLs=[],this.errorURLTemplates=[],this.rootErrorURLTemplates=[],this.maxWrapperDepth=e.wrapperLimit||10,this.fetchingOptions={timeout:e.timeout,withCredentials:e.withCredentials},this.urlHandler=e.urlhandler||G}},{key:"getRemainingAds",value:function(e){var t=this;if(0===this.remainingAds.length)return Promise.reject(new Error("No more ads are available for the given VAST"));var A=e?f.flatten(this.remainingAds):this.remainingAds.shift();return this.errorURLTemplates=[],this.parentURLs=[],this.resolveAds(A,{wrapperDepth:0,originalUrl:this.rootURL}).then(function(e){return t.buildVASTResponse(e)})}},{key:"getAndParseVAST",value:function(e){var t=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(A),this.rootURL=e,this.fetchVAST(e).then(function(n){return A.originalUrl=e,A.isRootVAST=!0,t.parse(n,A).then(function(e){return t.buildVASTResponse(e)})})}},{key:"parseVAST",value:function(e){var t=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return this.initParsingStatus(A),A.isRootVAST=!0,this.parse(e,A).then(function(e){return t.buildVASTResponse(e)})}},{key:"buildVASTResponse",value:function(e){var t=new function e(){o(this,e),this.ads=[],this.errorURLTemplates=[]};return t.ads=e,t.errorURLTemplates=this.getErrorURLTemplates(),this.completeWrapperResolving(t),t}},{key:"parse",value:function(e,t){var A=t.resolveAll,n=void 0===A||A,i=t.wrapperSequence,r=void 0===i?null:i,a=t.originalUrl,o=void 0===a?null:a,s=t.wrapperDepth,l=void 0===s?0:s,u=t.isRootVAST,c=void 0!==u&&u;if(!e||!e.documentElement||"VAST"!==e.documentElement.nodeName)return Promise.reject(new Error("Invalid VAST XMLDocument"));var d=[],h=e.documentElement.childNodes;for(var p in h){var g=h[p];if("Error"===g.nodeName){var v=T.parseNodeText(g);c?this.rootErrorURLTemplates.push(v):this.errorURLTemplates.push(v)}if("Ad"===g.nodeName){var m=I(g);m?d.push(m):this.trackVastError(this.getErrorURLTemplates(),{ERRORCODE:101})}}var f=d.length,y=d[f-1];return 1===f&&void 0!==r&&null!==r&&y&&!y.sequence&&(y.sequence=r),!1===n&&(this.remainingAds=T.splitVAST(d),d=this.remainingAds.shift()),this.resolveAds(d,{wrapperDepth:l,originalUrl:o})}},{key:"resolveAds",value:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],A=arguments[1],n=A.wrapperDepth,i=A.originalUrl,r=[];return t.forEach(function(t){var A=e.resolveWrappers(t,n,i);r.push(A)}),Promise.all(r).then(function(t){var A=f.flatten(t);if(!A&&e.remainingAds.length>0){var r=e.remainingAds.shift();return e.resolveAds(r,{wrapperDepth:n,originalUrl:i})}return A})}},{key:"resolveWrappers",value:function(e,t,A){var n=this;return new Promise(function(i,r){if(t++,!e.nextWrapperURL)return delete e.nextWrapperURL,i(e);if(t>=n.maxWrapperDepth||-1!==n.parentURLs.indexOf(e.nextWrapperURL))return e.errorCode=302,delete e.nextWrapperURL,i(e);e.nextWrapperURL=T.resolveVastAdTagURI(e.nextWrapperURL,A);var a=e.sequence;A=e.nextWrapperURL,n.fetchVAST(e.nextWrapperURL,t,A).then(function(r){return n.parse(r,{originalUrl:A,wrapperSequence:a,wrapperDepth:t}).then(function(t){if(delete e.nextWrapperURL,0===t.length)return e.creatives=[],i(e);t.forEach(function(t){t&&T.mergeWrapperAdData(t,e)}),i(t)})}).catch(function(t){e.errorCode=301,e.errorMessage=t.message,i(e)})})}},{key:"completeWrapperResolving",value:function(e){if(0===e.ads.length)this.trackVastError(e.errorURLTemplates,{ERRORCODE:303});else for(var t=e.ads.length-1;t>=0;t--){var A=e.ads[t];(A.errorCode||0===A.creatives.length)&&(this.trackVastError(A.errorURLTemplates.concat(e.errorURLTemplates),{ERRORCODE:A.errorCode||303},{ERRORMESSAGE:A.errorMessage||""},{extensions:A.extensions},{system:A.system}),e.ads.splice(t,1))}}}]),t}(),j=null,J={data:{},length:0,getItem:function(e){return this.data[e]},setItem:function(e,t){this.data[e]=t,this.length=Object.keys(this.data).length},removeItem:function(e){delete data[e],this.length=Object.keys(this.data).length},clear:function(){this.data={},this.length=0}},Y=function(){function e(){o(this,e),this.storage=this.initStorage()}return i(e,[{key:"initStorage",value:function(){if(j)return j;try{j="undefined"!=typeof window&&null!==window?window.localStorage||window.sessionStorage:null}catch(e){j=null}return j&&!this.isStorageDisabled(j)||(j=J).clear(),j}},{key:"isStorageDisabled",value:function(e){var t="__VASTStorage__";try{if(e.setItem(t,t),e.getItem(t)!==t)return e.removeItem(t),!0}catch(e){return!0}return e.removeItem(t),!1}},{key:"getItem",value:function(e){return this.storage.getItem(e)}},{key:"setItem",value:function(e,t){return this.storage.setItem(e,t)}},{key:"removeItem",value:function(e){return this.storage.removeItem(e)}},{key:"clear",value:function(){return this.storage.clear()}}]),e}(),q=function(){function e(t,A,n){o(this,e),this.cappingFreeLunch=t||0,this.cappingMinimumTimeInterval=A||0,this.defaultOptions={withCredentials:!1,timeout:0},this.vastParser=new W,this.storage=n||new Y,void 0===this.lastSuccessfulAd&&(this.lastSuccessfulAd=0),void 0===this.totalCalls&&(this.totalCalls=0),void 0===this.totalCallsTimeout&&(this.totalCallsTimeout=0)}return i(e,[{key:"getParser",value:function(){return this.vastParser}},{key:"hasRemainingAds",value:function(){return this.vastParser.remainingAds.length>0}},{key:"getNextAds",value:function(e){return this.vastParser.getRemainingAds(e)}},{key:"get",value:function(e){var t=this,A=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=Date.now();return(A=n(this.defaultOptions,A)).hasOwnProperty("resolveAll")||(A.resolveAll=!1),this.totalCallsTimeout=t.totalCalls)return r(new Error("VAST call canceled – FreeLunch capping not reached yet "+t.totalCalls+"/"+t.cappingFreeLunch));var a=i-t.lastSuccessfulAd;if(a<0)t.lastSuccessfulAd=0;else if(a3&&void 0!==arguments[3]?arguments[3]:null;for(var s in o(this,t),(i=r(this,(t.__proto__||Object.getPrototypeOf(t)).call(this))).ad=A,i.creative=n,i.variation=a,i.muted=!1,i.impressed=!1,i.skippable=!1,i.trackingEvents={},i._alreadyTriggeredQuartiles={},i.emitAlwaysEvents=["creativeView","start","firstQuartile","midpoint","thirdQuartile","complete","resume","pause","rewind","skip","closeLinear","close"],i.creative.trackingEvents){var l=i.creative.trackingEvents[s];i.trackingEvents[s]=l.slice(0)}return i.creative instanceof E?i._initLinearTracking():i._initVariationTracking(),e&&i.on("start",function(){e.lastSuccessfulAd=Date.now()}),i}return a(t,P),i(t,[{key:"_initLinearTracking",value:function(){this.linear=!0,this.skipDelay=this.creative.skipDelay,this.setDuration(this.creative.duration),this.clickThroughURLTemplate=this.creative.videoClickThroughURLTemplate,this.clickTrackingURLTemplates=this.creative.videoClickTrackingURLTemplates}},{key:"_initVariationTracking",value:function(){if(this.linear=!1,this.skipDelay=-1,this.variation){for(var e in this.variation.trackingEvents){var t=this.variation.trackingEvents[e];this.trackingEvents[e]?this.trackingEvents[e]=this.trackingEvents[e].concat(t.slice(0)):this.trackingEvents[e]=t.slice(0)}this.variation instanceof w?(this.clickThroughURLTemplate=this.variation.nonlinearClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.nonlinearClickTrackingURLTemplates,this.setDuration(this.variation.minSuggestedDuration)):this.variation instanceof c&&(this.clickThroughURLTemplate=this.variation.companionClickThroughURLTemplate,this.clickTrackingURLTemplates=this.variation.companionClickTrackingURLTemplates)}}},{key:"setDuration",value:function(e){this.assetDuration=e,this.quartiles={firstQuartile:Math.round(25*this.assetDuration)/100,midpoint:Math.round(50*this.assetDuration)/100,thirdQuartile:Math.round(75*this.assetDuration)/100}}},{key:"setProgress",value:function(e){var t=this,A=this.skipDelay||-1;if(-1===A||this.skippable||(A>e?this.emit("skip-countdown",A-e):(this.skippable=!0,this.emit("skip-countdown",0))),this.assetDuration>0){var n=[];if(e>0){var i=Math.round(e/this.assetDuration*100);for(var r in n.push("start"),n.push("progress-"+i+"%"),n.push("progress-"+Math.round(e)),this.quartiles)this.isQuartileReached(r,this.quartiles[r],e)&&(n.push(r),this._alreadyTriggeredQuartiles[r]=!0)}n.forEach(function(e){t.track(e,!0)}),e0&&void 0!==arguments[0]?arguments[0]:null;this.clickTrackingURLTemplates&&this.clickTrackingURLTemplates.length&&this.trackURLs(this.clickTrackingURLTemplates);var t=this.clickThroughURLTemplate||e;if(t){var A=this.linear?{CONTENTPLAYHEAD:this.progressFormatted()}:{},n=f.resolveURLTemplates([t],A)[0];this.emit("clickthrough",n)}}},{key:"track",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1];"closeLinear"===e&&!this.trackingEvents[e]&&this.trackingEvents.close&&(e="close");var A=this.trackingEvents[e],n=this.emitAlwaysEvents.indexOf(e)>-1;A?(this.emit(e,""),this.trackURLs(A)):n&&this.emit(e,""),t&&(delete this.trackingEvents[e],n&&this.emitAlwaysEvents.splice(this.emitAlwaysEvents.indexOf(e),1))}},{key:"trackURLs",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.linear&&(this.creative&&this.creative.mediaFiles&&this.creative.mediaFiles[0]&&this.creative.mediaFiles[0].fileURL&&(t.ASSETURI=this.creative.mediaFiles[0].fileURL),t.CONTENTPLAYHEAD=this.progressFormatted()),f.track(e,t)}},{key:"progressFormatted",value:function(){var e=parseInt(this.progress),t=e/3600;t.length<2&&(t="0"+t);var A=e/60%60;A.length<2&&(A="0"+A);var n=e%60;return n.length<2&&(n="0"+A),t+":"+A+":"+n+"."+parseInt(100*(this.progress-e))}}]),t}();t.VASTClient=q,t.VASTParser=W,t.VASTTracker=z},383:function(e,t,A){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=A(1),i=function(e){return e&&e.__esModule?e:{default:e}}(A(6));t.default=function(e,t,A,r,a,o,s){var l={},u={},c=(0,i.default)(o),d=(0,i.default)(a),h=(0,i.default)(e);A.on(n.CONTENT_VOLUME,function(t){t.mute?e.muted=!0:(e.muted=!1,e.volume=t.volume/100)},u);var p=function(){r.active=!1,d.hide(),!r.started||0!==A.getPosition()&&r.isVideoEnded||(h.hide(),A.play()),A.trigger(n.STATE_AD_COMPLETE)},g=function(A){c.hasClass("videoAdUiAction")&&(t.skip(),e.pause(),p())};return o.addEventListener("click",g,!1),l.error=function(){OvenPlayerConsole.log("VAST : listener : error.",e.error),console.log("VAST : listener : error.",e.error);var A={},n=e.error&&e.error.code||0;2===n?(A.code=402,A.message="Timeout of MediaFile URI."):3===n?(A.code=405,A.message="Problem displaying MediaFile. Video player found a MediaFile with supported type but couldn’t display it. MediaFile may include: unsupported codecs, different MIME type than MediaFile@type, unsupported delivery method, etc."):4===n?(A.code=403,A.message="Couldn’t find MediaFile that is supported by this video player, based on the attributes of the MediaFile element."):(A.code=400,A.message="General Linear error. Video player is unable to display the Linear Ad."),t.errorWithCode(A.code),s("405")},l.canplay=function(){},l.ended=function(){t.complete(),p()},l.click=function(e){t.click()},l.play=function(){t.setPaused(!1)},l.pause=function(){t.setPaused(!0)},l.timeupdate=function(i){t.setProgress(i.target.currentTime),A.trigger(n.AD_TIME,{duration:e.duration,position:e.currentTime})},l.volumechange=function(e){OvenPlayerConsole.log("VAST : listener : Ad Video Volumechange."),t.setMuted(e.target.muted)},l.loadedmetadata=function(){OvenPlayerConsole.log("VAST : listener : Ad CONTENT LOADED ."),n.STATE_PLAYING===A.getState()&&A.pause(),t.trackImpression(),A.trigger(n.STATE_AD_LOADED,{remaining:e.duration,isLinear:!0}),e.play()},t.on("skip",function(){OvenPlayerConsole.log("VAST : listener : skipped")}),t.on("mute",function(){OvenPlayerConsole.log("VAST : listener : muted")}),t.on("unmute",function(){OvenPlayerConsole.log("VAST : listener : unmuted")}),t.on("resume",function(){OvenPlayerConsole.log("VAST : listener : vastTracker resumed."),r.started&&A.setState(n.STATE_AD_PLAYING)}),t.on("pause",function(){OvenPlayerConsole.log("VAST : listener : vastTracker paused."),A.setState(n.STATE_AD_PAUSED)}),t.on("clickthrough",function(e){OvenPlayerConsole.log("VAST : listener : clickthrough :",e),window.open(e,"_blank")}),t.on("skip-countdown",function(e){0===e?("ko"===r.lang?c.html("광고 건너뛰기"):c.html("Ad Skip"),c.addClass("videoAdUiAction")):"ko"===r.lang?c.html(parseInt(e)+1+"초 후에 이 광고를 건너뛸 수 있습니다."):c.html("You can skip this ad in "+(parseInt(e)+1))}),t.on("rewind",function(){OvenPlayerConsole.log("VAST : listener : rewind")}),t.on("start",function(){OvenPlayerConsole.log("VAST : listener : started"),r.started=!0,r.active=!0,h.show(),d.show(),A.trigger(n.AD_CHANGED,{isLinear:!0}),A.setState(n.STATE_AD_PLAYING)}),t.on("firstQuartile",function(){OvenPlayerConsole.log("VAST : listener : firstQuartile")}),t.on("midpoint",function(){OvenPlayerConsole.log("VAST : listener : midpoint")}),t.on("thirdQuartile",function(){OvenPlayerConsole.log("VAST : listener : thirdQuartile")}),t.on("creativeView",function(){OvenPlayerConsole.log("VAST : listener : creativeView")}),Object.keys(l).forEach(function(t){e.removeEventListener(t,l[t]),e.addEventListener(t,l[t])}),u.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),o.removeEventListener("click",g,!1),Object.keys(l).forEach(function(t){e.removeEventListener(t,l[t])})},u}}}]); \ No newline at end of file diff --git a/ghostream/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE b/ghostream/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE new file mode 100644 index 0000000..222fc1f --- /dev/null +++ b/ghostream/static/ovenplayer/ovenplayer.provider.DashProvider~ovenplayer.provider.HlsProvider~ovenplayer.provider.Html5~ovenplaye~2ec193ac-0.9.0.js.LICENSE @@ -0,0 +1 @@ +/*! OvenPlayerv0.9.0 | (c)2020 AirenSoft Co., Ltd. | MIT license (https://github.com/AirenSoft/OvenPlayerPrivate/blob/master/LICENSE) | Github : https://github.com/AirenSoft/OvenPlayer */ diff --git a/ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js b/ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js new file mode 100644 index 0000000..78a61fc --- /dev/null +++ b/ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js @@ -0,0 +1,2 @@ +/*! For license information please see ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE */ +(window.webpackJsonp=window.webpackJsonp||[]).push([[7],{307:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=d(r(313)),i=d(r(314)),a=d(r(66)),o=d(r(308)),s=r(303),c=r(1);function d(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){OvenPlayerConsole.log("[Provider] loaded. ");var d={};(0,a.default)(d);var u=e.element,p=null,l=null;e.adTagUrl&&(OvenPlayerConsole.log("[Provider] Ad Client - ",t.getAdClient()),(p=t.getAdClient()===c.AD_CLIENT_VAST?(0,i.default)(u,d,t,e.adTagUrl):(0,n.default)(u,d,t,e.adTagUrl))||console.log("Can not load due to google ima for Ads.")),l=(0,o.default)(u,d,p?p.videoEndedCallback:null),u.playbackRate=u.defaultPlaybackRate=t.getPlaybackRate();var f=function(n){var i=e.sources[e.currentSource];if(e.framerate=i.framerate,d.setVolume(t.getVolume()),e.framerate||t.setTimecodeMode(!0),r)r(i,n);else{OvenPlayerConsole.log("source loaded : ",i,"lastPlayPosition : "+n);var a=u.src;i.file!==a&&(u.src=i.file,(a||""===a)&&u.load(),n&&n>0&&d.seek(n)),n>0&&(t.isAutoStart()||d.play()),t.isAutoStart()&&d.play()}};return d.getName=function(){return e.name},d.canSeek=function(){return e.canSeek},d.setCanSeek=function(t){e.canSeek=t},d.isSeeking=function(){return e.seeking},d.setSeeking=function(t){e.seeking=t},d.setMetaLoaded=function(){e.isLoaded=!0},d.metaLoaded=function(){return e.isLoaded},d.setState=function(t){if(e.state!==t){var r=e.state;if(OvenPlayerConsole.log("Provider : setState()",t),r===c.STATE_AD_PLAYING&&(t===c.STATE_ERROR||t===c.STATE_IDLE))return!1;switch(OvenPlayerConsole.log("Provider : triggerSatatus",t),t){case c.STATE_COMPLETE:d.trigger(c.PLAYER_COMPLETE);break;case c.STATE_PAUSED:d.trigger(c.PLAYER_PAUSE,{prevState:e.state,newstate:c.STATE_PAUSED});break;case c.STATE_AD_PAUSED:d.trigger(c.PLAYER_PAUSE,{prevState:e.state,newstate:c.STATE_AD_PAUSED});break;case c.STATE_PLAYING:d.trigger(c.PLAYER_PLAY,{prevState:e.state,newstate:c.STATE_PLAYING});case c.STATE_AD_PLAYING:d.trigger(c.PLAYER_PLAY,{prevState:e.state,newstate:c.STATE_AD_PLAYING})}e.state=t,d.trigger(c.PLAYER_STATE,{prevstate:r,newstate:e.state})}},d.getState=function(){return e.state},d.setBuffer=function(t){e.buffer=t},d.getBuffer=function(){return e.buffer},d.isLive=function(){return!!e.isLive||u.duration===1/0},d.getDuration=function(){return d.isLive()?1/0:u.duration},d.getPosition=function(){return u?u.currentTime:0},d.setVolume=function(e){if(!u)return!1;u.volume=e/100},d.getVolume=function(){return u?100*u.volume:0},d.setMute=function(e){return!!u&&(void 0===e?(u.muted=!u.muted,d.trigger(c.CONTENT_MUTE,{mute:u.muted})):(u.muted=e,d.trigger(c.CONTENT_MUTE,{mute:u.muted})),u.muted)},d.getMute=function(){return!!u&&u.muted},d.preload=function(r,n){return e.sources=r,e.currentSource=(0,s.pickCurrentSource)(r,e.currentSource,t),f(n||0),new Promise(function(e,r){t.isMute()&&d.setMute(!0),t.getVolume()&&d.setVolume(t.getVolume()),e()})},d.load=function(r){e.sources=r,e.currentSource=(0,s.pickCurrentSource)(r,e.currentSource,t),f(e.sources.starttime||0)},d.play=function(){if(OvenPlayerConsole.log("Provider : play()"),!u)return!1;if(d.getState()!==c.STATE_PLAYING)if(p&&p.isActive()||p&&!p.started())p.play().then(function(e){OvenPlayerConsole.log("Provider : ads play success")}).catch(function(e){OvenPlayerConsole.log("Provider : ads play fail",e)});else{var e=u.play();void 0!==e?e.then(function(){OvenPlayerConsole.log("Provider : video play success")}).catch(function(e){OvenPlayerConsole.log("Provider : video play error",e.message)}):OvenPlayerConsole.log("Provider : video play success (ie)")}},d.pause=function(){if(OvenPlayerConsole.log("Provider : pause()"),!u)return!1;d.getState()===c.STATE_PLAYING?u.pause():d.getState()===c.STATE_AD_PLAYING&&p.pause()},d.seek=function(e){if(!u)return!1;u.currentTime=e},d.setPlaybackRate=function(e){return!!u&&(d.trigger(c.PLAYBACK_RATE_CHANGED,{playbackRate:e}),u.playbackRate=u.defaultPlaybackRate=e)},d.getPlaybackRate=function(){return u?u.playbackRate:0},d.getSources=function(){return u?e.sources.map(function(e,t){var r={file:e.file,type:e.type,label:e.label,index:t,sectionStart:e.sectionStart,sectionEnd:e.sectionEnd,gridThumbnail:e.gridThumbnail};return e.lowLatency&&(r.lowLatency=e.lowLatency),r}):[]},d.getCurrentSource=function(){return e.currentSource},d.setCurrentSource=function(r,n){if(r>-1&&e.sources&&e.sources.length>r)return OvenPlayerConsole.log("source changed : "+r),e.currentSource=r,d.trigger(c.CONTENT_SOURCE_CHANGED,{currentSource:r}),t.setSourceIndex(r),d.setState(c.STATE_IDLE),n&&f(u.currentTime||0),e.currentSource},d.getQualityLevels=function(){return u?e.qualityLevels:[]},d.getCurrentQuality=function(){return u?e.currentQuality:null},d.setCurrentQuality=function(e){},d.isAutoQuality=function(){},d.setAutoQuality=function(e){},d.getFramerate=function(){return e.framerate},d.setFramerate=function(t){return e.framerate=t},d.seekFrame=function(t){var r=e.framerate,n=(u.currentTime*r+t)/r;n+=1e-5,d.pause(),d.seek(n)},d.stop=function(){if(!u)return!1;for(OvenPlayerConsole.log("CORE : stop() "),u.removeAttribute("preload"),u.removeAttribute("src");u.firstChild;)u.removeChild(u.firstChild);d.pause(),d.setState(c.STATE_IDLE)},d.destroy=function(){if(!u)return!1;d.stop(),l.destroy(),p&&(p.destroy(),p=null),d.off(),OvenPlayerConsole.log("CORE : destroy() player stop, listener, event destroied")},d.super=function(e){var t=d[e];return function(){return t.apply(d,arguments)}},d}},308:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),i=r(303);t.default=function(e,t,r){var a={};OvenPlayerConsole.log("EventListener loaded.",e,t);var o={},s=-1,c=e;return a.canplay=function(){t.setCanSeek(!0),t.trigger(n.CONTENT_BUFFER_FULL),OvenPlayerConsole.log("EventListener : on canplay")},a.durationchange=function(){a.progress(),OvenPlayerConsole.log("EventListener : on durationchange")},a.ended=function(){OvenPlayerConsole.log("EventListener : on ended"),t.getState()!==n.STATE_IDLE&&t.getState()!==n.STATE_COMPLETE&&t.getState()!==n.STATE_ERROR&&(r?r(function(){t.setState(n.STATE_COMPLETE)}):t.setState(n.STATE_COMPLETE))},a.loadeddata=function(){},a.loadedmetadata=function(){var e=t.getSources(),r=t.getCurrentSource(),i=r>-1?e[r].type:"",a={duration:t.isLive()?1/0:c.duration,type:i};t.setMetaLoaded(),OvenPlayerConsole.log("EventListener : on loadedmetadata",a),t.trigger(n.CONTENT_META,a)},a.pause=function(){return t.getState()!==n.STATE_COMPLETE&&t.getState()!==n.STATE_ERROR&&!c.ended&&!c.error&&c.currentTime!==c.duration&&(OvenPlayerConsole.log("EventListener : on pause"),void t.setState(n.STATE_PAUSED))},a.play=function(){s=-1,c.paused||t.getState()===n.STATE_PLAYING||t.setState(n.STATE_LOADING)},a.playing=function(){OvenPlayerConsole.log("EventListener : on playing"),s<0&&t.setState(n.STATE_PLAYING)},a.progress=function(){var e=c.buffered;if(!e)return!1;var r=c.duration,i=c.currentTime,a=function(e,t,r){return Math.max(Math.min(e,r),t)}((e.length>0?e.end(e.length-1):0)/r,0,1);t.setBuffer(100*a),t.trigger(n.CONTENT_BUFFER,{bufferPercent:100*a,position:i,duration:r}),OvenPlayerConsole.log("EventListener : on progress",100*a)},a.timeupdate=function(){var e=c.currentTime,r=c.duration;if(!isNaN(r)){var i=t.getSources()[t.getCurrentSource()].sectionEnd;if(i&&e>=i&&t.getState()===n.STATE_PLAYING)return t.stop(),void t.setState(n.STATE_COMPLETE);r>9e15&&(r=1/0),t.isSeeking()||c.paused||t.getState()!==n.STATE_STALLED&&t.getState()!==n.STATE_LOADING&&t.getState()!==n.STATE_AD_PLAYING||function(e,t){return e.toFixed(2)===t.toFixed(2)}(s,e)||(s=-1,t.setState(n.STATE_PLAYING)),(t.getState()===n.STATE_PLAYING||t.isSeeking())&&t.trigger(n.CONTENT_TIME,{position:e,duration:r})}},a.seeking=function(){t.setSeeking(!0),OvenPlayerConsole.log("EventListener : on seeking",c.currentTime),t.trigger(n.CONTENT_SEEK,{position:c.currentTime})},a.seeked=function(){t.isSeeking()&&(OvenPlayerConsole.log("EventListener : on seeked"),t.setSeeking(!1),t.trigger(n.CONTENT_SEEKED))},a.stalled=function(){OvenPlayerConsole.log("EventListener : on stalled")},a.waiting=function(){OvenPlayerConsole.log("EventListener : on waiting",t.getState()),t.isSeeking()?t.setState(n.STATE_LOADING):t.getState()===n.STATE_PLAYING&&(s=c.currentTime,t.setState(n.STATE_STALLED))},a.volumechange=function(){OvenPlayerConsole.log("EventListener : on volumechange",Math.round(100*c.volume)),t.trigger(n.CONTENT_VOLUME,{volume:Math.round(100*c.volume),mute:c.muted})},a.error=function(){var e=c.error&&c.error.code||0,r={0:n.PLAYER_UNKNWON_ERROR,1:n.PLAYER_UNKNWON_OPERATION_ERROR,2:n.PLAYER_UNKNWON_NETWORK_ERROR,3:n.PLAYER_UNKNWON_DECODE_ERROR,4:n.PLAYER_FILE_ERROR}[e]||0;OvenPlayerConsole.log("EventListener : on error",r),(0,i.errorTrigger)(n.ERRORS.codes[r],t)},Object.keys(a).forEach(function(e){c.removeEventListener(e,a[e]),c.addEventListener(e,a[e])}),o.destroy=function(){OvenPlayerConsole.log("EventListener : destroy()"),Object.keys(a).forEach(function(e){c.removeEventListener(e,a[e])})},o}},384:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});o(r(385));var n=o(r(7)),i=r(26),a=r(1);function o(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r,o,s){var c={iceServers:[{urls:"stun:stun.l.google.com:19302"}]};s.getConfig().webrtcConfig&&(s.getConfig().webrtcConfig.iceServers&&(c.iceServers=s.getConfig().webrtcConfig.iceServers),s.getConfig().webrtcConfig.iceTransportPolicy&&(c.iceTransportPolicy=s.getConfig().webrtcConfig.iceTransportPolicy));var d={},u=null,p=null,l=null,f=null,m={},v=!1,h=null,g=(0,i.analUserAgent)();function C(e){var t=null;return f&&e===f.id?t=f.peerConnection:m[e]&&(t=m[e].peerConnection),t}function T(e,t,i,o,d){var p=new RTCPeerConnection(c);f={id:e,peerId:t,peerConnection:p},p.setRemoteDescription(new RTCSessionDescription(i)).then(function(){p.createAnswer().then(function(r){OvenPlayerConsole.log("create Host Answer : success"),p.setLocalDescription(r).then(function(){var r=p.localDescription;OvenPlayerConsole.log("Local SDP",r),P(u,{id:e,peer_id:t,command:"answer",sdp:r})}).catch(function(e){var t=a.ERRORS.codes[a.PLAYER_WEBRTC_SET_LOCAL_DESC_ERROR];t.error=e,R(t)})}).catch(function(e){var t=a.ERRORS.codes[a.PLAYER_WEBRTC_CREATE_ANSWER_ERROR];t.error=e,R(t)})}).catch(function(e){var t=a.ERRORS.codes[a.PLAYER_WEBRTC_SET_REMOTE_DESC_ERROR];t.error=e,R(t)}),o&&S(p,o),p.onicecandidate=function(r){r.candidate&&(OvenPlayerConsole.log("WebRTCLoader send candidate to server : "+r.candidate),P(u,{id:e,peer_id:t,command:"candidate",candidates:[r.candidate]}))},p.onconnectionstatechange=function(e){OvenPlayerConsole.log("[on connection state change]",p.connectionState,e)},p.oniceconnectionstatechange=function(e){OvenPlayerConsole.log("[on ice connection state change]",p.iceConnectionState,e),("disconnected"===p.iceConnectionState||"closed"===p.iceConnectionState)&&(v||f&&R(a.ERRORS.codes[a.PLAYER_WEBRTC_UNEXPECTED_DISCONNECT]))},p.ontrack=function(e){OvenPlayerConsole.log("stream received."),function e(t){t.statisticsTimer&&clearTimeout(t.statisticsTimer),t.status||(t.status={},t.status.lostPacketsArr=[],t.status.slotLength=8,t.status.prevPacketsLost=0,t.status.avg8Losses=0,t.status.avgMoreThanThresholdCount=0,t.status.threshold=40);var r=t.status.lostPacketsArr,i=t.status.slotLength,o=t.status.prevPacketsLost,c=t.status.avg8Losses,d=t.status.threshold;t.statisticsTimer=setTimeout(function(){if(!t.peerConnection)return!1;t.peerConnection.getStats().then(function(u){u&&s.getConfig().autoFallback&&u&&(u.forEach(function(e){if("inbound-rtp"===e.type&&"video"===e.kind&&!e.isRemote){var s=parseInt(e.packetsLost)-parseInt(o);r.push(parseInt(e.packetsLost)-parseInt(o)),r.length>i&&r.shift(),r.length===i&&(c=n.default.reduce(r,function(e,t){return e+t},0)/i,OvenPlayerConsole.log("Last8 LOST PACKET AVG : "+c,"Current Packet LOST: "+s,"Total Packet Lost: "+e.packetsLost,r),c>d?(t.status.avgMoreThanThresholdCount=t.status.avgMoreThanThresholdCount+1,t.status.avgMoreThanThresholdCount>=60&&(OvenPlayerConsole.log("NETWORK UNSTABLED!!! "),R(a.ERRORS.codes[a.PLAYER_WEBRTC_NETWORK_SLOW]))):t.status.avgMoreThanThresholdCount=0),t.status.prevPacketsLost=e.packetsLost}}),e(t))})},2e3)}(f),l=e.streams[0],r(e.streams[0])}}!function(){var e=window.onbeforeunload;window.onbeforeunload=function(t){e&&e(t),OvenPlayerConsole.log("This calls auto when browser closed."),R()}}();var y=function(e){var r=n.default.clone(e);function i(e){var t,r="";return(t=e.match(new RegExp("\\b(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\\b","gi")))&&(r=t[0]),r}var a=function(e){var t,r="";return(t=e.match(/^(?:wss?:\/\/)?(?:[^@\n]+@)?(?:www\.)?([^:\/\n\?\=]+)/im))&&(r=t[1]),r}(t),o=i(r.candidate);return""===o||o===a?null:new Promise(function(e,t){"Firefox"!==g.browser||i(a)?(r.candidate=r.candidate.replace(o,a),e(r)):fetch("https://dns.google.com/resolve?name="+a).then(function(e){return e.json()}).then(function(t){if(!(t&&t.Answer&&t.Answer.length>0))return null;if(!t.Answer[0].data)return null;var n=t.Answer[0].data;r.candidate=r.candidate.replace(o,n),e(r)})})};function S(e,t){for(var r=0;r0){for(var r in m){var n=m[r].peerConnection;OvenPlayerConsole.log("Closing client peer connection..."),n.close(),n=null}m={}}clearInterval(p),p=null,u?(OvenPlayerConsole.log("Closing websocket connection..."),OvenPlayerConsole.log("Send Signaling : Stop."),0!==u.readyState&&1!==u.readyState||(v=!0,f&&P(u,{command:"stop",id:f.id}),u.close())):v=!1,u=null,t&&o(t,e)}function P(e,t){e&&e.send(JSON.stringify(t))}return d.connect=function(){return OvenPlayerConsole.log("WebRTCLoader connecting..."),new Promise(function(e,r){OvenPlayerConsole.log("WebRTCLoader url : "+t),E()})},d.destroy=function(){R()},d}},385:function(e,t,r){"use strict";(function(r){var n,i,a,o,s=Object.assign||function(e){for(var t=1;t=14393&&-1===e.indexOf("?transport=udp"):(r=!0,!0)}),delete e.url,e.urls=i?n[0]:n,!!n.length}})}(r.iceServers||[],t),this._iceGatherers=[],r.iceCandidatePoolSize)for(var o=r.iceCandidatePoolSize;o>0;o--)this._iceGatherers.push(new e.RTCIceGatherer({iceServers:r.iceServers,gatherPolicy:r.iceTransportPolicy}));else r.iceCandidatePoolSize=0;this._config=r,this.transceivers=[],this._sdpSessionId=n.generateSessionId(),this._sdpSessionVersion=0,this._dtlsRole=void 0,this._isClosed=!1};p.prototype.onicecandidate=null,p.prototype.onaddstream=null,p.prototype.ontrack=null,p.prototype.onremovestream=null,p.prototype.onsignalingstatechange=null,p.prototype.oniceconnectionstatechange=null,p.prototype.onconnectionstatechange=null,p.prototype.onicegatheringstatechange=null,p.prototype.onnegotiationneeded=null,p.prototype.ondatachannel=null,p.prototype._dispatchEvent=function(e,t){this._isClosed||(this.dispatchEvent(t),"function"==typeof this["on"+e]&&this["on"+e](t))},p.prototype._emitGatheringStateChange=function(){var e=new Event("icegatheringstatechange");this._dispatchEvent("icegatheringstatechange",e)},p.prototype.getConfiguration=function(){return this._config},p.prototype.getLocalStreams=function(){return this.localStreams},p.prototype.getRemoteStreams=function(){return this.remoteStreams},p.prototype._createTransceiver=function(e,t){var r=this.transceivers.length>0,n={track:null,iceGatherer:null,iceTransport:null,dtlsTransport:null,localCapabilities:null,remoteCapabilities:null,rtpSender:null,rtpReceiver:null,kind:e,mid:null,sendEncodingParameters:null,recvEncodingParameters:null,stream:null,associatedRemoteMediaStreams:[],wantReceive:!0};if(this.usingBundle&&r)n.iceTransport=this.transceivers[0].iceTransport,n.dtlsTransport=this.transceivers[0].dtlsTransport;else{var i=this._createIceAndDtlsTransports();n.iceTransport=i.iceTransport,n.dtlsTransport=i.dtlsTransport}return t||this.transceivers.push(n),n},p.prototype.addTrack=function(t,r){if(this._isClosed)throw d("InvalidStateError","Attempted to call addTrack on a closed peerconnection.");var n;if(this.transceivers.find(function(e){return e.track===t}))throw d("InvalidAccessError","Track already exists.");for(var i=0;i=15025)e.getTracks().forEach(function(t){r.addTrack(t,e)});else{var n=e.clone();e.getTracks().forEach(function(e,t){var r=n.getTracks()[t];e.addEventListener("enabled",function(e){r.enabled=e.enabled})}),n.getTracks().forEach(function(e){r.addTrack(e,n)})}},p.prototype.removeTrack=function(t){if(this._isClosed)throw d("InvalidStateError","Attempted to call removeTrack on a closed peerconnection.");if(!(t instanceof e.RTCRtpSender))throw new TypeError("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.");var r=this.transceivers.find(function(e){return e.rtpSender===t});if(!r)throw d("InvalidAccessError","Sender was not created by this connection.");var n=r.stream;r.rtpSender.stop(),r.rtpSender=null,r.track=null,r.stream=null,-1===this.transceivers.map(function(e){return e.stream}).indexOf(n)&&this.localStreams.indexOf(n)>-1&&this.localStreams.splice(this.localStreams.indexOf(n),1),this._maybeFireNegotiationNeeded()},p.prototype.removeStream=function(e){var t=this;e.getTracks().forEach(function(e){var r=t.getSenders().find(function(t){return t.track===e});r&&t.removeTrack(r)})},p.prototype.getSenders=function(){return this.transceivers.filter(function(e){return!!e.rtpSender}).map(function(e){return e.rtpSender})},p.prototype.getReceivers=function(){return this.transceivers.filter(function(e){return!!e.rtpReceiver}).map(function(e){return e.rtpReceiver})},p.prototype._createIceGatherer=function(t,r){var n=this;if(r&&t>0)return this.transceivers[0].iceGatherer;if(this._iceGatherers.length)return this._iceGatherers.shift();var i=new e.RTCIceGatherer({iceServers:this._config.iceServers,gatherPolicy:this._config.iceTransportPolicy});return Object.defineProperty(i,"state",{value:"new",writable:!0}),this.transceivers[t].bufferedCandidateEvents=[],this.transceivers[t].bufferCandidates=function(e){var r=!e.candidate||0===Object.keys(e.candidate).length;i.state=r?"completed":"gathering",null!==n.transceivers[t].bufferedCandidateEvents&&n.transceivers[t].bufferedCandidateEvents.push(e)},i.addEventListener("localcandidate",this.transceivers[t].bufferCandidates),i},p.prototype._gather=function(t,r){var i=this,a=this.transceivers[r].iceGatherer;if(!a.onlocalcandidate){var o=this.transceivers[r].bufferedCandidateEvents;this.transceivers[r].bufferedCandidateEvents=null,a.removeEventListener("localcandidate",this.transceivers[r].bufferCandidates),a.onlocalcandidate=function(e){if(!(i.usingBundle&&r>0)){var o=new Event("icecandidate");o.candidate={sdpMid:t,sdpMLineIndex:r};var c=e.candidate,d=!c||0===Object.keys(c).length;if(d)"new"!==a.state&&"gathering"!==a.state||(a.state="completed");else{"new"===a.state&&(a.state="gathering"),c.component=1,c.ufrag=a.getLocalParameters().usernameFragment;var u=n.writeCandidate(c);o.candidate=s(o.candidate,n.parseCandidate(u)),o.candidate.candidate=u,o.candidate.toJSON=function(){return{candidate:o.candidate.candidate,sdpMid:o.candidate.sdpMid,sdpMLineIndex:o.candidate.sdpMLineIndex,usernameFragment:o.candidate.usernameFragment}}}var p=n.getMediaSections(i.localDescription.sdp);p[o.candidate.sdpMLineIndex]+=d?"a=end-of-candidates\r\n":"a="+o.candidate.candidate+"\r\n",i.localDescription.sdp=n.getDescription(i.localDescription.sdp)+p.join("");var l=i.transceivers.every(function(e){return e.iceGatherer&&"completed"===e.iceGatherer.state});"gathering"!==i.iceGatheringState&&(i.iceGatheringState="gathering",i._emitGatheringStateChange()),d||i._dispatchEvent("icecandidate",o),l&&(i._dispatchEvent("icecandidate",new Event("icecandidate")),i.iceGatheringState="complete",i._emitGatheringStateChange())}},e.setTimeout(function(){o.forEach(function(e){a.onlocalcandidate(e)})},0)}},p.prototype._createIceAndDtlsTransports=function(){var t=this,r=new e.RTCIceTransport(null);r.onicestatechange=function(){t._updateIceConnectionState(),t._updateConnectionState()};var n=new e.RTCDtlsTransport(r);return n.ondtlsstatechange=function(){t._updateConnectionState()},n.onerror=function(){Object.defineProperty(n,"state",{value:"failed",writable:!0}),t._updateConnectionState()},{iceTransport:r,dtlsTransport:n}},p.prototype._disposeIceAndDtlsTransports=function(e){var t=this.transceivers[e].iceGatherer;t&&(delete t.onlocalcandidate,delete this.transceivers[e].iceGatherer);var r=this.transceivers[e].iceTransport;r&&(delete r.onicestatechange,delete this.transceivers[e].iceTransport);var n=this.transceivers[e].dtlsTransport;n&&(delete n.ondtlsstatechange,delete n.onerror,delete this.transceivers[e].dtlsTransport)},p.prototype._transceive=function(e,r,i){var o=a(e.localCapabilities,e.remoteCapabilities);r&&e.rtpSender&&(o.encodings=e.sendEncodingParameters,o.rtcp={cname:n.localCName,compound:e.rtcpParameters.compound},e.recvEncodingParameters.length&&(o.rtcp.ssrc=e.recvEncodingParameters[0].ssrc),e.rtpSender.send(o)),i&&e.rtpReceiver&&o.codecs.length>0&&("video"===e.kind&&e.recvEncodingParameters&&t<15019&&e.recvEncodingParameters.forEach(function(e){delete e.rtx}),e.recvEncodingParameters.length?o.encodings=e.recvEncodingParameters:o.encodings=[{}],o.rtcp={compound:e.rtcpParameters.compound},e.rtcpParameters.cname&&(o.rtcp.cname=e.rtcpParameters.cname),e.sendEncodingParameters.length&&(o.rtcp.ssrc=e.sendEncodingParameters[0].ssrc),e.rtpReceiver.receive(o))},p.prototype.setLocalDescription=function(e){var t,r,i=this;if(-1===["offer","answer"].indexOf(e.type))return Promise.reject(d("TypeError",'Unsupported type "'+e.type+'"'));if(!o("setLocalDescription",e.type,i.signalingState)||i._isClosed)return Promise.reject(d("InvalidStateError","Can not set local "+e.type+" in state "+i.signalingState));if("offer"===e.type)t=n.splitSections(e.sdp),r=t.shift(),t.forEach(function(e,t){var r=n.parseRtpParameters(e);i.transceivers[t].localCapabilities=r}),i.transceivers.forEach(function(e,t){i._gather(e.mid,t)});else if("answer"===e.type){t=n.splitSections(i.remoteDescription.sdp),r=t.shift();var s=n.matchPrefix(r,"a=ice-lite").length>0;t.forEach(function(e,t){var o=i.transceivers[t],c=o.iceGatherer,d=o.iceTransport,u=o.dtlsTransport,p=o.localCapabilities,l=o.remoteCapabilities;if(!(n.isRejected(e)&&0===n.matchPrefix(e,"a=bundle-only").length)&&!o.rejected){var f=n.getIceParameters(e,r),m=n.getDtlsParameters(e,r);s&&(m.role="server"),i.usingBundle&&0!==t||(i._gather(o.mid,t),"new"===d.state&&d.start(c,f,s?"controlling":"controlled"),"new"===u.state&&u.start(m));var v=a(p,l);i._transceive(o,v.codecs.length>0,!1)}})}return i.localDescription={type:e.type,sdp:e.sdp},"offer"===e.type?i._updateSignalingState("have-local-offer"):i._updateSignalingState("stable"),Promise.resolve()},p.prototype.setRemoteDescription=function(i){var a=this;if(-1===["offer","answer"].indexOf(i.type))return Promise.reject(d("TypeError",'Unsupported type "'+i.type+'"'));if(!o("setRemoteDescription",i.type,a.signalingState)||a._isClosed)return Promise.reject(d("InvalidStateError","Can not set remote "+i.type+" in state "+a.signalingState));var s={};a.remoteStreams.forEach(function(e){s[e.id]=e});var p=[],l=n.splitSections(i.sdp),f=l.shift(),m=n.matchPrefix(f,"a=ice-lite").length>0,v=n.matchPrefix(f,"a=group:BUNDLE ").length>0;a.usingBundle=v;var h=n.matchPrefix(f,"a=ice-options:")[0];return a.canTrickleIceCandidates=!!h&&h.substr(14).split(" ").indexOf("trickle")>=0,l.forEach(function(o,d){var u=n.splitLines(o),l=n.getKind(o),h=n.isRejected(o)&&0===n.matchPrefix(o,"a=bundle-only").length,g=u[0].substr(2).split(" ")[2],C=n.getDirection(o,f),T=n.parseMsid(o),y=n.getMid(o)||n.generateIdentifier();if("application"===l&&"DTLS/SCTP"===g||h)a.transceivers[d]={mid:y,kind:l,rejected:!0};else{var S,E,R,P,_,b,O,k,w;!h&&a.transceivers[d]&&a.transceivers[d].rejected&&(a.transceivers[d]=a._createTransceiver(l,!0));var L,D,M=n.parseRtpParameters(o);h||(L=n.getIceParameters(o,f),(D=n.getDtlsParameters(o,f)).role="client"),O=n.parseRtpEncodingParameters(o);var A=n.parseRtcpParameters(o),x=n.matchPrefix(o,"a=end-of-candidates",f).length>0,I=n.matchPrefix(o,"a=candidate:").map(function(e){return n.parseCandidate(e)}).filter(function(e){return 1===e.component});if(("offer"===i.type||"answer"===i.type)&&!h&&v&&d>0&&a.transceivers[d]&&(a._disposeIceAndDtlsTransports(d),a.transceivers[d].iceGatherer=a.transceivers[0].iceGatherer,a.transceivers[d].iceTransport=a.transceivers[0].iceTransport,a.transceivers[d].dtlsTransport=a.transceivers[0].dtlsTransport,a.transceivers[d].rtpSender&&a.transceivers[d].rtpSender.setTransport(a.transceivers[0].dtlsTransport),a.transceivers[d].rtpReceiver&&a.transceivers[d].rtpReceiver.setTransport(a.transceivers[0].dtlsTransport)),"offer"!==i.type||h)"answer"!==i.type||h||(E=(S=a.transceivers[d]).iceGatherer,R=S.iceTransport,P=S.dtlsTransport,_=S.rtpReceiver,b=S.sendEncodingParameters,k=S.localCapabilities,a.transceivers[d].recvEncodingParameters=O,a.transceivers[d].remoteCapabilities=M,a.transceivers[d].rtcpParameters=A,I.length&&"new"===R.state&&(!m&&!x||v&&0!==d?I.forEach(function(e){c(S.iceTransport,e)}):R.setRemoteCandidates(I)),v&&0!==d||("new"===R.state&&R.start(E,L,"controlling"),"new"===P.state&&P.start(D)),a._transceive(S,"sendrecv"===C||"recvonly"===C,"sendrecv"===C||"sendonly"===C),!_||"sendrecv"!==C&&"sendonly"!==C?delete S.rtpReceiver:(w=_.track,T?(s[T.stream]||(s[T.stream]=new e.MediaStream),r(w,s[T.stream]),p.push([w,_,s[T.stream]])):(s.default||(s.default=new e.MediaStream),r(w,s.default),p.push([w,_,s.default]))));else{(S=a.transceivers[d]||a._createTransceiver(l)).mid=y,S.iceGatherer||(S.iceGatherer=a._createIceGatherer(d,v)),I.length&&"new"===S.iceTransport.state&&(!x||v&&0!==d?I.forEach(function(e){c(S.iceTransport,e)}):S.iceTransport.setRemoteCandidates(I)),k=e.RTCRtpReceiver.getCapabilities(l),t<15019&&(k.codecs=k.codecs.filter(function(e){return"rtx"!==e.name})),b=S.sendEncodingParameters||[{ssrc:1001*(2*d+2)}];var j,N=!1;if("sendrecv"===C||"sendonly"===C){if(N=!S.rtpReceiver,_=S.rtpReceiver||new e.RTCRtpReceiver(S.dtlsTransport,l),N)w=_.track,T&&"-"===T.stream||(T?(s[T.stream]||(s[T.stream]=new e.MediaStream,Object.defineProperty(s[T.stream],"id",{get:function(){return T.stream}})),Object.defineProperty(w,"id",{get:function(){return T.track}}),j=s[T.stream]):(s.default||(s.default=new e.MediaStream),j=s.default)),j&&(r(w,j),S.associatedRemoteMediaStreams.push(j)),p.push([w,_,j])}else S.rtpReceiver&&S.rtpReceiver.track&&(S.associatedRemoteMediaStreams.forEach(function(t){var r=t.getTracks().find(function(e){return e.id===S.rtpReceiver.track.id});r&&function(t,r){r.removeTrack(t),r.dispatchEvent(new e.MediaStreamTrackEvent("removetrack",{track:t}))}(r,t)}),S.associatedRemoteMediaStreams=[]);S.localCapabilities=k,S.remoteCapabilities=M,S.rtpReceiver=_,S.rtcpParameters=A,S.sendEncodingParameters=b,S.recvEncodingParameters=O,a._transceive(a.transceivers[d],!1,N)}}}),void 0===a._dtlsRole&&(a._dtlsRole="offer"===i.type?"active":"passive"),a.remoteDescription={type:i.type,sdp:i.sdp},"offer"===i.type?a._updateSignalingState("have-remote-offer"):a._updateSignalingState("stable"),Object.keys(s).forEach(function(t){var r=s[t];if(r.getTracks().length){if(-1===a.remoteStreams.indexOf(r)){a.remoteStreams.push(r);var n=new Event("addstream");n.stream=r,e.setTimeout(function(){a._dispatchEvent("addstream",n)})}p.forEach(function(e){var t=e[0],n=e[1];r.id===e[2].id&&u(a,t,n,[r])})}}),p.forEach(function(e){e[2]||u(a,e[0],e[1],[])}),e.setTimeout(function(){a&&a.transceivers&&a.transceivers.forEach(function(e){e.iceTransport&&"new"===e.iceTransport.state&&e.iceTransport.getRemoteCandidates().length>0&&(console.warn("Timeout for addRemoteCandidate. Consider sending an end-of-candidates notification"),e.iceTransport.addRemoteCandidate({}))})},4e3),Promise.resolve()},p.prototype.close=function(){this.transceivers.forEach(function(e){e.iceTransport&&e.iceTransport.stop(),e.dtlsTransport&&e.dtlsTransport.stop(),e.rtpSender&&e.rtpSender.stop(),e.rtpReceiver&&e.rtpReceiver.stop()}),this._isClosed=!0,this._updateSignalingState("closed")},p.prototype._updateSignalingState=function(e){this.signalingState=e;var t=new Event("signalingstatechange");this._dispatchEvent("signalingstatechange",t)},p.prototype._maybeFireNegotiationNeeded=function(){var t=this;"stable"===this.signalingState&&!0!==this.needNegotiation&&(this.needNegotiation=!0,e.setTimeout(function(){if(t.needNegotiation){t.needNegotiation=!1;var e=new Event("negotiationneeded");t._dispatchEvent("negotiationneeded",e)}},0))},p.prototype._updateIceConnectionState=function(){var e,t={new:0,closed:0,checking:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(e){t[e.iceTransport.state]++}),e="new",t.failed>0?e="failed":t.checking>0?e="checking":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0?e="connected":t.completed>0&&(e="completed"),e!==this.iceConnectionState){this.iceConnectionState=e;var r=new Event("iceconnectionstatechange");this._dispatchEvent("iceconnectionstatechange",r)}},p.prototype._updateConnectionState=function(){var e,t={new:0,closed:0,connecting:0,connected:0,completed:0,disconnected:0,failed:0};if(this.transceivers.forEach(function(e){t[e.iceTransport.state]++,t[e.dtlsTransport.state]++}),t.connected+=t.completed,e="new",t.failed>0?e="failed":t.connecting>0?e="connecting":t.disconnected>0?e="disconnected":t.new>0?e="new":t.connected>0&&(e="connected"),e!==this.connectionState){this.connectionState=e;var r=new Event("connectionstatechange");this._dispatchEvent("connectionstatechange",r)}},p.prototype.createOffer=function(){var r=this;if(r._isClosed)return Promise.reject(d("InvalidStateError","Can not call createOffer after close"));var a=r.transceivers.filter(function(e){return"audio"===e.kind}).length,o=r.transceivers.filter(function(e){return"video"===e.kind}).length,s=arguments[0];if(s){if(s.mandatory||s.optional)throw new TypeError("Legacy mandatory/optional constraints not supported.");void 0!==s.offerToReceiveAudio&&(a=!0===s.offerToReceiveAudio?1:!1===s.offerToReceiveAudio?0:s.offerToReceiveAudio),void 0!==s.offerToReceiveVideo&&(o=!0===s.offerToReceiveVideo?1:!1===s.offerToReceiveVideo?0:s.offerToReceiveVideo)}for(r.transceivers.forEach(function(e){"audio"===e.kind?--a<0&&(e.wantReceive=!1):"video"===e.kind&&--o<0&&(e.wantReceive=!1)});a>0||o>0;)a>0&&(r._createTransceiver("audio"),a--),o>0&&(r._createTransceiver("video"),o--);var c=n.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.transceivers.forEach(function(i,a){var o=i.track,s=i.kind,c=i.mid||n.generateIdentifier();i.mid=c,i.iceGatherer||(i.iceGatherer=r._createIceGatherer(a,r.usingBundle));var d=e.RTCRtpSender.getCapabilities(s);t<15019&&(d.codecs=d.codecs.filter(function(e){return"rtx"!==e.name})),d.codecs.forEach(function(e){"H264"===e.name&&void 0===e.parameters["level-asymmetry-allowed"]&&(e.parameters["level-asymmetry-allowed"]="1"),i.remoteCapabilities&&i.remoteCapabilities.codecs&&i.remoteCapabilities.codecs.forEach(function(t){e.name.toLowerCase()===t.name.toLowerCase()&&e.clockRate===t.clockRate&&(e.preferredPayloadType=t.payloadType)})}),d.headerExtensions.forEach(function(e){(i.remoteCapabilities&&i.remoteCapabilities.headerExtensions||[]).forEach(function(t){e.uri===t.uri&&(e.id=t.id)})});var u=i.sendEncodingParameters||[{ssrc:1001*(2*a+1)}];o&&t>=15019&&"video"===s&&!u[0].rtx&&(u[0].rtx={ssrc:u[0].ssrc+1}),i.wantReceive&&(i.rtpReceiver=new e.RTCRtpReceiver(i.dtlsTransport,s)),i.localCapabilities=d,i.sendEncodingParameters=u}),"max-compat"!==r._config.bundlePolicy&&(c+="a=group:BUNDLE "+r.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n"),c+="a=ice-options:trickle\r\n",r.transceivers.forEach(function(e,t){c+=i(e,e.localCapabilities,"offer",e.stream,r._dtlsRole),c+="a=rtcp-rsize\r\n",!e.iceGatherer||"new"===r.iceGatheringState||0!==t&&r.usingBundle||(e.iceGatherer.getLocalCandidates().forEach(function(e){e.component=1,c+="a="+n.writeCandidate(e)+"\r\n"}),"completed"===e.iceGatherer.state&&(c+="a=end-of-candidates\r\n"))});var u=new e.RTCSessionDescription({type:"offer",sdp:c});return Promise.resolve(u)},p.prototype.createAnswer=function(){var r=this;if(r._isClosed)return Promise.reject(d("InvalidStateError","Can not call createAnswer after close"));if("have-remote-offer"!==r.signalingState&&"have-local-pranswer"!==r.signalingState)return Promise.reject(d("InvalidStateError","Can not call createAnswer in signalingState "+r.signalingState));var o=n.writeSessionBoilerplate(r._sdpSessionId,r._sdpSessionVersion++);r.usingBundle&&(o+="a=group:BUNDLE "+r.transceivers.map(function(e){return e.mid}).join(" ")+"\r\n");var s=n.getMediaSections(r.remoteDescription.sdp).length;r.transceivers.forEach(function(e,n){if(!(n+1>s)){if(e.rejected)return"application"===e.kind?o+="m=application 0 DTLS/SCTP 5000\r\n":"audio"===e.kind?o+="m=audio 0 UDP/TLS/RTP/SAVPF 0\r\na=rtpmap:0 PCMU/8000\r\n":"video"===e.kind&&(o+="m=video 0 UDP/TLS/RTP/SAVPF 120\r\na=rtpmap:120 VP8/90000\r\n"),void(o+="c=IN IP4 0.0.0.0\r\na=inactive\r\na=mid:"+e.mid+"\r\n");var c;if(e.stream)"audio"===e.kind?c=e.stream.getAudioTracks()[0]:"video"===e.kind&&(c=e.stream.getVideoTracks()[0]),c&&t>=15019&&"video"===e.kind&&!e.sendEncodingParameters[0].rtx&&(e.sendEncodingParameters[0].rtx={ssrc:e.sendEncodingParameters[0].ssrc+1});var d=a(e.localCapabilities,e.remoteCapabilities);!d.codecs.filter(function(e){return"rtx"===e.name.toLowerCase()}).length&&e.sendEncodingParameters[0].rtx&&delete e.sendEncodingParameters[0].rtx,o+=i(e,d,"answer",e.stream,r._dtlsRole),e.rtcpParameters&&e.rtcpParameters.reducedSize&&(o+="a=rtcp-rsize\r\n")}});var c=new e.RTCSessionDescription({type:"answer",sdp:o});return Promise.resolve(c)},p.prototype.addIceCandidate=function(e){var t,r=this;return e&&void 0===e.sdpMLineIndex&&!e.sdpMid?Promise.reject(new TypeError("sdpMLineIndex or sdpMid required")):new Promise(function(i,a){if(!r.remoteDescription)return a(d("InvalidStateError","Can not add ICE candidate without a remote description"));if(e&&""!==e.candidate){var o=e.sdpMLineIndex;if(e.sdpMid)for(var s=0;s0?n.parseCandidate(e.candidate):{};if("tcp"===p.protocol&&(0===p.port||9===p.port))return i();if(p.component&&1!==p.component)return i();if((0===o||o>0&&u.iceTransport!==r.transceivers[0].iceTransport)&&!c(u.iceTransport,p))return a(d("OperationError","Can not add ICE candidate"));var l=e.candidate.trim();0===l.indexOf("a=")&&(l=l.substr(2)),(t=n.getMediaSections(r.remoteDescription.sdp))[o]+="a="+(p.type?l:"end-of-candidates")+"\r\n",r.remoteDescription.sdp=n.getDescription(r.remoteDescription.sdp)+t.join("")}else for(var f=0;f0?t[0].split("/")[1]:"sendrecv",uri:t[1]}},n.writeExtmap=function(e){return"a=extmap:"+(e.id||e.preferredId)+(e.direction&&"sendrecv"!==e.direction?"/"+e.direction:"")+" "+e.uri+"\r\n"},n.parseFmtp=function(e){for(var t,r={},n=e.substr(e.indexOf(" ")+1).split(";"),i=0;i-1?(r.attribute=e.substr(t+1,n-t-1),r.value=e.substr(n+1)):r.attribute=e.substr(t+1),r},n.getMid=function(e){var t=n.matchPrefix(e,"a=mid:")[0];if(t)return t.substr(6)},n.parseFingerprint=function(e){var t=e.substr(14).split(" ");return{algorithm:t[0].toLowerCase(),value:t[1]}},n.getDtlsParameters=function(e,t){return{role:"auto",fingerprints:n.matchPrefix(e+t,"a=fingerprint:").map(n.parseFingerprint)}},n.writeDtlsParameters=function(e,t){var r="a=setup:"+t+"\r\n";return e.fingerprints.forEach(function(e){r+="a=fingerprint:"+e.algorithm+" "+e.value+"\r\n"}),r},n.getIceParameters=function(e,t){var r=n.splitLines(e);return{usernameFragment:(r=r.concat(n.splitLines(t))).filter(function(e){return 0===e.indexOf("a=ice-ufrag:")})[0].substr(12),password:r.filter(function(e){return 0===e.indexOf("a=ice-pwd:")})[0].substr(10)}},n.writeIceParameters=function(e){return"a=ice-ufrag:"+e.usernameFragment+"\r\na=ice-pwd:"+e.password+"\r\n"},n.parseRtpParameters=function(e){for(var t={codecs:[],headerExtensions:[],fecMechanisms:[],rtcp:[]},r=n.splitLines(e)[0].split(" "),i=3;i0?"9":"0",r+=" UDP/TLS/RTP/SAVPF ",r+=t.codecs.map(function(e){return void 0!==e.preferredPayloadType?e.preferredPayloadType:e.payloadType}).join(" ")+"\r\n",r+="c=IN IP4 0.0.0.0\r\n",r+="a=rtcp:9 IN IP4 0.0.0.0\r\n",t.codecs.forEach(function(e){r+=n.writeRtpMap(e),r+=n.writeFmtp(e),r+=n.writeRtcpFb(e)});var i=0;return t.codecs.forEach(function(e){e.maxptime>i&&(i=e.maxptime)}),i>0&&(r+="a=maxptime:"+i+"\r\n"),r+="a=rtcp-mux\r\n",t.headerExtensions.forEach(function(e){r+=n.writeExtmap(e)}),r},n.parseRtpEncodingParameters=function(e){var t,r=[],i=n.parseRtpParameters(e),a=-1!==i.fecMechanisms.indexOf("RED"),o=-1!==i.fecMechanisms.indexOf("ULPFEC"),s=n.matchPrefix(e,"a=ssrc:").map(function(e){return n.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute}),c=s.length>0&&s[0].ssrc,d=n.matchPrefix(e,"a=ssrc-group:FID").map(function(e){var t=e.split(" ");return t.shift(),t.map(function(e){return parseInt(e,10)})});d.length>0&&d[0].length>1&&d[0][0]===c&&(t=d[0][1]),i.codecs.forEach(function(e){if("RTX"===e.name.toUpperCase()&&e.parameters.apt){var n={ssrc:c,codecPayloadType:parseInt(e.parameters.apt,10),rtx:{ssrc:t}};r.push(n),a&&((n=JSON.parse(JSON.stringify(n))).fec={ssrc:t,mechanism:o?"red+ulpfec":"red"},r.push(n))}}),0===r.length&&c&&r.push({ssrc:c});var u=n.matchPrefix(e,"b=");return u.length&&(u=0===u[0].indexOf("b=TIAS:")?parseInt(u[0].substr(7),10):0===u[0].indexOf("b=AS:")?1e3*parseInt(u[0].substr(5),10)*.95-16e3:void 0,r.forEach(function(e){e.maxBitrate=u})),r},n.parseRtcpParameters=function(e){var t={},r=n.matchPrefix(e,"a=ssrc:").map(function(e){return n.parseSsrcMedia(e)}).filter(function(e){return"cname"===e.attribute})[0];r&&(t.cname=r.value,t.ssrc=r.ssrc);var i=n.matchPrefix(e,"a=rtcp-rsize");t.reducedSize=i.length>0,t.compound=0===i.length;var a=n.matchPrefix(e,"a=rtcp-mux");return t.mux=a.length>0,t},n.parseMsid=function(e){var t,r=n.matchPrefix(e,"a=msid:");if(1===r.length)return{stream:(t=r[0].substr(7).split(" "))[0],track:t[1]};var i=n.matchPrefix(e,"a=ssrc:").map(function(e){return n.parseSsrcMedia(e)}).filter(function(e){return"msid"===e.attribute});return i.length>0?{stream:(t=i[0].value.split(" "))[0],track:t[1]}:void 0},n.generateSessionId=function(){return Math.random().toString().substr(2,21)},n.writeSessionBoilerplate=function(e,t){var r=void 0!==t?t:2;return"v=0\r\no=thisisadapterortc "+(e||n.generateSessionId())+" "+r+" IN IP4 127.0.0.1\r\ns=-\r\nt=0 0\r\n"},n.writeMediaSection=function(e,t,r,i){var a=n.writeRtpDescription(e.kind,t);if(a+=n.writeIceParameters(e.iceGatherer.getLocalParameters()),a+=n.writeDtlsParameters(e.dtlsTransport.getLocalParameters(),"offer"===r?"actpass":"active"),a+="a=mid:"+e.mid+"\r\n",e.direction?a+="a="+e.direction+"\r\n":e.rtpSender&&e.rtpReceiver?a+="a=sendrecv\r\n":e.rtpSender?a+="a=sendonly\r\n":e.rtpReceiver?a+="a=recvonly\r\n":a+="a=inactive\r\n",e.rtpSender){var o="msid:"+i.id+" "+e.rtpSender.track.id+"\r\n";a+="a="+o,a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" "+o,e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" "+o,a+="a=ssrc-group:FID "+e.sendEncodingParameters[0].ssrc+" "+e.sendEncodingParameters[0].rtx.ssrc+"\r\n")}return a+="a=ssrc:"+e.sendEncodingParameters[0].ssrc+" cname:"+n.localCName+"\r\n",e.rtpSender&&e.sendEncodingParameters[0].rtx&&(a+="a=ssrc:"+e.sendEncodingParameters[0].rtx.ssrc+" cname:"+n.localCName+"\r\n"),a},n.getDirection=function(e,t){for(var r=n.splitLines(e),i=0;i=65)return this.shimAddTrackRemoveTrackWithNative(e);var r=e.RTCPeerConnection.prototype.getLocalStreams;e.RTCPeerConnection.prototype.getLocalStreams=function(){var e=this,t=r.apply(this);return e._reverseStreams=e._reverseStreams||{},t.map(function(t){return e._reverseStreams[t.id]})};var i=e.RTCPeerConnection.prototype.addStream;e.RTCPeerConnection.prototype.addStream=function(t){var r=this;if(r._streams=r._streams||{},r._reverseStreams=r._reverseStreams||{},t.getTracks().forEach(function(e){if(r.getSenders().find(function(t){return t.track===e}))throw new DOMException("Track already exists.","InvalidAccessError")}),!r._reverseStreams[t.id]){var n=new e.MediaStream(t.getTracks());r._streams[t.id]=n,r._reverseStreams[n.id]=t,t=n}i.apply(r,[t])};var a=e.RTCPeerConnection.prototype.removeStream;function o(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(function(t){var n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(i.id,"g"),n.id)}),new RTCSessionDescription({type:t.type,sdp:r})}e.RTCPeerConnection.prototype.removeStream=function(e){var t=this;t._streams=t._streams||{},t._reverseStreams=t._reverseStreams||{},a.apply(t,[t._streams[e.id]||e]),delete t._reverseStreams[t._streams[e.id]?t._streams[e.id].id:e.id],delete t._streams[e.id]},e.RTCPeerConnection.prototype.addTrack=function(t,r){var n=this;if("closed"===n.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");var i=[].slice.call(arguments,1);if(1!==i.length||!i[0].getTracks().find(function(e){return e===t}))throw new DOMException("The adapter.js addTrack polyfill only supports a single stream which is associated with the specified track.","NotSupportedError");if(n.getSenders().find(function(e){return e.track===t}))throw new DOMException("Track already exists.","InvalidAccessError");n._streams=n._streams||{},n._reverseStreams=n._reverseStreams||{};var a=n._streams[r.id];if(a)a.addTrack(t),Promise.resolve().then(function(){n.dispatchEvent(new Event("negotiationneeded"))});else{var o=new e.MediaStream([t]);n._streams[r.id]=o,n._reverseStreams[o.id]=r,n.addStream(o)}return n.getSenders().find(function(e){return e.track===t})},["createOffer","createAnswer"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=this,t=arguments;return arguments.length&&"function"==typeof arguments[0]?r.apply(e,[function(r){var n=o(e,r);t[0].apply(null,[n])},function(e){t[1]&&t[1].apply(null,e)},arguments[2]]):r.apply(e,arguments).then(function(t){return o(e,t)})}});var s=e.RTCPeerConnection.prototype.setLocalDescription;e.RTCPeerConnection.prototype.setLocalDescription=function(){return arguments.length&&arguments[0].type?(arguments[0]=function(e,t){var r=t.sdp;return Object.keys(e._reverseStreams||[]).forEach(function(t){var n=e._reverseStreams[t],i=e._streams[n.id];r=r.replace(new RegExp(n.id,"g"),i.id)}),new RTCSessionDescription({type:t.type,sdp:r})}(this,arguments[0]),s.apply(this,arguments)):s.apply(this,arguments)};var c=Object.getOwnPropertyDescriptor(e.RTCPeerConnection.prototype,"localDescription");Object.defineProperty(e.RTCPeerConnection.prototype,"localDescription",{get:function(){var e=c.get.apply(this);return""===e.type?e:o(this,e)}}),e.RTCPeerConnection.prototype.removeTrack=function(e){var t,r=this;if("closed"===r.signalingState)throw new DOMException("The RTCPeerConnection's signalingState is 'closed'.","InvalidStateError");if(!e._pc)throw new DOMException("Argument 1 of RTCPeerConnection.removeTrack does not implement interface RTCRtpSender.","TypeError");if(!(e._pc===r))throw new DOMException("Sender was not created by this connection.","InvalidAccessError");r._streams=r._streams||{},Object.keys(r._streams).forEach(function(n){r._streams[n].getTracks().find(function(t){return e.track===t})&&(t=r._streams[n])}),t&&(1===t.getTracks().length?r.removeStream(r._reverseStreams[t.id]):t.removeTrack(e.track),r.dispatchEvent(new Event("negotiationneeded")))}},shimPeerConnection:function(e){var t=n.detectBrowser(e);if(!e.RTCPeerConnection&&e.webkitRTCPeerConnection)e.RTCPeerConnection=function(t,r){return i("PeerConnection"),t&&t.iceTransportPolicy&&(t.iceTransports=t.iceTransportPolicy),new e.webkitRTCPeerConnection(t,r)},e.RTCPeerConnection.prototype=e.webkitRTCPeerConnection.prototype,e.webkitRTCPeerConnection.generateCertificate&&Object.defineProperty(e.RTCPeerConnection,"generateCertificate",{get:function(){return e.webkitRTCPeerConnection.generateCertificate}});else{var r=e.RTCPeerConnection;e.RTCPeerConnection=function(e,t){if(e&&e.iceServers){for(var i=[],a=0;a0&&"function"==typeof e)return a.apply(this,arguments);if(0===a.length&&(0===arguments.length||"function"!=typeof arguments[0]))return a.apply(this,[]);var o=function(e){var t={};return e.result().forEach(function(e){var r={id:e.id,timestamp:e.timestamp,type:{localcandidate:"local-candidate",remotecandidate:"remote-candidate"}[e.type]||e.type};e.names().forEach(function(t){r[t]=e.stat(t)}),t[r.id]=r}),t},s=function(e){return new Map(Object.keys(e).map(function(t){return[t,e[t]]}))};if(arguments.length>=2){return a.apply(this,[function(e){i[1](s(o(e)))},arguments[0]])}return new Promise(function(e,t){a.apply(n,[function(t){e(s(o(t)))},t])}).then(t,r)},t.version<51&&["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=arguments,t=this,n=new Promise(function(n,i){r.apply(t,[e[0],n,i])});return e.length<2?n:n.then(function(){e[1].apply(null,[])},function(t){e.length>=3&&e[2].apply(null,[t])})}}),t.version<52&&["createOffer","createAnswer"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){var e=this;if(arguments.length<1||1===arguments.length&&"object"===c(arguments[0])){var t=1===arguments.length?arguments[0]:void 0;return new Promise(function(n,i){r.apply(e,[n,i,t])})}return r.apply(this,arguments)}}),["setLocalDescription","setRemoteDescription","addIceCandidate"].forEach(function(t){var r=e.RTCPeerConnection.prototype[t];e.RTCPeerConnection.prototype[t]=function(){return arguments[0]=new("addIceCandidate"===t?e.RTCIceCandidate:e.RTCSessionDescription)(arguments[0]),r.apply(this,arguments)}});var o=e.RTCPeerConnection.prototype.addIceCandidate;e.RTCPeerConnection.prototype.addIceCandidate=function(){return arguments[0]?o.apply(this,arguments):(arguments[1]&&arguments[1].apply(null),Promise.resolve())}}}},{"../utils.js":13,"./getusermedia":6}],6:[function(e,t,r){var n=e("../utils.js"),i=n.log;t.exports=function(e){var t=n.detectBrowser(e),r=e&&e.navigator,a=function(e){if("object"!==(void 0===e?"undefined":c(e))||e.mandatory||e.optional)return e;var t={};return Object.keys(e).forEach(function(r){if("require"!==r&&"advanced"!==r&&"mediaSource"!==r){var n="object"===c(e[r])?e[r]:{ideal:e[r]};void 0!==n.exact&&"number"==typeof n.exact&&(n.min=n.max=n.exact);var i=function(e,t){return e?e+t.charAt(0).toUpperCase()+t.slice(1):"deviceId"===t?"sourceId":t};if(void 0!==n.ideal){t.optional=t.optional||[];var a={};"number"==typeof n.ideal?(a[i("min",r)]=n.ideal,t.optional.push(a),(a={})[i("max",r)]=n.ideal,t.optional.push(a)):(a[i("",r)]=n.ideal,t.optional.push(a))}void 0!==n.exact&&"number"!=typeof n.exact?(t.mandatory=t.mandatory||{},t.mandatory[i("",r)]=n.exact):["min","max"].forEach(function(e){void 0!==n[e]&&(t.mandatory=t.mandatory||{},t.mandatory[i(e,r)]=n[e])})}}),e.advanced&&(t.optional=(t.optional||[]).concat(e.advanced)),t},o=function(e,n){if(t.version>=61)return n(e);if((e=JSON.parse(JSON.stringify(e)))&&"object"===c(e.audio)){var o=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])};o((e=JSON.parse(JSON.stringify(e))).audio,"autoGainControl","googAutoGainControl"),o(e.audio,"noiseSuppression","googNoiseSuppression"),e.audio=a(e.audio)}if(e&&"object"===c(e.video)){var s=e.video.facingMode;s=s&&("object"===(void 0===s?"undefined":c(s))?s:{ideal:s});var d,u=t.version<66;if(s&&("user"===s.exact||"environment"===s.exact||"user"===s.ideal||"environment"===s.ideal)&&(!r.mediaDevices.getSupportedConstraints||!r.mediaDevices.getSupportedConstraints().facingMode||u))if(delete e.video.facingMode,"environment"===s.exact||"environment"===s.ideal?d=["back","rear"]:"user"!==s.exact&&"user"!==s.ideal||(d=["front"]),d)return r.mediaDevices.enumerateDevices().then(function(t){var r=(t=t.filter(function(e){return"videoinput"===e.kind})).find(function(e){return d.some(function(t){return-1!==e.label.toLowerCase().indexOf(t)})});return!r&&t.length&&-1!==d.indexOf("back")&&(r=t[t.length-1]),r&&(e.video.deviceId=s.exact?{exact:r.deviceId}:{ideal:r.deviceId}),e.video=a(e.video),i("chrome: "+JSON.stringify(e)),n(e)});e.video=a(e.video)}return i("chrome: "+JSON.stringify(e)),n(e)},s=function(e){return{name:{PermissionDeniedError:"NotAllowedError",PermissionDismissedError:"NotAllowedError",InvalidStateError:"NotAllowedError",DevicesNotFoundError:"NotFoundError",ConstraintNotSatisfiedError:"OverconstrainedError",TrackStartError:"NotReadableError",MediaDeviceFailedDueToShutdown:"NotAllowedError",MediaDeviceKillSwitchOn:"NotAllowedError",TabCaptureError:"AbortError",ScreenCaptureError:"AbortError",DeviceCaptureError:"AbortError"}[e.name]||e.name,message:e.message,constraint:e.constraintName,toString:function(){return this.name+(this.message&&": ")+this.message}}};r.getUserMedia=function(e,t,n){o(e,function(e){r.webkitGetUserMedia(e,t,function(e){n&&n(s(e))})})};var d=function(e){return new Promise(function(t,n){r.getUserMedia(e,t,n)})};if(r.mediaDevices||(r.mediaDevices={getUserMedia:d,enumerateDevices:function(){return new Promise(function(t){var r={audio:"audioinput",video:"videoinput"};return e.MediaStreamTrack.getSources(function(e){t(e.map(function(e){return{label:e.label,kind:r[e.kind],deviceId:e.id,groupId:""}}))})})},getSupportedConstraints:function(){return{deviceId:!0,echoCancellation:!0,facingMode:!0,frameRate:!0,height:!0,width:!0}}}),r.mediaDevices.getUserMedia){var u=r.mediaDevices.getUserMedia.bind(r.mediaDevices);r.mediaDevices.getUserMedia=function(e){return o(e,function(e){return u(e).then(function(t){if(e.audio&&!t.getAudioTracks().length||e.video&&!t.getVideoTracks().length)throw t.getTracks().forEach(function(e){e.stop()}),new DOMException("","NotFoundError");return t},function(e){return Promise.reject(s(e))})})}}else r.mediaDevices.getUserMedia=function(e){return d(e)};void 0===r.mediaDevices.addEventListener&&(r.mediaDevices.addEventListener=function(){i("Dummy mediaDevices.addEventListener called.")}),void 0===r.mediaDevices.removeEventListener&&(r.mediaDevices.removeEventListener=function(){i("Dummy mediaDevices.removeEventListener called.")})}},{"../utils.js":13}],7:[function(e,t,r){var n=e("sdp"),i=e("./utils");t.exports={shimRTCIceCandidate:function(e){if(e.RTCIceCandidate&&!(e.RTCIceCandidate&&"foundation"in e.RTCIceCandidate.prototype)){var t=e.RTCIceCandidate;e.RTCIceCandidate=function(e){if("object"===(void 0===e?"undefined":c(e))&&e.candidate&&0===e.candidate.indexOf("a=")&&((e=JSON.parse(JSON.stringify(e))).candidate=e.candidate.substr(2)),e.candidate&&e.candidate.length){var r=new t(e),i=n.parseCandidate(e.candidate),a=s(r,i);return a.toJSON=function(){return{candidate:a.candidate,sdpMid:a.sdpMid,sdpMLineIndex:a.sdpMLineIndex,usernameFragment:a.usernameFragment}},a}return new t(e)},e.RTCIceCandidate.prototype=t.prototype,i.wrapPeerConnectionEvent(e,"icecandidate",function(t){return t.candidate&&Object.defineProperty(t,"candidate",{value:new e.RTCIceCandidate(t.candidate),writable:"false"}),t})}},shimCreateObjectURL:function(e){var t=e&&e.URL;if("object"===(void 0===e?"undefined":c(e))&&e.HTMLMediaElement&&"srcObject"in e.HTMLMediaElement.prototype&&t.createObjectURL&&t.revokeObjectURL){var r=t.createObjectURL.bind(t),n=t.revokeObjectURL.bind(t),a=new Map,o=0;t.createObjectURL=function(e){if("getTracks"in e){var t="polyblob:"+ ++o;return a.set(t,e),i.deprecated("URL.createObjectURL(stream)","elem.srcObject = stream"),t}return r(e)},t.revokeObjectURL=function(e){n(e),a.delete(e)};var s=Object.getOwnPropertyDescriptor(e.HTMLMediaElement.prototype,"src");Object.defineProperty(e.HTMLMediaElement.prototype,"src",{get:function(){return s.get.apply(this)},set:function(e){return this.srcObject=a.get(e)||null,s.set.apply(this,[e])}});var d=e.HTMLMediaElement.prototype.setAttribute;e.HTMLMediaElement.prototype.setAttribute=function(){return 2===arguments.length&&"src"===(""+arguments[0]).toLowerCase()&&(this.srcObject=a.get(arguments[1])||null),d.apply(this,arguments)}}},shimMaxMessageSize:function(e){if(!e.RTCSctpTransport&&e.RTCPeerConnection){var t=i.detectBrowser(e);"sctp"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"sctp",{get:function(){return void 0===this._sctp?null:this._sctp}});var r=e.RTCPeerConnection.prototype.setRemoteDescription;e.RTCPeerConnection.prototype.setRemoteDescription=function(){if(this._sctp=null,function(e){var t=n.splitSections(e.sdp);return t.shift(),t.some(function(e){var t=n.parseMLine(e);return t&&"application"===t.kind&&-1!==t.protocol.indexOf("SCTP")})}(arguments[0])){var e,i=function(e){var t=e.sdp.match(/mozilla...THIS_IS_SDPARTA-(\d+)/);if(null===t||t.length<2)return-1;var r=parseInt(t[1],10);return r!=r?-1:r}(arguments[0]),a=function(e){var r=65536;return"firefox"===t.browser&&(r=t.version<57?-1===e?16384:2147483637:57===t.version?65535:65536),r}(i),o=function(e,r){var i=65536;"firefox"===t.browser&&57===t.version&&(i=65535);var a=n.matchPrefix(e.sdp,"a=max-message-size:");return a.length>0?i=parseInt(a[0].substr(19),10):"firefox"===t.browser&&-1!==r&&(i=2147483637),i}(arguments[0],i);e=0===a&&0===o?Number.POSITIVE_INFINITY:0===a||0===o?Math.max(a,o):Math.min(a,o);var s={};Object.defineProperty(s,"maxMessageSize",{get:function(){return e}}),this._sctp=s}return r.apply(this,arguments)}}},shimSendThrowTypeError:function(e){if(e.RTCPeerConnection&&"createDataChannel"in e.RTCPeerConnection.prototype){var t=e.RTCPeerConnection.prototype.createDataChannel;e.RTCPeerConnection.prototype.createDataChannel=function(){var e=this,r=t.apply(e,arguments),n=r.send;return r.send=function(){var t=arguments[0];if((t.length||t.size||t.byteLength)>e.sctp.maxMessageSize)throw new DOMException("Message too large (can send a maximum of "+e.sctp.maxMessageSize+" bytes)","TypeError");return n.apply(this,arguments)},r}}}}},{"./utils":13,sdp:2}],8:[function(e,t,r){var n=e("../utils"),i=e("rtcpeerconnection-shim");t.exports={shimGetUserMedia:e("./getusermedia"),shimPeerConnection:function(e){var t=n.detectBrowser(e);if(e.RTCIceGatherer&&(e.RTCIceCandidate||(e.RTCIceCandidate=function(e){return e}),e.RTCSessionDescription||(e.RTCSessionDescription=function(e){return e}),t.version<15025)){var r=Object.getOwnPropertyDescriptor(e.MediaStreamTrack.prototype,"enabled");Object.defineProperty(e.MediaStreamTrack.prototype,"enabled",{set:function(e){r.set.call(this,e);var t=new Event("enabled");t.enabled=e,this.dispatchEvent(t)}})}!e.RTCRtpSender||"dtmf"in e.RTCRtpSender.prototype||Object.defineProperty(e.RTCRtpSender.prototype,"dtmf",{get:function(){return void 0===this._dtmf&&("audio"===this.track.kind?this._dtmf=new e.RTCDtmfSender(this):"video"===this.track.kind&&(this._dtmf=null)),this._dtmf}}),e.RTCDtmfSender&&!e.RTCDTMFSender&&(e.RTCDTMFSender=e.RTCDtmfSender),e.RTCPeerConnection=i(e,t.version)},shimReplaceTrack:function(e){!e.RTCRtpSender||"replaceTrack"in e.RTCRtpSender.prototype||(e.RTCRtpSender.prototype.replaceTrack=e.RTCRtpSender.prototype.setTrack)}}},{"../utils":13,"./getusermedia":9,"rtcpeerconnection-shim":1}],9:[function(e,t,r){t.exports=function(e){var t=e&&e.navigator,r=t.mediaDevices.getUserMedia.bind(t.mediaDevices);t.mediaDevices.getUserMedia=function(e){return r(e).catch(function(e){return Promise.reject(function(e){return{name:{PermissionDeniedError:"NotAllowedError"}[e.name]||e.name,message:e.message,constraint:e.constraint,toString:function(){return this.name}}}(e))})}}},{}],10:[function(e,t,r){var n=e("../utils");t.exports={shimGetUserMedia:e("./getusermedia"),shimOnTrack:function(e){"object"!==(void 0===e?"undefined":c(e))||!e.RTCPeerConnection||"ontrack"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"ontrack",{get:function(){return this._ontrack},set:function(e){this._ontrack&&(this.removeEventListener("track",this._ontrack),this.removeEventListener("addstream",this._ontrackpoly)),this.addEventListener("track",this._ontrack=e),this.addEventListener("addstream",this._ontrackpoly=function(e){e.stream.getTracks().forEach(function(t){var r=new Event("track");r.track=t,r.receiver={track:t},r.transceiver={receiver:r.receiver},r.streams=[e.stream],this.dispatchEvent(r)}.bind(this))}.bind(this))}}),"object"===(void 0===e?"undefined":c(e))&&e.RTCTrackEvent&&"receiver"in e.RTCTrackEvent.prototype&&!("transceiver"in e.RTCTrackEvent.prototype)&&Object.defineProperty(e.RTCTrackEvent.prototype,"transceiver",{get:function(){return{receiver:this.receiver}}})},shimSourceObject:function(e){"object"===(void 0===e?"undefined":c(e))&&(!e.HTMLMediaElement||"srcObject"in e.HTMLMediaElement.prototype||Object.defineProperty(e.HTMLMediaElement.prototype,"srcObject",{get:function(){return this.mozSrcObject},set:function(e){this.mozSrcObject=e}}))},shimPeerConnection:function(e){var t=n.detectBrowser(e);if("object"===(void 0===e?"undefined":c(e))&&(e.RTCPeerConnection||e.mozRTCPeerConnection)){e.RTCPeerConnection||(e.RTCPeerConnection=function(r,n){if(t.version<38&&r&&r.iceServers){for(var i=[],a=0;a55&&"autoGainControl"in r.mediaDevices.getSupportedConstraints())){var p=function(e,t,r){t in e&&!(r in e)&&(e[r]=e[t],delete e[t])},l=r.mediaDevices.getUserMedia.bind(r.mediaDevices);if(r.mediaDevices.getUserMedia=function(e){return"object"===(void 0===e?"undefined":c(e))&&"object"===c(e.audio)&&(e=JSON.parse(JSON.stringify(e)),p(e.audio,"autoGainControl","mozAutoGainControl"),p(e.audio,"noiseSuppression","mozNoiseSuppression")),l(e)},a&&a.prototype.getSettings){var f=a.prototype.getSettings;a.prototype.getSettings=function(){var e=f.apply(this,arguments);return p(e,"mozAutoGainControl","autoGainControl"),p(e,"mozNoiseSuppression","noiseSuppression"),e}}if(a&&a.prototype.applyConstraints){var m=a.prototype.applyConstraints;a.prototype.applyConstraints=function(e){return"audio"===this.kind&&"object"===(void 0===e?"undefined":c(e))&&(e=JSON.parse(JSON.stringify(e)),p(e,"autoGainControl","mozAutoGainControl"),p(e,"noiseSuppression","mozNoiseSuppression")),m.apply(this,[e])}}}r.getUserMedia=function(e,i,a){if(t.version<44)return s(e,i,a);n.deprecated("navigator.getUserMedia","navigator.mediaDevices.getUserMedia"),r.mediaDevices.getUserMedia(e).then(i,a)}}},{"../utils":13}],12:[function(e,t,r){var n=e("../utils");t.exports={shimLocalStreamsAPI:function(e){if("object"===(void 0===e?"undefined":c(e))&&e.RTCPeerConnection){if("getLocalStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getLocalStreams=function(){return this._localStreams||(this._localStreams=[]),this._localStreams}),"getStreamById"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getStreamById=function(e){var t=null;return this._localStreams&&this._localStreams.forEach(function(r){r.id===e&&(t=r)}),this._remoteStreams&&this._remoteStreams.forEach(function(r){r.id===e&&(t=r)}),t}),!("addStream"in e.RTCPeerConnection.prototype)){var t=e.RTCPeerConnection.prototype.addTrack;e.RTCPeerConnection.prototype.addStream=function(e){this._localStreams||(this._localStreams=[]),-1===this._localStreams.indexOf(e)&&this._localStreams.push(e);var r=this;e.getTracks().forEach(function(n){t.call(r,n,e)})},e.RTCPeerConnection.prototype.addTrack=function(e,r){return r&&(this._localStreams?-1===this._localStreams.indexOf(r)&&this._localStreams.push(r):this._localStreams=[r]),t.call(this,e,r)}}"removeStream"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.removeStream=function(e){this._localStreams||(this._localStreams=[]);var t=this._localStreams.indexOf(e);if(-1!==t){this._localStreams.splice(t,1);var r=this,n=e.getTracks();this.getSenders().forEach(function(e){-1!==n.indexOf(e.track)&&r.removeTrack(e)})}})}},shimRemoteStreamsAPI:function(e){"object"===(void 0===e?"undefined":c(e))&&e.RTCPeerConnection&&("getRemoteStreams"in e.RTCPeerConnection.prototype||(e.RTCPeerConnection.prototype.getRemoteStreams=function(){return this._remoteStreams?this._remoteStreams:[]}),"onaddstream"in e.RTCPeerConnection.prototype||Object.defineProperty(e.RTCPeerConnection.prototype,"onaddstream",{get:function(){return this._onaddstream},set:function(e){var t=this;this._onaddstream&&(this.removeEventListener("addstream",this._onaddstream),this.removeEventListener("track",this._onaddstreampoly)),this.addEventListener("addstream",this._onaddstream=e),this.addEventListener("track",this._onaddstreampoly=function(e){e.streams.forEach(function(e){if(t._remoteStreams||(t._remoteStreams=[]),!(t._remoteStreams.indexOf(e)>=0)){t._remoteStreams.push(e);var r=new Event("addstream");r.stream=e,t.dispatchEvent(r)}})})}}))},shimCallbacksAPI:function(e){if("object"===(void 0===e?"undefined":c(e))&&e.RTCPeerConnection){var t=e.RTCPeerConnection.prototype,r=t.createOffer,n=t.createAnswer,i=t.setLocalDescription,a=t.setRemoteDescription,o=t.addIceCandidate;t.createOffer=function(e,t){var n=arguments.length>=2?arguments[2]:arguments[0],i=r.apply(this,[n]);return t?(i.then(e,t),Promise.resolve()):i},t.createAnswer=function(e,t){var r=arguments.length>=2?arguments[2]:arguments[0],i=n.apply(this,[r]);return t?(i.then(e,t),Promise.resolve()):i};var s=function(e,t,r){var n=i.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n};t.setLocalDescription=s,s=function(e,t,r){var n=a.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.setRemoteDescription=s,s=function(e,t,r){var n=o.apply(this,[e]);return r?(n.then(t,r),Promise.resolve()):n},t.addIceCandidate=s}},shimGetUserMedia:function(e){var t=e&&e.navigator;t.getUserMedia||(t.webkitGetUserMedia?t.getUserMedia=t.webkitGetUserMedia.bind(t):t.mediaDevices&&t.mediaDevices.getUserMedia&&(t.getUserMedia=function(e,r,n){t.mediaDevices.getUserMedia(e).then(r,n)}.bind(t)))},shimRTCIceServerUrls:function(e){var t=e.RTCPeerConnection;e.RTCPeerConnection=function(e,r){if(e&&e.iceServers){for(var i=[],a=0;a=r&&parseInt(n[r],10)}t.exports={extractVersion:a,wrapPeerConnectionEvent:function(e,t,r){if(e.RTCPeerConnection){var n=e.RTCPeerConnection.prototype,i=n.addEventListener;n.addEventListener=function(e,n){if(e!==t)return i.apply(this,arguments);var a=function(e){n(r(e))};return this._eventMap=this._eventMap||{},this._eventMap[n]=a,i.apply(this,[e,a])};var a=n.removeEventListener;n.removeEventListener=function(e,r){if(e!==t||!this._eventMap||!this._eventMap[r])return a.apply(this,arguments);var n=this._eventMap[r];return delete this._eventMap[r],a.apply(this,[e,n])},Object.defineProperty(n,"on"+t,{get:function(){return this["_on"+t]},set:function(e){this["_on"+t]&&(this.removeEventListener(t,this["_on"+t]),delete this["_on"+t]),e&&this.addEventListener(t,this["_on"+t]=e)}})}},disableLog:function(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":c(e))+". Please use a boolean."):(n=e,e?"adapter.js logging disabled":"adapter.js logging enabled")},disableWarnings:function(e){return"boolean"!=typeof e?new Error("Argument type: "+(void 0===e?"undefined":c(e))+". Please use a boolean."):(i=!e,"adapter.js deprecation warnings "+(e?"disabled":"enabled"))},log:function(){if("object"===("undefined"==typeof window?"undefined":c(window))){if(n)return;"undefined"!=typeof console&&"function"==typeof console.log&&console.log.apply(console,arguments)}},deprecated:function(e,t){i&&console.warn(e+" is deprecated, please use "+t+" instead.")},detectBrowser:function(e){var t=e&&e.navigator,r={browser:null,version:null};if(void 0===e||!e.navigator)return r.browser="Not a browser.",r;if(t.mozGetUserMedia)r.browser="firefox",r.version=a(t.userAgent,/Firefox\/(\d+)\./,1);else if(t.webkitGetUserMedia)r.browser="chrome",r.version=a(t.userAgent,/Chrom(e|ium)\/(\d+)\./,2);else if(t.mediaDevices&&t.userAgent.match(/Edge\/(\d+).(\d+)$/))r.browser="edge",r.version=a(t.userAgent,/Edge\/(\d+).(\d+)$/,2);else{if(!e.RTCPeerConnection||!t.userAgent.match(/AppleWebKit\/(\d+)\./))return r.browser="Not a supported browser.",r;r.browser="safari",r.version=a(t.userAgent,/AppleWebKit\/(\d+)\./,1)}return r}}},{}]},{},[3])(3)})}).call(this,r(65))},73:function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=c(r(307)),i=c(r(384)),a=r(27),o=r(303),s=r(1);function c(e){return e&&e.__esModule?e:{default:e}}t.default=function(e,t,r){var c={},d=null,u=null,p={name:s.PROVIDER_WEBRTC,element:e,mse:null,listener:null,isLoaded:!1,canSeek:!1,isLive:!1,seeking:!1,state:s.STATE_IDLE,buffer:0,framerate:0,currentQuality:-1,currentSource:-1,qualityLevels:[],sources:[],adTagUrl:r};return c=(0,n.default)(p,t,function(r){(0,a.isWebRTC)(r.file,r.type)&&(OvenPlayerConsole.log("WEBRTC : onBeforeLoad : ",r),d&&(d.destroy(),d=null),(d=(0,i.default)(c,r.file,function(t){e.srcObject&&(e.srcObject=null),e.srcObject=t},o.errorTrigger,t)).connect(function(){}).catch(function(e){}),c.on(s.CONTENT_META,function(){t.isAutoStart()&&"error"!==c.getState()&&c.play()},c))}),u=c.super("destroy"),OvenPlayerConsole.log("WEBRTC PROVIDER LOADED."),c.destroy=function(){d&&(d.destroy(),e.srcObject=null,d=null),c.off(s.CONTENT_META,null,c),OvenPlayerConsole.log("WEBRTC : PROVIDER DESTROYED."),u()},c}}}]); \ No newline at end of file diff --git a/ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE b/ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE new file mode 100644 index 0000000..222fc1f --- /dev/null +++ b/ghostream/static/ovenplayer/ovenplayer.provider.WebRTCProvider-0.9.0.js.LICENSE @@ -0,0 +1 @@ +/*! OvenPlayerv0.9.0 | (c)2020 AirenSoft Co., Ltd. | MIT license (https://github.com/AirenSoft/OvenPlayerPrivate/blob/master/LICENSE) | Github : https://github.com/AirenSoft/OvenPlayer */