0||(e?n.currentTime-i>=0?n.currentTime-=i:n.currentTime=0:n.maxPlayedTime&&n.config.allowSeekPlayed&&n.currentTime+i>n.maxPlayedTime?n.currentTime=n.maxPlayedTime:n.currentTime+i<=n.duration?n.currentTime+=i:n.currentTime=n.duration+1)}},{key:"changeRate",value:function(){this.state.playbackRate=this.player.playbackRate,this.player.playbackRate=this.player.config.keyboardRate||5}},{key:"changeVolumeSlide",value:function(e){var t=this.player;t.controls&&(e?(t.emit("focus"),(0,i.hasClass)(t.root,"xgplayer-volume-active")||(0,i.addClass)(t.root,"xgplayer-volume-active")):(clearTimeout(this.timer),this.timer=setTimeout((function(){(0,i.removeClass)(t.root,"xgplayer-volume-active")}),1e3)))}},{key:"changeVolume",value:function(e){var t=this.player,n=t.config.keyShortcutStep||{},r=n.volume||.1;this.changeVolumeSlide(!0);var i=t.volume;e&&i+r<=1?t.volume=i+r:!e&&i-r>=0&&(t.volume=i-r)}}]),e}(),l=function(){var e=this;e.keyboard=new o(e)};t.default={name:"keyboard",method:l},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=function(){var e=this,t=e.root;function n(n){e.uploadFile=n.files[0];var i=URL.createObjectURL(e.uploadFile);if((0,r.hasClass)(t,"xgplayer-nostart"))e.config.url=i,e.start();else{e.src=i;var a=e.play();void 0!==a&&a&&a.catch((function(e){}))}}function i(){e.off("upload",n),e.off("destroy",i)}e.on("upload",n),e.once("destroy",i)};t.default={name:"localPreview",method:i},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=this;e.on("memoryPlayStart",(function(t){setTimeout((function(){console.log("memoryPlayStart",t,e.readyState,11),e.currentTime=t}))}))};t.default={name:"memoryPlay",method:r},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(93),a=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var l=function(){var e=this,t=e.root;function n(){(0,r.hasClass)(t,"xgplayer-miniplayer-active")?e.exitMiniplayer():e.getMiniplayer()}function i(){e.off("miniplayerBtnClick",n),e.off("destroy",i)}e.on("miniplayerBtnClick",n),e.once("destroy",i),e.getMiniplayer=function(){(0,r.hasClass)(t,"xgplayer-is-fullscreen")&&this.exitFullscreen(t),(0,r.hasClass)(t,"xgplayer-is-cssfullscreen")&&this.exitCssFullscreen(),(0,r.hasClass)(t,"xgplayer-rotate-fullscreen")&&this.exitRotateFullscreen();var e=(0,r.createDom)("xg-miniplayer-lay","",{},"xgplayer-miniplayer-lay");this.root.appendChild(e);var n=(0,r.createDom)("xg-miniplayer-drag",''+this.lang.MINIPLAYER_DRAG+"
",{tabindex:9},"xgplayer-miniplayer-drag");this.root.appendChild(n);new a.default(".xgplayer",{handle:".drag-handle"});(0,r.addClass)(this.root,"xgplayer-miniplayer-active"),this.root.style.right=0,this.root.style.bottom="200px",this.root.style.top="",this.root.style.left="",this.root.style.width="320px",this.root.style.height="180px",this.config.miniplayerConfig&&(void 0!==this.config.miniplayerConfig.top&&(this.root.style.top=this.config.miniplayerConfig.top+"px",this.root.style.bottom=""),void 0!==this.config.miniplayerConfig.bottom&&(this.root.style.bottom=this.config.miniplayerConfig.bottom+"px"),void 0!==this.config.miniplayerConfig.left&&(this.root.style.left=this.config.miniplayerConfig.left+"px",this.root.style.right=""),void 0!==this.config.miniplayerConfig.right&&(this.root.style.right=this.config.miniplayerConfig.right+"px"),void 0!==this.config.miniplayerConfig.width&&(this.root.style.width=this.config.miniplayerConfig.width+"px"),void 0!==this.config.miniplayerConfig.height&&(this.root.style.height=this.config.miniplayerConfig.height+"px")),this.config.fluid&&(this.root.style["padding-top"]="");var i=this;["click","touchend"].forEach((function(t){e.addEventListener(t,(function(e){e.preventDefault(),e.stopPropagation(),i.exitMiniplayer()}))}))},e.exitMiniplayer=function(){(0,r.removeClass)(this.root,"xgplayer-miniplayer-active"),this.root.style.right="",this.root.style.bottom="",this.root.style.top="",this.root.style.left="",this.config.fluid?(this.root.style["width"]="100%",this.root.style["height"]="0",this.root.style["padding-top"]=100*this.config.height/this.config.width+"%"):(this.config.width&&("number"!==typeof this.config.width?this.root.style.width=this.config.width:this.root.style.width=this.config.width+"px"),this.config.height&&("number"!==typeof this.config.height?this.root.style.height=this.config.height:this.root.style.height=this.config.height+"px"));var e=(0,r.findDom)(this.root,".xgplayer-miniplayer-lay");e&&e.parentNode&&e.parentNode.removeChild(e);var t=(0,r.findDom)(this.root,".xgplayer-miniplayer-drag");t&&t.parentNode&&t.parentNode.removeChild(t)}};t.default={name:"miniplayer",method:l},e.exports=t["default"]},function(e,t,n){var r,i;
/*!
* Draggabilly v2.3.0
* Make that shiz draggable
* https://draggabilly.desandro.com
* MIT license
*/(function(a,o){r=[n(94),n(95)],i=function(e,t){return o(a,e,t)}.apply(t,r),void 0===i||(e.exports=i)})(window,(function(e,t,n){function r(e,t){for(var n in t)e[n]=t[n];return e}function i(){}var a=e.jQuery;function o(e,t){this.element="string"==typeof e?document.querySelector(e):e,a&&(this.$element=a(this.element)),this.options=r({},this.constructor.defaults),this.option(t),this._create()}var l=o.prototype=Object.create(n.prototype);o.defaults={},l.option=function(e){r(this.options,e)};var s={relative:!0,absolute:!0,fixed:!0};function u(e,t,n){return n=n||"round",t?Math[n](e/t)*t:e}return l._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=r({},this.position);var e=getComputedStyle(this.element);s[e.position]||(this.element.style.position="relative"),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},l.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},l.dispatchEvent=function(e,t,n){var r=[t].concat(n);this.emitEvent(e,r),this.dispatchJQueryEvent(e,t,n)},l.dispatchJQueryEvent=function(t,n,r){var i=e.jQuery;if(i&&this.$element){var a=i.Event(n);a.type=t,this.$element.trigger(a,r)}},l._getPosition=function(){var e=getComputedStyle(this.element),t=this._getPositionCoord(e.left,"width"),n=this._getPositionCoord(e.top,"height");this.position.x=isNaN(t)?0:t,this.position.y=isNaN(n)?0:n,this._addTransformPosition(e)},l._getPositionCoord=function(e,n){if(-1!=e.indexOf("%")){var r=t(this.element.parentNode);return r?parseFloat(e)/100*r[n]:0}return parseInt(e,10)},l._addTransformPosition=function(e){var t=e.transform;if(0===t.indexOf("matrix")){var n=t.split(","),r=0===t.indexOf("matrix3d")?12:4,i=parseInt(n[r],10),a=parseInt(n[r+1],10);this.position.x+=i,this.position.y+=a}},l.onPointerDown=function(e,t){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",e,[t])},l.pointerDown=function(e,t){var n=this.okayPointerDown(e);n&&this.isEnabled?(this.pointerDownPointer={pageX:t.pageX,pageY:t.pageY},e.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(e),this.element.classList.add("is-pointer-down"),this.dispatchEvent("pointerDown",e,[t])):this._pointerReset()},l.dragStart=function(e,t){this.isEnabled&&(this._getPosition(),this.measureContainment(),this.startPosition.x=this.position.x,this.startPosition.y=this.position.y,this.setLeftTop(),this.dragPoint.x=0,this.dragPoint.y=0,this.element.classList.add("is-dragging"),this.dispatchEvent("dragStart",e,[t]),this.animate())},l.measureContainment=function(){var e=this.getContainer();if(e){var n=t(this.element),r=t(e),i=this.element.getBoundingClientRect(),a=e.getBoundingClientRect(),o=r.borderLeftWidth+r.borderRightWidth,l=r.borderTopWidth+r.borderBottomWidth,s=this.relativeStartPosition={x:i.left-(a.left+r.borderLeftWidth),y:i.top-(a.top+r.borderTopWidth)};this.containSize={width:r.width-o-s.x-n.width,height:r.height-l-s.y-n.height}}},l.getContainer=function(){var e=this.options.containment;if(e){var t=e instanceof HTMLElement;return t?e:"string"==typeof e?document.querySelector(e):this.element.parentNode}},l.onPointerMove=function(e,t,n){this.dispatchJQueryEvent("pointerMove",e,[t,n])},l.dragMove=function(e,t,n){if(this.isEnabled){var r=n.x,i=n.y,a=this.options.grid,o=a&&a[0],l=a&&a[1];r=u(r,o),i=u(i,l),r=this.containDrag("x",r,o),i=this.containDrag("y",i,l),r="y"==this.options.axis?0:r,i="x"==this.options.axis?0:i,this.position.x=this.startPosition.x+r,this.position.y=this.startPosition.y+i,this.dragPoint.x=r,this.dragPoint.y=i,this.dispatchEvent("dragMove",e,[t,n])}},l.containDrag=function(e,t,n){if(!this.options.containment)return t;var r="x"==e?"width":"height",i=this.relativeStartPosition[e],a=u(-i,n,"ceil"),o=this.containSize[r];return o=u(o,n,"floor"),Math.max(a,Math.min(o,t))},l.onPointerUp=function(e,t){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",e,[t])},l.dragEnd=function(e,t){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",e,[t]))},l.animate=function(){if(this.isDragging){this.positionDrag();var e=this;requestAnimationFrame((function(){e.animate()}))}},l.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},l.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},l.staticClick=function(e,t){this.dispatchEvent("staticClick",e,[t])},l.setPosition=function(e,t){this.position.x=e,this.position.y=t,this.setLeftTop()},l.enable=function(){this.isEnabled=!0},l.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},l.destroy=function(){this.disable(),this.element.style.transform="",this.element.style.left="",this.element.style.top="",this.element.style.position="",this.unbindHandles(),this.$element&&this.$element.removeData("draggabilly")},l._init=i,a&&a.bridget&&a.bridget("draggabilly",o),o}))},function(e,t,n){var r,i;
/*!
* getSize v2.0.3
* measure size of elements
* MIT license
*/(function(a,o){r=o,i="function"===typeof r?r.call(t,n,t,e):r,void 0===i||(e.exports=i)})(window,(function(){"use strict";function e(e){var t=parseFloat(e),n=-1==e.indexOf("%")&&!isNaN(t);return n&&t}function t(){}var n="undefined"==typeof console?t:function(e){console.error(e)},r=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],i=r.length;function a(){for(var e={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},t=0;t3||Math.abs(e.y)>3},r.pointerUp=function(e,t){this.emitEvent("pointerUp",[e,t]),this._dragPointerUp(e,t)},r._dragPointerUp=function(e,t){this.isDragging?this._dragEnd(e,t):this._staticClick(e,t)},r._dragStart=function(e,t){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(e,t)},r.dragStart=function(e,t){this.emitEvent("dragStart",[e,t])},r._dragMove=function(e,t,n){this.isDragging&&this.dragMove(e,t,n)},r.dragMove=function(e,t,n){e.preventDefault(),this.emitEvent("dragMove",[e,t,n])},r._dragEnd=function(e,t){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(e,t)},r.dragEnd=function(e,t){this.emitEvent("dragEnd",[e,t])},r.onclick=function(e){this.isPreventingClicks&&e.preventDefault()},r._staticClick=function(e,t){this.isIgnoringMouseUp&&"mouseup"==e.type||(this.staticClick(e,t),"mouseup"!=e.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},r.staticClick=function(e,t){this.emitEvent("staticClick",[e,t])},n.getPointerPoint=t.getPointerPoint,n}))},function(e,t,n){var r,i;
/*!
* Unipointer v2.3.0
* base class for doing one thing with pointer event
* MIT license
*/(function(a,o){r=[n(97)],i=function(e){return o(a,e)}.apply(t,r),void 0===i||(e.exports=i)})(window,(function(e,t){"use strict";function n(){}function r(){}var i=r.prototype=Object.create(t.prototype);i.bindStartEvent=function(e){this._bindStartEvent(e,!0)},i.unbindStartEvent=function(e){this._bindStartEvent(e,!1)},i._bindStartEvent=function(t,n){n=void 0===n||n;var r=n?"addEventListener":"removeEventListener",i="mousedown";e.PointerEvent?i="pointerdown":"ontouchstart"in e&&(i="touchstart"),t[r](i,this)},i.handleEvent=function(e){var t="on"+e.type;this[t]&&this[t](e)},i.getTouch=function(e){for(var t=0;tn/t){var o=0;o=i/r>n/t?n*r/i:t,a=n/o}else{var l=0;l=i/r>n/t?n:t*i/r,a=t/l}else a=t>=n?t/n:n/t;a=Number(a.toFixed(5))}else a=1;e.config.rotate.innerRotate||e.config.rotate.controlsFix?(e.video.style.transformOrigin="center center",e.video.style.transform="rotate("+e.rotateDeg+"turn) scale("+a+")",e.video.style.webKitTransform="rotate("+e.rotateDeg+"turn) scale("+a+")"):(e.root.style.transformOrigin="center center",e.root.style.transform="rotate("+e.rotateDeg+"turn) scale(1)",e.root.style.webKitTransform="rotate("+e.rotateDeg+"turn) scale(1)")},e.rotate=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,n=this;n.rotateDeg||(n.rotateDeg=0);var r=e?1:-1;n.rotateDeg=(n.rotateDeg+1+.25*r*t)%1,this.updateRotateDeg(),n.emit("rotate",360*n.rotateDeg)})};t.default={name:"rotate",method:r},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){var e=this,t=e.config.screenShot;if(t){e.video.setAttribute("crossOrigin","anonymous");var n=.92;(t.quality||0===t.quality)&&(n=t.quality);var r=void 0===t.type?"image/png":t.type,i=void 0===t.format?".png":t.format,a=document.createElement("canvas"),o=a.getContext("2d"),l=new Image;a.width=this.config.width||600,a.height=this.config.height||337.5;var s=function(e,t){var n=document.createElement("a");n.href=e,n.download=t;var r=document.createEvent("MouseEvents");r.initMouseEvent("click",!0,!1,window,0,0,0,0,0,!1,!1,!1,!1,0,null),n.dispatchEvent(r)};e.screenShot=function(){var u=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];u=void 0===t.saveImg?u:t.saveImg,a.width=e.video.videoWidth||600,a.height=e.video.videoHeight||337.5,l.onload=function(){o.drawImage(e.video,0,0,a.width,a.height),l.src=a.toDataURL(r,n).replace(r,"image/octet-stream");var t=l.src.replace(/^data:image\/[^;]+/,"data:application/octet-stream");e.emit("screenShot",t),u&&s(t,"截图"+i)}()},e.on("screenShotBtnClick",e.screenShot),e.once("destroy",u)}function u(){e.off("screenShotBtnClick",e.screenShot),e.off("destroy",u)}};t.default={name:"screenShot",method:r},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(4),i=a(r);function a(e){return e&&e.__esModule?e:{default:e}}function o(){var e=this;if(e.config.enableStallCheck){var t=0,n=void 0,r=void 0;e.once("complete",(function(){setInterval((function(){e.currentTime-(t||0)>.1||e.paused?1!==n&&2!==n||(n=0,clearTimeout(r),r=null):n||(n=1,r=setTimeout((function(){1===n&&(n=2,e.emit("error",new i.default("STALL"))),r=null}),2e4)),t=e.currentTime}),1e3)}))}}t.default={name:"stallCheck",method:o},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),i=n(5),a=o(i);function o(e){return e&&e.__esModule?e:{default:e}}var l=function(){var e=this,t=e.root,n=void 0,i=void 0,o=void 0,l=void 0;function s(){e.controls&&(e.volume=e.config.volume,n=e.controls.querySelector(".xgplayer-volume"),n&&(i=n.querySelector(".xgplayer-slider"),o=n.querySelector(".xgplayer-bar"),l=n.querySelector(".xgplayer-drag"),"mobile"===a.default.device&&(0===e.volume&&(e.video.muted=!0),g())))}function u(t){if(i){e.video.muted=!1,i.focus(),(0,r.event)(t);var n=o.getBoundingClientRect(),a={x:t.clientX,y:t.clientY},s=l.getBoundingClientRect().height,u=!1,c=function(t){t.preventDefault(),t.stopPropagation(),(0,r.event)(t),u=!0;var i=s-t.clientY+a.y,o=i/n.height;l.style.height=i+"px",e.volume=Math.max(Math.min(o,1),0)},p=function t(a){if(a.preventDefault(),a.stopPropagation(),(0,r.event)(a),window.removeEventListener("mousemove",c),window.removeEventListener("touchmove",c),window.removeEventListener("mouseup",t),window.removeEventListener("touchend",t),!u){var o=n.height-(a.clientY-n.top),s=o/n.height;l.style.height=o+"px",s<=0&&(e.volume>0?l.volume=e.video.volume:s=l.volume),e.volume=Math.max(Math.min(s,1),0)}i.volume=e.volume,u=!1};return window.addEventListener("mousemove",c),window.addEventListener("touchmove",c),window.addEventListener("mouseup",p),window.addEventListener("touchend",p),!1}}function c(){if("mobile"===a.default.device)e.video.muted?(e.video.muted=!1,e.emit("unmute"),e.volume=1):(e.video.muted=!0,e.emit("mute"),e.volume=0);else{if(!i)return;e.video.muted=!1,e.volume<.1?(i.volume<.1?e.volume=.6:e.volume=i.volume,e.emit("unmute")):(e.volume=0,e.emit("mute"))}}function p(){(0,r.addClass)(t,"xgplayer-volume-active"),n&&n.focus()}function d(){(0,r.removeClass)(t,"xgplayer-volume-active")}e.once("canplay",s),e.on("volumeBarClick",u),e.on("volumeIconClick",c),e.on("volumeIconEnter",p),e.on("volumeIconLeave",d);var f=null;function g(){f&&clearTimeout(f),f=setTimeout((function(){if("mobile"===a.default.device)(0,r.removeClass)(t,"xgplayer-volume-muted"),(0,r.removeClass)(t,"xgplayer-volume-large"),e.video.muted||e.video.defaultMuted?(e.video.muted||(e.video.muted=!0),e.video.defaultMuted=!1,(0,r.addClass)(t,"xgplayer-volume-muted")):(0,r.addClass)(t,"xgplayer-volume-large");else{if((0,r.removeClass)(t,"xgplayer-volume-muted"),(0,r.removeClass)(t,"xgplayer-volume-small"),(0,r.removeClass)(t,"xgplayer-volume-large"),0===e.volume||e.muted?(0,r.addClass)(t,"xgplayer-volume-muted"):e.volume<.5?(0,r.addClass)(t,"xgplayer-volume-small"):(0,r.addClass)(t,"xgplayer-volume-large"),!o)return;var n=o.getBoundingClientRect().height||76;l.style.height=e.volume*n+"px"}}),50)}function h(){e.off("canplay",s),e.off("volumeBarClick",u),e.off("volumeIconClick",c),e.off("volumeIconEnter",p),e.off("volumeIconLeave",d),e.off("volumechange",g),e.off("destroy",h),f&&(clearTimeout(f),f=null)}e.on("volumechange",g),e.once("destroy",h)};t.default={name:"volume",method:l},e.exports=t["default"]},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(e,t){for(var n=0;n1&&void 0!==arguments[1]?arguments[1]:{},n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],r={subTitles:e,defaultOpen:n};return Object.keys(t).map((function(e){r[e]=t[e]})),new a.default(r)}},{key:"switch",value:function(e){return this.subtitle.switch(e)}},{key:"switchOff",value:function(){return this.subtitle.switchOff()}},{key:"setSubTitles",value:function(e,t,n){return this.subtitle.setSubTitles(e,t,n)}},{key:"onFocus",value:function(){var e=this.positionData,t=e.marginBottom,n=e.vBottom;if(!this.isActive&&t){this.isActive=!0;var r=t+n;this.followBottom>r&&(r=this.followBottom),this.subtitle&&(this.subtitle.root.style.bottom=r+"px")}}},{key:"onBlur",value:function(){this.isActive=!1;var e=this.positionData.vBottom+this.positionData.marginBottom;this.subtitle&&(this.subtitle.root.style.bottom=e+"px")}},{key:"onSubtitleResize",value:function(e){this.positionData.vBottom=e.vBottom,this.positionData.marginBottom=e.marginBottom}},{key:"destroy",value:function(){this.subtitle.off("resize",this.onSubtitleResize),this.player.off("focus",this.onFocus),this.player.off("blur",this.onBlur),this.subtitle.destroy(),this.subtitle=null}}]),e}(),c=function(){var e=this,t=this,n=t.config.textTrack;if(n){var r=t.config.textTrackStyle||{};Object.keys(s).map((function(e){void 0===r[e]&&(r[e]=s[e])})),t.textTrackShowDefault=!1,t.config.textTrack.map((function(e,n){e.id||e.language||(e.id=n),!e.url&&(e.url=e.src),!e.language&&(e.language=e.srclang),void 0===e.isDefault&&(e.isDefault=e.default),!t.textTrackShowDefault&&(t.textTrackShowDefault=e.isDefault||e.default)})),this.subTitles=new u(t,t.config.textTrack,r),t.setSubTitles=function(n){var r=!(arguments.length>1&&void 0!==arguments[1])||arguments[1],i=!1;n.map((function(e,t){e.id||e.language||(e.id=t),!e.url&&(e.url=e.src),!e.language&&(e.language=e.srclang),void 0===e.isDefault&&(e.isDefault=e.default),e.isDefault&&(i=!0)})),t.textTrackShowDefault=i,e.subTitles.setSubTitles(n,i,r),t.emit("subtitle_change",{off:!1,isListUpdate:!0,list:n})},t.switchSubTitle=function(){var n=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{id:"",language:""};e.subTitles.switch(n).then((function(e){0===e.code&&(n.off=!1,n.isListUpdate=!1,n.list=[],t.emit("subtitle_change",n))}))},t.switchOffSubtile=function(){e.subTitles.switchOff(),t.emit("subtitle_change",{off:!0,isListUpdate:!1,list:[]})},t.once("destroy",i)}function i(){this.subTitles.destroy(),this.subTitles=null}};t.default={name:"textTrack",method:c},e.exports=t["default"]},function(e,t,n){!function(t,n){e.exports=n()}(0,(function(){"use strict";function e(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function t(e,t){return t={exports:{}},e(t,t.exports),t.exports}function n(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=z(t),this.reject=z(n)}function r(e){var t=e.length;return 3===t?(60*(60*Number(e[0])+Number(e[1]))*1e3+1e3*Number(e[2]))/1e3:2===t?(60*Number(e[0])*1e3+1e3*Number(e[1]))/1e3:Number(e[0])}function i(e){return/^(\-|\+)?\d+(\.\d+)?$/.test(e)}function a(e){return e}function o(e,t){return e>=0&&e=r?r-1:n,t[n].start<=e&&et[i].end&&i+1t[i].end&&i+1>=r)return-1}return-1}function p(e,t,n){var r=t.length;if(r<1)return[];var i=[];if((n=n<0?0:n>=r?r-1:n)0&&void 0!==arguments[0]?arguments[0]:"div",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:"",i=document.createElement(e);return i.className=r,i.innerHTML=t,wr(n).forEach((function(t){var r=t,a=n[t];"video"===e||"audio"===e||"live-video"===e?a&&i.setAttribute(r,a):i.setAttribute(r,a)})),i}function g(){var e=navigator.userAgent,t=/(?:Windows Phone)/.test(e),n=/(?:SymbianOS)/.test(e)||t,r=/(?:Android)/.test(e),i=/(?:Firefox)/.test(e),a=/(?:iPad|PlayBook)/.test(e)||r&&!/(?:Mobile)/.test(e)||i&&/(?:Tablet)/.test(e);return/(?:iPhone)/.test(e)&&!a||r||n||a}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",n="";e.map((function(e){n+=" "+t+" "+e.key+" {"+e.style+"}"}));var r=document.createElement("style"),i=document.head||document.getElementsByTagName("head")[0];if(r.type="text/css",r.id="ssss",r.styleSheet){var a=function(){try{r.styleSheet.cssText=n}catch(e){}};r.styleSheet.disabled?setTimeout(a,10):a()}else{var o=document.createTextNode(n);r.appendChild(o)}i.appendChild(r)}function y(e,t){Ir||(Ir=new jr),Ir.addObserver(e,t)}function v(e,t){Ir&&Ir.unObserver(e,t)}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n={code:zr[e].code,msg:zr[e].msg};return wr(t).map((function(e){n[e]=t[e]})),n}function m(e,t,n,r,i){i?n(x(2,i),{format:r.format}):r.format?(e.list=r.list,e.format=r.format,e.styles=r.styles,t(e)):n(x(3))}function b(e){return new br((function(t,n){if(e.list)t(e);else{if(e.json){var r=Dr.parseJson(e.json);return e.list=r,e.format="json",void t(e)}if(e.stringContent&&!e.url)Dr.parse(e.stringContent,(function(r,i){m(e,t,n,r,i)}));else if(e.url)new Er({url:e.url,type:"text"}).then((function(r){Dr.parse(r.res.response,(function(r,i){m(e,t,n,r,i)}))})).catch((function(t){var r=x(1,{statusText:t.statusText,status:t.status,type:t.type,message:"http load error",url:e.url});n(r)}));else{var i=x(8);n(i)}}}))}function k(e,t){return!!(e.id&&e.id===t.id||e.language&&e.language===t.language)}var w=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e},_=function(e){return Object(w(e))},E={}.hasOwnProperty,T=function(e,t){return E.call(e,t)},C=t((function(e){var t=e.exports={version:"2.6.12"};"number"==typeof __e&&(__e=t)})),S=(C.version,t((function(e){var t=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=t)}))),P=t((function(e){var t=S["__core-js_shared__"]||(S["__core-js_shared__"]={});(e.exports=function(e,n){return t[e]||(t[e]=void 0!==n?n:{})})("versions",[]).push({version:C.version,mode:"pure",copyright:"© 2020 Denis Pushkarev (zloirock.ru)"})})),O=0,L=Math.random(),M=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++O+L).toString(36))},R=P("keys"),A=function(e){return R[e]||(R[e]=M(e))},D=A("IE_PROTO"),j=Object.prototype,I=Object.getPrototypeOf||function(e){return e=_(e),T(e,D)?e[D]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?j:null},z=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e},B=function(e,t,n){if(z(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,r){return e.call(t,n,r)};case 3:return function(n,r,i){return e.call(t,n,r,i)}}return function(){return e.apply(t,arguments)}},N=function(e){return"object"==typeof e?null!==e:"function"==typeof e},F=function(e){if(!N(e))throw TypeError(e+" is not an object!");return e},q=function(e){try{return!!e()}catch(e){return!0}},H=!q((function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})),U=S.document,W=N(U)&&N(U.createElement),V=function(e){return W?U.createElement(e):{}},Y=!H&&!q((function(){return 7!=Object.defineProperty(V("div"),"a",{get:function(){return 7}}).a})),K=function(e,t){if(!N(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!N(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!N(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!N(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")},X=Object.defineProperty,G={f:H?Object.defineProperty:function(e,t,n){if(F(e),t=K(t,!0),F(n),Y)try{return X(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){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}},J=H?function(e,t,n){return G.f(e,t,$(1,n))}:function(e,t,n){return e[t]=n,e},Z=function(e,t,n){var r,i,a,o=e&Z.F,l=e&Z.G,s=e&Z.S,u=e&Z.P,c=e&Z.B,p=e&Z.W,d=l?C:C[t]||(C[t]={}),f=d.prototype,g=l?S:s?S[t]:(S[t]||{}).prototype;for(r in l&&(n=t),n)(i=!o&&g&&void 0!==g[r])&&T(d,r)||(a=i?g[r]:n[r],d[r]=l&&"function"!=typeof g[r]?n[r]:c&&i?B(a,S):p&&g[r]==a?function(e){var t=function(t,n,r){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,r)}return e.apply(this,arguments)};return t.prototype=e.prototype,t}(a):u&&"function"==typeof a?B(Function.call,a):a,u&&((d.virtual||(d.virtual={}))[r]=a,e&Z.R&&f&&!f[r]&&J(f,r,a)))};Z.F=1,Z.G=2,Z.S=4,Z.P=8,Z.B=16,Z.W=32,Z.U=64,Z.R=128;var Q=Z,ee=function(e,t){var n=(C.Object||{})[e]||Object[e],r={};r[e]=t(n),Q(Q.S+Q.F*q((function(){n(1)})),"Object",r)};ee("getPrototypeOf",(function(){return function(e){return I(_(e))}}));var te=C.Object.getPrototypeOf,ne=e(t((function(e){e.exports={default:te,__esModule:!0}}))),re=e(t((function(e,t){t.__esModule=!0,t.default=function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}}))),ie=Math.ceil,ae=Math.floor,oe=function(e){return isNaN(e=+e)?0:(e>0?ae:ie)(e)},le=J,se={},ue={}.toString,ce=function(e){return ue.call(e).slice(8,-1)},pe=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==ce(e)?e.split(""):Object(e)},de=function(e){return pe(w(e))},fe=Math.min,ge=function(e){return e>0?fe(oe(e),9007199254740991):0},he=Math.max,ye=Math.min,ve=function(e,t){return e=oe(e),e<0?he(e+t,0):ye(e,t)},xe=function(e){return function(t,n,r){var i,a=de(t),o=ge(a.length),l=ve(r,o);if(e&&n!=n){for(;o>l;)if((i=a[l++])!=i)return!0}else for(;o>l;l++)if((e||l in a)&&a[l]===n)return e||l||0;return!e&&-1}}(!1),me=A("IE_PROTO"),be=function(e,t){var n,r=de(e),i=0,a=[];for(n in r)n!=me&&T(r,n)&&a.push(n);for(;t.length>i;)T(r,n=t[i++])&&(~xe(a,n)||a.push(n));return a},ke="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(","),we=Object.keys||function(e){return be(e,ke)},_e=H?Object.defineProperties:function(e,t){F(e);for(var n,r=we(t),i=r.length,a=0;i>a;)G.f(e,n=r[a++],t[n]);return e},Ee=S.document,Te=Ee&&Ee.documentElement,Ce=A("IE_PROTO"),Se=function(){},Pe=function(){var e,t=V("iframe"),n=ke.length;for(t.style.display="none",Te.appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("