text: !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("cplayer-umd",[],t):"object"==typeof exports?exports["cplayer-umd"]=t():e["cplayer-umd"]=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var o=t[i]={i:i,l:!1,exports:{}};return e[i].call(o.exports,o,o.exports,n),o.l=!0,o.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:i})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var i=Object.create(null);if(n.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(i,o,function(t){return e[t]}.bind(null,o));return i},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=4)}([function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(10);function a(e,t,n,i){var o,a=!1;return t.forEach((function(t,n){r.default(t,e)&&(o=n)})),void 0!==o&&(t.splice(o,1),n>o?(n--,a=!1):n===o&&(n=i(n),a=!0)),{playlist:t,nowpoint:n,needupdate:a}}t.baseRemoveMusic=a;var l=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e),this.__playlist=[],this.point=0,this.__playlist=t,this.to(n)}var t,n,r;return t=e,(n=[{key:"next",value:function(){return this.point=this.nextPoint(),this.playlist[this.point]}},{key:"prev",value:function(){return this.point=this.prevPoint(),this.playlist[this.point]}},{key:"now",value:function(){return this.playlist[this.point]}},{key:"nowpoint",value:function(){return this.point}},{key:"to",value:function(e){this.point=Math.max(0,Math.min(e,this.__playlist.length-1))}},{key:"addMusic",value:function(e){this.__playlist.push(e)}},{key:"nextPoint",value:function(){var e=this.point+1;return e>=this.__playlist.length&&(e=0),e}},{key:"prevPoint",value:function(){var e=this.point-1;return e<0&&(e=this.__playlist.length-1),e}},{key:"removeMusic",value:function(e){var t=this,n=a(e,this.__playlist,this.point,(function(e){return Math.max(0,Math.min(e,t.__playlist.length-1))})),i=n.playlist,o=n.nowpoint,r=n.needupdate;return this.__playlist=i,this.point=o,r}},{key:"playlist",get:function(){return this.__playlist}}])&&o(t.prototype,n),r&&o(t,r),e}();t.listloopPlaymode=l},function(e,t){e.exports="data:image/jpeg;base64,/9j/4AAQSkZJRgABAQEASABIAAD/2wBDAAgGBgcGBQgHBwcJCQgKDBQNDAsLDBkSEw8UHRofHh0aHBwgJC4nICIsIxwcKDcpLDAxNDQ0Hyc5PTgyPC4zNDL/2wBDAQkJCQwLDBgNDRgyIRwhMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjIyMjL/wAARCAAiACIDASIAAhEBAxEB/8QAGQAAAgMBAAAAAAAAAAAAAAAAAAcDBAUG/8QALhAAAgEDAwIFAwMFAAAAAAAAAQIDAAQRBRIhE0EGIjFRkRQzYTI1cXOBocHR/8QAGAEAAwEBAAAAAAAAAAAAAAAAAQIDBAX/xAAiEQACAQMCBwAAAAAAAAAAAAAAAQIDETESFAQhIkFRYWL/2gAMAwEAAhEDEQA/AGBo7mOKMEBjgc4rqLaRWXG1fgUttA1qNbnpPdGV5mIRRhkiKgeTjkE5J5/1W9pniH6jVbuPdiO2gJwHG13B5wcc44+a5tPpNM4N3OwlC45RfgVlXMA2t5E/nFVZ/EEaWVlcmJmjuDHnDAdIP6MR3GSBx71Fe37LbSSKylVIyNwyM002IotGc2N7cr6+1FYTXu5iepKcnP66KzF9AoBfQ2LmzgWWJp3L72A8rNt2kY5x/wBrtfD+oSXkQ6k8iQSRuJVjwr78DcATx6YyfYehNcbsttTkayGoiGcPuh3REo2FG0bt2R6e3fvVW2vulYSSMPND9vk46jcA/Ab/ABXTlBSXsCnpvfAydb8TR3eg7bMrGrStB1c8r0wTsP4PDKe/OeRUXiPxFLBojump6fFcTtGFeCTDHaoJyMe5A70uYte+n097Z7eK6EjA4mJCptXAK7SOcE1S1a9jvbqNoYzFCkSIiFtxGBzk9znvQXD81cV1kkMSAWDQRt9bMuVB272OOPTOKKVu4+5+aKO2+gbleC5bfusf9U1ctlB1RYiAYy/Kn0P9qKKtLIkMGfeKBdkAADjgVFcffYdgcD8UUU6JPuR0UUURT//Z"},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){"use strict";var i,o="object"==typeof Reflect?Reflect:null,r=o&&"function"==typeof o.apply?o.apply:function(e,t,n){return Function.prototype.apply.call(e,t,n)};i=o&&"function"==typeof o.ownKeys?o.ownKeys:Object.getOwnPropertySymbols?function(e){return Object.getOwnPropertyNames(e).concat(Object.getOwnPropertySymbols(e))}:function(e){return Object.getOwnPropertyNames(e)};var a=Number.isNaN||function(e){return e!=e};function l(){l.init.call(this)}e.exports=l,l.EventEmitter=l,l.prototype._events=void 0,l.prototype._eventsCount=0,l.prototype._maxListeners=void 0;var c=10;function s(e){if("function"!=typeof e)throw new TypeError('The "listener" argument must be of type Function. Received type '+typeof e)}function p(e){return void 0===e._maxListeners?l.defaultMaxListeners:e._maxListeners}function u(e,t,n,i){var o,r,a,l;if(s(n),void 0===(r=e._events)?(r=e._events=Object.create(null),e._eventsCount=0):(void 0!==r.newListener&&(e.emit("newListener",t,n.listener?n.listener:n),r=e._events),a=r[t]),void 0===a)a=r[t]=n,++e._eventsCount;else if("function"==typeof a?a=r[t]=i?[n,a]:[a,n]:i?a.unshift(n):a.push(n),(o=p(e))>0&&a.length>o&&!a.warned){a.warned=!0;var c=new Error("Possible EventEmitter memory leak detected. "+a.length+" "+String(t)+" listeners added. Use emitter.setMaxListeners() to increase limit");c.name="MaxListenersExceededWarning",c.emitter=e,c.type=t,c.count=a.length,l=c,console&&console.warn&&console.warn(l)}return e}function d(){if(!this.fired)return this.target.removeListener(this.type,this.wrapFn),this.fired=!0,0===arguments.length?this.listener.call(this.target):this.listener.apply(this.target,arguments)}function y(e,t,n){var i={fired:!1,wrapFn:void 0,target:e,type:t,listener:n},o=d.bind(i);return o.listener=n,i.wrapFn=o,o}function h(e,t,n){var i=e._events;if(void 0===i)return[];var o=i[t];return void 0===o?[]:"function"==typeof o?n?[o.listener||o]:[o]:n?function(e){for(var t=new Array(e.length),n=0;n<t.length;++n)t[n]=e[n].listener||e[n];return t}(o):f(o,o.length)}function m(e){var t=this._events;if(void 0!==t){var n=t[e];if("function"==typeof n)return 1;if(void 0!==n)return n.length}return 0}function f(e,t){for(var n=new Array(t),i=0;i<t;++i)n[i]=e[i];return n}Object.defineProperty(l,"defaultMaxListeners",{enumerable:!0,get:function(){return c},set:function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "defaultMaxListeners" is out of range. It must be a non-negative number. Received '+e+".");c=e}}),l.init=function(){void 0!==this._events&&this._events!==Object.getPrototypeOf(this)._events||(this._events=Object.create(null),this._eventsCount=0),this._maxListeners=this._maxListeners||void 0},l.prototype.setMaxListeners=function(e){if("number"!=typeof e||e<0||a(e))throw new RangeError('The value of "n" is out of range. It must be a non-negative number. Received '+e+".");return this._maxListeners=e,this},l.prototype.getMaxListeners=function(){return p(this)},l.prototype.emit=function(e){for(var t=[],n=1;n<arguments.length;n++)t.push(arguments[n]);var i="error"===e,o=this._events;if(void 0!==o)i=i&&void 0===o.error;else if(!i)return!1;if(i){var a;if(t.length>0&&(a=t[0]),a instanceof Error)throw a;var l=new Error("Unhandled error."+(a?" ("+a.message+")":""));throw l.context=a,l}var c=o[e];if(void 0===c)return!1;if("function"==typeof c)r(c,this,t);else{var s=c.length,p=f(c,s);for(n=0;n<s;++n)r(p[n],this,t)}return!0},l.prototype.addListener=function(e,t){return u(this,e,t,!1)},l.prototype.on=l.prototype.addListener,l.prototype.prependListener=function(e,t){return u(this,e,t,!0)},l.prototype.once=function(e,t){return s(t),this.on(e,y(this,e,t)),this},l.prototype.prependOnceListener=function(e,t){return s(t),this.prependListener(e,y(this,e,t)),this},l.prototype.removeListener=function(e,t){var n,i,o,r,a;if(s(t),void 0===(i=this._events))return this;if(void 0===(n=i[e]))return this;if(n===t||n.listener===t)0==--this._eventsCount?this._events=Object.create(null):(delete i[e],i.removeListener&&this.emit("removeListener",e,n.listener||t));else if("function"!=typeof n){for(o=-1,r=n.length-1;r>=0;r--)if(n[r]===t||n[r].listener===t){a=n[r].listener,o=r;break}if(o<0)return this;0===o?n.shift():function(e,t){for(;t+1<e.length;t++)e[t]=e[t+1];e.pop()}(n,o),1===n.length&&(i[e]=n[0]),void 0!==i.removeListener&&this.emit("removeListener",e,a||t)}return this},l.prototype.off=l.prototype.removeListener,l.prototype.removeAllListeners=function(e){var t,n,i;if(void 0===(n=this._events))return this;if(void 0===n.removeListener)return 0===arguments.length?(this._events=Object.create(null),this._eventsCount=0):void 0!==n[e]&&(0==--this._eventsCount?this._events=Object.create(null):delete n[e]),this;if(0===arguments.length){var o,r=Object.keys(n);for(i=0;i<r.length;++i)"removeListener"!==(o=r[i])&&this.removeAllListeners(o);return this.removeAllListeners("removeListener"),this._events=Object.create(null),this._eventsCount=0,this}if("function"==typeof(t=n[e]))this.removeListener(e,t);else if(void 0!==t)for(i=t.length-1;i>=0;i--)this.removeListener(e,t[i]);return this},l.prototype.listeners=function(e){return h(this,e,!0)},l.prototype.rawListeners=function(e){return h(this,e,!1)},l.listenerCount=function(e,t){return"function"==typeof e.listenerCount?e.listenerCount(t):m.call(e,t)},l.prototype.listenerCount=m,l.prototype.eventNames=function(){return this._eventsCount>0?i(this._events):[]}},function(e,t,n){e.exports=n(5)},function(e,t,n){"use strict";(function(e){function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e){return(r=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function a(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0}),n(9);var c=n(0),s=n(3),p=n(11),u=n(12),d=n(13),y=n(14),h=void 0;h=n(15).default;var m={playlist:[],point:0,volume:1,playmode:"listloop",autoplay:!1},f={listloop:c.listloopPlaymode,singlecycle:u.singlecyclePlaymode,listrandom:d.listrandomPlaymode};function v(e){return e.map((function(e,t){var n=Object.assign({},e);return"string"==typeof e.lyric&&e.lyric.replace(/\n+/gi,"\n").trim()&&(n.lyric=p.decodeLyricStr(e.lyric)),"string"==typeof e.sublyric&&e.sublyric.replace(/\n+/gi,"\n").trim()&&(n.sublyric=p.decodeLyricStr(e.sublyric)),n}))}var g=function(t){function n(t){var o;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,n),(o=function(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?a(e):t}(this,r(n).call(this))).__paused=!0,o.playmodeName="listloop",o._volume=0,o.eventHandlers={handlePlay:function(){o.__paused&&o.pause()},handlePlaying:function(){0===o.audioElement.currentTime&&o.emit("started")},handleTimeUpdate:function(){var e=o.audioElement.duration,t=o.audioElement.currentTime;o.emit("timeupdate",t,e)},handleCanPlayThrough:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=o).emit.apply(e,["canplaythrough"].concat(n))},handlePause:function(){o.__paused||o.audioElement.ended||o.play(!0).catch((function(e){console.log(e),o.pause()}))},handleEnded:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=o).emit.apply(e,["ended"].concat(n)),o.__paused||o.next()},handlePlayListChange:function(){for(var e,t=arguments.length,n=new Array(t),i=0;i<t;i++)n[i]=arguments[i];(e=o).emit.apply(e,["playlistchange"].concat(n))},handlePlaymodeChange:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:o.mode;o.emit("playmodechange",e)},handleLoadeddata:function(){var e=o.audioElement.duration,t=o.audioElement.currentTime;o.emit("timeupdate",t,e)}},t=Object.assign(Object.assign({},m),t),o.playmode=new f[t.playmode](v(t.playlist),t.point),o.view=new h(a(o),t),y.cplayerMediaSessionPlugin(a(o)),e((function(){o.openAudio(),o.setVolume(t.volume),t.autoplay&&o.playlist.length>0&&o.play(!0).catch((function(e){console.log(e),o.pause()}))})),o}var c,s,p;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(n,t),c=n,(s=[{key:"initializeEventEmitter",value:function(e){var t=e.addEventListener.bind(e),n=this.eventHandlers;t("timeupdate",n.handleTimeUpdate),t("canplaythrough",n.handleCanPlayThrough),t("pause",n.handlePause),t("play",n.handlePlay),t("playing",n.handlePlaying),t("ended",n.handleEnded),t("loadeddata",n.handleLoadeddata)}},{key:"removeEventEmitter",value:function(e){var t=e.removeEventListener.bind(e),n=this.eventHandlers;t("timeupdate",n.handleTimeUpdate),t("canplaythrough",n.handleCanPlayThrough),t("pause",n.handlePause),t("play",n.handlePlay),t("playing",n.handlePlaying),t("ended",n.handleEnded),t("loadeddata",n.handleLoadeddata)}},{key:"setCurrentTime",value:function(e){if("string"==typeof e&&(e.trim(),"%"===e[e.length-1])){var t=parseFloat(e);e=this.duration*(t/100)}this.audioElement&&(this.audioElement.currentTime=parseFloat(e.toString()))}},{key:"isPlaying",value:function(){return!!this.audioElement&&this.audioElement.currentTime>0&&!this.audioElement.paused&&!this.audioElement.ended&&this.audioElement.readyState>2}},{key:"openAudio",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.nowplay;e&&("video"===e.type?"HTMLVideoElement"!==this.audioElementType&&(void 0!==this.audioElement&&(this.removeEventEmitter(this.audioElement),this.audioElement.src=""),this.audioElement=document.createElement("video"),this.audioElement instanceof HTMLVideoElement&&(this.audioElementType="HTMLVideoElement",this.audioElement.loop=!1,this.audioElement.autoplay=!1,this.audioElement.poster=e.poster,this.audioElement.setAttribute("playsinline","true"),this.audioElement.setAttribute("webkit-playsinline","true")),this.initializeEventEmitter(this.audioElement),this.emit("audioelementchange",this.audioElement)):"HTMLAudioElement"!==this.audioElementType&&(void 0!==this.audioElement&&(this.removeEventEmitter(this.audioElement),this.audioElement.src=""),this.audioElement=new Audio,this.audioElementType="HTMLAudioElement",this.audioElement.loop=!1,this.audioElement.autoplay=!1,this.initializeEventEmitter(this.audioElement),this.emit("audioelementchange",this.audioElement)),this.setVolume(this.volume),this.audioElement.src=this.nowplay.src,this.emit("openaudio",e),this.__paused||this.play())}},{key:"toggleMode",value:function(){switch(this.playmodeName){case"listloop":this.setMode("singlecycle");break;case"singlecycle":this.setMode("listrandom");break;case"listrandom":this.setMode("listloop")}}},{key:"setMode",value:function(e){"string"==typeof e&&this.playmodeName!==e&&f[e]&&(this.playmode=new f[e](this.playlist,this.nowplaypoint),this.playmodeName=e,this.eventHandlers.handlePlaymodeChange())}},{key:"getMode",value:function(){return this.mode}},{key:"play",value:function(){var e,t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=this.isPlaying();return(!n&&this.playlist.length>0||t)&&(e=this.audioElement.play()),this.__paused&&(this.__paused=!1,this.emit("playstatechange",this.__paused),this.emit("play")),e}},{key:"pause",value:function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t=this.isPlaying();(t&&this.playlist.length>0||e)&&this.audioElement.pause(),this.__paused||(this.__paused=!0,this.emit("playstatechange",this.__paused),this.emit("pause"))}},{key:"to",value:function(e){this.playmode.to(e),this.openAudio()}},{key:"next",value:function(){this.playmode.next(),this.openAudio()}},{key:"prev",value:function(){this.playmode.prev(),this.openAudio()}},{key:"togglePlayState",value:function(){this.__paused?this.play():this.pause()}},{key:"add",value:function(e){e=v([e])[0],this.playmode.addMusic(e),this.eventHandlers.handlePlayListChange(),1===this.playlist.length&&this.to(0)}},{key:"remove",value:function(e){var t=this.playmode.removeMusic(e);this.eventHandlers.handlePlayListChange(),t&&this.openAudio()}},{key:"setVolume",value:function(e){this._volume=parseFloat(e),this.audioElement&&(this.audioElement.volume=Math.max(0,Math.min(1,this._volume))),this.emit("volumechange",this.volume)}},{key:"destroy",value:function(){var e=this;this.audioElement&&(this.audioElement.src=null,this.audioElement.removeEventListener("timeupdate",this.eventHandlers.handleTimeUpdate),this.removeAllListeners()),this.view&&this.view.destroy(),Object.getOwnPropertyNames(this).forEach((function(t){return delete e[t]})),this.__proto__=Object}},{key:"mode",set:function(e){this.setMode(e)},get:function(){return this.playmodeName}},{key:"volume",set:function(e){this.setVolume(e)},get:function(){return this._volume}},{key:"playlist",get:function(){return this.playmode.playlist}},{key:"nowplay",get:function(){return this.playmode&&this.playmode.now()}},{key:"nowplaypoint",get:function(){return this.playmode&&this.playmode.nowpoint()}},{key:"played",get:function(){return!this.__paused}},{key:"paused",get:function(){return this.__paused}},{key:"duration",get:function(){return this.audioElement?this.audioElement.duration:0}},{key:"currentTime",get:function(){return this.audioElement?this.audioElement.currentTime:0}}])&&o(c.prototype,s),p&&o(c,p),n}(s.EventEmitter);t.default=g;window.addEventListener("load",(function(){Array.prototype.forEach.call(document.querySelectorAll("template[cplayer]"),(function(e){e.attributes.getNamedItem("loaded")||new g(Object.assign({generateBeforeElement:!0,deleteElementAfterGenerate:!0,element:e},JSON.parse(e.innerHTML)))}))})),window.cplayer=g}).call(this,n(6).setImmediate)},function(e,t,n){(function(e){var i=void 0!==e&&e||"undefined"!=typeof self&&self||window,o=Function.prototype.apply;function r(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new r(o.call(setTimeout,i,arguments),clearTimeout)},t.setInterval=function(){return new r(o.call(setInterval,i,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},r.prototype.unref=r.prototype.ref=function(){},r.prototype.close=function(){this._clearFn.call(i,this._id)},t.enroll=function(e,t){clearTimeout(e._idleTimeoutId),e._idleTimeout=t},t.unenroll=function(e){clearTimeout(e._idleTimeoutId),e._idleTimeout=-1},t._unrefActive=t.active=function(e){clearTimeout(e._idleTimeoutId);var t=e._idleTimeout;t>=0&&(e._idleTimeoutId=setTimeout((function(){e._onTimeout&&e._onTimeout()}),t))},n(7),t.setImmediate="undefined"!=typeof self&&self.setImmediate||void 0!==e&&e.setImmediate||this&&this.setImmediate,t.clearImmediate="undefined"!=typeof self&&self.clearImmediate||void 0!==e&&e.clearImmediate||this&&this.clearImmediate}).call(this,n(2))},function(e,t,n){(function(e,t){!function(e,n){"use strict";if(!e.setImmediate){var i,o,r,a,l,c=1,s={},p=!1,u=e.document,d=Object.getPrototypeOf&&Object.getPrototypeOf(e);d=d&&d.setTimeout?d:e,"[object process]"==={}.toString.call(e.process)?i=function(e){t.nextTick((function(){h(e)}))}:!function(){if(e.postMessage&&!e.importScripts){var t=!0,n=e.onmessage;return e.onmessage=function(){t=!1},e.postMessage("","*"),e.onmessage=n,t}}()?e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){h(e.data)},i=function(e){r.port2.postMessage(e)}):u&&"onreadystatechange"in u.createElement("script")?(o=u.documentElement,i=function(e){var t=u.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,o.removeChild(t),t=null},o.appendChild(t)}):i=function(e){setTimeout(h,0,e)}:(a="setImmediate$"+Math.random()+"$",l=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(a)&&h(+t.data.slice(a.length))},e.addEventListener?e.addEventListener("message",l,!1):e.attachEvent("onmessage",l),i=function(t){e.postMessage(a+t,"*")}),d.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),n=0;n<t.length;n++)t[n]=arguments[n+1];var o={callback:e,args:t};return s[c]=o,i(c),c++},d.clearImmediate=y}function y(e){delete s[e]}function h(e){if(p)setTimeout(h,0,e);else{var t=s[e];if(t){p=!0;try{!function(e){var t=e.callback,n=e.args;switch(n.length){case 0:t();break;case 1:t(n[0]);break;case 2:t(n[0],n[1]);break;case 3:t(n[0],n[1],n[2]);break;default:t.apply(void 0,n)}}(t)}finally{y(e),p=!1}}}}}("undefined"==typeof self?void 0===e?this:e:self)}).call(this,n(2),n(8))},function(e,t){var n,i,o=e.exports={};function r(){throw new Error("setTimeout has not been defined")}function a(){throw new Error("clearTimeout has not been defined")}function l(e){if(n===setTimeout)return setTimeout(e,0);if((n===r||!n)&&setTimeout)return n=setTimeout,setTimeout(e,0);try{return n(e,0)}catch(t){try{return n.call(null,e,0)}catch(t){return n.call(this,e,0)}}}!function(){try{n="function"==typeof setTimeout?setTimeout:r}catch(e){n=r}try{i="function"==typeof clearTimeout?clearTimeout:a}catch(e){i=a}}();var c,s=[],p=!1,u=-1;function d(){p&&c&&(p=!1,c.length?s=c.concat(s):u=-1,s.length&&y())}function y(){if(!p){var e=l(d);p=!0;for(var t=s.length;t;){for(c=s,s=[];++u<t;)c&&c[u].run();u=-1,t=s.length}c=null,p=!1,function(e){if(i===clearTimeout)return clearTimeout(e);if((i===a||!i)&&clearTimeout)return i=clearTimeout,clearTimeout(e);try{i(e)}catch(t){try{return i.call(null,e)}catch(t){return i.call(this,e)}}}(e)}}function h(e,t){this.fun=e,this.array=t}function m(){}o.nextTick=function(e){var t=new Array(arguments.length-1);if(arguments.length>1)for(var n=1;n<arguments.length;n++)t[n-1]=arguments[n];s.push(new h(e,t)),1!==s.length||p||l(y)},h.prototype.run=function(){this.fun.apply(null,this.array)},o.title="browser",o.browser=!0,o.env={},o.argv=[],o.version="",o.versions={},o.on=m,o.addListener=m,o.once=m,o.off=m,o.removeListener=m,o.removeAllListeners=m,o.emit=m,o.prependListener=m,o.prependOnceListener=m,o.listeners=function(e){return[]},o.binding=function(e){throw new Error("process.binding is not supported")},o.cwd=function(){return"/"},o.chdir=function(e){throw new Error("process.chdir is not supported")},o.umask=function(){return 0}},function(e,t){"function"!=typeof Object.assign&&Object.defineProperty(Object,"assign",{value:function(e,t){"use strict";if(null==e)throw new TypeError("Cannot convert undefined or null to object");for(var n=Object(e),i=1;i<arguments.length;i++){var o=arguments[i];if(null!=o)for(var r in o)Object.prototype.hasOwnProperty.call(o,r)&&(n[r]=o[r])}return n},writable:!0,configurable:!0})},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}Object.defineProperty(t,"__esModule",{value:!0});var o=Object.prototype.hasOwnProperty;function r(e,t){return e==t?0!=e||0!=t||1/e==1/t:e!=e&&t!=t}t.default=function(e,t){if(r(e,t))return!0;if("object"!==i(e)||null===e||"object"!==i(t)||null===t)return!1;var n=Object.keys(e),a=Object.keys(t);if(n.length!==a.length)return!1;for(var l=0;l<n.length;l++)if(!o.call(t,n[l])||!r(e[n[l]],t[n[l]]))return!1;return!0}},function(e,t,n){"use strict";function i(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var r=function(){function e(t,n){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.items=[],this.items=t,this.raw=n}var t,n,i;return t=e,(n=[{key:"getLyric",value:function(e){return this.items.reduce((function(t,n){return n.time<e&&(!t||t.time<n.time)?n:t}),void 0)}},{key:"getPrevLyric",value:function(e){return e--,this.items.reduce((function(t,n){return n.time<e&&(!t||t.time<n.time)?n:t}),void 0)}},{key:"getNextLyric",value:function(e){return this.items.reduce((function(t,n){return n.time>e&&(!t||t.time>n.time)?n:t}),void 0)}},{key:"toString",value:function(){return this.raw}}])&&o(t.prototype,n),i&&o(t,i),e}();function a(e){var t=[],n=e.match(/\[\d+\:[\.\d]+\]/gi),i=/(?:\[\d+\:[\.\d]+\])*(.*)/gi.exec(e)[1].trim();return n&&i&&n.forEach((function(e){var n=/\[(\d+)\:([\.\d]+)\]/gi.exec(e.trim()),o=60*parseInt(n[1])*1e3+1e3*parseFloat(n[2]);t.push({time:o,word:i})})),t}t.Lyric=r,t.decodeLyricStr=function(e,t){if("string"!=typeof e)return e;var n=[];return e.replace(/\n+/gi,"\n").trim().split("\n").forEach((function(e){n.push.apply(n,i(a(e)))})),0!=n.length?new r(n,e):void 0},t.decodeLyricStrItem=a},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e),this.__playlist=[],this.__playlist=t,this.to(n)}var t,n,a;return t=e,(n=[{key:"next",value:function(){return this.__playlist[this.point]}},{key:"prev",value:function(){return this.__playlist[this.point]}},{key:"now",value:function(){return this.__playlist[this.point]}},{key:"nowpoint",value:function(){return this.point}},{key:"to",value:function(e){this.point=Math.max(0,Math.min(e,this.__playlist.length-1))}},{key:"addMusic",value:function(e){this.__playlist.push(e)}},{key:"removeMusic",value:function(e){var t=this,n=r.baseRemoveMusic(e,this.__playlist,this.point,(function(e){return Math.max(0,Math.min(e,t.__playlist.length-1))})),i=n.playlist,o=n.nowpoint,a=n.needupdate;return this.__playlist=i,this.point=o,a}},{key:"playlist",get:function(){return this.__playlist}}])&&o(t.prototype,n),a&&o(t,a),e}();t.singlecyclePlaymode=a},function(e,t,n){"use strict";function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}Object.defineProperty(t,"__esModule",{value:!0});var r=n(0),a=function(){function e(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;i(this,e),this.__playlist=[],this.point=0,this.__playlist=t,this.to(n)}var t,n,a;return t=e,(n=[{key:"next",value:function(){return this.point=this.randomPoint(),this.__playlist[this.point]}},{key:"prev",value:function(){return this.point=this.randomPoint(),this.__playlist[this.point]}},{key:"now",value:function(){return this.__playlist[this.point]}},{key:"nowpoint",value:function(){return this.point}},{key:"to",value:function(e){this.point=Math.max(0,Math.min(e,this.__playlist.length-1))}},{key:"addMusic",value:function(e){this.__playlist.push(e)}},{key:"randomPoint",value:function(){if(this.__playlist.length>1){var e=Math.floor(this.__playlist.length*Math.random());return e===this.point?this.randomPoint():e}return 0}},{key:"removeMusic",value:function(e){var t=this,n=r.baseRemoveMusic(e,this.__playlist,this.point,(function(e){return t.randomPoint()})),i=n.playlist,o=n.nowpoint,a=n.needupdate;return this.__playlist=i,this.point=o,a}},{key:"playlist",get:function(){return this.__playlist}}])&&o(t.prototype,n),a&&o(t,a),e}();t.listrandomPlaymode=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=n(1);function o(e){return new MediaMetadata({title:e.name,artist:e.artist,album:e.album,artwork:[{sizes:"720x720",src:e.poster||i}]})}t.cplayerMediaSessionPlugin=function(e){"mediaSession"in navigator&&(e.nowplay&&(navigator.mediaSession.metadata=o(e.nowplay)),navigator.mediaSession.setActionHandler("play",(function(){return e.play()})),navigator.mediaSession.setActionHandler("pause",(function(){return e.pause()})),navigator.mediaSession.setActionHandler("previoustrack",(function(){return e.prev()})),navigator.mediaSession.setActionHandler("nexttrack",(function(){return e.next()})),e.on("openaudio",(function(){navigator.mediaSession.metadata=o(e.nowplay)})))},t.mediaMetadata=o},function(e,t,n){"use strict";function i(e){return(i="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e})(e)}function o(e,t){for(var n=0;n<t.length;n++){var i=t[n];i.enumerable=i.enumerable||!1,i.configurable=!0,"value"in i&&(i.writable=!0),Object.defineProperty(e,i.key,i)}}function r(e,t){return!t||"object"!==i(t)&&"function"!=typeof t?function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e):t}function a(e){return(a=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)})(e)}function l(e,t){return(l=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e})(e,t)}Object.defineProperty(t,"__esModule",{value:!0});var c=n(16),s=n(3),p=n(1),u=n(17),d=n(18),y=n(19);function h(e){for(var t="",n=!1,i=0;i<e.length;i++){var o=e.charAt(i),r=/[ぁ-んァ-ン]/.test(o);r&&!n&&(t+='<span class="cp-lyric-text-zoomout">',n=!0),!r&&n&&(t+="</span>",n=!1),t+=o}return n&&(t+="</span>"),t}function m(e,t){var n=arguments.length>2&&void 0!==arguments[2]&&arguments[2],i=arguments.length>3&&void 0!==arguments[3]&&arguments[3];return i?'<span class="cp-lyric-text">'+(n?h(e):e)+"</span>"+(t?'<span class="cp-lyric-text-sub">'.concat(t,"</span>"):""):'<span class="cp-lyric-smalltext">'+(n?h(e):e)+"</span>"+(t?'<span class="cp-lyric-smalltext-sub">'.concat(t,"</span>"):"")}function f(e){return parseInt((e/60).toString()).toString().padStart(2,"0")+":"+parseInt((e%60).toString()).toString().padStart(2,"0")}var v={element:document.body,generateBeforeElement:!1,deleteElementAfterGenerate:!1,zoomOutKana:!1,showPlaylist:!1,showPlaylistButton:!0,dropDownMenuMode:"bottom",width:"",size:"12px",style:"",shadowDom:!0,big:!0};function g(e){var t=document.createElement("style");return t.id="cplayer-style",t.innerHTML=e,t}var b=function(e){function t(e,n){var i;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),(i=r(this,a(t).call(this))).elementLinks=c.default(i.getElementLinks),i.dropDownMenuShowInfo=!0,i.__OldVolume=1,i.__OldLyric="",i.__OldTotalTime=0,i.handleShowPlaylist=function(){i.showPlaylist()},i.handlePosterClick=function(){null==i.elementLinks.lyricContainer.style.display&&i.elementLinks.lyricContainer.style.setProperty("display","flex"),"none"==i.elementLinks.lyricContainer.style.display?(i.elementLinks.lyricContainer.style.setProperty("display","flex"),i.elementLinks.lyricContainer.style.setProperty("opacity","1"),i.elementLinks.poster.style.opacity="0.1"):""!=i.elementLinks.lyricContainer.style.display&&"flex"!=i.elementLinks.lyricContainer.style.display||(i.elementLinks.lyricContainer.style.setProperty("display","none"),i.elementLinks.lyricContainer.style.setProperty("opacity","0"),i.elementLinks.poster.style.opacity="1")},i.handlePlaylistchange=function(){i.updatePlaylist()},i.handleClickListButton=function(){i.toggleDropDownMenu()},i.handleClickModeButton=function(){i.player.toggleMode()},i.handleClickPlayList=function(e,t){i.player.nowplaypoint!==e&&(i.player.to(e),i.player.play())},i.handleClickPlayButton=function(){i.player.togglePlayState()},i.handleClickVolumeButton=function(){i.toggleVolumeControllerKeepShow()},i.handleOpenAudio=function(e){"video"!==e.type?i.setPoster(e.poster||p):i.setPoster("none"),i.setProgress(0,0,0),i.elementLinks.title.innerText=e.name,i.elementLinks.artist.innerText=e.artist||"",i.updateLyric(),i.updatePlaylist()},i.handleModeChange=function(e){i.setMode(e)},i.handleVolumeChange=function(e){i.setVolume(e)},i.handleTimeUpdate=function(e,t){i.setProgress(e/t,e,t),i.updateLyric(e)},i.handleClickPrevButton=function(){i.player.prev(),i.player.play()},i.handleClickNextButton=function(){i.player.next(),i.player.play()},i.handlePlayStateChange=function(e){i.setPlayIcon(e)},i.handleMouseVolumeController=function(e){if(i.removeVolumeControllerKeepShow(),1===e.buttons||void 0===e.buttons&&1===e.which){var t=Math.max(0,Math.min(1,(e.clientX-i.elementLinks.volumeController.getBoundingClientRect().left)/i.elementLinks.volumeController.clientWidth));i.player.setVolume(t),i.setVolume(t)}},i.handleTouchVolumeController=function(e){i.removeVolumeControllerKeepShow();var t=Math.max(0,Math.min(1,(e.targetTouches[0].clientX-i.elementLinks.volumeController.getBoundingClientRect().left)/i.elementLinks.volumeController.clientWidth));i.player.setVolume(t),i.setVolume(t)},i.handleAudioElementChange=function(e){e instanceof HTMLVideoElement?i.elementLinks.poster.appendChild(e):i.elementLinks.poster.innerHTML=""},i.handleMouseProgress=function(e){if(1===e.buttons||void 0===e.buttons&&1===e.which){var t=Math.max(0,Math.min(1,(e.clientX-i.elementLinks.progress.getBoundingClientRect().left)/i.elementLinks.progress.clientWidth));i.player.setCurrentTime(100*t+"%")}},i.handleTouchProgress=function(e){var t=Math.max(0,Math.min(1,(e.targetTouches[0].clientX-i.elementLinks.progress.getBoundingClientRect().left)/i.elementLinks.progress.clientWidth));i.player.setCurrentTime(100*t+"%")},i.options=Object.assign(Object.assign({},v),n),i.player=e,i.options.generateBeforeElement?i.rootElement=function(e,t,n){var i=document.createElement("div");return i.innerHTML=t,e.parentNode.insertBefore(i,e),document.getElementById("cplayer-style")||document.body.appendChild(g(n)),i.firstChild}(i.options.element,u,y+i.options.style):i.rootElement=function(e,t,n){return null!=e&&(e.innerHTML=t),document.getElementById("cplayer-style")||document.body.appendChild(g(n)),null==e?null:e.firstChild}(i.options.element,u,y+i.options.style),n.deleteElementAfterGenerate&&n.element.parentElement.removeChild(n.element),i.rootElement&&(i.rootElement.style.width=i.options.width,i.rootElement.style.fontSize=i.options.size,i.elementLinks=i.getElementLinks(),i.injectEventListener(),i.setPlayIcon(i.player.paused),i.dropDownMenuShowInfo=!i.options.showPlaylist,i.dropDownMenuShowInfo?i.showInfo():i.showPlaylist(),i.options.showPlaylistButton?i.elementLinks.button.list.style.display="":i.elementLinks.button.list.style.display="none",i.elementLinks.dropDownMenu.classList.add("cp-drop-down-menu-"+i.options.dropDownMenuMode),i.options.dark&&i.dark(),i.options.big&&i.big(),i.setProgress(i.player.currentTime/i.player.duration,i.player.currentTime,i.player.duration),i.updateLyric(),i.updatePlaylist()),i}var n,i,s;return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&l(e,t)}(t,e),n=t,(i=[{key:"getRootElement",value:function(){return this.rootElement}},{key:"dark",value:function(){this.rootElement.classList.add("cp-dark")}},{key:"big",value:function(){this.rootElement.classList.add("cp-big")}},{key:"getPlayListLinks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rootElement;return e.querySelectorAll(".cp-playlist li")}},{key:"getElementLinks",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.rootElement,t=function(t){return e.getElementsByClassName(t)[0]};return{icon:{play:t("cp-play-icon"),mode:t("cp-mode-icon")},button:{prev:t("cp-prev-button"),play:t("cp-play-button"),next:t("cp-next-button"),volume:t("cp-volume-icon"),list:t("cp-list-button"),mode:t("cp-mode-button")},progress:t("cp-progress"),progressFill:t("cp-progress-fill"),progressButton:t("cp-progress-button"),progressDuration:t("cp-progress-duration"),progressCurrentTime:t("cp-progress-current-time"),poster:t("cp-poster"),title:t("cp-audio-title"),artist:t("cp-audio-artist"),lyric:t("cp-lyric-text"),lyricContainer:t("cp-lyric"),volumeController:t("cp-volume-controller"),volumeFill:t("cp-volume-fill"),volumeControllerButton:t("cp-volume-controller-button"),volumeControllerContainer:t("cp-volume-container"),dropDownMenu:t("cp-drop-down-menu"),playlist:t("cp-playlist"),playlistGuide:this.rootElement.getElementsByClassName("cp-drop-down-menu")[0].getElementsByTagName("p")[0],playlistItems:this.getPlayListLinks(e)}}},{key:"setPlayIcon",value:function(e){e?this.elementLinks.icon.play.classList.add("cp-play-icon-paused"):this.elementLinks.icon.play.classList.remove("cp-play-icon-paused")}},{key:"setProgress",value:function(e,t,n){this.elementLinks.progressFill.style.width="".concat(100*e,"%"),this.elementLinks.progressButton.style.right=100*(1-e)+"%",this.elementLinks.progressCurrentTime.innerText=f(t),this.elementLinks.progressDuration.innerText=f(n)}},{key:"setPoster",value:function(e){this.elementLinks.poster.style.backgroundImage='url("'.concat(e,'")')}},{key:"setVolume",value:function(e){this.__OldVolume!==e&&(this.elementLinks.volumeFill.style.width="".concat(100*e,"%"),this.elementLinks.volumeControllerButton.style.right=100*(1-e)+"%",this.__OldVolume=e)}},{key:"setMode",value:function(e){var t=document.createAttribute("data-mode");t.value=e,this.elementLinks.button.mode.attributes.setNamedItem(t)}},{key:"showInfo",value:function(){var e=this,t=this.elementLinks.dropDownMenu;t.style.height="",t.classList.remove("cp-drop-down-menu-playlist"),t.classList.add("cp-drop-down-menu-info"),this.dropDownMenuShowInfo=!0,this.elementLinks.playlistGuide.style.opacity="1",setTimeout((function(){e.elementLinks.playlistGuide.style.display=""}),250)}},{key:"showPlaylist",value:function(){var e=this;this.elementLinks.playlistGuide.style.opacity="0",setTimeout((function(){e.elementLinks.playlistGuide.style.display="none"}),250);var t=this.elementLinks.dropDownMenu;t.style.height=2.08333*this.player.playlist.length+"em",t.classList.remove("cp-drop-down-menu-info"),t.classList.add("cp-drop-down-menu-playlist"),this.dropDownMenuShowInfo=!1}},{key:"toggleDropDownMenu",value:function(){this.dropDownMenuShowInfo?this.showPlaylist():this.showInfo()}},{key:"setVolumeControllerKeepShow",value:function(){this.elementLinks.volumeControllerContainer.classList.add("cp-volume-container-show")}},{key:"toggleVolumeControllerKeepShow",value:function(){this.elementLinks.volumeControllerContainer.classList.toggle("cp-volume-container-show")}},{key:"removeVolumeControllerKeepShow",value:function(){this.elementLinks.volumeControllerContainer.classList.remove("cp-volume-container-show")}},{key:"setLyric",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0;if(this.__OldLyric!==e||this.__OldTotalTime!==n){if(this.elementLinks.lyric.innerHTML=e,this.elementLinks.lyric.style.transition="",this.elementLinks.lyric.style.transform="",0!==n){var i=this.elementLinks.lyric.clientWidth,o=this.elementLinks.lyricContainer.clientWidth;if(i>o){var r=n-t,a=i-o,l=o/i*r,c=Math.min(.6*l,r),s=r-l;this.elementLinks.lyric.style.transition="transform ".concat(s,"ms linear ").concat(c,"ms"),this.elementLinks.lyric.style.transform="translateX(-".concat(a,"px)")}}this.__OldLyric=e,this.__OldTotalTime=n}}},{key:"updatePlaylist",value:function(){var e=this,t=this.player.playlist.map((function(t,n){var i=document.createElement("li");return i.innerHTML="\n        ".concat(n===e.player.nowplaypoint?d:'<span class="cp-play-icon"></span>',"\n        <span>").concat(t.name,"</span><span class='cp-playlist-artist'>").concat(t.artist?" - "+t.artist:"","</span>\n      "),i}));this.elementLinks.playlist.innerHTML="",t.forEach((function(t){e.elementLinks.playlist.appendChild(t)})),this.elementLinks.playlistItems=this.getPlayListLinks(),this.injectPlayListEventListener(),this.dropDownMenuShowInfo||(this.elementLinks.dropDownMenu.style.height=2.08333*this.player.playlist.length+"em")}},{key:"injectPlayListEventListener",value:function(){var e=this;Array.prototype.forEach.call(this.elementLinks.playlistItems,(function(t,n){t.addEventListener("click",(function(t){e.handleClickPlayList(n,t)}))}))}},{key:"injectEventListener",value:function(){this.elementLinks.button.play.addEventListener("click",this.handleClickPlayButton),this.elementLinks.button.prev.addEventListener("click",this.handleClickPrevButton),this.elementLinks.button.next.addEventListener("click",this.handleClickNextButton),this.elementLinks.button.volume.addEventListener("click",this.handleClickVolumeButton),this.elementLinks.button.list.addEventListener("click",this.handleClickListButton),this.elementLinks.button.mode.addEventListener("click",this.handleClickModeButton),this.elementLinks.volumeController.addEventListener("mousemove",this.handleMouseVolumeController),this.elementLinks.volumeController.addEventListener("mousedown",this.handleMouseVolumeController),this.elementLinks.volumeController.addEventListener("touchmove",this.handleTouchVolumeController,{passive:!0}),this.elementLinks.progress.addEventListener("mousemove",this.handleMouseProgress),this.elementLinks.progress.addEventListener("mousedown",this.handleMouseProgress),this.elementLinks.progress.addEventListener("touchmove",this.handleTouchProgress,{passive:!0}),this.player.addListener("playstatechange",this.handlePlayStateChange),this.player.addListener("timeupdate",this.handleTimeUpdate),this.player.addListener("openaudio",this.handleOpenAudio),this.player.addListener("volumechange",this.handleVolumeChange),this.player.addListener("playmodechange",this.handleModeChange),this.player.addListener("playlistchange",this.handlePlaylistchange),this.player.addListener("audioelementchange",this.handleAudioElementChange),this.injectPlayListEventListener(),this.elementLinks.playlistGuide.addEventListener("click",this.handleShowPlaylist),this.elementLinks.poster.addEventListener("click",this.handlePosterClick),this.elementLinks.lyricContainer.addEventListener("click",this.handlePosterClick)}},{key:"updateLyric",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;if(this.player.nowplay){if(this.player.nowplay.lyric&&"string"!=typeof this.player.nowplay.lyric&&this.player.played){var t=this.player.nowplay.lyric.getLyric(1e3*e);if(null!=t){var n,i,o,r=this.player.nowplay.lyric.getPrevLyric(t.time),a=this.player.nowplay.lyric.getNextLyric(1e3*e),l=this.player.nowplay.lyric.getNextLyric(1e3*e);if(t)if(this.player.nowplay.sublyric&&"string"!=typeof this.player.nowplay.sublyric&&(n=this.player.nowplay.sublyric.getLyric(1e3*e),i=this.player.nowplay.sublyric.getNextLyric(1e3*e),o=this.player.nowplay.sublyric.getPrevLyric(n?n.time:0)),l){var c=l.time-t.time,s=1e3*e-t.time;this.setLyric(m(r?r.word:"",o?o.word:void 0,this.options.zoomOutKana)+m(t?t.word:"",n?n.word:void 0,this.options.zoomOutKana,!0)+m(a?a.word:"",i?i.word:void 0,this.options.zoomOutKana),s,c)}else this.player.duration,t.time,t.time,this.setLyric(m(r?r.word:"",o?o.word:void 0,this.options.zoomOutKana)+m(t?t.word:"",n?n.word:void 0,this.options.zoomOutKana,!0)+m("","",this.options.zoomOutKana))}}}else this.setLyric("")}},{key:"destroy",value:function(){this.rootElement.parentElement.removeChild(this.rootElement)}}])&&o(n.prototype,i),s&&o(n,s),t}(s.EventEmitter);t.default=b},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){return{}}},function(e,t){e.exports='<c-player loaded> <div> <div class=cp-mainbody> <div class=cp-lyric style=position:absolute;top:0;left:0;z-index:1> <span class=cp-lyric-text></span> </div> <div class=cp-poster> </div> </div> <div class="cp-drop-down-menu cp-drop-down-menu-info" style=margin:10px;width:100%;position:absolute;bottom:122px;left:0;z-index:1> <ul class=cp-playlist> </ul> <p>"Click here to show playlist. (点击显示歌单)" </p></div> <div class=cp-mainbody> <div class=cp-audio-info style=width:100%;text-align:center;margin:10px;font-size:10pt> <span class=cp-audio-title></span> - <span class=cp-audio-artist></span> </div> <div class=cp-center-container> <div class=cp-controls> <a class=cp-prev-button> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class=cp-prev-icon viewBox="0 0 1024 1024" version=1.1> <path d="M943.705 11.8c10.321 5.183 17.325 15.601 17.534 27.675l-0.004 938.318c-0.167 12.186-7.229 22.684-17.457 27.782-4.857 2.548-10.527 4.026-16.543 4.026a35.75 35.75 0 0 1-18.217-4.955l-716.617-469c-9.689-5.299-16.151-15.421-16.151-27.053 0-11.63 6.462-21.753 15.991-26.972L909.186 12.666c5.177-3.048 11.404-4.848 18.052-4.848a35.878 35.878 0 0 1 16.665 4.077z"/> <path d="M228.435 77.809v868.712c-3.889 42.573-39.416 75.664-82.673 75.664s-78.784-33.091-82.649-75.34l-0.024-869.036C65.9 34.259 101.911 0 145.924 0s80.024 34.259 82.822 77.564z"/> </svg> </a> <a class=cp-play-button> <span class="cp-play-icon cp-play-icon-paused"> <div class=cp-play-icon-left></div> <div class=cp-play-icon-right></div> <div class=cp-play-icon-triangle-1></div> <div class=cp-play-icon-triangle-2></div> </span> </a> <a class=cp-next-button> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class=cp-next-icon viewBox="0 0 1024 1024" version=1.1> <path d="M943.705 11.8c10.321 5.183 17.325 15.601 17.534 27.675l-0.004 938.318c-0.167 12.186-7.229 22.684-17.457 27.782-4.857 2.548-10.527 4.026-16.543 4.026a35.75 35.75 0 0 1-18.217-4.955l-716.617-469c-9.689-5.299-16.151-15.421-16.151-27.053 0-11.63 6.462-21.753 15.991-26.972L909.186 12.666c5.177-3.048 11.404-4.848 18.052-4.848a35.878 35.878 0 0 1 16.665 4.077z"/> <path d="M228.435 77.809v868.712c-3.889 42.573-39.416 75.664-82.673 75.664s-78.784-33.091-82.649-75.34l-0.024-869.036C65.9 34.259 101.911 0 145.924 0s80.024 34.259 82.822 77.564z"/> </svg> </a> </div> </div> <a class=cp-volume-button> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class="cp-volume-icon cp-icon-dark" viewBox="0 200 1024 650" version=1.1> <path d="M607.869008 364.026176l-49.340512 49.340528c25.412064 25.160448 41.150352 60.055392 41.150352 98.637648 0 38.573568-15.738288 73.477184-41.150352 98.62896l49.340512 49.340512c37.836112-37.888176 61.244-90.195872 61.244-147.969488 0-57.782272-23.407888-110.081328-61.244-147.978176z"/> <path d="M807.937968 512c0-96.086912-39.050752-183.055296-102.134064-245.904368L656.95792 314.9416c50.398992 50.45104 81.563248 120.1108 81.563248 197.0584 0 76.938912-31.172944 146.598672-81.563248 197.0584l48.845984 48.845968C768.887216 695.055296 807.937968 608.086896 807.937968 512z"/> <path d="M946.780288 512.004336c0-134.434896-54.598176-256.107376-142.807248-344.082192l-49.088912 49.088896c75.65488 75.411952 122.470672 179.732384 122.470672 294.993296 0 115.252224-46.815792 219.581328-122.470672 294.984608l49.088912 49.088912c88.209072-87.966144 142.807248-209.647312 142.807248-344.07352z"/> <path d="M247.605111 659.304938 458.566804 854.551527 458.566804 169.448479 251.58222 364.704275 53.490893 364.704275 53.490893 659.304938Z"/> </svg> <div class=cp-volume-container> <div> <span class=cp-volume-controller> <span class=cp-volume-fill></span> <span class=cp-volume-controller-button></span> </span> </div> </div> </a> <a class=cp-list-button> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class="cp-list-icon cp-icon-dark" viewBox="0 0 1024 1024" version=1.1> <path d="M168.57 820.6c0 14.34-9.56 23.89-23.89 23.89H96.89c-14.34 0-23.89-9.55-23.89-23.89v-47.79c0-14.34 9.56-23.89 23.89-23.89h47.79c14.34 0 23.89 9.56 23.89 23.89z m0-284.33c0 14.34-9.56 23.89-23.89 23.89H96.89c-14.34 0-23.89-9.56-23.89-23.89v-47.79c0-14.34 9.56-23.89 23.89-23.89h47.79c14.34 0 23.89 9.56 23.89 23.89z m0-286.72c0 14.34-9.56 23.89-23.89 23.89H96.89c-14.34 0-23.89-9.56-23.89-23.89v-47.79c0-14.34 9.56-23.89 23.89-23.89h47.79c14.34 0 23.89 9.56 23.89 23.89zM969 820.6c0 14.34-7.17 23.89-21.5 23.89H314.32c-14.34 0-23.89-9.56-23.89-23.89v-47.79c0-14.34 9.56-23.89 23.89-23.89H945.1c14.34 0 23.89 9.56 23.89 23.89z m0-284.33c0 14.34-7.17 23.89-21.5 23.89H314.32c-14.34 0-23.89-9.56-23.89-23.89v-47.79c0-14.34 9.56-23.89 23.89-23.89H945.1c14.34 0 23.89 9.56 23.89 23.89z m0-286.72c0 14.34-7.17 23.89-21.5 23.89H314.32c-14.34 0-23.89-9.56-23.89-23.89v-47.79c0-14.34 9.56-23.89 23.89-23.89H945.1c14.34 0 23.89 9.56 23.89 23.89z"/> </svg> </a> <a class=cp-mode-button data-mode=listloop> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class="cp-loop-icon cp-icon-dark" viewBox="0 0 1024 1024" version=1.1> <path d="M157 624c17.3-4.8 27.4-22.7 22.6-40-5.4-19.4-8.1-39.5-8.1-59.9 0-123.1 100.1-223.2 223.2-223.2h302.4v57.6c0 18.5 12.9 25.6 28.6 15.9l138.6-85.8c15.7-9.7 15.9-25.9 0.3-35.9l-139.2-89.9c-15.5-10-28.2-3.1-28.2 15.4V236H394.7c-77 0-149.3 30-203.8 84.4-54.4 54.4-84.4 126.8-84.4 203.8 0 26.2 3.5 52.2 10.5 77.3 4 14.4 17.1 23.8 31.3 23.8 2.9-0.1 5.8-0.4 8.7-1.3z m748.7-202.1c-4-14.4-17.1-23.8-31.3-23.8-2.9 0-5.8 0.4-8.7 1.2-17.3 4.8-27.4 22.7-22.6 40 5.4 19.4 8.1 39.5 8.1 59.9 0 123.1-100.1 223.2-223.2 223.2H325.5v-57.6c0-18.5-12.9-25.6-28.6-15.9l-138.6 85.8c-15.7 9.7-15.9 25.9-0.3 35.9l139.2 89.9c15.5 10 28.2 3.1 28.2-15.4v-57.9h302.4c77 0 149.3-30 203.8-84.4C886 648.4 916 576 916 499c0.1-26-3.4-52-10.3-77.1z"/> </svg> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class="cp-single-icon cp-icon-dark" viewBox="0 0 1024 1024" version=1.1> <path d="M102.5 653.9c17.3-4.8 27.4-22.7 22.6-40-5.4-19.4-8.1-43.4-8.1-63.8C117 427 217.1 323 340.2 323h132.3c1.4-20 5.4-40 11.7-60h-144c-77 0-149.4 31.4-203.8 85.8C82 403.2 52 476.3 52 553.3c0 26.2 3.5 52.6 10.5 77.6 4 14.4 17.1 24 31.3 24 2.9 0 5.8-0.2 8.7-1z m471 109.1H272v-68.3c0-18.5-13.3-25.6-29-15.9l-138.8 85.8c-15.7 9.7-16 25.9-0.5 35.9l139.7 89.9c15.5 10 28.7 3.1 28.7-15.4v-52h301.5c77 0 149.4-32.9 203.8-87.3 34.7-34.7 59.5-78.2 72.9-124-24 9-49.6 19.4-76.2 21.5-36.5 74-112.7 129.8-200.6 129.8zM752 127.9c-121.5 0-220 98.5-220 220s98.5 220 220 220 220-98.5 220-220-98.5-220-220-220zM792 463h-40V298.7c-20 14-36.2 24.5-60 31.3v-41.8c11.5-2.9 23.8-10.4 36.7-17.6 13-7.9 23.8-7.7 32.4-27.7H792V463z"/> </svg> <svg xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink class="cp-random-icon cp-icon-dark" viewBox="0 0 1024 1024" version=1.1> <path d="M112 405.2h218.2c7.1 0 21 5.8 26 10.8l38 38.6c13.6 13.8 35.7 13.9 49.5 0.4 13.8-13.6 13.9-35.7 0.4-49.5l-38-38.6c-18.1-18.4-50-31.7-75.8-31.7H112c-19.3 0-35 15.7-35 35 0 19.4 15.7 35 35 35z m623.2 0h62.4v42.6c0 10.9 7.5 15 16.7 8.8l125.8-83.9c9.3-6.2 9.2-16.2 0-22.4l-125.8-83.9c-9.3-6.2-16.7-2.2-16.7 8.8v60h-62.4c-53.5 0-123.5 29.3-161 67.4L393.9 585.7c-24.3 24.7-76.4 46.5-111.1 46.5H112c-19.3 0-35 15.7-35 35s15.7 35 35 35h170.7c53.5 0 123.5-29.3 161-67.4L624 451.7c24.4-24.7 76.4-46.5 111.2-46.5z m79.1 161.2c-9.3-6.2-16.7-2.2-16.7 8.8v57H681.9c-6.9 0-20.2-5.6-25-10.4l-37.3-37.9c-13.6-13.8-35.7-13.9-49.5-0.4-13.8 13.6-13.9 35.7-0.4 49.5l37.3 37.9c18 18.2 49.3 31.3 74.9 31.3h115.6v45.6c0 10.9 7.5 15 16.7 8.8L940 672.7c9.3-6.2 9.2-16.2 0-22.4l-125.7-83.9z"/> </svg> </a> <div class=cp-progress-container> <span class=cp-progress-current-time>07:24</span> <div class=cp-progress> <div class=cp-progress-fill></div> <span class=cp-progress-button></span> </div> <span class=cp-progress-duration>24:50</span> </div> </div> </div> </c-player> '},function(e,t){e.exports='<svg class=cp-play-icon viewBox="0 0 1024 1024" version=1.1 xmlns=http://www.w3.org/2000/svg xmlns:xlink=http://www.w3.org/1999/xlink width=200 height=200> <path d="M64.279417 58.009844c0-21.327148 10.62092-39.540533 29.218194-50.118799a56.858178 56.858178 0 0 1 58.265769 0.255926l779.336659 453.969682c18.341348 10.706229 28.748996 28.748996 28.748996 49.905527 0 21.113877-10.407648 39.156645-28.748996 49.820219L151.76338 1015.854735a56.943486 56.943486 0 0 1-58.265769 0.255926 56.303672 56.303672 0 0 1-29.218194-50.161453V58.009844z"> </path> </svg>'},function(e,t,n){var i=n(20),o=n(21),r=n(1);t=i(!1);var a=o(r);t.push([e.i,"@-webkit-keyframes miss-pointer-event{0%{pointer-events:none}50%{pointer-events:none}100%{pointer-events:auto}}@keyframes miss-pointer-event{0%{pointer-events:none}50%{pointer-events:none}100%{pointer-events:auto}}c-player{display:-webkit-inline-box;display:-ms-inline-flexbox;display:inline-flex;-webkit-box-orient:vertical;-webkit-box-direction:normal;-ms-flex-direction:column;flex-direction:column;position:relative;font-size:12px;width:300px;text-align:left}c-player .cp-mainbody{margin:5px 10px;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;min-height:50px;min-width:300px;-ms-flex-wrap:wrap;flex-wrap:wrap;background-color:#fff;position:relative;z-index:1;border-radius:.33333em;-webkit-box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px;box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px}c-player .cp-mainbody>*{margin-right:.58333em}c-player .cp-mainbody:hover+.cp-drop-down-menu.cp-drop-down-menu-info{height:2.08333em}c-player .cp-drop-down-menu{display:block;text-align:center;font-size:1em;line-height:2.08333em;background-color:rgba(255,255,255,0.6);position:relative;z-index:0;height:0em;overflow:hidden;border-bottom-right-radius:.33333em;border-bottom-left-radius:.33333em;-webkit-box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px;box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px;-webkit-transition:height 0.25s ease 0.1s,-webkit-transform 0.25s ease 0.1s;transition:height 0.25s ease 0.1s,-webkit-transform 0.25s ease 0.1s;transition:transform 0.25s ease 0.1s,height 0.25s ease 0.1s;transition:transform 0.25s ease 0.1s,height 0.25s ease 0.1s,-webkit-transform 0.25s ease 0.1s}c-player .cp-drop-down-menu p{-webkit-transition:opacity 0.25s ease 0s;transition:opacity 0.25s ease 0s;margin:0}c-player .cp-drop-down-menu span.cp-audio-artist{opacity:0.6;max-width:8.33333em;overflow:hidden;text-overflow:ellipsis}c-player .cp-drop-down-menu.cp-drop-down-menu-top{-webkit-box-ordinal-group:0;-ms-flex-order:-1;order:-1}c-player .cp-drop-down-menu.cp-drop-down-menu-none{display:none}c-player .cp-drop-down-menu.cp-drop-down-menu-bottom{-webkit-box-ordinal-group:2;-ms-flex-order:1;order:1}c-player .cp-drop-down-menu.cp-drop-down-menu-info .cp-playlist{display:none}c-player .cp-drop-down-menu.cp-drop-down-menu-info:hover{height:2.08333em}c-player .cp-drop-down-menu.cp-drop-down-menu-playlist .cp-audio-info{display:none}c-player .cp-drop-down-menu.cp-drop-down-menu-playlist{height:auto}c-player .cp-playlist{margin:0em;padding:0em;list-style:none;text-align:left}c-player .cp-playlist li{padding:0em .83333em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;cursor:pointer}c-player .cp-playlist li .cp-play-icon{display:inline-block;width:1em;height:1em;vertical-align:text-top;margin:0px .41667em 0 0;fill:rgba(183,28,28,0.8)}c-player .cp-playlist-artist{opacity:0.46}c-player .cp-center-container{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;position:relative;height:50px;pointer-events:auto}c-player .cp-center-container .cp-controls{opacity:1}c-player .cp-controls{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:absolute;width:100%;height:100%;z-index:1;-webkit-transition:opacity 0.25s ease;transition:opacity 0.25s ease}c-player .cp-controls>*{margin-right:1.25em;-webkit-tap-highlight-color:transparent}c-player .cp-lyric{display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-align:center;-ms-flex-align:center;align-items:center;position:relative;width:calc(100% - 1.66667em);height:300px;overflow:hidden;margin:.41667em .83333em;font-size:1.16667em}c-player .cp-lyric-text{-webkit-box-flex:1;-ms-flex-positive:1;flex-grow:1;white-space:nowrap;text-align:center;color:#424242;line-height:2;font-size:12pt}c-player .cp-lyric-text .cp-lyric-text-sub{display:block;color:#757575;font-size:.83333em;font-weight:550}c-player .cp-lyric-text .cp-lyric-text-zoomout{font-size:1em;-webkit-transform:translateY(.08333em);transform:translateY(.08333em);display:inline-block;margin:0px .14286em}c-player .cp-lyric-text .cp-lyric-smalltext-sub{display:block;color:#BDBDBD;font-size:.66667em}c-player .cp-lyric-text .cp-lyric-text{display:block;color:#757575;font-size:12pt;font-weight:550}c-player .cp-lyric-text .cp-lyric-smalltext{display:block;color:#BDBDBD;font-size:10pt}c-player .cp-progress-container{-ms-flex-preferred-size:100%;flex-basis:100%;margin:0em;opacity:0.8;position:absolute;width:100%;bottom:0px;border-bottom-left-radius:.33333em;border-bottom-right-radius:.33333em;overflow:hidden;pointer-events:none}c-player .cp-progress-container>span{display:none}c-player.cp-big .cp-progress-container{position:relative;border-bottom-left-radius:0;border-bottom-right-radius:0;height:2.91667em;padding:0 .41667em;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;-ms-flex-direction:row;flex-direction:row;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center;-webkit-box-pack:justify;-ms-flex-pack:justify;justify-content:space-between;pointer-events:auto;color:#424242}c-player.cp-big .cp-progress-container>span{display:inline;margin:0 1.25em;font-size:0.8em}c-player .cp-progress{overflow:hidden}c-player .cp-progress .cp-progress-fill{display:block;height:.16667em;background:#F44336}c-player .cp-progress .cp-progress-button{display:none}c-player.cp-big .cp-progress{overflow:visible}c-player .cp-poster{width:300px;height:300px;background-repeat:repeat;background-position:50% 50%;background-size:cover;background-color:#fafafa;background-origin:padding-box;background-attachment:scroll;border-right:.08333em solid #eee;background-image:url("+a+");border-top-left-radius:.33333em;border-bottom-left-radius:.33333em;overflow:hidden;-webkit-transition:opacity 3s cubic-bezier(0.01, 1.35, 0.43, 0.88);transition:opacity 3s cubic-bezier(0.01, 1.35, 0.43, 0.88);opacity:0.1}c-player .cp-poster video{width:100%;height:100%}c-player.cp-big .cp-poster{-ms-flex-preferred-size:100%;flex-basis:100%;width:300px;height:300px;border-right:none;border-bottom:.08333em solid #eee;margin:0;border-top-left-radius:.33333em;border-bottom-left-radius:0;border-top-right-radius:.33333em;border-bottom-right-radius:0}c-player .cp-play-icon{width:1.04167em;height:1.04167em;display:block;overflow:hidden;position:relative}c-player .cp-play-icon .cp-play-icon-left{height:100%;float:left;background-color:#F44336;width:36%;-webkit-transition:width 0.25s ease;transition:width 0.25s ease;overflow:hidden}c-player .cp-play-icon .cp-play-icon-right{height:100%;float:right;background-color:#F44336;width:36%;-webkit-transition:width 0.25s ease;transition:width 0.25s ease;overflow:hidden}c-player .cp-play-icon .cp-play-icon-triangle-1{-webkit-transform:translate(0, -100%);transform:translate(0, -100%)}c-player .cp-play-icon .cp-play-icon-triangle-2{-webkit-transform:translate(0, 100%);transform:translate(0, 100%)}c-player .cp-play-icon .cp-play-icon-triangle-1,c-player .cp-play-icon .cp-play-icon-triangle-2{position:absolute;top:0;right:0;background-color:transparent;width:0;height:0;border-right:1.04167em solid #fff;border-top:.52083em solid transparent;border-bottom:.52083em solid transparent;-webkit-transition:-webkit-transform 0.25s ease;transition:-webkit-transform 0.25s ease;transition:transform 0.25s ease;transition:transform 0.25s ease, -webkit-transform 0.25s ease}c-player .cp-play-icon.cp-play-icon-paused .cp-play-icon-left{width:50%}c-player .cp-play-icon.cp-play-icon-paused .cp-play-icon-right{width:50%}c-player .cp-play-icon.cp-play-icon-paused .cp-play-icon-triangle-1{-webkit-transform:translate(0, -50%);transform:translate(0, -50%)}c-player .cp-play-icon.cp-play-icon-paused .cp-play-icon-triangle-2{-webkit-transform:translate(0, 50%);transform:translate(0, 50%)}c-player .cp-play-icon.cp-play-icon-hover .cp-play-icon-left,c-player .cp-play-button:hover .cp-play-icon-left{background-color:#B71C1C}c-player .cp-play-icon.cp-play-icon-hover .cp-play-icon-right,c-player .cp-play-button:hover .cp-play-icon-right{background-color:#B71C1C}c-player .cp-play-button,c-player .cp-volume-button,c-player .cp-prev-button,c-player .cp-list-button,c-player .cp-mode-button,c-player .cp-next-button{display:inline-block;width:1.04167em;height:1.04167em;cursor:pointer}c-player .cp-volume-button{width:1.66667em;position:relative}c-player .cp-list-button{width:1.45833em;height:1.45833em}c-player .cp-mode-button{width:1.58333em;height:1.58333em}c-player .cp-play-button{height:2.5em;width:2.5em;border:#F44336 solid 1px;border-radius:50%}c-player .cp-play-button .cp-play-icon.cp-play-icon-paused{margin:.6875em}c-player .cp-play-button .cp-play-icon{margin:.6875em}c-player .cp-play-button:hover{border-color:#B71C1C}c-player .cp-icon,c-player .cp-prev-icon,c-player .cp-next-icon,c-player .cp-volume-icon,c-player .cp-random-icon,c-player .cp-single-icon,c-player .cp-loop-icon,c-player .cp-list-icon{height:1.04167em;width:1.04167em}c-player .cp-icon path,c-player .cp-prev-icon path,c-player .cp-next-icon path,c-player .cp-volume-icon path,c-player .cp-random-icon path,c-player .cp-single-icon path,c-player .cp-loop-icon path,c-player .cp-list-icon path{fill:#F44336}c-player .cp-icon:hover path,c-player .cp-prev-icon:hover path,c-player .cp-next-icon:hover path,c-player .cp-volume-icon:hover path,c-player .cp-random-icon:hover path,c-player .cp-single-icon:hover path,c-player .cp-loop-icon:hover path,c-player .cp-list-icon:hover path{fill:#B71C1C}c-player .cp-icon.cp-icon-dark path,c-player .cp-icon-dark.cp-prev-icon path,c-player .cp-icon-dark.cp-next-icon path,c-player .cp-icon-dark.cp-volume-icon path,c-player .cp-icon-dark.cp-random-icon path,c-player .cp-icon-dark.cp-single-icon path,c-player .cp-icon-dark.cp-loop-icon path,c-player .cp-icon-dark.cp-list-icon path{fill:#757575}c-player .cp-icon.cp-icon-dark:hover path,c-player .cp-icon-dark.cp-prev-icon:hover path,c-player .cp-icon-dark.cp-next-icon:hover path,c-player .cp-icon-dark.cp-volume-icon:hover path,c-player .cp-icon-dark.cp-random-icon:hover path,c-player .cp-icon-dark.cp-single-icon:hover path,c-player .cp-icon-dark.cp-loop-icon:hover path,c-player .cp-icon-dark.cp-list-icon:hover path{fill:#616161}c-player .cp-next-icon{-webkit-transform:rotateZ(180deg);transform:rotateZ(180deg)}c-player .cp-volume-icon{width:1.66667em}c-player .cp-random-icon,c-player .cp-single-icon,c-player .cp-loop-icon{width:1.58333em;height:1.58333em;display:none}c-player .cp-mode-button[data-mode=listloop] .cp-loop-icon,c-player .cp-mode-button[data-mode=singlecycle] .cp-single-icon,c-player .cp-mode-button[data-mode=listrandom] .cp-random-icon{display:block}c-player .cp-list-icon{width:1.45833em;height:1.45833em}c-player .cp-volume-container{position:absolute;left:50%;top:-7px;height:2.08333em;width:10.83333em;-webkit-transform:translateX(-50%) translateY(-120%);transform:translateX(-50%) translateY(-120%);z-index:1;visibility:hidden;text-align:left;border-radius:.33333em;padding:0 15px;background:#fff;-webkit-box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px;box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px}c-player .cp-volume-container.cp-volume-container-show{visibility:visible}c-player .cp-volume-container:hover{visibility:visible}c-player .cp-volume-container:before{content:'';width:0em;height:0em;display:inline-block;border-top:.83333em solid #fff;border-left:.83333em solid transparent;border-right:.83333em solid transparent;position:absolute;bottom:0em;left:50%;-webkit-transform:translate(-50%, 100%);transform:translate(-50%, 100%)}c-player .cp-volume-container:after{content:'';width:1.17851em;height:1.17851em;display:inline-block;position:absolute;bottom:0em;left:50%;-webkit-transform:translate(-50%, 50%) rotate(45deg);transform:translate(-50%, 50%) rotate(45deg);-webkit-box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px;box-shadow:rgba(0,0,0,0.117647) 0px 1px 6px,rgba(0,0,0,0.117647) 0px 1px 4px}c-player .cp-volume-container>div{width:100%;height:100%;background:#fff;border-radius:.33333em;position:relative;z-index:1;display:-webkit-box;display:-ms-flexbox;display:flex;-webkit-box-pack:center;-ms-flex-pack:center;justify-content:center;-webkit-box-align:center;-ms-flex-align:center;align-items:center}c-player.cp-big .cp-progress,c-player .cp-volume-controller,c-player.cp-dark.cp-big .cp-progress{display:inline-block;height:.33333em;width:100%;border-radius:.16667em;background:#BDBDBD;line-height:0;-ms-touch-action:none;touch-action:none;position:relative}c-player.cp-big .cp-progress .cp-progress-fill,c-player .cp-volume-controller .cp-volume-fill,c-player.cp-dark.cp-big .cp-progress .cp-volume-controller .cp-volume-fill,c-player.cp-dark.cp-big .cp-volume-controller .cp-progress .cp-volume-fill,c-player.cp-dark.cp-big .cp-progress .cp-progress-fill{display:inline-block;height:100%;width:100%;border-radius:.16667em;background:#616161}c-player.cp-big .cp-progress .cp-progress-button,c-player .cp-volume-controller .cp-volume-controller-button,c-player.cp-dark.cp-big .cp-progress .cp-volume-controller .cp-volume-controller-button,c-player.cp-dark.cp-big .cp-volume-controller .cp-progress .cp-volume-controller-button,c-player.cp-dark.cp-big .cp-progress .cp-progress-button{height:1.25em;width:1.25em;position:absolute;right:0em;top:-.45833em;display:inline-block;border-radius:50%;border:.16667em solid #fff;background:#757575;-webkit-transform:translateX(50%);transform:translateX(50%)}c-player.cp-big .cp-progress .cp-progress-button:hover,c-player .cp-volume-controller .cp-volume-controller-button:hover{background:#616161}c-player svg{vertical-align:top}c-player *,c-player *::before,c-player *::after{-webkit-box-sizing:border-box;box-sizing:border-box}c-player.cp-dark{color:#bbb}c-player.cp-dark .cp-mainbody{background-color:#222}c-player.cp-dark .cp-drop-down-menu{background-color:rgba(34,34,34,0.9)}c-player.cp-dark .cp-playlist li .cp-play-icon{fill:rgba(189,189,189,0.8)}c-player.cp-dark .cp-lyric-text{color:#bbb}c-player.cp-dark .cp-lyric-text .cp-lyric-text-sub{color:#757575}c-player.cp-dark .cp-progress .cp-progress-fill{background:#BDBDBD}c-player.cp-dark .cp-poster{background-color:#333;border-right-color:#333}c-player.cp-dark.cp-big .cp-poster{border-bottom-color:#333}c-player.cp-dark.cp-big .cp-progress-container{color:#bbb}c-player.cp-dark.cp-big .cp-progress{overflow:visible}c-player.cp-dark .cp-play-icon .cp-play-icon-left{background-color:#a1a1a1}c-player.cp-dark .cp-play-icon .cp-play-icon-right{background-color:#a1a1a1}c-player.cp-dark .cp-play-icon .cp-play-icon-triangle-1,c-player.cp-dark .cp-play-icon .cp-play-icon-triangle-2{border-right-color:#222}c-player.cp-dark .cp-play-icon.cp-play-icon-hover .cp-play-icon-left,c-player.cp-dark .cp-play-button:hover .cp-play-icon-left{background-color:#BDBDBD}c-player.cp-dark .cp-play-icon.cp-play-icon-hover .cp-play-icon-right,c-player.cp-dark .cp-play-button:hover .cp-play-icon-right{background-color:#BDBDBD}c-player.cp-dark .cp-play-button{border-color:#a1a1a1}c-player.cp-dark .cp-play-button:hover{border-color:#BDBDBD}c-player.cp-dark .cp-icon path,c-player.cp-dark .cp-prev-icon path,c-player.cp-dark .cp-next-icon path,c-player.cp-dark .cp-volume-icon path,c-player.cp-dark .cp-random-icon path,c-player.cp-dark .cp-single-icon path,c-player.cp-dark .cp-loop-icon path,c-player.cp-dark .cp-list-icon path{fill:#a1a1a1}c-player.cp-dark .cp-icon:hover path,c-player.cp-dark .cp-prev-icon:hover path,c-player.cp-dark .cp-next-icon:hover path,c-player.cp-dark .cp-volume-icon:hover path,c-player.cp-dark .cp-random-icon:hover path,c-player.cp-dark .cp-single-icon:hover path,c-player.cp-dark .cp-loop-icon:hover path,c-player.cp-dark .cp-list-icon:hover path{fill:#BDBDBD}c-player.cp-dark .cp-icon.cp-icon-dark path,c-player.cp-dark .cp-icon-dark.cp-prev-icon path,c-player.cp-dark .cp-icon-dark.cp-next-icon path,c-player.cp-dark .cp-icon-dark.cp-volume-icon path,c-player.cp-dark .cp-icon-dark.cp-random-icon path,c-player.cp-dark .cp-icon-dark.cp-single-icon path,c-player.cp-dark .cp-icon-dark.cp-loop-icon path,c-player.cp-dark .cp-icon-dark.cp-list-icon path{fill:#757575}c-player.cp-dark .cp-icon.cp-icon-dark:hover path,c-player.cp-dark .cp-icon-dark.cp-prev-icon:hover path,c-player.cp-dark .cp-icon-dark.cp-next-icon:hover path,c-player.cp-dark .cp-icon-dark.cp-volume-icon:hover path,c-player.cp-dark .cp-icon-dark.cp-random-icon:hover path,c-player.cp-dark .cp-icon-dark.cp-single-icon:hover path,c-player.cp-dark .cp-icon-dark.cp-loop-icon:hover path,c-player.cp-dark .cp-icon-dark.cp-list-icon:hover path{fill:#616161}c-player.cp-dark .cp-volume-container{background:#222}c-player.cp-dark .cp-volume-container:before{border-top-color:#222}c-player.cp-dark .cp-volume-container>div{background:#222}c-player.cp-dark c-player.cp-big .cp-progress,c-player.cp-big c-player.cp-dark .cp-progress,c-player.cp-dark .cp-volume-controller,c-player.cp-dark.cp-big .cp-progress{background:#616161}c-player.cp-dark c-player.cp-big .cp-progress .cp-progress-fill,c-player.cp-big c-player.cp-dark .cp-progress .cp-progress-fill,c-player.cp-big .cp-progress c-player.cp-dark .cp-volume-controller .cp-progress-fill,c-player.cp-dark .cp-volume-controller .cp-volume-fill,c-player.cp-dark.cp-big .cp-progress .cp-progress-fill{background:#BDBDBD}c-player.cp-dark c-player.cp-big .cp-progress .cp-progress-button,c-player.cp-big c-player.cp-dark .cp-progress .cp-progress-button,c-player.cp-big .cp-progress c-player.cp-dark .cp-volume-controller .cp-progress-button,c-player.cp-dark .cp-volume-controller .cp-volume-controller-button,c-player.cp-dark.cp-big .cp-progress .cp-progress-button{border-color:#222;background:#757575}c-player.cp-dark c-player.cp-big .cp-progress .cp-progress-button:hover,c-player.cp-big c-player.cp-dark .cp-progress .cp-progress-button:hover,c-player.cp-big .cp-progress c-player.cp-dark .cp-volume-controller .cp-progress-button:hover,c-player.cp-dark .cp-volume-controller .cp-volume-controller-button:hover,c-player.cp-dark.cp-big .cp-progress .cp-progress-button:hover{background:#BDBDBD}\n",""]),e.exports=t},function(e,t,n){"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var n=function(e,t){var n=e[1]||"",i=e[3];if(!i)return n;if(t&&"function"==typeof btoa){var o=(a=i,l=btoa(unescape(encodeURIComponent(JSON.stringify(a)))),c="sourceMappingURL=data:application/json;charset=utf-8;base64,".concat(l),"/*# ".concat(c," */")),r=i.sources.map((function(e){return"/*# sourceURL=".concat(i.sourceRoot||"").concat(e," */")}));return[n].concat(r).concat([o]).join("\n")}var a,l,c;return[n].join("\n")}(t,e);return t[2]?"@media ".concat(t[2]," {").concat(n,"}"):n})).join("")},t.i=function(e,n,i){"string"==typeof e&&(e=[[null,e,""]]);var o={};if(i)for(var r=0;r<this.length;r++){var a=this[r][0];null!=a&&(o[a]=!0)}for(var l=0;l<e.length;l++){var c=[].concat(e[l]);i&&o[c[0]]||(n&&(c[2]?c[2]="".concat(n," and ").concat(c[2]):c[2]=n),t.push(c))}},t}},function(e,t,n){"use strict";e.exports=function(e,t){return t||(t={}),"string"!=typeof(e=e&&e.__esModule?e.default:e)?e:(/^['"].*['"]$/.test(e)&&(e=e.slice(1,-1)),t.hash&&(e+=t.hash),/["'() \t\n]/.test(e)||t.needQuotes?'"'.concat(e.replace(/"/g,'\\"').replace(/\n/g,"\\n"),'"'):e)}}])}));
  //# sourceMappingURL=cplayer.js.map