mycpen-blog 0.0.0-wlbxxddnkb → 0.0.0-wlbyavcxzz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/js/APlayer.js CHANGED
@@ -1 +1 @@
1
- !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map((function(e,t){return t})))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.audio,r=(e.$value,e.$index,i.$escape),o=e.theme,s=e.index;return n(a,(function(e,n){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=r(e.theme||o),t+=';"></span>\n <span class="aplayer-list-index">',t+=r(n+s),t+='</span>\n <span class="aplayer-list-title">',t+=r(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=r(e.artist),t+="</span>\n</li>\n"})),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,r="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};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,(function(e){location.replace("#"+e.id)}))}};return document.addEventListener("DOMContentLoaded",(function(){for(var e,t=document.querySelectorAll('.aplayer a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)})),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(1)),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return i(e,[{key:"bindEvents",value:function(){var e=this;this.player.template.list.addEventListener("click",(function(t){var n=void 0;n="LI"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var i=parseInt(n.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;i!==e.index?(e.switch(i),e.player.play()):e.player.toggle()}))}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(e){this.player.events.trigger("listadd",{audios:e}),"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e}));var t=!(this.audios.length>1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;n<t.length;n++)t[n].getElementsByClassName("aplayer-list-index")[0].textContent=n;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(e){if(this.player.events.trigger("listswitch",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?"url('"+t.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?" - "+t.artist:"";var n=this.player.container.getElementsByClassName("aplayer-list-light")[0];n&&n.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,o.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=r.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=r.default.secondToTime(0)}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return i(e,[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.playerEvents.indexOf(e)?"player":-1!==this.audioEvents.indexOf(e)?"audio":(console.error("Unknown event name: "+e),null)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=["loading"],this.init()}return i(e,[{key:"init",value:function(){var e=this;this.types.forEach((function(t){e["init"+t+"Checker"]()}))}},{key:"initloadingChecker",value:function(){var e=this,t=0,n=0,i=!1;this.loadingChecker=setInterval((function(){e.enableloadingChecker&&(n=e.player.audio.currentTime,i||n!==t||e.player.audio.paused||(e.player.container.classList.add("aplayer-loading"),i=!0),i&&n>t&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)}),100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])}))}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(0)),r=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),a.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return i(e,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initPlayBar",value:function(){var e=this,t=function(t){var n=((t.clientX||t.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set("played",n,"width"),e.player.lrc&&e.player.lrc.update(n*e.player.duration),e.player.template.ptime.innerHTML=a.default.secondToTime(n*e.player.duration)},n=function n(i){document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=((i.clientX||i.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set("played",r,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.disableTimeupdate=!0,document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",(function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))}));var t=function(t){var n=1-((t.clientY||t.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)},n=function n(i){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=1-((i.clientY||i.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;r=Math.max(r,0),r=Math.min(r,1),e.player.volume(r)};this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",(function(){"list"===e.player.options.order?(e.player.options.order="random",e.player.template.order.innerHTML=r.default.orderRandom):"random"===e.player.options.order&&(e.player.options.order="list",e.player.template.order.innerHTML=r.default.orderList)}))}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",(function(){e.player.list.audios.length>1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=r.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,r=(e.$value,e.$index,i.$escape);return n(a,(function(e,n){t+="\n <p",0===n&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=r(e[1]),t+="</p>\n"})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(10))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return a(e,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var n=new XMLHttpRequest;n.onreadystatechange=function(){e===t.player.list.index&&4===n.readyState&&(n.status>=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,r.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,r.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,(function(e,t){return t+"\n["}))).split("\n"),n=[],i=t.length,a=0;a<i;a++){var r=t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),o=t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(r)for(var s=r.length,l=0;l<s;l++){var u=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(r[l]),c=60*u[1]+parseInt(u[2])+(u[4]?parseInt(u[4])/(2===(u[4]+"").length?100:1e3):0);n.push([c,o])}}return(n=n.filter((function(e){return e[1]}))).sort((function(e,t){return e[0]-t[0]})),n}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(0))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(r.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return a(e,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,t){this.data[e]=t,r.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return i(e,[{key:"set",value:function(e,t,n){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[n]=100*t+"%"}},{key:"get",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=a},function(e,t,n){"use strict";(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,n(4))},function(e,t,n){"use strict";(function(t){var i=n(14),a=Object.create(i?t:window),r=/["&'<>]/;a.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var i="",a=void 0,o=void 0,s=void 0;for(a=n.index,o=0;a<t.length;a++){switch(t.charCodeAt(a)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=s}return o!==a?i+t.substring(o,a):i}(function e(t){return"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t)),t}(e))},a.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=a}).call(this,n(4))},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";var t="",a=(e=e||{}).options,r=e.cover,o=i.$escape,s=e.icons,l=function(e){return t+=e},u=e.getObject;return e.theme,e.audio,e.index,a.fixed?(t+='\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(3)),r=o(n(16));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return i(e,[{key:"init",value:function(){var e="";this.options.audio.length&&(e="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:a.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e})),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(e,t,n){"use strict";var i,a,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&y())}function y(){if(!p){var e=l(h);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}r.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];c.push(new f(e,t)),1!==c.length||p||l(y)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";(function(e,t){!function(e,n){if(!e.setImmediate){var i,a,r,o,s,l=1,u={},c=!1,p=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(){y(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}}()?(o="setImmediate$"+Math.random()+"$",s=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(o)&&y(+t.data.slice(o.length))},e.addEventListener?e.addEventListener("message",s,!1):e.attachEvent("onmessage",s),i=function(t){e.postMessage(o+t,"*")}):e.MessageChannel?((r=new MessageChannel).port1.onmessage=function(e){y(e.data)},i=function(e){r.port2.postMessage(e)}):p&&"onreadystatechange"in p.createElement("script")?(a=p.documentElement,i=function(e){var t=p.createElement("script");t.onreadystatechange=function(){y(e),t.onreadystatechange=null,a.removeChild(t),t=null},a.appendChild(t)}):i=function(e){setTimeout(y,0,e)},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 a={callback:e,args:t};return u[l]=a,i(l),l++},d.clearImmediate=h}function h(e){delete u[e]}function y(e){if(c)setTimeout(y,0,e);else{var t=u[e];if(t){c=!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(undefined,n)}}(t)}finally{h(e),c=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,n(4),n(34))},function(e,t,n){"use strict";var i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,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(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,o=t,function(){a.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,o}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(a);return o(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},r.all=function(e){return new r((function(t,i){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function o(e,s){try{if(s&&("object"===(void 0===s?"undefined":n(s))||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){o(e,t)}),i)}a[e]=s,0==--r&&t(a)}catch(e){i(e)}}for(var s=0;s<a.length;s++)o(s,a[s])}))},r.resolve=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)}))},r._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=r}).call(this,n(36).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=v(n(37)),r=v(n(0)),o=v(n(3)),s=v(n(18)),l=v(n(17)),u=v(n(13)),c=v(n(12)),p=v(n(11)),d=v(n(9)),h=v(n(8)),y=v(n(7)),f=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}var m=[],g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=(0,s.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=a.default.resolve(),this.mode="normal",this.randomOrder=r.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),r.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i<n.length;i++)this.options.audio[i]&&(this.options.audio[i].lrc=n[i].innerHTML);this.template=new l.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new p.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new y.default,this.storage=new c.default(this),this.bar=new u.default(this.template),this.controller=new d.default(this),this.timer=new h.default(this),this.list=new f.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),m.push(this)}return i(e,[{key:"initAudio",value:function(){var e=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],(function(n){e.events.trigger(e.events.audioEvents[t],n)}))},n=0;n<this.events.audioEvents.length;n++)t(n);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var e=this;this.on("play",(function(){e.paused&&e.setUIPlaying()})),this.on("pause",(function(){e.paused||e.setUIPaused()})),this.on("timeupdate",(function(){if(!e.disableTimeupdate){e.bar.set("played",e.audio.currentTime/e.duration,"width"),e.lrc&&e.lrc.update();var t=r.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}})),this.on("durationchange",(function(){1!==e.duration&&(e.template.dtime.innerHTML=r.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set("loaded",t,"width")}));var t=void 0;this.on("error",(function(){e.list.audios.length>1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout((function(){e.skipForward(),e.paused||e.play()}),2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){t&&clearTimeout(t)})),this.on("ended",(function(){"none"===e.options.loop?"list"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):"random"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):"one"===e.options.loop?(e.list.switch(e.list.index),e.play()):"all"===e.options.loop&&(e.skipForward(),e.play())}))}},{key:"setAudio",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error("Illegal customType: "+t):(t&&"auto"!==t||(t=/m3u8(#|\?|$)/i.exec(e.url)?"hls":"normal"),"hls"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=e.url:this.notice("Error: HLS is not supported."):"normal"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.pause}),100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t<m.length;t++)this!==m[t]&&m[t].pause()}},{key:"play",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch((function(t){console.warn(t),"NotAllowedError"===t.name&&e.setUIPaused()}))}},{key:"setUIPaused",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.play}),100),this.template.skipPlayButton.innerHTML=o.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){m.splice(m.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")}),n))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=g},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=(i=n(38))&&i.__esModule?i:{default:i};t.default=a.default}]).default}));
1
+ !function(e,t){"object"==typeof exports&&"object"==typeof module?module.exports=t():"function"==typeof define&&define.amd?define("APlayer",[],t):"object"==typeof exports?exports.APlayer=t():e.APlayer=t()}(window,(function(){return function(e){var t={};function n(i){if(t[i])return t[i].exports;var a=t[i]={i:i,l:!1,exports:{}};return e[i].call(a.exports,a,a.exports,n),a.l=!0,a.exports}return n.m=e,n.c=t,n.d=function(e,t,i){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:i})},n.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},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=41)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=/mobile/i.test(window.navigator.userAgent),a={secondToTime:function(e){var t=Math.floor(e/3600),n=Math.floor((e-3600*t)/60),i=Math.floor(e-3600*t-60*n);return(t>0?[t,n,i]:[n,i]).map((function(e){return e<10?"0"+e:""+e})).join(":")},getElementViewLeft:function(e){var t=e.offsetLeft,n=e.offsetParent,i=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;null!==n&&n!==e;)t+=n.offsetLeft,n=n.offsetParent;else for(;null!==n;)t+=n.offsetLeft,n=n.offsetParent;return t-i},getElementViewTop:function(e,t){for(var n,i=e.offsetTop,a=e.offsetParent;null!==a;)i+=a.offsetTop,a=a.offsetParent;return n=document.body.scrollTop+document.documentElement.scrollTop,t?i:i-n},isMobile:i,storage:{set:function(e,t){localStorage.setItem(e,t)},get:function(e){return localStorage.getItem(e)}},nameMap:{dragStart:i?"touchstart":"mousedown",dragMove:i?"touchmove":"mousemove",dragEnd:i?"touchend":"mouseup"},randomOrder:function(e){return function(e){for(var t=e.length-1;t>=0;t--){var n=Math.floor(Math.random()*(t+1)),i=e[n];e[n]=e[t],e[t]=i}return e}([].concat(function(e){if(Array.isArray(e)){for(var t=0,n=Array(e.length);t<e.length;t++)n[t]=e[t];return n}return Array.from(e)}(Array(e))).map((function(e,t){return t})))}};t.default=a},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.audio,r=(e.$value,e.$index,i.$escape),o=e.theme,s=e.index;return n(a,(function(e,n){t+='\n<li>\n <span class="aplayer-list-cur" style="background-color: ',t+=r(e.theme||o),t+=';"></span>\n <span class="aplayer-list-index">',t+=r(n+s),t+='</span>\n <span class="aplayer-list-title">',t+=r(e.name),t+='</span>\n <span class="aplayer-list-author">',t+=r(e.artist),t+="</span>\n</li>\n"})),t}},function(e,t,n){"use strict";e.exports=n(15)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=g(n(33)),a=g(n(32)),r=g(n(31)),o=g(n(30)),s=g(n(29)),l=g(n(28)),u=g(n(27)),c=g(n(26)),p=g(n(25)),d=g(n(24)),h=g(n(23)),y=g(n(22)),f=g(n(21)),v=g(n(20)),m=g(n(19));function g(e){return e&&e.__esModule?e:{default:e}}var w={play:i.default,pause:a.default,volumeUp:r.default,volumeDown:o.default,volumeOff:s.default,orderRandom:l.default,orderList:u.default,menu:c.default,loopAll:p.default,loopOne:d.default,loopNone:h.default,loading:y.default,right:f.default,skip:v.default,lrc:m.default};t.default=w},function(e,t,n){"use strict";var i,a="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e};i=function(){return this}();try{i=i||Function("return this")()||(0,eval)("this")}catch(e){"object"===("undefined"==typeof window?"undefined":a(window))&&(i=window)}e.exports=i},function(e,t,n){"use strict";var i,a,r="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};void 0===(a="function"==typeof(i=function(){if("object"===("undefined"==typeof window?"undefined":r(window))&&void 0!==document.querySelectorAll&&void 0!==window.pageYOffset&&void 0!==history.pushState){var e=function(e,t,n,i){return n>i?t:e+(t-e)*((a=n/i)<.5?4*a*a*a:(a-1)*(2*a-2)*(2*a-2)+1);var a},t=function(t,n,i,a){n=n||500;var r=(a=a||window).scrollTop||window.pageYOffset;if("number"==typeof t)var o=parseInt(t);else o=function(e,t){return"HTML"===e.nodeName?-t:e.getBoundingClientRect().top+t}(t,r);var s=Date.now(),l=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(e){window.setTimeout(e,15)};!function u(){var c=Date.now()-s;a!==window?a.scrollTop=e(r,o,c,n):window.scroll(0,e(r,o,c,n)),c>n?"function"==typeof i&&i(t):l(u)}()},n=function(e){if(!e.defaultPrevented){e.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var n=document.getElementById(this.hash.substring(1));if(!n)return;t(n,500,(function(e){location.replace("#"+e.id)}))}};return document.addEventListener("DOMContentLoaded",(function(){for(var e,t=document.querySelectorAll('.aplayer a[href^="#"]:not([href="#"])'),i=t.length;e=t[--i];)e.addEventListener("click",n,!1)})),t}})?i.call(t,n,t,e):i)||(e.exports=a)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=s(n(1)),r=s(n(0)),o=s(n(5));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return i(e,[{key:"bindEvents",value:function(){var e=this;this.player.template.list.addEventListener("click",(function(t){var n=void 0;n="LI"===t.target.tagName.toUpperCase()?t.target:t.target.parentElement;var i=parseInt(n.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;i!==e.index?(e.switch(i),e.player.play()):e.player.toggle()}))}},{key:"show",value:function(){this.player.events.trigger("listshow"),this.player.template.list.classList.remove("aplayer-list-hide"),this.player.template.listOl.scrollTop=33*this.index}},{key:"hide",value:function(){this.player.events.trigger("listhide"),this.player.template.list.classList.add("aplayer-list-hide")}},{key:"toggle",value:function(){this.player.template.list.classList.contains("aplayer-list-hide")?this.show():this.hide()}},{key:"add",value:function(e){this.player.events.trigger("listadd",{audios:e}),"[object Array]"!==Object.prototype.toString.call(e)&&(e=[e]),e.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e}));var t=!(this.audios.length>1),n=0===this.audios.length;this.player.template.listOl.innerHTML+=(0,a.default)({theme:this.player.options.theme,audio:e,index:this.audios.length+1}),this.audios=this.audios.concat(e),t&&this.audios.length>1&&this.player.container.classList.add("aplayer-withlist"),this.player.randomOrder=r.default.randomOrder(this.audios.length),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur"),this.player.template.listCurs[this.audios.length-1].style.backgroundColor=e.theme||this.player.options.theme,n&&("random"===this.player.options.order?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(e){if(this.player.events.trigger("listremove",{index:e}),this.audios[e])if(this.audios.length>1){var t=this.player.container.querySelectorAll(".aplayer-list li");t[e].remove(),this.audios.splice(e,1),this.player.lrc&&this.player.lrc.remove(e),e===this.index&&(this.audios[e]?this.switch(e):this.switch(e-1)),this.index>e&&this.index--;for(var n=e;n<t.length;n++)t[n].getElementsByClassName("aplayer-list-index")[0].textContent=n;1===this.audios.length&&this.player.container.classList.remove("aplayer-withlist"),this.player.template.listCurs=this.player.container.querySelectorAll(".aplayer-list-cur")}else this.clear()}},{key:"switch",value:function(e){if(this.player.events.trigger("listswitch",{index:e}),void 0!==e&&this.audios[e]){this.index=e;var t=this.audios[this.index];this.player.template.pic.style.backgroundImage=t.cover?"url('"+t.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=t.name,this.player.template.author.innerHTML=t.artist?" - "+t.artist:"";var n=this.player.container.getElementsByClassName("aplayer-list-light")[0];n&&n.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,o.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(t),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),1!==this.player.duration&&(this.player.template.dtime.innerHTML=r.default.secondToTime(this.player.duration))}}},{key:"clear",value:function(){this.player.events.trigger("listclear"),this.index=0,this.player.container.classList.remove("aplayer-withlist"),this.player.pause(),this.audios=[],this.player.lrc&&this.player.lrc.clear(),this.player.audio.src="",this.player.template.listOl.innerHTML="",this.player.template.pic.style.backgroundImage="",this.player.theme(this.player.options.theme,this.index,!1),this.player.template.title.innerHTML="No audio",this.player.template.author.innerHTML="",this.player.bar.set("loaded",0,"width"),this.player.template.dtime.innerHTML=r.default.secondToTime(0)}}]),e}();t.default=l},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.events={},this.audioEvents=["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","mozaudioavailable","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],this.playerEvents=["destroy","listshow","listhide","listadd","listremove","listswitch","listclear","noticeshow","noticehide","lrcshow","lrchide"]}return i(e,[{key:"on",value:function(e,t){this.type(e)&&"function"==typeof t&&(this.events[e]||(this.events[e]=[]),this.events[e].push(t))}},{key:"trigger",value:function(e,t){if(this.events[e]&&this.events[e].length)for(var n=0;n<this.events[e].length;n++)this.events[e][n](t)}},{key:"type",value:function(e){return-1!==this.playerEvents.indexOf(e)?"player":-1!==this.audioEvents.indexOf(e)?"audio":(console.error("Unknown event name: "+e),null)}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(e){window.setTimeout(e,1e3/60)},this.types=["loading"],this.init()}return i(e,[{key:"init",value:function(){var e=this;this.types.forEach((function(t){e["init"+t+"Checker"]()}))}},{key:"initloadingChecker",value:function(){var e=this,t=0,n=0,i=!1;this.loadingChecker=setInterval((function(){e.enableloadingChecker&&(n=e.player.audio.currentTime,i||n!==t||e.player.audio.paused||(e.player.container.classList.add("aplayer-loading"),i=!0),i&&n>t&&!e.player.audio.paused&&(e.player.container.classList.remove("aplayer-loading"),i=!1),t=n)}),100)}},{key:"enable",value:function(e){this["enable"+e+"Checker"]=!0,"fps"===e&&this.initfpsChecker()}},{key:"disable",value:function(e){this["enable"+e+"Checker"]=!1}},{key:"destroy",value:function(){var e=this;this.types.forEach((function(t){e["enable"+t+"Checker"]=!1,e[t+"Checker"]&&clearInterval(e[t+"Checker"])}))}}]),e}();t.default=a},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(0)),r=o(n(3));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.player=t,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),a.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return i(e,[{key:"initPlayButton",value:function(){var e=this;this.player.template.pic.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initPlayBar",value:function(){var e=this,t=function(t){var n=((t.clientX||t.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;n=Math.max(n,0),n=Math.min(n,1),e.player.bar.set("played",n,"width"),e.player.lrc&&e.player.lrc.update(n*e.player.duration),e.player.template.ptime.innerHTML=a.default.secondToTime(n*e.player.duration)},n=function n(i){document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=((i.clientX||i.changedTouches[0].clientX)-a.default.getElementViewLeft(e.player.template.barWrap))/e.player.template.barWrap.clientWidth;r=Math.max(r,0),r=Math.min(r,1),e.player.bar.set("played",r,"width"),e.player.seek(e.player.bar.get("played","width")*e.player.duration),e.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.disableTimeupdate=!0,document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initVolumeButton",value:function(){var e=this;this.player.template.volumeButton.addEventListener("click",(function(){e.player.audio.muted?(e.player.audio.muted=!1,e.player.switchVolumeIcon(),e.player.bar.set("volume",e.player.volume(),"height")):(e.player.audio.muted=!0,e.player.switchVolumeIcon(),e.player.bar.set("volume",0,"height"))}));var t=function(t){var n=1-((t.clientY||t.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;n=Math.max(n,0),n=Math.min(n,1),e.player.volume(n)},n=function n(i){e.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(a.default.nameMap.dragEnd,n),document.removeEventListener(a.default.nameMap.dragMove,t);var r=1-((i.clientY||i.changedTouches[0].clientY)-a.default.getElementViewTop(e.player.template.volumeBar,e.player.options.fixed))/e.player.template.volumeBar.clientHeight;r=Math.max(r,0),r=Math.min(r,1),e.player.volume(r)};this.player.template.volumeBarWrap.addEventListener(a.default.nameMap.dragStart,(function(){e.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(a.default.nameMap.dragMove,t),document.addEventListener(a.default.nameMap.dragEnd,n)}))}},{key:"initOrderButton",value:function(){var e=this;this.player.template.order.addEventListener("click",(function(){"list"===e.player.options.order?(e.player.options.order="random",e.player.template.order.innerHTML=r.default.orderRandom):"random"===e.player.options.order&&(e.player.options.order="list",e.player.template.order.innerHTML=r.default.orderList)}))}},{key:"initLoopButton",value:function(){var e=this;this.player.template.loop.addEventListener("click",(function(){e.player.list.audios.length>1?"one"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop?(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll):"all"===e.player.options.loop&&(e.player.options.loop="one",e.player.template.loop.innerHTML=r.default.loopOne):"one"===e.player.options.loop||"all"===e.player.options.loop?(e.player.options.loop="none",e.player.template.loop.innerHTML=r.default.loopNone):"none"===e.player.options.loop&&(e.player.options.loop="all",e.player.template.loop.innerHTML=r.default.loopAll)}))}},{key:"initMenuButton",value:function(){var e=this;this.player.template.menu.addEventListener("click",(function(){e.player.list.toggle()}))}},{key:"initMiniSwitcher",value:function(){var e=this;this.player.template.miniSwitcher.addEventListener("click",(function(){e.player.setMode("mini"===e.player.mode?"normal":"mini")}))}},{key:"initSkipButton",value:function(){var e=this;this.player.template.skipBackButton.addEventListener("click",(function(){e.player.skipBack()})),this.player.template.skipForwardButton.addEventListener("click",(function(){e.player.skipForward()})),this.player.template.skipPlayButton.addEventListener("click",(function(){e.player.toggle()}))}},{key:"initLrcButton",value:function(){var e=this;this.player.template.lrcButton.addEventListener("click",(function(){e.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(e.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.show()):(e.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),e.player.lrc&&e.player.lrc.hide())}))}}]),e}();t.default=s},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";e=e||{};var t="",n=i.$each,a=e.lyrics,r=(e.$value,e.$index,i.$escape);return n(a,(function(e,n){t+="\n <p",0===n&&(t+=' class="aplayer-lrc-current"'),t+=">",t+=r(e[1]),t+="</p>\n"})),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(10))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.async=t.async,this.player=t.player,this.parsed=[],this.index=0,this.current=[]}return a(e,[{key:"show",value:function(){this.player.events.trigger("lrcshow"),this.player.template.lrcWrap.classList.remove("aplayer-lrc-hide")}},{key:"hide",value:function(){this.player.events.trigger("lrchide"),this.player.template.lrcWrap.classList.add("aplayer-lrc-hide")}},{key:"toggle",value:function(){this.player.template.lrcWrap.classList.contains("aplayer-lrc-hide")?this.show():this.hide()}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||e<this.current[this.index][0]||!this.current[this.index+1]||e>=this.current[this.index+1][0])for(var t=0;t<this.current.length;t++)e>=this.current[t][0]&&(!this.current[t+1]||e<this.current[t+1][0])&&(this.index=t,this.container.style.transform="translateY("+16*-this.index+"px)",this.container.style.webkitTransform="translateY("+16*-this.index+"px)",this.container.getElementsByClassName("aplayer-lrc-current")[0].classList.remove("aplayer-lrc-current"),this.container.getElementsByTagName("p")[t].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(e){var t=this;if(!this.parsed[e])if(this.async){this.parsed[e]=[["00:00","Loading"]];var n=new XMLHttpRequest;n.onreadystatechange=function(){e===t.player.list.index&&4===n.readyState&&(n.status>=200&&n.status<300||304===n.status?t.parsed[e]=t.parse(n.responseText):(t.player.notice("LRC file request fails: status "+n.status),t.parsed[e]=[["00:00","Not available"]]),t.container.innerHTML=(0,r.default)({lyrics:t.parsed[e]}),t.update(0),t.current=t.parsed[e])};var i=this.player.list.audios[e].lrc;n.open("get",i,!0),n.send(null)}else this.player.list.audios[e].lrc?this.parsed[e]=this.parse(this.player.list.audios[e].lrc):this.parsed[e]=[["00:00","Not available"]];this.container.innerHTML=(0,r.default)({lyrics:this.parsed[e]}),this.update(0),this.current=this.parsed[e]}},{key:"parse",value:function(e){if(e){for(var t=(e=e.replace(/([^\]^\n])\[/g,(function(e,t){return t+"\n["}))).split("\n"),n=[],i=t.length,a=0;a<i;a++){var r=t[a].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),o=t[a].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(r)for(var s=r.length,l=0;l<s;l++){var u=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(r[l]),c=60*u[1]+parseInt(u[2])+(u[4]?parseInt(u[4])/(2===(u[4]+"").length?100:1e3):0);n.push([c,o])}}return(n=n.filter((function(e){return e[1]}))).sort((function(e,t){return e[0]-t[0]})),n}return[]}},{key:"remove",value:function(e){this.parsed.splice(e,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i,a=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),r=(i=n(0))&&i.__esModule?i:{default:i},o=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.storageName=t.options.storageName,this.data=JSON.parse(r.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||t.options.volume}return a(e,[{key:"get",value:function(e){return this.data[e]}},{key:"set",value:function(e,t){this.data[e]=t,r.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),e}();t.default=o},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.elements={},this.elements.volume=t.volume,this.elements.played=t.played,this.elements.loaded=t.loaded}return i(e,[{key:"set",value:function(e,t,n){t=Math.max(t,0),t=Math.min(t,1),this.elements[e].style[n]=100*t+"%"}},{key:"get",value:function(e,t){return parseFloat(this.elements[e].style[t])/100}}]),e}();t.default=a},function(e,t,n){"use strict";(function(t){e.exports=!1;try{e.exports="[object process]"===Object.prototype.toString.call(t.process)}catch(e){}}).call(this,n(4))},function(e,t,n){"use strict";(function(t){var i=n(14),a=Object.create(i?t:window),r=/["&'<>]/;a.$escape=function(e){return function(e){var t=""+e,n=r.exec(t);if(!n)return e;var i="",a=void 0,o=void 0,s=void 0;for(a=n.index,o=0;a<t.length;a++){switch(t.charCodeAt(a)){case 34:s="&#34;";break;case 38:s="&#38;";break;case 39:s="&#39;";break;case 60:s="&#60;";break;case 62:s="&#62;";break;default:continue}o!==a&&(i+=t.substring(o,a)),o=a+1,i+=s}return o!==a?i+t.substring(o,a):i}(function e(t){return"string"!=typeof t&&(t=null==t?"":"function"==typeof t?e(t.call(t)):JSON.stringify(t)),t}(e))},a.$each=function(e,t){if(Array.isArray(e))for(var n=0,i=e.length;n<i;n++)t(e[n],n);else for(var a in e)t(e[a],a)},e.exports=a}).call(this,n(4))},function(e,t,n){var i=n(2);e.exports=function(e){"use strict";var t="",a=(e=e||{}).options,r=e.cover,o=i.$escape,s=e.icons,l=function(e){return t+=e},u=e.getObject;return e.theme,e.audio,e.index,a.fixed?(t+='\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+='\n </ol>\n</div>\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info" style="display: none;">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n</div>\n'):(t+='\n<div class="aplayer-body">\n <div class="aplayer-pic" style="',r&&(t+="background-image: url(&quot;",t+=o(r),t+="&quot;);"),t+="background-color: ",t+=o(a.theme),t+=';">\n <div class="aplayer-button aplayer-play">',t+=s.play,t+='</div>\n </div>\n <div class="aplayer-info">\n <div class="aplayer-music">\n <span class="aplayer-title">No audio</span>\n <span class="aplayer-author"></span>\n </div>\n <div class="aplayer-lrc">\n <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>\n </div>\n <div class="aplayer-controller">\n <div class="aplayer-bar-wrap">\n <div class="aplayer-bar">\n <div class="aplayer-loaded" style="width: 0"></div>\n <div class="aplayer-played" style="width: 0; background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-thumb" style="background: ',t+=o(a.theme),t+=';">\n <span class="aplayer-loading-icon">',t+=s.loading,t+='</span>\n </span>\n </div>\n </div>\n </div>\n <div class="aplayer-time">\n <span class="aplayer-time-inner">\n <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>\n </span>\n <span class="aplayer-icon aplayer-icon-back">\n ',t+=s.skip,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-play">\n ',t+=s.play,t+='\n </span>\n <span class="aplayer-icon aplayer-icon-forward">\n ',t+=s.skip,t+='\n </span>\n <div class="aplayer-volume-wrap">\n <button type="button" class="aplayer-icon aplayer-icon-volume-down">\n ',t+=s.volumeDown,t+='\n </button>\n <div class="aplayer-volume-bar-wrap">\n <div class="aplayer-volume-bar">\n <div class="aplayer-volume" style="height: 80%; background: ',t+=o(a.theme),t+=';"></div>\n </div>\n </div>\n </div>\n <button type="button" class="aplayer-icon aplayer-icon-order">\n ',"list"===a.order?t+=s.orderList:"random"===a.order&&(t+=s.orderRandom),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-loop">\n ',"one"===a.loop?t+=s.loopOne:"all"===a.loop?t+=s.loopAll:"none"===a.loop&&(t+=s.loopNone),t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-menu">\n ',t+=s.menu,t+='\n </button>\n <button type="button" class="aplayer-icon aplayer-icon-lrc">\n ',t+=s.lrc,t+='\n </button>\n </div>\n </div>\n </div>\n <div class="aplayer-notice"></div>\n <div class="aplayer-miniswitcher"><button class="aplayer-icon">',t+=s.right,t+='</button></div>\n</div>\n<div class="aplayer-list',a.listFolded&&(t+=" aplayer-list-hide"),t+='"',a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n <ol",a.listMaxHeight&&(t+=' style="max-height: ',t+=o(a.listMaxHeight),t+='"'),t+=">\n ",l(n(1)(u({theme:a.theme,audio:a.audio,index:1}))),t+="\n </ol>\n</div>\n"),t}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=o(n(3)),r=o(n(16));function o(e){return e&&e.__esModule?e:{default:e}}var s=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.container=t.container,this.options=t.options,this.randomOrder=t.randomOrder,this.init()}return i(e,[{key:"init",value:function(){var e="";this.options.audio.length&&(e="random"===this.options.order?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:a.default,cover:e,getObject:function(e){return e}}),this.lrc=this.container.querySelector(".aplayer-lrc-contents"),this.lrcWrap=this.container.querySelector(".aplayer-lrc"),this.ptime=this.container.querySelector(".aplayer-ptime"),this.info=this.container.querySelector(".aplayer-info"),this.time=this.container.querySelector(".aplayer-time"),this.barWrap=this.container.querySelector(".aplayer-bar-wrap"),this.button=this.container.querySelector(".aplayer-button"),this.body=this.container.querySelector(".aplayer-body"),this.list=this.container.querySelector(".aplayer-list"),this.listOl=this.container.querySelector(".aplayer-list ol"),this.listCurs=this.container.querySelectorAll(".aplayer-list-cur"),this.played=this.container.querySelector(".aplayer-played"),this.loaded=this.container.querySelector(".aplayer-loaded"),this.thumb=this.container.querySelector(".aplayer-thumb"),this.volume=this.container.querySelector(".aplayer-volume"),this.volumeBar=this.container.querySelector(".aplayer-volume-bar"),this.volumeButton=this.container.querySelector(".aplayer-time button"),this.volumeBarWrap=this.container.querySelector(".aplayer-volume-bar-wrap"),this.loop=this.container.querySelector(".aplayer-icon-loop"),this.order=this.container.querySelector(".aplayer-icon-order"),this.menu=this.container.querySelector(".aplayer-icon-menu"),this.pic=this.container.querySelector(".aplayer-pic"),this.title=this.container.querySelector(".aplayer-title"),this.author=this.container.querySelector(".aplayer-author"),this.dtime=this.container.querySelector(".aplayer-dtime"),this.notice=this.container.querySelector(".aplayer-notice"),this.miniSwitcher=this.container.querySelector(".aplayer-miniswitcher"),this.skipBackButton=this.container.querySelector(".aplayer-icon-back"),this.skipForwardButton=this.container.querySelector(".aplayer-icon-forward"),this.skipPlayButton=this.container.querySelector(".aplayer-icon-play"),this.lrcButton=this.container.querySelector(".aplayer-icon-lrc")}}]),e}();t.default=s},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t={container:e.element||document.getElementsByClassName("aplayer")[0],mini:e.narrow||e.fixed||!1,fixed:!1,autoplay:!1,mutex:!0,lrcType:e.showlrc||e.lrc||0,preload:"auto",theme:"#b7daff",loop:"all",order:"list",volume:.7,listFolded:e.fixed,listMaxHeight:e.listmaxheight||"250px",audio:e.music||[],storageName:"aplayer-setting"};for(var n in t)t.hasOwnProperty(n)&&!e.hasOwnProperty(n)&&(e[n]=t[n]);return"[object Array]"!==Object.prototype.toString.call(e.audio)&&(e.audio=[e.audio]),e.audio.map((function(e){return e.name=e.name||e.title||"Audio name",e.artist=e.artist||e.author||"Audio artist",e.cover=e.cover||e.pic,e.type=e.type||"normal",e})),e.audio.length<=1&&"one"===e.loop&&(e.loop="all"),e}},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M26.667 5.333h-21.333c-0 0-0.001 0-0.001 0-1.472 0-2.666 1.194-2.666 2.666 0 0 0 0.001 0 0.001v-0 16c0 0 0 0.001 0 0.001 0 1.472 1.194 2.666 2.666 2.666 0 0 0.001 0 0.001 0h21.333c0 0 0.001 0 0.001 0 1.472 0 2.666-1.194 2.666-2.666 0-0 0-0.001 0-0.001v0-16c0-0 0-0.001 0-0.001 0-1.472-1.194-2.666-2.666-2.666-0 0-0.001 0-0.001 0h0zM5.333 16h5.333v2.667h-5.333v-2.667zM18.667 24h-13.333v-2.667h13.333v2.667zM26.667 24h-5.333v-2.667h5.333v2.667zM26.667 18.667h-13.333v-2.667h13.333v2.667z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M25.468 6.947c-0.326-0.172-0.724-0.151-1.030 0.057l-6.438 4.38v-3.553c0-0.371-0.205-0.71-0.532-0.884-0.326-0.172-0.724-0.151-1.030 0.057l-12 8.164c-0.274 0.186-0.438 0.496-0.438 0.827s0.164 0.641 0.438 0.827l12 8.168c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-3.556l6.438 4.382c0.169 0.115 0.365 0.174 0.562 0.174 0.16 0 0.321-0.038 0.468-0.116 0.327-0.173 0.532-0.514 0.532-0.884v-16.333c0-0.371-0.205-0.71-0.532-0.884z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22 16l-10.105-10.6-1.895 1.987 8.211 8.613-8.211 8.612 1.895 1.988 8.211-8.613z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M4 16c0-6.6 5.4-12 12-12s12 5.4 12 12c0 1.2-0.8 2-2 2s-2-0.8-2-2c0-4.4-3.6-8-8-8s-8 3.6-8 8 3.6 8 8 8c1.2 0 2 0.8 2 2s-0.8 2-2 2c-6.6 0-12-5.4-12-12z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M2.667 7.027l1.707-1.693 22.293 22.293-1.693 1.707-4-4h-11.64v4l-5.333-5.333 5.333-5.333v4h8.973l-8.973-8.973v0.973h-2.667v-3.64l-4-4zM22.667 17.333h2.667v5.573l-2.667-2.667v-2.907zM22.667 6.667v-4l5.333 5.333-5.333 5.333v-4h-10.907l-2.667-2.667h13.573z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 33 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333zM17.333 20v-8h-1.333l-2.667 1.333v1.333h2v5.333h2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 29 32"><path d="M9.333 9.333h13.333v4l5.333-5.333-5.333-5.333v4h-16v8h2.667v-5.333zM22.667 22.667h-13.333v-4l-5.333 5.333 5.333 5.333v-4h16v-8h-2.667v5.333z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 22 32"><path d="M20.8 14.4q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2zM1.6 11.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2zM20.8 20.8q0.704 0 1.152 0.48t0.448 1.12-0.48 1.12-1.12 0.48h-19.2q-0.64 0-1.12-0.48t-0.48-1.12 0.448-1.12 1.152-0.48h19.2z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M0.622 18.334h19.54v7.55l11.052-9.412-11.052-9.413v7.549h-19.54v3.725z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 32 32"><path d="M22.667 4l7 6-7 6 7 6-7 6v-4h-3.653l-3.76-3.76 2.827-2.827 2.587 2.587h2v-8h-2l-12 12h-6v-4h4.347l12-12h3.653v-4zM2.667 8h6l3.76 3.76-2.827 2.827-2.587-2.587h-4.347v-4z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 28 32"><path d="M13.728 6.272v19.456q0 0.448-0.352 0.8t-0.8 0.32-0.8-0.32l-5.952-5.952h-4.672q-0.48 0-0.8-0.352t-0.352-0.8v-6.848q0-0.48 0.352-0.8t0.8-0.352h4.672l5.952-5.952q0.32-0.32 0.8-0.32t0.8 0.32 0.352 0.8zM20.576 16q0 1.344-0.768 2.528t-2.016 1.664q-0.16 0.096-0.448 0.096-0.448 0-0.8-0.32t-0.32-0.832q0-0.384 0.192-0.64t0.544-0.448 0.608-0.384 0.512-0.64 0.192-1.024-0.192-1.024-0.512-0.64-0.608-0.384-0.544-0.448-0.192-0.64q0-0.48 0.32-0.832t0.8-0.32q0.288 0 0.448 0.096 1.248 0.48 2.016 1.664t0.768 2.528zM25.152 16q0 2.72-1.536 5.056t-4 3.36q-0.256 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.704 0.672-1.056 1.024-0.512 1.376-0.8 1.312-0.96 2.048-2.4t0.736-3.104-0.736-3.104-2.048-2.4q-0.352-0.288-1.376-0.8-0.672-0.352-0.672-1.056 0-0.448 0.32-0.8t0.8-0.352q0.224 0 0.48 0.096 2.496 1.056 4 3.36t1.536 5.056zM29.728 16q0 4.096-2.272 7.552t-6.048 5.056q-0.224 0.096-0.448 0.096-0.48 0-0.832-0.352t-0.32-0.8q0-0.64 0.704-1.056 0.128-0.064 0.384-0.192t0.416-0.192q0.8-0.448 1.44-0.896 2.208-1.632 3.456-4.064t1.216-5.152-1.216-5.152-3.456-4.064q-0.64-0.448-1.44-0.896-0.128-0.096-0.416-0.192t-0.384-0.192q-0.704-0.416-0.704-1.056 0-0.448 0.32-0.8t0.832-0.352q0.224 0 0.448 0.096 3.776 1.632 6.048 5.056t2.272 7.552z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 17 32"><path d="M14.080 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048zM2.88 4.8q2.88 0 2.88 2.048v18.24q0 2.112-2.88 2.112t-2.88-2.112v-18.24q0-2.048 2.88-2.048z"></path></svg>'},function(e,t){e.exports='<svg xmlns="http://www.w3.org/2000/svg" version="1.1" viewBox="0 0 16 31"><path d="M15.552 15.168q0.448 0.32 0.448 0.832 0 0.448-0.448 0.768l-13.696 8.512q-0.768 0.512-1.312 0.192t-0.544-1.28v-16.448q0-0.96 0.544-1.28t1.312 0.192z"></path></svg>'},function(e,t,n){"use strict";var i,a,r=e.exports={};function o(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function l(e){if(i===setTimeout)return setTimeout(e,0);if((i===o||!i)&&setTimeout)return i=setTimeout,setTimeout(e,0);try{return i(e,0)}catch(t){try{return i.call(null,e,0)}catch(t){return i.call(this,e,0)}}}!function(){try{i="function"==typeof setTimeout?setTimeout:o}catch(e){i=o}try{a="function"==typeof clearTimeout?clearTimeout:s}catch(e){a=s}}();var u,c=[],p=!1,d=-1;function h(){p&&u&&(p=!1,u.length?c=u.concat(c):d=-1,c.length&&y())}function y(){if(!p){var e=l(h);p=!0;for(var t=c.length;t;){for(u=c,c=[];++d<t;)u&&u[d].run();d=-1,t=c.length}u=null,p=!1,function(e){if(a===clearTimeout)return clearTimeout(e);if((a===s||!a)&&clearTimeout)return a=clearTimeout,clearTimeout(e);try{a(e)}catch(t){try{return a.call(null,e)}catch(t){return a.call(this,e)}}}(e)}}function f(e,t){this.fun=e,this.array=t}function v(){}r.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];c.push(new f(e,t)),1!==c.length||p||l(y)},f.prototype.run=function(){this.fun.apply(null,this.array)},r.title="browser",r.browser=!0,r.env={},r.argv=[],r.version="",r.versions={},r.on=v,r.addListener=v,r.once=v,r.off=v,r.removeListener=v,r.removeAllListeners=v,r.emit=v,r.prependListener=v,r.prependOnceListener=v,r.listeners=function(e){return[]},r.binding=function(e){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(e){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(e,t,n){"use strict";(function(e,t){!function(e){if(!e.setImmediate){var n,i,a,r,o,s=1,l={},u=!1,c=e.document,p=Object.getPrototypeOf&&Object.getPrototypeOf(e);p=p&&p.setTimeout?p:e,"[object process]"==={}.toString.call(e.process)?n=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}}()?(r="setImmediate$"+Math.random()+"$",o=function(t){t.source===e&&"string"==typeof t.data&&0===t.data.indexOf(r)&&h(+t.data.slice(r.length))},e.addEventListener?e.addEventListener("message",o,!1):e.attachEvent("onmessage",o),n=function(t){e.postMessage(r+t,"*")}):e.MessageChannel?((a=new MessageChannel).port1.onmessage=function(e){h(e.data)},n=function(e){a.port2.postMessage(e)}):c&&"onreadystatechange"in c.createElement("script")?(i=c.documentElement,n=function(e){var t=c.createElement("script");t.onreadystatechange=function(){h(e),t.onreadystatechange=null,i.removeChild(t),t=null},i.appendChild(t)}):n=function(e){setTimeout(h,0,e)},p.setImmediate=function(e){"function"!=typeof e&&(e=new Function(""+e));for(var t=new Array(arguments.length-1),i=0;i<t.length;i++)t[i]=arguments[i+1];var a={callback:e,args:t};return l[s]=a,n(s),s++},p.clearImmediate=d}function d(e){delete l[e]}function h(e){if(u)setTimeout(h,0,e);else{var t=l[e];if(t){u=!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(undefined,n)}}(t)}finally{d(e),u=!1}}}}}("undefined"==typeof self?void 0===e?void 0:e:self)}).call(this,n(4),n(34))},function(e,t,n){"use strict";var i=Function.prototype.apply;function a(e,t){this._id=e,this._clearFn=t}t.setTimeout=function(){return new a(i.call(setTimeout,window,arguments),clearTimeout)},t.setInterval=function(){return new a(i.call(setInterval,window,arguments),clearInterval)},t.clearTimeout=t.clearInterval=function(e){e&&e.close()},a.prototype.unref=a.prototype.ref=function(){},a.prototype.close=function(){this._clearFn.call(window,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(35),t.setImmediate=setImmediate,t.clearImmediate=clearImmediate},function(e,t,n){"use strict";(function(t){var n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},i=setTimeout;function a(){}function r(e){if(!(this instanceof r))throw new TypeError("Promises must be constructed via new");if("function"!=typeof e)throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],c(e,this)}function o(e,t){for(;3===e._state;)e=e._value;0!==e._state?(e._handled=!0,r._immediateFn((function(){var n=1===e._state?t.onFulfilled:t.onRejected;if(null!==n){var i;try{i=n(e._value)}catch(e){return void l(t.promise,e)}s(t.promise,i)}else(1===e._state?s:l)(t.promise,e._value)}))):e._deferreds.push(t)}function s(e,t){try{if(t===e)throw new TypeError("A promise cannot be resolved with itself.");if(t&&("object"===(void 0===t?"undefined":n(t))||"function"==typeof t)){var i=t.then;if(t instanceof r)return e._state=3,e._value=t,void u(e);if("function"==typeof i)return void c((a=i,o=t,function(){a.apply(o,arguments)}),e)}e._state=1,e._value=t,u(e)}catch(t){l(e,t)}var a,o}function l(e,t){e._state=2,e._value=t,u(e)}function u(e){2===e._state&&0===e._deferreds.length&&r._immediateFn((function(){e._handled||r._unhandledRejectionFn(e._value)}));for(var t=0,n=e._deferreds.length;t<n;t++)o(e,e._deferreds[t]);e._deferreds=null}function c(e,t){var n=!1;try{e((function(e){n||(n=!0,s(t,e))}),(function(e){n||(n=!0,l(t,e))}))}catch(e){if(n)return;n=!0,l(t,e)}}r.prototype.catch=function(e){return this.then(null,e)},r.prototype.then=function(e,t){var n=new this.constructor(a);return o(this,new function(e,t,n){this.onFulfilled="function"==typeof e?e:null,this.onRejected="function"==typeof t?t:null,this.promise=n}(e,t,n)),n},r.prototype.finally=function(e){var t=this.constructor;return this.then((function(n){return t.resolve(e()).then((function(){return n}))}),(function(n){return t.resolve(e()).then((function(){return t.reject(n)}))}))},r.all=function(e){return new r((function(t,i){if(!e||void 0===e.length)throw new TypeError("Promise.all accepts an array");var a=Array.prototype.slice.call(e);if(0===a.length)return t([]);var r=a.length;function o(e,s){try{if(s&&("object"===(void 0===s?"undefined":n(s))||"function"==typeof s)){var l=s.then;if("function"==typeof l)return void l.call(s,(function(t){o(e,t)}),i)}a[e]=s,0==--r&&t(a)}catch(e){i(e)}}for(var s=0;s<a.length;s++)o(s,a[s])}))},r.resolve=function(e){return e&&"object"===(void 0===e?"undefined":n(e))&&e.constructor===r?e:new r((function(t){t(e)}))},r.reject=function(e){return new r((function(t,n){n(e)}))},r.race=function(e){return new r((function(t,n){for(var i=0,a=e.length;i<a;i++)e[i].then(t,n)}))},r._immediateFn="function"==typeof t&&function(e){t(e)}||function(e){i(e,0)},r._unhandledRejectionFn=function(e){"undefined"!=typeof console&&console&&console.warn("Possible Unhandled Promise Rejection:",e)},e.exports=r}).call(this,n(36).setImmediate)},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var i=function(){function e(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)}}return function(t,n,i){return n&&e(t.prototype,n),i&&e(t,i),t}}(),a=v(n(37)),r=v(n(0)),o=v(n(3)),s=v(n(18)),l=v(n(17)),u=v(n(13)),c=v(n(12)),p=v(n(11)),d=v(n(9)),h=v(n(8)),y=v(n(7)),f=v(n(6));function v(e){return e&&e.__esModule?e:{default:e}}var m=[],g=function(){function e(t){if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=(0,s.default)(t),this.container=this.options.container,this.paused=!0,this.playedPromise=a.default.resolve(),this.mode="normal",this.randomOrder=r.default.randomOrder(this.options.audio.length),this.container.classList.add("aplayer"),this.options.lrcType&&!this.options.fixed&&this.container.classList.add("aplayer-withlrc"),this.options.audio.length>1&&this.container.classList.add("aplayer-withlist"),r.default.isMobile&&this.container.classList.add("aplayer-mobile"),this.arrow=this.container.offsetWidth<=300,this.arrow&&this.container.classList.add("aplayer-arrow"),this.container=this.options.container,2===this.options.lrcType||!0===this.options.lrcType)for(var n=this.container.getElementsByClassName("aplayer-lrc-content"),i=0;i<n.length;i++)this.options.audio[i]&&(this.options.audio[i].lrc=n[i].innerHTML);this.template=new l.default({container:this.container,options:this.options,randomOrder:this.randomOrder}),this.options.fixed&&(this.container.classList.add("aplayer-fixed"),this.template.body.style.width=this.template.body.offsetWidth-18+"px"),this.options.mini&&(this.setMode("mini"),this.template.info.style.display="block"),this.template.info.offsetWidth<200&&this.template.time.classList.add("aplayer-time-narrow"),this.options.lrcType&&(this.lrc=new p.default({container:this.template.lrc,async:3===this.options.lrcType,player:this})),this.events=new y.default,this.storage=new c.default(this),this.bar=new u.default(this.template),this.controller=new d.default(this),this.timer=new h.default(this),this.list=new f.default(this),this.initAudio(),this.bindEvents(),"random"===this.options.order?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),m.push(this)}return i(e,[{key:"initAudio",value:function(){var e=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var t=function(t){e.audio.addEventListener(e.events.audioEvents[t],(function(n){e.events.trigger(e.events.audioEvents[t],n)}))},n=0;n<this.events.audioEvents.length;n++)t(n);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var e=this;this.on("play",(function(){e.paused&&e.setUIPlaying()})),this.on("pause",(function(){e.paused||e.setUIPaused()})),this.on("timeupdate",(function(){if(!e.disableTimeupdate){e.bar.set("played",e.audio.currentTime/e.duration,"width"),e.lrc&&e.lrc.update();var t=r.default.secondToTime(e.audio.currentTime);e.template.ptime.innerHTML!==t&&(e.template.ptime.innerHTML=t)}})),this.on("durationchange",(function(){1!==e.duration&&(e.template.dtime.innerHTML=r.default.secondToTime(e.duration))})),this.on("progress",(function(){var t=e.audio.buffered.length?e.audio.buffered.end(e.audio.buffered.length-1)/e.duration:0;e.bar.set("loaded",t,"width")}));var t=void 0;this.on("error",(function(){e.list.audios.length>1?(e.notice("An audio error has occurred, player will skip forward in 2 seconds."),t=setTimeout((function(){e.skipForward(),e.paused||e.play()}),2e3)):1===e.list.audios.length&&e.notice("An audio error has occurred.")})),this.events.on("listswitch",(function(){t&&clearTimeout(t)})),this.on("ended",(function(){"none"===e.options.loop?"list"===e.options.order?e.list.index<e.list.audios.length-1?(e.list.switch((e.list.index+1)%e.list.audios.length),e.play()):(e.list.switch((e.list.index+1)%e.list.audios.length),e.pause()):"random"===e.options.order&&(e.randomOrder.indexOf(e.list.index)<e.randomOrder.length-1?(e.list.switch(e.nextIndex()),e.play()):(e.list.switch(e.nextIndex()),e.pause())):"one"===e.options.loop?(e.list.switch(e.list.index),e.play()):"all"===e.options.loop&&(e.skipForward(),e.play())}))}},{key:"setAudio",value:function(e){this.hls&&(this.hls.destroy(),this.hls=null);var t=e.type;this.options.customAudioType&&this.options.customAudioType[t]?"[object Function]"===Object.prototype.toString.call(this.options.customAudioType[t])?this.options.customAudioType[t](this.audio,e,this):console.error("Illegal customType: "+t):(t&&"auto"!==t||(t=/m3u8(#|\?|$)/i.exec(e.url)?"hls":"normal"),"hls"===t?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(e.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=e.url:this.notice("Error: HLS is not supported."):"normal"===t&&(this.audio.src=e.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.list.index;(!(arguments.length>2&&void 0!==arguments[2])||arguments[2])&&this.list.audios[t]&&(this.list.audios[t].theme=e),this.template.listCurs[t]&&(this.template.listCurs[t].style.backgroundColor=e),t===this.list.index&&(this.template.pic.style.backgroundColor=e,this.template.played.style.background=e,this.template.thumb.style.background=e,this.template.volume.style.background=e)}},{key:"seek",value:function(e){e=Math.max(e,0),e=Math.min(e,this.duration),this.audio.currentTime=e,this.bar.set("played",e/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(e)}},{key:"setUIPlaying",value:function(){var e=this;if(this.paused&&(this.paused=!1,this.template.button.classList.remove("aplayer-play"),this.template.button.classList.add("aplayer-pause"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.pause}),100),this.template.skipPlayButton.innerHTML=o.default.pause),this.timer.enable("loading"),this.options.mutex)for(var t=0;t<m.length;t++)this!==m[t]&&m[t].pause()}},{key:"play",value:function(){var e=this;this.setUIPlaying();var t=this.audio.play();t&&t.catch((function(t){console.warn(t),"NotAllowedError"===t.name&&e.setUIPaused()}))}},{key:"setUIPaused",value:function(){var e=this;this.paused||(this.paused=!0,this.template.button.classList.remove("aplayer-pause"),this.template.button.classList.add("aplayer-play"),this.template.button.innerHTML="",setTimeout((function(){e.template.button.innerHTML=o.default.play}),100),this.template.skipPlayButton.innerHTML=o.default.play),this.container.classList.remove("aplayer-loading"),this.timer.disable("loading")}},{key:"pause",value:function(){this.setUIPaused(),this.audio.pause()}},{key:"switchVolumeIcon",value:function(){this.volume()>=.95?this.template.volumeButton.innerHTML=o.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=o.default.volumeDown:this.template.volumeButton.innerHTML=o.default.volumeOff}},{key:"volume",value:function(e,t){return e=parseFloat(e),isNaN(e)||(e=Math.max(e,0),e=Math.min(e,1),this.bar.set("volume",e,"height"),t||this.storage.set("volume",e),this.audio.volume=e,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(e,t){this.events.on(e,t)}},{key:"toggle",value:function(){this.template.button.classList.contains("aplayer-play")?this.play():this.template.button.classList.contains("aplayer-pause")&&this.pause()}},{key:"switchAudio",value:function(e){this.list.switch(e)}},{key:"addAudio",value:function(e){this.list.add(e)}},{key:"removeAudio",value:function(e){this.list.remove(e)}},{key:"destroy",value:function(){m.splice(m.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"normal";this.mode=e,"mini"===e?this.container.classList.add("aplayer-narrow"):"normal"===e&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2e3,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:.8;this.template.notice.innerHTML=e,this.template.notice.style.opacity=i,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:e}),n&&(this.noticeTime=setTimeout((function(){t.template.notice.style.opacity=0,t.events.trigger("noticehide")}),n))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return 0===e?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[e-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if("list"===this.options.order)return(this.list.index+1)%this.list.audios.length;if("random"===this.options.order){var e=this.randomOrder.indexOf(this.list.index);return e===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[e+1]}}},{key:"skipBack",value:function(){this.list.switch(this.prevIndex())}},{key:"skipForward",value:function(){this.list.switch(this.nextIndex())}},{key:"duration",get:function(){return isNaN(this.audio.duration)?0:this.audio.duration}}],[{key:"version",get:function(){return"1.10.1"}}]),e}();t.default=g},,function(e,t,n){},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),n(40);var i,a=(i=n(38))&&i.__esModule?i:{default:i};t.default=a.default}]).default}));
package/js/custom.js CHANGED
@@ -1 +1 @@
1
- var _0x13697a=_0x53f3;!function(e,t){for(var a=_0x53f3,n=_0x1088();;)try{if(819088===parseInt(a(751))/1+-parseInt(a(797))/2*(-parseInt(a(787))/3)+-parseInt(a(481))/4*(-parseInt(a(489))/5)+-parseInt(a(702))/6*(parseInt(a(799))/7)+-parseInt(a(428))/8*(-parseInt(a(729))/9)+parseInt(a(819))/10*(-parseInt(a(556))/11)+-parseInt(a(791))/12)break;n.push(n.shift())}catch(e){n.push(n.shift())}}();var mycpen1js={changeNavPageNameTitle(){var e=_0x53f3;document[e(610)]==e(421)?document[e(412)](e(495))[e(505)]=document[e(610)]:document.getElementById("page-name").innerText=document[e(610)][e(757)](e(806))[0]},getNavRightPagePercent(){var e=_0x53f3;let t=document[e(793)][e(706)]||window[e(814)],a=Math[e(654)](document[e(398)].scrollHeight,document[e(793)][e(730)],document[e(398)][e(613)],document[e(793)].offsetHeight,document[e(398)][e(563)],document[e(793)][e(563)])-document[e(793)].clientHeight,n=Math[e(438)](t/a*100),o=document[e(391)]("#percent");n<=99||(n=99),o[e(810)]=n,r=window[e(460)]+document.documentElement[e(563)],p=document[e(412)](e(604))||document[e(412)](e(708)),p[e(822)]+p[e(613)]/2<r||90<n?(document.querySelector(e(385))[e(562)][e(512)](e(798)),o.innerHTML=e(508)):(document[e(391)]("#nav-totop")[e(562)][e(781)](e(798)),o[e(810)]=n)},share(){var e=_0x53f3;let t=window.location[e(548)]+window[e(459)][e(829)];new ClipboardJS(e(440),{text:function(){var a=e;return a(747)+document[a(610)]+"\n链接:"+t}}),btf[e(594)](e(592))},getFooterRandomFlink(){var e={saveData:(e,t)=>{var a=_0x53f3;localStorage[a(513)](e,JSON[a(514)]({time:Date.now(),data:t}))},loadData:(e,t)=>{var a=_0x53f3;let n=JSON.parse(localStorage[a(701)](e));if(n){let e=Date.now()-n[a(795)];if(e<60*t*1e3&&e>-1)return n[a(780)]}return 0},randomLink:()=>{var t=_0x53f3;let a=e[t(420)]("links",30);if(a){let e=document.querySelectorAll("#friend-links-in-footer .footer-item");if(!e.length)return;for(let n=0;n<3;n++){let o;do{o=parseInt(Math[t(528)]()*a[t(565)])}while("失联"===a[o].tag);e[n].innerText=a[o].name,e[n][t(789)]=a[o][t(625)],e[n][t(610)]=a[o].name,e[n][t(700)]=t(501),e[n][t(453)]="noopener external nofollow noreferrer",a[t(741)](o,1)}}else fetch(t(710))[t(449)]((e=>e.json()))[t(449)]((a=>{var n=t;e[n(647)](n(818),a[n(651)]),e[n(614)]()}))}};e[_0x53f3(614)]()},newYearCountdownCard(){(()=>{var e=_0x53f3;if(clearTimeout(null),!document.querySelector(e(545)))return;let t=new Date((new Date).getFullYear()+1+"-01-01 00:00:00").getTime()/1e3,a={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"};!function(){var n=e;let o=new Date,c=o[n(587)]()+1,s=o[n(766)]();c=c>9?c:"0"+c,s=s>9?s:"0"+s,document.querySelector(n(401))[n(810)]=o[n(419)]()+"-"+c+"-"+s+" "+a[o.getDay()];let r=t-Math[n(438)](o[n(620)]()/1e3);r<0?(document[n(391)]("#newYear .title").innerHTML=n(643),document.querySelector(n(666)).innerHTML=n(761)):(document.querySelector(n(543))[n(810)]=n(463)+((new Date)[n(419)]()+1)+n(510),r>86400?document[n(391)]("#newYear .newYear-time")[n(810)]='<span class="day">'+Math[n(452)](r/86400)+'<span class="unit">天</span></span>':document[n(391)](n(666))[n(810)]='<span class="day">'+Math[n(452)](r/86400)+n(576))}()})()},removeBodyPaceClass:function(){var e=_0x53f3;$(e(398))[e(809)](),$(e(398))[e(593)](e(694))},toPage:function(){var e=_0x53f3,t=document[e(767)](".page-number"),a=parseInt(t[t[e(565)]-1][e(810)]),n=document.getElementById(e(786)),o=parseInt(n[e(571)]);if(!isNaN(o)&&o>0&&"0"!==(""+o)[0]&&o<=a){var c,s=window[e(459)][e(789)][e(397)](/\/page\/\d+\/$/,"/");c=1===o?s:s+(s.endsWith("/")?"":"/")+e(633)+o+"/",document.getElementById(e(686))[e(789)]=c}},listenToPageInputPress(){var e=_0x53f3,t=document[e(412)](e(786)),a=document.getElementById(e(686));t&&(t[e(616)](e(584),(t=>{var n=e;13===t[n(623)]&&(mycpen1js[n(674)](),pjax[n(823)](a[n(789)]))})),t[e(616)](e(566),(function(){var n=e;""===t.value||"0"===t[n(571)]?a.classList.remove(n(805)):a[n(562)][n(512)]("haveValue");var o=document.querySelectorAll(n(707)),c=+o[o[n(565)]-1][n(810)];+document[n(412)](n(786))[n(571)]>c&&(t[n(571)]=c)})))},showConsole:function(){var e=_0x53f3;document.querySelector(e(675)).classList.add(e(770)),mycpen1js.initConsoleState()},hideConsole:function(){var e=_0x53f3;document[e(391)](e(675)).classList[e(781)](e(770))},hideAsideBtn:()=>{var e=_0x53f3;const t=document.documentElement[e(562)];t[e(663)](e(637))?saveToLocal[e(617)]("aside-status","show",2):saveToLocal[e(617)](e(639),"hide",2),t[e(480)](e(637)),t[e(663)](e(637))?document[e(391)](e(676))[e(562)][e(512)]("on"):document.querySelector("#consoleHideAside")[e(562)][e(781)]("on")},initConsoleState:function(){var e=_0x53f3;document[e(793)][e(562)][e(663)](e(637))?document.querySelector(e(676)).classList.add("on"):document[e(391)](e(676)).classList[e(781)]("on")},tagPageActive:function(){var e=_0x53f3,t=window[e(459)][e(829)];if(/\/tags\/.*?\//[e(560)](t=decodeURIComponent(t))){var a=t[e(757)]("/")[2];if(document.querySelector(e(519))){$("a")[e(809)](e(494));var n=document[e(412)](e(525)+a);n&&n.classList[e(512)](e(494))}}},categoryPageActive:function(){var e=_0x53f3,t=window[e(459)][e(829)];if(/\/categories\/.*?\//[e(560)](t=decodeURIComponent(t))){var a=t[e(757)]("/")[2];if(document.querySelector(".page .layout #category #category-page-categories")){$("a")[e(809)](e(494));var n=document[e(412)]("mycpen1-categories-page-cloudCategories-"+a);n&&n[e(562)][e(512)](e(494))}}},addRandomCommentInfo:function(){var e=_0x53f3;const t=[e(444),"英俊的","聪明的",e(596),e(712),e(615),e(627),"可靠的",e(482),e(378),e(427),e(468),e(714),e(660),e(389),"活泼的",e(626),e(828),e(671),e(644),e(383),"细心的",e(691),"深沉的",e(690),e(569),e(689),"开放的",e(430),"坚强的","自信的","谦虚的","文静的",e(471),e(808),e(483),"慎重的",e(581),e(745),e(446),e(414),e(669),e(439),e(635),e(380),"好奇的",e(590),"宽容的",e(415),"体贴的",e(497),e(672),e(670),e(794),e(600),e(396),e(740),e(557),e(486),e(382),"喜欢思考的",e(782),e(743),e(411),e(726),"善于合作的",e(595),e(424),"有幽默感的","有思想的","有个性的",e(826),e(542),e(399),e(771),e(492),e(529),e(619),"有决策能力的",e(725),e(642),e(498),e(728),"有逻辑思维的",e(720),e(549),"有商业头脑的"],a=["萝卜","白菜","芹菜","生菜","青椒","辣椒","茄子","豆角","黄瓜",e(407),"洋葱","大蒜","土豆","南瓜","豆腐","韭菜","花菜",e(554),"蘑菇",e(403),"苹果","香蕉","橙子","柠檬",e(658),"草莓","葡萄","桃子","杏子","李子","石榴","西瓜","哈密瓜","蜜瓜","樱桃","蓝莓","柿子","橄榄","柚子","火龙果"],n=""+t[Math[e(622)](Math[e(528)]()*t.length)]+a[Math[e(622)](Math[e(528)]()*a[e(565)])];!function(){for(var t=e,a=[t(784),t(705),t(652),t(703),"#ds-dialog-name",t(455),t(765),"#comment_author"],o=["#mail",t(813),t(433),t(423),t(588),t(582),"input[name='mail']",t(698)],c=0;c<a[t(565)];c++){var s=document[t(391)](a[c]);if(null!=s){s.value=n,s.dispatchEvent(new Event("input")),s[t(547)](new Event(t(479)));break}}for(var r=0;r<o[t(565)];r++){var i=document[t(391)](o[r]);if(null!=i){i[t(571)]=t(646),i[t(547)](new Event(t(566))),i.dispatchEvent(new Event(t(479)));break}}}();var o=document[e(388)]("el-textarea__inner")[0];o[e(772)](),o[e(454)](-1,-1)},owoBigfunc(){var e=_0x53f3;document[e(412)](e(604))&&function(){var t=e;let a=1,n="",o=document[t(425)]("div"),c=document.querySelector(t(398));o.id="owo-big",c[t(537)](o),new MutationObserver((e=>{var s=t;for(let t=0;t<e[s(565)];t++){let r=e[t][s(816)],i="";2==r.length&&r[1].className==s(538)&&(i=r[1],document[s(398)][s(680)]<=768&&i.addEventListener(s(759),(e=>e.preventDefault())),i[s(632)]=e=>{var t=s;a&&e[t(700)][t(503)]==t(585)&&(a=0,n=setTimeout((()=>{var a=t;let n=3*e.target[a(563)],s=3*e[a(700)][a(680)],r=e.x-e[a(462)]-(s-e[a(700)][a(680)])/2,i=e.y-e.offsetY;r+s>c[a(680)]&&(r-=r+s-c.clientWidth+10),r<0&&(r=10),o[a(402)].cssText=a(733)+n+a(599)+s+a(685)+r+a(827)+i+a(688),o.innerHTML=a(715)+e[a(700)][a(579)]+'">'}),300))},i[s(484)]=()=>{var e=s;o[e(402)][e(611)]="none",a=1,clearTimeout(n)})}}))[t(775)](document[t(412)](t(604)),{subtree:!0,childList:!0})}()},removeaAlayerFixedLrc(){var e=_0x53f3;function t(){var e=_0x53f3;const t=document[e(391)](e(573));t&&(a.disconnect(),setTimeout((()=>{t.click()}),1))}const a=new MutationObserver(((e,a)=>{var n=_0x53f3;for(let a of e)a[n(677)]===n(792)&&t()}));a[e(775)](document,{childList:!0,subtree:!0})},switchDarkMode(){var e=_0x53f3;"light"===("dark"===document.documentElement.getAttribute("data-theme")?e(386):"light")?(activateDarkMode(),saveToLocal[e(617)](e(681),"dark",2),void 0!==GLOBAL_CONFIG.Snackbar&&btf.snackbarShow(GLOBAL_CONFIG[e(628)][e(750)])):(activateLightMode(),saveToLocal[e(617)](e(681),e(776),2),void 0!==GLOBAL_CONFIG.Snackbar&&btf[e(594)](GLOBAL_CONFIG[e(628)][e(679)])),typeof utterancesTheme===e(738)&&utterancesTheme(),typeof FB===e(719)&&window[e(578)](),window.DISQUS&&document.getElementById("disqus_thread")[e(507)][e(565)]&&setTimeout((()=>window.disqusReset()),200)},essayUnknownPart(){},essayReplaceAll(e,t,a){var n=_0x53f3;return e[n(757)](t)[n(574)](a)},essayDiffDate:function(e,t=!1){var a=_0x53f3;const n=new Date,o=new Date(e),c=n[a(620)]()-o.getTime(),s=36e5,r=864e5;let i;if(t){const e=c/r,t=c/s,n=c/6e4;i=c/2592e6>=1?o[a(555)]()[a(397)](/\//g,"-"):e>=1?parseInt(e)+" "+GLOBAL_CONFIG[a(390)][a(597)]:t>=1?parseInt(t)+" "+GLOBAL_CONFIG[a(390)][a(739)]:n>=1?parseInt(n)+" "+GLOBAL_CONFIG[a(390)][a(461)]:GLOBAL_CONFIG[a(390)][a(796)]}else i=parseInt(c/r);return i},essayChangeTimeInEssay:function(){var e=_0x53f3;document.querySelector(e(437))&&document[e(767)](e(426))[e(713)]((function(t){var a=e,n=t,o=n[a(477)]("datetime");n[a(505)]=mycpen1js[a(516)](o,!0),n.style[a(611)]=a(441)}))},essayReflashEssayWaterFall:function(){var e=_0x53f3;document[e(391)](e(788))&&setTimeout((function(){var t=e;waterfall(t(788)),document[t(412)](t(379)).classList[t(512)](t(770))}),500)},essayCommentText:function(e){var t=_0x53f3;var a=document[t(391)](t(608)).offsetTop;window[t(381)](0,a-80),e!=t(521)&&"null"!=e||(e=t(777)),function t(){setTimeout((()=>{var a=_0x53f3,n=document[a(388)](a(731))[0];n||t();let o=document[a(457)](a(395));o[a(812)](a(566),!0,!0);let c=mycpen1js[a(442)](e,"\n","\n> ");n[a(571)]="> "+c+"\n\n",n[a(547)](o),n[a(772)](),n.setSelectionRange(-1,-1),document[a(412)]("comment-tips")&&document[a(412)](a(748))[a(562)][a(512)]("show")}),100)}()},essayInitIndexEssay:function(){setTimeout((()=>{var e=_0x53f3;let t=new Swiper(e(533),{passiveListeners:!0,direction:e(820),loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),a=document[e(412)](e(550));null!==a&&(a.onmouseenter=function(){t[e(404)].stop()},a[e(603)]=function(){var a=e;t[a(404)][a(470)]()})}),100)},essayChangeTimeInEssayByMycpen:function(){for(var e=_0x53f3,t=document[e(653)](e(795)),a=0;a<t[e(565)];a++){var n,o=t[a][e(477)](e(665)),c=new Date(o),s=(new Date).getTime()-c[e(620)](),r=Math.floor(s/864e5);0===r?n="最近":1===r?n="昨天":2===r?n="前天":r<=7?n=r+"天前":c[e(419)]()!==(new Date)[e(419)]()?(Essaymonth=c[e(587)]()+1,EssayDay=c.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=c[e(419)]()+"-"+Essaymonth+"-"+EssayDay):(Essaymonth=c[e(587)]()+1,EssayDay=c.getDate(),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=Essaymonth+"-"+EssayDay),t[a][e(825)]=n}},switchPostChart:function(){var e=_0x53f3;let t=document[e(793)][e(477)](e(570))===e(776)?e(567):e(522);if(document[e(412)]("posts-chart")&&postsOption)try{let a=postsOption;a[e(610)].textStyle[e(749)]=t,a[e(807)][e(607)][e(749)]=t,a[e(630)][e(607)].color=t,a[e(807)][e(659)][e(749)]=t,a.yAxis[e(659)][e(749)]=t,a[e(807)][e(618)][e(683)][e(749)]=t,a[e(630)][e(618)].lineStyle[e(749)]=t,a[e(785)][0].markLine.data[0].label[e(749)]=t,postsChart[e(779)](a)}catch(e){console.log(e)}if(document[e(412)](e(466))&&tagsOption)try{let a=tagsOption;a[e(610)][e(606)][e(749)]=t,a.xAxis.nameTextStyle[e(749)]=t,a.yAxis.nameTextStyle.color=t,a.xAxis[e(659)][e(749)]=t,a[e(630)][e(659)][e(749)]=t,a.xAxis.axisLine[e(683)][e(749)]=t,a.yAxis[e(618)][e(683)].color=t,a[e(785)][0][e(821)][e(780)][0][e(699)][e(749)]=t,tagsChart[e(779)](a)}catch(e){console.log(e)}if(document[e(412)]("categories-chart")&&categoriesOption)try{let a=categoriesOption;a.title.textStyle[e(749)]=t,a[e(384)][e(606)][e(749)]=t,!categoryParentFlag&&(a[e(785)][0][e(699)][e(749)]=t),categoriesChart[e(779)](a)}catch(t){console[e(755)](t)}},cpRemind(){var e=_0x53f3;document[e(616)](e(655),(function(t){var a=e;window[a(722)]()[a(418)]()[a(535)]()[a(565)]>0&&btf[a(594)](a(592))}))},closeAboutAplayer(){var e=_0x53f3;if(!document[e(412)](e(413)))try{about_page_ap[e(762)](),about_page_ap=void 0,about_page_weekSong=void 0,about_page_now=void 0,about_page_weekSong_today=void 0}catch(e){}},grey(){var e=_0x53f3,t=new Date,a=t[e(587)]()+1,n=t[e(766)](),o=[e(742),e(778),e(718),e(552),e(711),e(464),e(638),e(723),e(451)];for(var c of o){var s=c.split(".");if(a==s[0]&&n==s[1]){var r=e(790);$(e(727))[e(450)]({filter:e(546),filter:e(575),filter:r,"-webkit-filter":r,"-moz-filter":r,"-ms-filter":r,"-o-filter":r});break}}},console(){var e=_0x53f3,t=new Date,a=console[e(755)];queueMicrotask((function(){var n=e;var o=new Date(""+atob(n(752))+atob(n(553))),c=new Date(atob(n(709))+":"+atob(n(664))),s=new Date(""+atob(n(649))+atob(n(478))),r=new Date(atob(n(598))+"/"+atob(n(530))+atob(n(648)));new Date(n(763));t[n(704)](t[n(620)]()+250);o=[n(650)," "+window[n(459)].origin+" ","\n\n",n(436),Math[n(622)](Math[n(485)](t-o)/1e3/60/60/24+(t-o<0?1:0))[n(418)]().padEnd(5," "),"天",n(400),Math[n(622)](Math.abs(t-c)/1e3/60/60/24+(t-c<0?1:0))[n(418)]()[n(609)](5," "),"天",n(817),Math[n(622)](Math[n(485)](t-s)/1e3/60/60/24+(t-s<0?1:0))[n(418)]().padEnd(5," "),"天",n(540),Math[n(622)](Math[n(485)](t-r)/1e3/60/60/24+(t-r<0?1:0))[n(418)]()[n(609)](5," "),"天"];setTimeout(function(){a[_0x53f3(602)](console,arguments)}[n(499)](console,n(591)[n(406)](o[0],"%c").concat(o[1],"%c")[n(406)](o[2],"%c").concat(o[3],n(435))[n(406)](o[4],n(435)).concat(o[5],"\n")[n(406)](o[6],n(435))[n(406)](o[7],n(435))[n(406)](o[8],"\n")[n(406)](o[9],n(435))[n(406)](o[10],n(435))[n(406)](o[11],"\n").concat(o[12],n(435))[n(406)](o[13],"%c ")[n(406)](o[14],"\n")[n(406)]("\n"),"color: #fadfa3; background: #030307; padding:5px 0;",n(684),n(465),"","color:#030307","",n(473),"",n(473),"",n(473),""))}))},cardRefreshTimes(){var e=_0x53f3;const t=(new Date).getFullYear(),a=(n=t)%4==0&&n%100!=0||n%400==0?366:365;var n,o=new Date,c=new Date((new Date)[e(419)]()+e(409)),s=document[e(412)]("card-widget-schedule");s&&(asideDay=(o-c)/1e3/60/60/24,s[e(391)](e(561)).value=asideDay,s.querySelector(e(561)).max=a,yearPercentage=(asideDay/a*100)[e(443)](2),displayYearPercentage="100.00"===yearPercentage?"100%":yearPercentage+"%",s[e(391)](e(682))[e(810)]=displayYearPercentage,s[e(391)](e(544))[e(810)]=(Math.floor(10*(a-asideDay))/10)[e(443)](1)+e(434)+a,currentDateMonth=new Date,currentDateMonth[e(746)](1),currentDateMonth.setHours(0,0,0,0),currentMonthTimestamp=currentDateMonth.getTime(),asideMonthDay=(o-currentMonthTimestamp)/1e3/60/60/24,currentDateMonthTotal=new Date,currentMonth=currentDateMonthTotal[e(587)](),currentDateMonthTotal[e(824)](currentMonth+1,1),currentDateMonthTotal[e(746)](0),asideMonthDays=currentDateMonthTotal[e(766)](),s[e(391)](e(577)).value=asideMonthDay,s.querySelector(e(577)).max=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*100).toFixed(2),displayMonthPercentage=monthPercentage===e(605)?e(735):monthPercentage+"%",s[e(391)]("#p_span_month")[e(810)]=displayMonthPercentage,s[e(391)](e(760))[e(810)]=(Math[e(622)](10*(asideMonthDays-asideMonthDay))/10)[e(443)](1)+e(434)+asideMonthDays[e(418)]()[e(509)](3,"0"),currentDateWeek=new Date,currentDayOfWeek=currentDateWeek.getDay(),currentWeekTimestamp=currentDateWeek[e(469)](0,0,0,0),firstDayOfWeekTimestamp=currentWeekTimestamp-24*(0===currentDayOfWeek?6:currentDayOfWeek-1)*60*60*1e3,pastWeekTimestamp=o-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/1e3/60/60/24,s[e(391)](e(511))[e(571)]=asideWeekDay,weekPercentage=(asideWeekDay/7*100)[e(443)](2),displayWeekPercentage=weekPercentage===e(605)?e(735):weekPercentage+"%",s[e(391)](e(558))[e(810)]=displayWeekPercentage,s[e(391)](".schedule-r2 .schedule-d1 .aside-span2")[e(810)]=(Math[e(622)](10*(7-asideWeekDay))/10).toFixed(1)+e(758),currentTimeStamp=(new Date).getTime(),startOfDay=new Date,startOfDay.setHours(0,0,0,0),startOfDayTimeStamp=startOfDay[e(620)](),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/1e3/60/60/24,asideTodayHour=timeDifferenceToday/36e5,s[e(391)](e(408)).value=asideTodayHour,dayPercentage=(100*asideToday)[e(443)](2),displayDayPercentage=dayPercentage===e(605)?e(735):dayPercentage+"%",s.querySelector(e(769)).innerHTML=displayDayPercentage,s[e(391)](e(531)).innerHTML=(Math[e(622)](10*(24-asideTodayHour))/10)[e(443)](1)+" / 024",month=o.getMonth()+1,day=o[e(766)](),month=month>9?month:"0"+month,day=day>9?day:"0"+day,week={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},document[e(391)](e(539))[e(810)]=o.getFullYear()+"-"+month+"-"+day+" "+week[o.getDay()])},PressEscapeKey(e){var t=_0x53f3;27===e[t(623)]&&(document.getElementById(t(515))&&mycpen1js[t(580)](),document[t(412)]("cf-overlay")&&document.getElementById("cf-overshow")&&(document.querySelector(".cf-overshow-close")||document.querySelector(t(696)))&&(document[t(412)]("mycpen1-fcircle-page-tag")&&closeShow(),document[t(412)]("mycpen1-link-page-tag")&&mycpen1js[t(536)]()))},linkPageOpenMeShow(e){var t=_0x53f3,a={apipublicurl:t(724)},n="ok",o=t(687),c=document[t(412)](t(491));c&&(document[t(412)]("cf-overlay")||c[t(526)]("afterend",o)),e[t(541)]();var s,r=e[t(631)][t(475)].link[t(397)](/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,"$1:$2$3");s=a[t(756)]+t(532)+r,"ok"==n&&(n="no",mycpen1js.linkPageFetchShow(s))},linkPageOpenMeShowV2(e){var t=_0x53f3,a={apipublicurl:t(724)},n="ok",o=document[t(412)](t(491));o&&(document.getElementById(t(641))||o[t(526)](t(744),'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e[t(541)]();var c,s=encodeURIComponent(e.currentTarget.dataset[t(668)]);c=a[t(756)]+t(621)+s,"ok"==n&&(n="no",mycpen1js[t(458)](c))},linkPageCloseShow(){var e=_0x53f3;document[e(412)](e(641))[e(417)]-="cf-show-now",document[e(412)](e(518)).className-=e(734),setTimeout((function(){var t=e,a=document[t(767)](t(467)),n=document.querySelectorAll(t(773));a.forEach((function(e){e.remove()}));for(var o=1;o<n.length;o++)n[o][t(781)]()}),100)},linkPageFetchShow(_0x2482c2){var _0x1e4a6b=_0x53f3,_0x52ab0e=_0x1e4a6b(583);fetch(_0x2482c2).then((e=>e[_0x1e4a6b(815)]()))[_0x1e4a6b(449)]((_0x42d339=>{var _0x223a60=_0x1e4a6b;noClick="ok";var _0x1b86dc=_0x42d339.statistical_data,_0x165f27=eval(_0x42d339[_0x223a60(431)]);0!==_0x1b86dc[_0x223a60(564)]?(mycpen1js.linkPageLoadFcircleShow(_0x1b86dc,_0x165f27),document[_0x223a60(412)](_0x223a60(641))[_0x223a60(417)]=_0x223a60(734),document[_0x223a60(412)](_0x223a60(518))[_0x223a60(526)](_0x223a60(589),_0x52ab0e)):btf[_0x223a60(594)]("未获取到订阅内容")}))[_0x1e4a6b(612)]((e=>{btf.snackbarShow("未获取到文章卡片")}))},linkPageLoadFcircleShow(e,t){for(var a=_0x53f3,n=a(504)+e[a(697)]+a(487)+e[a(625)]+'">'+e.name+a(656),o=0;o<e[a(564)];o++){var c=t[o];let e="";Date[a(802)]()-new Date(c[a(416)]+a(429))[a(620)]()<=1728e5&&(e=a(500)),n+=a(634)+c[a(625)]+'" target="_blank" rel="noopener nofollow" data-title="'+c.title+'">'+c[a(610)]+a(774)+e+">"+c.created+a(721)}n+=a(753),document[a(412)]("cf-overshow").insertAdjacentHTML("beforeend",n),document[a(412)](a(518)).className=a(734)},linkPageRssAliveCheck(){var e=_0x53f3;apiurl="https://hexo-circle.cpen.top/",rssAliveCheckUrl=apiurl+"friendstatus",fetch(rssAliveCheckUrl)[e(449)]((e=>e.json()))[e(449)]((t=>{var a=e,n=t[a(474)],o=t.not_lost_friends,c=t[a(472)];let s=[];for(const e in n){let t=n[e];t=t[a(397)](/^https?:\/\//,""),t=t.replace(/\/$/,""),s[a(673)](t)}let r=[];for(const e in o){let t=o[e];t=t[a(397)](/^https?:\/\//,""),t=t[a(397)](/\/$/,""),r[a(673)](t)}document.querySelectorAll(a(661))[a(713)]((e=>{var t=a;if(e){let a=e[t(477)](t(732))[t(397)](/^https?:\/\//,"");a=a.replace(/\/$/,""),c>0?r[t(662)](a)?e[t(562)][t(512)]("flink-mycpen1-rss-not-lost-friends"):s[t(662)](a)?e[t(562)][t(512)](t(803)):e[t(562)][t(512)]("flink-mycpen1-rss-unknown-friends"):0===c&&e[t(562)][t(512)](t(803))}}))}))},NzcheckLink:async e=>{var t=_0x53f3;const a=document.querySelectorAll(e);if(a){let e=new RegExp(/^[#].*/);for(let c=0;c<a[t(565)];c++){const s=a[c];var n=s[t(502)]("data-fancybox"),o=s.classList.contains(t(534));if(!n&&!o){let a=s.getAttribute(t(789)),n=s[t(477)](t(559)),o=s[t(477)]("rel");e[t(560)](a)||o===t(804)||o===t(692)||"category"===o||o===t(568)||"javascript:void(0);"===a||(await mycpen1js[t(695)](a)||n?!await mycpen1js.NzcheckLocalSite(a)&&"goDown"===n&&s[t(801)](t(789),t(393)+btoa(a)+t(657)):s[t(801)](t(789),t(393)+btoa(a)))}s[t(562)][t(512)](t(534))}}},NzcheckLocalSite:async e=>{var t=_0x53f3;try{const a=[t(601),"cpen.top",t(636)];let n=!1;for(let o=0;o<a[t(565)];o++){const t=a[o];if(e.includes(t)){n=!0;break}}return n}catch(e){return!0}},cookieConsent(){var e=_0x53f3;window[e(616)]("load",(()=>{var t=e;window[t(645)].initialise({type:t(405),theme:t(387),static:!1,position:t(572),content:{message:t(624),dismiss:"接受",allow:"接受",deny:"拒绝",link:!1},palette:{popup:{background:"#edeff5",text:t(432)},button:{background:"#4b81e8"}}})}))}};function whenDOMReadyMycpen1JS(){var e=_0x13697a;mycpen1js[e(754)](),mycpen1js[e(445)](),mycpen1js.removeBodyPaceClass(),mycpen1js[e(448)](),mycpen1js.categoryPageActive(),mycpen1js[e(524)](),mycpen1js[e(447)](),document[e(412)]("mycpen1-essay-page-tag")&&(mycpen1js[e(667)](),mycpen1js[e(410)](),window[e(716)]=()=>{var t=e;document.getElementById(t(392))&&(mycpen1js[t(410)](),setTimeout((()=>{mycpen1js[t(410)]()}),300))}),document[e(412)]("darkmode")[e(616)](e(640),(function(){setTimeout(mycpen1js[e(523)],100)})),document.getElementById(e(586))[e(616)]("click",(function(){setTimeout(mycpen1js[e(523)],100)})),document.getElementById(e(551)).addEventListener(e(640),(function(){setTimeout(mycpen1js[e(523)],100)})),document.getElementById(e(737)).addEventListener(e(640),(function(){setTimeout(mycpen1js.switchPostChart,100)})),mycpen1js.cpRemind(),mycpen1js[e(764)](),document[e(412)](e(527))&&(mycpen1js[e(488)](),setInterval((()=>{mycpen1js[e(488)]()}),1e3)),document[e(412)](e(693))&&mycpen1js[e(783)](),document[e(412)](e(491))&&(mycpen1js.NzcheckLink(e(476)),mycpen1js[e(811)]("#article-container .flink .flink-list > .flink-list-item.失联 > a")),document.getElementById(e(413))&&mycpen1js[e(811)]("#article-container #mycpen1-about-page-tag-sponsor-part a"),document[e(412)](e(604))&&setInterval((()=>{var t=e;if(document[t(391)](t(520))){mycpen1js[t(811)](t(493));document[t(767)](".tk-avatar.tk-clickable:not(.already-clear-clickEvent)")[t(713)]((e=>{var a=t;e.classList[a(512)](a(678));const n=document[a(425)]("a");for(Array[a(517)](e[a(506)])[a(713)]((e=>{var t=a;n[t(801)](e.name,e[t(571)])}));e[a(456)];)n[a(537)](e[a(456)]);e[a(800)][a(490)](n,e);const o=n[a(422)][a(629)][a(629)][a(629)][a(477)](a(789));n[a(801)](a(789),o),n.setAttribute(a(700),"_blank"),n[a(801)](a(453),a(736))}))}}),1e3)}function _0x1088(){var e=["axisLine","有协调能力的","getTime","postv2?name=","floor","keyCode","我们使用 cookie 来确保在我们的网站上为您提供最佳体验。","link","优雅的","善良的","Snackbar","firstElementChild","yAxis","currentTarget","onmouseover","page/",'\n <p><a class="cf-article-title" href="',"有魅力的","mycpen.cn","hide-aside","09.30","aside-status","click","cf-overlay","有学习能力的","Happy New Year!","温暖的","cookieconsent","donotreply@mycpen.cn","saveData","OjAw","MTAvMjIvMjA="," MYCPEN BLOG ","link_list","#inpName","getElementsByTagName","max","copy",'</a>\n </div>\n <div class="cf-overshow-content">\n ',"&type=goDown","猕猴桃","axisLabel","豁达的","#article-container .flink#mycpen1-link-page-tag-2 .flink-list>.flink-list-item a .flink-item-icon","includes","contains","MDA6MDA=","datetime","#newYear .newYear-time","essayChangeTimeInEssayByMycpen","name","善解人意的","有责任心的","温柔的","有耐性的","push","toPage","#console","#consoleHideAside","type","already-clear-clickEvent","night_to_day","clientWidth","theme","#p_span_year","lineStyle","background: #fadfa3; padding:5px 0;","px; left:","toPageButton",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ',"px;","率直的","朴素的","耐心的","next","mycpen1-link-page-tag-2","pace-done","NzcheckLocalSite",".cf-overshow","avatar","#comment_email","label","target","getItem","102enNKJp","input[name='author']","setTime","input[name='comname']","scrollTop",".page-number","footer","MTAvMjIvMTk5OCAwMA==","/json/link.json","09.09","可爱的","forEach","幽默的",'<img src="',"onresize","PressEscapeKey","07.07","object","有创新能力的","</span></p>\n ","getSelection","11.30","https://hexo-circle.cpen.top/","有组织能力的","善于沟通的","html","有分析能力的","405WVaFtt","scrollHeight","el-textarea__inner","data-link","display:flex; height:","cf-show-now","100%","noopener external nofollow noreferrer","darkmode_sidebarSwitch","function","hour","有眼光的","splice","04.04","具有批判性思维的","afterend","顽强的","setDate","标题:","comment-tips","color","day_to_night","1171379OTAEuN","MDgvMjgvMjAyMiA=","</div></div>","changeNavPageNameTitle","log","apipublicurl","split"," / 007","contextmenu",".schedule-r1 .schedule-d1 .aside-span2",'<span class="happyNewYear">新年快乐</span>',"pause","05/23/2025 00:00:00","closeAboutAplayer","input[name='nick']","getDate","querySelectorAll","onscroll","#p_span_day","show","有想象力的","focus","#cf-overshow > .cf-overshow-close","</a><span ","observe","light","好棒!","05.12","setOption","data","remove","喜欢学习的","linkPageRssAliveCheck","#author","series","toPageText","3UnXXVC","#waterfall","href","grayscale(100%)","35855280azgiZm","childList","documentElement","有担当的","time","just","2870566WcPpNP","long","556899jArGpd","parentNode","setAttribute","now","flink-mycpen1-rss-lost-friends","prev","haveValue"," | Mycpen","xAxis","纯真的","removeClass","innerHTML","NzcheckLink","initEvent","#email","pageYOffset","json","addedNodes","距 2028-00-00 计时","links","36820mpadRK","vertical","markLine","offsetTop","loadUrl","setMonth","textContent","有正义感的","px; top:","敏捷的","pathname","成熟的","waterfall","独立的","scrollTo","有同情心的","敬业的","legend","#nav-totop","dark","edgeless","getElementsByClassName","有趣的","date_suffix","querySelector","mycpen1-essay-page-tag","/redirect.html?url=","pjax:complete","HTMLEvents","有智慧的","replace","body","有创造力的","距 1998-00-00 计时","#newYear .today","style","金针菇","autoplay","info","concat","西红柿","#pBar_day","-01-01 00:00:00","essayReflashEssayWaterFall","善于表达的","getElementById","mycpen1-about-page-tag","机智的","尊重他人的","created","className","toString","getFullYear","loadData","Mycpen - Personal Blog","nextElementSibling","#inpEmail","有激情的","createElement","#bber time","稳重的","208856RqNGDn"," 00:00:00","务实的","article_data","#838391","input[name='commail']"," / ","%c ","距 2022-08-28 上线","#bber","round","富有想象力的",".share","inline","essayReplaceAll","toFixed","美丽的","getFooterRandomFlink","迷人的","owoBigfunc","tagPageActive","then","css","12.13","ceil","rel","setSelectionRange","#name","firstChild","createEvent","linkPageFetchShow","location","scrollY","min","offsetX",'<i class="fa-solid fa-clock"></i> <span>距离</span> ',"09.18","color:#fadfa3","tags-chart","#cf-overshow > :not(.cf-overshow-close)","真诚的","setHours","start","深刻的","total_friend_num","color:#030307","lost_friends","dataset","#article-container .flink .flink-list > .flink-list-item.单向 > a","getAttribute","MjggMDA6MDA6MDA=","change","toggle","2716DzCqDQ","开朗的","朝气蓬勃的","onmouseout","abs","有爱心的",'" alt="avatar" onerror="this.src=\'https://cdn.cbd.int/mycpen-blog@0.0.0-wlbxxddnkb/img/flink404.svg\'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="',"cardRefreshTimes","11720FUsczs","replaceChild","mycpen1-link-page-tag","有艺术细胞的",".tk-comments-container a:not(.already-redirect-link)","select","page-name","removeaAlayerFixedLrc","守信的","有执行能力的","bind",'style="color: var(--mycpen1-main); opacity: 1;"',"_blank","hasAttribute","tagName",'\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="',"innerText","attributes","children","返回顶部","padStart"," <span>年</span>","#pBar_week","add","setItem","stringify","console","essayDiffDate","from","cf-overshow",".page .layout #tag #tag-page-tags",".tk-comments-container","undefined","rgba(255,255,255,0.7)","switchPostChart","listenToPageInputPress","mycpen1-tags-page-cloudTags-","insertAdjacentHTML","card-widget-schedule","random","有团队精神的","MjIvMjA1OCAwMDowMA==",".schedule-r3 .schedule-d1 .aside-span2","post?link=",".essay_bar_swiper_container","already-redirect-link","trim","linkPageCloseShow","appendChild","OwO-body","#aside-content .card-widget#card-widget-schedule .item-content .schedule-today","距 2058-00-00 计时","preventDefault","有责任感的","#newYear .title",".schedule-r0 .schedule-d1 .aside-span2","#newYear","gray !important;","dispatchEvent","origin","有专业素养的","bbtalk","darkmode_consoleSwitch","08.14","MDA6MDA6MDA=","西兰花","toLocaleDateString","638edpFCN","有冒险精神的","#p_span_week","data-download","test","#pBar_year","classList","clientHeight","article_num","length","input","#4C4948","tag","含蓄的","data-theme","value","bottom-right",".aplayer-fixed .aplayer-icon.aplayer-icon-lrc","join","progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)",'<span class="unit">天</span></span>',"#pBar_month","loadFBComment","src","hideConsole","大方的","#ds-dialog-email",'\n <div class="cf-overshow-close" onclick="mycpen1js.linkPageCloseShow()"></div>\n ',"keydown","IMG","darkmode_navswitch","getMonth","input[name='email']","afterbegin","干净的","\n%c","复制成功","addClass","snackbarShow","善于领导的","勇敢的","day","MTA=","px; width:","有远见的","localhost:4000","apply","onmouseleave","post-comment","100.00","textStyle","nameTextStyle","#post-comment","padEnd","title","display","catch","offsetHeight","randomLink","慷慨的","addEventListener","set"];return(_0x1088=function(){return e})()}function _0x53f3(e,t){var a=_0x1088();return(_0x53f3=function(e,t){return a[e-=378]})(e,t)}mycpen1js.console(),document.removeEventListener(_0x13697a(584),mycpen1js[_0x13697a(717)]),document[_0x13697a(616)]("keydown",mycpen1js[_0x13697a(717)]),window[_0x13697a(768)]=mycpen1js.getNavRightPagePercent,mycpen1js[_0x13697a(496)](),whenDOMReadyMycpen1JS(),document[_0x13697a(616)](_0x13697a(394),whenDOMReadyMycpen1JS);
1
+ var _0x594293=_0x78ca;!function(e,t){for(var a=_0x78ca,n=_0x49f2();;)try{if(596531===-parseInt(a(820))/1+-parseInt(a(465))/2*(-parseInt(a(685))/3)+parseInt(a(727))/4*(-parseInt(a(852))/5)+-parseInt(a(668))/6*(-parseInt(a(867))/7)+-parseInt(a(484))/8+-parseInt(a(509))/9*(-parseInt(a(760))/10)+parseInt(a(590))/11*(parseInt(a(697))/12))break;n.push(n.shift())}catch(e){n.push(n.shift())}}();var mycpen1js={changeNavPageNameTitle(){var e=_0x78ca;document.title==e(582)?document[e(589)]("page-name").innerText=document[e(833)]:document[e(589)](e(605))[e(856)]=document[e(833)][e(461)](e(682))[0]},getNavRightPagePercent(){var e=_0x78ca;let t=document[e(845)][e(520)]||window[e(664)],a=Math[e(849)](document.body[e(565)],document[e(845)][e(565)],document[e(718)][e(716)],document.documentElement[e(716)],document[e(718)].clientHeight,document[e(845)].clientHeight)-document[e(845)].clientHeight,n=Math[e(666)](t/a*100),o=document.querySelector("#percent");n<=99||(n=99),o[e(795)]=n,r=window[e(529)]+document.documentElement[e(731)],p=document[e(589)](e(498))||document.getElementById(e(677)),p[e(729)]+p[e(716)]/2<r||90<n?(document[e(601)](e(603))[e(513)][e(637)](e(645)),o[e(795)]=e(851)):(document.querySelector("#nav-totop")[e(513)].remove("long"),o.innerHTML=n)},share(){var e=_0x78ca;let t=window[e(746)].origin+window[e(746)][e(569)];new ClipboardJS(e(648),{text:function(){var a=e;return a(559)+document[a(833)]+a(572)+t}}),btf[e(674)](e(753))},getFooterRandomFlink(){var e={saveData:(e,t)=>{var a=_0x78ca;localStorage.setItem(e,JSON[a(647)]({time:Date[a(743)](),data:t}))},loadData:(e,t)=>{var a=_0x78ca;let n=JSON.parse(localStorage.getItem(e));if(n){let e=Date.now()-n[a(527)];if(e<60*t*1e3&&e>-1)return n[a(848)]}return 0},randomLink:()=>{var t=_0x78ca;let a=e.loadData(t(557),30);if(a){let e=document[t(471)](t(726));if(!e[t(477)])return;for(let n=0;n<3;n++){let o;do{o=parseInt(Math[t(781)]()*a[t(477)])}while("失联"===a[o][t(438)]);e[n][t(856)]=a[o].name,e[n][t(533)]=a[o][t(640)],e[n][t(833)]=a[o][t(555)],e[n].target="_blank",e[n][t(871)]=t(564),a[t(756)](o,1)}}else fetch(t(765)).then((e=>e[t(638)]())).then((a=>{var n=t;e[n(568)](n(557),a[n(606)]),e[n(576)]()}))}};e[_0x78ca(576)]()},newYearCountdownCard(){(()=>{var e=_0x78ca;if(clearTimeout(null),!document[e(601)]("#newYear"))return;let t=new Date((new Date)[e(594)]()+1+"-01-01 00:00:00").getTime()/1e3,a={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"};!function(){var n=e;let o=new Date,c=o[n(829)]()+1,s=o[n(654)]();c=c>9?c:"0"+c,s=s>9?s:"0"+s,document[n(601)]("#newYear .today")[n(795)]=o[n(594)]()+"-"+c+"-"+s+" "+a[o[n(850)]()];let r=t-Math.round(o[n(442)]()/1e3);r<0?(document[n(601)](n(445))[n(795)]=n(483),document[n(601)](n(858))[n(795)]=n(764)):(document[n(601)](n(445))[n(795)]='<i class="fa-solid fa-clock"></i> <span>距离</span> '+((new Date)[n(594)]()+1)+n(690),r>86400?document[n(601)](n(858))[n(795)]=n(651)+Math[n(649)](r/86400)+n(545):document[n(601)](n(858)).innerHTML=n(651)+Math.ceil(r/86400)+n(545))}()})()},removeBodyPaceClass:function(){var e=_0x78ca;$(e(718)).removeClass(),$(e(718))[e(863)](e(585))},toPage:function(){var e=_0x78ca,t=document[e(471)](e(776)),a=parseInt(t[t.length-1][e(795)]),n=document[e(589)]("toPageText"),o=parseInt(n.value);if(!isNaN(o)&&o>0&&"0"!==(""+o)[0]&&o<=a){var c,s=window.location[e(533)].replace(/\/page\/\d+\/$/,"/");c=1===o?s:s+(s[e(476)]("/")?"":"/")+e(450)+o+"/",document[e(589)](e(464))[e(533)]=c}},listenToPageInputPress(){var e=_0x78ca,t=document[e(589)](e(504)),a=document.getElementById(e(464));t&&(t[e(840)](e(725),(t=>{var n=e;13===t[n(783)]&&(mycpen1js[n(552)](),pjax[n(515)](a[n(533)]))})),t.addEventListener(e(792),(function(){var n=e;""===t.value||"0"===t[n(523)]?a[n(513)][n(573)](n(433)):a.classList[n(637)](n(433));var o=document[n(471)](n(776)),c=+o[o.length-1][n(795)];+document[n(589)](n(504))[n(523)]>c&&(t[n(523)]=c)})))},showConsole:function(){var e=_0x78ca;document[e(601)](e(519))[e(513)][e(637)]("show"),mycpen1js.initConsoleState()},hideConsole:function(){var e=_0x78ca;document[e(601)](e(519)).classList[e(573)](e(479))},hideAsideBtn:()=>{var e=_0x78ca;const t=document[e(845)][e(513)];t[e(755)](e(797))?saveToLocal.set(e(808),e(479),2):saveToLocal[e(553)]("aside-status",e(566),2),t[e(544)](e(797)),t.contains("hide-aside")?document.querySelector(e(717))[e(513)][e(637)]("on"):document[e(601)](e(717))[e(513)][e(573)]("on")},initConsoleState:function(){var e=_0x78ca;document.documentElement.classList[e(755)](e(797))?document[e(601)](e(717))[e(513)][e(637)]("on"):document[e(601)]("#consoleHideAside")[e(513)][e(573)]("on")},tagPageActive:function(){var e=_0x78ca,t=window.location.pathname;if(/\/tags\/.*?\//[e(581)](t=decodeURIComponent(t))){var a=t[e(461)]("/")[2];if(document.querySelector(e(624))){$("a")[e(441)](e(694));var n=document[e(589)](e(505)+a);n&&n[e(513)][e(637)](e(694))}}},categoryPageActive:function(){var e=_0x78ca,t=window[e(746)].pathname;if(/\/categories\/.*?\//[e(581)](t=decodeURIComponent(t))){var a=t[e(461)]("/")[2];if(document[e(601)](e(480))){$("a")[e(441)](e(694));var n=document.getElementById(e(485)+a);n&&n[e(513)].add(e(694))}}},addRandomCommentInfo:function(){var e=_0x78ca;const t=["美丽的",e(632),e(548),"勇敢的",e(579),e(800),e(653),e(491),"开朗的",e(836),e(721),e(492),"幽默的",e(524),e(857),e(691),e(869),e(449),e(468),e(448),e(497),"细心的",e(748),e(722),e(713),e(458),e(489),"开放的",e(822),e(832),"自信的",e(775),e(698),"深刻的",e(835),e(793),e(556),"大方的","顽强的","迷人的",e(801),e(839),e(715),e(747),"独立的","好奇的",e(501),e(810),e(439),e(526),e(750),e(669),"有责任心的",e(859),"有远见的",e(733),e(455),"有冒险精神的","有爱心的",e(440),e(736),e(686),e(502),e(818),e(817),e(740),e(830),"有激情的",e(584),e(834),e(507),e(771),e(855),e(728),e(805),e(488),e(596),"有协调能力的",e(580),e(667),e(757),e(844),e(447),e(612),"有创新能力的",e(734),"有商业头脑的"],a=["萝卜","白菜","芹菜","生菜","青椒","辣椒","茄子","豆角","黄瓜",e(508),"洋葱","大蒜","土豆","南瓜","豆腐","韭菜","花菜",e(679),"蘑菇",e(521),"苹果","香蕉","橙子","柠檬",e(693),"草莓","葡萄","桃子","杏子","李子","石榴","西瓜",e(806),"蜜瓜","樱桃","蓝莓","柿子","橄榄","柚子",e(870)],n=""+t[Math[e(758)](Math[e(781)]()*t[e(477)])]+a[Math.floor(Math[e(781)]()*a[e(477)])];!function(){for(var t=e,a=["#author",t(494),"#inpName","input[name='author']",t(634),t(516),t(824),"#comment_author"],o=[t(436),"#email",t(530),"#inpEmail",t(742),t(695),t(574),"#comment_email"],c=0;c<a[t(477)];c++){var s=document[t(601)](a[c]);if(null!=s){s[t(523)]=n,s[t(554)](new Event("input")),s[t(554)](new Event("change"));break}}for(var r=0;r<o[t(477)];r++){var i=document[t(601)](o[r]);if(null!=i){i[t(523)]=t(543),i[t(554)](new Event(t(792))),i.dispatchEvent(new Event(t(865)));break}}}();var o=document[e(454)](e(837))[0];o[e(681)](),o[e(642)](-1,-1)},owoBigfunc(){var e=_0x78ca;document[e(589)]("post-comment")&&function(){var t=e;let a=1,n="",o=document[t(500)]("div"),c=document[t(601)](t(718));o.id=t(784),c[t(814)](o),new MutationObserver((e=>{var s=t;for(let t=0;t<e.length;t++){let r=e[t][s(673)],i="";2==r[s(477)]&&r[1][s(706)]==s(474)&&(i=r[1],document[s(718)].clientWidth<=768&&i[s(840)](s(614),(e=>e[s(459)]())),i.onmouseover=e=>{var t=s;a&&"IMG"==e[t(751)].tagName&&(a=0,n=setTimeout((()=>{var a=t;let n=3*e[a(751)][a(731)],s=3*e.target[a(807)],r=e.x-e[a(487)]-(s-e.target[a(807)])/2,i=e.y-e[a(799)];r+s>c[a(807)]&&(r-=r+s-c.clientWidth+10),r<0&&(r=10),o.style[a(493)]=a(549)+n+a(663)+s+a(831)+r+a(803)+i+a(563),o[a(795)]='<img src="'+e[a(751)][a(825)]+'">'}),300))},i[s(540)]=()=>{o[s(788)].display="none",a=1,clearTimeout(n)})}}))[t(625)](document[t(589)](t(498)),{subtree:!0,childList:!0})}()},removeaAlayerFixedLrc(){var e=_0x78ca;function t(){var e=_0x78ca;const t=document[e(601)](e(787));t&&(a[e(453)](),setTimeout((()=>{t[e(460)]()}),1))}const a=new MutationObserver(((e,a)=>{for(let a of e)"childList"===a.type&&t()}));a[e(625)](document,{childList:!0,subtree:!0})},switchDarkMode(){var e=_0x78ca;"light"===("dark"===document[e(845)][e(786)](e(709))?e(827):e(853))?(activateDarkMode(),saveToLocal[e(553)](e(692),e(827),2),void 0!==GLOBAL_CONFIG[e(672)]&&btf[e(674)](GLOBAL_CONFIG[e(672)][e(522)])):(activateLightMode(),saveToLocal[e(553)](e(692),e(853),2),void 0!==GLOBAL_CONFIG[e(672)]&&btf[e(674)](GLOBAL_CONFIG[e(672)][e(847)])),typeof utterancesTheme===e(525)&&utterancesTheme(),typeof FB===e(595)&&window[e(517)](),window.DISQUS&&document[e(589)](e(702)).children[e(477)]&&setTimeout((()=>window[e(532)]()),200)},essayUnknownPart(){},essayReplaceAll(e,t,a){var n=_0x78ca;return e[n(461)](t)[n(796)](a)},essayDiffDate:function(e,t=!1){var a=_0x78ca;const n=new Date,o=new Date(e),c=n[a(442)]()-o[a(442)](),s=36e5,r=864e5;let i;if(t){const e=c/r,t=c/s,n=c/6e4;i=c/2592e6>=1?o[a(828)]()[a(643)](/\//g,"-"):e>=1?parseInt(e)+" "+GLOBAL_CONFIG.date_suffix[a(687)]:t>=1?parseInt(t)+" "+GLOBAL_CONFIG[a(670)][a(688)]:n>=1?parseInt(n)+" "+GLOBAL_CONFIG.date_suffix[a(821)]:GLOBAL_CONFIG[a(670)][a(860)]}else i=parseInt(c/r);return i},essayChangeTimeInEssay:function(){var e=_0x78ca;document[e(601)]("#bber")&&document[e(471)](e(854)).forEach((function(t){var a=e,n=t,o=n[a(786)](a(719));n[a(856)]=mycpen1js.essayDiffDate(o,!0),n[a(788)][a(761)]=a(675)}))},essayReflashEssayWaterFall:function(){var e=_0x78ca;document.querySelector(e(528))&&setTimeout((function(){var t=e;waterfall(t(528)),document[t(589)](t(611))[t(513)].add("show")}),500)},essayCommentText:function(e){var t=_0x78ca;var a=document[t(601)](t(873))[t(729)];window[t(770)](0,a-80),"undefined"!=e&&e!=t(779)||(e="好棒!"),function t(){setTimeout((()=>{var a=_0x78ca,n=document.getElementsByClassName(a(837))[0];n||t();let o=document.createEvent(a(802));o[a(536)](a(792),!0,!0);let c=mycpen1js[a(478)](e,"\n",a(680));n[a(523)]="> "+c+"\n\n",n[a(554)](o),n.focus(),n[a(642)](-1,-1),document[a(589)](a(665))&&document[a(589)](a(665))[a(513)][a(637)]("show")}),100)}()},essayInitIndexEssay:function(){setTimeout((()=>{var e=_0x78ca;let t=new Swiper(e(707),{passiveListeners:!0,direction:"vertical",loop:!0,autoplay:{disableOnInteraction:!0,delay:3e3},mousewheel:!0}),a=document[e(589)](e(732));null!==a&&(a.onmouseenter=function(){var a=e;t[a(714)][a(811)]()},a.onmouseleave=function(){t.autoplay.start()})}),100)},essayChangeTimeInEssayByMycpen:function(){for(var e=_0x78ca,t=document[e(562)](e(527)),a=0;a<t[e(477)];a++){var n,o=t[a][e(786)](e(719)),c=new Date(o),s=(new Date)[e(442)]()-c.getTime(),r=Math[e(758)](s/864e5);0===r?n="最近":1===r?n="昨天":2===r?n="前天":r<=7?n=r+"天前":c[e(594)]()!==(new Date)[e(594)]()?(Essaymonth=c[e(829)]()+1,EssayDay=c[e(654)](),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=c[e(594)]()+"-"+Essaymonth+"-"+EssayDay):(Essaymonth=c[e(829)]()+1,EssayDay=c[e(654)](),Essaymonth=Essaymonth>9?Essaymonth:"0"+Essaymonth,EssayDay=EssayDay>9?EssayDay:"0"+EssayDay,n=Essaymonth+"-"+EssayDay),t[a][e(587)]=n}},switchPostChart:function(){var e=_0x78ca;let t=document.documentElement[e(786)](e(709))===e(853)?e(872):e(684);if(document[e(589)](e(815))&&postsOption)try{let a=postsOption;a[e(833)][e(620)][e(570)]=t,a.xAxis[e(752)][e(570)]=t,a[e(816)][e(752)][e(570)]=t,a.xAxis[e(506)].color=t,a[e(816)][e(506)][e(570)]=t,a[e(451)].axisLine.lineStyle[e(570)]=t,a[e(816)][e(659)].lineStyle[e(570)]=t,a[e(437)][0][e(819)][e(848)][0].label[e(570)]=t,postsChart[e(774)](a)}catch(t){console[e(609)](t)}if(document.getElementById(e(462))&&tagsOption)try{let a=tagsOption;a[e(833)].textStyle[e(570)]=t,a.xAxis.nameTextStyle.color=t,a[e(816)][e(752)].color=t,a[e(451)].axisLabel[e(570)]=t,a[e(816)][e(506)][e(570)]=t,a[e(451)][e(659)].lineStyle[e(570)]=t,a[e(816)].axisLine.lineStyle[e(570)]=t,a[e(437)][0][e(819)].data[0][e(738)][e(570)]=t,tagsChart[e(774)](a)}catch(t){console[e(609)](t)}if(document.getElementById(e(583))&&categoriesOption)try{let a=categoriesOption;a[e(833)][e(620)][e(570)]=t,a[e(661)][e(620)][e(570)]=t,!categoryParentFlag&&(a.series[0][e(738)][e(570)]=t),categoriesChart[e(774)](a)}catch(t){console[e(609)](t)}},cpRemind(){var e=_0x78ca;document[e(840)]("copy",(function(t){var a=e;window.getSelection()[a(785)]()[a(724)]().length>0&&btf[a(674)]("复制成功")}))},closeAboutAplayer(){var e=_0x78ca;if(!document[e(589)]("mycpen1-about-page-tag"))try{about_page_ap[e(597)](),about_page_ap=void 0,about_page_weekSong=void 0,about_page_now=void 0,about_page_weekSong_today=void 0}catch(e){}},grey(){var e=_0x78ca,t=new Date,a=t[e(829)]()+1,n=t[e(654)](),o=[e(561),e(613),"07.07",e(623),"09.09","09.18",e(660),e(662),e(735)];for(var c of o){var s=c[e(461)](".");if(a==s[0]&&n==s[1]){var r=e(518);$(e(547))[e(804)]({filter:"gray !important;",filter:e(463),filter:r,"-webkit-filter":r,"-moz-filter":r,"-ms-filter":r,"-o-filter":r});break}}},console(){var e=_0x78ca,t=new Date,a=console[e(609)];queueMicrotask((function(){var n=e;var o=new Date(""+atob(n(435))+atob(n(607))),c=new Date(atob(n(710))+":"+atob(n(600))),s=new Date(""+atob(n(499))+atob(n(730))),r=new Date(atob(n(772))+"/"+atob(n(628))+atob("OjAw"));new Date(n(482));t[n(846)](t[n(442)]()+250);o=[n(644)," "+window[n(746)][n(633)]+" ","\n\n",n(512),Math[n(758)](Math[n(739)](t-o)/1e3/60/60/24+(t-o<0?1:0)).toString()[n(745)](5," "),"天",n(514),Math[n(758)](Math[n(739)](t-c)/1e3/60/60/24+(t-c<0?1:0)).toString()[n(745)](5," "),"天","距 2028-00-00 计时",Math[n(758)](Math[n(739)](t-s)/1e3/60/60/24+(t-s<0?1:0)).toString().padEnd(5," "),"天",n(636),Math[n(758)](Math.abs(t-r)/1e3/60/60/24+(t-r<0?1:0))[n(785)]().padEnd(5," "),"天"];setTimeout(function(){a[_0x78ca(610)](console,arguments)}[n(842)](console,n(490).concat(o[0],"%c")[n(599)](o[1],"%c")[n(599)](o[2],"%c")[n(599)](o[3],n(720)).concat(o[4],n(720))[n(599)](o[5],"\n").concat(o[6],n(720))[n(599)](o[7],n(720))[n(599)](o[8],"\n")[n(599)](o[9],n(720))[n(599)](o[10],n(720))[n(599)](o[11],"\n")[n(599)](o[12],"%c ")[n(599)](o[13],"%c ")[n(599)](o[14],"\n")[n(599)]("\n"),n(696),n(701),n(773),"","color:#030307","",n(604),"",n(604),"",n(604),""))}))},cardRefreshTimes(){var e=_0x78ca;const t=(new Date).getFullYear(),a=(n=t)%4==0&&n%100!=0||n%400==0?366:365;var n,o=new Date,c=new Date((new Date)[e(594)]()+"-01-01 00:00:00"),s=document.getElementById(e(510));s&&(asideDay=(o-c)/1e3/60/60/24,s[e(601)](e(705))[e(523)]=asideDay,s[e(601)](e(705))[e(849)]=a,yearPercentage=(asideDay/a*100)[e(766)](2),displayYearPercentage=yearPercentage===e(789)?"100%":yearPercentage+"%",s[e(601)]("#p_span_year").innerHTML=displayYearPercentage,s.querySelector(e(588))[e(795)]=(Math.floor(10*(a-asideDay))/10)[e(766)](1)+e(616)+a,currentDateMonth=new Date,currentDateMonth[e(575)](1),currentDateMonth[e(535)](0,0,0,0),currentMonthTimestamp=currentDateMonth[e(442)](),asideMonthDay=(o-currentMonthTimestamp)/1e3/60/60/24,currentDateMonthTotal=new Date,currentMonth=currentDateMonthTotal[e(829)](),currentDateMonthTotal[e(671)](currentMonth+1,1),currentDateMonthTotal[e(575)](0),asideMonthDays=currentDateMonthTotal.getDate(),s[e(601)](e(495)).value=asideMonthDay,s[e(601)](e(495))[e(849)]=asideMonthDays,monthPercentage=(asideMonthDay/asideMonthDays*100)[e(766)](2),displayMonthPercentage=monthPercentage===e(789)?e(630):monthPercentage+"%",s[e(601)](e(598)).innerHTML=displayMonthPercentage,s[e(601)](e(541))[e(795)]=(Math.floor(10*(asideMonthDays-asideMonthDay))/10)[e(766)](1)+" / "+asideMonthDays[e(785)]()[e(790)](3,"0"),currentDateWeek=new Date,currentDayOfWeek=currentDateWeek[e(850)](),currentWeekTimestamp=currentDateWeek[e(535)](0,0,0,0),firstDayOfWeekTimestamp=currentWeekTimestamp-24*(0===currentDayOfWeek?6:currentDayOfWeek-1)*60*60*1e3,pastWeekTimestamp=o-firstDayOfWeekTimestamp,asideWeekDay=pastWeekTimestamp/1e3/60/60/24,s[e(601)](e(646))[e(523)]=asideWeekDay,weekPercentage=(asideWeekDay/7*100).toFixed(2),displayWeekPercentage=weekPercentage===e(789)?e(630):weekPercentage+"%",s[e(601)](e(537))[e(795)]=displayWeekPercentage,s.querySelector(".schedule-r2 .schedule-d1 .aside-span2")[e(795)]=(Math[e(758)](10*(7-asideWeekDay))/10)[e(766)](1)+e(593),currentTimeStamp=(new Date).getTime(),startOfDay=new Date,startOfDay[e(535)](0,0,0,0),startOfDayTimeStamp=startOfDay[e(442)](),timeDifferenceToday=currentTimeStamp-startOfDayTimeStamp,asideToday=timeDifferenceToday/1e3/60/60/24,asideTodayHour=timeDifferenceToday/36e5,s[e(601)]("#pBar_day")[e(523)]=asideTodayHour,dayPercentage=(100*asideToday)[e(766)](2),displayDayPercentage=dayPercentage===e(789)?e(630):dayPercentage+"%",s[e(601)]("#p_span_day")[e(795)]=displayDayPercentage,s[e(601)](e(769))[e(795)]=(Math.floor(10*(24-asideTodayHour))/10).toFixed(1)+e(457),month=o[e(829)]()+1,day=o.getDate(),month=month>9?month:"0"+month,day=day>9?day:"0"+day,week={0:"周日",1:"周一",2:"周二",3:"周三",4:"周四",5:"周五",6:"周六"},document[e(601)]("#aside-content .card-widget#card-widget-schedule .item-content .schedule-today").innerHTML=o[e(594)]()+"-"+month+"-"+day+" "+week[o[e(850)]()])},PressEscapeKey(e){var t=_0x78ca;27===e[t(783)]&&(document.getElementById("console")&&mycpen1js[t(443)](),document[t(589)](t(615))&&document[t(589)](t(711))&&(document[t(601)](".cf-overshow-close")||document[t(601)](t(550)))&&(document[t(589)]("mycpen1-fcircle-page-tag")&&closeShow(),document[t(589)](t(762))&&mycpen1js[t(592)]()))},linkPageOpenMeShow(e){var t=_0x78ca,a={apipublicurl:t(768)},n="ok",o=document[t(589)](t(762));o&&(document[t(589)](t(615))||o[t(754)](t(602),'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ')),e[t(459)]();var c,s=e[t(469)][t(534)][t(640)][t(643)](/^(?:([A-Za-z]+):)?(\/{0,3})([0-9.\-A-Za-z]+)(?::(\d+))?(?:\/([^?#]*))?(?:\?([^#]*))?(?:#(.*))?$/,t(631));c=a[t(434)]+t(791)+s,"ok"==n&&(n="no",mycpen1js[t(741)](c))},linkPageOpenMeShowV2(e){var t=_0x78ca,a={apipublicurl:t(768)},n="ok",o=t(655),c=document[t(589)](t(762));c&&(document.getElementById("cf-overlay")||c[t(754)](t(602),o)),e[t(459)]();var s,r=encodeURIComponent(e.currentTarget[t(534)][t(555)]);s=a[t(434)]+"postv2?name="+r,"ok"==n&&(n="no",mycpen1js[t(741)](s))},linkPageCloseShow(){var e=_0x78ca;document[e(589)]("cf-overlay")[e(706)]-=e(546),document[e(589)](e(711))[e(706)]-=e(546),setTimeout((function(){var t=e,a=document[t(471)](t(621)),n=document.querySelectorAll("#cf-overshow > .cf-overshow-close");a[t(703)]((function(e){e[t(573)]()}));for(var o=1;o<n[t(477)];o++)n[o][t(573)]()}),100)},linkPageFetchShow(_0xebbd2c){var _0x56c558=_0x78ca,_0x31d51d=_0x56c558(813);fetch(_0xebbd2c)[_0x56c558(780)]((e=>e[_0x56c558(638)]()))[_0x56c558(780)]((_0x3ab618=>{var _0x27f05f=_0x56c558;noClick="ok";var _0x5cf4c7=_0x3ab618[_0x27f05f(577)],_0x463775=eval(_0x3ab618.article_data);0!==_0x5cf4c7[_0x27f05f(656)]?(mycpen1js[_0x27f05f(571)](_0x5cf4c7,_0x463775),document[_0x27f05f(589)](_0x27f05f(615)).className=_0x27f05f(546),document[_0x27f05f(589)](_0x27f05f(711))[_0x27f05f(754)](_0x27f05f(617),_0x31d51d)):btf[_0x27f05f(674)](_0x27f05f(635))})).catch((e=>{btf[_0x56c558(674)]("未获取到文章卡片")}))},linkPageLoadFcircleShow(e,t){for(var a=_0x78ca,n=a(809)+e[a(676)]+a(641)+e[a(640)]+'">'+e.name+a(700),o=0;o<e[a(656)];o++){var c=t[o];let e="";Date.now()-new Date(c.created+a(503)).getTime()<=1728e5&&(e='style="color: var(--mycpen1-main); opacity: 1;"'),n+='\n <p><a class="cf-article-title" href="'+c[a(640)]+a(531)+c[a(833)]+'">'+c[a(833)]+a(823)+e+">"+c.created+a(481)}n+=a(444),document[a(589)](a(711))[a(754)](a(446),n),document.getElementById(a(711)).className=a(546)},linkPageRssAliveCheck(){var e=_0x78ca;apiurl=e(768),rssAliveCheckUrl=apiurl+e(657),fetch(rssAliveCheckUrl)[e(780)]((e=>e.json())).then((t=>{var a=e,n=t[a(652)],o=t[a(542)],c=t[a(472)];let s=[];for(const e in n){let t=n[e];t=t.replace(/^https?:\/\//,""),t=t[a(643)](/\/$/,""),s[a(864)](t)}let r=[];for(const e in o){let t=o[e];t=t[a(643)](/^https?:\/\//,""),t=t[a(643)](/\/$/,""),r.push(t)}document[a(471)](a(861))[a(703)]((e=>{var t=a;if(e){let a=e[t(786)]("data-link").replace(/^https?:\/\//,"");a=a[t(643)](/\/$/,""),c>0?r[t(794)](a)?e[t(513)][t(637)](t(712)):s[t(794)](a)?e[t(513)][t(637)](t(744)):e[t(513)].add(t(626)):0===c&&e[t(513)].add("flink-mycpen1-rss-lost-friends")}}))}))},NzcheckLink:async e=>{var t=_0x78ca;const a=document[t(471)](e);if(a){let e=new RegExp(/^[#].*/);for(let c=0;c<a.length;c++){const s=a[c];var n=s[t(467)]("data-fancybox"),o=s[t(513)][t(755)](t(874));if(!n&&!o){let a=s.getAttribute(t(533)),n=s[t(786)]("data-download"),o=s[t(786)]("rel");e[t(581)](a)||o===t(868)||"next"===o||o===t(843)||o===t(438)||"javascript:void(0);"===a||(await mycpen1js[t(539)](a)||n?!await mycpen1js[t(539)](a)&&n===t(708)&&s.setAttribute(t(533),"/redirect.html?url="+btoa(a)+t(452)):s.setAttribute("href","/redirect.html?url="+btoa(a)))}s[t(513)][t(637)]("already-redirect-link")}}},NzcheckLocalSite:async e=>{var t=_0x78ca;try{const a=[t(470),t(723),t(511)];let n=!1;for(let o=0;o<a[t(477)];o++){const c=a[o];if(e[t(794)](c)){n=!0;break}}return n}catch(e){return!0}},cookieConsent(){var e=_0x78ca;window.addEventListener(e(737),(()=>{var t=e;window[t(586)][t(639)]({type:t(591),theme:t(812),static:!1,position:"bottom-right",content:{message:t(759),dismiss:"接受",allow:"接受",deny:"拒绝",link:!1},palette:{popup:{background:t(778),text:t(551)},button:{background:t(862)}}})}))}};function _0x49f2(){var e=["活泼的","theme","猕猴桃","select","#ds-dialog-email","color: #fadfa3; background: #030307; padding:5px 0;","12xNOMxH","文静的","cardRefreshTimes",'</a>\n </div>\n <div class="cf-overshow-content">\n ',"background: #fadfa3; padding:5px 0;","disqus_thread","forEach","setAttribute","#pBar_year","className",".essay_bar_swiper_container","goDown","data-theme","MTAvMjIvMTk5OCAwMA==","cf-overshow","flink-mycpen1-rss-not-lost-friends","朴素的","autoplay","富有想象力的","offsetHeight","#consoleHideAside","body","datetime","%c ","稳重的","深沉的","cpen.top","trim","keydown","#friend-links-in-footer .footer-item","1876164vgPhrF","有创造力的","offsetTop","MjggMDA6MDA6MDA=","clientHeight","bbtalk","有智慧的","有专业素养的","12.13","喜欢思考的","load","label","abs","善于合作的","linkPageFetchShow","input[name='email']","now","flink-mycpen1-rss-lost-friends","padEnd","location","有魅力的","耐心的","from","守信的","target","nameTextStyle","复制成功","insertAdjacentHTML","contains","splice","有学习能力的","floor","我们使用 cookie 来确保在我们的网站上为您提供最佳体验。","20EOvenA","display","mycpen1-link-page-tag","attributes",'<span class="happyNewYear">新年快乐</span>',"/json/link.json","toFixed","categoryPageActive","https://hexo-circle.cpen.top/",".schedule-r3 .schedule-d1 .aside-span2","scrollTo","有正义感的","MTA=","color:#fadfa3","setOption","谦虚的",".page-number","darkmode_consoleSwitch","#edeff5","null","then","random",".tk-comments-container a:not(.already-redirect-link)","keyCode","owo-big","toString","getAttribute",".aplayer-fixed .aplayer-icon.aplayer-icon-lrc","style","100.00","padStart","post?link=","input","朝气蓬勃的","includes","innerHTML","join","hide-aside","darkmode","offsetY","慷慨的","机智的","HTMLEvents","px; top:","css","有想象力的","哈密瓜","clientWidth","aside-status",'\n <div class="cf-overshow">\n <div class="cf-overshow-head">\n <img class="cf-img-avatar avatar" src="',"宽容的","stop","edgeless",'\n <div class="cf-overshow-close" onclick="mycpen1js.linkPageCloseShow()"></div>\n ',"appendChild","posts-chart","yAxis","善于沟通的","善于表达的","markLine","927028YbTeFc","min","务实的","</a><span ","input[name='nick']","src","tagPageActive","dark","toLocaleDateString","getMonth","善于领导的","px; left:","坚强的","title","有思想的","纯真的","成熟的","el-textarea__inner","changeNavPageNameTitle","善解人意的","addEventListener","already-clear-clickEvent","bind","category","有执行能力的","documentElement","setTime","night_to_day","data","max","getDay","返回顶部","10qeTjRV","light","#bber time","有责任感的","innerText","有趣的","#newYear .newYear-time","有担当的","just","#article-container .flink#mycpen1-link-page-tag-2 .flink-list>.flink-list-item a .flink-item-icon","#4b81e8","addClass","push","change","firstElementChild","2910922DiIzSg","prev","优雅的","火龙果","rel","#4C4948","#post-comment","already-redirect-link","haveValue","apipublicurl","MDgvMjgvMjAyMiA=","#mail","series","tag","尊重他人的","有同情心的","removeClass","getTime","hideConsole","</div></div>","#newYear .title","beforeend","有分析能力的","温暖的","敏捷的","page/","xAxis","&type=goDown","disconnect","getElementsByClassName","有眼光的","switchPostChart"," / 024","含蓄的","preventDefault","click","split","tags-chart","progid:DXImageTransform.Microsoft.BasicImage(grayscale=1)","toPageButton","2vwsSLR","essayChangeTimeInEssayByMycpen","hasAttribute","温柔的","currentTarget","localhost:4000","querySelectorAll","total_friend_num",".tk-comments-container","OwO-body","NzcheckLink","endsWith","length","essayReplaceAll","show",".page .layout #category #category-page-categories","</span></p>\n ","05/23/2025 00:00:00","Happy New Year!","7439592aQHqMQ","mycpen1-categories-page-cloudCategories-","removeBodyPaceClass","offsetX","有艺术细胞的","率直的","\n%c","可靠的","真诚的","cssText","input[name='comname']","#pBar_month","removeEventListener","敬业的","post-comment","MTAvMjIvMjA=","createElement","干净的","具有批判性思维的"," 00:00:00","toPageText","mycpen1-tags-page-cloudTags-","axisLabel","有个性的","西红柿","1398096ncYats","card-widget-schedule","mycpen.cn","距 2022-08-28 上线","classList","距 1998-00-00 计时","loadUrl","#name","loadFBComment","grayscale(100%)","#console","scrollTop","金针菇","day_to_night","value","豁达的","function","体贴的","time","#waterfall","scrollY","input[name='commail']",'" target="_blank" rel="noopener nofollow" data-title="',"disqusReset","href","dataset","setHours","initEvent","#p_span_week","#article-container .flink .flink-list > .flink-list-item.失联 > a","NzcheckLocalSite","onmouseout",".schedule-r1 .schedule-d1 .aside-span2","not_lost_friends","donotreply@mycpen.cn","toggle",'<span class="unit">天</span></span>',"cf-show-now","html","聪明的","display:flex; height:",".cf-overshow","#838391","toPage","set","dispatchEvent","name","慎重的","links","cpRemind","标题:","onscroll","04.04","getElementsByTagName","px;","noopener external nofollow noreferrer","scrollHeight","hide","darkmode_sidebarSwitch","saveData","pathname","color","linkPageLoadFcircleShow","\n链接:","remove","input[name='mail']","setDate","randomLink","statistical_data","getFooterRandomFlink","可爱的","有决策能力的","test","Mycpen - Personal Blog","categories-chart","有幽默感的","pace-done","cookieconsent","textContent",".schedule-r0 .schedule-d1 .aside-span2","getElementById","22106117RYTfbf","info","linkPageCloseShow"," / 007","getFullYear","object","有团队精神的","pause","#p_span_month","concat","MDA6MDA=","querySelector","afterend","#nav-totop","color:#030307","page-name","link_list","MDA6MDA6MDA=","parentNode","log","apply","waterfall","有逻辑思维的","05.12","contextmenu","cf-overlay"," / ","afterbegin","mycpen1-link-page-tag-2","mycpen1-essay-page-tag","textStyle","#cf-overshow > :not(.cf-overshow-close)","essayReflashEssayWaterFall","08.14",".page .layout #tag #tag-page-tags","observe","flink-mycpen1-rss-unknown-friends","linkPageRssAliveCheck","MjIvMjA1OCAwMDowMA==","listenToPageInputPress","100%","$1:$2$3","英俊的","origin","#ds-dialog-name","未获取到订阅内容","距 2058-00-00 计时","add","json","initialise","link",'" alt="avatar" onerror="this.src=\'https://cdn.cbd.int/mycpen-blog@0.0.0-wlbyavcxzz/img/flink404.svg\'; this.onerror = null;">\n <a class="" target="_blank" rel="noopener nofollow" href="',"setSelectionRange","replace"," MYCPEN BLOG ","long","#pBar_week","stringify",".share","ceil","console",'<span class="day">',"lost_friends","善良的","getDate",'\n <div id="cf-overlay" class="cf-new-add" onclick="mycpen1js.linkPageCloseShow()"></div>\n <div id="cf-overshow" class="cf-new-add"></div>\n ',"article_num","friendstatus","replaceChild","axisLine","09.30","legend","11.30","px; width:","pageYOffset","comment-tips","round","有组织能力的","6tzWBhv","有耐性的","date_suffix","setMonth","Snackbar","addedNodes","snackbarShow","inline","avatar","footer","removeaAlayerFixedLrc","西兰花","\n> ","focus"," | Mycpen","#article-container #mycpen1-about-page-tag-sponsor-part a","rgba(255,255,255,0.7)","1966227sTlSee","喜欢学习的","day","hour","getNavRightPagePercent"," <span>年</span>"];return(_0x49f2=function(){return e})()}function _0x78ca(e,t){var a=_0x49f2();return(_0x78ca=function(e,t){return a[e-=433]})(e,t)}function whenDOMReadyMycpen1JS(){var e=_0x594293;mycpen1js[e(838)](),mycpen1js[e(578)](),mycpen1js[e(486)](),mycpen1js[e(826)](),mycpen1js[e(767)](),mycpen1js[e(629)](),mycpen1js.owoBigfunc(),document[e(589)](e(619))&&(mycpen1js[e(466)](),mycpen1js.essayReflashEssayWaterFall(),window.onresize=()=>{var t=e;document[t(589)](t(619))&&(mycpen1js[t(622)](),setTimeout((()=>{mycpen1js[t(622)]()}),300))}),document[e(589)](e(798))[e(840)](e(460),(function(){setTimeout(mycpen1js[e(456)],100)})),document[e(589)]("darkmode_navswitch").addEventListener(e(460),(function(){setTimeout(mycpen1js[e(456)],100)})),document[e(589)](e(777))[e(840)](e(460),(function(){setTimeout(mycpen1js.switchPostChart,100)})),document[e(589)](e(567))[e(840)](e(460),(function(){setTimeout(mycpen1js.switchPostChart,100)})),mycpen1js[e(558)](),mycpen1js.closeAboutAplayer(),document[e(589)]("card-widget-schedule")&&(mycpen1js[e(699)](),setInterval((()=>{mycpen1js.cardRefreshTimes()}),1e3)),document[e(589)](e(618))&&mycpen1js[e(627)](),document[e(589)](e(762))&&(mycpen1js[e(475)]("#article-container .flink .flink-list > .flink-list-item.单向 > a"),mycpen1js[e(475)](e(538))),document.getElementById("mycpen1-about-page-tag")&&mycpen1js[e(475)](e(683)),document[e(589)]("post-comment")&&setInterval((()=>{var t=e;if(document[t(601)](t(473))){mycpen1js[t(475)](t(782));document.querySelectorAll(".tk-avatar.tk-clickable:not(.already-clear-clickEvent)")[t(703)]((e=>{var a=t;e[a(513)][a(637)](a(841));const n=document[a(500)]("a");for(Array[a(749)](e[a(763)])[a(703)]((e=>{var t=a;n[t(704)](e[t(555)],e.value)}));e.firstChild;)n.appendChild(e.firstChild);e[a(608)][a(658)](n,e);const o=n.nextElementSibling.firstElementChild[a(866)].firstElementChild.getAttribute(a(533));n[a(704)](a(533),o),n.setAttribute(a(751),"_blank"),n[a(704)]("rel",a(564))}))}}),1e3)}mycpen1js[_0x594293(650)](),document[_0x594293(496)]("keydown",mycpen1js.PressEscapeKey),document.addEventListener("keydown",mycpen1js.PressEscapeKey),window[_0x594293(560)]=mycpen1js[_0x594293(689)],mycpen1js[_0x594293(678)](),whenDOMReadyMycpen1JS(),document[_0x594293(840)]("pjax:complete",whenDOMReadyMycpen1JS);