mirror of
https://github.com/zhw2590582/ArtPlayer.git
synced 2026-10-13 07:46:17 -08:00
9 lines
79 KiB
JavaScript
9 lines
79 KiB
JavaScript
/*!
|
||
* ArtPlayer.js v1.0.0
|
||
* Github: https://github.com/zhw2590582/ArtPlayer#readme
|
||
* (c) 2017-2018 Harvey Zack
|
||
* Released under the MIT License.
|
||
*/
|
||
|
||
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e(t.artplayer={})}(this,function(t){"use strict";var i="undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function e(t,e){return t(e={exports:{}},e.exports),e.exports}var r=e(function(n){function i(t,e){return n.exports=i=Object.setPrototypeOf||function(t,e){return t.__proto__=e,t},i(t,e)}n.exports=i}),o=e(function(i){function o(t,e,n){return!function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Date.prototype.toString.call(Reflect.construct(Date,[],function(){})),!0}catch(t){return!1}}()?i.exports=o=function(t,e,n){var i=[null];i.push.apply(i,e);var o=new(Function.bind.apply(t,i));return n&&r(o,n.prototype),o}:i.exports=o=Reflect.construct,o.apply(null,arguments)}i.exports=o});var n=function(t){if(Array.isArray(t)){for(var e=0,n=new Array(t.length);e<t.length;e++)n[e]=t[e];return n}};var a=function(t){if(Symbol.iterator in Object(t)||"[object Arguments]"===Object.prototype.toString.call(t))return Array.from(t)};var s=function(){throw new TypeError("Invalid attempt to spread non-iterable instance")};var u=function(t){return n(t)||a(t)||s()};var kt=function(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")};function c(t,e){for(var n=0;n<e.length;n++){var i=e[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(t,i.key,i)}}var l=function(t,e,n){return e&&c(t.prototype,e),n&&c(t,n),t},h=e(function(e){function n(t){return(n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}function i(t){return"function"==typeof Symbol&&"symbol"===n(Symbol.iterator)?e.exports=i=function(t){return n(t)}:e.exports=i=function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":n(t)},i(t)}e.exports=i});var d=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t};var f=function(t,e){return!e||"object"!==h(e)&&"function"!=typeof e?d(t):e},p=e(function(e){function n(t){return e.exports=n=Object.setPrototypeOf?Object.getPrototypeOf:function(t){return t.__proto__||Object.getPrototypeOf(t)},n(t)}e.exports=n});var v=function(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function");t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,writable:!0,configurable:!0}}),e&&r(t,e)};var y=function(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t};var m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},i=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(i=i.concat(Object.getOwnPropertySymbols(n).filter(function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),i.forEach(function(t){y(e,t,n[t])})}return e};var g=function(t){return-1!==Function.toString.call(t).indexOf("[native code]")},b=function(t){function i(t,e){var n;return kt(this,i),n=f(this,p(i).call(this,t)),"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(d(d(n)),e||n.constructor),n.name="ArtPlayerError",n}return v(i,t),i}(e(function(e){function i(t){var n="function"==typeof Map?new Map:void 0;return e.exports=i=function(t){if(null===t||!g(t))return t;if("function"!=typeof t)throw new TypeError("Super expression must either be null or a function");if(void 0!==n){if(n.has(t))return n.get(t);n.set(t,e)}function e(){return o(t,arguments,p(this).constructor)}return e.prototype=Object.create(t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),r(e,t)},i(t)}e.exports=i})(Error));function w(t,e){var n="function"==typeof t;if(n?!n():!t)throw new b(e)}function Et(t,e,n){return Math.max(Math.min(t,Math.max(e,n)),Math.min(e,n))}function St(t,e){return e instanceof Element?t.appendChild(e):t.insertAdjacentHTML("beforeend",e),t.lastElementChild}function Pt(t,e,n){return t.style[e]=n,t}function x(e,n){return Object.keys(n).forEach(function(t){Pt(e,t,n[t])}),e}function Tt(t){var e=Math.floor(t/3600),n=Math.floor((t-3600*e)/60),i=Math.floor(t-3600*e-60*n);return(0<e?[e,n,i]:[n,i]).map(function(t){return t<10?"0".concat(t):String(t)}).join(":")}function $(t){var e=JSON.parse(localStorage.getItem("artplayer_settings"))||{};return t?e[t]:e}function k(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:"up";t.setAttribute("data-balloon",e),t.setAttribute("data-balloon-pos",n)}function _t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:0;return new Promise(function(t){return setTimeout(t,e)})}function Lt(e){return Array.from(e.parentElement.children).filter(function(t){return t!==e})}var E=e(function(t,e){t.exports=function(){function c(t){return(c="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t})(t)}var l=Object.prototype.toString,a=function(t){if(void 0===t)return"undefined";if(null===t)return"null";var e,n,i,o,r,a,s=c(t);if("boolean"===s)return"boolean";if("string"===s)return"string";if("number"===s)return"number";if("symbol"===s)return"symbol";if("function"===s)return"GeneratorFunction"===u(t)?"generatorfunction":"function";if(e=t,Array.isArray?Array.isArray(e):e instanceof Array)return"array";if((a=t).constructor&&"function"==typeof a.constructor.isBuffer&&a.constructor.isBuffer(a))return"buffer";if(function(t){try{if("number"==typeof t.length&&"function"==typeof t.callee)return!0}catch(t){if(-1!==t.message.indexOf("callee"))return!0}return!1}(t))return"arguments";if((n=t)instanceof Date||"function"==typeof n.toDateString&&"function"==typeof n.getDate&&"function"==typeof n.setDate)return"date";if((i=t)instanceof Error||"string"==typeof i.message&&i.constructor&&"number"==typeof i.constructor.stackTraceLimit)return"error";if((o=t)instanceof RegExp||"string"==typeof o.flags&&"boolean"==typeof o.ignoreCase&&"boolean"==typeof o.multiline&&"boolean"==typeof o.global)return"regexp";switch(u(t)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if("function"==typeof(r=t).throw&&"function"==typeof r.return&&"function"==typeof r.next)return"generator";switch(s=l.call(t)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return s.slice(8,-1).toLowerCase().replace(/\s/g,"")};function u(t){return t.constructor?t.constructor.name:null}function r(t,e){var n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:["option"];for(var i in h(t,e,n),d(t,e,n),f(t,e,n),e)if(e.hasOwnProperty(i)){var o=t[i],r=e[i],a=n.concat(i);if(s(t,i,r,a))continue;h(o,r,a),d(o,r,a),f(o,r,a)}}function s(t,e,n,i){if(!Object.prototype.hasOwnProperty.call(t,e)){if(!0===n.__required__||!0===n.required)throw new TypeError("'".concat(i.join("."),"' is required"));return!0}}function h(t,e,n){var i;if("string"===a(e)?i=e:e.__type__?i=e.__type__:e.type&&(i=e.type),i&&"string"===a(i)){i=i.trim().toLowerCase();var o=a(t),r=o===i;if(-1<i.indexOf("|")&&(r=i.split("|").filter(Boolean).some(function(t){return o===t.trim()})),!r)throw new TypeError("'".concat(n.join("."),"' require '").concat(i,"' type, but got '").concat(o,"'"))}}function d(t,e,n){var i;if(e.___validator__?i=e.___validator__:e.validator&&(i=e.validator),"function"===a(i)){var o=i(n,t,a(t));if(!0!==o)throw new TypeError("The scheme for '".concat(n.join("."),"' validator function require return true, but got '").concat(o,"'"))}}function f(t,e,n){var i;if(e.___child__?i=e.___child__:e.child&&(i=e.child),"object"===a(i)){var o=a(t);"object"===o?r(t,i,n):"array"===o&&t.forEach(function(t,e){r(t,i,n.concat(e))})}}return r.kindOf=a,window.optionValidator=r}()});function S(t,e,n){if("string"===n){if(""===e.trim())throw new b("".concat(t.join(".")," can not be empty'"));return!0}if(e instanceof Element)return!0;throw new b("".concat(t.join(".")," require 'string' or 'Element' type, but got '").concat(n,"'"))}var P={container:{validator:S,required:!0},url:{type:"string",required:!0},title:"string",volume:"number",thumbnails:{type:"object",child:{url:"string",number:"number",width:"number",height:"number",column:"number"}},screenshot:"boolean",autoplay:"boolean",playbackRate:"boolean",aspectRatio:"boolean",loop:"boolean",type:{type:"string"},mimeCodec:"string",layers:{type:"array",child:{name:"string",index:"number",html:{validator:S},style:"object"}},contextmenu:{type:"array",child:{type:"object|function",name:"string",html:{validator:S},click:"function"}},quality:{type:"array",child:{default:"boolean",name:"string",url:"string"}},loading:S,play:S,theme:"string",hotkey:"boolean",pip:"boolean",fullscreen:"boolean",fullscreenWeb:"boolean",subtitle:{type:"object",child:{url:"string",style:"object"}},controls:{type:"array",child:{option:{type:"object",child:{disable:"boolean",position:"boolean",index:"number"}}}},highlight:{type:"array",child:{time:"number",text:"string"}},moreVideoAttr:"object",lang:"string"},Ct={mimeCodec:{mp4:'video/mp4; codecs="avc1.42E01E, mp4a.40.2"',webm:'video/webm; codecs="vorbis, vp8"',ts:'video/mp2t; codecs="avc1.42E01E, mp4a.40.2"'},mse:{mediaSource:{propertys:["activeSourceBuffers","duration","readyState","sourceBuffers"],methods:["addSourceBuffer","endOfStream","removeSourceBuffer","clearLiveSeekableRange","setLiveSeekableRange"],events:["sourceclose","sourceended","sourceopen"]},sourceBuffer:{propertys:["mode","updating","buffered","timestampOffset","audioTracks","videoTracks","textTracks","appendWindowStart","appendWindowEnd","trackDefaults"],methods:["appendBuffer","appendStream","abort","remove"],events:["abort","error","update","updateend","updatestart"]},sourceBufferList:{propertys:["length"],events:["addsourcebuffer","removesourcebuffer"]}},video:{propertys:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"]}};function T(){}T.prototype={on:function(t,e,n){var i=this.e||(this.e={});return(i[t]||(i[t]=[])).push({fn:e,ctx:n}),this},once:function(t,e,n){var i=this;function o(){i.off(t,o),e.apply(n,arguments)}return o._=e,this.on(t,o,n)},emit:function(t){for(var e=[].slice.call(arguments,1),n=((this.e||(this.e={}))[t]||[]).slice(),i=0,o=n.length;i<o;i++)n[i].fn.apply(n[i].ctx,e);return this},off:function(t,e){var n=this.e||(this.e={}),i=n[t],o=[];if(i&&e)for(var r=0,a=i.length;r<a;r++)i[r].fn!==e&&i[r].fn._!==e&&o.push(i[r]);return o.length?n[t]=o:delete n[t],this}};var _=T,L=function t(e){kt(this,t);var n=e.refs;n.$container.innerHTML='\n <div class="artplayer-video-player">\n <video class="artplayer-video"></video>\n <div class="artplayer-subtitle"></div>\n <div class="artplayer-danmu"></div>\n <div class="artplayer-layers"></div>\n <div class="artplayer-mask"></div>\n <div class="artplayer-bottom">\n <div class="artplayer-progress"></div>\n <div class="artplayer-controls">\n <div class="artplayer-controls-left"></div>\n <div class="artplayer-controls-right"></div>\n </div>\n </div>\n <div class="artplayer-loading"></div>\n <div class="artplayer-notice">\n <div class="artplayer-notice-inner"></div>\n </div>\n <div class="artplayer-setting">\n <div class="artplayer-setting-inner">\n <div class="artplayer-setting-body"></div>\n <div class="artplayer-setting-close">×</div>\n </div>\n </div>\n <div class="artplayer-info">\n <div class="artplayer-info-panel"></div>\n <div class="artplayer-info-close">[x]</div>\n </div>\n <div class="artplayer-pip-header">\n <div class="artplayer-pip-title"></div>\n <div class="artplayer-pip-close">×</div>\n </div>\n </div>\n ',n.$player=n.$container.querySelector(".artplayer-video-player"),n.$video=n.$container.querySelector(".artplayer-video"),n.$subtitle=n.$container.querySelector(".artplayer-subtitle"),n.$bottom=n.$container.querySelector(".artplayer-bottom"),n.$progress=n.$container.querySelector(".artplayer-progress"),n.$controls=n.$container.querySelector(".artplayer-controls"),n.$controlsLeft=n.$container.querySelector(".artplayer-controls-left"),n.$controlsRight=n.$container.querySelector(".artplayer-controls-right"),n.$layers=n.$container.querySelector(".artplayer-layers"),n.$danmu=n.$container.querySelector(".artplayer-danmu"),n.$loading=n.$container.querySelector(".artplayer-loading"),n.$notice=n.$container.querySelector(".artplayer-notice"),n.$noticeInner=n.$container.querySelector(".artplayer-notice-inner"),n.$mask=n.$container.querySelector(".artplayer-mask"),n.$setting=n.$container.querySelector(".artplayer-setting"),n.$settingInner=n.$container.querySelector(".artplayer-setting-inner"),n.$settingBody=n.$container.querySelector(".artplayer-setting-body"),n.$settingClose=n.$container.querySelector(".artplayer-setting-close"),n.$info=n.$container.querySelector(".artplayer-info"),n.$infoPanel=n.$container.querySelector(".artplayer-info-panel"),n.$infoClose=n.$container.querySelector(".artplayer-info-close"),n.$pipHeader=n.$container.querySelector(".artplayer-pip-header"),n.$pipTitle=n.$container.querySelector(".artplayer-pip-title"),n.$pipClose=n.$container.querySelector(".artplayer-pip-close")},C={"zh-cn":{"About author":"关于作者","Video info":"视频统计信息",Close:"关闭","Video load failed":"视频加载失败",Volume:"音量",Play:"播放",Pause:"暂停",Rate:"速度",Mute:"静音",Reconnect:"重新连接","Hide subtitle":"隐藏字幕","Show subtitle":"显示字幕","Hide danmu":"隐藏弹幕","Show danmu":"显示弹幕",Screenshot:"截图","Play speed":"播放速度","Aspect ratio":"画面比例",Default:"默认",Normal:"正常","Switch video":"切换","Switch subtitle":"切换字幕",Fullscreen:"全屏","Exit fullscreen":"退出全屏","Web fullscreen":"网页全屏","Exit web fullscreen":"退出网页全屏",Common:"常规","Hide setting":"隐藏设置","Show setting":"显示设置","Mini player":"迷你播放器"},"zh-tw":{"About author":"關於作者","Video info":"影片統計訊息",Close:"關閉","Video load failed":"影片載入失敗",Volume:"音量",Play:"播放",Pause:"暫停",Rate:"速度",Mute:"靜音",Reconnect:"重新連接","Hide subtitle":"隱藏字幕","Show subtitle":"顯示字幕","Hide danmu":"隱藏彈幕","Show danmu":"顯示彈幕",Screenshot:"截圖","Play speed":"播放速度","Aspect ratio":"畫面比例",Default:"默認",Normal:"正常","Switch video":"切換","Switch subtitle":"切換字幕",Fullscreen:"全屏","Exit fullscreen":"退出全屏","Web fullscreen":"網頁全屏","Exit web fullscreen":"退出網頁全屏",Common:"常規","Hide setting":"隱藏設置","Show setting":"顯示設置","Mini player":"迷你播放器"}},M=function(){function n(t){var e=t.option;kt(this,n),this.option=e,this.init()}return l(n,[{key:"init",value:function(){this.language=C[this.option.lang.toLowerCase()]||{}}},{key:"get",value:function(t){return this.language[t]||t}},{key:"update",value:function(t){C=t(C),this.init()}}]),n}();function Mt(o,t){var r=o.refs.$video,a=o.i18n,s=o.notice;Object.defineProperty(t,"volume",{value:function(t){var e,n,i;return void 0!==t&&(r.volume=Et(t,0,1),s.show("".concat(a.get("Volume"),": ").concat(parseInt(100*r.volume))),0!==r.volume&&(e="volume",n=r.volume,i=Object.assign({},$(),y({},e,n)),localStorage.setItem("artplayer_settings",JSON.stringify(i))),o.emit("volume",r.volume)),r.volume||0}})}function Ot(o,t){var e=o.notice;Object.defineProperty(t,"screenshot",{value:function(){try{!function(){var t=o.refs.$video,e=document.createElement("canvas");e.width=t.videoWidth,e.height=t.videoHeight,e.getContext("2d").drawImage(t,0,0);var n=e.toDataURL("image/png"),i=document.createElement("a");Pt(i,"display","none"),i.href=n,i.download="ArtPlayer_".concat(Tt(t.currentTime),".png"),document.body.appendChild(i),i.click(),document.body.removeChild(i)}(),o.emit("screenshot")}catch(t){e.show(t),console.warn(t)}}})}var Rt=e(function(t){var r,e,n,i,o,a;r="undefined"!=typeof window&&void 0!==window.document?window.document:{},e=t.exports,n="undefined"!=typeof Element&&"ALLOW_KEYBOARD_INPUT"in Element,i=function(){for(var t,e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],n=0,i=e.length,o={};n<i;n++)if((t=e[n])&&t[1]in r){for(n=0;n<t.length;n++)o[e[0][n]]=t[n];return o}return!1}(),o={change:i.fullscreenchange,error:i.fullscreenerror},a={request:function(t){var e=i.requestFullscreen;t=t||r.documentElement,/ Version\/5\.1(?:\.\d+)? Safari\//.test(navigator.userAgent)?t[e]():t[e](n?Element.ALLOW_KEYBOARD_INPUT:{})},exit:function(){r[i.exitFullscreen]()},toggle:function(t){this.isFullscreen?this.exit():this.request(t)},onchange:function(t){this.on("change",t)},onerror:function(t){this.on("error",t)},on:function(t,e){var n=o[t];n&&r.addEventListener(n,e,!1)},off:function(t,e){var n=o[t];n&&r.removeEventListener(n,e,!1)},raw:i},i?(Object.defineProperties(a,{isFullscreen:{get:function(){return Boolean(r[i.fullscreenElement])}},element:{enumerable:!0,get:function(){return r[i.fullscreenElement]}},enabled:{enumerable:!0,get:function(){return Boolean(r[i.fullscreenEnabled])}}}),e?t.exports=a:window.screenfull=a):e?t.exports=!1:window.screenfull=!1});var O=e(function(t){var e,n;e=window,n=function(){function m(t){var e=parseFloat(t);return-1==t.indexOf("%")&&!isNaN(e)&&e}var n="undefined"==typeof console?function(){}:function(t){console.error(t)},g=["paddingLeft","paddingRight","paddingTop","paddingBottom","marginLeft","marginRight","marginTop","marginBottom","borderLeftWidth","borderRightWidth","borderTopWidth","borderBottomWidth"],b=g.length;function w(t){var e=getComputedStyle(t);return e||n("Style returned "+e+". Are you running this code in a hidden iframe on Firefox? See https://bit.ly/getsizebug1"),e}var x,$=!1;function k(t){if(function(){if(!$){$=!0;var t=document.createElement("div");t.style.width="200px",t.style.padding="1px 2px 3px 4px",t.style.borderStyle="solid",t.style.borderWidth="1px 2px 3px 4px",t.style.boxSizing="border-box";var e=document.body||document.documentElement;e.appendChild(t);var n=w(t);x=200==Math.round(m(n.width)),k.isBoxSizeOuter=x,e.removeChild(t)}}(),"string"==typeof t&&(t=document.querySelector(t)),t&&"object"==typeof t&&t.nodeType){var e=w(t);if("none"==e.display)return function(){for(var t={width:0,height:0,innerWidth:0,innerHeight:0,outerWidth:0,outerHeight:0},e=0;e<b;e++)t[g[e]]=0;return t}();var n={};n.width=t.offsetWidth,n.height=t.offsetHeight;for(var i=n.isBorderBox="border-box"==e.boxSizing,o=0;o<b;o++){var r=g[o],a=e[r],s=parseFloat(a);n[r]=isNaN(s)?0:s}var c=n.paddingLeft+n.paddingRight,l=n.paddingTop+n.paddingBottom,u=n.marginLeft+n.marginRight,h=n.marginTop+n.marginBottom,d=n.borderLeftWidth+n.borderRightWidth,f=n.borderTopWidth+n.borderBottomWidth,p=i&&x,v=m(e.width);!1!==v&&(n.width=v+(p?0:c+d));var y=m(e.height);return!1!==y&&(n.height=y+(p?0:l+f)),n.innerWidth=n.width-(c+d),n.innerHeight=n.height-(l+f),n.outerWidth=n.width+u,n.outerHeight=n.height+h,n}}return k},t.exports?t.exports=n():e.getSize=n()}),R=e(function(t){var e,n;e="undefined"!=typeof window?window:i,n=function(){function t(){}var e=t.prototype;return e.on=function(t,e){if(t&&e){var n=this._events=this._events||{},i=n[t]=n[t]||[];return-1==i.indexOf(e)&&i.push(e),this}},e.once=function(t,e){if(t&&e){this.on(t,e);var n=this._onceEvents=this._onceEvents||{};return(n[t]=n[t]||{})[e]=!0,this}},e.off=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){var i=n.indexOf(e);return-1!=i&&n.splice(i,1),this}},e.emitEvent=function(t,e){var n=this._events&&this._events[t];if(n&&n.length){n=n.slice(0),e=e||[];for(var i=this._onceEvents&&this._onceEvents[t],o=0;o<n.length;o++){var r=n[o];i&&i[r]&&(this.off(t,r),delete i[r]),r.apply(this,e)}return this}},e.allOff=function(){delete this._events,delete this._onceEvents},t},t.exports?t.exports=n():e.EvEmitter=n()}),H=e(function(t){var e,n;e=window,n=function(o,t){function e(){}var n=e.prototype=Object.create(t.prototype);n.bindStartEvent=function(t){this._bindStartEvent(t,!0)},n.unbindStartEvent=function(t){this._bindStartEvent(t,!1)},n._bindStartEvent=function(t,e){var n=(e=void 0===e||e)?"addEventListener":"removeEventListener",i="mousedown";o.PointerEvent?i="pointerdown":"ontouchstart"in o&&(i="touchstart"),t[n](i,this)},n.handleEvent=function(t){var e="on"+t.type;this[e]&&this[e](t)},n.getTouch=function(t){for(var e=0;e<t.length;e++){var n=t[e];if(n.identifier==this.pointerIdentifier)return n}},n.onmousedown=function(t){var e=t.button;e&&0!==e&&1!==e||this._pointerDown(t,t)},n.ontouchstart=function(t){this._pointerDown(t,t.changedTouches[0])},n.onpointerdown=function(t){this._pointerDown(t,t)},n._pointerDown=function(t,e){t.button||this.isPointerDown||(this.isPointerDown=!0,this.pointerIdentifier=void 0!==e.pointerId?e.pointerId:e.identifier,this.pointerDown(t,e))},n.pointerDown=function(t,e){this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e])};var i={mousedown:["mousemove","mouseup"],touchstart:["touchmove","touchend","touchcancel"],pointerdown:["pointermove","pointerup","pointercancel"]};return n._bindPostStartEvents=function(t){if(t){var e=i[t.type];e.forEach(function(t){o.addEventListener(t,this)},this),this._boundPointerEvents=e}},n._unbindPostStartEvents=function(){this._boundPointerEvents&&(this._boundPointerEvents.forEach(function(t){o.removeEventListener(t,this)},this),delete this._boundPointerEvents)},n.onmousemove=function(t){this._pointerMove(t,t)},n.onpointermove=function(t){t.pointerId==this.pointerIdentifier&&this._pointerMove(t,t)},n.ontouchmove=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerMove(t,e)},n._pointerMove=function(t,e){this.pointerMove(t,e)},n.pointerMove=function(t,e){this.emitEvent("pointerMove",[t,e])},n.onmouseup=function(t){this._pointerUp(t,t)},n.onpointerup=function(t){t.pointerId==this.pointerIdentifier&&this._pointerUp(t,t)},n.ontouchend=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerUp(t,e)},n._pointerUp=function(t,e){this._pointerDone(),this.pointerUp(t,e)},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e])},n._pointerDone=function(){this._pointerReset(),this._unbindPostStartEvents(),this.pointerDone()},n._pointerReset=function(){this.isPointerDown=!1,delete this.pointerIdentifier},n.pointerDone=function(){},n.onpointercancel=function(t){t.pointerId==this.pointerIdentifier&&this._pointerCancel(t,t)},n.ontouchcancel=function(t){var e=this.getTouch(t.changedTouches);e&&this._pointerCancel(t,e)},n._pointerCancel=function(t,e){this._pointerDone(),this.pointerCancel(t,e)},n.pointerCancel=function(t,e){this.emitEvent("pointerCancel",[t,e])},e.getPointerPoint=function(t){return{x:t.pageX,y:t.pageY}},e},t.exports?t.exports=n(e,R):e.Unipointer=n(e,e.EvEmitter)}),j=e(function(t){var e,n;e=window,n=function(r,t){function e(){}var n=e.prototype=Object.create(t.prototype);n.bindHandles=function(){this._bindHandles(!0)},n.unbindHandles=function(){this._bindHandles(!1)},n._bindHandles=function(t){for(var e=(t=void 0===t||t)?"addEventListener":"removeEventListener",n=t?this._touchActionValue:"",i=0;i<this.handles.length;i++){var o=this.handles[i];this._bindStartEvent(o,t),o[e]("click",this),r.PointerEvent&&(o.style.touchAction=n)}},n._touchActionValue="none",n.pointerDown=function(t,e){this.okayPointerDown(t)&&(this.pointerDownPointer=e,t.preventDefault(),this.pointerDownBlur(),this._bindPostStartEvents(t),this.emitEvent("pointerDown",[t,e]))};var o={TEXTAREA:!0,INPUT:!0,SELECT:!0,OPTION:!0},a={radio:!0,checkbox:!0,button:!0,submit:!0,image:!0,file:!0};return n.okayPointerDown=function(t){var e=o[t.target.nodeName],n=a[t.target.type],i=!e||n;return i||this._pointerReset(),i},n.pointerDownBlur=function(){var t=document.activeElement;t&&t.blur&&t!=document.body&&t.blur()},n.pointerMove=function(t,e){var n=this._dragPointerMove(t,e);this.emitEvent("pointerMove",[t,e,n]),this._dragMove(t,e,n)},n._dragPointerMove=function(t,e){var n={x:e.pageX-this.pointerDownPointer.pageX,y:e.pageY-this.pointerDownPointer.pageY};return!this.isDragging&&this.hasDragStarted(n)&&this._dragStart(t,e),n},n.hasDragStarted=function(t){return 3<Math.abs(t.x)||3<Math.abs(t.y)},n.pointerUp=function(t,e){this.emitEvent("pointerUp",[t,e]),this._dragPointerUp(t,e)},n._dragPointerUp=function(t,e){this.isDragging?this._dragEnd(t,e):this._staticClick(t,e)},n._dragStart=function(t,e){this.isDragging=!0,this.isPreventingClicks=!0,this.dragStart(t,e)},n.dragStart=function(t,e){this.emitEvent("dragStart",[t,e])},n._dragMove=function(t,e,n){this.isDragging&&this.dragMove(t,e,n)},n.dragMove=function(t,e,n){t.preventDefault(),this.emitEvent("dragMove",[t,e,n])},n._dragEnd=function(t,e){this.isDragging=!1,setTimeout(function(){delete this.isPreventingClicks}.bind(this)),this.dragEnd(t,e)},n.dragEnd=function(t,e){this.emitEvent("dragEnd",[t,e])},n.onclick=function(t){this.isPreventingClicks&&t.preventDefault()},n._staticClick=function(t,e){this.isIgnoringMouseUp&&"mouseup"==t.type||(this.staticClick(t,e),"mouseup"!=t.type&&(this.isIgnoringMouseUp=!0,setTimeout(function(){delete this.isIgnoringMouseUp}.bind(this),400)))},n.staticClick=function(t,e){this.emitEvent("staticClick",[t,e])},e.getPointerPoint=t.getPointerPoint,e},t.exports?t.exports=n(e,H):e.Unidragger=n(e,e.Unipointer)}),Ht=e(function(t){var e,n;e=window,n=function(r,c,t){function n(t,e){for(var n in e)t[n]=e[n];return t}var i=r.jQuery;function e(t,e){this.element="string"==typeof t?document.querySelector(t):t,i&&(this.$element=i(this.element)),this.options=n({},this.constructor.defaults),this.option(e),this._create()}var o=e.prototype=Object.create(t.prototype);e.defaults={},o.option=function(t){n(this.options,t)};var a={relative:!0,absolute:!0,fixed:!0};function l(t,e,n){return n=n||"round",e?Math[n](t/e)*e:t}return o._create=function(){this.position={},this._getPosition(),this.startPoint={x:0,y:0},this.dragPoint={x:0,y:0},this.startPosition=n({},this.position);var t=getComputedStyle(this.element);a[t.position]||(this.element.style.position="relative"),this.on("pointerDown",this.onPointerDown),this.on("pointerMove",this.onPointerMove),this.on("pointerUp",this.onPointerUp),this.enable(),this.setHandles()},o.setHandles=function(){this.handles=this.options.handle?this.element.querySelectorAll(this.options.handle):[this.element],this.bindHandles()},o.dispatchEvent=function(t,e,n){var i=[e].concat(n);this.emitEvent(t,i),this.dispatchJQueryEvent(t,e,n)},o.dispatchJQueryEvent=function(t,e,n){var i=r.jQuery;if(i&&this.$element){var o=i.Event(e);o.type=t,this.$element.trigger(o,n)}},o._getPosition=function(){var t=getComputedStyle(this.element),e=this._getPositionCoord(t.left,"width"),n=this._getPositionCoord(t.top,"height");this.position.x=isNaN(e)?0:e,this.position.y=isNaN(n)?0:n,this._addTransformPosition(t)},o._getPositionCoord=function(t,e){if(-1==t.indexOf("%"))return parseInt(t,10);var n=c(this.element.parentNode);return n?parseFloat(t)/100*n[e]:0},o._addTransformPosition=function(t){var e=t.transform;if(0===e.indexOf("matrix")){var n=e.split(","),i=0===e.indexOf("matrix3d")?12:4,o=parseInt(n[i],10),r=parseInt(n[i+1],10);this.position.x+=o,this.position.y+=r}},o.onPointerDown=function(t,e){this.element.classList.add("is-pointer-down"),this.dispatchJQueryEvent("pointerDown",t,[e])},o.dragStart=function(t,e){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",t,[e]),this.animate())},o.measureContainment=function(){var t=this.getContainer();if(t){var e=c(this.element),n=c(t),i=this.element.getBoundingClientRect(),o=t.getBoundingClientRect(),r=n.borderLeftWidth+n.borderRightWidth,a=n.borderTopWidth+n.borderBottomWidth,s=this.relativeStartPosition={x:i.left-(o.left+n.borderLeftWidth),y:i.top-(o.top+n.borderTopWidth)};this.containSize={width:n.width-r-s.x-e.width,height:n.height-a-s.y-e.height}}},o.getContainer=function(){var t=this.options.containment;if(t)return t instanceof HTMLElement?t:"string"==typeof t?document.querySelector(t):this.element.parentNode},o.onPointerMove=function(t,e,n){this.dispatchJQueryEvent("pointerMove",t,[e,n])},o.dragMove=function(t,e,n){if(this.isEnabled){var i=n.x,o=n.y,r=this.options.grid,a=r&&r[0],s=r&&r[1];i=l(i,a),o=l(o,s),i=this.containDrag("x",i,a),o=this.containDrag("y",o,s),i="y"==this.options.axis?0:i,o="x"==this.options.axis?0:o,this.position.x=this.startPosition.x+i,this.position.y=this.startPosition.y+o,this.dragPoint.x=i,this.dragPoint.y=o,this.dispatchEvent("dragMove",t,[e,n])}},o.containDrag=function(t,e,n){if(!this.options.containment)return e;var i="x"==t?"width":"height",o=l(-this.relativeStartPosition[t],n,"ceil"),r=this.containSize[i];return r=l(r,n,"floor"),Math.max(o,Math.min(r,e))},o.onPointerUp=function(t,e){this.element.classList.remove("is-pointer-down"),this.dispatchJQueryEvent("pointerUp",t,[e])},o.dragEnd=function(t,e){this.isEnabled&&(this.element.style.transform="",this.setLeftTop(),this.element.classList.remove("is-dragging"),this.dispatchEvent("dragEnd",t,[e]))},o.animate=function(){if(this.isDragging){this.positionDrag();var t=this;requestAnimationFrame(function(){t.animate()})}},o.setLeftTop=function(){this.element.style.left=this.position.x+"px",this.element.style.top=this.position.y+"px"},o.positionDrag=function(){this.element.style.transform="translate3d( "+this.dragPoint.x+"px, "+this.dragPoint.y+"px, 0)"},o.staticClick=function(t,e){this.dispatchEvent("staticClick",t,[e])},o.setPosition=function(t,e){this.position.x=t,this.position.y=e,this.setLeftTop()},o.enable=function(){this.isEnabled=!0},o.disable=function(){this.isEnabled=!1,this.isDragging&&this.dragEnd()},o.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")},o._init=function(){},i&&i.bridget&&i.bridget("draggabilly",e),e},t.exports?t.exports=n(e,O,j):e.Draggabilly=n(e,e.getSize,e.Unidragger)}),jt=null;var A=function t(e){var n,i,o,r,a,s,c,l,u,h,d,f,p,v,y,m,g,b,w,x,$,k,E,S,P,T,_,L,C,M,O,R,H,j,A,D,W,q,z,I,B,F,N,V,U,Y,J,Q,X,G,K,Z,tt,et,nt,it,ot,rt,at,st,ct,lt,ut,ht,dt,ft,pt,vt,yt,mt,gt,bt,wt,xt,$t;kt(this,t),this.reconnectTime=0,this.maxReconnectTime=5,i=(n=e).option,o=n.refs.$video,Object.keys(i.moreVideoAttr).forEach(function(t){o[t]=i.moreVideoAttr[t]}),o.volume=Et(i.volume,0,1),o.poster=i.poster,o.autoplay=i.autoplay,o.src=i.url,a=this,s=(r=e).option,c=r.events.proxy,l=r.refs,u=l.$player,h=l.$video,d=r.i18n,f=r.notice,p=!1,c(h,"click",function(){a.toggle()}),Ct.video.events.forEach(function(t){c(h,t,function(t){r.emit("video:".concat(t.type),t)})}),r.on("video:loadstart",function(){r.loading.show()}),r.on("video:loadeddata",function(){r.loading.hide()}),r.on("video:waiting",function(){r.loading.show()}),r.on("video:seeking",function(){r.loading.show()}),r.on("video:canplay",function(){p||(p=!0,r.emit("firstCanplay")),r.controls.show(),r.mask.show(),r.loading.hide(),s.autoplay&&a.play()}),r.on("video:playing",function(){r.isPlaying=!0,r.controls.hide(),r.mask.hide()}),r.on("video:pause",function(){r.isPlaying=!1,r.controls.show(),r.mask.show()}),r.on("video:ended",function(){r.isPlaying=!1,r.controls.show(),r.mask.show(),s.loop&&(a.seek(0),a.play())}),r.on("video:error",function(){a.reconnectTime<a.maxReconnectTime?_t(1e3).then(function(){a.reconnectTime++,h.src=s.url,f.show("".concat(d.get("Reconnect"),": ").concat(a.reconnectTime))}):(r.isError=!0,r.isPlaying=!1,r.loading.hide(),r.controls.hide(),u.classList.add("artplayer-error"),_t(1e3).then(function(){f.show(d.get("Video load failed"),!1),r.destroy()}))}),y=this,m=(v=e).refs.$video,g=v.i18n,b=v.notice,Object.defineProperty(y,"play",{value:function(){var t=m.play();void 0!==t&&t.then().catch(function(t){b.show(t,!0,3e3),console.warn(t)}),b.show(g.get("Play")),v.emit("play",m)}}),x=this,$=(w=e).refs.$video,k=w.i18n,E=w.notice,Object.defineProperty(x,"pause",{value:function(){$.pause(),E.show(k.get("Pause")),w.emit("pause",$)}}),S=e,P=this,Object.defineProperty(P,"toggle",{value:function(){S.isPlaying?P.pause():P.play()}}),_=this,L=(T=e).refs.$video,C=T.notice,Object.defineProperty(_,"seek",{value:function(t){var e=Math.max(t,0);L.duration&&(e=Math.min(e,L.duration)),L.currentTime=e,C.show("".concat(Tt(e)," / ").concat(Tt(L.duration))),T.emit("seek",e)}}),Mt(e,this),M=e,O=this,Object.defineProperty(O,"currentTime",{value:function(){return M.refs.$video.currentTime||0}}),R=e,H=this,Object.defineProperty(H,"duration",{value:function(){return R.refs.$video.duration||0}}),A=this,D=(j=e).refs.$video,W=j.i18n,q=j.notice,z=j.isPlaying,I=j.option,Object.defineProperty(A,"switch",{value:function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"Unknown",n=A.currentTime();D.src=t,I.url=t,A.removePlaybackRate(),A.removeAspectRatio(),A.reconnectTime=0,A.seek(n),z&&A.play(),q.show("".concat(W.get("Switch video"),": ").concat(e)),j.emit("switch",t)}}),F=this,N=(B=e).refs,V=N.$video,U=N.$player,Y=B.i18n,J=B.notice,Object.defineProperty(F,"playbackRate",{value:function(t){var e=Et(t,.1,10);V.playbackRate=e,U.dataset.playbackRate=e,J.show("".concat(Y.get("Rate"),": ").concat(1===e?Y.get("Normal"):"".concat(e,"x"))),B.emit("playbackRate",e)}}),Object.defineProperty(F,"playbackRateRemove",{value:function(){if(F.playbackRate(1),delete U.dataset.playbackRate,B.contextmenu.$playbackRate){var t=B.contextmenu.$playbackRate.querySelector(".normal");Lt(t).forEach(function(t){return t.classList.remove("current")}),t.classList.add("current")}}}),Object.defineProperty(F,"playbackRateReset",{value:function(){var t=U.dataset.playbackRate;t&&F.playbackRate(Number(t))}}),X=this,G=(Q=e).refs,K=G.$video,Z=G.$player,tt=Q.i18n,et=Q.notice,Object.defineProperty(X,"aspectRatio",{value:function(t){var e=2===t.length?"".concat(t[0],":").concat(t[1]):tt.get("Default");if(2===t.length){var n=K.videoWidth,i=K.videoHeight,o=Z.clientWidth,r=Z.clientHeight,a=n/i,s=Number(t[0])/Number(t[1]);if(s<a){var c=s*i/n;Pt(K,"width","".concat(100*c,"%")),Pt(K,"height","100%"),Pt(K,"padding","0 ".concat((o-o*c)/2,"px"))}else{var l=n/s/i;Pt(K,"width","100%"),Pt(K,"height","".concat(100*l,"%")),Pt(K,"padding","".concat((r-r*l)/2,"px 0"))}Z.dataset.aspectRatio=e}else X.aspectRatioRemove();et.show("".concat(tt.get("Aspect ratio"),": ").concat(e)),Q.emit("aspectRatio",t)}}),Object.defineProperty(X,"aspectRatioRemove",{value:function(){if(Pt(K,"width",null),Pt(K,"height",null),Pt(K,"padding",null),delete Z.dataset.aspectRatio,Q.contextmenu.$aspectRatio){var t=Q.contextmenu.$aspectRatio.querySelector(".default");Lt(t).forEach(function(t){return t.classList.remove("current")}),t.classList.add("current")}}}),Object.defineProperty(X,"aspectRatioReset",{value:function(){var t=Z.dataset.aspectRatio;t&&X.aspectRatio(t.split(":"))}}),Ot(e,this),it=this,ot=(nt=e).notice,rt=nt.events.destroyEvents,at=nt.refs.$player,st=function(){it.aspectRatioReset(),nt.emit("fullscreen",Rt.isFullscreen)},ct=function(){ot.show("Your browser does not seem to support full screen functionality.")},Rt.on("change",st),Rt.on("error",ct),rt.push(function(){Rt.off("change",st),Rt.off("error",ct)}),Object.defineProperty(it,"fullscreenState",{get:function(){return Rt.isFullscreen}}),Object.defineProperty(it,"fullscreenEnabled",{value:function(){it.fullscreenWebState&&it.fullscreenWebExit(),at.classList.add("artplayer-fullscreen"),Rt.request(at)}}),Object.defineProperty(it,"fullscreenExit",{value:function(){it.fullscreenWebState&&it.fullscreenWebExit(),at.classList.remove("artplayer-fullscreen"),Rt.exit()}}),Object.defineProperty(it,"fullscreenToggle",{value:function(){it.fullscreenState?it.fullscreenExit():it.fullscreenEnabled()}}),ut=this,ht=(lt=e).refs.$player,Object.defineProperty(ut,"fullscreenWebState",{get:function(){return ht.classList.contains("artplayer-web-fullscreen")}}),Object.defineProperty(ut,"fullscreenWebEnabled",{value:function(){ut.fullscreenState&&ut.fullscreenExit(),ht.classList.add("artplayer-web-fullscreen"),ut.aspectRatioReset(),lt.emit("fullscreenWeb",!0)}}),Object.defineProperty(ut,"fullscreenWebExit",{value:function(){ut.fullscreenState&&ut.fullscreenExit(),ht.classList.remove("artplayer-web-fullscreen"),ut.aspectRatioReset(),lt.emit("fullscreenWeb",!1)}}),Object.defineProperty(ut,"fullscreenWebToggle",{value:function(){ut.fullscreenWebState?ut.fullscreenWebExit():ut.fullscreenWebEnabled()}}),ft=this,pt=(dt=e).option,vt=dt.i18n,yt=dt.refs,mt=yt.$player,gt=yt.$pipClose,bt=yt.$pipTitle,wt=dt.events,xt=wt.destroyEvents,$t=wt.proxy,Object.defineProperty(ft,"pipState",{get:function(){return mt.classList.contains("artplayer-pip")}}),Object.defineProperty(ft,"pipDraggie",{get:function(){return jt}}),Object.defineProperty(ft,"pipEnabled",{value:function(){jt||(jt=new Ht(mt,{handle:".artplayer-pip-header"}),St(bt,pt.title||vt.get("Mini player")),$t(gt,"click",function(){ft.pipExit()}),xt.push(function(){jt.destroy()})),mt.classList.add("artplayer-pip"),ft.fullscreenExit(),ft.fullscreenWebExit(),ft.aspectRatioRemove(),ft.playbackRateRemove(),dt.emit("pip",!0)}}),Object.defineProperty(ft,"pipExit",{value:function(){mt.classList.remove("artplayer-pip"),Pt(mt,"left",null),Pt(mt,"top",null),ft.fullscreenExit(),ft.fullscreenWebExit(),ft.aspectRatioRemove(),ft.playbackRateRemove(),dt.emit("pip",!1)}}),Object.defineProperty(ft,"pipToggle",{value:function(){ft.pipState?ft.pipExit():ft.pipEnabled()}})};var D=function(t){if(Array.isArray(t))return t};var W=function(t,e){var n=[],i=!0,o=!1,r=void 0;try{for(var a,s=t[Symbol.iterator]();!(i=(a=s.next()).done)&&(n.push(a.value),!e||n.length!==e);i=!0);}catch(t){o=!0,r=t}finally{try{i||null==s.return||s.return()}finally{if(o)throw r}}return n};var q=function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")};var z=function(t,e){return D(t)||W(t,e)||q()};var I,B,F=(I={loading:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default"><path fill="none" class="bk" d="M0 0h100v100H0z"/><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-1s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(30 105.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(60 75.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(90 65 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.75s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(120 58.66 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(150 54.02 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(180 50 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-150 45.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-120 41.34 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-90 35 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.25s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-60 24.02 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-30 -5.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"/></rect></svg>',playBig:'<svg style="width:60px;height:60px" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg" filter="drop-shadow(0 1px 1px #000)"><path d="M20 2H4C1.8 2 0 3.8 0 6v12c0 2.2 1.8 4 4 4h16c2.2 0 4-1.8 4-4V6c0-2.2-1.8-4-4-4zm-4.4 10.8L10.5 16c-.6.5-1.5 0-1.5-.8V8.8c0-.8.9-1.3 1.5-.8l5.1 3.2c.7.3.7 1.3 0 1.6z"/></svg>',play:'<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%" viewBox="0 0 22 22"><path d="M17.982 9.275L8.06 3.27A2.013 2.013 0 0 0 5 4.994v12.011a2.017 2.017 0 0 0 3.06 1.725l9.922-6.005a2.017 2.017 0 0 0 0-3.45z"/></svg>',pause:'<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%" viewBox="0 0 22 22"><path d="M7 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2zm8 0a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2z"/></svg>',volume:'<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%" viewBox="0 0 22 22"><path d="M10.188 4.65L6 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39V5.04a.498.498 0 0 0-.812-.39zm4.258-.872a1 1 0 0 0-.862 1.804 6.002 6.002 0 0 1-.007 10.838 1 1 0 0 0 .86 1.806A8.001 8.001 0 0 0 19 11a8.001 8.001 0 0 0-4.554-7.222z"/><path d="M15 11a3.998 3.998 0 0 0-2-3.465v6.93A3.998 3.998 0 0 0 15 11z"/></svg>',volumeClose:'<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%" viewBox="0 0 22 22"><path d="M15 11a3.998 3.998 0 0 0-2-3.465v2.636l1.865 1.865A4.02 4.02 0 0 0 15 11z"/><path d="M13.583 5.583A5.998 5.998 0 0 1 17 11a6 6 0 0 1-.585 2.587l1.477 1.477a8.001 8.001 0 0 0-3.446-11.286 1 1 0 0 0-.863 1.805zm5.195 13.195l-2.121-2.121-1.414-1.414-1.415-1.415L13 13l-2-2-3.889-3.889-3.889-3.889a.999.999 0 1 0-1.414 1.414L5.172 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39v-3.131l2.587 2.587-.01.005a1 1 0 0 0 .86 1.806c.215-.102.424-.214.627-.333l2.3 2.3a1.001 1.001 0 0 0 1.414-1.416zM11 5.04a.5.5 0 0 0-.813-.39L8.682 5.854 11 8.172V5.04z"/></svg>',subtitle:'<svg style="width:100%;height:100%" viewBox="0 0 48 48" xmlns="http://www.w3.org/2000/svg"><path d="M0 0h48v48H0z" fill="none"/><path d="M40 8H8c-2.21 0-4 1.79-4 4v24c0 2.21 1.79 4 4 4h32c2.21 0 4-1.79 4-4V12c0-2.21-1.79-4-4-4zM8 24h8v4H8v-4zm20 12H8v-4h20v4zm12 0h-8v-4h8v4zm0-8H20v-4h20v4z"/></svg>',screenshot:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 50 50" style="width:100%;height:100%"><path d="M19.402 6a5 5 0 0 0-4.902 4.012L14.098 12H9a5 5 0 0 0-5 5v21a5 5 0 0 0 5 5h32a5 5 0 0 0 5-5V17a5 5 0 0 0-5-5h-5.098l-.402-1.988A5 5 0 0 0 30.598 6zM25 17c5.52 0 10 4.48 10 10s-4.48 10-10 10-10-4.48-10-10 4.48-10 10-10zm0 2c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8z"/></svg>',danmu:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 60 60" style="width:85%;height:85%"><path d="M54 2.5H6c-3.252 0-6 2.748-6 6v33c0 3.252 2.748 6 6 6h14.555l8.702 9.669a.998.998 0 0 0 1.486 0l8.702-9.669H54c3.252 0 6-2.748 6-6v-33c0-3.252-2.748-6-6-6zm-38 26c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4zm14 0c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4zm14 0c-2.206 0-4-1.794-4-4s1.794-4 4-4 4 1.794 4 4-1.794 4-4 4z"/></svg>',setting:'<svg xmlns="http://www.w3.org/2000/svg" style="width:100%;height:100%" viewBox="0 0 22 22"><circle cx="11" cy="11" r="2"/><path d="M19.164 8.861L17.6 8.6a6.978 6.978 0 0 0-1.186-2.099l.574-1.533a1 1 0 0 0-.436-1.217l-1.997-1.153a1.001 1.001 0 0 0-1.272.23l-1.008 1.225a7.04 7.04 0 0 0-2.55.001L8.716 2.829a1 1 0 0 0-1.272-.23L5.447 3.751a1 1 0 0 0-.436 1.217l.574 1.533A6.997 6.997 0 0 0 4.4 8.6l-1.564.261A.999.999 0 0 0 2 9.847v2.306c0 .489.353.906.836.986l1.613.269a7 7 0 0 0 1.228 2.075l-.558 1.487a1 1 0 0 0 .436 1.217l1.997 1.153c.423.244.961.147 1.272-.23l1.04-1.263a7.089 7.089 0 0 0 2.272 0l1.04 1.263a1 1 0 0 0 1.272.23l1.997-1.153a1 1 0 0 0 .436-1.217l-.557-1.487c.521-.61.94-1.31 1.228-2.075l1.613-.269a.999.999 0 0 0 .835-.986V9.847a.999.999 0 0 0-.836-.986zM11 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/></svg>',fullscreen:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 512 512" style="width:80%;height:80%"><path d="M236.454 172.808L132.421 68.789l43.184-43.184C185.014 16.197 178.365 0 165 0H15C6.709 0 0 6.709 0 15v150c0 13.241 16.066 20.112 25.606 10.606l43.198-43.169 104.004 104.018c5.856 5.856 15.351 5.859 21.209.001l42.437-42.437c5.832-5.832 5.88-15.331 0-21.211zM497 0H347c-13.361 0-20.018 16.193-10.606 25.605l43.184 43.184-104.034 104.003c-5.844 5.844-5.868 15.358 0 21.226l42.437 42.437c5.86 5.86 15.352 5.859 21.211 0l104.019-104.034 43.184 43.184C495.93 185.141 512 178.23 512 165V15c0-8.291-6.709-15-15-15zM486.396 336.393l-43.184 43.184-104.019-104.033c-5.856-5.856-15.349-5.862-21.211 0l-42.437 42.437c-5.868 5.868-5.844 15.382 0 21.226l104.034 104.004-43.184 43.184C326.986 495.803 333.635 512 347 512h150c8.291 0 15-6.709 15-15V347c0-13.361-16.193-20.018-25.604-10.607zM236.456 317.983l-42.437-42.437c-5.625-5.625-15.586-5.625-21.211 0L68.789 379.579l-43.184-43.184C16.283 327.04 0 333.563 0 347v150c0 8.291 6.709 15 15 15h150c13.361 0 20.018-16.193 10.606-25.605l-43.184-43.184 104.034-104.017c5.88-5.88 5.833-15.378 0-21.211z"/></svg>',fullscreenWeb:'<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 22 22" style="width:80%;height:80%"><path d="M4 18h14V4H4v14zM6 6h10v10H6V6z"/><path d="M2 16H0v6h6v-2H2zM2 2h4V0H0v6h2zM20 20h-4v2h6v-6h-2zM16 0v2h4v4h2V0z"/></svg>',pip:'<svg viewBox="0 0 36 36" style="width:100%;height:100%"><path d="M25 17h-8v6h8v-6zm4 8V10.98C29 9.88 28.1 9 27 9H9c-1.1 0-2 .88-2 1.98V25c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2zm-2 .02H9V10.97h18v14.05z" fill="#fff"/></svg>'},B={},Object.keys(I).forEach(function(t){var e=document.createElement("div");e.innerHTML='<i class="art-icon art-icon-'.concat(t,'">').concat(I[t],"</i>");var n=z(e.childNodes,1);B[t]=n[0]}),B),N=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this,i=t.events.proxy,o=t.i18n,r=t.danmu;this.$danmu=St(e,F.danmu),k(this.$danmu,o.get("Hide danmu")),i(e,"click",function(){r.isOpen?(r.hide(),Pt(n.$danmu,"opacity","1"),k(n.$danmu,o.get("Show danmu"))):(r.show(),Pt(n.$danmu,"opacity","0.8"),k(n.$danmu,o.get("Hide danmu")))})}}]),e}(),V=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this,i=t.events.proxy,o=t.i18n,r=t.player;this.$fullscreen=St(e,F.fullscreen),k(this.$fullscreen,o.get("Fullscreen")),i(e,"click",function(){r.fullscreenState?(r.fullscreenExit(),Pt(n.$fullscreen,"opacity","1"),k(n.$fullscreen,o.get("Fullscreen"))):(r.fullscreenEnabled(),Pt(n.$fullscreen,"opacity","0.8"),k(n.$fullscreen,o.get("Exit fullscreen")))})}}]),e}(),U=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this,i=t.events.proxy,o=t.i18n,r=t.player;this.$fullscreenWeb=St(e,F.fullscreenWeb),k(this.$fullscreenWeb,o.get("Web fullscreen")),i(e,"click",function(){r.fullscreenWebState?(r.fullscreenWebExit(),Pt(n.$fullscreenWeb,"opacity","1"),k(n.$fullscreenWeb,o.get("Web fullscreen"))):(r.fullscreenWebEnabled(),Pt(n.$fullscreenWeb,"opacity","0.8"),k(n.$fullscreenWeb,o.get("Exit web fullscreen")))})}}]),e}(),Y=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=t.events.proxy,i=t.i18n,o=t.player;this.$pip=St(e,F.pip),k(this.$pip,i.get("Mini player")),n(e,"click",function(){o.pipEnabled()})}}]),e}(),J=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this,i=t.events.proxy,o=t.player,r=t.i18n;this.$play=St(e,F.play),this.$pause=St(e,F.pause),k(this.$play,r.get("Play")),k(this.$pause,r.get("Pause")),Pt(this.$pause,"display","none"),i(this.$play,"click",function(){o.play()}),i(this.$pause,"click",function(){o.pause()}),t.on("video:playing",function(){Pt(n.$play,"display","none"),Pt(n.$pause,"display","block")}),t.on("video:pause",function(){Pt(n.$play,"display","block"),Pt(n.$pause,"display","none")})}}]),e}(),Q=function(){function e(t){kt(this,e),this.option=t,this.isDroging=!1,this.getLoaded=this.getLoaded.bind(this),this.getPlayed=this.getPlayed.bind(this),this.set=this.set.bind(this)}return l(e,[{key:"apply",value:function(t,e){var o=this;this.art=t,this.$control=e;var n=t.option,i=n.highlight,r=n.theme,a=t.events.proxy,s=t.refs.$video,c=t.player;St(e,'\n <div class="art-control-progress-inner">\n <div class="art-progress-loaded"></div>\n <div class="art-progress-played" style="background: '.concat(r,'"></div>\n <div class="art-progress-highlight"></div>\n <div class="art-progress-indicator" style="background: ').concat(r,'"></div>\n <div class="art-progress-tip art-tip"></div>\n </div>\n ')),this.$loaded=e.querySelector(".art-progress-loaded"),this.$played=e.querySelector(".art-progress-played"),this.$highlight=e.querySelector(".art-progress-highlight"),this.$indicator=e.querySelector(".art-progress-indicator"),this.$tip=e.querySelector(".art-progress-tip"),this.set("loaded",this.getLoaded()),i.forEach(function(t){var e=Number(t.time)/s.duration;St(o.$highlight,'<span data-text="'.concat(t.text,'" data-time="').concat(t.time,'" style="left: ').concat(100*e,'%"></span>'))}),this.art.on("video:progress",function(){o.set("loaded",o.getLoaded())}),this.art.on("video:timeupdate",function(){o.set("played",o.getPlayed())}),this.art.on("video:ended",function(){o.set("played",1)}),a(e,"mousemove",function(t){Pt(o.$tip,"display","block"),-1<t.path.indexOf(o.$highlight)?o.showHighlight(t):o.showTime(t)}),a(e,"mouseout",function(){Pt(o.$tip,"display","none")}),a(e,"click",function(t){if(t.target!==o.$indicator){var e=o.getPosFromEvent(t),n=e.second,i=e.percentage;o.set("played",i),c.seek(n)}}),a(this.$indicator,"mousedown",function(){o.isDroging=!0}),a(document,"mousemove",function(t){if(o.isDroging){var e=o.getPosFromEvent(t),n=e.second,i=e.percentage;o.$indicator.classList.add("show-indicator"),o.set("played",i),c.seek(n)}}),a(document,"mouseup",function(){o.isDroging&&(o.isDroging=!1,o.$indicator.classList.remove("show-indicator"))})}},{key:"showHighlight",value:function(t){var e=this.art.refs.$video,n=t.target.dataset,i=n.text,o=n.time;this.$tip.innerHTML=i;var r=Number(o)/e.duration*this.$control.clientWidth+t.target.clientWidth/2-this.$tip.clientWidth/2;Pt(this.$tip,"left","".concat(r,"px"))}},{key:"showTime",value:function(t){var e=this.getPosFromEvent(t),n=e.width,i=e.time,o=this.$tip.clientWidth;this.$tip.innerHTML=i,n<=o/2?Pt(this.$tip,"left",0):n>this.$control.clientWidth-o/2?Pt(this.$tip,"left","".concat(this.$control.clientWidth-o,"px")):Pt(this.$tip,"left","".concat(n-o/2,"px"))}},{key:"getPlayed",value:function(){var t=this.art.refs.$video;return t.currentTime/t.duration}},{key:"getLoaded",value:function(){var t=this.art.refs.$video;return t.buffered.length?t.buffered.end(t.buffered.length-1)/t.duration:0}},{key:"getPosFromEvent",value:function(t){var e=this.art.refs,n=e.$video,i=e.$progress,o=i.getBoundingClientRect().left,r=Et(t.x-o,0,i.clientWidth),a=r/i.clientWidth*n.duration;return{second:a,time:Tt(a),width:r,percentage:Et(r/i.clientWidth,0,1)}}},{key:"set",value:function(t,e){Pt(this["$".concat(t)],"width","".concat(100*e,"%")),"played"===t&&Pt(this.$indicator,"left","calc(".concat(100*e,"% - 6.5px)"))}}]),e}(),X=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this,i=t.events.proxy,o=t.i18n,r=t.subtitle;this.$subtitle=St(e,F.subtitle),k(this.$subtitle,o.get("Hide subtitle")),i(e,"click",function(){r.isOpen?(r.hide(),Pt(n.$subtitle,"opacity","1"),k(n.$subtitle,o.get("Show subtitle"))):(r.show(),Pt(n.$subtitle,"opacity","0.8"),k(n.$subtitle,o.get("Hide subtitle")))})}}]),e}(),G=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this;this.art=t,(this.$control=e).innerHTML="00:00 / 00:00",this.art.on("video:canplay",function(){n.getTime()}),this.art.on("video:timeupdate",function(){n.getTime()}),this.art.on("video:seeking",function(){n.getTime()})}},{key:"getTime",value:function(){var t=this.art.player;this.$control.innerHTML="".concat(Tt(t.currentTime())," / ").concat(Tt(t.duration()))}}]),e}(),K=function(){function e(t){kt(this,e),this.option=t,this.isDroging=!1}return l(e,[{key:"apply",value:function(t,e){this.art=t,this.$control=e,this.init()}},{key:"init",value:function(){var e=this,t=this.art,n=t.events.proxy,i=t.player,o=t.i18n;this.$volume=St(this.$control,F.volume),this.$volumeClose=St(this.$control,F.volumeClose),this.$volumePanel=St(this.$control,'<div class="art-volume-panel"></div>'),this.$volumeHandle=St(this.$volumePanel,'<div class="art-volume-slider-handle"></div>'),k(this.$volume,o.get("Mute")),Pt(this.$volumeClose,"display","none");var r=$("volume");this.setVolumeHandle(r),i.volume(r),n(this.$volume,"click",function(){Pt(e.$volume,"display","none"),Pt(e.$volumeClose,"display","block"),i.volume(0)}),n(this.$volumeClose,"click",function(){Pt(e.$volume,"display","block"),Pt(e.$volumeClose,"display","none"),i.volume($("volume"))}),n(this.$control,"mouseenter",function(){e.$volumePanel.classList.add("art-volume-panel-hover"),setTimeout(function(){e.setVolumeHandle(i.volume())},200)}),n(this.$control,"mouseleave",function(){e.$volumePanel.classList.remove("art-volume-panel-hover")}),n(this.$volumePanel,"click",function(t){e.volumeChangeFromEvent(t)}),n(this.$volumeHandle,"mousedown",function(){e.isDroging=!0}),n(this.$volumeHandle,"mousemove",function(t){e.isDroging&&e.volumeChangeFromEvent(t)}),n(document,"mouseup",function(){e.isDroging&&(e.isDroging=!1)}),this.art.on("video:volumechange",function(){var t=i.volume();e.setVolumeHandle(t),0===t?(Pt(e.$volume,"display","none"),Pt(e.$volumeClose,"display","block")):(Pt(e.$volume,"display","block"),Pt(e.$volumeClose,"display","none"))})}},{key:"volumeChangeFromEvent",value:function(t){var e=this.art.player,n=this.$volumePanel.getBoundingClientRect(),i=n.left,o=n.width,r=this.$volumeHandle.getBoundingClientRect().width,a=Et(t.x-i-r/2,0,o-r/2)/(o-r);e.volume(a)}},{key:"setVolumeHandle",value:function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:.7,e=this.$volumePanel.getBoundingClientRect().width,n=this.$volumeHandle.getBoundingClientRect().width,i=n/2+(e-n)*t-n/2;Pt(this.$volumeHandle,"left","".concat(i,"px"))}}]),e}(),Z=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=this,i=t.events.proxy,o=t.i18n,r=t.setting;this.$setting=St(e,F.setting),k(this.$setting,o.get("Show setting")),i(e,"click",function(){r.isOpen?(r.hide(),Pt(n.$setting,"opacity","1"),k(n.$setting,o.get("Show setting"))):(r.show(),Pt(n.$setting,"opacity","0.8"),k(n.$setting,o.get("Hide setting")))})}}]),e}(),tt=function(){function e(t){kt(this,e),this.option=t,this.loading=!1,this.isLoad=!1}return l(e,[{key:"apply",value:function(t,e){var n=this;w((this.art=t).controls.progress,"'thumbnails' control dependent on 'progress' control");var i=t.refs.$progress,o=t.events.proxy;this.$control=e,o(i,"mousemove",function(t){n.loading||(n.loading=!0,n.load(n.art.option.thumbnails.url).then(function(){n.isLoad=!0})),n.isLoad&&(Pt(e,"display","block"),n.showThumbnails(t))}),o(i,"mouseout",function(){Pt(e,"display","none")})}},{key:"load",value:function(i){var o=this.art.events.proxy;return new Promise(function(t,e){var n=new Image;if(n.src=i,n.complete)return t(n);o(n,"load",function(){return t(n)}),o(n,"error",function(){return e(n)})})}},{key:"showThumbnails",value:function(t){var e=this.art,n=e.refs.$progress,i=e.controls.progress.getPosFromEvent(t).width,o=this.art.option.thumbnails,r=o.url,a=o.height,s=o.width,c=o.number,l=o.column,u=n.clientWidth/c,h=Math.ceil(i/u),d=Math.ceil(h/l),f=h%l||l;Pt(this.$control,"backgroundImage","url(".concat(r,")")),Pt(this.$control,"height","".concat(a,"px")),Pt(this.$control,"width","".concat(s,"px")),Pt(this.$control,"backgroundPosition","-".concat(--f*s,"px -").concat(--d*a,"px")),i<=s/2?Pt(this.$control,"left",0):i>n.clientWidth-s/2?Pt(this.$control,"left","".concat(n.clientWidth-s,"px")):Pt(this.$control,"left","".concat(i-s/2,"px"))}}]),e}(),et=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){var n=t.events.proxy,i=t.i18n,o=t.player;this.$screenshot=St(e,F.screenshot),k(this.$screenshot,i.get("Screenshot")),n(this.$screenshot,"click",function(){o.screenshot()})}}]),e}(),nt=function(){function e(t){kt(this,e),this.option=t,this.playIndex=-1}return l(e,[{key:"apply",value:function(t,e){var r=this,a=t.option,n=t.events,i=n.proxy,o=n.hover,s=t.player,c=a.quality.find(function(t){return t.default})||a.quality[0];this.playIndex=a.quality.indexOf(c);var l=St(e,'<div class="art-quality-name">'.concat(c.name,"</div>")),u=a.quality.map(function(t,e){return'<div class="art-quality-item" data-index="'.concat(e,'">').concat(t.name,"</div>")}).join(""),h=St(e,'<div class="art-qualitys">'.concat(u,"</div>"));o(e,function(){e.classList.add("hover")},function(){e.classList.remove("hover")}),i(h,"click",function(t){var e=Number(t.target.dataset.index),n=a.quality[e],i=n.url,o=n.name;i&&o&&r.playIndex!==e&&(s.switch(i,o),l.innerHTML=o,r.playIndex=e)})}}]),e}(),it=0,ot=function(){function n(t){var e=this;kt(this,n),this.art=t,this.$map={},this.art.on("firstCanplay",function(){e.init(),e.mount()})}return l(n,[{key:"init",value:function(){var e=this;this.add(new Q({name:"progress",disable:!1,position:"top",index:10})),this.add(new tt({name:"thumbnails",disable:!this.art.option.thumbnails.url,position:"top",index:20})),this.add(new J({name:"playAndPause",disable:!1,position:"left",index:10})),this.add(new K({name:"volume",disable:!1,position:"left",index:20})),this.add(new G({name:"time",disable:!1,position:"left",index:30})),this.add(new nt({name:"quality",disable:0===this.art.option.quality.length,position:"right",index:10})),this.add(new N({name:"danmu",disable:!1,position:"right",index:20})),this.add(new et({name:"screenshot",disable:!this.art.option.screenshot,position:"right",index:30})),this.add(new X({name:"subtitle",disable:!this.art.option.subtitle.url,position:"right",index:40})),this.add(new Z({name:"setting",disable:!this.art.option.setting,position:"right",index:50})),this.add(new Y({name:"pip",disable:!this.art.option.pip,position:"right",index:60})),this.add(new U({name:"fullscreenWeb",disable:!this.art.option.fullscreenWeb,position:"right",index:70})),this.add(new V({name:"fullscreen",disable:!this.art.option.fullscreen,position:"right",index:80})),this.art.option.controls.forEach(function(t){e.add(t)})}},{key:"add",value:function(t){var e=t.option;if(e&&!e.disable){it++;var n=e.name||t.constructor.name.toLowerCase()||"control".concat(it),i=document.createElement("div");i.setAttribute("class","art-control art-control-".concat(n)),i.dataset.controlIndex=e.index||it,this.commonMethod(t),(this.$map[e.position]||(this.$map[e.position]=[])).push(i),t.apply&&t.apply(this.art,i),this[n]=t}}},{key:"mount",value:function(){var t=this,e=this.art.refs,n=e.$progress,i=e.$controlsLeft,o=e.$controlsRight;Object.keys(this.$map).forEach(function(e){t.$map[e].sort(function(t,e){return Number(t.dataset.controlIndex)-Number(e.dataset.controlIndex)}).forEach(function(t){switch(e){case"top":St(n,t);break;case"left":St(i,t);break;case"right":St(o,t)}})})}},{key:"commonMethod",value:function(t){var e=this;Object.defineProperty(t,"hide",{value:function(){Pt(t.option.$control,"display","none"),e.art.emit("control:hide",t.option.$control)}}),Object.defineProperty(t,"show",{value:function(){Pt(t.option.$control,"display","block"),e.art.emit("control:show",t.option.$control)}})}},{key:"show",value:function(){this.art.refs.$player.classList.add("artplayer-controls-show")}},{key:"hide",value:function(){this.art.refs.$player.classList.remove("artplayer-controls-show")}}]),n}();function rt(t){var e=t.option,n=t.i18n,i=t.player,o=t.contextmenu;return{disable:!e.playbackRate,name:"playbackRate",index:10,html:"\n ".concat(n.get("Play speed"),':\n <span data-rate="0.5">0.5</span>\n <span data-rate="0.75">0.75</span>\n <span data-rate="1" class="normal current">').concat(n.get("Normal"),'</span>\n <span data-rate="1.25">1.25</span>\n <span data-rate="1.5">1.5</span>\n <span data-rate="2.0">2.0</span>\n '),click:function(t){var e=t.target,n=e.dataset.rate;n&&(i.playbackRate(Number(n)),Lt(e).forEach(function(t){return t.classList.remove("current")}),e.classList.add("current"),o.hide())}}}function at(t){var e=t.option,n=t.i18n,i=t.player,o=t.contextmenu;return{disable:!e.aspectRatio,name:"aspectRatio",index:20,html:"\n ".concat(n.get("Aspect ratio"),':\n <span data-ratio="default" class="default current">').concat(n.get("Default"),'</span>\n <span data-ratio="4:3">4:3</span>\n <span data-ratio="16:9">16:9</span>\n '),click:function(t){var e=t.target,n=e.dataset.ratio;n&&(i.aspectRatio(n.split(":")),Lt(e).forEach(function(t){return t.classList.remove("current")}),e.classList.add("current"),o.hide())}}}function st(t){return{disable:!1,name:"info",index:30,html:t.i18n.get("Video info"),click:function(){t.info.show(),t.contextmenu.hide()}}}var ct={disable:!1,name:"version",index:40,html:'<a href="https://github.com/zhw2590582/artplayer" target="_blank">ArtPlayer 1.0.0</a>'};function lt(t){return{disable:!1,name:"close",index:50,html:t.i18n.get("Close"),click:function(){t.contextmenu.hide()}}}var ut=0,ht=function(){function e(t){kt(this,e),this.art=t,this.init()}return l(e,[{key:"init",value:function(){var e=this,t=this.art,n=t.option,i=t.refs,o=t.events.proxy;n.contextmenu.push(rt,at,st,ct,lt),o(i.$player,"contextmenu",function(t){t.preventDefault(),i.$contextmenu||e.creatMenu(),e.show(),e.setPos(t)}),o(i.$player,"click",function(t){i.$contextmenu&&!t.path.includes(i.$contextmenu)&&e.hide()})}},{key:"creatMenu",value:function(){var i=this,t=this.art,e=t.option,n=t.refs,o=t.events.proxy;n.$contextmenu=document.createElement("div"),n.$contextmenu.classList.add("artplayer-contextmenu"),e.contextmenu.filter(function(t){return!t.disable}).map(function(t){ut++;var e="function"==typeof t?t(i.art):t,n=document.createElement("div");return n.dataset.artMenuId=e.index||ut,n.setAttribute("class","art-menu art-menu-".concat(e.name||ut)),St(n,e.html),x(n,e.style||{}),e.click&&o(n,"click",function(t){t.preventDefault(),e.click.call(i,t),i.art.emit("contextmenu:click",n)}),i["$".concat(e.name||ut)]=n}).sort(function(t,e){return Number(t.dataset.artMenuId)-Number(e.dataset.artMenuId)}).forEach(function(t){St(n.$contextmenu,t)}),St(n.$player,n.$contextmenu)}},{key:"setPos",value:function(t){var e=this.art.refs,n=t.clientX,i=t.clientY,o=e.$player.getBoundingClientRect(),r=o.height,a=o.width,s=o.left,c=o.top,l=e.$contextmenu.getBoundingClientRect(),u=l.height,h=l.width,d=n-s,f=i-c;s+a<n+h&&(d=a-h),c+r<i+u&&(f=r-u),Pt(e.$contextmenu,"left","".concat(d,"px")),Pt(e.$contextmenu,"top","".concat(f,"px"))}},{key:"hide",value:function(){var t=this.art.refs.$contextmenu;t&&(Pt(t,"display","none"),this.art.emit("contextmenu:hide",t))}},{key:"show",value:function(){var t=this.art.refs.$contextmenu;t&&(Pt(t,"display","block"),this.art.emit("contextmenu:show",t))}}]),e}(),dt=function(){function e(t){kt(this,e),this.art=t,this.isOpen=!0,this.init()}return l(e,[{key:"init",value:function(){}},{key:"show",value:function(){var t=this.art,e=t.refs.$danmu,n=t.i18n,i=t.notice;Pt(e,"display","block"),this.isOpen=!0,i.show(n.get("Show danmu")),this.art.emit("danmu:show",e)}},{key:"hide",value:function(){var t=this.art,e=t.refs.$danmu,n=t.i18n,i=t.notice;Pt(e,"display","none"),this.isOpen=!1,i.show(n.get("Hide danmu")),this.art.emit("danmu:hide",e)}}]),e}(),ft=function(){function e(t){kt(this,e),this.art=t,this.init()}return l(e,[{key:"init",value:function(){var t=this,e=this.art,n=e.refs,i=n.$infoClose,o=n.$infoPanel;(0,e.events.proxy)(i,"click",function(){t.hide()}),this.art.on("switch",function(){o.innerHTML&&t.getHeader()})}},{key:"show",value:function(){var t=this.art.refs,e=t.$info,n=t.$infoPanel;Pt(e,"display","block"),n.innerHTML||(St(n,this.creatInfo()),this.getHeader()),clearTimeout(this.timer),this.loop(),this.art.emit("info:show",e)}},{key:"creatInfo",value:function(){var t=[];return t.push('\n <div class="art-info-item ">\n <div class="art-info-title">Player version:</div>\n <div class="art-info-content">1.0.0</div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video url:</div>\n <div class="art-info-content" data-video="currentSrc"></div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video type:</div>\n <div class="art-info-content" data-head="Content-Type"></div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video size:</div>\n <div class="art-info-content" data-head="Content-length"></div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video volume:</div>\n <div class="art-info-content" data-video="volume"></div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video time:</div>\n <div class="art-info-content" data-video="currentTime"></div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video duration:</div>\n <div class="art-info-content" data-video="duration"></div>\n </div>\n '),t.push('\n <div class="art-info-item">\n <div class="art-info-title">Video resolution:</div>\n <div class="art-info-content">\n <span data-video="videoWidth"></span> x <span data-video="videoHeight"></span>\n </div>\n </div>\n '),t.join("")}},{key:"getHeader",value:function(){var t=this.art.refs,e=t.$infoPanel,n=t.$video.src,i=Array.from(e.querySelectorAll("[data-head]"));i.forEach(function(t){t.innerHTML="loading..."}),fetch(n,{method:"HEAD"}).then(function(n){i.forEach(function(t){var e=n.headers.get(t.dataset.head);t.innerHTML=void 0!==e?e:"unknown"})}).catch(function(){i.forEach(function(t){t.innerHTML="unknown"})})}},{key:"readInfo",value:function(){var t=this.art.refs,e=t.$infoPanel,n=t.$video;Array.from(e.querySelectorAll("[data-video]")).forEach(function(t){var e=n[t.dataset.video];t.innerHTML=void 0!==e?e:"unknown"})}},{key:"loop",value:function(){var t=this;this.readInfo(),this.timer=setTimeout(function(){t.readInfo(),t.loop()},1e3)}},{key:"hide",value:function(){var t=this.art.refs.$info;Pt(t,"display","none"),clearTimeout(this.timer),this.art.emit("info:hide",t)}}]),e}(),pt=function(){function n(t){kt(this,n),this.art=t,this.isOpen=!0;var e=this.art.option.subtitle.url;e&&(this.checkExt(e),this.init())}return l(n,[{key:"init",value:function(){var i=this,t=this.art,e=t.events.proxy,n=t.option.subtitle,o=t.refs,r=o.$video,a=o.$subtitle;x(a,n.style||{});var s=document.createElement("track");s.default=!0,s.kind="metadata",this.load(n.url).then(function(t){if(s.src=t,r.appendChild(s),i.art.refs.$track=s,r.textTracks&&r.textTracks[0]){var n=z(r.textTracks,1)[0];e(n,"cuechange",function(){var t=z(n.activeCues,1)[0];if(a.innerHTML="",t){var e=document.createElement("div");e.appendChild(t.getCueAsHTML()),a.innerHTML=e.innerHTML.split(/\r?\n/).map(function(t){return"<p>".concat(t,"</p>")}).join("")}i.art.emit("subtitle:update",a)})}})}},{key:"load",value:function(e){var n,i=this,o=this.art.notice;return fetch(e).then(function(t){return n=t.headers.get("Content-Type"),t.text()}).then(function(t){return/x-subrip/gi.test(n)?i.srtToVtt(t):e}).catch(function(t){throw o.show(t),t})}},{key:"srtToVtt",value:function(t){var e="WEBVTT \r\n\r\n".concat(t.replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").concat("\r\n\r\n"));return URL.createObjectURL(new Blob([e],{type:"text/vtt"}))}},{key:"checkExt",value:function(t){var e=function t(e){return e.includes("?")?t(e.split("?")[0]):e.includes("#")?t(e.split("#")[0]):e.trim().toLowerCase().split(".").pop()}(t);w("vtt"===e||"srt"===e,"'subtitle.url' option require 'vtt' or 'srt' format, but got '".concat(e,"'."))}},{key:"show",value:function(){var t=this.art,e=t.refs.$subtitle,n=t.i18n,i=t.notice;Pt(e,"display","block"),this.isOpen=!0,i.show(n.get("Show subtitle")),this.art.emit("subtitle:show",e)}},{key:"hide",value:function(){var t=this.art,e=t.refs.$subtitle,n=t.i18n,i=t.notice;Pt(e,"display","none"),this.isOpen=!1,i.show(n.get("Hide subtitle")),this.art.emit("subtitle:hide",e)}},{key:"switch",value:function(e){var n=this,i=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",t=this.art.refs,o=t.$track,r=t.i18n,a=t.notice;this.checkExt(e),w(o,"You need to initialize the subtitle option first."),this.load(e).then(function(t){e!==t&&(o.src=t,a.show("".concat(r.get("Switch subtitle"),": ").concat(i)),n.art.emit("subtitle:switch",e))})}}]),n}(),vt=function(){function e(t){kt(this,e),this.art=t,this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),this.init()}return l(e,[{key:"init",value:function(){var t=this,e=this.art.refs.$player;this.hover(e,function(){e.classList.add("artplayer-hover"),t.art.emit("hoverenter")},function(){e.classList.remove("artplayer-hover"),e.classList.remove("artplayer-hide-cursor"),t.art.emit("hoverleave")});var n,i,o,r,a=(n=function(){e.classList.add("artplayer-hide-cursor"),(t.art.player.fullscreenState||t.art.player.fullscreenWebState)&&(e.classList.remove("artplayer-hover"),t.art.controls.hide())},i=5e3,function(){var t=arguments;clearTimeout(r),r=setTimeout(function(){r=null,n.apply(o,t)},i)});this.proxy(e,"mousemove",function(){e.classList.remove("artplayer-hide-cursor"),t.art.controls.show(),t.art.player.pipState||a()})}},{key:"proxy",value:function(e,t,n){var i=this,o=3<arguments.length&&void 0!==arguments[3]?arguments[3]:{};Array.isArray(t)?t.forEach(function(t){return i.proxy(e,t,n,o)}):(e.addEventListener(t,n,o),this.destroyEvents.push(function(){e.removeEventListener(t,n,o)}))}},{key:"hover",value:function(t,e,n){this.proxy(t,"mouseenter",e),this.proxy(t,"mouseleave",n)}},{key:"destroy",value:function(){this.destroyEvents.forEach(function(t){return t()})}}]),e}(),yt=function(){function e(t){kt(this,e),this.art=t,this.art.option.hotkey&&this.init()}return l(e,[{key:"init",value:function(){var i=this,t=this.art,o=t.player,e=t.refs.$player,n=t.events.proxy;n(document,["click","contextmenu"],function(t){i.art.isFocus=-1<t.path.indexOf(e)}),n(window,"keydown",function(t){if(i.art.isFocus){var e=document.activeElement.tagName.toUpperCase(),n=document.activeElement.getAttribute("contenteditable");if("INPUT"!==e&&"TEXTAREA"!==e&&""!==n&&"true"!==n)switch(t.keyCode){case 39:t.preventDefault(),o.seek(o.currentTime()+10);break;case 37:t.preventDefault(),o.seek(o.currentTime()-10);break;case 38:t.preventDefault(),o.volume(o.volume()+.05);break;case 40:t.preventDefault(),o.volume(o.volume()-.05);break;case 32:t.preventDefault(),o.toggle()}}})}}]),e}(),mt=0,gt=function(){function e(t){kt(this,e),this.art=t,this.add=this.add.bind(this),this.art.option.layers.filter(function(t){return!t.disable}).forEach(this.add)}return l(e,[{key:"add",value:function(t,e){var n=this.art.refs.$layers;mt++;var i=document.createElement("div");i.setAttribute("data-art-layer-id",mt),i.setAttribute("class","art-layer art-layer-".concat(t.name||mt)),Pt(i,"z-index",t.index||mt),St(i,t.html),x(i,t.style||{}),n.appendChild(i),this.art.emit("layers:add",i),e&&e(i)}},{key:"show",value:function(){var t=this.art.refs.$layers;Pt(t,"display","block"),this.art.emit("layers:show",t)}},{key:"hide",value:function(){var t=this.art.refs.$layers;Pt(t,"display","none"),this.art.emit("layers:hide",t)}}]),e}(),bt=function(){function e(t){kt(this,e),this.art=t,this.init()}return l(e,[{key:"init",value:function(){var t=this.art,e=t.option;St(t.refs.$loading,e.loading||F.loading)}},{key:"hide",value:function(){var t=this.art.refs.$loading;Pt(t,"display","none"),this.art.emit("loading:hide",t)}},{key:"show",value:function(){var t=this.art.refs.$loading;Pt(t,"display","flex"),this.art.emit("loading:show",t)}}]),e}(),wt=function(){function e(t){kt(this,e),this.art=t,this.timer=null}return l(e,[{key:"show",value:function(t){var e=this,n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=2<arguments.length&&void 0!==arguments[2]?arguments[2]:1e3,o=this.art.refs,r=o.$notice,a=o.$noticeInner;Pt(r,"display","block"),a.innerHTML=t instanceof Error?t.message.trim():t,n&&(clearTimeout(this.timer),this.timer=setTimeout(function(){e.hide()},i)),this.art.emit("notice:show",r)}},{key:"hide",value:function(){var t=this.art.refs.$notice;Pt(t,"display","none"),this.art.emit("notice:hide",t)}}]),e}(),xt=function(){function e(t){kt(this,e),this.art=t,this.init()}return l(e,[{key:"init",value:function(){var t=this.art,e=t.option;St(t.refs.$mask,e.play||F.playBig)}},{key:"show",value:function(){var t=this.art.refs.$mask;Pt(t,"display","flex"),this.art.emit("mask:show",t)}},{key:"hide",value:function(){var t=this.art.refs.$mask;Pt(t,"display","none"),this.art.emit("mask:show",t)}}]),e}(),$t=function(){function e(t){kt(this,e),this.option=t}return l(e,[{key:"apply",value:function(t,e){this.art=t,this.$header=e.querySelector(".art-setting-header"),this.$body=e.querySelector(".art-setting-body"),St(this.$body,"———— 先占坑,暂无设置 ————")}}]),e}(),At=0,Dt=function(){function e(t){kt(this,e),this.art=t,this.isOpen=!1,this.$settings=[],t.option.setting&&(this.init(),this.mount())}return l(e,[{key:"init",value:function(){var t=this,e=this.art,n=e.refs.$settingClose;(0,e.events.proxy)(n,"click",function(){t.hide()}),this.add(new $t({name:"common",title:"Common",disable:!1,index:10}))}},{key:"add",value:function(t){var e=t.option;if(e&&!e.disable){At++;var n=e.name||t.constructor.name.toLowerCase()||"setting".concat(At),i=e.title||n,o=document.createElement("div");o.setAttribute("class","art-setting art-setting-".concat(n)),o.dataset.settingIndex=e.index||At,St(o,'<div class="art-setting-header">'.concat(this.art.i18n.get(i),"</div>")),St(o,'<div class="art-setting-body"></div>'),this.$settings.push(o),t.apply&&t.apply(this.art,o),this[n]=t}}},{key:"mount",value:function(){var e=this;this.$settings.sort(function(t,e){return Number(t.dataset.settingIndex)-Number(e.dataset.settingIndex)}).forEach(function(t){St(e.art.refs.$settingBody,t)})}},{key:"show",value:function(){var t=this.art,e=t.refs.$setting,n=t.i18n,i=t.notice;Pt(e,"display","flex"),this.isOpen=!0,i.show(n.get("Show setting")),this.art.emit("setting:show",e)}},{key:"hide",value:function(){var t=this.art,e=t.refs.$setting,n=t.i18n,i=t.notice;Pt(e,"display","none"),this.isOpen=!1,i.show(n.get("Hide setting")),this.art.emit("setting:hide",e)}}]),e}(),Wt=0,qt=[],zt=function(t){function n(t){var e;return kt(this,n),(e=f(this,p(n).call(this))).emit("init:start"),e.option=function t(){for(var e=function(t){return null!==t&&"object"===h(t)},n={},i=arguments.length,o=new Array(i),r=0;r<i;r++)o[r]=arguments[r];for(var a=0;a<o.length;a++){var s=o[a];if(Array.isArray(s))Array.isArray(n)||(n=[]),n=u(n).concat(u(s));else if(e(s)){if(s instanceof Element)return s;for(var c in s)if(s.hasOwnProperty(c)){var l=s[c];e(l)&&c in n&&(l=t(n[c],l)),n=m({},n,y({},c,l))}}}return n}({},n.DEFAULTS,t),E(e.option,P),e.init(),e.emit("init:end"),e}return v(n,_),l(n,[{key:"init",value:function(){return this.isError=!1,this.isFocus=!1,this.isPlaying=!1,this.refs={},this.option.container instanceof Element?this.refs.$container=this.option.container:this.refs.$container=document.querySelector(this.option.container),this.template=new L(this),this.i18n=new M(this),this.notice=new wt(this),this.events=new vt(this),this.player=new A(this),this.layers=new gt(this),this.controls=new ot(this),this.contextmenu=new ht(this),this.danmu=new dt(this),this.subtitle=new pt(this),this.info=new ft(this),this.loading=new bt(this),this.hotkey=new yt(this),this.mask=new xt(this),this.setting=new Dt(this),this.id=Wt++,qt.push(this),this}},{key:"destroy",value:function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];this.events.destroy(),qt.splice(qt.indexOf(this),1),t?this.refs.$container.innerHTML="":this.refs.$player.classList.add("artplayer-destroy"),this.emit("destroy")}}],[{key:"use",value:function(t){var e=t.name.toLowerCase(),n=this.plugins||(this.plugins={});if(!n[e]){var i=Array.from(arguments).slice(1);i.unshift(this),n[e]=o(t,u(i)),this.prototype.emit("use",t)}return this}},{key:"version",get:function(){return"1.0.0"}},{key:"config",get:function(){return Ct}},{key:"DEFAULTS",get:function(){return{container:".artplayer",url:"",poster:"",title:"",volume:.7,thumbnails:{url:"",number:60,width:160,height:90,column:10},screenshot:!0,autoplay:!1,playbackRate:!0,aspectRatio:!0,loop:!1,type:"",mimeCodec:"",layers:[],contextmenu:[],quality:[],loading:"",play:"",theme:"#f00",setting:!1,hotkey:!0,pip:!0,fullscreen:!0,fullscreenWeb:!0,subtitle:{url:"",style:{}},controls:[],highlight:[],moreVideoAttr:{crossOrigin:"anonymous",controls:!1,preload:"auto","webkit-playsinline":!0,playsinline:!0},lang:navigator.language.toLowerCase()}}}]),n}();window.Artplayer=zt,t.instances=qt,t.default=zt,Object.defineProperty(t,"__esModule",{value:!0})});
|