import{r as Z}from"./index.LFf77hJu.js";var me=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof global<"u"?global:typeof self<"u"?self:{};function ve(F){return F&&F.__esModule&&Object.prototype.hasOwnProperty.call(F,"default")?F.default:F}var ye={exports:{}},de={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var Le=Z,Ce=Symbol.for("react.element"),Be=Symbol.for("react.fragment"),Fe=Object.prototype.hasOwnProperty,He=Le.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,Ae={key:!0,ref:!0,__self:!0,__source:!0};function be(F,A,o){var h,s={},e=null,t=null;o!==void 0&&(e=""+o),A.key!==void 0&&(e=""+A.key),A.ref!==void 0&&(t=A.ref);for(h in A)Fe.call(A,h)&&!Ae.hasOwnProperty(h)&&(s[h]=A[h]);if(F&&F.defaultProps)for(h in A=F.defaultProps,A)s[h]===void 0&&(s[h]=A[h]);return{$$typeof:Ce,type:F,key:e,ref:t,props:s,_owner:He.current}}de.Fragment=Be;de.jsx=be;de.jsxs=be;ye.exports=de;var z=ye.exports,we={exports:{}};(function(F,A){(function(o,h){F.exports=h()})(window,function(){return function(o){var h={};function s(e){if(h[e])return h[e].exports;var t=h[e]={i:e,l:!1,exports:{}};return o[e].call(t.exports,t,t.exports,s),t.l=!0,t.exports}return s.m=o,s.c=h,s.d=function(e,t,r){s.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:r})},s.r=function(e){Object.defineProperty(e,"__esModule",{value:!0})},s.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return s.d(t,"a",t),t},s.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},s.p="/",s(s.s=41)}([function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=/mobile/i.test(window.navigator.userAgent),t={secondToTime:function(r){var n=Math.floor(r/3600),i=Math.floor((r-3600*n)/60),u=Math.floor(r-3600*n-60*i);return(n>0?[n,i,u]:[i,u]).map(function(a){return a<10?"0"+a:""+a}).join(":")},getElementViewLeft:function(r){var n=r.offsetLeft,i=r.offsetParent,u=document.body.scrollLeft+document.documentElement.scrollLeft;if(document.fullscreenElement||document.mozFullScreenElement||document.webkitFullscreenElement)for(;i!==null&&i!==r;)n+=i.offsetLeft,i=i.offsetParent;else for(;i!==null;)n+=i.offsetLeft,i=i.offsetParent;return n-u},getElementViewTop:function(r,n){for(var i,u=r.offsetTop,a=r.offsetParent;a!==null;)u+=a.offsetTop,a=a.offsetParent;return i=document.body.scrollTop+document.documentElement.scrollTop,n?u:u-i},isMobile:e,storage:{set:function(r,n){localStorage.setItem(r,n)},get:function(r){return localStorage.getItem(r)}},nameMap:{dragStart:e?"touchstart":"mousedown",dragMove:e?"touchmove":"mousemove",dragEnd:e?"touchend":"mouseup"},randomOrder:function(r){return function(n){for(var i=n.length-1;i>=0;i--){var u=Math.floor(Math.random()*(i+1)),a=n[u];n[u]=n[i],n[i]=a}return n}([].concat(function(n){if(Array.isArray(n)){for(var i=0,u=Array(n.length);i<n.length;i++)u[i]=n[i];return u}return Array.from(n)}(Array(r))).map(function(n,i){return i}))}};h.default=t},function(o,h,s){var e=s(2);o.exports=function(t){t=t||{};var r="",n=e.$each,i=t.audio,u=(t.$value,t.$index,e.$escape),a=t.theme,l=t.index;return n(i,function(c,p){r+=`
<li>
    <span class="aplayer-list-cur" style="background-color: `,r+=u(c.theme||a),r+=`;"></span>
    <span class="aplayer-list-index">`,r+=u(p+l),r+=`</span>
    <span class="aplayer-list-title">`,r+=u(c.name),r+=`</span>
    <span class="aplayer-list-author">`,r+=u(c.artist),r+=`</span>
</li>
`}),r}},function(o,h,s){o.exports=s(15)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=b(s(33)),t=b(s(32)),r=b(s(31)),n=b(s(30)),i=b(s(29)),u=b(s(28)),a=b(s(27)),l=b(s(26)),c=b(s(25)),p=b(s(24)),d=b(s(23)),y=b(s(22)),m=b(s(21)),w=b(s(20)),x=b(s(19));function b(f){return f&&f.__esModule?f:{default:f}}var g={play:e.default,pause:t.default,volumeUp:r.default,volumeDown:n.default,volumeOff:i.default,orderRandom:u.default,orderList:a.default,menu:l.default,loopAll:c.default,loopOne:p.default,loopNone:d.default,loading:y.default,right:m.default,skip:w.default,lrc:x.default};h.default=g},function(o,h,s){var e,t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(r){return typeof r}:function(r){return r&&typeof Symbol=="function"&&r.constructor===Symbol&&r!==Symbol.prototype?"symbol":typeof r};e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch{(typeof window>"u"?"undefined":t(window))==="object"&&(e=window)}o.exports=e},function(o,h,s){var e,t,r=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(n){return typeof n}:function(n){return n&&typeof Symbol=="function"&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n};(t=typeof(e=function(){if((typeof window>"u"?"undefined":r(window))==="object"&&document.querySelectorAll!==void 0&&window.pageYOffset!==void 0&&history.pushState!==void 0){var n=function(a,l,c,p){return c>p?l:a+(l-a)*((d=c/p)<.5?4*d*d*d:(d-1)*(2*d-2)*(2*d-2)+1);var d},i=function(a,l,c,p){l=l||500;var d=(p=p||window).scrollTop||window.pageYOffset;if(typeof a=="number")var y=parseInt(a);else var y=function(x,b){return x.nodeName==="HTML"?-b:x.getBoundingClientRect().top+b}(a,d);var m=Date.now(),w=window.requestAnimationFrame||window.mozRequestAnimationFrame||window.webkitRequestAnimationFrame||function(x){window.setTimeout(x,15)};(function x(){var b=Date.now()-m;p!==window?p.scrollTop=n(d,y,b,l):window.scroll(0,n(d,y,b,l)),b>l?typeof c=="function"&&c(a):w(x)})()},u=function(a){if(!a.defaultPrevented){a.preventDefault(),location.hash!==this.hash&&window.history.pushState(null,null,this.hash);var l=document.getElementById(this.hash.substring(1));if(!l)return;i(l,500,function(c){location.replace("#"+c.id)})}};return document.addEventListener("DOMContentLoaded",function(){for(var a,l=document.querySelectorAll('a[href^="#"]:not([href="#"])'),c=l.length;a=l[--c];)a.addEventListener("click",u,!1)}),i}})=="function"?e.call(h,s,h,o):e)===void 0||(o.exports=t)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function a(l,c){for(var p=0;p<c.length;p++){var d=c[p];d.enumerable=d.enumerable||!1,d.configurable=!0,"value"in d&&(d.writable=!0),Object.defineProperty(l,d.key,d)}}return function(l,c,p){return c&&a(l.prototype,c),p&&a(l,p),l}}(),t=i(s(1)),r=i(s(0)),n=i(s(5));function i(a){return a&&a.__esModule?a:{default:a}}var u=function(){function a(l){(function(c,p){if(!(c instanceof p))throw new TypeError("Cannot call a class as a function")})(this,a),this.player=l,this.index=0,this.audios=this.player.options.audio,this.bindEvents()}return e(a,[{key:"bindEvents",value:function(){var l=this;this.player.template.list.addEventListener("click",function(c){var p=void 0;p=c.target.tagName.toUpperCase()==="LI"?c.target:c.target.parentElement;var d=parseInt(p.getElementsByClassName("aplayer-list-index")[0].innerHTML)-1;d!==l.index?(l.switch(d),l.player.play()):l.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(l){this.player.events.trigger("listadd",{audios:l}),Object.prototype.toString.call(l)!=="[object Array]"&&(l=[l]),l.map(function(d){return d.name=d.name||d.title||"Audio name",d.artist=d.artist||d.author||"Audio artist",d.cover=d.cover||d.pic,d.type=d.type||"normal",d});var c=!(this.audios.length>1),p=this.audios.length===0;this.player.template.listOl.innerHTML+=(0,t.default)({theme:this.player.options.theme,audio:l,index:this.audios.length+1}),this.audios=this.audios.concat(l),c&&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=l.theme||this.player.options.theme,p&&(this.player.options.order==="random"?this.switch(this.player.randomOrder[0]):this.switch(0))}},{key:"remove",value:function(l){if(this.player.events.trigger("listremove",{index:l}),this.audios[l])if(this.audios.length>1){var c=this.player.container.querySelectorAll(".aplayer-list li");c[l].remove(),this.audios.splice(l,1),this.player.lrc&&this.player.lrc.remove(l),l===this.index&&(this.audios[l]?this.switch(l):this.switch(l-1)),this.index>l&&this.index--;for(var p=l;p<c.length;p++)c[p].getElementsByClassName("aplayer-list-index")[0].textContent=p;this.audios.length===1&&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(l){if(this.player.events.trigger("listswitch",{index:l}),l!==void 0&&this.audios[l]){this.index=l;var c=this.audios[this.index];this.player.template.pic.style.backgroundImage=c.cover?"url('"+c.cover+"')":"",this.player.theme(this.audios[this.index].theme||this.player.options.theme,this.index,!1),this.player.template.title.innerHTML=c.name,this.player.template.author.innerHTML=c.artist?" - "+c.artist:"";var p=this.player.container.getElementsByClassName("aplayer-list-light")[0];p&&p.classList.remove("aplayer-list-light"),this.player.container.querySelectorAll(".aplayer-list li")[this.index].classList.add("aplayer-list-light"),(0,n.default)(33*this.index,500,null,this.player.template.listOl),this.player.setAudio(c),this.player.lrc&&this.player.lrc.switch(this.index),this.player.lrc&&this.player.lrc.update(0),this.player.duration!==1&&(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)}}]),a}();h.default=u},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function r(n,i){for(var u=0;u<i.length;u++){var a=i[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return function(n,i,u){return i&&r(n.prototype,i),u&&r(n,u),n}}(),t=function(){function r(){(function(n,i){if(!(n instanceof i))throw new TypeError("Cannot call a class as a function")})(this,r),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 e(r,[{key:"on",value:function(n,i){this.type(n)&&typeof i=="function"&&(this.events[n]||(this.events[n]=[]),this.events[n].push(i))}},{key:"trigger",value:function(n,i){if(this.events[n]&&this.events[n].length)for(var u=0;u<this.events[n].length;u++)this.events[n][u](i)}},{key:"type",value:function(n){return this.playerEvents.indexOf(n)!==-1?"player":this.audioEvents.indexOf(n)!==-1?"audio":(console.error("Unknown event name: "+n),null)}}]),r}();h.default=t},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function r(n,i){for(var u=0;u<i.length;u++){var a=i[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return function(n,i,u){return i&&r(n.prototype,i),u&&r(n,u),n}}(),t=function(){function r(n){(function(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")})(this,r),this.player=n,window.requestAnimationFrame=window.requestAnimationFrame||window.webkitRequestAnimationFrame||window.mozRequestAnimationFrame||window.oRequestAnimationFrame||window.msRequestAnimationFrame||function(i){window.setTimeout(i,1e3/60)},this.types=["loading"],this.init()}return e(r,[{key:"init",value:function(){var n=this;this.types.forEach(function(i){n["init"+i+"Checker"]()})}},{key:"initloadingChecker",value:function(){var n=this,i=0,u=0,a=!1;this.loadingChecker=setInterval(function(){n.enableloadingChecker&&(u=n.player.audio.currentTime,a||u!==i||n.player.audio.paused||(n.player.container.classList.add("aplayer-loading"),a=!0),a&&u>i&&!n.player.audio.paused&&(n.player.container.classList.remove("aplayer-loading"),a=!1),i=u)},100)}},{key:"enable",value:function(n){this["enable"+n+"Checker"]=!0,n==="fps"&&this.initfpsChecker()}},{key:"disable",value:function(n){this["enable"+n+"Checker"]=!1}},{key:"destroy",value:function(){var n=this;this.types.forEach(function(i){n["enable"+i+"Checker"]=!1,n[i+"Checker"]&&clearInterval(n[i+"Checker"])})}}]),r}();h.default=t},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),t=n(s(0)),r=n(s(3));function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.player=a,this.initPlayButton(),this.initPlayBar(),this.initOrderButton(),this.initLoopButton(),this.initMenuButton(),t.default.isMobile||this.initVolumeButton(),this.initMiniSwitcher(),this.initSkipButton(),this.initLrcButton()}return e(u,[{key:"initPlayButton",value:function(){var a=this;this.player.template.pic.addEventListener("click",function(){a.player.toggle()})}},{key:"initPlayBar",value:function(){var a=this,l=function(p){var d=((p.clientX||p.changedTouches[0].clientX)-t.default.getElementViewLeft(a.player.template.barWrap))/a.player.template.barWrap.clientWidth;d=Math.max(d,0),d=Math.min(d,1),a.player.bar.set("played",d,"width"),a.player.lrc&&a.player.lrc.update(d*a.player.duration),a.player.template.ptime.innerHTML=t.default.secondToTime(d*a.player.duration)},c=function p(d){document.removeEventListener(t.default.nameMap.dragEnd,p),document.removeEventListener(t.default.nameMap.dragMove,l);var y=((d.clientX||d.changedTouches[0].clientX)-t.default.getElementViewLeft(a.player.template.barWrap))/a.player.template.barWrap.clientWidth;y=Math.max(y,0),y=Math.min(y,1),a.player.bar.set("played",y,"width"),a.player.seek(a.player.bar.get("played","width")*a.player.duration),a.player.disableTimeupdate=!1};this.player.template.barWrap.addEventListener(t.default.nameMap.dragStart,function(){a.player.disableTimeupdate=!0,document.addEventListener(t.default.nameMap.dragMove,l),document.addEventListener(t.default.nameMap.dragEnd,c)})}},{key:"initVolumeButton",value:function(){var a=this;this.player.template.volumeButton.addEventListener("click",function(){a.player.audio.muted?(a.player.audio.muted=!1,a.player.switchVolumeIcon(),a.player.bar.set("volume",a.player.volume(),"height")):(a.player.audio.muted=!0,a.player.switchVolumeIcon(),a.player.bar.set("volume",0,"height"))});var l=function(p){var d=1-((p.clientY||p.changedTouches[0].clientY)-t.default.getElementViewTop(a.player.template.volumeBar,a.player.options.fixed))/a.player.template.volumeBar.clientHeight;d=Math.max(d,0),d=Math.min(d,1),a.player.volume(d)},c=function p(d){a.player.template.volumeBarWrap.classList.remove("aplayer-volume-bar-wrap-active"),document.removeEventListener(t.default.nameMap.dragEnd,p),document.removeEventListener(t.default.nameMap.dragMove,l);var y=1-((d.clientY||d.changedTouches[0].clientY)-t.default.getElementViewTop(a.player.template.volumeBar,a.player.options.fixed))/a.player.template.volumeBar.clientHeight;y=Math.max(y,0),y=Math.min(y,1),a.player.volume(y)};this.player.template.volumeBarWrap.addEventListener(t.default.nameMap.dragStart,function(){a.player.template.volumeBarWrap.classList.add("aplayer-volume-bar-wrap-active"),document.addEventListener(t.default.nameMap.dragMove,l),document.addEventListener(t.default.nameMap.dragEnd,c)})}},{key:"initOrderButton",value:function(){var a=this;this.player.template.order.addEventListener("click",function(){a.player.options.order==="list"?(a.player.options.order="random",a.player.template.order.innerHTML=r.default.orderRandom):a.player.options.order==="random"&&(a.player.options.order="list",a.player.template.order.innerHTML=r.default.orderList)})}},{key:"initLoopButton",value:function(){var a=this;this.player.template.loop.addEventListener("click",function(){a.player.list.audios.length>1?a.player.options.loop==="one"?(a.player.options.loop="none",a.player.template.loop.innerHTML=r.default.loopNone):a.player.options.loop==="none"?(a.player.options.loop="all",a.player.template.loop.innerHTML=r.default.loopAll):a.player.options.loop==="all"&&(a.player.options.loop="one",a.player.template.loop.innerHTML=r.default.loopOne):a.player.options.loop==="one"||a.player.options.loop==="all"?(a.player.options.loop="none",a.player.template.loop.innerHTML=r.default.loopNone):a.player.options.loop==="none"&&(a.player.options.loop="all",a.player.template.loop.innerHTML=r.default.loopAll)})}},{key:"initMenuButton",value:function(){var a=this;this.player.template.menu.addEventListener("click",function(){a.player.list.toggle()})}},{key:"initMiniSwitcher",value:function(){var a=this;this.player.template.miniSwitcher.addEventListener("click",function(){a.player.setMode(a.player.mode==="mini"?"normal":"mini")})}},{key:"initSkipButton",value:function(){var a=this;this.player.template.skipBackButton.addEventListener("click",function(){a.player.skipBack()}),this.player.template.skipForwardButton.addEventListener("click",function(){a.player.skipForward()}),this.player.template.skipPlayButton.addEventListener("click",function(){a.player.toggle()})}},{key:"initLrcButton",value:function(){var a=this;this.player.template.lrcButton.addEventListener("click",function(){a.player.template.lrcButton.classList.contains("aplayer-icon-lrc-inactivity")?(a.player.template.lrcButton.classList.remove("aplayer-icon-lrc-inactivity"),a.player.lrc&&a.player.lrc.show()):(a.player.template.lrcButton.classList.add("aplayer-icon-lrc-inactivity"),a.player.lrc&&a.player.lrc.hide())})}}]),u}();h.default=i},function(o,h,s){var e=s(2);o.exports=function(t){t=t||{};var r="",n=e.$each,i=t.lyrics,u=(t.$value,t.$index,e.$escape);return n(i,function(a,l){r+=`
    <p`,l===0&&(r+=' class="aplayer-lrc-current"'),r+=">",r+=u(a[1]),r+=`</p>
`}),r}},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e,t=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),r=s(10),n=(e=r)&&e.__esModule?e:{default:e},i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.container=a.container,this.async=a.async,this.player=a.player,this.parsed=[],this.index=0,this.current=[]}return t(u,[{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 a=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.player.audio.currentTime;if(this.index>this.current.length-1||a<this.current[this.index][0]||!this.current[this.index+1]||a>=this.current[this.index+1][0])for(var l=0;l<this.current.length;l++)a>=this.current[l][0]&&(!this.current[l+1]||a<this.current[l+1][0])&&(this.index=l,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")[l].classList.add("aplayer-lrc-current"))}},{key:"switch",value:function(a){var l=this;if(!this.parsed[a])if(this.async){this.parsed[a]=[["00:00","Loading"]];var c=new XMLHttpRequest;c.onreadystatechange=function(){a===l.player.list.index&&c.readyState===4&&(c.status>=200&&c.status<300||c.status===304?l.parsed[a]=l.parse(c.responseText):(l.player.notice("LRC file request fails: status "+c.status),l.parsed[a]=[["00:00","Not available"]]),l.container.innerHTML=(0,n.default)({lyrics:l.parsed[a]}),l.update(0),l.current=l.parsed[a])};var p=this.player.list.audios[a].lrc;c.open("get",p,!0),c.send(null)}else this.player.list.audios[a].lrc?this.parsed[a]=this.parse(this.player.list.audios[a].lrc):this.parsed[a]=[["00:00","Not available"]];this.container.innerHTML=(0,n.default)({lyrics:this.parsed[a]}),this.update(0),this.current=this.parsed[a]}},{key:"parse",value:function(a){if(a){for(var l=(a=a.replace(/([^\]^\n])\[/g,function(f,v){return v+`
[`})).split(`
`),c=[],p=l.length,d=0;d<p;d++){var y=l[d].match(/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g),m=l[d].replace(/.*\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/g,"").replace(/<(\d{2}):(\d{2})(\.(\d{2,3}))?>/g,"").replace(/^\s+|\s+$/g,"");if(y)for(var w=y.length,x=0;x<w;x++){var b=/\[(\d{2}):(\d{2})(\.(\d{2,3}))?]/.exec(y[x]),g=60*b[1]+parseInt(b[2])+(b[4]?parseInt(b[4])/((b[4]+"").length===2?100:1e3):0);c.push([g,m])}}return(c=c.filter(function(f){return f[1]})).sort(function(f,v){return f[0]-v[0]}),c}return[]}},{key:"remove",value:function(a){this.parsed.splice(a,1)}},{key:"clear",value:function(){this.parsed=[],this.container.innerHTML=""}}]),u}();h.default=i},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e,t=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),r=s(0),n=(e=r)&&e.__esModule?e:{default:e},i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.storageName=a.options.storageName,this.data=JSON.parse(n.default.storage.get(this.storageName)),this.data||(this.data={}),this.data.volume=this.data.volume||a.options.volume}return t(u,[{key:"get",value:function(a){return this.data[a]}},{key:"set",value:function(a,l){this.data[a]=l,n.default.storage.set(this.storageName,JSON.stringify(this.data))}}]),u}();h.default=i},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function r(n,i){for(var u=0;u<i.length;u++){var a=i[u];a.enumerable=a.enumerable||!1,a.configurable=!0,"value"in a&&(a.writable=!0),Object.defineProperty(n,a.key,a)}}return function(n,i,u){return i&&r(n.prototype,i),u&&r(n,u),n}}(),t=function(){function r(n){(function(i,u){if(!(i instanceof u))throw new TypeError("Cannot call a class as a function")})(this,r),this.elements={},this.elements.volume=n.volume,this.elements.played=n.played,this.elements.loaded=n.loaded}return e(r,[{key:"set",value:function(n,i,u){i=Math.max(i,0),i=Math.min(i,1),this.elements[n].style[u]=100*i+"%"}},{key:"get",value:function(n,i){return parseFloat(this.elements[n].style[i])/100}}]),r}();h.default=t},function(o,h,s){(function(e){o.exports=!1;try{o.exports=Object.prototype.toString.call(e.process)==="[object process]"}catch{}}).call(this,s(4))},function(o,h,s){(function(e){var t=s(14),r=Object.create(t?e:window),n=/["&'<>]/;r.$escape=function(i){return function(u){var a=""+u,l=n.exec(a);if(!l)return u;var c="",p=void 0,d=void 0,y=void 0;for(p=l.index,d=0;p<a.length;p++){switch(a.charCodeAt(p)){case 34:y="&#34;";break;case 38:y="&#38;";break;case 39:y="&#39;";break;case 60:y="&#60;";break;case 62:y="&#62;";break;default:continue}d!==p&&(c+=a.substring(d,p)),d=p+1,c+=y}return d!==p?c+a.substring(d,p):c}(function u(a){return typeof a!="string"&&(a=a==null?"":typeof a=="function"?u(a.call(a)):JSON.stringify(a)),a}(i))},r.$each=function(i,u){if(Array.isArray(i))for(var a=0,l=i.length;a<l;a++)u(i[a],a);else for(var c in i)u(i[c],c)},o.exports=r}).call(this,s(4))},function(o,h,s){var e=s(2);o.exports=function(t){var r="",n=(t=t||{}).options,i=t.cover,u=e.$escape,a=t.icons,l=function(p){return r+=p},c=t.getObject;return t.theme,t.audio,t.index,n.fixed?(r+=`
<div class="aplayer-list`,n.listFolded&&(r+=" aplayer-list-hide"),r+='"',n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
    <ol`,n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
        `,l(s(1)(c({theme:n.theme,audio:n.audio,index:1}))),r+=`
    </ol>
</div>
<div class="aplayer-body">
    <div class="aplayer-pic" style="`,i&&(r+="background-image: url(&quot;",r+=u(i),r+="&quot;);"),r+="background-color: ",r+=u(n.theme),r+=`;">
        <div class="aplayer-button aplayer-play">`,r+=a.play,r+=`</div>
    </div>
    <div class="aplayer-info" style="display: none;">
        <div class="aplayer-music">
            <span class="aplayer-title">No audio</span>
            <span class="aplayer-author"></span>
        </div>
        <div class="aplayer-controller">
            <div class="aplayer-bar-wrap">
                <div class="aplayer-bar">
                    <div class="aplayer-loaded" style="width: 0"></div>
                    <div class="aplayer-played" style="width: 0; background: `,r+=u(n.theme),r+=`;">
                        <span class="aplayer-thumb" style="background: `,r+=u(n.theme),r+=`;">
                            <span class="aplayer-loading-icon">`,r+=a.loading,r+=`</span>
                        </span>
                    </div>
                </div>
            </div>
            <div class="aplayer-time">
                <span class="aplayer-time-inner">
                    <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
                </span>
                <span class="aplayer-icon aplayer-icon-back">
                    `,r+=a.skip,r+=`
                </span>
                <span class="aplayer-icon aplayer-icon-play">
                    `,r+=a.play,r+=`
                </span>
                <span class="aplayer-icon aplayer-icon-forward">
                    `,r+=a.skip,r+=`
                </span>
                <div class="aplayer-volume-wrap">
                    <button type="button" class="aplayer-icon aplayer-icon-volume-down">
                        `,r+=a.volumeDown,r+=`
                    </button>
                    <div class="aplayer-volume-bar-wrap">
                        <div class="aplayer-volume-bar">
                            <div class="aplayer-volume" style="height: 80%; background: `,r+=u(n.theme),r+=`;"></div>
                        </div>
                    </div>
                </div>
                <button type="button" class="aplayer-icon aplayer-icon-order">
                    `,n.order==="list"?r+=a.orderList:n.order==="random"&&(r+=a.orderRandom),r+=`
                </button>
                <button type="button" class="aplayer-icon aplayer-icon-loop">
                    `,n.loop==="one"?r+=a.loopOne:n.loop==="all"?r+=a.loopAll:n.loop==="none"&&(r+=a.loopNone),r+=`
                </button>
                <button type="button" class="aplayer-icon aplayer-icon-menu">
                    `,r+=a.menu,r+=`
                </button>
                <button type="button" class="aplayer-icon aplayer-icon-lrc">
                    `,r+=a.lrc,r+=`
                </button>
            </div>
        </div>
    </div>
    <div class="aplayer-notice"></div>
    <div class="aplayer-miniswitcher"><button class="aplayer-icon">`,r+=a.right,r+=`</button></div>
</div>
<div class="aplayer-lrc">
    <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>
</div>
`):(r+=`
<div class="aplayer-body">
    <div class="aplayer-pic" style="`,i&&(r+="background-image: url(&quot;",r+=u(i),r+="&quot;);"),r+="background-color: ",r+=u(n.theme),r+=`;">
        <div class="aplayer-button aplayer-play">`,r+=a.play,r+=`</div>
    </div>
    <div class="aplayer-info">
        <div class="aplayer-music">
            <span class="aplayer-title">No audio</span>
            <span class="aplayer-author"></span>
        </div>
        <div class="aplayer-lrc">
            <div class="aplayer-lrc-contents" style="transform: translateY(0); -webkit-transform: translateY(0);"></div>
        </div>
        <div class="aplayer-controller">
            <div class="aplayer-bar-wrap">
                <div class="aplayer-bar">
                    <div class="aplayer-loaded" style="width: 0"></div>
                    <div class="aplayer-played" style="width: 0; background: `,r+=u(n.theme),r+=`;">
                        <span class="aplayer-thumb" style="background: `,r+=u(n.theme),r+=`;">
                            <span class="aplayer-loading-icon">`,r+=a.loading,r+=`</span>
                        </span>
                    </div>
                </div>
            </div>
            <div class="aplayer-time">
                <span class="aplayer-time-inner">
                    <span class="aplayer-ptime">00:00</span> / <span class="aplayer-dtime">00:00</span>
                </span>
                <span class="aplayer-icon aplayer-icon-back">
                    `,r+=a.skip,r+=`
                </span>
                <span class="aplayer-icon aplayer-icon-play">
                    `,r+=a.play,r+=`
                </span>
                <span class="aplayer-icon aplayer-icon-forward">
                    `,r+=a.skip,r+=`
                </span>
                <div class="aplayer-volume-wrap">
                    <button type="button" class="aplayer-icon aplayer-icon-volume-down">
                        `,r+=a.volumeDown,r+=`
                    </button>
                    <div class="aplayer-volume-bar-wrap">
                        <div class="aplayer-volume-bar">
                            <div class="aplayer-volume" style="height: 80%; background: `,r+=u(n.theme),r+=`;"></div>
                        </div>
                    </div>
                </div>
                <button type="button" class="aplayer-icon aplayer-icon-order">
                    `,n.order==="list"?r+=a.orderList:n.order==="random"&&(r+=a.orderRandom),r+=`
                </button>
                <button type="button" class="aplayer-icon aplayer-icon-loop">
                    `,n.loop==="one"?r+=a.loopOne:n.loop==="all"?r+=a.loopAll:n.loop==="none"&&(r+=a.loopNone),r+=`
                </button>
                <button type="button" class="aplayer-icon aplayer-icon-menu">
                    `,r+=a.menu,r+=`
                </button>
                <button type="button" class="aplayer-icon aplayer-icon-lrc">
                    `,r+=a.lrc,r+=`
                </button>
            </div>
        </div>
    </div>
    <div class="aplayer-notice"></div>
    <div class="aplayer-miniswitcher"><button class="aplayer-icon">`,r+=a.right,r+=`</button></div>
</div>
<div class="aplayer-list`,n.listFolded&&(r+=" aplayer-list-hide"),r+='"',n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
    <ol`,n.listMaxHeight&&(r+=' style="max-height: ',r+=u(n.listMaxHeight),r+='"'),r+=`>
        `,l(s(1)(c({theme:n.theme,audio:n.audio,index:1}))),r+=`
    </ol>
</div>
`),r}},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function u(a,l){for(var c=0;c<l.length;c++){var p=l[c];p.enumerable=p.enumerable||!1,p.configurable=!0,"value"in p&&(p.writable=!0),Object.defineProperty(a,p.key,p)}}return function(a,l,c){return l&&u(a.prototype,l),c&&u(a,c),a}}(),t=n(s(3)),r=n(s(16));function n(u){return u&&u.__esModule?u:{default:u}}var i=function(){function u(a){(function(l,c){if(!(l instanceof c))throw new TypeError("Cannot call a class as a function")})(this,u),this.container=a.container,this.options=a.options,this.randomOrder=a.randomOrder,this.init()}return e(u,[{key:"init",value:function(){var a="";this.options.audio.length&&(a=this.options.order==="random"?this.options.audio[this.randomOrder[0]].cover:this.options.audio[0].cover),this.container.innerHTML=(0,r.default)({options:this.options,icons:t.default,cover:a,getObject:function(l){return l}}),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")}}]),u}();h.default=i},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0}),h.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 r in t)t.hasOwnProperty(r)&&!e.hasOwnProperty(r)&&(e[r]=t[r]);return Object.prototype.toString.call(e.audio)!=="[object Array]"&&(e.audio=[e.audio]),e.audio.map(function(n){return n.name=n.name||n.title||"Audio name",n.artist=n.artist||n.author||"Audio artist",n.cover=n.cover||n.pic,n.type=n.type||"normal",n}),e.audio.length<=1&&e.loop==="one"&&(e.loop="all"),e}},function(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h){o.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(o,h,s){var e,t,r=o.exports={};function n(){throw new Error("setTimeout has not been defined")}function i(){throw new Error("clearTimeout has not been defined")}function u(x){if(e===setTimeout)return setTimeout(x,0);if((e===n||!e)&&setTimeout)return e=setTimeout,setTimeout(x,0);try{return e(x,0)}catch{try{return e.call(null,x,0)}catch{return e.call(this,x,0)}}}(function(){try{e=typeof setTimeout=="function"?setTimeout:n}catch{e=n}try{t=typeof clearTimeout=="function"?clearTimeout:i}catch{t=i}})();var a,l=[],c=!1,p=-1;function d(){c&&a&&(c=!1,a.length?l=a.concat(l):p=-1,l.length&&y())}function y(){if(!c){var x=u(d);c=!0;for(var b=l.length;b;){for(a=l,l=[];++p<b;)a&&a[p].run();p=-1,b=l.length}a=null,c=!1,function(g){if(t===clearTimeout)return clearTimeout(g);if((t===i||!t)&&clearTimeout)return t=clearTimeout,clearTimeout(g);try{t(g)}catch{try{return t.call(null,g)}catch{return t.call(this,g)}}}(x)}}function m(x,b){this.fun=x,this.array=b}function w(){}r.nextTick=function(x){var b=new Array(arguments.length-1);if(arguments.length>1)for(var g=1;g<arguments.length;g++)b[g-1]=arguments[g];l.push(new m(x,b)),l.length!==1||c||u(y)},m.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=w,r.addListener=w,r.once=w,r.off=w,r.removeListener=w,r.removeAllListeners=w,r.emit=w,r.prependListener=w,r.prependOnceListener=w,r.listeners=function(x){return[]},r.binding=function(x){throw new Error("process.binding is not supported")},r.cwd=function(){return"/"},r.chdir=function(x){throw new Error("process.chdir is not supported")},r.umask=function(){return 0}},function(o,h,s){(function(e,t){(function(r,n){if(!r.setImmediate){var i,u,a,l,c,p=1,d={},y=!1,m=r.document,w=Object.getPrototypeOf&&Object.getPrototypeOf(r);w=w&&w.setTimeout?w:r,{}.toString.call(r.process)==="[object process]"?i=function(g){t.nextTick(function(){b(g)})}:function(){if(r.postMessage&&!r.importScripts){var g=!0,f=r.onmessage;return r.onmessage=function(){g=!1},r.postMessage("","*"),r.onmessage=f,g}}()?(l="setImmediate$"+Math.random()+"$",c=function(g){g.source===r&&typeof g.data=="string"&&g.data.indexOf(l)===0&&b(+g.data.slice(l.length))},r.addEventListener?r.addEventListener("message",c,!1):r.attachEvent("onmessage",c),i=function(g){r.postMessage(l+g,"*")}):r.MessageChannel?((a=new MessageChannel).port1.onmessage=function(g){b(g.data)},i=function(g){a.port2.postMessage(g)}):m&&"onreadystatechange"in m.createElement("script")?(u=m.documentElement,i=function(g){var f=m.createElement("script");f.onreadystatechange=function(){b(g),f.onreadystatechange=null,u.removeChild(f),f=null},u.appendChild(f)}):i=function(g){setTimeout(b,0,g)},w.setImmediate=function(g){typeof g!="function"&&(g=new Function(""+g));for(var f=new Array(arguments.length-1),v=0;v<f.length;v++)f[v]=arguments[v+1];var k={callback:g,args:f};return d[p]=k,i(p),p++},w.clearImmediate=x}function x(g){delete d[g]}function b(g){if(y)setTimeout(b,0,g);else{var f=d[g];if(f){y=!0;try{(function(v){var k=v.callback,T=v.args;switch(T.length){case 0:k();break;case 1:k(T[0]);break;case 2:k(T[0],T[1]);break;case 3:k(T[0],T[1],T[2]);break;default:k.apply(n,T)}})(f)}finally{x(g),y=!1}}}}})(typeof self>"u"?e===void 0?void 0:e:self)}).call(this,s(4),s(34))},function(o,h,s){var e=Function.prototype.apply;function t(r,n){this._id=r,this._clearFn=n}h.setTimeout=function(){return new t(e.call(setTimeout,window,arguments),clearTimeout)},h.setInterval=function(){return new t(e.call(setInterval,window,arguments),clearInterval)},h.clearTimeout=h.clearInterval=function(r){r&&r.close()},t.prototype.unref=t.prototype.ref=function(){},t.prototype.close=function(){this._clearFn.call(window,this._id)},h.enroll=function(r,n){clearTimeout(r._idleTimeoutId),r._idleTimeout=n},h.unenroll=function(r){clearTimeout(r._idleTimeoutId),r._idleTimeout=-1},h._unrefActive=h.active=function(r){clearTimeout(r._idleTimeoutId);var n=r._idleTimeout;n>=0&&(r._idleTimeoutId=setTimeout(function(){r._onTimeout&&r._onTimeout()},n))},s(35),h.setImmediate=setImmediate,h.clearImmediate=clearImmediate},function(o,h,s){(function(e){var t=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(d){return typeof d}:function(d){return d&&typeof Symbol=="function"&&d.constructor===Symbol&&d!==Symbol.prototype?"symbol":typeof d},r=setTimeout;function n(){}function i(d){if(!(this instanceof i))throw new TypeError("Promises must be constructed via new");if(typeof d!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],p(d,this)}function u(d,y){for(;d._state===3;)d=d._value;d._state!==0?(d._handled=!0,i._immediateFn(function(){var m=d._state===1?y.onFulfilled:y.onRejected;if(m!==null){var w;try{w=m(d._value)}catch(x){return void l(y.promise,x)}a(y.promise,w)}else(d._state===1?a:l)(y.promise,d._value)})):d._deferreds.push(y)}function a(d,y){try{if(y===d)throw new TypeError("A promise cannot be resolved with itself.");if(y&&((y===void 0?"undefined":t(y))==="object"||typeof y=="function")){var m=y.then;if(y instanceof i)return d._state=3,d._value=y,void c(d);if(typeof m=="function")return void p((w=m,x=y,function(){w.apply(x,arguments)}),d)}d._state=1,d._value=y,c(d)}catch(b){l(d,b)}var w,x}function l(d,y){d._state=2,d._value=y,c(d)}function c(d){d._state===2&&d._deferreds.length===0&&i._immediateFn(function(){d._handled||i._unhandledRejectionFn(d._value)});for(var y=0,m=d._deferreds.length;y<m;y++)u(d,d._deferreds[y]);d._deferreds=null}function p(d,y){var m=!1;try{d(function(w){m||(m=!0,a(y,w))},function(w){m||(m=!0,l(y,w))})}catch(w){if(m)return;m=!0,l(y,w)}}i.prototype.catch=function(d){return this.then(null,d)},i.prototype.then=function(d,y){var m=new this.constructor(n);return u(this,new function(w,x,b){this.onFulfilled=typeof w=="function"?w:null,this.onRejected=typeof x=="function"?x:null,this.promise=b}(d,y,m)),m},i.prototype.finally=function(d){var y=this.constructor;return this.then(function(m){return y.resolve(d()).then(function(){return m})},function(m){return y.resolve(d()).then(function(){return y.reject(m)})})},i.all=function(d){return new i(function(y,m){if(!d||d.length===void 0)throw new TypeError("Promise.all accepts an array");var w=Array.prototype.slice.call(d);if(w.length===0)return y([]);var x=w.length;function b(f,v){try{if(v&&((v===void 0?"undefined":t(v))==="object"||typeof v=="function")){var k=v.then;if(typeof k=="function")return void k.call(v,function(T){b(f,T)},m)}w[f]=v,--x==0&&y(w)}catch(T){m(T)}}for(var g=0;g<w.length;g++)b(g,w[g])})},i.resolve=function(d){return d&&(d===void 0?"undefined":t(d))==="object"&&d.constructor===i?d:new i(function(y){y(d)})},i.reject=function(d){return new i(function(y,m){m(d)})},i.race=function(d){return new i(function(y,m){for(var w=0,x=d.length;w<x;w++)d[w].then(y,m)})},i._immediateFn=typeof e=="function"&&function(d){e(d)}||function(d){r(d,0)},i._unhandledRejectionFn=function(d){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",d)},o.exports=i}).call(this,s(36).setImmediate)},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0});var e=function(){function g(f,v){for(var k=0;k<v.length;k++){var T=v[k];T.enumerable=T.enumerable||!1,T.configurable=!0,"value"in T&&(T.writable=!0),Object.defineProperty(f,T.key,T)}}return function(f,v,k){return v&&g(f.prototype,v),k&&g(f,k),f}}(),t=w(s(37)),r=w(s(0)),n=w(s(3)),i=w(s(18)),u=w(s(17)),a=w(s(13)),l=w(s(12)),c=w(s(11)),p=w(s(9)),d=w(s(8)),y=w(s(7)),m=w(s(6));function w(g){return g&&g.__esModule?g:{default:g}}var x=[],b=function(){function g(f){if(function(T,j){if(!(T instanceof j))throw new TypeError("Cannot call a class as a function")}(this,g),this.options=(0,i.default)(f),this.container=this.options.container,this.paused=!0,this.playedPromise=t.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,this.options.lrcType===2||this.options.lrcType===!0)for(var v=this.container.getElementsByClassName("aplayer-lrc-content"),k=0;k<v.length;k++)this.options.audio[k]&&(this.options.audio[k].lrc=v[k].innerHTML);this.template=new u.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 c.default({container:this.template.lrc,async:this.options.lrcType===3,player:this})),this.events=new y.default,this.storage=new l.default(this),this.bar=new a.default(this.template),this.controller=new p.default(this),this.timer=new d.default(this),this.list=new m.default(this),this.initAudio(),this.bindEvents(),this.options.order==="random"?this.list.switch(this.randomOrder[0]):this.list.switch(0),this.options.autoplay&&this.play(),x.push(this)}return e(g,[{key:"initAudio",value:function(){var f=this;this.audio=document.createElement("audio"),this.audio.preload=this.options.preload;for(var v=function(T){f.audio.addEventListener(f.events.audioEvents[T],function(j){f.events.trigger(f.events.audioEvents[T],j)})},k=0;k<this.events.audioEvents.length;k++)v(k);this.volume(this.storage.get("volume"),!0)}},{key:"bindEvents",value:function(){var f=this;this.on("play",function(){f.paused&&f.setUIPlaying()}),this.on("pause",function(){f.paused||f.setUIPaused()}),this.on("timeupdate",function(){if(!f.disableTimeupdate){f.bar.set("played",f.audio.currentTime/f.duration,"width"),f.lrc&&f.lrc.update();var k=r.default.secondToTime(f.audio.currentTime);f.template.ptime.innerHTML!==k&&(f.template.ptime.innerHTML=k)}}),this.on("durationchange",function(){f.duration!==1&&(f.template.dtime.innerHTML=r.default.secondToTime(f.duration))}),this.on("progress",function(){var k=f.audio.buffered.length?f.audio.buffered.end(f.audio.buffered.length-1)/f.duration:0;f.bar.set("loaded",k,"width")});var v=void 0;this.on("error",function(){f.list.audios.length>1?(f.notice("An audio error has occurred, player will skip forward in 2 seconds."),v=setTimeout(function(){f.skipForward(),f.paused||f.play()},2e3)):f.list.audios.length===1&&f.notice("An audio error has occurred.")}),this.events.on("listswitch",function(){v&&clearTimeout(v)}),this.on("ended",function(){f.options.loop==="none"?f.options.order==="list"?f.list.index<f.list.audios.length-1?(f.list.switch((f.list.index+1)%f.list.audios.length),f.play()):(f.list.switch((f.list.index+1)%f.list.audios.length),f.pause()):f.options.order==="random"&&(f.randomOrder.indexOf(f.list.index)<f.randomOrder.length-1?(f.list.switch(f.nextIndex()),f.play()):(f.list.switch(f.nextIndex()),f.pause())):f.options.loop==="one"?(f.list.switch(f.list.index),f.play()):f.options.loop==="all"&&(f.skipForward(),f.play())})}},{key:"setAudio",value:function(f){this.hls&&(this.hls.destroy(),this.hls=null);var v=f.type;this.options.customAudioType&&this.options.customAudioType[v]?Object.prototype.toString.call(this.options.customAudioType[v])==="[object Function]"?this.options.customAudioType[v](this.audio,f,this):console.error("Illegal customType: "+v):(v&&v!=="auto"||(v=/m3u8(#|\?|$)/i.exec(f.url)?"hls":"normal"),v==="hls"?Hls.isSupported()?(this.hls=new Hls,this.hls.loadSource(f.url),this.hls.attachMedia(this.audio)):this.audio.canPlayType("application/x-mpegURL")||this.audio.canPlayType("application/vnd.apple.mpegURL")?this.audio.src=f.url:this.notice("Error: HLS is not supported."):v==="normal"&&(this.audio.src=f.url)),this.seek(0),this.paused||this.audio.play()}},{key:"theme",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:this.list.audios[this.list.index].theme||this.options.theme,v=arguments.length>1&&arguments[1]!==void 0?arguments[1]:this.list.index;(!(arguments.length>2&&arguments[2]!==void 0)||arguments[2])&&this.list.audios[v]&&(this.list.audios[v].theme=f),this.template.listCurs[v]&&(this.template.listCurs[v].style.backgroundColor=f),v===this.list.index&&(this.template.pic.style.backgroundColor=f,this.template.played.style.background=f,this.template.thumb.style.background=f,this.template.volume.style.background=f)}},{key:"seek",value:function(f){f=Math.max(f,0),f=Math.min(f,this.duration),this.audio.currentTime=f,this.bar.set("played",f/this.duration,"width"),this.template.ptime.innerHTML=r.default.secondToTime(f)}},{key:"setUIPlaying",value:function(){var f=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(){f.template.button.innerHTML=n.default.pause},100),this.template.skipPlayButton.innerHTML=n.default.pause),this.timer.enable("loading"),this.options.mutex)for(var v=0;v<x.length;v++)this!==x[v]&&x[v].pause()}},{key:"play",value:function(){var f=this;this.setUIPlaying();var v=this.audio.play();v&&v.catch(function(k){console.warn(k),k.name==="NotAllowedError"&&f.setUIPaused()})}},{key:"setUIPaused",value:function(){var f=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(){f.template.button.innerHTML=n.default.play},100),this.template.skipPlayButton.innerHTML=n.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=n.default.volumeUp:this.volume()>0?this.template.volumeButton.innerHTML=n.default.volumeDown:this.template.volumeButton.innerHTML=n.default.volumeOff}},{key:"volume",value:function(f,v){return f=parseFloat(f),isNaN(f)||(f=Math.max(f,0),f=Math.min(f,1),this.bar.set("volume",f,"height"),v||this.storage.set("volume",f),this.audio.volume=f,this.audio.muted&&(this.audio.muted=!1),this.switchVolumeIcon()),this.audio.muted?0:this.audio.volume}},{key:"on",value:function(f,v){this.events.on(f,v)}},{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(f){this.list.switch(f)}},{key:"addAudio",value:function(f){this.list.add(f)}},{key:"removeAudio",value:function(f){this.list.remove(f)}},{key:"destroy",value:function(){x.splice(x.indexOf(this),1),this.pause(),this.container.innerHTML="",this.audio.src="",this.timer.destroy(),this.events.trigger("destroy")}},{key:"setMode",value:function(){var f=arguments.length>0&&arguments[0]!==void 0?arguments[0]:"normal";this.mode=f,f==="mini"?this.container.classList.add("aplayer-narrow"):f==="normal"&&this.container.classList.remove("aplayer-narrow")}},{key:"notice",value:function(f){var v=this,k=arguments.length>1&&arguments[1]!==void 0?arguments[1]:2e3,T=arguments.length>2&&arguments[2]!==void 0?arguments[2]:.8;this.template.notice.innerHTML=f,this.template.notice.style.opacity=T,this.noticeTime&&clearTimeout(this.noticeTime),this.events.trigger("noticeshow",{text:f}),k&&(this.noticeTime=setTimeout(function(){v.template.notice.style.opacity=0,v.events.trigger("noticehide")},k))}},{key:"prevIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return this.list.index-1<0?this.list.audios.length-1:this.list.index-1;if(this.options.order==="random"){var f=this.randomOrder.indexOf(this.list.index);return f===0?this.randomOrder[this.randomOrder.length-1]:this.randomOrder[f-1]}}},{key:"nextIndex",value:function(){if(!(this.list.audios.length>1))return 0;if(this.options.order==="list")return(this.list.index+1)%this.list.audios.length;if(this.options.order==="random"){var f=this.randomOrder.indexOf(this.list.index);return f===this.randomOrder.length-1?this.randomOrder[0]:this.randomOrder[f+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"}}]),g}();h.default=b},,function(o,h,s){},function(o,h,s){Object.defineProperty(h,"__esModule",{value:!0}),s(40);var e,t=s(38),r=(e=t)&&e.__esModule?e:{default:e};console.log(`
 %c APlayer v1.10.1 af84efb %c http://aplayer.js.org 
`,"color: #fadfa3; background: #030307; padding:5px 0;","background: #fadfa3; padding:5px 0;"),h.default=r.default}]).default})})(we);var _e=we.exports;const Re=ve(_e);function ge(F){throw new Error('Could not dynamically require "'+F+'". Please configure the dynamicRequireTargets or/and ignoreDynamicRequires option of @rollup/plugin-commonjs appropriately for this require call to work.')}var pe={exports:{}};/*!
 * artplayer.js v5.1.1
 * Github: https://github.com/zhw2590582/ArtPlayer
 * (c) 2017-2024 Harvey Zack
 * Released under the MIT License.
 */pe.exports;(function(F,A){(function(o,h,s,e,t){var r=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:typeof me<"u"?me:{},n=typeof r[e]=="function"&&r[e],i=n.cache||{},u=typeof ge=="function"&&ge.bind(F);function a(p,d){if(!i[p]){if(!o[p]){var y=typeof r[e]=="function"&&r[e];if(!d&&y)return y(p,!0);if(n)return n(p,!0);if(u&&typeof p=="string")return u(p);var m=new Error("Cannot find module '"+p+"'");throw m.code="MODULE_NOT_FOUND",m}x.resolve=function(b){var g=o[p][1][b];return g??b},x.cache={};var w=i[p]=new a.Module(p);o[p][0].call(w.exports,x,w,w.exports,this)}return i[p].exports;function x(b){var g=x.resolve(b);return g===!1?{}:a(g)}}a.isParcelRequire=!0,a.Module=function(p){this.id=p,this.bundle=a,this.exports={}},a.modules=o,a.cache=i,a.parent=n,a.register=function(p,d){o[p]=[function(y,m){m.exports=d},{}]},Object.defineProperty(a,"root",{get:function(){return r[e]}}),r[e]=a;for(var l=0;l<h.length;l++)a(h[l]);if(s){var c=a(s);F.exports=c}})({abjMI:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("bundle-text:./style/index.less"),r=e.interopDefault(t),n=o("option-validator"),i=e.interopDefault(n),u=o("./utils/emitter"),a=e.interopDefault(u),l=o("./utils"),c=o("./scheme"),p=e.interopDefault(c),d=o("./config"),y=e.interopDefault(d),m=o("./template"),w=e.interopDefault(m),x=o("./i18n"),b=e.interopDefault(x),g=o("./player"),f=e.interopDefault(g),v=o("./control"),k=e.interopDefault(v),T=o("./contextmenu"),j=e.interopDefault(T),M=o("./info"),S=e.interopDefault(M),$=o("./subtitle"),B=e.interopDefault($),I=o("./events"),C=e.interopDefault(I),E=o("./hotkey"),H=e.interopDefault(E),_=o("./layer"),R=e.interopDefault(_),D=o("./loading"),Y=e.interopDefault(D),K=o("./notice"),G=e.interopDefault(K),X=o("./mask"),J=e.interopDefault(X),Q=o("./icons"),ee=e.interopDefault(Q),te=o("./setting"),re=e.interopDefault(te),ae=o("./storage"),ne=e.interopDefault(ae),oe=o("./plugins"),ie=e.interopDefault(oe);let se=0;const N=[];class O extends a.default{constructor(P,W){super(),this.id=++se;const U=l.mergeDeep(O.option,P);if(U.container=P.container,this.option=(0,i.default)(U,p.default),this.isLock=!1,this.isReady=!1,this.isFocus=!1,this.isInput=!1,this.isRotate=!1,this.isDestroy=!1,this.template=new w.default(this),this.events=new C.default(this),this.storage=new ne.default(this),this.icons=new ee.default(this),this.i18n=new b.default(this),this.notice=new G.default(this),this.player=new f.default(this),this.layers=new R.default(this),this.controls=new k.default(this),this.contextmenu=new j.default(this),this.subtitle=new B.default(this),this.info=new S.default(this),this.loading=new Y.default(this),this.hotkey=new H.default(this),this.mask=new J.default(this),this.setting=new re.default(this),this.plugins=new ie.default(this),typeof W=="function"&&this.on("ready",()=>W.call(this,this)),O.DEBUG){const V=q=>console.log(`[ART.${this.id}] -> ${q}`);V("Version@"+O.version),V("Env@"+O.env),V("Build@"+O.build);for(let q=0;q<y.default.events.length;q++)this.on("video:"+y.default.events[q],le=>V("Event@"+le.type))}N.push(this)}static get instances(){return N}static get version(){return"5.1.1"}static get env(){return"production"}static get build(){return"2024-01-11 10:39:44"}static get config(){return y.default}static get utils(){return l}static get scheme(){return p.default}static get Emitter(){return a.default}static get validator(){return i.default}static get kindOf(){return i.default.kindOf}static get html(){return w.default.html}static get option(){return{id:"",container:"#artplayer",url:"",poster:"",type:"",theme:"#f00",volume:.7,isLive:!1,muted:!1,autoplay:!1,autoSize:!1,autoMini:!1,loop:!1,flip:!1,playbackRate:!1,aspectRatio:!1,screenshot:!1,setting:!1,hotkey:!0,pip:!1,mutex:!0,backdrop:!0,fullscreen:!1,fullscreenWeb:!1,subtitleOffset:!1,miniProgressBar:!1,useSSR:!1,playsInline:!0,lock:!1,fastForward:!1,autoPlayback:!1,autoOrientation:!1,airplay:!1,layers:[],contextmenu:[],controls:[],settings:[],quality:[],highlight:[],plugins:[],thumbnails:{url:"",number:60,column:10,width:0,height:0},subtitle:{url:"",type:"",style:{},name:"",escape:!0,encoding:"utf-8",onVttLoad:P=>P},moreVideoAttr:{controls:!1,preload:l.isSafari?"auto":"metadata"},i18n:{},icons:{},cssVar:{},customType:{},lang:navigator.language.toLowerCase()}}get proxy(){return this.events.proxy}get query(){return this.template.query}get video(){return this.template.$video}destroy(P=!0){this.events.destroy(),this.template.destroy(P),N.splice(N.indexOf(this),1),this.isDestroy=!0,this.emit("destroy")}}s.default=O,O.DEBUG=!1,O.CONTEXTMENU=!0,O.NOTICE_TIME=2e3,O.SETTING_WIDTH=250,O.SETTING_ITEM_WIDTH=200,O.SETTING_ITEM_HEIGHT=35,O.RESIZE_TIME=200,O.SCROLL_TIME=200,O.SCROLL_GAP=50,O.AUTO_PLAYBACK_MAX=10,O.AUTO_PLAYBACK_MIN=5,O.AUTO_PLAYBACK_TIMEOUT=3e3,O.RECONNECT_TIME_MAX=5,O.RECONNECT_SLEEP_TIME=1e3,O.CONTROL_HIDE_TIME=3e3,O.DBCLICK_TIME=300,O.DBCLICK_FULLSCREEN=!0,O.MOBILE_DBCLICK_PLAY=!0,O.MOBILE_CLICK_PLAY=!1,O.AUTO_ORIENTATION_TIME=200,O.INFO_LOOP_TIME=1e3,O.FAST_FORWARD_VALUE=3,O.FAST_FORWARD_TIME=1e3,O.TOUCH_MOVE_RATIO=.5,O.VOLUME_STEP=.1,O.SEEK_STEP=5,O.PLAYBACK_RATE=[.5,.75,1,1.25,1.5,2],O.ASPECT_RATIO=["default","4:3","16:9"],O.FLIP=["normal","horizontal","vertical"],O.FULLSCREEN_WEB_IN_BODY=!1,O.LOG_VERSION=!0,O.USE_RAF=!1,l.isBrowser&&(window.Artplayer=O,l.setStyleText("artplayer-style",r.default),setTimeout(()=>{O.LOG_VERSION&&console.log(`%c ArtPlayer %c ${O.version} %c https://artplayer.org`,"color: #fff; background: #5f5f5f","color: #fff; background: #4bc729","")},100))},{"bundle-text:./style/index.less":"kfOe8","option-validator":"bAWi2","./utils/emitter":"2bGVu","./utils":"h3rH9","./scheme":"AdvwB","./config":"9Xmqu","./template":"2gKYH","./i18n":"1AdeF","./player":"556MW","./control":"14IBq","./contextmenu":"7iUum","./info":"hD2Lg","./subtitle":"lum0D","./events":"1Epl5","./hotkey":"eTow4","./layer":"4fDoD","./loading":"fE0Sp","./notice":"9PuGy","./mask":"2etr0","./icons":"6dYSr","./setting":"bRHiA","./storage":"f2Thp","./plugins":"96ThS","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kfOe8:[function(o,h,s){h.exports='.art-video-player{--art-theme:red;--art-font-color:#fff;--art-background-color:#000;--art-text-shadow-color:#00000080;--art-transition-duration:.2s;--art-padding:10px;--art-border-radius:3px;--art-progress-height:6px;--art-progress-color:#fff3;--art-hover-color:#fff3;--art-loaded-color:#fff3;--art-state-size:80px;--art-state-opacity:.8;--art-bottom-height:100px;--art-bottom-offset:20px;--art-bottom-gap:5px;--art-highlight-width:8px;--art-highlight-color:#ffffff80;--art-control-height:46px;--art-control-opacity:.75;--art-control-icon-size:36px;--art-control-icon-scale:1.1;--art-volume-height:120px;--art-volume-handle-size:14px;--art-lock-size:36px;--art-indicator-scale:0;--art-indicator-size:16px;--art-fullscreen-web-index:9999;--art-settings-icon-size:24px;--art-settings-max-height:300px;--art-selector-max-height:300px;--art-contextmenus-min-width:250px;--art-subtitle-font-size:20px;--art-subtitle-gap:5px;--art-subtitle-bottom:15px;--art-subtitle-border:#000;--art-widget-background:#000000d9;--art-tip-background:#00000080;--art-scrollbar-size:4px;--art-scrollbar-background:#ffffff40;--art-scrollbar-background-hover:#ffffff80;--art-mini-progress-height:2px}.art-bg-cover{background-position:50%;background-repeat:no-repeat;background-size:cover}.art-bottom-gradient{background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x}.art-backdrop-filter{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-truncate{text-overflow:ellipsis;white-space:nowrap;overflow:hidden}.art-video-player{width:100%;height:100%;zoom:1;text-align:left;direction:ltr;user-select:none;box-sizing:border-box;color:var(--art-font-color);background-color:var(--art-background-color);text-shadow:0 0 2px var(--art-text-shadow-color);-webkit-tap-highlight-color:#0000;-ms-touch-action:manipulation;touch-action:manipulation;-ms-high-contrast-adjust:none;outline:0;margin:0 auto;padding:0;font-family:PingFang SC,Helvetica Neue,Microsoft YaHei,Roboto,Arial,sans-serif;font-size:14px;line-height:1.3;position:relative}.art-video-player *,.art-video-player :before,.art-video-player :after{box-sizing:border-box}.art-video-player ::-webkit-scrollbar{width:var(--art-scrollbar-size);height:var(--art-scrollbar-size)}.art-video-player ::-webkit-scrollbar-thumb{background-color:var(--art-scrollbar-background)}.art-video-player ::-webkit-scrollbar-thumb:hover{background-color:var(--art-scrollbar-background-hover)}.art-video-player img{max-width:100%;vertical-align:top}.art-video-player svg{fill:var(--art-font-color)}.art-video-player a{color:var(--art-font-color);text-decoration:none}.art-icon{justify-content:center;align-items:center;line-height:1;display:flex}.art-video-player.art-backdrop .art-contextmenus,.art-video-player.art-backdrop .art-info,.art-video-player.art-backdrop .art-settings,.art-video-player.art-backdrop .art-layer-auto-playback,.art-video-player.art-backdrop .art-selector-list,.art-video-player.art-backdrop .art-volume-inner{-webkit-backdrop-filter:saturate(180%)blur(20px);backdrop-filter:saturate(180%)blur(20px);background-color:#000000bf!important}.art-video{z-index:10;width:100%;height:100%;cursor:pointer;position:absolute;inset:0}.art-poster{z-index:11;width:100%;height:100%;pointer-events:none;background-position:50%;background-repeat:no-repeat;background-size:cover;position:absolute;inset:0}.art-video-player .art-subtitle{z-index:20;width:100%;text-align:center;pointer-events:none;justify-content:center;align-items:center;gap:var(--art-subtitle-gap);bottom:var(--art-subtitle-bottom);font-size:var(--art-subtitle-font-size);transition:bottom var(--art-transition-duration)ease;text-shadow:var(--art-subtitle-border)1px 0 1px,var(--art-subtitle-border)0 1px 1px,var(--art-subtitle-border)-1px 0 1px,var(--art-subtitle-border)0 -1px 1px,var(--art-subtitle-border)1px 1px 1px,var(--art-subtitle-border)-1px -1px 1px,var(--art-subtitle-border)1px -1px 1px,var(--art-subtitle-border)-1px 1px 1px;flex-direction:column;padding:0 5%;display:none;position:absolute}.art-video-player.art-subtitle-show .art-subtitle{display:flex}.art-video-player.art-control-show .art-subtitle{bottom:calc(var(--art-control-height) + var(--art-subtitle-bottom))}.art-danmuku{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0;overflow:hidden}.art-video-player .art-layers{z-index:40;width:100%;height:100%;pointer-events:none;display:none;position:absolute;inset:0}.art-video-player .art-layers .art-layer{pointer-events:auto}.art-video-player.art-layer-show .art-layers{display:flex}.art-video-player .art-mask{z-index:50;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:flex;position:absolute;inset:0}.art-video-player .art-mask .art-state{opacity:0;width:var(--art-state-size);height:var(--art-state-size);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;display:flex;transform:scale(2)}.art-video-player.art-mask-show .art-state{cursor:pointer;pointer-events:auto;opacity:var(--art-state-opacity);transform:scale(1)}.art-video-player.art-loading-show .art-state{display:none}.art-video-player .art-loading{z-index:70;width:100%;height:100%;pointer-events:none;justify-content:center;align-items:center;display:none;position:absolute;inset:0}.art-video-player.art-loading-show .art-loading{display:flex}.art-video-player .art-bottom{z-index:60;width:100%;height:100%;opacity:0;pointer-events:none;padding:0 var(--art-padding);transition:all var(--art-transition-duration)ease;background-size:100% var(--art-bottom-height);background-image:linear-gradient(#0000,#0006,#000);background-position:bottom;background-repeat:repeat-x;flex-direction:column;justify-content:flex-end;display:flex;position:absolute;inset:0;overflow:hidden}.art-video-player .art-bottom .art-controls,.art-video-player .art-bottom .art-progress{transform:translateY(var(--art-bottom-offset));transition:transform var(--art-transition-duration)ease}.art-video-player.art-control-show .art-bottom,.art-video-player.art-hover .art-bottom{opacity:1}.art-video-player.art-control-show .art-bottom .art-controls,.art-video-player.art-hover .art-bottom .art-controls,.art-video-player.art-control-show .art-bottom .art-progress,.art-video-player.art-hover .art-bottom .art-progress{transform:translateY(0)}.art-bottom .art-progress{z-index:0;pointer-events:auto;padding-bottom:var(--art-bottom-gap);position:relative}.art-bottom .art-progress .art-control-progress{cursor:pointer;height:var(--art-progress-height);justify-content:center;align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner{height:50%;width:100%;transition:height var(--art-transition-duration)ease;background-color:var(--art-progress-color);align-items:center;display:flex;position:relative}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-hover{z-index:0;width:100%;height:100%;width:0%;background-color:var(--art-hover-color);display:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-loaded{z-index:10;width:100%;height:100%;width:0%;background-color:var(--art-loaded-color);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-played{z-index:20;width:100%;height:100%;width:0%;background-color:var(--art-theme);position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight{z-index:30;width:100%;height:100%;pointer-events:none;position:absolute;inset:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-highlight span{z-index:0;width:100%;height:100%;pointer-events:auto;transform:translateX(calc(var(--art-highlight-width)/-2));background-color:var(--art-highlight-color);position:absolute;inset:0 auto 0 0;width:var(--art-highlight-width)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{z-index:40;width:var(--art-indicator-size);height:var(--art-indicator-size);transform:scale(var(--art-indicator-scale));margin-left:calc(var(--art-indicator-size)/-2);transition:transform var(--art-transition-duration)ease;border-radius:50%;justify-content:center;align-items:center;display:flex;position:absolute;left:0}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator .art-icon{width:100%;height:100%;pointer-events:none}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:hover{transform:scale(1.2)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator:active{transform:scale(1)!important}.art-bottom .art-progress .art-control-progress .art-control-progress-inner .art-progress-tip{z-index:50;border-radius:var(--art-border-radius);white-space:nowrap;background-color:var(--art-tip-background);padding:3px 5px;font-size:12px;line-height:1;display:none;position:absolute;top:-25px;left:0}.art-bottom .art-progress .art-control-progress:hover .art-control-progress-inner{height:100%}.art-bottom .art-progress .art-control-thumbnails{bottom:calc(var(--art-bottom-gap) + 10px);border-radius:var(--art-border-radius);pointer-events:none;background-color:var(--art-widget-background);display:none;position:absolute;left:0;box-shadow:0 1px 3px #0003,0 1px 2px -1px #0003}.art-bottom:hover .art-progress .art-control-progress .art-control-progress-inner .art-progress-indicator{transform:scale(1)}.art-controls{z-index:10;pointer-events:auto;height:var(--art-control-height);justify-content:space-between;align-items:center;display:flex;position:relative}.art-controls .art-controls-left,.art-controls .art-controls-right{height:100%;display:flex}.art-controls .art-controls-center{height:100%;flex:1;justify-content:center;align-items:center;padding:0 10px;display:none}.art-controls .art-controls-right{justify-content:flex-end}.art-controls .art-control{cursor:pointer;white-space:nowrap;opacity:var(--art-control-opacity);min-height:var(--art-control-height);min-width:var(--art-control-height);transition:opacity var(--art-transition-duration)ease;flex-shrink:0;justify-content:center;align-items:center;display:flex}.art-controls .art-control .art-icon{height:var(--art-control-icon-size);width:var(--art-control-icon-size);transform:scale(var(--art-control-icon-scale));transition:transform var(--art-transition-duration)ease}.art-controls .art-control .art-icon:active{transform:scale(calc(var(--art-control-icon-scale)*.8))}.art-controls .art-control:hover{opacity:1}.art-control-volume{position:relative}.art-control-volume .art-volume-panel{text-align:center;cursor:default;opacity:0;pointer-events:none;left:0;right:0;bottom:var(--art-control-height);width:var(--art-control-height);height:var(--art-volume-height);transition:all var(--art-transition-duration)ease;justify-content:center;align-items:center;padding:0 5px;font-size:12px;display:flex;position:absolute;transform:translateY(10px)}.art-control-volume .art-volume-panel .art-volume-inner{height:100%;width:100%;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);flex-direction:column;align-items:center;gap:10px;padding:10px 0 12px;display:flex}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider{width:100%;cursor:pointer;flex:1;justify-content:center;display:flex;position:relative}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle{width:2px;border-radius:var(--art-border-radius);background-color:#ffffff40;justify-content:center;display:flex;position:relative;overflow:hidden}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-handle .art-volume-loaded{z-index:0;width:100%;height:100%;background-color:var(--art-theme);position:absolute;inset:0}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider .art-volume-indicator{width:var(--art-volume-handle-size);height:var(--art-volume-handle-size);margin-top:calc(var(--art-volume-handle-size)/-2);background-color:var(--art-theme);transition:transform var(--art-transition-duration)ease;border-radius:100%;flex-shrink:0;position:absolute;transform:scale(1)}.art-control-volume .art-volume-panel .art-volume-inner .art-volume-slider:active .art-volume-indicator{transform:scale(.9)}.art-control-volume:hover .art-volume-panel{opacity:1;pointer-events:auto;transform:translateY(0)}.art-video-player .art-notice{z-index:80;width:100%;height:100%;height:auto;padding:var(--art-padding);pointer-events:none;display:none;position:absolute;inset:0 0 auto}.art-video-player .art-notice .art-notice-inner{border-radius:var(--art-border-radius);background-color:var(--art-tip-background);padding:5px;line-height:1;display:inline-flex}.art-video-player.art-notice-show .art-notice{display:flex}.art-video-player .art-contextmenus{z-index:120;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);min-width:var(--art-contextmenus-min-width);flex-direction:column;padding:5px 0;font-size:12px;display:none;position:absolute}.art-video-player .art-contextmenus .art-contextmenu{cursor:pointer;border-bottom:1px solid #ffffff1a;padding:10px 15px;display:flex}.art-video-player .art-contextmenus .art-contextmenu span{padding:0 8px}.art-video-player .art-contextmenus .art-contextmenu span:hover,.art-video-player .art-contextmenus .art-contextmenu span.art-current{color:var(--art-theme)}.art-video-player .art-contextmenus .art-contextmenu:hover{background-color:#ffffff1a}.art-video-player .art-contextmenus .art-contextmenu:last-child{border-bottom:none}.art-video-player.art-contextmenu-show .art-contextmenus{display:flex}.art-video-player .art-settings{z-index:90;border-radius:var(--art-border-radius);transform-origin:100% 100%;max-height:var(--art-settings-max-height);left:auto;right:var(--art-padding);bottom:var(--art-control-height);transform:scale(var(--art-settings-scale));transition:all var(--art-transition-duration)ease;background-color:var(--art-widget-background);flex-direction:column;display:none;position:absolute;overflow:hidden auto}.art-video-player .art-settings .art-setting-panel{flex-direction:column;display:none}.art-video-player .art-settings .art-setting-panel.art-current{display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item{cursor:pointer;transition:background-color var(--art-transition-duration)ease;justify-content:space-between;align-items:center;padding:0 5px;display:flex;overflow:hidden}.art-video-player .art-settings .art-setting-panel .art-setting-item:hover{background-color:#ffffff1a}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current{color:var(--art-theme)}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-icon-check{visibility:hidden;height:15px}.art-video-player .art-settings .art-setting-panel .art-setting-item.art-current .art-icon-check{visibility:visible}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left{justify-content:center;align-items:center;gap:5px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-left .art-setting-item-left-icon{height:var(--art-settings-icon-size);width:var(--art-settings-icon-size);justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right{justify-content:center;align-items:center;gap:5px;font-size:12px;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-tooltip{white-space:nowrap;color:#ffffff80}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-item-right-icon{min-width:32px;height:24px;justify-content:center;align-items:center;display:flex}.art-video-player .art-settings .art-setting-panel .art-setting-item .art-setting-item-right .art-setting-range{height:3px;width:80px;appearance:none;background-color:#fff3;outline:none}.art-video-player .art-settings .art-setting-panel .art-setting-item-back{border-bottom:1px solid #ffffff1a}.art-video-player.art-setting-show .art-settings{display:flex}.art-video-player .art-info{left:var(--art-padding);top:var(--art-padding);z-index:100;border-radius:var(--art-border-radius);background-color:var(--art-widget-background);padding:10px;font-size:12px;display:none;position:absolute}.art-video-player .art-info .art-info-panel{flex-direction:column;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item{align-items:center;gap:5px;display:flex}.art-video-player .art-info .art-info-panel .art-info-item .art-info-title{width:100px;text-align:right}.art-video-player .art-info .art-info-panel .art-info-item .art-info-content{width:250px;text-overflow:ellipsis;white-space:nowrap;user-select:all;overflow:hidden}.art-video-player .art-info .art-info-close{cursor:pointer;position:absolute;top:5px;right:5px}.art-video-player.art-info-show .art-info{display:flex}.art-hide-cursor *{cursor:none!important}.art-video-player[data-aspect-ratio]{overflow:hidden}.art-video-player[data-aspect-ratio] .art-video{object-fit:fill;box-sizing:content-box}.art-fullscreen{--art-control-height:60px;--art-control-icon-scale:1.3}.art-fullscreen-web{--art-control-height:60px;--art-control-icon-scale:1.3;z-index:var(--art-fullscreen-web-index);width:100%;height:100%;position:fixed;inset:0}.art-mini-popup{z-index:9999;width:320px;height:180px;border-radius:var(--art-border-radius);cursor:move;user-select:none;background:#000;transition:opacity .2s;position:fixed;overflow:hidden;box-shadow:0 0 5px #00000080}.art-mini-popup svg{fill:#fff}.art-mini-popup .art-video{pointer-events:none}.art-mini-popup .art-mini-close{z-index:20;cursor:pointer;opacity:0;transition:opacity .2s;position:absolute;top:10px;right:10px}.art-mini-popup .art-mini-state{z-index:30;width:100%;height:100%;pointer-events:none;opacity:0;background-color:#00000040;justify-content:center;align-items:center;transition:opacity .2s;display:flex;position:absolute;inset:0}.art-mini-popup .art-mini-state .art-icon{opacity:.75;cursor:pointer;pointer-events:auto;transition:transform .2s;transform:scale(3)}.art-mini-popup .art-mini-state .art-icon:active{transform:scale(2.5)}.art-mini-popup.art-mini-droging{opacity:.9}.art-mini-popup:hover .art-mini-close,.art-mini-popup:hover .art-mini-state{opacity:1}.art-video-player[data-flip=horizontal] .art-video{transform:scaleX(-1)}.art-video-player[data-flip=vertical] .art-video{transform:scaleY(-1)}.art-video-player .art-layer-lock{height:var(--art-lock-size);width:var(--art-lock-size);top:50%;left:var(--art-padding);background-color:var(--art-tip-background);border-radius:50%;justify-content:center;align-items:center;display:none;position:absolute;transform:translateY(-50%)}.art-video-player .art-layer-auto-playback{border-radius:var(--art-border-radius);left:var(--art-padding);bottom:calc(var(--art-control-height) + var(--art-bottom-gap) + 10px);background-color:var(--art-widget-background);align-items:center;gap:10px;padding:10px;line-height:1;display:none;position:absolute}.art-video-player .art-layer-auto-playback .art-auto-playback-close{cursor:pointer;justify-content:center;align-items:center;display:flex}.art-video-player .art-layer-auto-playback .art-auto-playback-close svg{width:15px;height:15px;fill:var(--art-theme)}.art-video-player .art-layer-auto-playback .art-auto-playback-jump{color:var(--art-theme);cursor:pointer}.art-video-player.art-lock .art-subtitle{bottom:var(--art-subtitle-bottom)!important}.art-video-player.art-mini-progress-bar .art-bottom,.art-video-player.art-lock .art-bottom{opacity:1;background-image:none;padding:0}.art-video-player.art-mini-progress-bar .art-bottom .art-controls,.art-video-player.art-lock .art-bottom .art-controls,.art-video-player.art-mini-progress-bar .art-bottom .art-progress,.art-video-player.art-lock .art-bottom .art-progress{transform:translateY(calc(var(--art-control-height) + var(--art-bottom-gap) + var(--art-progress-height)/4))}.art-video-player.art-mini-progress-bar .art-bottom .art-progress-indicator,.art-video-player.art-lock .art-bottom .art-progress-indicator{display:none!important}.art-video-player.art-control-show .art-layer-lock{display:flex}.art-control-selector{position:relative}.art-control-selector .art-selector-list{text-align:center;border-radius:var(--art-border-radius);opacity:0;pointer-events:none;bottom:var(--art-control-height);max-height:var(--art-selector-max-height);background-color:var(--art-widget-background);transition:all var(--art-transition-duration)ease;flex-direction:column;align-items:center;display:flex;position:absolute;overflow:hidden auto;transform:translateY(10px)}.art-control-selector .art-selector-list .art-selector-item{width:100%;flex-shrink:0;justify-content:center;align-items:center;padding:10px 15px;line-height:1;display:flex}.art-control-selector .art-selector-list .art-selector-item:hover{background-color:#ffffff1a}.art-control-selector .art-selector-list .art-selector-item:hover,.art-control-selector .art-selector-list .art-selector-item.art-current{color:var(--art-theme)}.art-control-selector:hover .art-selector-list{opacity:1;pointer-events:auto;transform:translateY(0)}[class*=hint--]{font-style:normal;display:inline-block;position:relative}[class*=hint--]:before,[class*=hint--]:after{visibility:hidden;opacity:0;z-index:1000000;pointer-events:none;transition:all .3s;position:absolute;transform:translate(0,0)}[class*=hint--]:hover:before,[class*=hint--]:hover:after{visibility:visible;opacity:1;transition-delay:.1s}[class*=hint--]:before{content:"";z-index:1000001;background:0 0;border:6px solid #0000;position:absolute}[class*=hint--]:after{color:#fff;white-space:nowrap;background:#000;padding:8px 10px;font-family:Helvetica Neue,Helvetica,Arial,sans-serif;font-size:12px;line-height:12px}[class*=hint--][aria-label]:after{content:attr(aria-label)}[class*=hint--][data-hint]:after{content:attr(data-hint)}[aria-label=""]:before,[aria-label=""]:after,[data-hint=""]:before,[data-hint=""]:after{display:none!important}.hint--top-left:before,.hint--top-right:before,.hint--top:before{border-top-color:#000}.hint--bottom-left:before,.hint--bottom-right:before,.hint--bottom:before{border-bottom-color:#000}.hint--left:before{border-left-color:#000}.hint--right:before{border-right-color:#000}.hint--top:before{margin-bottom:-11px}.hint--top:before,.hint--top:after{bottom:100%;left:50%}.hint--top:before{left:calc(50% - 6px)}.hint--top:after{transform:translate(-50%)}.hint--top:hover:before{transform:translateY(-8px)}.hint--top:hover:after{transform:translate(-50%)translateY(-8px)}.hint--bottom:before{margin-top:-11px}.hint--bottom:before,.hint--bottom:after{top:100%;left:50%}.hint--bottom:before{left:calc(50% - 6px)}.hint--bottom:after{transform:translate(-50%)}.hint--bottom:hover:before{transform:translateY(8px)}.hint--bottom:hover:after{transform:translate(-50%)translateY(8px)}.hint--right:before{margin-bottom:-6px;margin-left:-11px}.hint--right:after{margin-bottom:-14px}.hint--right:before,.hint--right:after{bottom:50%;left:100%}.hint--right:hover:before,.hint--right:hover:after{transform:translate(8px)}.hint--left:before{margin-bottom:-6px;margin-right:-11px}.hint--left:after{margin-bottom:-14px}.hint--left:before,.hint--left:after{bottom:50%;right:100%}.hint--left:hover:before,.hint--left:hover:after{transform:translate(-8px)}.hint--top-left:before{margin-bottom:-11px}.hint--top-left:before,.hint--top-left:after{bottom:100%;left:50%}.hint--top-left:before{left:calc(50% - 6px)}.hint--top-left:after{margin-left:12px;transform:translate(-100%)}.hint--top-left:hover:before{transform:translateY(-8px)}.hint--top-left:hover:after{transform:translate(-100%)translateY(-8px)}.hint--top-right:before{margin-bottom:-11px}.hint--top-right:before,.hint--top-right:after{bottom:100%;left:50%}.hint--top-right:before{left:calc(50% - 6px)}.hint--top-right:after{margin-left:-12px;transform:translate(0)}.hint--top-right:hover:before,.hint--top-right:hover:after{transform:translateY(-8px)}.hint--bottom-left:before{margin-top:-11px}.hint--bottom-left:before,.hint--bottom-left:after{top:100%;left:50%}.hint--bottom-left:before{left:calc(50% - 6px)}.hint--bottom-left:after{margin-left:12px;transform:translate(-100%)}.hint--bottom-left:hover:before{transform:translateY(8px)}.hint--bottom-left:hover:after{transform:translate(-100%)translateY(8px)}.hint--bottom-right:before{margin-top:-11px}.hint--bottom-right:before,.hint--bottom-right:after{top:100%;left:50%}.hint--bottom-right:before{left:calc(50% - 6px)}.hint--bottom-right:after{margin-left:-12px;transform:translate(0)}.hint--bottom-right:hover:before,.hint--bottom-right:hover:after{transform:translateY(8px)}.hint--small:after,.hint--medium:after,.hint--large:after{white-space:normal;word-wrap:break-word;line-height:1.4em}.hint--small:after{width:80px}.hint--medium:after{width:150px}.hint--large:after{width:300px}[class*=hint--]:after{text-shadow:0 -1px #000;box-shadow:4px 4px 8px #0000004d}.hint--error:after{text-shadow:0 -1px #592726;background-color:#b34e4d}.hint--error.hint--top-left:before,.hint--error.hint--top-right:before,.hint--error.hint--top:before{border-top-color:#b34e4d}.hint--error.hint--bottom-left:before,.hint--error.hint--bottom-right:before,.hint--error.hint--bottom:before{border-bottom-color:#b34e4d}.hint--error.hint--left:before{border-left-color:#b34e4d}.hint--error.hint--right:before{border-right-color:#b34e4d}.hint--warning:after{text-shadow:0 -1px #6c5328;background-color:#c09854}.hint--warning.hint--top-left:before,.hint--warning.hint--top-right:before,.hint--warning.hint--top:before{border-top-color:#c09854}.hint--warning.hint--bottom-left:before,.hint--warning.hint--bottom-right:before,.hint--warning.hint--bottom:before{border-bottom-color:#c09854}.hint--warning.hint--left:before{border-left-color:#c09854}.hint--warning.hint--right:before{border-right-color:#c09854}.hint--info:after{text-shadow:0 -1px #1a3c4d;background-color:#3986ac}.hint--info.hint--top-left:before,.hint--info.hint--top-right:before,.hint--info.hint--top:before{border-top-color:#3986ac}.hint--info.hint--bottom-left:before,.hint--info.hint--bottom-right:before,.hint--info.hint--bottom:before{border-bottom-color:#3986ac}.hint--info.hint--left:before{border-left-color:#3986ac}.hint--info.hint--right:before{border-right-color:#3986ac}.hint--success:after{text-shadow:0 -1px #1a321a;background-color:#458746}.hint--success.hint--top-left:before,.hint--success.hint--top-right:before,.hint--success.hint--top:before{border-top-color:#458746}.hint--success.hint--bottom-left:before,.hint--success.hint--bottom-right:before,.hint--success.hint--bottom:before{border-bottom-color:#458746}.hint--success.hint--left:before{border-left-color:#458746}.hint--success.hint--right:before{border-right-color:#458746}.hint--always:after,.hint--always:before{opacity:1;visibility:visible}.hint--always.hint--top:before{transform:translateY(-8px)}.hint--always.hint--top:after{transform:translate(-50%)translateY(-8px)}.hint--always.hint--top-left:before{transform:translateY(-8px)}.hint--always.hint--top-left:after{transform:translate(-100%)translateY(-8px)}.hint--always.hint--top-right:before,.hint--always.hint--top-right:after{transform:translateY(-8px)}.hint--always.hint--bottom:before{transform:translateY(8px)}.hint--always.hint--bottom:after{transform:translate(-50%)translateY(8px)}.hint--always.hint--bottom-left:before{transform:translateY(8px)}.hint--always.hint--bottom-left:after{transform:translate(-100%)translateY(8px)}.hint--always.hint--bottom-right:before,.hint--always.hint--bottom-right:after{transform:translateY(8px)}.hint--always.hint--left:before,.hint--always.hint--left:after{transform:translate(-8px)}.hint--always.hint--right:before,.hint--always.hint--right:after{transform:translate(8px)}.hint--rounded:after{border-radius:4px}.hint--no-animate:before,.hint--no-animate:after{transition-duration:0s}.hint--bounce:before,.hint--bounce:after{-webkit-transition:opacity .3s,visibility .3s,-webkit-transform .3s cubic-bezier(.71,1.7,.77,1.24);-moz-transition:opacity .3s,visibility .3s,-moz-transform .3s cubic-bezier(.71,1.7,.77,1.24);transition:opacity .3s,visibility .3s,transform .3s cubic-bezier(.71,1.7,.77,1.24)}.hint--no-shadow:before,.hint--no-shadow:after{text-shadow:initial;box-shadow:initial}.hint--no-arrow:before{display:none}.art-video-player.art-mobile{--art-bottom-gap:10px;--art-control-height:38px;--art-control-icon-scale:1;--art-state-size:60px;--art-settings-max-height:180px;--art-selector-max-height:180px;--art-indicator-scale:1;--art-control-opacity:1}.art-video-player.art-mobile .art-controls-left{margin-left:calc(var(--art-padding)/-1)}.art-video-player.art-mobile .art-controls-right{margin-right:calc(var(--art-padding)/-1)}'},{}],bAWi2:[function(o,h,s){h.exports=function(){function e(l){return(e=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(c){return typeof c}:function(c){return c&&typeof Symbol=="function"&&c.constructor===Symbol&&c!==Symbol.prototype?"symbol":typeof c})(l)}var t=Object.prototype.toString,r=function(l){if(l===void 0)return"undefined";if(l===null)return"null";var c=e(l);if(c==="boolean")return"boolean";if(c==="string")return"string";if(c==="number")return"number";if(c==="symbol")return"symbol";if(c==="function")return function(p){return n(p)==="GeneratorFunction"}(l)?"generatorfunction":"function";if(function(p){return Array.isArray?Array.isArray(p):p instanceof Array}(l))return"array";if(function(p){return!(!p.constructor||typeof p.constructor.isBuffer!="function")&&p.constructor.isBuffer(p)}(l))return"buffer";if(function(p){try{if(typeof p.length=="number"&&typeof p.callee=="function")return!0}catch(d){if(d.message.indexOf("callee")!==-1)return!0}return!1}(l))return"arguments";if(function(p){return p instanceof Date||typeof p.toDateString=="function"&&typeof p.getDate=="function"&&typeof p.setDate=="function"}(l))return"date";if(function(p){return p instanceof Error||typeof p.message=="string"&&p.constructor&&typeof p.constructor.stackTraceLimit=="number"}(l))return"error";if(function(p){return p instanceof RegExp||typeof p.flags=="string"&&typeof p.ignoreCase=="boolean"&&typeof p.multiline=="boolean"&&typeof p.global=="boolean"}(l))return"regexp";switch(n(l)){case"Symbol":return"symbol";case"Promise":return"promise";case"WeakMap":return"weakmap";case"WeakSet":return"weakset";case"Map":return"map";case"Set":return"set";case"Int8Array":return"int8array";case"Uint8Array":return"uint8array";case"Uint8ClampedArray":return"uint8clampedarray";case"Int16Array":return"int16array";case"Uint16Array":return"uint16array";case"Int32Array":return"int32array";case"Uint32Array":return"uint32array";case"Float32Array":return"float32array";case"Float64Array":return"float64array"}if(function(p){return typeof p.throw=="function"&&typeof p.return=="function"&&typeof p.next=="function"}(l))return"generator";switch(c=t.call(l)){case"[object Object]":return"object";case"[object Map Iterator]":return"mapiterator";case"[object Set Iterator]":return"setiterator";case"[object String Iterator]":return"stringiterator";case"[object Array Iterator]":return"arrayiterator"}return c.slice(8,-1).toLowerCase().replace(/\s/g,"")};function n(l){return l.constructor?l.constructor.name:null}function i(l,c){var p=2<arguments.length&&arguments[2]!==void 0?arguments[2]:["option"];return u(l,c,p),a(l,c,p),function(d,y,m){var w=r(y),x=r(d);if(w==="object"){if(x!=="object")throw new Error("[Type Error]: '".concat(m.join("."),"' require 'object' type, but got '").concat(x,"'"));Object.keys(y).forEach(function(b){var g=d[b],f=y[b],v=m.slice();v.push(b),u(g,f,v),a(g,f,v),i(g,f,v)})}if(w==="array"){if(x!=="array")throw new Error("[Type Error]: '".concat(m.join("."),"' require 'array' type, but got '").concat(x,"'"));d.forEach(function(b,g){var f=d[g],v=y[g]||y[0],k=m.slice();k.push(g),u(f,v,k),a(f,v,k),i(f,v,k)})}}(l,c,p),l}function u(l,c,p){if(r(c)==="string"){var d=r(l);if(c[0]==="?"&&(c=c.slice(1)+"|undefined"),!(-1<c.indexOf("|")?c.split("|").map(function(y){return y.toLowerCase().trim()}).filter(Boolean).some(function(y){return d===y}):c.toLowerCase().trim()===d))throw new Error("[Type Error]: '".concat(p.join("."),"' require '").concat(c,"' type, but got '").concat(d,"'"))}}function a(l,c,p){if(r(c)==="function"){var d=c(l,r(l),p);if(d!==!0){var y=r(d);throw y==="string"?new Error(d):y==="error"?d:new Error("[Validator Error]: The scheme for '".concat(p.join("."),"' validator require return true, but got '").concat(d,"'"))}}}return i.kindOf=r,i}()},{}],"2bGVu":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=class{on(e,t,r){const n=this.e||(this.e={});return(n[e]||(n[e]=[])).push({fn:t,ctx:r}),this}once(e,t,r){const n=this;function i(...u){n.off(e,i),t.apply(r,u)}return i._=t,this.on(e,i,r)}emit(e,...t){const r=((this.e||(this.e={}))[e]||[]).slice();for(let n=0;n<r.length;n+=1)r[n].fn.apply(r[n].ctx,t);return this}off(e,t){const r=this.e||(this.e={}),n=r[e],i=[];if(n&&t)for(let u=0,a=n.length;u<a;u+=1)n[u].fn!==t&&n[u].fn._!==t&&i.push(n[u]);return i.length?r[e]=i:delete r[e],this}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],guZOB:[function(o,h,s){s.interopDefault=function(e){return e&&e.__esModule?e:{default:e}},s.defineInteropFlag=function(e){Object.defineProperty(e,"__esModule",{value:!0})},s.exportAll=function(e,t){return Object.keys(e).forEach(function(r){r==="default"||r==="__esModule"||t.hasOwnProperty(r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),t},s.export=function(e,t,r){Object.defineProperty(e,t,{enumerable:!0,get:r})}},{}],h3rH9:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./dom");e.exportAll(t,s);var r=o("./error");e.exportAll(r,s);var n=o("./subtitle");e.exportAll(n,s);var i=o("./file");e.exportAll(i,s);var u=o("./property");e.exportAll(u,s);var a=o("./time");e.exportAll(a,s);var l=o("./format");e.exportAll(l,s);var c=o("./compatibility");e.exportAll(c,s)},{"./dom":"XgAQE","./error":"2nFlF","./subtitle":"yqFoT","./file":"1VRQn","./property":"3weX2","./time":"7kBIx","./format":"13atT","./compatibility":"luXC1","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],XgAQE:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"query",()=>r),e.export(s,"queryAll",()=>n),e.export(s,"addClass",()=>i),e.export(s,"removeClass",()=>u),e.export(s,"hasClass",()=>a),e.export(s,"append",()=>l),e.export(s,"remove",()=>c),e.export(s,"setStyle",()=>p),e.export(s,"setStyles",()=>d),e.export(s,"getStyle",()=>y),e.export(s,"sublings",()=>m),e.export(s,"inverseClass",()=>w),e.export(s,"tooltip",()=>x),e.export(s,"isInViewport",()=>b),e.export(s,"includeFromEvent",()=>g),e.export(s,"replaceElement",()=>f),e.export(s,"createElement",()=>v),e.export(s,"getIcon",()=>k),e.export(s,"setStyleText",()=>T);var t=o("./compatibility");function r(j,M=document){return M.querySelector(j)}function n(j,M=document){return Array.from(M.querySelectorAll(j))}function i(j,M){return j.classList.add(M)}function u(j,M){return j.classList.remove(M)}function a(j,M){return j.classList.contains(M)}function l(j,M){return M instanceof Element?j.appendChild(M):j.insertAdjacentHTML("beforeend",String(M)),j.lastElementChild||j.lastChild}function c(j){return j.parentNode.removeChild(j)}function p(j,M,S){return j.style[M]=S,j}function d(j,M){for(const S in M)p(j,S,M[S]);return j}function y(j,M,S=!0){const $=window.getComputedStyle(j,null).getPropertyValue(M);return S?parseFloat($):$}function m(j){return Array.from(j.parentElement.children).filter(M=>M!==j)}function w(j,M){m(j).forEach(S=>u(S,M)),i(j,M)}function x(j,M,S="top"){t.isMobile||(j.setAttribute("aria-label",M),i(j,"hint--rounded"),i(j,`hint--${S}`))}function b(j,M=0){const S=j.getBoundingClientRect(),$=window.innerHeight||document.documentElement.clientHeight,B=window.innerWidth||document.documentElement.clientWidth,I=S.top-M<=$&&S.top+S.height+M>=0,C=S.left-M<=B+M&&S.left+S.width+M>=0;return I&&C}function g(j,M){return j.composedPath&&j.composedPath().indexOf(M)>-1}function f(j,M){return M.parentNode.replaceChild(j,M),j}function v(j){return document.createElement(j)}function k(j="",M=""){const S=v("i");return i(S,"art-icon"),i(S,`art-icon-${j}`),l(S,M),S}function T(j,M){const S=document.getElementById(j);if(S)S.textContent=M;else{const $=v("style");$.id=j,$.textContent=M,document.head.appendChild($)}}},{"./compatibility":"luXC1","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],luXC1:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"userAgent",()=>t),e.export(s,"isSafari",()=>r),e.export(s,"isWechat",()=>n),e.export(s,"isIE",()=>i),e.export(s,"isAndroid",()=>u),e.export(s,"isIOS",()=>a),e.export(s,"isIOS13",()=>l),e.export(s,"isMobile",()=>c),e.export(s,"isBrowser",()=>p);const t=typeof navigator<"u"?navigator.userAgent:"",r=/^((?!chrome|android).)*safari/i.test(t),n=/MicroMessenger/i.test(t),i=/MSIE|Trident/i.test(t),u=/android/i.test(t),a=/iPad|iPhone|iPod/i.test(t)&&!window.MSStream,l=a||t.includes("Macintosh")&&navigator.maxTouchPoints>=1,c=/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(t)||l,p=typeof window<"u"},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2nFlF":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"ArtPlayerError",()=>t),e.export(s,"errorHandle",()=>r);class t extends Error{constructor(i,u){super(i),typeof Error.captureStackTrace=="function"&&Error.captureStackTrace(this,u||this.constructor),this.name="ArtPlayerError"}}function r(n,i){if(!n)throw new t(i);return n}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],yqFoT:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(i){return`WEBVTT \r
\r
`.concat((u=i,u.replace(/(\d\d:\d\d:\d\d)[,.](\d+)/g,(a,l,c)=>{let p=c.slice(0,3);return c.length===1&&(p=c+"00"),c.length===2&&(p=c+"0"),`${l},${p}`})).replace(/\{\\([ibu])\}/g,"</$1>").replace(/\{\\([ibu])1\}/g,"<$1>").replace(/\{([ibu])\}/g,"<$1>").replace(/\{\/([ibu])\}/g,"</$1>").replace(/(\d\d:\d\d:\d\d),(\d\d\d)/g,"$1.$2").replace(/{[\s\S]*?}/g,"").concat(`\r
\r
`));var u}function r(i){return URL.createObjectURL(new Blob([i],{type:"text/vtt"}))}function n(i){const u=new RegExp("Dialogue:\\s\\d,(\\d+:\\d\\d:\\d\\d.\\d\\d),(\\d+:\\d\\d:\\d\\d.\\d\\d),([^,]*),([^,]*),(?:[^,]*,){4}([\\s\\S]*)$","i");function a(l=""){return l.split(/[:.]/).map((c,p,d)=>{if(p===d.length-1){if(c.length===1)return`.${c}00`;if(c.length===2)return`.${c}0`}else if(c.length===1)return(p===0?"0":":0")+c;return p===0?c:p===d.length-1?`.${c}`:`:${c}`}).join("")}return`WEBVTT

${i.split(/\r?\n/).map(l=>{const c=l.match(u);return c?{start:a(c[1].trim()),end:a(c[2].trim()),text:c[5].replace(/{[\s\S]*?}/g,"").replace(/(\\N)/g,`
`).trim().split(/\r?\n/).map(p=>p.trim()).join(`
`)}:null}).filter(l=>l).map((l,c)=>l?`${c+1}
${l.start} --> ${l.end}
${l.text}`:"").filter(l=>l.trim()).join(`

`)}`}e.defineInteropFlag(s),e.export(s,"srtToVtt",()=>t),e.export(s,"vttToBlob",()=>r),e.export(s,"assToVtt",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1VRQn":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(n){return n.includes("?")?t(n.split("?")[0]):n.includes("#")?t(n.split("#")[0]):n.trim().toLowerCase().split(".").pop()}function r(n,i){const u=document.createElement("a");u.style.display="none",u.href=n,u.download=i,document.body.appendChild(u),u.click(),document.body.removeChild(u)}e.defineInteropFlag(s),e.export(s,"getExt",()=>t),e.export(s,"download",()=>r)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3weX2":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"def",()=>t),e.export(s,"has",()=>n),e.export(s,"get",()=>i),e.export(s,"mergeDeep",()=>u);const t=Object.defineProperty,{hasOwnProperty:r}=Object.prototype;function n(a,l){return r.call(a,l)}function i(a,l){return Object.getOwnPropertyDescriptor(a,l)}function u(...a){const l=c=>c&&typeof c=="object"&&!Array.isArray(c);return a.reduce((c,p)=>(Object.keys(p).forEach(d=>{const y=c[d],m=p[d];Array.isArray(y)&&Array.isArray(m)?c[d]=y.concat(...m):l(y)&&l(m)?c[d]=u(y,m):c[d]=m}),c),{})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7kBIx":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(i=0){return new Promise(u=>setTimeout(u,i))}function r(i,u){let a;return function(...l){clearTimeout(a),a=setTimeout(()=>(a=null,i.apply(this,l)),u)}}function n(i,u){let a=!1;return function(...l){a||(i.apply(this,l),a=!0,setTimeout(function(){a=!1},u))}}e.defineInteropFlag(s),e.export(s,"sleep",()=>t),e.export(s,"debounce",()=>r),e.export(s,"throttle",()=>n)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"13atT":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");function t(l,c,p){return Math.max(Math.min(l,Math.max(c,p)),Math.min(c,p))}function r(l){return l.charAt(0).toUpperCase()+l.slice(1)}function n(l){return["string","number"].includes(typeof l)}function i(l){if(!l)return"00:00";const c=Math.floor(l/3600),p=Math.floor((l-3600*c)/60),d=Math.floor(l-3600*c-60*p);return(c>0?[c,p,d]:[p,d]).map(y=>y<10?`0${y}`:String(y)).join(":")}function u(l){return l.replace(/[&<>'"]/g,c=>({"&":"&amp;","<":"&lt;",">":"&gt;","'":"&#39;",'"':"&quot;"})[c]||c)}function a(l){const c={"&amp;":"&","&lt;":"<","&gt;":">","&#39;":"'","&quot;":'"'},p=new RegExp(`(${Object.keys(c).join("|")})`,"g");return l.replace(p,d=>c[d]||d)}e.defineInteropFlag(s),e.export(s,"clamp",()=>t),e.export(s,"capitalize",()=>r),e.export(s,"isStringOrNumber",()=>n),e.export(s,"secondToTime",()=>i),e.export(s,"escape",()=>u),e.export(s,"unescape",()=>a)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],AdvwB:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"ComponentOption",()=>p);var t=o("../utils");const r="array",n="boolean",i="string",u="number",a="object",l="function";function c(d,y,m){return(0,t.errorHandle)(y===i||y===u||d instanceof Element,`${m.join(".")} require '${i}' or 'Element' type`)}const p={html:c,disable:`?${n}`,name:`?${i}`,index:`?${u}`,style:`?${a}`,click:`?${l}`,mounted:`?${l}`,tooltip:`?${i}|${u}`,width:`?${u}`,selector:`?${r}`,onSelect:`?${l}`,switch:`?${n}`,onSwitch:`?${l}`,range:`?${r}`,onRange:`?${l}`,onChange:`?${l}`};s.default={id:i,container:c,url:i,poster:i,type:i,theme:i,lang:i,volume:u,isLive:n,muted:n,autoplay:n,autoSize:n,autoMini:n,loop:n,flip:n,playbackRate:n,aspectRatio:n,screenshot:n,setting:n,hotkey:n,pip:n,mutex:n,backdrop:n,fullscreen:n,fullscreenWeb:n,subtitleOffset:n,miniProgressBar:n,useSSR:n,playsInline:n,lock:n,fastForward:n,autoPlayback:n,autoOrientation:n,airplay:n,plugins:[l],layers:[p],contextmenu:[p],settings:[p],controls:[{...p,position:(d,y,m)=>{const w=["top","left","right"];return(0,t.errorHandle)(w.includes(d),`${m.join(".")} only accept ${w.toString()} as parameters`)}}],quality:[{default:`?${n}`,html:i,url:i}],highlight:[{time:u,text:i}],thumbnails:{url:i,number:u,column:u,width:u,height:u},subtitle:{url:i,name:i,type:i,style:a,escape:n,encoding:i,onVttLoad:l},moreVideoAttr:a,i18n:a,icons:a,cssVar:a,customType:a}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9Xmqu":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default={propertys:["audioTracks","autoplay","buffered","controller","controls","crossOrigin","currentSrc","currentTime","defaultMuted","defaultPlaybackRate","duration","ended","error","loop","mediaGroup","muted","networkState","paused","playbackRate","played","preload","readyState","seekable","seeking","src","startDate","textTracks","videoTracks","volume"],methods:["addTextTrack","canPlayType","load","play","pause"],events:["abort","canplay","canplaythrough","durationchange","emptied","ended","error","loadeddata","loadedmetadata","loadstart","pause","play","playing","progress","ratechange","seeked","seeking","stalled","suspend","timeupdate","volumechange","waiting"],prototypes:["width","height","videoWidth","videoHeight","poster","webkitDecodedFrameCount","webkitDroppedFrameCount","playsInline","webkitSupportsFullscreen","webkitDisplayingFullscreen","onenterpictureinpicture","onleavepictureinpicture","disablePictureInPicture","cancelVideoFrameCallback","requestVideoFrameCallback","getVideoPlaybackQuality","requestPictureInPicture","webkitEnterFullScreen","webkitEnterFullscreen","webkitExitFullScreen","webkitExitFullscreen"]}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2gKYH":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("./utils");class t{constructor(n){this.art=n;const{option:i,constructor:u}=n;i.container instanceof Element?this.$container=i.container:(this.$container=(0,e.query)(i.container),(0,e.errorHandle)(this.$container,`No container element found by ${i.container}`));const a=this.$container.tagName.toLowerCase();(0,e.errorHandle)(a==="div",`Unsupported container element type, only support 'div' but got '${a}'`),(0,e.errorHandle)(u.instances.every(l=>l.template.$container!==this.$container),"Cannot mount multiple instances on the same dom element"),this.query=this.query.bind(this),this.$container.dataset.artId=n.id,this.init()}static get html(){return'<div class="art-video-player art-subtitle-show art-layer-show art-control-show art-mask-show"><video class="art-video"><track default kind="metadata" src=""></track></video><div class="art-poster"></div><div class="art-subtitle"></div><div class="art-danmuku"></div><div class="art-layers"></div><div class="art-mask"><div class="art-state"></div></div><div class="art-bottom"><div class="art-progress"></div><div class="art-controls"><div class="art-controls-left"></div><div class="art-controls-center"></div><div class="art-controls-right"></div></div></div><div class="art-loading"></div><div class="art-notice"><div class="art-notice-inner"></div></div><div class="art-settings"></div><div class="art-info"><div class="art-info-panel"><div class="art-info-item"><div class="art-info-title">Player version:</div><div class="art-info-content">5.1.1</div></div><div class="art-info-item"><div class="art-info-title">Video url:</div><div class="art-info-content" data-video="src"></div></div><div class="art-info-item"><div class="art-info-title">Video volume:</div><div class="art-info-content" data-video="volume"></div></div><div class="art-info-item"><div class="art-info-title">Video time:</div><div class="art-info-content" data-video="currentTime"></div></div><div class="art-info-item"><div class="art-info-title">Video duration:</div><div class="art-info-content" data-video="duration"></div></div><div class="art-info-item"><div class="art-info-title">Video resolution:</div><div class="art-info-content"><span data-video="videoWidth"></span> x <span data-video="videoHeight"></span></div></div></div><div class="art-info-close">[x]</div></div><div class="art-contextmenus"></div></div>'}query(n){return(0,e.query)(n,this.$container)}init(){const{option:n}=this.art;n.useSSR||(this.$container.innerHTML=t.html),this.$player=this.query(".art-video-player"),this.$video=this.query(".art-video"),this.$track=this.query("track"),this.$poster=this.query(".art-poster"),this.$subtitle=this.query(".art-subtitle"),this.$danmuku=this.query(".art-danmuku"),this.$bottom=this.query(".art-bottom"),this.$progress=this.query(".art-progress"),this.$controls=this.query(".art-controls"),this.$controlsLeft=this.query(".art-controls-left"),this.$controlsCenter=this.query(".art-controls-center"),this.$controlsRight=this.query(".art-controls-right"),this.$layer=this.query(".art-layers"),this.$loading=this.query(".art-loading"),this.$notice=this.query(".art-notice"),this.$noticeInner=this.query(".art-notice-inner"),this.$mask=this.query(".art-mask"),this.$state=this.query(".art-state"),this.$setting=this.query(".art-settings"),this.$info=this.query(".art-info"),this.$infoPanel=this.query(".art-info-panel"),this.$infoClose=this.query(".art-info-close"),this.$contextmenu=this.query(".art-contextmenus"),n.backdrop&&(0,e.addClass)(this.$player,"art-backdrop"),e.isMobile&&(0,e.addClass)(this.$player,"art-mobile")}destroy(n){n?this.$container.innerHTML="":(0,e.addClass)(this.$player,"art-destroy")}}s.default=t},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1AdeF":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("./zh-cn"),n=e.interopDefault(r);s.default=class{constructor(i){this.art=i,this.languages={"zh-cn":n.default},this.language={},this.update(i.option.i18n)}init(){const i=this.art.option.lang.toLowerCase();this.language=this.languages[i]||{}}get(i){return this.language[i]||i}update(i){this.languages=(0,t.mergeDeep)(this.languages,i),this.init()}}},{"../utils":"h3rH9","./zh-cn":"3ZSKq","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3ZSKq":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);const e={"Video Info":"统计信息",Close:"关闭","Video Load Failed":"加载失败",Volume:"音量",Play:"播放",Pause:"暂停",Rate:"速度",Mute:"静音","Video Flip":"画面翻转",Horizontal:"水平",Vertical:"垂直",Reconnect:"重新连接","Show Setting":"显示设置","Hide Setting":"隐藏设置",Screenshot:"截图","Play Speed":"播放速度","Aspect Ratio":"画面比例",Default:"默认",Normal:"正常",Open:"打开","Switch Video":"切换","Switch Subtitle":"切换字幕",Fullscreen:"全屏","Exit Fullscreen":"退出全屏","Web Fullscreen":"网页全屏","Exit Web Fullscreen":"退出网页全屏","Mini Player":"迷你播放器","PIP Mode":"开启画中画","Exit PIP Mode":"退出画中画","PIP Not Supported":"不支持画中画","Fullscreen Not Supported":"不支持全屏","Subtitle Offset":"字幕偏移","Last Seen":"上次看到","Jump Play":"跳转播放",AirPlay:"隔空播放","AirPlay Not Available":"隔空播放不可用"};s.default=e,typeof window<"u"&&(window["artplayer-i18n-zh-cn"]=e)},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"556MW":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./urlMix"),r=e.interopDefault(t),n=o("./attrMix"),i=e.interopDefault(n),u=o("./playMix"),a=e.interopDefault(u),l=o("./pauseMix"),c=e.interopDefault(l),p=o("./toggleMix"),d=e.interopDefault(p),y=o("./seekMix"),m=e.interopDefault(y),w=o("./volumeMix"),x=e.interopDefault(w),b=o("./currentTimeMix"),g=e.interopDefault(b),f=o("./durationMix"),v=e.interopDefault(f),k=o("./switchMix"),T=e.interopDefault(k),j=o("./playbackRateMix"),M=e.interopDefault(j),S=o("./aspectRatioMix"),$=e.interopDefault(S),B=o("./screenshotMix"),I=e.interopDefault(B),C=o("./fullscreenMix"),E=e.interopDefault(C),H=o("./fullscreenWebMix"),_=e.interopDefault(H),R=o("./pipMix"),D=e.interopDefault(R),Y=o("./loadedMix"),K=e.interopDefault(Y),G=o("./playedMix"),X=e.interopDefault(G),J=o("./playingMix"),Q=e.interopDefault(J),ee=o("./autoSizeMix"),te=e.interopDefault(ee),re=o("./rectMix"),ae=e.interopDefault(re),ne=o("./flipMix"),oe=e.interopDefault(ne),ie=o("./miniMix"),se=e.interopDefault(ie),N=o("./posterMix"),O=e.interopDefault(N),he=o("./autoHeightMix"),P=e.interopDefault(he),W=o("./cssVarMix"),U=e.interopDefault(W),V=o("./themeMix"),q=e.interopDefault(V),le=o("./typeMix"),fe=e.interopDefault(le),ue=o("./stateMix"),ce=e.interopDefault(ue),xe=o("./subtitleOffsetMix"),ke=e.interopDefault(xe),je=o("./airplayMix"),Te=e.interopDefault(je),Me=o("./qualityMix"),Se=e.interopDefault(Me),Ee=o("./optionInit"),Oe=e.interopDefault(Ee),Ie=o("./eventInit"),$e=e.interopDefault(Ie);s.default=class{constructor(L){(0,r.default)(L),(0,i.default)(L),(0,a.default)(L),(0,c.default)(L),(0,d.default)(L),(0,m.default)(L),(0,x.default)(L),(0,g.default)(L),(0,v.default)(L),(0,T.default)(L),(0,M.default)(L),(0,$.default)(L),(0,I.default)(L),(0,E.default)(L),(0,_.default)(L),(0,D.default)(L),(0,K.default)(L),(0,X.default)(L),(0,Q.default)(L),(0,te.default)(L),(0,ae.default)(L),(0,oe.default)(L),(0,se.default)(L),(0,O.default)(L),(0,P.default)(L),(0,U.default)(L),(0,q.default)(L),(0,fe.default)(L),(0,ce.default)(L),(0,ke.default)(L),(0,Te.default)(L),(0,Se.default)(L),(0,$e.default)(L),(0,Oe.default)(L)}}},{"./urlMix":"2mRAc","./attrMix":"2EA19","./playMix":"fD2Tc","./pauseMix":"c3LGJ","./toggleMix":"fVsAa","./seekMix":"dmROF","./volumeMix":"9jtfB","./currentTimeMix":"7NCDR","./durationMix":"YS7JL","./switchMix":"dzUqN","./playbackRateMix":"5I2mT","./aspectRatioMix":"7m6R8","./screenshotMix":"2dgtR","./fullscreenMix":"fKDW8","./fullscreenWebMix":"lNvYI","./pipMix":"8j7oC","./loadedMix":"dwVOT","./playedMix":"dDeLx","./playingMix":"ceoBp","./autoSizeMix":"lcWXX","./rectMix":"f7y88","./flipMix":"l4qt5","./miniMix":"9ZPBQ","./posterMix":"5K8hA","./autoHeightMix":"3T5ls","./cssVarMix":"6KfHs","./themeMix":"7lcSc","./typeMix":"8JgTw","./stateMix":"cebt1","./subtitleOffsetMix":"hJvIy","./airplayMix":"4Tp0U","./qualityMix":"3wZgN","./optionInit":"iPdgW","./eventInit":"3mj0J","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2mRAc":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{option:r,template:{$video:n}}=t;(0,e.def)(t,"url",{get:()=>n.src,async set(i){if(i){const u=t.url,a=r.type||(0,e.getExt)(i),l=r.customType[a];a&&l?(await(0,e.sleep)(),t.loading.show=!0,l.call(t,n,i,t)):(URL.revokeObjectURL(u),n.src=i),u!==t.url&&(t.option.url=i,t.isReady&&u&&t.once("video:canplay",()=>{t.emit("restart",i)}))}else await(0,e.sleep)(),t.loading.show=!0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2EA19":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r}}=t;(0,e.def)(t,"attr",{value(n,i){if(i===void 0)return r[n];r[n]=i}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fD2Tc:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,option:i,constructor:{instances:u},template:{$video:a}}=t;(0,e.def)(t,"play",{value:async function(){const l=await a.play();if(n.show=r.get("Play"),t.emit("play"),i.mutex)for(let c=0;c<u.length;c++){const p=u[c];p!==t&&p.pause()}return l}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],c3LGJ:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r},i18n:n,notice:i}=t;(0,e.def)(t,"pause",{value(){const u=r.pause();return i.show=n.get("Pause"),t.emit("pause"),u}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fVsAa:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"toggle",{value:()=>t.playing?t.pause():t.play()})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dmROF:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{notice:r}=t;(0,e.def)(t,"seek",{set(n){t.currentTime=n,t.emit("seek",t.currentTime),t.duration&&(r.show=`${(0,e.secondToTime)(t.currentTime)} / ${(0,e.secondToTime)(t.duration)}`)}}),(0,e.def)(t,"forward",{set(n){t.seek=t.currentTime+n}}),(0,e.def)(t,"backward",{set(n){t.seek=t.currentTime-n}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jtfB":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r},i18n:n,notice:i,storage:u}=t;(0,e.def)(t,"volume",{get:()=>r.volume||0,set:a=>{r.volume=(0,e.clamp)(a,0,1),i.show=`${n.get("Volume")}: ${parseInt(100*r.volume,10)}`,r.volume!==0&&u.set("volume",r.volume)}}),(0,e.def)(t,"muted",{get:()=>r.muted,set:a=>{r.muted=a,t.emit("muted",a)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7NCDR":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$video:r}=t.template;(0,e.def)(t,"currentTime",{get:()=>r.currentTime||0,set:n=>{n=parseFloat(n),Number.isNaN(n)||(r.currentTime=(0,e.clamp)(n,0,t.duration))}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],YS7JL:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"duration",{get:()=>{const{duration:r}=t.template.$video;return r===1/0?0:r||0}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dzUqN:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){function r(n,i){return new Promise((u,a)=>{if(n===t.url)return;const{playing:l,aspectRatio:c,playbackRate:p}=t;t.pause(),t.url=n,t.notice.show="",t.once("video:error",a),t.once("video:canplay",async()=>{t.playbackRate=p,t.aspectRatio=c,t.currentTime=i,l&&await t.play(),t.notice.show="",u()})})}(0,e.def)(t,"switchQuality",{value:n=>r(n,t.currentTime)}),(0,e.def)(t,"switchUrl",{value:n=>r(n,0)}),(0,e.def)(t,"switch",{set:t.switchUrl})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5I2mT":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$video:r},i18n:n,notice:i}=t;(0,e.def)(t,"playbackRate",{get:()=>r.playbackRate,set(u){if(u){if(u===r.playbackRate)return;r.playbackRate=u,i.show=`${n.get("Rate")}: ${u===1?n.get("Normal"):`${u}x`}`}else t.playbackRate=1}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7m6R8":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,template:{$video:i,$player:u}}=t;(0,e.def)(t,"aspectRatio",{get:()=>u.dataset.aspectRatio||"default",set(a){if(a||(a="default"),a==="default")(0,e.setStyle)(i,"width",null),(0,e.setStyle)(i,"height",null),(0,e.setStyle)(i,"margin",null),delete u.dataset.aspectRatio;else{const l=a.split(":").map(Number),{clientWidth:c,clientHeight:p}=u,d=c/p,y=l[0]/l[1];d>y?((0,e.setStyle)(i,"width",y*p+"px"),(0,e.setStyle)(i,"height","100%"),(0,e.setStyle)(i,"margin","0 auto")):((0,e.setStyle)(i,"width","100%"),(0,e.setStyle)(i,"height",c/y+"px"),(0,e.setStyle)(i,"margin","auto 0")),u.dataset.aspectRatio=a}n.show=`${r.get("Aspect Ratio")}: ${a==="default"?r.get("Default"):a}`,t.emit("aspectRatio",a)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2dgtR":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{notice:r,template:{$video:n}}=t,i=(0,e.createElement)("canvas");(0,e.def)(t,"getDataURL",{value:()=>new Promise((u,a)=>{try{i.width=n.videoWidth,i.height=n.videoHeight,i.getContext("2d").drawImage(n,0,0),u(i.toDataURL("image/png"))}catch(l){r.show=l,a(l)}})}),(0,e.def)(t,"getBlobUrl",{value:()=>new Promise((u,a)=>{try{i.width=n.videoWidth,i.height=n.videoHeight,i.getContext("2d").drawImage(n,0,0),i.toBlob(l=>{u(URL.createObjectURL(l))})}catch(l){r.show=l,a(l)}})}),(0,e.def)(t,"screenshot",{value:async()=>{const u=await t.getDataURL();return(0,e.download)(u,`artplayer_${(0,e.secondToTime)(n.currentTime)}.png`),t.emit("screenshot",u),u}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fKDW8:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../libs/screenfull"),r=e.interopDefault(t),n=o("../utils");s.default=function(i){const{i18n:u,notice:a,template:{$video:l,$player:c}}=i;i.once("video:loadedmetadata",()=>{r.default.isEnabled?(p=>{r.default.on("change",()=>{p.emit("fullscreen",r.default.isFullscreen)}),(0,n.def)(p,"fullscreen",{get:()=>r.default.isFullscreen,async set(d){d?(p.state="fullscreen",await r.default.request(c),(0,n.addClass)(c,"art-fullscreen")):(await r.default.exit(),(0,n.removeClass)(c,"art-fullscreen")),p.emit("resize")}})})(i):document.fullscreenEnabled||l.webkitSupportsFullscreen?(p=>{(0,n.def)(p,"fullscreen",{get:()=>l.webkitDisplayingFullscreen,set(d){d?(p.state="fullscreen",l.webkitEnterFullscreen(),p.emit("fullscreen",!0)):(l.webkitExitFullscreen(),p.emit("fullscreen",!1)),p.emit("resize")}})})(i):(0,n.def)(i,"fullscreen",{get:()=>!1,set(){a.show=u.get("Fullscreen Not Supported")}}),(0,n.def)(i,"fullscreen",(0,n.get)(i,"fullscreen"))})}},{"../libs/screenfull":"lUahW","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lUahW:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);const e=[["requestFullscreen","exitFullscreen","fullscreenElement","fullscreenEnabled","fullscreenchange","fullscreenerror"],["webkitRequestFullscreen","webkitExitFullscreen","webkitFullscreenElement","webkitFullscreenEnabled","webkitfullscreenchange","webkitfullscreenerror"],["webkitRequestFullScreen","webkitCancelFullScreen","webkitCurrentFullScreenElement","webkitCancelFullScreen","webkitfullscreenchange","webkitfullscreenerror"],["mozRequestFullScreen","mozCancelFullScreen","mozFullScreenElement","mozFullScreenEnabled","mozfullscreenchange","mozfullscreenerror"],["msRequestFullscreen","msExitFullscreen","msFullscreenElement","msFullscreenEnabled","MSFullscreenChange","MSFullscreenError"]],t=(()=>{if(typeof document>"u")return!1;const i=e[0],u={};for(const a of e)if(a[1]in document){for(const[l,c]of a.entries())u[i[l]]=c;return u}return!1})(),r={change:t.fullscreenchange,error:t.fullscreenerror};let n={request:(i=document.documentElement,u)=>new Promise((a,l)=>{const c=()=>{n.off("change",c),a()};n.on("change",c);const p=i[t.requestFullscreen](u);p instanceof Promise&&p.then(c).catch(l)}),exit:()=>new Promise((i,u)=>{if(!n.isFullscreen)return void i();const a=()=>{n.off("change",a),i()};n.on("change",a);const l=document[t.exitFullscreen]();l instanceof Promise&&l.then(a).catch(u)}),toggle:(i,u)=>n.isFullscreen?n.exit():n.request(i,u),onchange(i){n.on("change",i)},onerror(i){n.on("error",i)},on(i,u){const a=r[i];a&&document.addEventListener(a,u,!1)},off(i,u){const a=r[i];a&&document.removeEventListener(a,u,!1)},raw:t};Object.defineProperties(n,{isFullscreen:{get:()=>!!document[t.fullscreenElement]},element:{enumerable:!0,get:()=>document[t.fullscreenElement]},isEnabled:{enumerable:!0,get:()=>!!document[t.fullscreenEnabled]}}),t||(n={isEnabled:!1}),s.default=n},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lNvYI:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{constructor:r,template:{$container:n,$player:i}}=t;let u="";(0,e.def)(t,"fullscreenWeb",{get:()=>(0,e.hasClass)(i,"art-fullscreen-web"),set(a){a?(u=i.style.cssText,r.FULLSCREEN_WEB_IN_BODY&&(0,e.append)(document.body,i),t.state="fullscreenWeb",(0,e.setStyle)(i,"width","100%"),(0,e.setStyle)(i,"height","100%"),(0,e.addClass)(i,"art-fullscreen-web"),t.emit("fullscreenWeb",!0)):(r.FULLSCREEN_WEB_IN_BODY&&(0,e.append)(n,i),u&&(i.style.cssText=u,u=""),(0,e.removeClass)(i,"art-fullscreen-web"),t.emit("fullscreenWeb",!1)),t.emit("resize")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8j7oC":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,template:{$video:i}}=t;document.pictureInPictureEnabled?function(u){const{template:{$video:a},proxy:l,notice:c}=u;a.disablePictureInPicture=!1,(0,e.def)(u,"pip",{get:()=>document.pictureInPictureElement,set(p){p?(u.state="pip",a.requestPictureInPicture().catch(d=>{throw c.show=d,d})):document.exitPictureInPicture().catch(d=>{throw c.show=d,d})}}),l(a,"enterpictureinpicture",()=>{u.emit("pip",!0)}),l(a,"leavepictureinpicture",()=>{u.emit("pip",!1)})}(t):i.webkitSupportsPresentationMode?function(u){const{$video:a}=u.template;a.webkitSetPresentationMode("inline"),(0,e.def)(u,"pip",{get:()=>a.webkitPresentationMode==="picture-in-picture",set(l){l?(u.state="pip",a.webkitSetPresentationMode("picture-in-picture"),u.emit("pip",!0)):(a.webkitSetPresentationMode("inline"),u.emit("pip",!1))}})}(t):(0,e.def)(t,"pip",{get:()=>!1,set(){n.show=r.get("PIP Not Supported")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dwVOT:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$video:r}=t.template;(0,e.def)(t,"loaded",{get:()=>t.loadedTime/r.duration}),(0,e.def)(t,"loadedTime",{get:()=>r.buffered.length?r.buffered.end(r.buffered.length-1):0})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dDeLx:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"played",{get:()=>t.currentTime/t.duration})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ceoBp:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$video:r}=t.template;(0,e.def)(t,"playing",{get:()=>r.currentTime>0&&!r.paused&&!r.ended&&r.readyState>2})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lcWXX:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$container:r,$player:n,$video:i}=t.template;(0,e.def)(t,"autoSize",{value(){const{videoWidth:u,videoHeight:a}=i,{width:l,height:c}=r.getBoundingClientRect(),p=u/a;if(l/c>p){const d=c*p/l*100;(0,e.setStyle)(n,"width",`${d}%`),(0,e.setStyle)(n,"height","100%")}else{const d=l/p/c*100;(0,e.setStyle)(n,"width","100%"),(0,e.setStyle)(n,"height",`${d}%`)}t.emit("autoSize",{width:t.width,height:t.height})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f7y88:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"rect",{get:()=>t.template.$player.getBoundingClientRect()});const r=["bottom","height","left","right","top","width"];for(let n=0;n<r.length;n++){const i=r[n];(0,e.def)(t,i,{get:()=>t.rect[i]})}(0,e.def)(t,"x",{get:()=>t.left+window.pageXOffset}),(0,e.def)(t,"y",{get:()=>t.top+window.pageYOffset})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],l4qt5:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$player:r},i18n:n,notice:i}=t;(0,e.def)(t,"flip",{get:()=>r.dataset.flip||"normal",set(u){u||(u="normal"),u==="normal"?delete r.dataset.flip:r.dataset.flip=u,i.show=`${n.get("Video Flip")}: ${n.get((0,e.capitalize)(u))}`,t.emit("flip",u)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9ZPBQ":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{icons:r,proxy:n,storage:i,template:{$player:u,$video:a}}=t;let l=!1,c=0,p=0;function d(){const{$mini:w}=t.template;w&&((0,e.removeClass)(u,"art-mini"),(0,e.setStyle)(w,"display","none"),u.prepend(a),t.emit("mini",!1))}function y(w,x){t.playing?((0,e.setStyle)(w,"display","none"),(0,e.setStyle)(x,"display","flex")):((0,e.setStyle)(w,"display","flex"),(0,e.setStyle)(x,"display","none"))}function m(){const{$mini:w}=t.template,x=w.getBoundingClientRect(),b=window.innerHeight-x.height-50,g=window.innerWidth-x.width-50;i.set("top",b),i.set("left",g),(0,e.setStyle)(w,"top",`${b}px`),(0,e.setStyle)(w,"left",`${g}px`)}(0,e.def)(t,"mini",{get:()=>(0,e.hasClass)(u,"art-mini"),set(w){if(w){t.state="mini",(0,e.addClass)(u,"art-mini");const x=function(){const{$mini:f}=t.template;if(f)return(0,e.append)(f,a),(0,e.setStyle)(f,"display","flex");{const v=(0,e.createElement)("div");(0,e.addClass)(v,"art-mini-popup"),(0,e.append)(document.body,v),t.template.$mini=v,(0,e.append)(v,a);const k=(0,e.append)(v,'<div class="art-mini-close"></div>');(0,e.append)(k,r.close),n(k,"click",d);const T=(0,e.append)(v,'<div class="art-mini-state"></div>'),j=(0,e.append)(T,r.play),M=(0,e.append)(T,r.pause);return n(j,"click",()=>t.play()),n(M,"click",()=>t.pause()),y(j,M),t.on("video:playing",()=>y(j,M)),t.on("video:pause",()=>y(j,M)),t.on("video:timeupdate",()=>y(j,M)),n(v,"mousedown",S=>{l=S.button===0,c=S.pageX,p=S.pageY}),t.on("document:mousemove",S=>{if(l){(0,e.addClass)(v,"art-mini-droging");const $=S.pageX-c,B=S.pageY-p;(0,e.setStyle)(v,"transform",`translate(${$}px, ${B}px)`)}}),t.on("document:mouseup",()=>{if(l){l=!1,(0,e.removeClass)(v,"art-mini-droging");const S=v.getBoundingClientRect();i.set("left",S.left),i.set("top",S.top),(0,e.setStyle)(v,"left",`${S.left}px`),(0,e.setStyle)(v,"top",`${S.top}px`),(0,e.setStyle)(v,"transform",null)}}),v}}(),b=i.get("top"),g=i.get("left");b&&g?((0,e.setStyle)(x,"top",`${b}px`),(0,e.setStyle)(x,"left",`${g}px`),(0,e.isInViewport)(x)||m()):m(),t.emit("mini",!0)}else d()}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5K8hA":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$poster:r}}=t;(0,e.def)(t,"poster",{get:()=>{try{return r.style.backgroundImage.match(/"(.*)"/)[1]}catch{return""}},set(n){(0,e.setStyle)(r,"backgroundImage",`url(${n})`)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3T5ls":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{template:{$container:r,$video:n}}=t;(0,e.def)(t,"autoHeight",{value(){const{clientWidth:i}=r,{videoHeight:u,videoWidth:a}=n,l=u*(i/a);(0,e.setStyle)(r,"height",l+"px"),t.emit("autoHeight",l)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6KfHs":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{$player:r}=t.template;(0,e.def)(t,"cssVar",{value:(n,i)=>i?r.style.setProperty(n,i):getComputedStyle(r).getPropertyValue(n)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7lcSc":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"theme",{get:()=>t.cssVar("--art-theme"),set(r){t.cssVar("--art-theme",r)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8JgTw":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"type",{get:()=>t.option.type,set(r){t.option.type=r}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],cebt1:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const r=["mini","pip","fullscreen","fullscreenWeb"];(0,e.def)(t,"state",{get:()=>r.find(n=>t[n])||"standard",set(n){for(let i=0;i<r.length;i++){const u=r[i];u!==n&&t[u]&&(t[u]=!1)}}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hJvIy:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{clamp:r}=t.constructor.utils,{notice:n,template:i,i18n:u}=t;let a=0,l=[];t.on("subtitle:switch",()=>{l=[]}),(0,e.def)(t,"subtitleOffset",{get:()=>a,set(c){if(i.$track&&i.$track.track){const p=Array.from(i.$track.track.cues);a=r(c,-5,5);for(let d=0;d<p.length;d++){const y=p[d];l[d]||(l[d]={startTime:y.startTime,endTime:y.endTime}),y.startTime=r(l[d].startTime+a,0,t.duration),y.endTime=r(l[d].endTime+a,0,t.duration)}t.subtitle.update(),n.show=`${u.get("Subtitle Offset")}: ${c}s`,t.emit("subtitleOffset",c)}else t.emit("subtitleOffset",0)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"4Tp0U":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,notice:n,proxy:i,template:{$video:u}}=t;let a=!0;window.WebKitPlaybackTargetAvailabilityEvent&&u.webkitShowPlaybackTargetPicker?i(u,"webkitplaybacktargetavailabilitychanged",l=>{switch(l.availability){case"available":a=!0;break;case"not-available":a=!1}}):a=!1,(0,e.def)(t,"airplay",{value(){a?(u.webkitShowPlaybackTargetPicker(),t.emit("airplay")):n.show=r.get("AirPlay Not Available")}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3wZgN":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){(0,e.def)(t,"quality",{set(r){const{controls:n,notice:i,i18n:u}=t,a=r.find(l=>l.default)||r[0];n.update({name:"quality",position:"right",index:10,style:{marginRight:"10px"},html:a?a.html:"",selector:r,async onSelect(l){await t.switchQuality(l.url),i.show=`${u.get("Switch Video")}: ${l.html}`}})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iPdgW:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{option:r,storage:n,template:{$video:i,$poster:u}}=t;for(const l in r.moreVideoAttr)t.attr(l,r.moreVideoAttr[l]);r.muted&&(t.muted=r.muted),r.volume&&(i.volume=(0,e.clamp)(r.volume,0,1));const a=n.get("volume");typeof a=="number"&&(i.volume=(0,e.clamp)(a,0,1)),r.poster&&(0,e.setStyle)(u,"backgroundImage",`url(${r.poster})`),r.autoplay&&(i.autoplay=r.autoplay),r.playsInline&&(i.playsInline=!0,i["webkit-playsinline"]=!0),r.theme&&(r.cssVar["--art-theme"]=r.theme);for(const l in r.cssVar)t.cssVar(l,r.cssVar[l]);t.url=r.url}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"3mj0J":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../config"),r=e.interopDefault(t),n=o("../utils");s.default=function(i){const{i18n:u,notice:a,option:l,constructor:c,proxy:p,template:{$player:d,$video:y,$poster:m}}=i;let w=0;for(let x=0;x<r.default.events.length;x++)p(y,r.default.events[x],b=>{i.emit(`video:${b.type}`,b)});i.on("video:canplay",()=>{w=0,i.loading.show=!1}),i.once("video:canplay",()=>{i.loading.show=!1,i.controls.show=!0,i.mask.show=!0,i.isReady=!0,i.emit("ready")}),i.on("video:ended",()=>{l.loop?(i.seek=0,i.play(),i.controls.show=!1,i.mask.show=!1):(i.controls.show=!0,i.mask.show=!0)}),i.on("video:error",async x=>{w<c.RECONNECT_TIME_MAX?(await(0,n.sleep)(c.RECONNECT_SLEEP_TIME),w+=1,i.url=l.url,a.show=`${u.get("Reconnect")}: ${w}`,i.emit("error",x,w)):(i.mask.show=!0,i.loading.show=!1,i.controls.show=!0,(0,n.addClass)(d,"art-error"),await(0,n.sleep)(c.RECONNECT_SLEEP_TIME),a.show=u.get("Video Load Failed"))}),i.on("video:loadedmetadata",()=>{i.emit("resize"),n.isMobile&&(i.loading.show=!1,i.controls.show=!0,i.mask.show=!0)}),i.on("video:loadstart",()=>{i.loading.show=!0,i.mask.show=!1,i.controls.show=!0}),i.on("video:pause",()=>{i.controls.show=!0,i.mask.show=!0}),i.on("video:play",()=>{i.mask.show=!1,(0,n.setStyle)(m,"display","none")}),i.on("video:playing",()=>{i.mask.show=!1}),i.on("video:progress",()=>{i.playing&&(i.loading.show=!1)}),i.on("video:seeked",()=>{i.loading.show=!1,i.mask.show=!0}),i.on("video:seeking",()=>{i.loading.show=!0,i.mask.show=!1}),i.on("video:timeupdate",()=>{i.mask.show=!1}),i.on("video:waiting",()=>{i.loading.show=!0,i.mask.show=!1})}},{"../config":"9Xmqu","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"14IBq":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("../utils/component"),n=e.interopDefault(r),i=o("./fullscreen"),u=e.interopDefault(i),a=o("./fullscreenWeb"),l=e.interopDefault(a),c=o("./pip"),p=e.interopDefault(c),d=o("./playAndPause"),y=e.interopDefault(d),m=o("./progress"),w=e.interopDefault(m),x=o("./time"),b=e.interopDefault(x),g=o("./volume"),f=e.interopDefault(g),v=o("./setting"),k=e.interopDefault(v),T=o("./thumbnails"),j=e.interopDefault(T),M=o("./screenshot"),S=e.interopDefault(M),$=o("./airplay"),B=e.interopDefault($);class I extends n.default{constructor(E){super(E),this.name="control",this.timer=Date.now();const{constructor:H}=E,{$player:_}=this.art.template;E.on("mousemove",()=>{t.isMobile||(this.show=!0)}),E.on("click",()=>{t.isMobile?this.toggle():this.show=!0}),E.on("video:timeupdate",()=>{!E.isInput&&E.playing&&this.show&&Date.now()-this.timer>=H.CONTROL_HIDE_TIME&&(this.show=!1)}),E.on("control",R=>{R?((0,t.removeClass)(_,"art-hide-cursor"),(0,t.addClass)(_,"art-hover"),this.timer=Date.now()):((0,t.addClass)(_,"art-hide-cursor"),(0,t.removeClass)(_,"art-hover"))}),this.init()}init(){const{option:E}=this.art;E.isLive||this.add((0,w.default)({name:"progress",position:"top",index:10})),!E.thumbnails.url||E.isLive||t.isMobile||this.add((0,j.default)({name:"thumbnails",position:"top",index:20})),this.add((0,y.default)({name:"playAndPause",position:"left",index:10})),this.add((0,f.default)({name:"volume",position:"left",index:20})),E.isLive||this.add((0,b.default)({name:"time",position:"left",index:30})),E.quality.length&&(0,t.sleep)().then(()=>{this.art.quality=E.quality}),E.screenshot&&!t.isMobile&&this.add((0,S.default)({name:"screenshot",position:"right",index:20})),E.setting&&this.add((0,k.default)({name:"setting",position:"right",index:30})),E.pip&&this.add((0,p.default)({name:"pip",position:"right",index:40})),E.airplay&&window.WebKitPlaybackTargetAvailabilityEvent&&this.add((0,B.default)({name:"airplay",position:"right",index:50})),E.fullscreenWeb&&this.add((0,l.default)({name:"fullscreenWeb",position:"right",index:60})),E.fullscreen&&this.add((0,u.default)({name:"fullscreen",position:"right",index:70}));for(let H=0;H<E.controls.length;H++)this.add(E.controls[H])}add(E){const H=typeof E=="function"?E(this.art):E,{$progress:_,$controlsLeft:R,$controlsRight:D}=this.art.template;switch(H.position){case"top":this.$parent=_;break;case"left":this.$parent=R;break;case"right":this.$parent=D;break;default:(0,t.errorHandle)(!1,"Control option.position must one of 'top', 'left', 'right'")}super.add(H)}}s.default=I},{"../utils":"h3rH9","../utils/component":"guki8","./fullscreen":"cxHNK","./fullscreenWeb":"66eEC","./pip":"kCFkA","./playAndPause":"iRhgD","./progress":"aBBSH","./time":"7H0CE","./volume":"lMwFm","./setting":"8BrCu","./thumbnails":"2HiWx","./screenshot":"c1GeG","./airplay":"6GRju","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],guki8:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./dom"),r=o("./format"),n=o("./error"),i=o("option-validator"),u=e.interopDefault(i),a=o("../scheme");s.default=class{constructor(l){this.id=0,this.art=l,this.cache=new Map,this.add=this.add.bind(this),this.remove=this.remove.bind(this),this.update=this.update.bind(this)}get show(){return(0,t.hasClass)(this.art.template.$player,`art-${this.name}-show`)}set show(l){const{$player:c}=this.art.template,p=`art-${this.name}-show`;l?(0,t.addClass)(c,p):(0,t.removeClass)(c,p),this.art.emit(this.name,l)}toggle(){this.show=!this.show}add(l){const c=typeof l=="function"?l(this.art):l;if(c.html=c.html||"",(0,u.default)(c,a.ComponentOption),!this.$parent||!this.name||c.disable)return;const p=c.name||`${this.name}${this.id}`,d=this.cache.get(p);(0,n.errorHandle)(!d,`Can't add an existing [${p}] to the [${this.name}]`),this.id+=1;const y=(0,t.createElement)("div");(0,t.addClass)(y,`art-${this.name}`),(0,t.addClass)(y,`art-${this.name}-${p}`);const m=Array.from(this.$parent.children);y.dataset.index=c.index||this.id;const w=m.find(b=>Number(b.dataset.index)>=Number(y.dataset.index));w?w.insertAdjacentElement("beforebegin",y):(0,t.append)(this.$parent,y),c.html&&(0,t.append)(y,c.html),c.style&&(0,t.setStyles)(y,c.style),c.tooltip&&(0,t.tooltip)(y,c.tooltip);const x=[];if(c.click){const b=this.art.events.proxy(y,"click",g=>{g.preventDefault(),c.click.call(this.art,this,g)});x.push(b)}return c.selector&&["left","right"].includes(c.position)&&this.addSelector(c,y,x),this[p]=y,this.cache.set(p,{$ref:y,events:x,option:c}),c.mounted&&c.mounted.call(this.art,y),y}addSelector(l,c,p){const{hover:d,proxy:y}=this.art.events;(0,t.addClass)(c,"art-control-selector");const m=(0,t.createElement)("div");(0,t.addClass)(m,"art-selector-value"),(0,t.append)(m,l.html),c.innerText="",(0,t.append)(c,m);const w=l.selector.map((f,v)=>`<div class="art-selector-item ${f.default?"art-current":""}" data-index="${v}">${f.html}</div>`).join(""),x=(0,t.createElement)("div");(0,t.addClass)(x,"art-selector-list"),(0,t.append)(x,w),(0,t.append)(c,x);const b=()=>{const f=(0,t.getStyle)(c,"width")/2-(0,t.getStyle)(x,"width")/2;x.style.left=`${f}px`};d(c,b);const g=y(x,"click",async f=>{const v=(f.composedPath()||[]).find(j=>(0,t.hasClass)(j,"art-selector-item"));if(!v)return;(0,t.inverseClass)(v,"art-current");const k=Number(v.dataset.index),T=l.selector[k]||{};if(m.innerText=v.innerText,l.onSelect){const j=await l.onSelect.call(this.art,T,v,f);(0,r.isStringOrNumber)(j)&&(m.innerHTML=j)}b()});p.push(g)}remove(l){const c=this.cache.get(l);(0,n.errorHandle)(c,`Can't find [${l}] from the [${this.name}]`),c.option.beforeUnmount&&c.option.beforeUnmount.call(this.art,c.$ref);for(let p=0;p<c.events.length;p++)this.art.events.remove(c.events[p]);this.cache.delete(l),delete this[l],(0,t.remove)(c.$ref)}update(l){const c=this.cache.get(l.name);return c&&(l=Object.assign(c.option,l),this.remove(l.name)),this.add(l)}}},{"./dom":"XgAQE","./format":"13atT","./error":"2nFlF","option-validator":"bAWi2","../scheme":"AdvwB","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],cxHNK:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Fullscreen"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r,l=(0,e.append)(n,u.fullscreenOn),c=(0,e.append)(n,u.fullscreenOff);(0,e.setStyle)(c,"display","none"),i(n,"click",()=>{r.fullscreen=!r.fullscreen}),r.on("fullscreen",p=>{p?((0,e.tooltip)(n,a.get("Exit Fullscreen")),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","inline-flex")):((0,e.tooltip)(n,a.get("Fullscreen")),(0,e.setStyle)(l,"display","inline-flex"),(0,e.setStyle)(c,"display","none"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"66eEC":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Web Fullscreen"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r,l=(0,e.append)(n,u.fullscreenWebOn),c=(0,e.append)(n,u.fullscreenWebOff);(0,e.setStyle)(c,"display","none"),i(n,"click",()=>{r.fullscreenWeb=!r.fullscreenWeb}),r.on("fullscreenWeb",p=>{p?((0,e.tooltip)(n,a.get("Exit Web Fullscreen")),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","inline-flex")):((0,e.tooltip)(n,a.get("Web Fullscreen")),(0,e.setStyle)(l,"display","inline-flex"),(0,e.setStyle)(c,"display","none"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kCFkA:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("PIP Mode"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r;(0,e.append)(n,u.pip),i(n,"click",()=>{r.pip=!r.pip}),r.on("pip",l=>{(0,e.tooltip)(n,a.get(l?"Exit PIP Mode":"PIP Mode"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iRhgD:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,mounted:n=>{const{proxy:i,icons:u,i18n:a}=r,l=(0,e.append)(n,u.play),c=(0,e.append)(n,u.pause);function p(){(0,e.setStyle)(l,"display","flex"),(0,e.setStyle)(c,"display","none")}function d(){(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","flex")}(0,e.tooltip)(l,a.get("Play")),(0,e.tooltip)(c,a.get("Pause")),i(l,"click",()=>{r.play()}),i(c,"click",()=>{r.pause()}),r.playing?d():p(),r.on("video:playing",()=>{d()}),r.on("video:pause",()=>{p()})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],aBBSH:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s),e.export(s,"getPosFromEvent",()=>r),e.export(s,"setCurrentTime",()=>n);var t=o("../utils");function r(i,u){const{$progress:a}=i.template,{left:l}=a.getBoundingClientRect(),c=t.isMobile?u.touches[0].clientX:u.clientX,p=(0,t.clamp)(c-l,0,a.clientWidth),d=p/a.clientWidth*i.duration;return{second:d,time:(0,t.secondToTime)(d),width:p,percentage:(0,t.clamp)(p/a.clientWidth,0,1)}}function n(i,u){if(i.isRotate){const a=u.touches[0].clientY/i.height,l=a*i.duration;i.emit("setBar","played",a),i.seek=l}else{const{second:a,percentage:l}=r(i,u);i.emit("setBar","played",l),i.seek=a}}s.default=function(i){return u=>{const{icons:a,option:l,proxy:c}=u;return{...i,html:'<div class="art-control-progress-inner"><div class="art-progress-hover"></div><div class="art-progress-loaded"></div><div class="art-progress-played"></div><div class="art-progress-highlight"></div><div class="art-progress-indicator"></div><div class="art-progress-tip"></div></div>',mounted:p=>{let d=!1;const y=(0,t.query)(".art-progress-hover",p),m=(0,t.query)(".art-progress-loaded",p),w=(0,t.query)(".art-progress-played",p),x=(0,t.query)(".art-progress-highlight",p),b=(0,t.query)(".art-progress-indicator",p),g=(0,t.query)(".art-progress-tip",p);function f(v,k){v==="loaded"&&(0,t.setStyle)(m,"width",100*k+"%"),v==="played"&&((0,t.setStyle)(w,"width",100*k+"%"),(0,t.setStyle)(b,"left",100*k+"%"))}a.indicator?(0,t.append)(b,a.indicator):(0,t.setStyle)(b,"backgroundColor","var(--art-theme)"),u.on("video:loadedmetadata",()=>{for(let v=0;v<l.highlight.length;v++){const k=l.highlight[v],T=(0,t.clamp)(k.time,0,u.duration)/u.duration*100,j=`<span data-text="${k.text}" data-time="${k.time}" style="left: ${T}%"></span>`;(0,t.append)(x,j)}}),f("loaded",u.loaded),u.on("setBar",(v,k)=>{f(v,k)}),u.on("video:progress",()=>{f("loaded",u.loaded)}),u.constructor.USE_RAF?u.on("raf",()=>{f("played",u.played)}):u.on("video:timeupdate",()=>{f("played",u.played)}),u.on("video:ended",()=>{f("played",1)}),t.isMobile||(c(p,"click",v=>{v.target!==b&&n(u,v)}),c(p,"mousemove",v=>{(function(k){const{width:T}=r(u,k);(0,t.setStyle)(y,"width",`${T}px`),(0,t.setStyle)(y,"display","flex")})(v),(0,t.setStyle)(g,"display","flex"),(0,t.includeFromEvent)(v,x)?function(k){const{width:T}=r(u,k),{text:j}=k.target.dataset;g.innerHTML=j;const M=g.clientWidth;T<=M/2?(0,t.setStyle)(g,"left",0):T>p.clientWidth-M/2?(0,t.setStyle)(g,"left",p.clientWidth-M+"px"):(0,t.setStyle)(g,"left",T-M/2+"px")}(v):function(k){const{width:T,time:j}=r(u,k);g.innerHTML=j;const M=g.clientWidth;T<=M/2?(0,t.setStyle)(g,"left",0):T>p.clientWidth-M/2?(0,t.setStyle)(g,"left",p.clientWidth-M+"px"):(0,t.setStyle)(g,"left",T-M/2+"px")}(v)}),c(p,"mouseleave",()=>{(0,t.setStyle)(g,"display","none"),(0,t.setStyle)(y,"display","none")}),c(p,"mousedown",v=>{d=v.button===0}),u.on("document:mousemove",v=>{if(d){const{second:k,percentage:T}=r(u,v);f("played",T),u.seek=k}}),u.on("document:mouseup",()=>{d&&(d=!1)}))}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7H0CE":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,style:e.isMobile?{fontSize:"12px",padding:"0 5px"}:{cursor:"auto",padding:"0 10px"},mounted:n=>{function i(){const a=`${(0,e.secondToTime)(r.currentTime)} / ${(0,e.secondToTime)(r.duration)}`;a!==n.innerText&&(n.innerText=a)}i();const u=["video:loadedmetadata","video:timeupdate","video:progress"];for(let a=0;a<u.length;a++)r.on(u[a],i)}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lMwFm:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,mounted:n=>{const{proxy:i,icons:u}=r,a=(0,e.append)(n,u.volume),l=(0,e.append)(n,u.volumeClose),c=(0,e.append)(n,'<div class="art-volume-panel"></div>'),p=(0,e.append)(c,'<div class="art-volume-inner"></div>'),d=(0,e.append)(p,'<div class="art-volume-val"></div>'),y=(0,e.append)(p,'<div class="art-volume-slider"></div>'),m=(0,e.append)(y,'<div class="art-volume-handle"></div>'),w=(0,e.append)(m,'<div class="art-volume-loaded"></div>'),x=(0,e.append)(y,'<div class="art-volume-indicator"></div>');function b(f){const{top:v,height:k}=y.getBoundingClientRect();return 1-(f.clientY-v)/k}function g(){if(r.muted||r.volume===0)(0,e.setStyle)(a,"display","none"),(0,e.setStyle)(l,"display","flex"),(0,e.setStyle)(x,"top","100%"),(0,e.setStyle)(w,"top","100%"),d.innerText=0;else{const f=100*r.volume;(0,e.setStyle)(a,"display","flex"),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(x,"top",100-f+"%"),(0,e.setStyle)(w,"top",100-f+"%"),d.innerText=Math.floor(f)}}if(g(),r.on("video:volumechange",g),i(a,"click",()=>{r.muted=!0}),i(l,"click",()=>{r.muted=!1}),e.isMobile)(0,e.setStyle)(c,"display","none");else{let f=!1;i(y,"mousedown",v=>{f=v.button===0,r.volume=b(v)}),r.on("document:mousemove",v=>{f&&(r.muted=!1,r.volume=b(v))}),r.on("document:mouseup",()=>{f&&(f=!1)})}}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8BrCu":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Show Setting"),mounted:n=>{const{proxy:i,icons:u,i18n:a}=r;(0,e.append)(n,u.setting),i(n,"click",()=>{r.setting.toggle(),r.setting.updateStyle()}),r.on("setting",l=>{(0,e.tooltip)(n,a.get(l?"Hide Setting":"Show Setting"))})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2HiWx":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils"),t=o("./progress");s.default=function(r){return n=>({...r,mounted:i=>{const{option:u,template:{$progress:a,$video:l},events:{proxy:c,loadImg:p}}=n;let d=null,y=!1,m=!1;c(a,"mousemove",async w=>{y||(y=!0,d=await p(u.thumbnails.url),m=!0),m&&((0,e.setStyle)(i,"display","flex"),function(x){const{width:b}=(0,t.getPosFromEvent)(n,x),{url:g,number:f,column:v,width:k,height:T}=u.thumbnails,j=k||d.naturalWidth/v,M=T||j/(l.videoWidth/l.videoHeight),S=a.clientWidth/f,$=Math.floor(b/S),B=Math.ceil($/v)-1,I=$%v||v-1;(0,e.setStyle)(i,"backgroundImage",`url(${g})`),(0,e.setStyle)(i,"height",`${M}px`),(0,e.setStyle)(i,"width",`${j}px`),(0,e.setStyle)(i,"backgroundPosition",`-${I*j}px -${B*M}px`),b<=j/2?(0,e.setStyle)(i,"left",0):b>a.clientWidth-j/2?(0,e.setStyle)(i,"left",a.clientWidth-j+"px"):(0,e.setStyle)(i,"left",b-j/2+"px")}(w))}),c(a,"mouseleave",()=>{(0,e.setStyle)(i,"display","none")}),n.on("hover",w=>{w||(0,e.setStyle)(i,"display","none")})}})}},{"../utils":"h3rH9","./progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],c1GeG:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("Screenshot"),mounted:n=>{const{proxy:i,icons:u}=r;(0,e.append)(n,u.screenshot),i(n,"click",()=>{r.screenshot()})}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6GRju":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>({...t,tooltip:r.i18n.get("AirPlay"),mounted:n=>{const{proxy:i,icons:u}=r;(0,e.append)(n,u.airplay),i(n,"click",()=>r.airplay())}})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7iUum":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("../utils/component"),n=e.interopDefault(r),i=o("./playbackRate"),u=e.interopDefault(i),a=o("./aspectRatio"),l=e.interopDefault(a),c=o("./flip"),p=e.interopDefault(c),d=o("./info"),y=e.interopDefault(d),m=o("./version"),w=e.interopDefault(m),x=o("./close"),b=e.interopDefault(x);class g extends n.default{constructor(v){super(v),this.name="contextmenu",this.$parent=v.template.$contextmenu,t.isMobile||this.init()}init(){const{option:v,proxy:k,template:{$player:T,$contextmenu:j}}=this.art;v.playbackRate&&this.add((0,u.default)({name:"playbackRate",index:10})),v.aspectRatio&&this.add((0,l.default)({name:"aspectRatio",index:20})),v.flip&&this.add((0,p.default)({name:"flip",index:30})),this.add((0,y.default)({name:"info",index:40})),this.add((0,w.default)({name:"version",index:50})),this.add((0,b.default)({name:"close",index:60}));for(let M=0;M<v.contextmenu.length;M++)this.add(v.contextmenu[M]);k(T,"contextmenu",M=>{if(M.preventDefault(),!this.art.constructor.CONTEXTMENU)return;this.show=!0;const S=M.clientX,$=M.clientY,{height:B,width:I,left:C,top:E}=T.getBoundingClientRect(),{height:H,width:_}=j.getBoundingClientRect();let R=S-C,D=$-E;S+_>C+I&&(R=I-_),$+H>E+B&&(D=B-H),(0,t.setStyles)(j,{top:`${D}px`,left:`${R}px`})}),k(T,"click",M=>{(0,t.includeFromEvent)(M,j)||(this.show=!1)}),this.art.on("blur",()=>{this.show=!1})}}s.default=g},{"../utils":"h3rH9","../utils/component":"guki8","./playbackRate":"f1W36","./aspectRatio":"afxZC","./flip":"9jCuX","./info":"k8wIZ","./version":"bb0TU","./close":"9zTkI","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f1W36:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>{const{i18n:n,constructor:{PLAYBACK_RATE:i}}=r,u=i.map(a=>`<span data-value="${a}">${a===1?n.get("Normal"):a.toFixed(1)}</span>`).join("");return{...t,html:`${n.get("Play Speed")}: ${u}`,click:(a,l)=>{const{value:c}=l.target.dataset;c&&(r.playbackRate=Number(c),a.show=!1)},mounted:a=>{const l=(0,e.query)('[data-value="1"]',a);l&&(0,e.inverseClass)(l,"art-current"),r.on("video:ratechange",()=>{const c=(0,e.queryAll)("span",a).find(p=>Number(p.dataset.value)===r.playbackRate);c&&(0,e.inverseClass)(c,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],afxZC:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>{const{i18n:n,constructor:{ASPECT_RATIO:i}}=r,u=i.map(a=>`<span data-value="${a}">${a==="default"?n.get("Default"):a}</span>`).join("");return{...t,html:`${n.get("Aspect Ratio")}: ${u}`,click:(a,l)=>{const{value:c}=l.target.dataset;c&&(r.aspectRatio=c,a.show=!1)},mounted:a=>{const l=(0,e.query)('[data-value="default"]',a);l&&(0,e.inverseClass)(l,"art-current"),r.on("aspectRatio",c=>{const p=(0,e.queryAll)("span",a).find(d=>d.dataset.value===c);p&&(0,e.inverseClass)(p,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9jCuX":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return r=>{const{i18n:n,constructor:{FLIP:i}}=r,u=i.map(a=>`<span data-value="${a}">${n.get((0,e.capitalize)(a))}</span>`).join("");return{...t,html:`${n.get("Video Flip")}: ${u}`,click:(a,l)=>{const{value:c}=l.target.dataset;c&&(r.flip=c.toLowerCase(),a.show=!1)},mounted:a=>{const l=(0,e.query)('[data-value="normal"]',a);l&&(0,e.inverseClass)(l,"art-current"),r.on("flip",c=>{const p=(0,e.queryAll)("span",a).find(d=>d.dataset.value===c);p&&(0,e.inverseClass)(p,"art-current")})}}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],k8wIZ:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){return t=>({...e,html:t.i18n.get("Video Info"),click:r=>{t.info.show=!0,r.show=!1}})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],bb0TU:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){return{...e,html:'<a href="https://artplayer.org" target="_blank">ArtPlayer 5.1.1</a>'}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9zTkI":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){return t=>({...e,html:t.i18n.get("Close"),click:r=>{r.show=!1}})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hD2Lg:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils"),r=o("./utils/component"),n=e.interopDefault(r);class i extends n.default{constructor(a){super(a),this.name="info",t.isMobile||this.init()}init(){const{proxy:a,constructor:l,template:{$infoPanel:c,$infoClose:p,$video:d}}=this.art;a(p,"click",()=>{this.show=!1});let y=null;const m=(0,t.queryAll)("[data-video]",c)||[];this.art.on("destroy",()=>clearTimeout(y)),function w(){for(let x=0;x<m.length;x++){const b=m[x],g=d[b.dataset.video],f=typeof g=="number"?g.toFixed(2):g;b.innerText!==f&&(b.innerText=f)}y=setTimeout(w,l.INFO_LOOP_TIME)}()}}s.default=i},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],lum0D:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils"),r=o("./utils/component"),n=e.interopDefault(r),i=o("option-validator"),u=e.interopDefault(i),a=o("./scheme"),l=e.interopDefault(a);class c extends n.default{constructor(d){super(d),this.name="subtitle",this.eventDestroy=()=>null,this.init(d.option.subtitle);let y=!1;d.on("video:timeupdate",()=>{if(!this.url)return;const m=this.art.template.$video.webkitDisplayingFullscreen;typeof m=="boolean"&&m!==y&&(y=m,this.createTrack(m?"subtitles":"metadata",this.url))})}get url(){return this.art.template.$track.src}set url(d){this.switch(d)}get textTrack(){return this.art.template.$video.textTracks[0]}get activeCue(){return this.textTrack.activeCues[0]}style(d,y){const{$subtitle:m}=this.art.template;return typeof d=="object"?(0,t.setStyles)(m,d):(0,t.setStyle)(m,d,y)}update(){const{$subtitle:d}=this.art.template;d.innerHTML="",this.activeCue&&(this.art.option.subtitle.escape?d.innerHTML=this.activeCue.text.split(/\r?\n/).map(y=>`<div class="art-subtitle-line">${(0,t.escape)(y)}</div>`).join(""):d.innerHTML=this.activeCue.text,this.art.emit("subtitleUpdate",this.activeCue.text))}async switch(d,y={}){const{i18n:m,notice:w,option:x}=this.art,b={...x.subtitle,...y,url:d},g=await this.init(b);return y.name&&(w.show=`${m.get("Switch Subtitle")}: ${y.name}`),g}createTrack(d,y){const{template:m,proxy:w,option:x}=this.art,{$video:b,$track:g}=m,f=(0,t.createElement)("track");f.default=!0,f.kind=d,f.src=y,f.label=x.subtitle.name||"Artplayer",f.track.mode="hidden",this.eventDestroy(),(0,t.remove)(g),(0,t.append)(b,f),m.$track=f,this.eventDestroy=w(this.textTrack,"cuechange",()=>this.update())}async init(d){const{notice:y,template:{$subtitle:m}}=this.art;if((0,u.default)(d,l.default.subtitle),d.url)return this.style(d.style),fetch(d.url).then(w=>w.arrayBuffer()).then(w=>{const x=new TextDecoder(d.encoding).decode(w);switch(this.art.emit("subtitleLoad",d.url),d.type||(0,t.getExt)(d.url)){case"srt":{const b=(0,t.srtToVtt)(x),g=d.onVttLoad(b);return(0,t.vttToBlob)(g)}case"ass":{const b=(0,t.assToVtt)(x),g=d.onVttLoad(b);return(0,t.vttToBlob)(g)}case"vtt":{const b=d.onVttLoad(x);return(0,t.vttToBlob)(b)}default:return d.url}}).then(w=>(m.innerHTML="",this.url===w||(URL.revokeObjectURL(this.url),this.createTrack("metadata",w),this.art.emit("subtitleSwitch",w)),w)).catch(w=>{throw m.innerHTML="",y.show=w,w})}}s.default=c},{"./utils":"h3rH9","./utils/component":"guki8","option-validator":"bAWi2","./scheme":"AdvwB","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"1Epl5":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils/error"),r=o("./clickInit"),n=e.interopDefault(r),i=o("./hoverInit"),u=e.interopDefault(i),a=o("./moveInit"),l=e.interopDefault(a),c=o("./resizeInit"),p=e.interopDefault(c),d=o("./gestureInit"),y=e.interopDefault(d),m=o("./viewInit"),w=e.interopDefault(m),x=o("./documentInit"),b=e.interopDefault(x),g=o("./updateInit"),f=e.interopDefault(g);s.default=class{constructor(v){this.destroyEvents=[],this.proxy=this.proxy.bind(this),this.hover=this.hover.bind(this),this.loadImg=this.loadImg.bind(this),(0,n.default)(v,this),(0,u.default)(v,this),(0,l.default)(v,this),(0,p.default)(v,this),(0,y.default)(v,this),(0,w.default)(v,this),(0,b.default)(v,this),(0,f.default)(v,this)}proxy(v,k,T,j={}){if(Array.isArray(k))return k.map(S=>this.proxy(v,S,T,j));v.addEventListener(k,T,j);const M=()=>v.removeEventListener(k,T,j);return this.destroyEvents.push(M),M}hover(v,k,T){k&&this.proxy(v,"mouseenter",k),T&&this.proxy(v,"mouseleave",T)}loadImg(v){return new Promise((k,T)=>{let j;if(v instanceof HTMLImageElement)j=v;else{if(typeof v!="string")return T(new t.ArtPlayerError("Unable to get Image"));j=new Image,j.src=v}if(j.complete)return k(j);this.proxy(j,"load",()=>k(j)),this.proxy(j,"error",()=>T(new t.ArtPlayerError(`Failed to load Image: ${j.src}`)))})}remove(v){const k=this.destroyEvents.indexOf(v);k>-1&&(v(),this.destroyEvents.splice(k,1))}destroy(){for(let v=0;v<this.destroyEvents.length;v++)this.destroyEvents[v]()}}},{"../utils/error":"2nFlF","./clickInit":"gzL6e","./hoverInit":"kpTJf","./moveInit":"ef6qz","./resizeInit":"9TXOX","./gestureInit":"dePMU","./viewInit":"hDyWF","./documentInit":"7RjDP","./updateInit":"8SmBT","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],gzL6e:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{constructor:n,template:{$player:i,$video:u}}=t;r.proxy(document,["click","contextmenu"],l=>{(0,e.includeFromEvent)(l,i)?(t.isInput=l.target.tagName==="INPUT",t.isFocus=!0,t.emit("focus",l)):(t.isInput=!1,t.isFocus=!1,t.emit("blur",l))});let a=0;r.proxy(u,"click",l=>{const c=Date.now(),{MOBILE_CLICK_PLAY:p,DBCLICK_TIME:d,MOBILE_DBCLICK_PLAY:y,DBCLICK_FULLSCREEN:m}=n;c-a<=d?(t.emit("dblclick",l),e.isMobile?!t.isLock&&y&&t.toggle():m&&(t.fullscreen=!t.fullscreen)):(t.emit("click",l),e.isMobile?!t.isLock&&p&&t.toggle():t.toggle()),a=c})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],kpTJf:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{$player:n}=t.template;r.hover(n,i=>{(0,e.addClass)(n,"art-hover"),t.emit("hover",!0,i)},i=>{(0,e.removeClass)(n,"art-hover"),t.emit("hover",!1,i)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],ef6qz:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e,t){const{$player:r}=e.template;t.proxy(r,"mousemove",n=>{e.emit("mousemove",n)})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9TXOX":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{option:n,constructor:i}=t;t.on("resize",()=>{const{aspectRatio:a,notice:l}=t;t.state==="standard"&&n.autoSize&&t.autoSize(),t.aspectRatio=a,l.show=""});const u=(0,e.debounce)(()=>t.emit("resize"),i.RESIZE_TIME);r.proxy(window,["orientationchange","resize"],()=>u()),screen&&screen.orientation&&screen.orientation.onchange&&r.proxy(screen.orientation,"change",()=>u())}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],dePMU:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils"),t=o("../control/progress");function r(n,i,u,a){var l=i-a,c=u-n,p=0;if(Math.abs(c)<2&&Math.abs(l)<2)return p;var d=function(y,m){return 180*Math.atan2(m,y)/Math.PI}(c,l);return d>=-45&&d<45?p=4:d>=45&&d<135?p=1:d>=-135&&d<-45?p=2:(d>=135&&d<=180||d>=-180&&d<-135)&&(p=3),p}s.default=function(n,i){if(e.isMobile&&!n.option.isLive){const{$video:u,$progress:a}=n.template;let l=null,c=!1,p=0,d=0,y=0;const m=b=>{if(b.touches.length===1&&!n.isLock){l===a&&(0,t.setCurrentTime)(n,b),c=!0;const{pageX:g,pageY:f}=b.touches[0];p=g,d=f,y=n.currentTime}},w=b=>{if(b.touches.length===1&&c&&n.duration){const{pageX:g,pageY:f}=b.touches[0],v=r(p,d,g,f),k=[3,4].includes(v),T=[1,2].includes(v);if(k&&!n.isRotate||T&&n.isRotate){const j=(0,e.clamp)((g-p)/n.width,-1,1),M=(0,e.clamp)((f-d)/n.height,-1,1),S=n.isRotate?M:j,$=l===u?n.constructor.TOUCH_MOVE_RATIO:1,B=(0,e.clamp)(y+n.duration*S*$,0,n.duration);n.seek=B,n.emit("setBar","played",(0,e.clamp)(B/n.duration,0,1)),n.notice.show=`${(0,e.secondToTime)(B)} / ${(0,e.secondToTime)(n.duration)}`}}},x=()=>{c&&(p=0,d=0,y=0,c=!1,l=null)};i.proxy(a,"touchstart",b=>{l=a,m(b)}),i.proxy(u,"touchstart",b=>{l=u,m(b)}),i.proxy(u,"touchmove",w),i.proxy(a,"touchmove",w),i.proxy(document,"touchend",x)}}},{"../utils":"h3rH9","../control/progress":"aBBSH","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],hDyWF:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t,r){const{option:n,constructor:i,template:{$container:u}}=t,a=(0,e.throttle)(()=>{t.emit("view",(0,e.isInViewport)(u,i.SCROLL_GAP))},i.SCROLL_TIME);r.proxy(window,"scroll",()=>a()),t.on("view",l=>{n.autoMini&&(t.mini=!l)})}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"7RjDP":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e,t){t.proxy(document,"mousemove",r=>{e.emit("document:mousemove",r)}),t.proxy(document,"mouseup",r=>{e.emit("document:mouseup",r)})}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"8SmBT":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){if(e.constructor.USE_RAF){let t=null;(function r(){e.playing&&e.emit("raf"),e.isDestroy||(t=requestAnimationFrame(r))})(),e.on("destroy",()=>{cancelAnimationFrame(t)})}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],eTow4:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("./utils");s.default=class{constructor(t){this.art=t,this.keys={},t.option.hotkey&&!e.isMobile&&this.init()}init(){const{proxy:t,constructor:r}=this.art;this.add(27,()=>{this.art.fullscreenWeb&&(this.art.fullscreenWeb=!1)}),this.add(32,()=>{this.art.toggle()}),this.add(37,()=>{this.art.backward=r.SEEK_STEP}),this.add(38,()=>{this.art.volume+=r.VOLUME_STEP}),this.add(39,()=>{this.art.forward=r.SEEK_STEP}),this.add(40,()=>{this.art.volume-=r.VOLUME_STEP}),t(window,"keydown",n=>{if(this.art.isFocus){const i=document.activeElement.tagName.toUpperCase(),u=document.activeElement.getAttribute("contenteditable");if(!(i==="INPUT"||i==="TEXTAREA"||u===""||u==="true"||n.altKey||n.ctrlKey||n.metaKey||n.shiftKey)){const a=this.keys[n.keyCode];if(a){n.preventDefault();for(let l=0;l<a.length;l++)a[l].call(this.art,n);this.art.emit("hotkey",n)}}}})}add(t,r){return this.keys[t]?this.keys[t].push(r):this.keys[t]=[r],this}remove(t,r){if(this.keys[t]){const n=this.keys[t].indexOf(r);n!==-1&&this.keys[t].splice(n,1)}return this}}},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"4fDoD":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils/component"),r=e.interopDefault(t);class n extends r.default{constructor(u){super(u);const{option:a,template:{$layer:l}}=u;this.name="layer",this.$parent=l;for(let c=0;c<a.layers.length;c++)this.add(a.layers[c])}}s.default=n},{"./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fE0Sp:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils"),r=o("./utils/component"),n=e.interopDefault(r);class i extends n.default{constructor(a){super(a),this.name="loading",(0,t.append)(a.template.$loading,a.icons.loading)}}s.default=i},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"9PuGy":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("./utils");s.default=class{constructor(t){this.art=t,this.timer=null}set show(t){const{constructor:r,template:{$player:n,$noticeInner:i}}=this.art;t?(i.innerText=t instanceof Error?t.message.trim():t,(0,e.addClass)(n,"art-notice-show"),clearTimeout(this.timer),this.timer=setTimeout(()=>{i.innerText="",(0,e.removeClass)(n,"art-notice-show")},r.NOTICE_TIME)):(0,e.removeClass)(n,"art-notice-show")}}},{"./utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2etr0":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./utils"),r=o("./utils/component"),n=e.interopDefault(r);class i extends n.default{constructor(a){super(a),this.name="mask";const{template:l,icons:c,events:p}=a,d=(0,t.append)(l.$state,c.state),y=(0,t.append)(l.$state,c.error);(0,t.setStyle)(y,"display","none"),a.on("destroy",()=>{(0,t.setStyle)(d,"display","none"),(0,t.setStyle)(y,"display",null)}),p.proxy(l.$state,"click",()=>a.play())}}s.default=i},{"./utils":"h3rH9","./utils/component":"guki8","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"6dYSr":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("bundle-text:./loading.svg"),n=e.interopDefault(r),i=o("bundle-text:./state.svg"),u=e.interopDefault(i),a=o("bundle-text:./check.svg"),l=e.interopDefault(a),c=o("bundle-text:./play.svg"),p=e.interopDefault(c),d=o("bundle-text:./pause.svg"),y=e.interopDefault(d),m=o("bundle-text:./volume.svg"),w=e.interopDefault(m),x=o("bundle-text:./volume-close.svg"),b=e.interopDefault(x),g=o("bundle-text:./screenshot.svg"),f=e.interopDefault(g),v=o("bundle-text:./setting.svg"),k=e.interopDefault(v),T=o("bundle-text:./arrow-left.svg"),j=e.interopDefault(T),M=o("bundle-text:./arrow-right.svg"),S=e.interopDefault(M),$=o("bundle-text:./playback-rate.svg"),B=e.interopDefault($),I=o("bundle-text:./aspect-ratio.svg"),C=e.interopDefault(I),E=o("bundle-text:./config.svg"),H=e.interopDefault(E),_=o("bundle-text:./pip.svg"),R=e.interopDefault(_),D=o("bundle-text:./lock.svg"),Y=e.interopDefault(D),K=o("bundle-text:./unlock.svg"),G=e.interopDefault(K),X=o("bundle-text:./fullscreen-off.svg"),J=e.interopDefault(X),Q=o("bundle-text:./fullscreen-on.svg"),ee=e.interopDefault(Q),te=o("bundle-text:./fullscreen-web-off.svg"),re=e.interopDefault(te),ae=o("bundle-text:./fullscreen-web-on.svg"),ne=e.interopDefault(ae),oe=o("bundle-text:./switch-on.svg"),ie=e.interopDefault(oe),se=o("bundle-text:./switch-off.svg"),N=e.interopDefault(se),O=o("bundle-text:./flip.svg"),he=e.interopDefault(O),P=o("bundle-text:./error.svg"),W=e.interopDefault(P),U=o("bundle-text:./close.svg"),V=e.interopDefault(U),q=o("bundle-text:./airplay.svg"),le=e.interopDefault(q);s.default=class{constructor(fe){const ue={loading:n.default,state:u.default,play:p.default,pause:y.default,check:l.default,volume:w.default,volumeClose:b.default,screenshot:f.default,setting:k.default,pip:R.default,arrowLeft:j.default,arrowRight:S.default,playbackRate:B.default,aspectRatio:C.default,config:H.default,lock:Y.default,flip:he.default,unlock:G.default,fullscreenOff:J.default,fullscreenOn:ee.default,fullscreenWebOff:re.default,fullscreenWebOn:ne.default,switchOn:ie.default,switchOff:N.default,error:W.default,close:V.default,airplay:le.default,...fe.option.icons};for(const ce in ue)(0,t.def)(this,ce,{get:()=>(0,t.getIcon)(ce,ue[ce])})}}},{"../utils":"h3rH9","bundle-text:./loading.svg":"fY5Gt","bundle-text:./state.svg":"iNfLt","bundle-text:./check.svg":"jtE9u","bundle-text:./play.svg":"elgfY","bundle-text:./pause.svg":"eKokJ","bundle-text:./volume.svg":"hNB4y","bundle-text:./volume-close.svg":"i9vta","bundle-text:./screenshot.svg":"kB3Mf","bundle-text:./setting.svg":"3MONs","bundle-text:./arrow-left.svg":"iMCpk","bundle-text:./arrow-right.svg":"3oe4L","bundle-text:./playback-rate.svg":"liE22","bundle-text:./aspect-ratio.svg":"8HqYc","bundle-text:./config.svg":"hYAAH","bundle-text:./pip.svg":"jmNrH","bundle-text:./lock.svg":"cIqko","bundle-text:./unlock.svg":"65zy4","bundle-text:./fullscreen-off.svg":"jaJRT","bundle-text:./fullscreen-on.svg":"cRY1X","bundle-text:./fullscreen-web-off.svg":"3aVGL","bundle-text:./fullscreen-web-on.svg":"4DiVn","bundle-text:./switch-on.svg":"kwdKE","bundle-text:./switch-off.svg":"bWfXZ","bundle-text:./flip.svg":"h3zZ9","bundle-text:./error.svg":"7Oyth","bundle-text:./close.svg":"U5Jcy","bundle-text:./airplay.svg":"jK5Fx","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fY5Gt:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" width="50" height="50" viewBox="0 0 100 100" preserveAspectRatio="xMidYMid" class="uil-default"><path fill="none" class="bk" d="M0 0h100v100H0z"/><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="translate(0 -30)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-1s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(30 105.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.9166666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(60 75.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.8333333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(90 65 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.75s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(120 58.66 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.6666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(150 54.02 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5833333333333334s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(180 50 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.5s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-150 45.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.4166666666666667s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-120 41.34 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.3333333333333333s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-90 35 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.25s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-60 24.02 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.16666666666666666s" repeatCount="indefinite"/></rect><rect x="47" y="40" width="6" height="20" rx="5" ry="5" fill="#fff" transform="rotate(-30 -5.98 65)"><animate attributeName="opacity" from="1" to="0" dur="1s" begin="-0.08333333333333333s" repeatCount="indefinite"/></rect></svg>'},{}],iNfLt:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" width="80" height="80" viewBox="0 0 24 24"><path fill="#fff" d="M9.5 9.325v5.35q0 .575.525.875t1.025-.05l4.15-2.65q.475-.3.475-.85t-.475-.85L11.05 8.5q-.5-.35-1.025-.05t-.525.875ZM12 22q-2.075 0-3.9-.788t-3.175-2.137q-1.35-1.35-2.137-3.175T2 12q0-2.075.788-3.9t2.137-3.175q1.35-1.35 3.175-2.137T12 2q2.075 0 3.9.788t3.175 2.137q1.35 1.35 2.138 3.175T22 12q0 2.075-.788 3.9t-2.137 3.175q-1.35 1.35-3.175 2.138T12 22Z"/></svg>'},{}],jtE9u:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" style="width:100%;height:100%"><path d="M9 16.2 4.8 12l-1.4 1.4L9 19 21 7l-1.4-1.4L9 16.2z" fill="#fff"/></svg>'},{}],elgfY:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M17.982 9.275 8.06 3.27A2.013 2.013 0 0 0 5 4.994v12.011a2.017 2.017 0 0 0 3.06 1.725l9.922-6.005a2.017 2.017 0 0 0 0-3.45z"/></svg>'},{}],eKokJ:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M7 3a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2zm8 0a2 2 0 0 0-2 2v12a2 2 0 1 0 4 0V5a2 2 0 0 0-2-2z"/></svg>'},{}],hNB4y:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M10.188 4.65 6 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39V5.04a.498.498 0 0 0-.812-.39zm4.258-.872a1 1 0 0 0-.862 1.804 6.002 6.002 0 0 1-.007 10.838 1 1 0 0 0 .86 1.806A8.001 8.001 0 0 0 19 11a8.001 8.001 0 0 0-4.554-7.222z"/><path d="M15 11a3.998 3.998 0 0 0-2-3.465v6.93A3.998 3.998 0 0 0 15 11z"/></svg>'},{}],i9vta:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><path d="M15 11a3.998 3.998 0 0 0-2-3.465v2.636l1.865 1.865A4.02 4.02 0 0 0 15 11z"/><path d="M13.583 5.583A5.998 5.998 0 0 1 17 11a6 6 0 0 1-.585 2.587l1.477 1.477a8.001 8.001 0 0 0-3.446-11.286 1 1 0 0 0-.863 1.805zm5.195 13.195-2.121-2.121-1.414-1.414-1.415-1.415L13 13l-2-2-3.889-3.889-3.889-3.889a.999.999 0 1 0-1.414 1.414L5.172 8H5a2 2 0 0 0-2 2v2a2 2 0 0 0 2 2h1l4.188 3.35a.5.5 0 0 0 .812-.39v-3.131l2.587 2.587-.01.005a1 1 0 0 0 .86 1.806c.215-.102.424-.214.627-.333l2.3 2.3a1.001 1.001 0 0 0 1.414-1.416zM11 5.04a.5.5 0 0 0-.813-.39L8.682 5.854 11 8.172V5.04z"/></svg>'},{}],kB3Mf:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22" viewBox="0 0 50 50"><path d="M19.402 6a5 5 0 0 0-4.902 4.012L14.098 12H9a5 5 0 0 0-5 5v21a5 5 0 0 0 5 5h32a5 5 0 0 0 5-5V17a5 5 0 0 0-5-5h-5.098l-.402-1.988A5 5 0 0 0 30.598 6ZM25 17c5.52 0 10 4.48 10 10s-4.48 10-10 10-10-4.48-10-10 4.48-10 10-10Zm0 2c-4.41 0-8 3.59-8 8s3.59 8 8 8 8-3.59 8-8-3.59-8-8-8Z"/></svg>'},{}],"3MONs":[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="22" width="22"><circle cx="11" cy="11" r="2"/><path d="M19.164 8.861 17.6 8.6a6.978 6.978 0 0 0-1.186-2.099l.574-1.533a1 1 0 0 0-.436-1.217l-1.997-1.153a1.001 1.001 0 0 0-1.272.23l-1.008 1.225a7.04 7.04 0 0 0-2.55.001L8.716 2.829a1 1 0 0 0-1.272-.23L5.447 3.751a1 1 0 0 0-.436 1.217l.574 1.533A6.997 6.997 0 0 0 4.4 8.6l-1.564.261A.999.999 0 0 0 2 9.847v2.306c0 .489.353.906.836.986l1.613.269a7 7 0 0 0 1.228 2.075l-.558 1.487a1 1 0 0 0 .436 1.217l1.997 1.153c.423.244.961.147 1.272-.23l1.04-1.263a7.089 7.089 0 0 0 2.272 0l1.04 1.263a1 1 0 0 0 1.272.23l1.997-1.153a1 1 0 0 0 .436-1.217l-.557-1.487c.521-.61.94-1.31 1.228-2.075l1.613-.269a.999.999 0 0 0 .835-.986V9.847a.999.999 0 0 0-.836-.986zM11 15a4 4 0 1 1 0-8 4 4 0 0 1 0 8z"/></svg>'},{}],iMCpk:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><path d="m19.41 20.09-4.58-4.59 4.58-4.59L18 9.5l-6 6 6 6z" fill="#fff"/></svg>'},{}],"3oe4L":[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" height="32" width="32"><path d="m12.59 20.34 4.58-4.59-4.58-4.59L14 9.75l6 6-6 6z" fill="#fff"/></svg>'},{}],liE22:[function(o,h,s){h.exports='<svg height="24" width="24"><path d="M10 8v8l6-4-6-4zM6.3 5l-.6-.8C7.2 3 9 2.2 11 2l.1 1c-1.8.2-3.4.9-4.8 2zM5 6.3l-.8-.6C3 7.2 2.2 9 2 11l1 .1c.2-1.8.9-3.4 2-4.8zm0 11.4c-1.1-1.4-1.8-3.1-2-4.8L2 13c.2 2 1 3.8 2.2 5.4l.8-.7zm6.1 3.3c-1.8-.2-3.4-.9-4.8-2l-.6.8C7.2 21 9 21.8 11 22l.1-1zM22 12c0-5.2-3.9-9.4-9-10l-.1 1c4.6.5 8.1 4.3 8.1 9s-3.5 8.5-8.1 9l.1 1c5.2-.5 9-4.8 9-10z" fill="#fff" style="--darkreader-inline-fill:#a8a6a4"/></svg>'},{}],"8HqYc":[function(o,h,s){h.exports=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 88 88" style="width:100%;height:100%;transform:translate(0,0)"><defs><clipPath id="__lottie_element_216"><path d="M0 0h88v88H0z"/></clipPath></defs><g style="display:block" clip-path="url('#__lottie_element_216')"><path fill="#FFF" d="m12.438-12.702-2.82 2.82c-.79.79-.79 2.05 0 2.83l7.07 7.07-7.07 7.07c-.79.79-.79 2.05 0 2.83l2.82 2.83c.79.78 2.05.78 2.83 0l11.32-11.31c.78-.78.78-2.05 0-2.83l-11.32-11.31c-.78-.79-2.04-.79-2.83 0zm-24.88 0c-.74-.74-1.92-.78-2.7-.12l-.13.12-11.31 11.31a2 2 0 0 0-.12 2.7l.12.13 11.31 11.31a2 2 0 0 0 2.7.12l.13-.12 2.83-2.83c.74-.74.78-1.91.11-2.7l-.11-.13-7.07-7.07 7.07-7.07c.74-.74.78-1.91.11-2.7l-.11-.13-2.83-2.82zM28-28c4.42 0 8 3.58 8 8v40c0 4.42-3.58 8-8 8h-56c-4.42 0-8-3.58-8-8v-40c0-4.42 3.58-8 8-8h56z" style="--darkreader-inline-fill:#a8a6a4" transform="translate(44 44)"/></g></svg>`},{}],hYAAH:[function(o,h,s){h.exports='<svg height="24" width="24"><path d="M15 17h6v1h-6v-1zm-4 0H3v1h8v2h1v-5h-1v2zm3-9h1V3h-1v2H3v1h11v2zm4-3v1h3V5h-3zM6 14h1V9H6v2H3v1h3v2zm4-2h11v-1H10v1z" fill="#fff" style="--darkreader-inline-fill:#a8a6a4"/></svg>'},{}],jmNrH:[function(o,h,s){h.exports='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 36 36" height="32" width="32"><path d="M25 17h-8v6h8v-6Zm4 8V10.98C29 9.88 28.1 9 27 9H9c-1.1 0-2 .88-2 1.98V25c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2Zm-2 .02H9V10.97h18v14.05Z"/></svg>'},{}],cIqko:[function(o,h,s){h.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="M298.667 426.667v-85.334a213.333 213.333 0 1 1 426.666 0v85.334H768A85.333 85.333 0 0 1 853.333 512v256A85.333 85.333 0 0 1 768 853.333H256A85.333 85.333 0 0 1 170.667 768V512A85.333 85.333 0 0 1 256 426.667h42.667zM512 213.333a128 128 0 0 0-128 128v85.334h256v-85.334a128 128 0 0 0-128-128z" fill="#fff"/></svg>'},{}],"65zy4":[function(o,h,s){h.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="20" height="20"><path d="m666.752 194.517-49.365 74.112A128 128 0 0 0 384 341.333l.043 85.334h384A85.333 85.333 0 0 1 853.376 512v256a85.333 85.333 0 0 1-85.333 85.333H256A85.333 85.333 0 0 1 170.667 768V512A85.333 85.333 0 0 1 256 426.667h42.667v-85.334a213.333 213.333 0 0 1 368.085-146.816z" fill="#fff"/></svg>'},{}],jaJRT:[function(o,h,s){h.exports='<svg class="icon" width="22" height="22" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M768 298.667h170.667V384h-256V128H768v170.667zM341.333 384h-256v-85.333H256V128h85.333v256zM768 725.333V896h-85.333V640h256v85.333H768zM341.333 640v256H256V725.333H85.333V640h256z"/></svg>'},{}],cRY1X:[function(o,h,s){h.exports='<svg class="icon" width="22" height="22" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M625.778 256H768v142.222h113.778v-256h-256V256zM256 398.222V256h142.222V142.222h-256v256H256zm512 227.556V768H625.778v113.778h256v-256H768zM398.222 768H256V625.778H142.222v256h256V768z"/></svg>'},{}],"3aVGL":[function(o,h,s){h.exports='<svg class="icon" width="18" height="18" viewBox="0 0 1152 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M1075.2 0H76.8A76.8 76.8 0 0 0 0 76.8v870.4a76.8 76.8 0 0 0 76.8 76.8h998.4a76.8 76.8 0 0 0 76.8-76.8V76.8A76.8 76.8 0 0 0 1075.2 0zM1024 128v768H128V128h896zM896 512a64 64 0 0 1 7.488 127.552L896 640H768v128a64 64 0 0 1-56.512 63.552L704 832a64 64 0 0 1-63.552-56.512L640 768V582.592c0-34.496 25.024-66.112 61.632-70.208l8-.384H896zm-640 0a64 64 0 0 1-7.488-127.552L256 384h128V256a64 64 0 0 1 56.512-63.552L448 192a64 64 0 0 1 63.552 56.512L512 256v185.408c0 34.432-25.024 66.112-61.632 70.144l-8 .448H256z"/></svg>'},{}],"4DiVn":[function(o,h,s){h.exports='<svg class="icon" width="18" height="18" viewBox="0 0 1152 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M1075.2 0H76.8A76.8 76.8 0 0 0 0 76.8v870.4a76.8 76.8 0 0 0 76.8 76.8h998.4a76.8 76.8 0 0 0 76.8-76.8V76.8A76.8 76.8 0 0 0 1075.2 0zM1024 128v768H128V128h896zm-576 64a64 64 0 0 1 7.488 127.552L448 320H320v128a64 64 0 0 1-56.512 63.552L256 512a64 64 0 0 1-63.552-56.512L192 448V262.592c0-34.432 25.024-66.112 61.632-70.144l8-.448H448zm256 640a64 64 0 0 1-7.488-127.552L704 704h128V576a64 64 0 0 1 56.512-63.552L896 512a64 64 0 0 1 63.552 56.512L960 576v185.408c0 34.496-25.024 66.112-61.632 70.208l-8 .384H704z"/></svg>'},{}],kwdKE:[function(o,h,s){h.exports='<svg class="icon" width="26" height="26" viewBox="0 0 1664 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#648FFC" d="M1152 0H512a512 512 0 0 0 0 1024h640a512 512 0 0 0 0-1024zm0 960a448 448 0 1 1 448-448 448 448 0 0 1-448 448z"/></svg>'},{}],bWfXZ:[function(o,h,s){h.exports='<svg class="icon" width="26" height="26" viewBox="0 0 1740 1024" xmlns="http://www.w3.org/2000/svg"><path fill="#fff" d="M511.898 1024h670.515c282.419-.41 511.18-229.478 511.18-511.898 0-282.419-228.761-511.488-511.18-511.897H511.898C229.478.615.717 229.683.717 512.102c0 282.42 228.761 511.488 511.18 511.898zm-.564-975.36A464.589 464.589 0 1 1 48.026 513.024 463.872 463.872 0 0 1 511.334 48.435v.205z"/></svg>'},{}],h3zZ9:[function(o,h,s){h.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="24" height="24"><path d="M554.667 810.667V896h-85.334v-85.333h85.334zm-384-632.662a42.667 42.667 0 0 1 34.986 18.219l203.904 291.328a42.667 42.667 0 0 1 0 48.896L205.611 827.776A42.667 42.667 0 0 1 128 803.328V220.672a42.667 42.667 0 0 1 42.667-42.667zm682.666 0a42.667 42.667 0 0 1 42.368 37.718l.299 4.949v582.656a42.667 42.667 0 0 1-74.24 28.63l-3.413-4.182-203.904-291.328a42.667 42.667 0 0 1-3.03-43.861l3.03-5.035 203.946-291.328a42.667 42.667 0 0 1 34.944-18.219zM554.667 640v85.333h-85.334V640h85.334zm-358.4-320.896V716.8L335.957 512 196.31 319.104zm358.4 150.23v85.333h-85.334v-85.334h85.334zm0-170.667V384h-85.334v-85.333h85.334zm0-170.667v85.333h-85.334V128h85.334z" fill="#fff"/></svg>'},{}],"7Oyth":[function(o,h,s){h.exports='<svg viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="50" height="50"><path d="M593.818 168.55 949.82 763.76c26.153 43.746 10.732 99.738-34.447 125.052-14.397 8.069-30.72 12.308-47.37 12.308H155.976c-52.224 0-94.536-40.96-94.536-91.505 0-16.097 4.383-31.928 12.718-45.875l356.004-595.19c26.173-43.724 84.009-58.654 129.208-33.341a93.082 93.082 0 0 1 34.448 33.341zM512 819.2a61.44 61.44 0 1 0 0-122.88 61.44 61.44 0 0 0 0 122.88zm0-512a72.315 72.315 0 0 0-71.762 81.306l25.723 205.721a46.408 46.408 0 0 0 92.078 0l25.723-205.742A72.315 72.315 0 0 0 512 307.2z"/></svg>'},{}],U5Jcy:[function(o,h,s){h.exports='<svg class="icon" viewBox="0 0 1024 1024" xmlns="http://www.w3.org/2000/svg" width="22" height="22"><path d="m571.733 512 268.8-268.8c17.067-17.067 17.067-42.667 0-59.733-17.066-17.067-42.666-17.067-59.733 0L512 452.267l-268.8-268.8c-17.067-17.067-42.667-17.067-59.733 0-17.067 17.066-17.067 42.666 0 59.733l268.8 268.8-268.8 268.8c-17.067 17.067-17.067 42.667 0 59.733 8.533 8.534 19.2 12.8 29.866 12.8s21.334-4.266 29.867-12.8l268.8-268.8 268.8 268.8c8.533 8.534 19.2 12.8 29.867 12.8s21.333-4.266 29.866-12.8c17.067-17.066 17.067-42.666 0-59.733L571.733 512z"/></svg>'},{}],jK5Fx:[function(o,h,s){h.exports='<svg width="18" height="18" xmlns="http://www.w3.org/2000/svg"><g fill="#fff"><path d="M16 1H2a1 1 0 0 0-1 1v10a1 1 0 0 0 1 1h3v-2H3V3h12v8h-2v2h3a1 1 0 0 0 1-1V2a1 1 0 0 0-1-1Z"/><path d="M4 17h10l-5-6z"/></g></svg>'},{}],bRHiA:[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("./flip"),r=e.interopDefault(t),n=o("./aspectRatio"),i=e.interopDefault(n),u=o("./playbackRate"),a=e.interopDefault(u),l=o("./subtitleOffset"),c=e.interopDefault(l),p=o("../utils/component"),d=e.interopDefault(p),y=o("../utils/error"),m=o("../utils");class w extends d.default{constructor(b){super(b);const{option:g,controls:f,template:{$setting:v}}=b;this.name="setting",this.$parent=v,this.option=[],this.events=[],this.cache=new Map,g.setting&&(this.init(),b.on("blur",()=>{this.show&&(this.show=!1,this.render(this.option))}),b.on("focus",k=>{const T=(0,m.includeFromEvent)(k,f.setting),j=(0,m.includeFromEvent)(k,this.$parent);!this.show||T||j||(this.show=!1,this.render(this.option))}))}static makeRecursion(b,g,f){for(let v=0;v<b.length;v++){const k=b[v];k.$parentItem=g,k.$parentList=f,w.makeRecursion(k.selector||[],k,b)}return b}get defaultSettings(){const b=[],{option:g}=this.art;return g.playbackRate&&b.push((0,a.default)(this.art)),g.aspectRatio&&b.push((0,i.default)(this.art)),g.flip&&b.push((0,r.default)(this.art)),g.subtitleOffset&&b.push((0,c.default)(this.art)),b}init(){const{option:b}=this.art,g=[...this.defaultSettings,...b.settings];this.option=w.makeRecursion(g),this.destroy(),this.render(this.option)}destroy(){for(let b=0;b<this.events.length;b++)this.art.events.remove(this.events[b]);this.$parent.innerHTML="",this.events=[],this.cache=new Map}find(b="",g=this.option){for(let f=0;f<g.length;f++){const v=g[f];if(v.name===b)return v;{const k=this.find(b,v.selector||[]);if(k)return k}}}remove(b){const g=this.find(b);(0,y.errorHandle)(g,`Can't find [${b}] from the [setting]`);const f=g.$parentItem?g.$parentItem.selector:this.option;return f.splice(f.indexOf(g),1),this.option=w.makeRecursion(this.option),this.destroy(),this.render(this.option),this.option}update(b){const g=this.find(b.name);return g?(Object.assign(g,b),this.option=w.makeRecursion(this.option),this.destroy(),this.render(this.option)):this.add(b),this.option}add(b){return this.option.push(b),this.option=w.makeRecursion(this.option),this.destroy(),this.render(this.option),this.option}creatHeader(b){const{icons:g,proxy:f,constructor:v}=this.art,k=(0,m.createElement)("div");(0,m.setStyle)(k,"height",`${v.SETTING_ITEM_HEIGHT}px`),(0,m.addClass)(k,"art-setting-item"),(0,m.addClass)(k,"art-setting-item-back");const T=(0,m.append)(k,'<div class="art-setting-item-left"></div>'),j=(0,m.createElement)("div");(0,m.addClass)(j,"art-setting-item-left-icon"),(0,m.append)(j,g.arrowLeft),(0,m.append)(T,j),(0,m.append)(T,b.$parentItem.html);const M=f(k,"click",()=>this.render(b.$parentList));return this.events.push(M),k}creatItem(b,g){const{icons:f,proxy:v,constructor:k}=this.art,T=(0,m.createElement)("div");(0,m.addClass)(T,"art-setting-item"),(0,m.setStyle)(T,"height",`${k.SETTING_ITEM_HEIGHT}px`),(0,m.isStringOrNumber)(g.name)&&(T.dataset.name=g.name),(0,m.isStringOrNumber)(g.value)&&(T.dataset.value=g.value);const j=(0,m.append)(T,'<div class="art-setting-item-left"></div>'),M=(0,m.append)(T,'<div class="art-setting-item-right"></div>'),S=(0,m.createElement)("div");switch((0,m.addClass)(S,"art-setting-item-left-icon"),b){case"switch":case"range":(0,m.append)(S,(0,m.isStringOrNumber)(g.icon)||g.icon instanceof Element?g.icon:f.config);break;case"selector":g.selector&&g.selector.length?(0,m.append)(S,(0,m.isStringOrNumber)(g.icon)||g.icon instanceof Element?g.icon:f.config):(0,m.append)(S,f.check)}(0,m.append)(j,S),g.$icon=S,(0,m.def)(g,"icon",{configurable:!0,get:()=>S.innerHTML,set(I){(0,m.isStringOrNumber)(I)&&(S.innerHTML=I)}});const $=(0,m.createElement)("div");(0,m.addClass)($,"art-setting-item-left-text"),(0,m.append)($,g.html||""),(0,m.append)(j,$),g.$html=$,(0,m.def)(g,"html",{configurable:!0,get:()=>$.innerHTML,set(I){(0,m.isStringOrNumber)(I)&&($.innerHTML=I)}});const B=(0,m.createElement)("div");switch((0,m.addClass)(B,"art-setting-item-right-tooltip"),(0,m.append)(B,g.tooltip||""),(0,m.append)(M,B),g.$tooltip=B,(0,m.def)(g,"tooltip",{configurable:!0,get:()=>B.innerHTML,set(I){(0,m.isStringOrNumber)(I)&&(B.innerHTML=I)}}),b){case"switch":{const I=(0,m.createElement)("div");(0,m.addClass)(I,"art-setting-item-right-icon");const C=(0,m.append)(I,f.switchOn),E=(0,m.append)(I,f.switchOff);(0,m.setStyle)(g.switch?E:C,"display","none"),(0,m.append)(M,I),g.$switch=g.switch,(0,m.def)(g,"switch",{configurable:!0,get:()=>g.$switch,set(H){g.$switch=H,H?((0,m.setStyle)(E,"display","none"),(0,m.setStyle)(C,"display",null)):((0,m.setStyle)(E,"display",null),(0,m.setStyle)(C,"display","none"))}});break}case"range":{const I=(0,m.createElement)("div");(0,m.addClass)(I,"art-setting-item-right-icon");const C=(0,m.append)(I,'<input type="range">');C.value=g.range[0]||0,C.min=g.range[1]||0,C.max=g.range[2]||10,C.step=g.range[3]||1,(0,m.addClass)(C,"art-setting-range"),(0,m.append)(M,I),g.$range=C,(0,m.def)(g,"range",{configurable:!0,get:()=>C.valueAsNumber,set(E){C.value=Number(E)}})}break;case"selector":if(g.selector&&g.selector.length){const I=(0,m.createElement)("div");(0,m.addClass)(I,"art-setting-item-right-icon"),(0,m.append)(I,f.arrowRight),(0,m.append)(M,I)}}switch(b){case"switch":if(g.onSwitch){const I=v(T,"click",async C=>{g.switch=await g.onSwitch.call(this.art,g,T,C)});this.events.push(I)}break;case"range":if(g.$range){if(g.onRange){const I=v(g.$range,"change",async C=>{g.tooltip=await g.onRange.call(this.art,g,T,C)});this.events.push(I)}if(g.onChange){const I=v(g.$range,"input",async C=>{g.tooltip=await g.onChange.call(this.art,g,T,C)});this.events.push(I)}}break;case"selector":{const I=v(T,"click",async C=>{if(g.selector&&g.selector.length)this.render(g.selector,g.width);else{(0,m.inverseClass)(T,"art-current");for(let E=0;E<g.$parentItem.selector.length;E++){const H=g.$parentItem.selector[E];H.default=H===g}if(g.$parentList&&this.render(g.$parentList),g.$parentItem&&g.$parentItem.onSelect){const E=await g.$parentItem.onSelect.call(this.art,g,T,C);g.$parentItem.$tooltip&&(0,m.isStringOrNumber)(E)&&(g.$parentItem.$tooltip.innerHTML=E)}}});this.events.push(I),g.default&&(0,m.addClass)(T,"art-current")}}return T}updateStyle(b){const{controls:g,constructor:f,template:{$player:v,$setting:k}}=this.art;if(g.setting&&!m.isMobile){const T=b||f.SETTING_WIDTH,{left:j,width:M}=g.setting.getBoundingClientRect(),{left:S,width:$}=v.getBoundingClientRect(),B=j-S+M/2-T/2;B+T>$?((0,m.setStyle)(k,"left",null),(0,m.setStyle)(k,"right",null)):((0,m.setStyle)(k,"left",`${B}px`),(0,m.setStyle)(k,"right","auto"))}}render(b,g){const{constructor:f}=this.art;if(this.cache.has(b)){const v=this.cache.get(b);(0,m.inverseClass)(v,"art-current"),(0,m.setStyle)(this.$parent,"width",`${v.dataset.width}px`),(0,m.setStyle)(this.$parent,"height",`${v.dataset.height}px`),this.updateStyle(Number(v.dataset.width))}else{const v=(0,m.createElement)("div");(0,m.addClass)(v,"art-setting-panel"),v.dataset.width=g||f.SETTING_WIDTH,v.dataset.height=b.length*f.SETTING_ITEM_HEIGHT,b[0]&&b[0].$parentItem&&((0,m.append)(v,this.creatHeader(b[0])),v.dataset.height=Number(v.dataset.height)+f.SETTING_ITEM_HEIGHT);for(let k=0;k<b.length;k++){const T=b[k];(0,m.has)(T,"switch")?(0,m.append)(v,this.creatItem("switch",T)):(0,m.has)(T,"range")?(0,m.append)(v,this.creatItem("range",T)):(0,m.append)(v,this.creatItem("selector",T))}(0,m.append)(this.$parent,v),this.cache.set(b,v),(0,m.inverseClass)(v,"art-current"),(0,m.setStyle)(this.$parent,"width",`${v.dataset.width}px`),(0,m.setStyle)(this.$parent,"height",`${v.dataset.height}px`),this.updateStyle(Number(v.dataset.width)),b[0]&&b[0].$parentItem&&b[0].$parentItem.mounted&&b[0].$parentItem.mounted.call(this.art,v,b[0].$parentItem)}}}s.default=w},{"./flip":"bNOaj","./aspectRatio":"5lAsp","./playbackRate":"e6hsR","./subtitleOffset":"fFNEr","../utils/component":"guki8","../utils/error":"2nFlF","../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],bNOaj:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,constructor:{SETTING_ITEM_WIDTH:i,FLIP:u}}=t;function a(l,c,p){c&&(c.innerText=r.get((0,e.capitalize)(p)));const d=(0,e.queryAll)(".art-setting-item",l).find(y=>y.dataset.value===p);d&&(0,e.inverseClass)(d,"art-current")}return{width:i,name:"flip",html:r.get("Video Flip"),tooltip:r.get((0,e.capitalize)(t.flip)),icon:n.flip,selector:u.map(l=>({value:l,name:`aspect-ratio-${l}`,default:l===t.flip,html:r.get((0,e.capitalize)(l))})),onSelect:l=>(t.flip=l.value,l.html),mounted:(l,c)=>{a(l,c.$tooltip,t.flip),t.on("flip",()=>{a(l,c.$tooltip,t.flip)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5lAsp":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,constructor:{SETTING_ITEM_WIDTH:i,ASPECT_RATIO:u}}=t;function a(c){return c==="default"?r.get("Default"):c}function l(c,p,d){p&&(p.innerText=a(d));const y=(0,e.queryAll)(".art-setting-item",c).find(m=>m.dataset.value===d);y&&(0,e.inverseClass)(y,"art-current")}return{width:i,name:"aspect-ratio",html:r.get("Aspect Ratio"),icon:n.aspectRatio,tooltip:a(t.aspectRatio),selector:u.map(c=>({value:c,name:`aspect-ratio-${c}`,default:c===t.aspectRatio,html:a(c)})),onSelect:c=>(t.aspectRatio=c.value,c.html),mounted:(c,p)=>{l(c,p.$tooltip,t.aspectRatio),t.on("aspectRatio",()=>{l(c,p.$tooltip,t.aspectRatio)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],e6hsR:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,constructor:{SETTING_ITEM_WIDTH:i,PLAYBACK_RATE:u}}=t;function a(c){return c===1?r.get("Normal"):c.toFixed(1)}function l(c,p,d){p&&(p.innerText=a(d));const y=(0,e.queryAll)(".art-setting-item",c).find(m=>Number(m.dataset.value)===d);y&&(0,e.inverseClass)(y,"art-current")}return{width:i,name:"playback-rate",html:r.get("Play Speed"),tooltip:a(t.playbackRate),icon:n.playbackRate,selector:u.map(c=>({value:c,name:`aspect-ratio-${c}`,default:c===t.playbackRate,html:a(c)})),onSelect:c=>(t.playbackRate=c.value,c.html),mounted:(c,p)=>{l(c,p.$tooltip,t.playbackRate),t.on("video:ratechange",()=>{l(c,p.$tooltip,t.playbackRate)})}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],fFNEr:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=function(e){const{i18n:t,icons:r,constructor:n}=e;return{width:n.SETTING_ITEM_WIDTH,name:"subtitle-offset",html:t.get("Subtitle Offset"),icon:r.subtitle,tooltip:"0s",range:[0,-5,5,.1],onChange:i=>(e.subtitleOffset=i.range,i.range+"s")}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],f2Thp:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s),s.default=class{constructor(){this.name="artplayer_settings",this.settings={}}get(e){try{const t=JSON.parse(window.localStorage.getItem(this.name))||{};return e?t[e]:t}catch{return e?this.settings[e]:this.settings}}set(e,t){try{const r=Object.assign({},this.get(),{[e]:t});window.localStorage.setItem(this.name,JSON.stringify(r))}catch{this.settings[e]=t}}del(e){try{const t=this.get();delete t[e],window.localStorage.setItem(this.name,JSON.stringify(t))}catch{delete this.settings[e]}}clear(){try{window.localStorage.removeItem(this.name)}catch{this.settings={}}}}},{"@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"96ThS":[function(o,h,s){var e=o("@parcel/transformer-js/src/esmodule-helpers.js");e.defineInteropFlag(s);var t=o("../utils"),r=o("./miniProgressBar"),n=e.interopDefault(r),i=o("./autoOrientation"),u=e.interopDefault(i),a=o("./autoPlayback"),l=e.interopDefault(a),c=o("./fastForward"),p=e.interopDefault(c),d=o("./lock"),y=e.interopDefault(d);s.default=class{constructor(m){this.art=m,this.id=0;const{option:w}=m;w.miniProgressBar&&!w.isLive&&this.add(n.default),w.lock&&t.isMobile&&this.add(y.default),w.autoPlayback&&!w.isLive&&this.add(l.default),w.autoOrientation&&t.isMobile&&this.add(u.default),w.fastForward&&t.isMobile&&!w.isLive&&this.add(p.default);for(let x=0;x<w.plugins.length;x++)this.add(w.plugins[x])}add(m){this.id+=1;const w=m.call(this.art,this.art);return w instanceof Promise?w.then(x=>this.next(m,x)):this.next(m,w)}next(m,w){const x=w&&w.name||m.name||`plugin${this.id}`;return(0,t.errorHandle)(!(0,t.has)(this,x),`Cannot add a plugin that already has the same name: ${x}`),(0,t.def)(this,x,{value:w}),this}}},{"../utils":"h3rH9","./miniProgressBar":"iBx4M","./autoOrientation":"2O9qO","./autoPlayback":"iiOc1","./fastForward":"d9NUE","./lock":"5dnKh","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iBx4M:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){return t.on("control",r=>{r?(0,e.removeClass)(t.template.$player,"art-mini-progress-bar"):(0,e.addClass)(t.template.$player,"art-mini-progress-bar")}),{name:"mini-progress-bar"}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"2O9qO":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{constructor:r,template:{$player:n,$video:i}}=t;return t.on("fullscreenWeb",u=>{if(u){const{videoWidth:a,videoHeight:l}=i,{clientWidth:c,clientHeight:p}=document.documentElement;(a>l&&c<p||a<l&&c>p)&&setTimeout(()=>{(0,e.setStyle)(n,"width",`${p}px`),(0,e.setStyle)(n,"height",`${c}px`),(0,e.setStyle)(n,"transform-origin","0 0"),(0,e.setStyle)(n,"transform",`rotate(90deg) translate(0, -${c}px)`),(0,e.addClass)(n,"art-auto-orientation"),t.isRotate=!0,t.emit("resize")},r.AUTO_ORIENTATION_TIME)}else(0,e.hasClass)(n,"art-auto-orientation")&&((0,e.removeClass)(n,"art-auto-orientation"),t.isRotate=!1,t.emit("resize"))}),t.on("fullscreen",async u=>{const a=screen.orientation.type;if(u){const{videoWidth:l,videoHeight:c}=i,{clientWidth:p,clientHeight:d}=document.documentElement;if(l>c&&p<d||l<c&&p>d){const y=a.startsWith("portrait")?"landscape":"portrait";await screen.orientation.lock(y),(0,e.addClass)(n,"art-auto-orientation-fullscreen")}}else(0,e.hasClass)(n,"art-auto-orientation-fullscreen")&&(await screen.orientation.lock(a),(0,e.removeClass)(n,"art-auto-orientation-fullscreen"))}),{name:"autoOrientation",get state(){return(0,e.hasClass)(n,"art-auto-orientation")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],iiOc1:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{i18n:r,icons:n,storage:i,constructor:u,proxy:a,template:{$poster:l}}=t,c=t.layers.add({name:"auto-playback",html:'<div class="art-auto-playback-close"></div><div class="art-auto-playback-last"></div><div class="art-auto-playback-jump"></div>'}),p=(0,e.query)(".art-auto-playback-last",c),d=(0,e.query)(".art-auto-playback-jump",c),y=(0,e.query)(".art-auto-playback-close",c);return t.on("video:timeupdate",()=>{if(t.playing){const m=i.get("times")||{},w=Object.keys(m);w.length>u.AUTO_PLAYBACK_MAX&&delete m[w[0]],m[t.option.id||t.option.url]=t.currentTime,i.set("times",m)}}),t.on("ready",()=>{const m=(i.get("times")||{})[t.option.id||t.option.url];m&&m>=u.AUTO_PLAYBACK_MIN&&((0,e.append)(y,n.close),(0,e.setStyle)(c,"display","flex"),p.innerText=`${r.get("Last Seen")} ${(0,e.secondToTime)(m)}`,d.innerText=r.get("Jump Play"),a(y,"click",()=>{(0,e.setStyle)(c,"display","none")}),a(d,"click",()=>{t.seek=m,t.play(),(0,e.setStyle)(l,"display","none"),(0,e.setStyle)(c,"display","none")}),t.once("video:timeupdate",()=>{setTimeout(()=>{(0,e.setStyle)(c,"display","none")},u.AUTO_PLAYBACK_TIMEOUT)}))}),{name:"auto-playback",get times(){return i.get("times")||{}},clear:()=>i.del("times"),delete(m){const w=i.get("times")||{};return delete w[m],i.set("times",w),w}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],d9NUE:[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{constructor:r,proxy:n,template:{$player:i,$video:u}}=t;let a=null,l=!1,c=1;const p=()=>{clearTimeout(a),l&&(l=!1,t.playbackRate=c,(0,e.removeClass)(i,"art-fast-forward"))};return n(u,"touchstart",d=>{d.touches.length===1&&t.playing&&!t.isLock&&(a=setTimeout(()=>{l=!0,c=t.playbackRate,t.playbackRate=r.FAST_FORWARD_VALUE,(0,e.addClass)(i,"art-fast-forward")},r.FAST_FORWARD_TIME))}),n(document,"touchmove",p),n(document,"touchend",p),{name:"fastForward",get state(){return(0,e.hasClass)(i,"art-fast-forward")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}],"5dnKh":[function(o,h,s){o("@parcel/transformer-js/src/esmodule-helpers.js").defineInteropFlag(s);var e=o("../utils");s.default=function(t){const{layers:r,icons:n,template:{$player:i}}=t;return r.add({name:"lock",mounted(u){const a=(0,e.append)(u,n.lock),l=(0,e.append)(u,n.unlock);(0,e.setStyle)(a,"display","none"),t.on("lock",c=>{c?((0,e.setStyle)(a,"display","inline-flex"),(0,e.setStyle)(l,"display","none")):((0,e.setStyle)(a,"display","none"),(0,e.setStyle)(l,"display","inline-flex"))})},click(){(0,e.hasClass)(i,"art-lock")?((0,e.removeClass)(i,"art-lock"),this.isLock=!1,t.emit("lock",!1)):((0,e.addClass)(i,"art-lock"),this.isLock=!0,t.emit("lock",!0))}}),{name:"lock",get state(){return(0,e.hasClass)(i,"art-lock")}}}},{"../utils":"h3rH9","@parcel/transformer-js/src/esmodule-helpers.js":"guZOB"}]},["abjMI"],"abjMI","parcelRequireb749")})(pe,pe.exports);var De=pe.exports;const Pe=ve(De);function ze({url:F,...A}){const o=Z.useRef(null);return Z.useEffect(()=>{new Pe({container:o.current,url:F,setting:!0,flip:!0,loop:!0,playbackRate:!0,aspectRatio:!0,subtitleOffset:!0,fullscreen:!0,fullscreenWeb:!0,screenshot:!0,autoPlayback:!0,airplay:!0,theme:"#49509e"})}),z.jsx("div",{ref:o,...A})}function qe({url:F,artist:A,caption:o,...h}){const s=Z.useRef(null);return Z.useEffect(()=>{new Re({container:s.current,audio:[{name:o,artist:A,url:F,theme:"#49509e"}]})}),z.jsx("div",{ref:s,...h})}function Ve({sources:F,author:A}){const[o,h]=Z.useState(F.map((e,t)=>t===0));function s(e){h(o.map((t,r)=>r===e))}return z.jsx("div",{role:"tablist",className:"tabs tabs-lifted",children:F.map((e,t)=>z.jsxs(Z.Fragment,{children:[z.jsx("input",{type:"radio",name:e.caption,role:"tab",className:"tab","aria-label":e.caption,checked:o[t],onChange:()=>s(t)}),z.jsxs("div",{role:"tabpanel",className:"tab-content bg-base-100 border-base-300 rounded-box w-full",children:[e.type==="video"&&z.jsx("div",{className:"w-full h-[460px]",children:z.jsx(ze,{className:"w-full h-full",url:e.url})}),e.type==="audio"&&z.jsx("div",{className:"w-full",children:z.jsx(qe,{url:e.url,artist:A?.name??"佚名",caption:e.caption})})]})]},t))})}export{Ve as default};
