import e from"flag-icon-css/flags/4x3/es.svg";import t from"flag-icon-css/flags/4x3/pt.svg";import a from"flag-icon-css/flags/4x3/hr.svg";import n from"flag-icon-css/flags/4x3/kr.svg";import i from"flag-icon-css/flags/4x3/ph.svg"; /*! * Vue.js v2.6.12 * (c) 2014-2020 Evan You * Released under the MIT License. */var r=Object.freeze({});function s(e){return null==e}function o(e){return null!=e}function l(e){return!0===e}function c(e){return"string"==typeof e||"number"==typeof e||"symbol"==typeof e||"boolean"==typeof e}function u(e){return null!==e&&"object"==typeof e}var d=Object.prototype.toString;function p(e){return"[object Object]"===d.call(e)}function m(e){var t=parseFloat(String(e));return t>=0&&Math.floor(t)===t&&isFinite(e)}function g(e){return o(e)&&"function"==typeof e.then&&"function"==typeof e.catch}function h(e){return null==e?"":Array.isArray(e)||p(e)&&e.toString===d?JSON.stringify(e,null,2):String(e)}function f(e){var t=parseFloat(e);return isNaN(t)?e:t}function v(e,t){for(var a=Object.create(null),n=e.split(","),i=0;i-1)return e.splice(a,1)}}var A=Object.prototype.hasOwnProperty;function k(e,t){return A.call(e,t)}function w(e){var t=Object.create(null);return function(a){return t[a]||(t[a]=e(a))}}var C=/-(\w)/g,x=w((function(e){return e.replace(C,(function(e,t){return t?t.toUpperCase():""}))})),T=w((function(e){return e.charAt(0).toUpperCase()+e.slice(1)})),S=/\B([A-Z])/g,D=w((function(e){return e.replace(S,"-$1").toLowerCase()}));var P=Function.prototype.bind?function(e,t){return e.bind(t)}:function(e,t){function a(a){var n=arguments.length;return n?n>1?e.apply(t,arguments):e.call(t,a):e.call(t)}return a._length=e.length,a};function z(e,t){t=t||0;for(var a=e.length-t,n=new Array(a);a--;)n[a]=e[a+t];return n}function $(e,t){for(var a in t)e[a]=t[a];return e}function N(e){for(var t={},a=0;a0,ee=J&&J.indexOf("edge/")>0,te=(J&&J.indexOf("android"),J&&/iphone|ipad|ipod|ios/.test(J)||"ios"===Y),ae=(J&&/chrome\/\d+/.test(J),J&&/phantomjs/.test(J),J&&J.match(/firefox\/(\d+)/)),ne={}.watch,ie=!1;if(K)try{var re={};Object.defineProperty(re,"passive",{get:function(){ie=!0}}),window.addEventListener("test-passive",null,re)}catch(e){}var se=function(){return void 0===W&&(W=!K&&!Q&&"undefined"!=typeof global&&(global.process&&"server"===global.process.env.VUE_ENV)),W},oe=K&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function le(e){return"function"==typeof e&&/native code/.test(e.toString())}var ce,ue="undefined"!=typeof Symbol&&le(Symbol)&&"undefined"!=typeof Reflect&&le(Reflect.ownKeys);ce="undefined"!=typeof Set&&le(Set)?Set:function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(e){return!0===this.set[e]},e.prototype.add=function(e){this.set[e]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var de=L,pe=0,me=function(){this.id=pe++,this.subs=[]};me.prototype.addSub=function(e){this.subs.push(e)},me.prototype.removeSub=function(e){_(this.subs,e)},me.prototype.depend=function(){me.target&&me.target.addDep(this)},me.prototype.notify=function(){for(var e=this.subs.slice(),t=0,a=e.length;t-1)if(r&&!k(i,"default"))s=!1;else if(""===s||s===D(e)){var l=Ge(String,i.type);(l<0||o0&&(mt((i=e(i,(a||"")+"_"+n))[0])&&mt(u)&&(d[r]=_e(u.text+i[0].text),i.shift()),d.push.apply(d,i)):c(i)?mt(u)?d[r]=_e(u.text+i):""!==i&&d.push(_e(i)):mt(i)&&mt(u)?d[r]=_e(u.text+i.text):(l(t._isVList)&&o(i.tag)&&s(i.key)&&o(a)&&(i.key="__vlist"+a+"_"+n+"__"),d.push(i)));return d}(e):void 0}function mt(e){return o(e)&&o(e.text)&&!1===e.isComment}function gt(e,t){if(e){for(var a=Object.create(null),n=ue?Reflect.ownKeys(e):Object.keys(e),i=0;i0,s=e?!!e.$stable:!i,o=e&&e.$key;if(e){if(e._normalized)return e._normalized;if(s&&a&&a!==r&&o===a.$key&&!i&&!a.$hasNormal)return a;for(var l in n={},e)e[l]&&"$"!==l[0]&&(n[l]=bt(t,l,e[l]))}else n={};for(var c in t)c in n||(n[c]=yt(t,c));return e&&Object.isExtensible(e)&&(e._normalized=n),G(n,"$stable",s),G(n,"$key",o),G(n,"$hasNormal",i),n}function bt(e,t,a){var n=function(){var e=arguments.length?a.apply(null,arguments):a({});return(e=e&&"object"==typeof e&&!Array.isArray(e)?[e]:pt(e))&&(0===e.length||1===e.length&&e[0].isComment)?void 0:e};return a.proxy&&Object.defineProperty(e,t,{get:n,enumerable:!0,configurable:!0}),n}function yt(e,t){return function(){return e[t]}}function _t(e,t){var a,n,i,r,s;if(Array.isArray(e)||"string"==typeof e)for(a=new Array(e.length),n=0,i=e.length;ndocument.createEvent("Event").timeStamp&&(ua=function(){return da.now()})}function pa(){var e,t;for(ca=ua(),oa=!0,na.sort((function(e,t){return e.id-t.id})),la=0;lala&&na[a].id>e.id;)a--;na.splice(a+1,0,e)}else na.push(e);sa||(sa=!0,it(pa))}}(this)},ga.prototype.run=function(){if(this.active){var e=this.get();if(e!==this.value||u(e)||this.deep){var t=this.value;if(this.value=e,this.user)try{this.cb.call(this.vm,e,t)}catch(e){Ve(e,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,e,t)}}},ga.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},ga.prototype.depend=function(){for(var e=this.deps.length;e--;)this.deps[e].depend()},ga.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||_(this.vm._watchers,this);for(var e=this.deps.length;e--;)this.deps[e].removeSub(this);this.active=!1}};var ha={enumerable:!0,configurable:!0,get:L,set:L};function fa(e,t,a){ha.get=function(){return this[t][a]},ha.set=function(e){this[t][a]=e},Object.defineProperty(e,a,ha)}function va(e){e._watchers=[];var t=e.$options;t.props&&function(e,t){var a=e.$options.propsData||{},n=e._props={},i=e.$options._propKeys=[];e.$parent&&Te(!1);var r=function(r){i.push(r);var s=Me(r,t,a,e);Pe(n,r,s),r in e||fa(e,"_props",r)};for(var s in t)r(s);Te(!0)}(e,t.props),t.methods&&function(e,t){e.$options.props;for(var a in t)e[a]="function"!=typeof t[a]?L:P(t[a],e)}(e,t.methods),t.data?function(e){var t=e.$options.data;p(t=e._data="function"==typeof t?function(e,t){he();try{return e.call(t,t)}catch(e){return Ve(e,t,"data()"),{}}finally{fe()}}(t,e):t||{})||(t={});var a=Object.keys(t),n=e.$options.props,i=(e.$options.methods,a.length);for(;i--;){var r=a[i];n&&k(n,r)||U(r)||fa(e,"_data",r)}De(t,!0)}(e):De(e._data={},!0),t.computed&&function(e,t){var a=e._computedWatchers=Object.create(null),n=se();for(var i in t){var r=t[i],s="function"==typeof r?r:r.get;n||(a[i]=new ga(e,s||L,L,ba)),i in e||ya(e,i,r)}}(e,t.computed),t.watch&&t.watch!==ne&&function(e,t){for(var a in t){var n=t[a];if(Array.isArray(n))for(var i=0;i-1:"string"==typeof e?e.split(",").indexOf(t)>-1:(a=e,"[object RegExp]"===d.call(a)&&e.test(t));var a}function Pa(e,t){var a=e.cache,n=e.keys,i=e._vnode;for(var r in a){var s=a[r];if(s){var o=Sa(s.componentOptions);o&&!t(o)&&za(a,r,n,i)}}}function za(e,t,a,n){var i=e[t];!i||n&&i.tag===n.tag||i.componentInstance.$destroy(),e[t]=null,_(a,t)}!function(e){e.prototype._init=function(e){var t=this;t._uid=wa++,t._isVue=!0,e&&e._isComponent?function(e,t){var a=e.$options=Object.create(e.constructor.options),n=t._parentVnode;a.parent=t.parent,a._parentVnode=n;var i=n.componentOptions;a.propsData=i.propsData,a._parentListeners=i.listeners,a._renderChildren=i.children,a._componentTag=i.tag,t.render&&(a.render=t.render,a.staticRenderFns=t.staticRenderFns)}(t,e):t.$options=Oe(Ca(t.constructor),e||{},t),t._renderProxy=t,t._self=t,function(e){var t=e.$options,a=t.parent;if(a&&!t.abstract){for(;a.$options.abstract&&a.$parent;)a=a.$parent;a.$children.push(e)}e.$parent=a,e.$root=a?a.$root:e,e.$children=[],e.$refs={},e._watcher=null,e._inactive=null,e._directInactive=!1,e._isMounted=!1,e._isDestroyed=!1,e._isBeingDestroyed=!1}(t),function(e){e._events=Object.create(null),e._hasHookEvent=!1;var t=e.$options._parentListeners;t&&Jt(e,t)}(t),function(e){e._vnode=null,e._staticTrees=null;var t=e.$options,a=e.$vnode=t._parentVnode,n=a&&a.context;e.$slots=ht(t._renderChildren,n),e.$scopedSlots=r,e._c=function(t,a,n,i){return qt(e,t,a,n,i,!1)},e.$createElement=function(t,a,n,i){return qt(e,t,a,n,i,!0)};var i=a&&a.data;Pe(e,"$attrs",i&&i.attrs||r,null,!0),Pe(e,"$listeners",t._parentListeners||r,null,!0)}(t),aa(t,"beforeCreate"),function(e){var t=gt(e.$options.inject,e);t&&(Te(!1),Object.keys(t).forEach((function(a){Pe(e,a,t[a])})),Te(!0))}(t),va(t),function(e){var t=e.$options.provide;t&&(e._provided="function"==typeof t?t.call(e):t)}(t),aa(t,"created"),t.$options.el&&t.$mount(t.$options.el)}}(xa),function(e){var t={get:function(){return this._data}},a={get:function(){return this._props}};Object.defineProperty(e.prototype,"$data",t),Object.defineProperty(e.prototype,"$props",a),e.prototype.$set=ze,e.prototype.$delete=$e,e.prototype.$watch=function(e,t,a){if(p(t))return ka(this,e,t,a);(a=a||{}).user=!0;var n=new ga(this,e,t,a);if(a.immediate)try{t.call(this,n.value)}catch(e){Ve(e,this,'callback for immediate watcher "'+n.expression+'"')}return function(){n.teardown()}}}(xa),function(e){var t=/^hook:/;e.prototype.$on=function(e,a){var n=this;if(Array.isArray(e))for(var i=0,r=e.length;i1?z(a):a;for(var n=z(arguments,1),i='event handler for "'+e+'"',r=0,s=a.length;rparseInt(this.max)&&za(s,o[0],o,this._vnode)),t.data.keepAlive=!0}return t||e&&e[0]}}};!function(e){var t={get:function(){return M}};Object.defineProperty(e,"config",t),e.util={warn:de,extend:$,mergeOptions:Oe,defineReactive:Pe},e.set=ze,e.delete=$e,e.nextTick=it,e.observable=function(e){return De(e),e},e.options=Object.create(null),O.forEach((function(t){e.options[t+"s"]=Object.create(null)})),e.options._base=e,$(e.options.components,Na),function(e){e.use=function(e){var t=this._installedPlugins||(this._installedPlugins=[]);if(t.indexOf(e)>-1)return this;var a=z(arguments,1);return a.unshift(this),"function"==typeof e.install?e.install.apply(e,a):"function"==typeof e&&e.apply(null,a),t.push(e),this}}(e),function(e){e.mixin=function(e){return this.options=Oe(this.options,e),this}}(e),Ta(e),function(e){O.forEach((function(t){e[t]=function(e,a){return a?("component"===t&&p(a)&&(a.name=a.name||e,a=this.options._base.extend(a)),"directive"===t&&"function"==typeof a&&(a={bind:a,update:a}),this.options[t+"s"][e]=a,a):this.options[t+"s"][e]}}))}(e)}(xa),Object.defineProperty(xa.prototype,"$isServer",{get:se}),Object.defineProperty(xa.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(xa,"FunctionalRenderContext",{value:It}),xa.version="2.6.12";var La=v("style,class"),Ra=v("input,textarea,option,select,progress"),Ia=function(e,t,a){return"value"===a&&Ra(e)&&"button"!==t||"selected"===a&&"option"===e||"checked"===a&&"input"===e||"muted"===a&&"video"===e},Fa=v("contenteditable,draggable,spellcheck"),Ea=v("events,caret,typing,plaintext-only"),ja=v("allowfullscreen,async,autofocus,autoplay,checked,compact,controls,declare,default,defaultchecked,defaultmuted,defaultselected,defer,disabled,enabled,formnovalidate,hidden,indeterminate,inert,ismap,itemscope,loop,multiple,muted,nohref,noresize,noshade,novalidate,nowrap,open,pauseonexit,readonly,required,reversed,scoped,seamless,selected,sortable,translate,truespeed,typemustmatch,visible"),Oa="http://www.w3.org/1999/xlink",Ba=function(e){return":"===e.charAt(5)&&"xlink"===e.slice(0,5)},Ma=function(e){return Ba(e)?e.slice(6,e.length):""},qa=function(e){return null==e||!1===e};function Ua(e){for(var t=e.data,a=e,n=e;o(n.componentInstance);)(n=n.componentInstance._vnode)&&n.data&&(t=Ga(n.data,t));for(;o(a=a.parent);)a&&a.data&&(t=Ga(t,a.data));return function(e,t){if(o(e)||o(t))return Va(e,Wa(t));return""}(t.staticClass,t.class)}function Ga(e,t){return{staticClass:Va(e.staticClass,t.staticClass),class:o(e.class)?[e.class,t.class]:t.class}}function Va(e,t){return e?t?e+" "+t:e:t||""}function Wa(e){return Array.isArray(e)?function(e){for(var t,a="",n=0,i=e.length;n-1?bn(e,t,a):ja(t)?qa(a)?e.removeAttribute(t):(a="allowfullscreen"===t&&"EMBED"===e.tagName?"true":t,e.setAttribute(t,a)):Fa(t)?e.setAttribute(t,function(e,t){return qa(t)||"false"===t?"false":"contenteditable"===e&&Ea(t)?t:"true"}(t,a)):Ba(t)?qa(a)?e.removeAttributeNS(Oa,Ma(t)):e.setAttributeNS(Oa,t,a):bn(e,t,a)}function bn(e,t,a){if(qa(a))e.removeAttribute(t);else{if(Z&&!X&&"TEXTAREA"===e.tagName&&"placeholder"===t&&""!==a&&!e.__ieph){var n=function(t){t.stopImmediatePropagation(),e.removeEventListener("input",n)};e.addEventListener("input",n),e.__ieph=!0}e.setAttribute(t,a)}}var yn={create:fn,update:fn};function _n(e,t){var a=t.elm,n=t.data,i=e.data;if(!(s(n.staticClass)&&s(n.class)&&(s(i)||s(i.staticClass)&&s(i.class)))){var r=Ua(t),l=a._transitionClasses;o(l)&&(r=Va(r,Wa(l))),r!==a._prevClass&&(a.setAttribute("class",r),a._prevClass=r)}}var An,kn,wn,Cn,xn,Tn,Sn={create:_n,update:_n},Dn=/[\w).+\-_$\]]/;function Pn(e){var t,a,n,i,r,s=!1,o=!1,l=!1,c=!1,u=0,d=0,p=0,m=0;for(n=0;n=0&&" "===(h=e.charAt(g));g--);h&&Dn.test(h)||(c=!0)}}else void 0===i?(m=n+1,i=e.slice(0,n).trim()):f();function f(){(r||(r=[])).push(e.slice(m,n).trim()),m=n+1}if(void 0===i?i=e.slice(0,n).trim():0!==m&&f(),r)for(n=0;n-1?{exp:e.slice(0,Cn),key:'"'+e.slice(Cn+1)+'"'}:{exp:e,key:null};kn=e,Cn=xn=Tn=0;for(;!Wn();)Hn(wn=Vn())?Qn(wn):91===wn&&Kn(wn);return{exp:e.slice(0,xn),key:e.slice(xn+1,Tn)}}(e);return null===a.key?e+"="+t:"$set("+a.exp+", "+a.key+", "+t+")"}function Vn(){return kn.charCodeAt(++Cn)}function Wn(){return Cn>=An}function Hn(e){return 34===e||39===e}function Kn(e){var t=1;for(xn=Cn;!Wn();)if(Hn(e=Vn()))Qn(e);else if(91===e&&t++,93===e&&t--,0===t){Tn=Cn;break}}function Qn(e){for(var t=e;!Wn()&&(e=Vn())!==t;);}var Yn;function Jn(e,t,a){var n=Yn;return function i(){var r=t.apply(null,arguments);null!==r&&ei(e,i,a,n)}}var Zn=Ye&&!(ae&&Number(ae[1])<=53);function Xn(e,t,a,n){if(Zn){var i=ca,r=t;t=r._wrapper=function(e){if(e.target===e.currentTarget||e.timeStamp>=i||e.timeStamp<=0||e.target.ownerDocument!==document)return r.apply(this,arguments)}}Yn.addEventListener(e,t,ie?{capture:a,passive:n}:a)}function ei(e,t,a,n){(n||Yn).removeEventListener(e,t._wrapper||t,a)}function ti(e,t){if(!s(e.data.on)||!s(t.data.on)){var a=t.data.on||{},n=e.data.on||{};Yn=t.elm,function(e){if(o(e.__r)){var t=Z?"change":"input";e[t]=[].concat(e.__r,e[t]||[]),delete e.__r}o(e.__c)&&(e.change=[].concat(e.__c,e.change||[]),delete e.__c)}(a),ct(a,n,Xn,ei,Jn,t.context),Yn=void 0}}var ai,ni={create:ti,update:ti};function ii(e,t){if(!s(e.data.domProps)||!s(t.data.domProps)){var a,n,i=t.elm,r=e.data.domProps||{},l=t.data.domProps||{};for(a in o(l.__ob__)&&(l=t.data.domProps=$({},l)),r)a in l||(i[a]="");for(a in l){if(n=l[a],"textContent"===a||"innerHTML"===a){if(t.children&&(t.children.length=0),n===r[a])continue;1===i.childNodes.length&&i.removeChild(i.childNodes[0])}if("value"===a&&"PROGRESS"!==i.tagName){i._value=n;var c=s(n)?"":String(n);ri(i,c)&&(i.value=c)}else if("innerHTML"===a&&Qa(i.tagName)&&s(i.innerHTML)){(ai=ai||document.createElement("div")).innerHTML=""+n+"";for(var u=ai.firstChild;i.firstChild;)i.removeChild(i.firstChild);for(;u.firstChild;)i.appendChild(u.firstChild)}else if(n!==r[a])try{i[a]=n}catch(e){}}}}function ri(e,t){return!e.composing&&("OPTION"===e.tagName||function(e,t){var a=!0;try{a=document.activeElement!==e}catch(e){}return a&&e.value!==t}(e,t)||function(e,t){var a=e.value,n=e._vModifiers;if(o(n)){if(n.number)return f(a)!==f(t);if(n.trim)return a.trim()!==t.trim()}return a!==t}(e,t))}var si={create:ii,update:ii},oi=w((function(e){var t={},a=/:(.+)/;return e.split(/;(?![^(]*\))/g).forEach((function(e){if(e){var n=e.split(a);n.length>1&&(t[n[0].trim()]=n[1].trim())}})),t}));function li(e){var t=ci(e.style);return e.staticStyle?$(e.staticStyle,t):t}function ci(e){return Array.isArray(e)?N(e):"string"==typeof e?oi(e):e}var ui,di=/^--/,pi=/\s*!important$/,mi=function(e,t,a){if(di.test(t))e.style.setProperty(t,a);else if(pi.test(a))e.style.setProperty(D(t),a.replace(pi,""),"important");else{var n=hi(t);if(Array.isArray(a))for(var i=0,r=a.length;i-1?t.split(bi).forEach((function(t){return e.classList.add(t)})):e.classList.add(t);else{var a=" "+(e.getAttribute("class")||"")+" ";a.indexOf(" "+t+" ")<0&&e.setAttribute("class",(a+t).trim())}}function _i(e,t){if(t&&(t=t.trim()))if(e.classList)t.indexOf(" ")>-1?t.split(bi).forEach((function(t){return e.classList.remove(t)})):e.classList.remove(t),e.classList.length||e.removeAttribute("class");else{for(var a=" "+(e.getAttribute("class")||"")+" ",n=" "+t+" ";a.indexOf(n)>=0;)a=a.replace(n," ");(a=a.trim())?e.setAttribute("class",a):e.removeAttribute("class")}}function Ai(e){if(e){if("object"==typeof e){var t={};return!1!==e.css&&$(t,ki(e.name||"v")),$(t,e),t}return"string"==typeof e?ki(e):void 0}}var ki=w((function(e){return{enterClass:e+"-enter",enterToClass:e+"-enter-to",enterActiveClass:e+"-enter-active",leaveClass:e+"-leave",leaveToClass:e+"-leave-to",leaveActiveClass:e+"-leave-active"}})),wi=K&&!X,Ci="transition",xi="transitionend",Ti="animation",Si="animationend";wi&&(void 0===window.ontransitionend&&void 0!==window.onwebkittransitionend&&(Ci="WebkitTransition",xi="webkitTransitionEnd"),void 0===window.onanimationend&&void 0!==window.onwebkitanimationend&&(Ti="WebkitAnimation",Si="webkitAnimationEnd"));var Di=K?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function Pi(e){Di((function(){Di(e)}))}function zi(e,t){var a=e._transitionClasses||(e._transitionClasses=[]);a.indexOf(t)<0&&(a.push(t),yi(e,t))}function $i(e,t){e._transitionClasses&&_(e._transitionClasses,t),_i(e,t)}function Ni(e,t,a){var n=Ri(e,t),i=n.type,r=n.timeout,s=n.propCount;if(!i)return a();var o="transition"===i?xi:Si,l=0,c=function(){e.removeEventListener(o,u),a()},u=function(t){t.target===e&&++l>=s&&c()};setTimeout((function(){l0&&(a="transition",u=s,d=r.length):"animation"===t?c>0&&(a="animation",u=c,d=l.length):d=(a=(u=Math.max(s,c))>0?s>c?"transition":"animation":null)?"transition"===a?r.length:l.length:0,{type:a,timeout:u,propCount:d,hasTransform:"transition"===a&&Li.test(n[Ci+"Property"])}}function Ii(e,t){for(;e.length1}function Mi(e,t){!0!==t.data.show&&Ei(t)}var qi=function(e){var t,a,n={},i=e.modules,r=e.nodeOps;for(t=0;tg?y(e,s(a[v+1])?null:a[v+1].elm,a,m,v,n):m>v&&A(t,p,g)}(p,f,v,a,u):o(v)?(o(e.text)&&r.setTextContent(p,""),y(p,null,v,0,v.length-1,a)):o(f)?A(f,0,f.length-1):o(e.text)&&r.setTextContent(p,""):e.text!==t.text&&r.setTextContent(p,t.text),o(g)&&o(m=g.hook)&&o(m=m.postpatch)&&m(e,t)}}}function x(e,t,a){if(l(a)&&o(e.parent))e.parent.data.pendingInsert=t;else for(var n=0;n-1,s.selected!==r&&(s.selected=r);else if(F(Hi(s),n))return void(e.selectedIndex!==o&&(e.selectedIndex=o));i||(e.selectedIndex=-1)}}function Wi(e,t){return t.every((function(t){return!F(t,e)}))}function Hi(e){return"_value"in e?e._value:e.value}function Ki(e){e.target.composing=!0}function Qi(e){e.target.composing&&(e.target.composing=!1,Yi(e.target,"input"))}function Yi(e,t){var a=document.createEvent("HTMLEvents");a.initEvent(t,!0,!0),e.dispatchEvent(a)}function Ji(e){return!e.componentInstance||e.data&&e.data.transition?e:Ji(e.componentInstance._vnode)}var Zi={model:Ui,show:{bind:function(e,t,a){var n=t.value,i=(a=Ji(a)).data&&a.data.transition,r=e.__vOriginalDisplay="none"===e.style.display?"":e.style.display;n&&i?(a.data.show=!0,Ei(a,(function(){e.style.display=r}))):e.style.display=n?r:"none"},update:function(e,t,a){var n=t.value;!n!=!t.oldValue&&((a=Ji(a)).data&&a.data.transition?(a.data.show=!0,n?Ei(a,(function(){e.style.display=e.__vOriginalDisplay})):ji(a,(function(){e.style.display="none"}))):e.style.display=n?e.__vOriginalDisplay:"none")},unbind:function(e,t,a,n,i){i||(e.style.display=e.__vOriginalDisplay)}}},Xi={name:String,appear:Boolean,css:Boolean,mode:String,type:String,enterClass:String,leaveClass:String,enterToClass:String,leaveToClass:String,enterActiveClass:String,leaveActiveClass:String,appearClass:String,appearActiveClass:String,appearToClass:String,duration:[Number,String,Object]};function er(e){var t=e&&e.componentOptions;return t&&t.Ctor.options.abstract?er(Ht(t.children)):e}function tr(e){var t={},a=e.$options;for(var n in a.propsData)t[n]=e[n];var i=a._parentListeners;for(var r in i)t[x(r)]=i[r];return t}function ar(e,t){if(/\d-keep-alive$/.test(t.tag))return e("keep-alive",{props:t.componentOptions.propsData})}var nr=function(e){return e.tag||Wt(e)},ir=function(e){return"show"===e.name},rr={name:"transition",props:Xi,abstract:!0,render:function(e){var t=this,a=this.$slots.default;if(a&&(a=a.filter(nr)).length){var n=this.mode,i=a[0];if(function(e){for(;e=e.parent;)if(e.data.transition)return!0}(this.$vnode))return i;var r=er(i);if(!r)return i;if(this._leaving)return ar(e,i);var s="__transition-"+this._uid+"-";r.key=null==r.key?r.isComment?s+"comment":s+r.tag:c(r.key)?0===String(r.key).indexOf(s)?r.key:s+r.key:r.key;var o=(r.data||(r.data={})).transition=tr(this),l=this._vnode,u=er(l);if(r.data.directives&&r.data.directives.some(ir)&&(r.data.show=!0),u&&u.data&&!function(e,t){return t.key===e.key&&t.tag===e.tag}(r,u)&&!Wt(u)&&(!u.componentInstance||!u.componentInstance._vnode.isComment)){var d=u.data.transition=$({},o);if("out-in"===n)return this._leaving=!0,ut(d,"afterLeave",(function(){t._leaving=!1,t.$forceUpdate()})),ar(e,i);if("in-out"===n){if(Wt(r))return l;var p,m=function(){p()};ut(o,"afterEnter",m),ut(o,"enterCancelled",m),ut(d,"delayLeave",(function(e){p=e}))}}return i}}},sr=$({tag:String,moveClass:String},Xi);function or(e){e.elm._moveCb&&e.elm._moveCb(),e.elm._enterCb&&e.elm._enterCb()}function lr(e){e.data.newPos=e.elm.getBoundingClientRect()}function cr(e){var t=e.data.pos,a=e.data.newPos,n=t.left-a.left,i=t.top-a.top;if(n||i){e.data.moved=!0;var r=e.elm.style;r.transform=r.WebkitTransform="translate("+n+"px,"+i+"px)",r.transitionDuration="0s"}}delete sr.mode;var ur={Transition:rr,TransitionGroup:{props:sr,beforeMount:function(){var e=this,t=this._update;this._update=function(a,n){var i=Xt(e);e.__patch__(e._vnode,e.kept,!1,!0),e._vnode=e.kept,i(),t.call(e,a,n)}},render:function(e){for(var t=this.tag||this.$vnode.data.tag||"span",a=Object.create(null),n=this.prevChildren=this.children,i=this.$slots.default||[],r=this.children=[],s=tr(this),o=0;o-1?Za[e]=t.constructor===window.HTMLUnknownElement||t.constructor===window.HTMLElement:Za[e]=/HTMLUnknownElement/.test(t.toString())},$(xa.options.directives,Zi),$(xa.options.components,ur),xa.prototype.__patch__=K?qi:L,xa.prototype.$mount=function(e,t){return function(e,t,a){var n;return e.$el=t,e.$options.render||(e.$options.render=ye),aa(e,"beforeMount"),n=function(){e._update(e._render(),a)},new ga(e,n,L,{before:function(){e._isMounted&&!e._isDestroyed&&aa(e,"beforeUpdate")}},!0),a=!1,null==e.$vnode&&(e._isMounted=!0,aa(e,"mounted")),e}(this,e=e&&K?en(e):void 0,t)},K&&setTimeout((function(){M.devtools&&oe&&oe.emit("init",xa)}),0);var dr=/\{\{((?:.|\r?\n)+?)\}\}/g,pr=/[-.*+?^${}()|[\]\/\\]/g,mr=w((function(e){var t=e[0].replace(pr,"\\$&"),a=e[1].replace(pr,"\\$&");return new RegExp(t+"((?:.|\\n)+?)"+a,"g")}));var gr={staticKeys:["staticClass"],transformNode:function(e,t){t.warn;var a=Bn(e,"class");a&&(e.staticClass=JSON.stringify(a));var n=On(e,"class",!1);n&&(e.classBinding=n)},genData:function(e){var t="";return e.staticClass&&(t+="staticClass:"+e.staticClass+","),e.classBinding&&(t+="class:"+e.classBinding+","),t}};var hr,fr={staticKeys:["staticStyle"],transformNode:function(e,t){t.warn;var a=Bn(e,"style");a&&(e.staticStyle=JSON.stringify(oi(a)));var n=On(e,"style",!1);n&&(e.styleBinding=n)},genData:function(e){var t="";return e.staticStyle&&(t+="staticStyle:"+e.staticStyle+","),e.styleBinding&&(t+="style:("+e.styleBinding+"),"),t}},vr=function(e){return(hr=hr||document.createElement("div")).innerHTML=e,hr.textContent},br=v("area,base,br,col,embed,frame,hr,img,input,isindex,keygen,link,meta,param,source,track,wbr"),yr=v("colgroup,dd,dt,li,options,p,td,tfoot,th,thead,tr,source"),_r=v("address,article,aside,base,blockquote,body,caption,col,colgroup,dd,details,dialog,div,dl,dt,fieldset,figcaption,figure,footer,form,h1,h2,h3,h4,h5,h6,head,header,hgroup,hr,html,legend,li,menuitem,meta,optgroup,option,param,rp,rt,source,style,summary,tbody,td,tfoot,th,thead,title,tr,track"),Ar=/^\s*([^\s"'<>\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,kr=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,wr="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+q.source+"]*",Cr="((?:"+wr+"\\:)?"+wr+")",xr=new RegExp("^<"+Cr),Tr=/^\s*(\/?)>/,Sr=new RegExp("^<\\/"+Cr+"[^>]*>"),Dr=/^]+>/i,Pr=/^",""":'"',"&":"&"," ":"\n"," ":"\t","'":"'"},Rr=/&(?:lt|gt|quot|amp|#39);/g,Ir=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,Fr=v("pre,textarea",!0),Er=function(e,t){return e&&Fr(e)&&"\n"===t[0]};function jr(e,t){var a=t?Ir:Rr;return e.replace(a,(function(e){return Lr[e]}))}var Or,Br,Mr,qr,Ur,Gr,Vr,Wr,Hr=/^@|^v-on:/,Kr=/^v-|^@|^:|^#/,Qr=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,Yr=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,Jr=/^\(|\)$/g,Zr=/^\[.*\]$/,Xr=/:(.*)$/,es=/^:|^\.|^v-bind:/,ts=/\.[^.\]]+(?=[^\]]*$)/g,as=/^v-slot(:|$)|^#/,ns=/[\r\n]/,is=/\s+/g,rs=w(vr);function ss(e,t,a){return{type:1,tag:e,attrsList:t,attrsMap:ms(t),rawAttrsMap:{},parent:a,children:[]}}function os(e,t){Or=t.warn||$n,Gr=t.isPreTag||R,Vr=t.mustUseProp||R,Wr=t.getTagNamespace||R;t.isReservedTag;Mr=Nn(t.modules,"transformNode"),qr=Nn(t.modules,"preTransformNode"),Ur=Nn(t.modules,"postTransformNode"),Br=t.delimiters;var a,n,i=[],r=!1!==t.preserveWhitespace,s=t.whitespace,o=!1,l=!1;function c(e){if(u(e),o||e.processed||(e=ls(e,t)),i.length||e===a||a.if&&(e.elseif||e.else)&&us(a,{exp:e.elseif,block:e}),n&&!e.forbidden)if(e.elseif||e.else)s=e,(c=function(e){for(var t=e.length;t--;){if(1===e[t].type)return e[t];e.pop()}}(n.children))&&c.if&&us(c,{exp:s.elseif,block:s});else{if(e.slotScope){var r=e.slotTarget||'"default"';(n.scopedSlots||(n.scopedSlots={}))[r]=e}n.children.push(e),e.parent=n}var s,c;e.children=e.children.filter((function(e){return!e.slotScope})),u(e),e.pre&&(o=!1),Gr(e.tag)&&(l=!1);for(var d=0;d]*>)","i")),p=e.replace(d,(function(e,a,n){return c=n.length,$r(u)||"noscript"===u||(a=a.replace(//g,"$1").replace(//g,"$1")),Er(u,a)&&(a=a.slice(1)),t.chars&&t.chars(a),""}));l+=e.length-p.length,e=p,T(u,l-c,l)}else{var m=e.indexOf("<");if(0===m){if(Pr.test(e)){var g=e.indexOf("--\x3e");if(g>=0){t.shouldKeepComment&&t.comment(e.substring(4,g),l,l+g+3),w(g+3);continue}}if(zr.test(e)){var h=e.indexOf("]>");if(h>=0){w(h+2);continue}}var f=e.match(Dr);if(f){w(f[0].length);continue}var v=e.match(Sr);if(v){var b=l;w(v[0].length),T(v[1],b,l);continue}var y=C();if(y){x(y),Er(y.tagName,e)&&w(1);continue}}var _=void 0,A=void 0,k=void 0;if(m>=0){for(A=e.slice(m);!(Sr.test(A)||xr.test(A)||Pr.test(A)||zr.test(A)||(k=A.indexOf("<",1))<0);)m+=k,A=e.slice(m);_=e.substring(0,m)}m<0&&(_=e),_&&w(_.length),t.chars&&_&&t.chars(_,l-_.length,l)}if(e===a){t.chars&&t.chars(e);break}}function w(t){l+=t,e=e.substring(t)}function C(){var t=e.match(xr);if(t){var a,n,i={tagName:t[1],attrs:[],start:l};for(w(t[0].length);!(a=e.match(Tr))&&(n=e.match(kr)||e.match(Ar));)n.start=l,w(n[0].length),n.end=l,i.attrs.push(n);if(a)return i.unarySlash=a[1],w(a[0].length),i.end=l,i}}function x(e){var a=e.tagName,l=e.unarySlash;r&&("p"===n&&_r(a)&&T(n),o(a)&&n===a&&T(a));for(var c=s(a)||!!l,u=e.attrs.length,d=new Array(u),p=0;p=0&&i[s].lowerCasedTag!==o;s--);else s=0;if(s>=0){for(var c=i.length-1;c>=s;c--)t.end&&t.end(i[c].tag,a,r);i.length=s,n=s&&i[s-1].tag}else"br"===o?t.start&&t.start(e,[],!0,a,r):"p"===o&&(t.start&&t.start(e,[],!1,a,r),t.end&&t.end(e,a,r))}T()}(e,{warn:Or,expectHTML:t.expectHTML,isUnaryTag:t.isUnaryTag,canBeLeftOpenTag:t.canBeLeftOpenTag,shouldDecodeNewlines:t.shouldDecodeNewlines,shouldDecodeNewlinesForHref:t.shouldDecodeNewlinesForHref,shouldKeepComment:t.comments,outputSourceRange:t.outputSourceRange,start:function(e,r,s,u,d){var p=n&&n.ns||Wr(e);Z&&"svg"===p&&(r=function(e){for(var t=[],a=0;al&&(o.push(r=e.slice(l,i)),s.push(JSON.stringify(r)));var c=Pn(n[1].trim());s.push("_s("+c+")"),o.push({"@binding":c}),l=i+n[0].length}return l-1"+("true"===r?":("+t+")":":_q("+t+","+r+")")),jn(e,"change","var $$a="+t+",$$el=$event.target,$$c=$$el.checked?("+r+"):("+s+");if(Array.isArray($$a)){var $$v="+(n?"_n("+i+")":i)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+Gn(t,"$$a.concat([$$v])")+")}else{$$i>-1&&("+Gn(t,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+Gn(t,"$$c")+"}",null,!0)}(e,n,i);else if("input"===r&&"radio"===s)!function(e,t,a){var n=a&&a.number,i=On(e,"value")||"null";Ln(e,"checked","_q("+t+","+(i=n?"_n("+i+")":i)+")"),jn(e,"change",Gn(t,i),null,!0)}(e,n,i);else if("input"===r||"textarea"===r)!function(e,t,a){var n=e.attrsMap.type,i=a||{},r=i.lazy,s=i.number,o=i.trim,l=!r&&"range"!==n,c=r?"change":"range"===n?"__r":"input",u="$event.target.value";o&&(u="$event.target.value.trim()");s&&(u="_n("+u+")");var d=Gn(t,u);l&&(d="if($event.target.composing)return;"+d);Ln(e,"value","("+t+")"),jn(e,c,d,null,!0),(o||s)&&jn(e,"blur","$forceUpdate()")}(e,n,i);else if(!M.isReservedTag(r))return Un(e,n,i),!1;return!0},text:function(e,t){t.value&&Ln(e,"textContent","_s("+t.value+")",t)},html:function(e,t){t.value&&Ln(e,"innerHTML","_s("+t.value+")",t)}},isPreTag:function(e){return"pre"===e},isUnaryTag:br,mustUseProp:Ia,canBeLeftOpenTag:yr,isReservedTag:Ya,getTagNamespace:Ja,staticKeys:function(e){return e.reduce((function(e,t){return e.concat(t.staticKeys||[])}),[]).join(",")}(vs)},As=w((function(e){return v("type,tag,attrsList,attrsMap,plain,parent,children,attrs,start,end,rawAttrsMap"+(e?","+e:""))}));function ks(e,t){e&&(bs=As(t.staticKeys||""),ys=t.isReservedTag||R,function e(t){if(t.static=function(e){if(2===e.type)return!1;if(3===e.type)return!0;return!(!e.pre&&(e.hasBindings||e.if||e.for||b(e.tag)||!ys(e.tag)||function(e){for(;e.parent;){if("template"!==(e=e.parent).tag)return!1;if(e.for)return!0}return!1}(e)||!Object.keys(e).every(bs)))}(t),1===t.type){if(!ys(t.tag)&&"slot"!==t.tag&&null==t.attrsMap["inline-template"])return;for(var a=0,n=t.children.length;a|^function(?:\s+[\w$]+)?\s*\(/,Cs=/\([^)]*?\);*$/,xs=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,Ts={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},Ss={esc:["Esc","Escape"],tab:"Tab",enter:"Enter",space:[" ","Spacebar"],up:["Up","ArrowUp"],left:["Left","ArrowLeft"],right:["Right","ArrowRight"],down:["Down","ArrowDown"],delete:["Backspace","Delete","Del"]},Ds=function(e){return"if("+e+")return null;"},Ps={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:Ds("$event.target !== $event.currentTarget"),ctrl:Ds("!$event.ctrlKey"),shift:Ds("!$event.shiftKey"),alt:Ds("!$event.altKey"),meta:Ds("!$event.metaKey"),left:Ds("'button' in $event && $event.button !== 0"),middle:Ds("'button' in $event && $event.button !== 1"),right:Ds("'button' in $event && $event.button !== 2")};function zs(e,t){var a=t?"nativeOn:":"on:",n="",i="";for(var r in e){var s=$s(e[r]);e[r]&&e[r].dynamic?i+=r+","+s+",":n+='"'+r+'":'+s+","}return n="{"+n.slice(0,-1)+"}",i?a+"_d("+n+",["+i.slice(0,-1)+"])":a+n}function $s(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map((function(e){return $s(e)})).join(",")+"]";var t=xs.test(e.value),a=ws.test(e.value),n=xs.test(e.value.replace(Cs,""));if(e.modifiers){var i="",r="",s=[];for(var o in e.modifiers)if(Ps[o])r+=Ps[o],Ts[o]&&s.push(o);else if("exact"===o){var l=e.modifiers;r+=Ds(["ctrl","shift","alt","meta"].filter((function(e){return!l[e]})).map((function(e){return"$event."+e+"Key"})).join("||"))}else s.push(o);return s.length&&(i+=function(e){return"if(!$event.type.indexOf('key')&&"+e.map(Ns).join("&&")+")return null;"}(s)),r&&(i+=r),"function($event){"+i+(t?"return "+e.value+"($event)":a?"return ("+e.value+")($event)":n?"return "+e.value:e.value)+"}"}return t||a?e.value:"function($event){"+(n?"return "+e.value:e.value)+"}"}function Ns(e){var t=parseInt(e,10);if(t)return"$event.keyCode!=="+t;var a=Ts[e],n=Ss[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(a)+",$event.key,"+JSON.stringify(n)+")"}var Ls={on:function(e,t){e.wrapListeners=function(e){return"_g("+e+","+t.value+")"}},bind:function(e,t){e.wrapData=function(a){return"_b("+a+",'"+e.tag+"',"+t.value+","+(t.modifiers&&t.modifiers.prop?"true":"false")+(t.modifiers&&t.modifiers.sync?",true":"")+")"}},cloak:L},Rs=function(e){this.options=e,this.warn=e.warn||$n,this.transforms=Nn(e.modules,"transformCode"),this.dataGenFns=Nn(e.modules,"genData"),this.directives=$($({},Ls),e.directives);var t=e.isReservedTag||R;this.maybeComponent=function(e){return!!e.component||!t(e.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function Is(e,t){var a=new Rs(t);return{render:"with(this){return "+(e?Fs(e,a):'_c("div")')+"}",staticRenderFns:a.staticRenderFns}}function Fs(e,t){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return Es(e,t);if(e.once&&!e.onceProcessed)return js(e,t);if(e.for&&!e.forProcessed)return Bs(e,t);if(e.if&&!e.ifProcessed)return Os(e,t);if("template"!==e.tag||e.slotTarget||t.pre){if("slot"===e.tag)return function(e,t){var a=e.slotName||'"default"',n=Gs(e,t),i="_t("+a+(n?","+n:""),r=e.attrs||e.dynamicAttrs?Hs((e.attrs||[]).concat(e.dynamicAttrs||[]).map((function(e){return{name:x(e.name),value:e.value,dynamic:e.dynamic}}))):null,s=e.attrsMap["v-bind"];!r&&!s||n||(i+=",null");r&&(i+=","+r);s&&(i+=(r?"":",null")+","+s);return i+")"}(e,t);var a;if(e.component)a=function(e,t,a){var n=t.inlineTemplate?null:Gs(t,a,!0);return"_c("+e+","+Ms(t,a)+(n?","+n:"")+")"}(e.component,e,t);else{var n;(!e.plain||e.pre&&t.maybeComponent(e))&&(n=Ms(e,t));var i=e.inlineTemplate?null:Gs(e,t,!0);a="_c('"+e.tag+"'"+(n?","+n:"")+(i?","+i:"")+")"}for(var r=0;r>>0}(s):"")+")"}(e,e.scopedSlots,t)+","),e.model&&(a+="model:{value:"+e.model.value+",callback:"+e.model.callback+",expression:"+e.model.expression+"},"),e.inlineTemplate){var r=function(e,t){var a=e.children[0];if(a&&1===a.type){var n=Is(a,t.options);return"inlineTemplate:{render:function(){"+n.render+"},staticRenderFns:["+n.staticRenderFns.map((function(e){return"function(){"+e+"}"})).join(",")+"]}"}}(e,t);r&&(a+=r+",")}return a=a.replace(/,$/,"")+"}",e.dynamicAttrs&&(a="_b("+a+',"'+e.tag+'",'+Hs(e.dynamicAttrs)+")"),e.wrapData&&(a=e.wrapData(a)),e.wrapListeners&&(a=e.wrapListeners(a)),a}function qs(e){return 1===e.type&&("slot"===e.tag||e.children.some(qs))}function Us(e,t){var a=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!a)return Os(e,t,Us,"null");if(e.for&&!e.forProcessed)return Bs(e,t,Us);var n="_empty_"===e.slotScope?"":String(e.slotScope),i="function("+n+"){return "+("template"===e.tag?e.if&&a?"("+e.if+")?"+(Gs(e,t)||"undefined")+":undefined":Gs(e,t)||"undefined":Fs(e,t))+"}",r=n?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+i+r+"}"}function Gs(e,t,a,n,i){var r=e.children;if(r.length){var s=r[0];if(1===r.length&&s.for&&"template"!==s.tag&&"slot"!==s.tag){var o=a?t.maybeComponent(s)?",1":",0":"";return""+(n||Fs)(s,t)+o}var l=a?function(e,t){for(var a=0,n=0;n':'
',Zs.innerHTML.indexOf(" ")>0}var to=!!K&&eo(!1),ao=!!K&&eo(!0),no=w((function(e){var t=en(e);return t&&t.innerHTML})),ro=xa.prototype.$mount;xa.prototype.$mount=function(e,t){if((e=e&&en(e))===document.body||e===document.documentElement)return this;var a=this.$options;if(!a.render){var n=a.template;if(n)if("string"==typeof n)"#"===n.charAt(0)&&(n=no(n));else{if(!n.nodeType)return this;n=n.innerHTML}else e&&(n=function(e){if(e.outerHTML)return e.outerHTML;var t=document.createElement("div");return t.appendChild(e.cloneNode(!0)),t.innerHTML}(e));if(n){var i=Xs(n,{outputSourceRange:!1,shouldDecodeNewlines:to,shouldDecodeNewlinesForHref:ao,delimiters:a.delimiters,comments:a.comments},this),r=i.render,s=i.staticRenderFns;a.render=r,a.staticRenderFns=s}}return ro.call(this,e,t)},xa.compile=Xs;var so=("undefined"!=typeof window?window:"undefined"!=typeof global?global:{}).__VUE_DEVTOOLS_GLOBAL_HOOK__;function oo(e,t){if(void 0===t&&(t=[]),null===e||"object"!=typeof e)return e;var a,n=(a=function(t){return t.original===e},t.filter(a)[0]);if(n)return n.copy;var i=Array.isArray(e)?[]:{};return t.push({original:e,copy:i}),Object.keys(e).forEach((function(a){i[a]=oo(e[a],t)})),i}function lo(e,t){Object.keys(e).forEach((function(a){return t(e[a],a)}))}function co(e){return null!==e&&"object"==typeof e}var uo=function(e,t){this.runtime=t,this._children=Object.create(null),this._rawModule=e;var a=e.state;this.state=("function"==typeof a?a():a)||{}},po={namespaced:{configurable:!0}};po.namespaced.get=function(){return!!this._rawModule.namespaced},uo.prototype.addChild=function(e,t){this._children[e]=t},uo.prototype.removeChild=function(e){delete this._children[e]},uo.prototype.getChild=function(e){return this._children[e]},uo.prototype.hasChild=function(e){return e in this._children},uo.prototype.update=function(e){this._rawModule.namespaced=e.namespaced,e.actions&&(this._rawModule.actions=e.actions),e.mutations&&(this._rawModule.mutations=e.mutations),e.getters&&(this._rawModule.getters=e.getters)},uo.prototype.forEachChild=function(e){lo(this._children,e)},uo.prototype.forEachGetter=function(e){this._rawModule.getters&&lo(this._rawModule.getters,e)},uo.prototype.forEachAction=function(e){this._rawModule.actions&&lo(this._rawModule.actions,e)},uo.prototype.forEachMutation=function(e){this._rawModule.mutations&&lo(this._rawModule.mutations,e)},Object.defineProperties(uo.prototype,po);var mo,go=function(e){this.register([],e,!1)};go.prototype.get=function(e){return e.reduce((function(e,t){return e.getChild(t)}),this.root)},go.prototype.getNamespace=function(e){var t=this.root;return e.reduce((function(e,a){return e+((t=t.getChild(a)).namespaced?a+"/":"")}),"")},go.prototype.update=function(e){!function e(t,a,n){if(a.update(n),n.modules)for(var i in n.modules){if(!a.getChild(i))return;e(t.concat(i),a.getChild(i),n.modules[i])}}([],this.root,e)},go.prototype.register=function(e,t,a){var n=this;void 0===a&&(a=!0);var i=new uo(t,a);0===e.length?this.root=i:this.get(e.slice(0,-1)).addChild(e[e.length-1],i);t.modules&&lo(t.modules,(function(t,i){n.register(e.concat(i),t,a)}))},go.prototype.unregister=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1],n=t.getChild(a);n&&n.runtime&&t.removeChild(a)},go.prototype.isRegistered=function(e){var t=this.get(e.slice(0,-1)),a=e[e.length-1];return t.hasChild(a)};var ho=function(e){var t=this;void 0===e&&(e={}),!mo&&"undefined"!=typeof window&&window.Vue&&wo(window.Vue);var a=e.plugins;void 0===a&&(a=[]);var n=e.strict;void 0===n&&(n=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new go(e),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new mo,this._makeLocalGettersCache=Object.create(null);var i=this,r=this.dispatch,s=this.commit;this.dispatch=function(e,t){return r.call(i,e,t)},this.commit=function(e,t,a){return s.call(i,e,t,a)},this.strict=n;var o=this._modules.root.state;_o(this,o,[],this._modules.root),yo(this,o),a.forEach((function(e){return e(t)})),(void 0!==e.devtools?e.devtools:mo.config.devtools)&&function(e){so&&(e._devtoolHook=so,so.emit("vuex:init",e),so.on("vuex:travel-to-state",(function(t){e.replaceState(t)})),e.subscribe((function(e,t){so.emit("vuex:mutation",e,t)}),{prepend:!0}),e.subscribeAction((function(e,t){so.emit("vuex:action",e,t)}),{prepend:!0}))}(this)},fo={state:{configurable:!0}};function vo(e,t,a){return t.indexOf(e)<0&&(a&&a.prepend?t.unshift(e):t.push(e)),function(){var a=t.indexOf(e);a>-1&&t.splice(a,1)}}function bo(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var a=e.state;_o(e,a,[],e._modules.root,!0),yo(e,a,t)}function yo(e,t,a){var n=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,r={};lo(i,(function(t,a){r[a]=function(e,t){return function(){return e(t)}}(t,e),Object.defineProperty(e.getters,a,{get:function(){return e._vm[a]},enumerable:!0})}));var s=mo.config.silent;mo.config.silent=!0,e._vm=new mo({data:{$$state:t},computed:r}),mo.config.silent=s,e.strict&&function(e){e._vm.$watch((function(){return this._data.$$state}),(function(){}),{deep:!0,sync:!0})}(e),n&&(a&&e._withCommit((function(){n._data.$$state=null})),mo.nextTick((function(){return n.$destroy()})))}function _o(e,t,a,n,i){var r=!a.length,s=e._modules.getNamespace(a);if(n.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=n),!r&&!i){var o=Ao(t,a.slice(0,-1)),l=a[a.length-1];e._withCommit((function(){mo.set(o,l,n.state)}))}var c=n.context=function(e,t,a){var n=""===t,i={dispatch:n?e.dispatch:function(a,n,i){var r=ko(a,n,i),s=r.payload,o=r.options,l=r.type;return o&&o.root||(l=t+l),e.dispatch(l,s)},commit:n?e.commit:function(a,n,i){var r=ko(a,n,i),s=r.payload,o=r.options,l=r.type;o&&o.root||(l=t+l),e.commit(l,s,o)}};return Object.defineProperties(i,{getters:{get:n?function(){return e.getters}:function(){return function(e,t){if(!e._makeLocalGettersCache[t]){var a={},n=t.length;Object.keys(e.getters).forEach((function(i){if(i.slice(0,n)===t){var r=i.slice(n);Object.defineProperty(a,r,{get:function(){return e.getters[i]},enumerable:!0})}})),e._makeLocalGettersCache[t]=a}return e._makeLocalGettersCache[t]}(e,t)}},state:{get:function(){return Ao(e.state,a)}}}),i}(e,s,a);n.forEachMutation((function(t,a){!function(e,t,a,n){(e._mutations[t]||(e._mutations[t]=[])).push((function(t){a.call(e,n.state,t)}))}(e,s+a,t,c)})),n.forEachAction((function(t,a){var n=t.root?a:s+a,i=t.handler||t;!function(e,t,a,n){(e._actions[t]||(e._actions[t]=[])).push((function(t){var i,r=a.call(e,{dispatch:n.dispatch,commit:n.commit,getters:n.getters,state:n.state,rootGetters:e.getters,rootState:e.state},t);return(i=r)&&"function"==typeof i.then||(r=Promise.resolve(r)),e._devtoolHook?r.catch((function(t){throw e._devtoolHook.emit("vuex:error",t),t})):r}))}(e,n,i,c)})),n.forEachGetter((function(t,a){!function(e,t,a,n){if(e._wrappedGetters[t])return;e._wrappedGetters[t]=function(e){return a(n.state,n.getters,e.state,e.getters)}}(e,s+a,t,c)})),n.forEachChild((function(n,r){_o(e,t,a.concat(r),n,i)}))}function Ao(e,t){return t.reduce((function(e,t){return e[t]}),e)}function ko(e,t,a){return co(e)&&e.type&&(a=t,t=e,e=e.type),{type:e,payload:t,options:a}}function wo(e){mo&&e===mo|| /*! * vuex v3.5.1 * (c) 2020 Evan You * @license MIT */ function(e){if(Number(e.version.split(".")[0])>=2)e.mixin({beforeCreate:a});else{var t=e.prototype._init;e.prototype._init=function(e){void 0===e&&(e={}),e.init=e.init?[a].concat(e.init):a,t.call(this,e)}}function a(){var e=this.$options;e.store?this.$store="function"==typeof e.store?e.store():e.store:e.parent&&e.parent.$store&&(this.$store=e.parent.$store)}}(mo=e)}fo.state.get=function(){return this._vm._data.$$state},fo.state.set=function(e){},ho.prototype.commit=function(e,t,a){var n=this,i=ko(e,t,a),r=i.type,s=i.payload,o={type:r,payload:s},l=this._mutations[r];l&&(this._withCommit((function(){l.forEach((function(e){e(s)}))})),this._subscribers.slice().forEach((function(e){return e(o,n.state)})))},ho.prototype.dispatch=function(e,t){var a=this,n=ko(e,t),i=n.type,r=n.payload,s={type:i,payload:r},o=this._actions[i];if(o){try{this._actionSubscribers.slice().filter((function(e){return e.before})).forEach((function(e){return e.before(s,a.state)}))}catch(e){}var l=o.length>1?Promise.all(o.map((function(e){return e(r)}))):o[0](r);return new Promise((function(e,t){l.then((function(t){try{a._actionSubscribers.filter((function(e){return e.after})).forEach((function(e){return e.after(s,a.state)}))}catch(e){}e(t)}),(function(e){try{a._actionSubscribers.filter((function(e){return e.error})).forEach((function(t){return t.error(s,a.state,e)}))}catch(e){}t(e)}))}))}},ho.prototype.subscribe=function(e,t){return vo(e,this._subscribers,t)},ho.prototype.subscribeAction=function(e,t){return vo("function"==typeof e?{before:e}:e,this._actionSubscribers,t)},ho.prototype.watch=function(e,t,a){var n=this;return this._watcherVM.$watch((function(){return e(n.state,n.getters)}),t,a)},ho.prototype.replaceState=function(e){var t=this;this._withCommit((function(){t._vm._data.$$state=e}))},ho.prototype.registerModule=function(e,t,a){void 0===a&&(a={}),"string"==typeof e&&(e=[e]),this._modules.register(e,t),_o(this,this.state,e,this._modules.get(e),a.preserveState),yo(this,this.state)},ho.prototype.unregisterModule=function(e){var t=this;"string"==typeof e&&(e=[e]),this._modules.unregister(e),this._withCommit((function(){var a=Ao(t.state,e.slice(0,-1));mo.delete(a,e[e.length-1])})),bo(this)},ho.prototype.hasModule=function(e){return"string"==typeof e&&(e=[e]),this._modules.isRegistered(e)},ho.prototype.hotUpdate=function(e){this._modules.update(e),bo(this,!0)},ho.prototype._withCommit=function(e){var t=this._committing;this._committing=!0,e(),this._committing=t},Object.defineProperties(ho.prototype,fo);var Co=Po((function(e,t){var a={};return Do(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){var t=this.$store.state,a=this.$store.getters;if(e){var n=zo(this.$store,"mapState",e);if(!n)return;t=n.context.state,a=n.context.getters}return"function"==typeof i?i.call(this,t,a):t[i]},a[n].vuex=!0})),a})),xo=Po((function(e,t){var a={};return Do(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var n=this.$store.commit;if(e){var r=zo(this.$store,"mapMutations",e);if(!r)return;n=r.context.commit}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),a})),To=Po((function(e,t){var a={};return Do(t).forEach((function(t){var n=t.key,i=t.val;i=e+i,a[n]=function(){if(!e||zo(this.$store,"mapGetters",e))return this.$store.getters[i]},a[n].vuex=!0})),a})),So=Po((function(e,t){var a={};return Do(t).forEach((function(t){var n=t.key,i=t.val;a[n]=function(){for(var t=[],a=arguments.length;a--;)t[a]=arguments[a];var n=this.$store.dispatch;if(e){var r=zo(this.$store,"mapActions",e);if(!r)return;n=r.context.dispatch}return"function"==typeof i?i.apply(this,[n].concat(t)):n.apply(this.$store,[i].concat(t))}})),a}));function Do(e){return function(e){return Array.isArray(e)||co(e)}(e)?Array.isArray(e)?e.map((function(e){return{key:e,val:e}})):Object.keys(e).map((function(t){return{key:t,val:e[t]}})):[]}function Po(e){return function(t,a){return"string"!=typeof t?(a=t,t=""):"/"!==t.charAt(t.length-1)&&(t+="/"),e(t,a)}}function zo(e,t,a){return e._modulesNamespaceMap[a]}function $o(e,t,a){var n=a?e.groupCollapsed:e.group;try{n.call(e,t)}catch(a){e.log(t)}}function No(e){try{e.groupEnd()}catch(t){e.log("—— log end ——")}}function Lo(){var e=new Date;return" @ "+Ro(e.getHours(),2)+":"+Ro(e.getMinutes(),2)+":"+Ro(e.getSeconds(),2)+"."+Ro(e.getMilliseconds(),3)}function Ro(e,t){return function(e,t){return new Array(t+1).join(e)}("0",t-e.toString().length)+e}var Io={Store:ho,install:wo,version:"3.5.1",mapState:Co,mapMutations:xo,mapGetters:To,mapActions:So,createNamespacedHelpers:function(e){return{mapState:Co.bind(null,e),mapGetters:To.bind(null,e),mapMutations:xo.bind(null,e),mapActions:So.bind(null,e)}},createLogger:function(e){void 0===e&&(e={});var t=e.collapsed;void 0===t&&(t=!0);var a=e.filter;void 0===a&&(a=function(e,t,a){return!0});var n=e.transformer;void 0===n&&(n=function(e){return e});var i=e.mutationTransformer;void 0===i&&(i=function(e){return e});var r=e.actionFilter;void 0===r&&(r=function(e,t){return!0});var s=e.actionTransformer;void 0===s&&(s=function(e){return e});var o=e.logMutations;void 0===o&&(o=!0);var l=e.logActions;void 0===l&&(l=!0);var c=e.logger;return void 0===c&&(c=console),function(e){var u=oo(e.state);void 0!==c&&(o&&e.subscribe((function(e,r){var s=oo(r);if(a(e,u,s)){var o=Lo(),l=i(e),d="mutation "+e.type+o;$o(c,d,t),c.log("%c prev state","color: #9E9E9E; font-weight: bold",n(u)),c.log("%c mutation","color: #03A9F4; font-weight: bold",l),c.log("%c next state","color: #4CAF50; font-weight: bold",n(s)),No(c)}u=s})),l&&e.subscribeAction((function(e,a){if(r(e,a)){var n=Lo(),i=s(e),o="action "+e.type+n;$o(c,o,t),c.log("%c action","color: #03A9F4; font-weight: bold",i),No(c)}})))}}};const Fo={data:()=>({isLoading:!1}),props:{queueItem:Object},computed:{finishedWithFails(){return"download finished"===this.queueItem.status&&this.queueItem.failed>=1},barClass(){return{converting:"converting"===this.queueItem.status,indeterminate:-1===["converting","downloading","download finished"].indexOf(this.queueItem.status),determinate:-1!==["converting","downloading","download finished"].indexOf(this.queueItem.status)}},barStyle(){let e=0;return"download finished"===this.queueItem.status&&(e=100),"downloading"===this.queueItem.status&&(e=this.queueItem.progress),"converting"===this.queueItem.status&&(e=100-this.queueItem.conversion),{width:e+"%"}},resultIconText(){let e="remove";return"download finished"===this.queueItem.status&&(e=0==this.queueItem.failed?"done":this.queueItem.failed>=this.queueItem.size?"error":"warning"),e}},methods:{onResultIconClick(){this.finishedWithFails&&this.$emit("show-errors",this.queueItem),"downloading"===this.queueItem.status&&(this.isLoading=!0,this.$emit("remove-item",this.queueItem.uuid))}}};var Eo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{staticClass:"download_object",attrs:{id:"download_"+e.queueItem.uuid,"data-deezerid":e.queueItem.id}},[a("div",{staticClass:"download_info"},[a("img",{staticClass:"rounded coverart",attrs:{width:"75px",src:e.queueItem.cover,alt:"Cover "+e.queueItem.title}}),e._v(" "),a("div",{staticClass:"download_info_data"},[a("span",{staticClass:"download_line"},[e._v(e._s(e.queueItem.title))]),e._v(" "),a("span",{staticClass:"download_slim_separator"},[e._v(" - ")]),e._v(" "),a("span",{staticClass:"secondary-text"},[e._v(e._s(e.queueItem.artist))])]),e._v(" "),a("div",{staticClass:"download_info_status"},[a("span",{staticClass:"download_line"},[a("span",{staticClass:"queue_downloaded"},[e._v(e._s(e.queueItem.downloaded+e.queueItem.failed))]),e._v("/"+e._s(e.queueItem.size)+"\n\t\t\t")]),e._v(" "),e.queueItem.failed>=1?a("span",{staticClass:"secondary-text inline-flex"},[a("span",{staticClass:"download_slim_separator"},[e._v("(")]),e._v(" "),a("span",{staticClass:"queue_failed_button inline-flex",class:{clickable:e.finishedWithFails},on:{click:function(t){e.finishedWithFails&&e.$emit("show-errors",e.queueItem)}}},[a("span",{staticClass:"queue_failed"},[e._v(e._s(e.queueItem.failed))]),e._v(" "),a("i",{staticClass:"material-icons"},[e._v("error_outline")])]),e._v(" "),a("span",{staticClass:"download_slim_separator"},[e._v(")")])]):e._e()])]),e._v(" "),a("div",{staticClass:"download_bar"},[a("div",{staticClass:"progress"},[a("div",{class:e.barClass,style:e.barStyle,attrs:{id:"bar_"+e.queueItem.uuid}})]),e._v(" "),e.isLoading?a("div",{staticClass:"circle-loader"}):a("i",{staticClass:"material-icons queue_icon",class:{clickable:e.finishedWithFails},attrs:{"data-uuid":e.queueItem.uuid},on:{click:e.onResultIconClick}},[e._v("\n\t\t\t"+e._s(e.resultIconText)+"\n\t\t")])])])};Eo._withStripped=!0;var jo=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/downloads/QueueItem.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Eo,staticRenderFns:[]},0,Fo,void 0,!1);var Oo={state:{currentCommit:null,latestCommit:null,updateAvailable:!1,deemixVersion:null},getters:{getAboutInfo:e=>e},actions:{setAboutInfo({commit:e},t){e("SET_CURRENT_COMMIT",t.currentCommit),e("SET_LATEST_COMMIT",t.latestCommit),e("SET_UPDATE_AVAILABLE",t.updateAvailable),e("SET_DEEMIX_VERSION",t.deemixVersion)}},mutations:{SET_CURRENT_COMMIT:(e,t)=>{e.currentCommit=t},SET_LATEST_COMMIT:(e,t)=>{e.latestCommit=t},SET_UPDATE_AVAILABLE:(e,t)=>{e.updateAvailable=t},SET_DEEMIX_VERSION:(e,t)=>{e.deemixVersion=t}}};const Bo=()=>({arl:localStorage.getItem("arl")||"",status:null,user:{id:null,name:"",picture:""},clientMode:!1});var Mo={state:Bo(),getters:{getARL:e=>e.arl,getUser:e=>e.user,getClientMode:e=>e.clientMode,isLoggedIn:e=>!!e.arl},actions:{login({commit:e,dispatch:t},a){const{arl:n,user:i,status:r}=a;t("setARL",{arl:n}),e("SET_USER",i),e("SET_STATUS",r)},logout({commit:e}){localStorage.removeItem("arl"),e("RESET_LOGIN")},setARL({commit:e},t){let{arl:a,saveOnLocalStorage:n}=t;n=void 0===n||n,e("SET_ARL",a),n&&localStorage.setItem("arl",a)},removeARL({commit:e}){e("SET_ARL",""),localStorage.removeItem("arl")},setUser({commit:e},t){e("SET_USER",t)},setClientMode({commit:e},t){e("SET_CLIENT_MODE",t)}},mutations:{SET_ARL(e,t){e.arl=t},SET_STATUS(e,t){e.status=t},SET_USER(e,t){e.user=t},SET_CLIENT_MODE(e,t){e.clientMode=t},RESET_LOGIN(e){let t=e.clientMode;Object.assign(e,Bo()),e.clientMode=t}}};var qo={state:{artist:"",bitrate:"",cover:"",downloaded:0,errors:[],failed:0,id:"",progress:0,silent:!0,size:0,title:"",type:"",uuid:""},getters:{getErrors:e=>e},actions:{setErrors({commit:e},t){e("SET_ERRORS",t)}},mutations:{SET_ERRORS(e,t){for(const a in e)if(e.hasOwnProperty(a)){const n=t[a];e[a]=n}}}};xa.use(Io);var Uo=new Io.Store({modules:{about:Oo,login:Mo,errors:qo},strict:!1});const Go=io.connect(window.location.href);Go.on("connect",()=>{document.getElementById("start_app_placeholder").classList.add("loading_placeholder--hidden")}),Go.on("init_update",e=>{Uo.dispatch("setAboutInfo",e)});var Vo="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};var Wo=function(e,t){return e(t={exports:{}},t.exports),t.exports}((function(e){ /*! * Toastify js 1.8.0 * https://github.com/apvarun/toastify-js * @license MIT licensed * * Copyright (C) 2018 Varun A P */ !function(t,a){e.exports?e.exports=a():t.Toastify=a()}(Vo,(function(e){var t=function(e){return new t.lib.init(e)};function a(e,t){return!(!e||"string"!=typeof t)&&!!(e.className&&e.className.trim().split(/\s+/gi).indexOf(t)>-1)}return t.lib=t.prototype={toastify:"1.8.0",constructor:t,init:function(e){return e||(e={}),this.options={},this.toastElement=null,this.options.text=e.text||"Hi there!",this.options.node=e.node,this.options.duration=0===e.duration?0:e.duration||3e3,this.options.selector=e.selector,this.options.callback=e.callback||function(){},this.options.destination=e.destination,this.options.newWindow=e.newWindow||!1,this.options.close=e.close||!1,this.options.gravity="bottom"===e.gravity?"toastify-bottom":"toastify-top",this.options.positionLeft=e.positionLeft||!1,this.options.position=e.position||"",this.options.backgroundColor=e.backgroundColor,this.options.avatar=e.avatar||"",this.options.className=e.className||"",this.options.stopOnFocus=void 0===e.stopOnFocus||e.stopOnFocus,this.options.onClick=e.onClick,this},buildToast:function(){if(!this.options)throw"Toastify is not initialized";var e=document.createElement("div");if(e.className="toastify on "+this.options.className,this.options.position?e.className+=" toastify-"+this.options.position:!0===this.options.positionLeft?(e.className+=" toastify-left",console.warn("Property `positionLeft` will be depreciated in further versions. Please use `position` instead.")):e.className+=" toastify-right",e.className+=" "+this.options.gravity,this.options.backgroundColor&&(e.style.background=this.options.backgroundColor),this.options.node&&this.options.node.nodeType===Node.ELEMENT_NODE)e.appendChild(this.options.node);else if(e.innerHTML=this.options.text,""!==this.options.avatar){var t=document.createElement("img");t.src=this.options.avatar,t.className="toastify-avatar","left"==this.options.position||!0===this.options.positionLeft?e.appendChild(t):e.insertAdjacentElement("beforeend",t)}if(!0===this.options.close){var a=document.createElement("span");a.innerHTML="✖",a.className="toast-close",a.addEventListener("click",function(e){e.stopPropagation(),this.removeElement(this.toastElement),window.clearTimeout(this.toastElement.timeOutValue)}.bind(this));var n=window.innerWidth>0?window.innerWidth:screen.width;("left"==this.options.position||!0===this.options.positionLeft)&&n>360?e.insertAdjacentElement("afterbegin",a):e.appendChild(a)}if(this.options.stopOnFocus&&this.options.duration>0){const t=this;e.addEventListener("mouseover",(function(t){window.clearTimeout(e.timeOutValue)})),e.addEventListener("mouseleave",(function(){e.timeOutValue=window.setTimeout((function(){t.removeElement(e)}),t.options.duration)}))}return void 0!==this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),!0===this.options.newWindow?window.open(this.options.destination,"_blank"):window.location=this.options.destination}.bind(this)),"function"==typeof this.options.onClick&&void 0===this.options.destination&&e.addEventListener("click",function(e){e.stopPropagation(),this.options.onClick()}.bind(this)),e},showToast:function(){var e;if(this.toastElement=this.buildToast(),!(e=void 0===this.options.selector?document.body:document.getElementById(this.options.selector)))throw"Root element is not defined";return e.insertBefore(this.toastElement,e.firstChild),t.reposition(),this.options.duration>0&&(this.toastElement.timeOutValue=window.setTimeout(function(){this.removeElement(this.toastElement)}.bind(this),this.options.duration)),this},hideToast:function(){this.toastElement.timeOutValue&&clearTimeout(this.toastElement.timeOutValue),this.removeElement(this.toastElement)},removeElement:function(e){e.className=e.className.replace(" on",""),window.setTimeout(function(){this.options.node&&this.options.node.parentNode&&this.options.node.parentNode.removeChild(this.options.node),e.parentNode&&e.parentNode.removeChild(e),this.options.callback.call(e),t.reposition()}.bind(this),400)}},t.reposition=function(){for(var e,t={top:15,bottom:15},n={top:15,bottom:15},i={top:15,bottom:15},r=document.getElementsByClassName("toastify"),s=0;s0?window.innerWidth:screen.width)<=360?(r[s].style[e]=i[e]+"px",i[e]+=o+15):!0===a(r[s],"toastify-left")?(r[s].style[e]=t[e]+"px",t[e]+=o+15):(r[s].style[e]=n[e]+"px",n[e]+=o+15)}return this},t.lib.init.prototype=t.lib,t}))}));let Ho={};const Ko=function(e,t=null,a=!0,n=null){if(Ho[n]){let i=Ho[n],r=document.querySelectorAll(`div.toastify[toast_id=${n}]`);e&&r.forEach(t=>{t.querySelectorAll(".toast-message").forEach(t=>{t.innerHTML=e})}),t&&(t="loading"==t?'
':`${t}`,r.forEach(e=>{e.querySelectorAll(".toast-icon").forEach(e=>{e.innerHTML=t})})),null!==a&&a&&(r.forEach(e=>{e.classList.add("dismissable")}),setTimeout(()=>{i.hideToast(),delete Ho[n]},3e3))}else{let i=Wo({text:`${t=null==t?"":"loading"==t?'
':`${t}`}
${e}`,duration:a?3e3:0,gravity:"bottom",position:"left",className:a?"dismissable":"",onClick:function(){let e=!0;if(n){let t=document.querySelector(`div.toastify[toast_id=${n}]`).classList;t&&(e=-1!=Array.prototype.slice.call(t).indexOf("dismissable"))}i&&e&&(i.hideToast(),n&&delete Ho[n])}}).showToast();n&&(Ho[n]=i,i.toastElement.setAttribute("toast_id",n))}};Go.on("toast",e=>{const{msg:t,icon:a,dismiss:n,id:i}=e;Ko(t,a||null,void 0===n||n,i||null)});const Qo={components:{QueueItem:jo},data:()=>({cachedTabWidth:parseInt(localStorage.getItem("downloadTabWidth"))||300,queue:[],queueList:{},queueComplete:[]}),computed:{...To({clientMode:"getClientMode"})},created(){const e=e=>{e.ctrlKey&&"b"===e.key&&this.toggleDownloadTab()};document.addEventListener("keyup",e),this.$on("hook:destroyed",()=>{document.removeEventListener("keyup",e)})},mounted(){Go.on("startDownload",this.startDownload),Go.on("startConversion",this.startConversion),Go.on("init_downloadQueue",this.initQueue),Go.on("addedToQueue",this.addToQueue),Go.on("updateQueue",this.updateQueue),Go.on("removedFromQueue",this.removeFromQueue),Go.on("finishDownload",this.finishDownload),Go.on("removedAllDownloads",this.removeAllDownloads),Go.on("removedFinishedDownloads",this.removedFinishedDownloads),"true"===localStorage.getItem("slimDownloads")&&this.$refs.list.classList.add("slim"),"true"===localStorage.getItem("downloadTabOpen")&&(this.$refs.container.classList.remove("tab_hidden"),this.setTabWidth(this.cachedTabWidth)),document.addEventListener("mouseup",()=>{document.removeEventListener("mousemove",this.handleDrag)}),window.addEventListener("beforeunload",()=>{localStorage.setItem("downloadTabWidth",this.cachedTabWidth)})},methods:{...So(["setErrors"]),onRemoveItem(e){Go.emit("removeFromQueue",e)},setTabWidth(e){void 0===e?(this.$refs.container.style.width="",this.$refs.list.style.width=""):(this.$refs.container.style.width=e+"px",this.$refs.list.style.width=e+"px")},initQueue(e){const{queue:t,queueComplete:a,currentItem:n,queueList:i,restored:r}=e;a.length&&a.forEach(e=>{i[e].silent=!0,this.addToQueue(i[e])}),n&&(i[n].silent=!0,this.addToQueue(i[n],!0)),t.forEach(e=>{i[e].silent=!0,this.addToQueue(i[e])}),r&&(Ko(this.$t("toasts.queueRestored"),"done",!0,"restoring_queue"),Go.emit("queueRestored"))},addToQueue(e,t=!1){if(Array.isArray(e)){if(e.length>1)return e.forEach((e,t)=>{e.silent=!0,this.addToQueue(e)}),void Ko(this.$t("toasts.addedMoreToQueue",{n:e.length}),"playlist_add_check");e=e[0]}this.$set(e,"current",t),this.$set(this.queueList,e.uuid,e);if(e.downloaded+e.failed==e.size){const t=-1==this.queueComplete.indexOf(e.uuid);this.$set(this.queueList[e.uuid],"status","download finished"),t&&this.queueComplete.push(e.uuid)}else{-1==this.queue.indexOf(e.uuid)&&this.queue.push(e.uuid)}(e.progress>0&&e.progress<100||t)&&this.startDownload(e.uuid),e.silent||Ko(this.$t("toasts.addedToQueue",{item:e.title}),"playlist_add_check")},updateQueue(e){const{uuid:t,downloaded:a,failed:n,progress:i,conversion:r,error:s,data:o,errid:l}=e;t&&this.queue.indexOf(t)>-1&&(a&&this.queueList[t].downloaded++,n&&(this.queueList[t].failed++,this.queueList[t].errors.push({message:s,data:o,errid:l})),i&&(this.queueList[t].progress=i),r&&(this.queueList[t].conversion=r))},removeFromQueue(e){let t=this.queue.indexOf(e);t>-1&&(this.$delete(this.queue,t),this.$delete(this.queueList,e))},removeAllDownloads(e){if(this.queueComplete=[],e){this.queue=[e];let t=this.queueList[e];this.queueList={},this.queueList[e]=t}else this.queue=[],this.queueList={}},removedFinishedDownloads(){this.queueComplete.forEach(e=>{this.$delete(this.queueList,e)}),this.queueComplete=[]},toggleDownloadTab(){this.setTabWidth(),this.$refs.container.style.transition="all 250ms ease-in-out";let e=this.$refs.container.classList.toggle("tab_hidden");e||this.setTabWidth(this.cachedTabWidth),localStorage.setItem("downloadTabOpen",!e)},cleanQueue(){Go.emit("removeFinishedDownloads")},cancelQueue(){Go.emit("cancelAllDownloads")},openDownloadsFolder(){Go.emit("openDownloadsFolder")},handleDrag(e){let t=window.innerWidth-e.pageX+2;t<250?t=250:t>500&&(t=500),this.cachedTabWidth=t,this.setTabWidth(t)},startDrag(){document.addEventListener("mousemove",this.handleDrag)},startDownload(e){this.$set(this.queueList[e],"status","downloading")},finishDownload(e){if(!(this.queue.indexOf(e)>-1))return;this.$set(this.queueList[e],"status","download finished"),Ko(this.$t("toasts.finishDownload",{item:this.queueList[e].title}),"done");let t=this.queue.indexOf(e);t>-1&&(this.queue.splice(t,1),this.queueComplete.push(e)),this.queue.length<=0&&Ko(this.$t("toasts.allDownloaded"),"done_all")},startConversion(e){this.$set(this.queueList[e],"status","converting"),this.$set(this.queueList[e],"conversion",0)},async showErrorsTab(e){await this.setErrors(e),this.$router.push({name:"Errors"})}}};var Yo=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{ref:"container",staticClass:"tab_hidden",attrs:{id:"download_tab_container","data-label":e.$t("downloads"),"aria-label":"downloads"},on:{transitionend:function(t){e.$refs.container.style.transition=""}}},[a("div",{ref:"dragHandler",attrs:{id:"download_tab_drag_handler"},on:{mousedown:function(t){return t.preventDefault(),e.startDrag(t)}}}),e._v(" "),a("i",{ref:"toggler",staticClass:"material-icons download_bar_icon",attrs:{id:"toggle_download_tab",title:e.$t("globals.toggle_download_tab_hint")},on:{click:function(t){return t.preventDefault(),e.toggleDownloadTab(t)}}}),e._v(" "),a("div",{attrs:{id:"queue_buttons"}},[e.clientMode?a("i",{staticClass:"material-icons download_bar_icon",attrs:{title:e.$t("globals.open_downloads_folder")},on:{click:e.openDownloadsFolder}},[e._v("\n\t\t\tfolder_open\n\t\t")]):e._e(),e._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{title:e.$t("globals.clean_queue_hint")},on:{click:e.cleanQueue}},[e._v("\n\t\t\tclear_all\n\t\t")]),e._v(" "),a("i",{staticClass:"material-icons download_bar_icon",attrs:{title:e.$t("globals.cancel_queue_hint")},on:{click:e.cancelQueue}},[e._v("\n\t\t\tdelete_sweep\n\t\t")])]),e._v(" "),a("div",{ref:"list",attrs:{id:"download_list"}},e._l(e.queueList,(function(t){return a("QueueItem",{key:t.uuid,attrs:{"queue-item":t},on:{"show-errors":e.showErrorsTab,"remove-item":e.onRemoveItem}})})),1)])};Yo._withStripped=!0;var Jo=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/downloads/TheDownloadBar.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:Yo,staticRenderFns:[]},(function(e){e&&e("data-v-5fa10e74_0",{source:"#download_tab_container[data-v-5fa10e74] {\n height: 100vh;\n}\n\n/*# sourceMappingURL=TheDownloadBar.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/downloads/TheDownloadBar.vue","TheDownloadBar.vue"],names:[],mappings:"AA8CA;EACA,aAAA;AAAA;;AC5CA,6CAA6C",file:"TheDownloadBar.vue",sourcesContent:[null,"#download_tab_container {\n height: 100vh; }\n\n/*# sourceMappingURL=TheDownloadBar.vue.map */"]},media:void 0})}),Qo,"data-v-5fa10e74",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));const Zo={props:{text:{type:String,required:!1,default:"Loading..."},id:{type:String,required:!1},hidden:{type:Boolean,required:!1,default:!1}}};var Xo=function(e,t){var a=t._c;return a("div",{staticClass:"loading_placeholder",class:{"loading_placeholder--hidden":t.props.hidden},attrs:{id:t.props.id}},[a("span",{staticClass:"loading_placeholder__text"},[t._v(t._s(t.props.text))]),t._v(" "),t._m(0)])};Xo._withStripped=!0;var el=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};return l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/globals/BaseLoadingPlaceholder.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n,l}({render:Xo,staticRenderFns:[function(e,t){var a=t._c;return a("div",{staticClass:"lds-ring"},[a("div"),t._v(" "),a("div"),t._v(" "),a("div"),t._v(" "),a("div")])}]},0,Zo,void 0,!0);function tl(e,t=null){e&&Go.emit("addToQueue",{url:e,bitrate:t},()=>{})}var al={sendAddToQueue:tl};function nl(e){let t=e.toLowerCase();if(t.startsWith("http")){if(t.indexOf("deezer.com")>=0||t.indexOf("deezer.page.link")>=0||t.indexOf("open.spotify.com")>=0)return!0}else if(t.startsWith("spotify:"))return!0;return!1}function il(e){let t,a;return t=Math.floor(e/60),a=e-60*t,a<10&&(a="0"+a),t+":"+a}function rl(e){return e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".")}function sl(e,t,a){var n;return function(){var i=this,r=arguments,s=function(){n=null,a||e.apply(i,r)},o=a&&!n;clearTimeout(n),n=setTimeout(s,t),o&&e.apply(i,r)}}function ol(e){const t=document.createElement("input");document.body.appendChild(t),t.setAttribute("type","text"),t.setAttribute("value",e),t.select(),t.setSelectionRange(0,99999),document.execCommand("copy"),t.remove()}var ll={isValidURL:nl,convertDuration:il,convertDurationSeparated:function(e){let t,a,n;return a=Math.floor(e/60),t=Math.floor(a/60),n=e-60*a,a-=60*t,[t,a,n]},numberWithDots:rl,debounce:sl};const cl=[{objName:"flac",label:"FLAC",value:9},{objName:"320kbps",label:"MP3 320kbps",value:3},{objName:"128kbps",label:"MP3 128kbps",value:1},{objName:"realityAudioHQ",label:"360 Reality Audio [HQ]",value:15},{objName:"realityAudioMQ",label:"360 Reality Audio [MQ]",value:14},{objName:"realityAudioLQ",label:"360 Reality Audio [LQ]",value:13}];const ul={data:()=>({menuOpen:!1,xPos:0,yPos:0,deezerHref:"",generalHref:"",imgSrc:""}),computed:{options(){const e={cut:{label:this.$t("globals.cut"),show:!1,position:1,action:()=>{document.execCommand("Cut")}},copy:{label:this.$t("globals.copy"),show:!1,position:2,action:()=>{document.execCommand("Copy")}},copyLink:{label:this.$t("globals.copyLink"),show:!1,position:3,action:()=>{ol(this.generalHref)}},copyImageLink:{label:this.$t("globals.copyImageLink"),show:!1,position:4,action:()=>{ol(this.imgSrc)}},copyDeezerLink:{label:this.$t("globals.copyDeezerLink"),show:!1,position:5,action:()=>{ol(this.deezerHref)}},paste:{label:this.$t("globals.paste"),show:!1,position:6,action:()=>{clipboard in navigator?navigator.clipboard.readText().then(e=>{document.execCommand("insertText",void 0,e)}):document.execCommand("paste")}}};let t=Object.values(e).length+1;return cl.forEach((a,n)=>{e[a.objName]={label:""+this.$t("globals.download",{thing:a.label}),show:!1,position:t+n,action:tl.bind(null,this.deezerHref,a.value)}}),e},sortedOptions(){return Object.values(this.options).sort((e,t)=>e.position{this.menuOpen=!1,this.options.copyLink.show=!1,this.options.copyDeezerLink.show=!1,this.options.copyImageLink.show=!1,cl.forEach(e=>{this.options[e.objName].show=!1})}).catch(e=>{console.error(e)})},positionMenu(e,t){this.xPos=e+"px",this.yPos=t+"px",this.$nextTick().then(()=>{const{innerHeight:a,innerWidth:n}=window,i=e+this.$refs.contextMenu.getBoundingClientRect().width,r=t+this.$refs.contextMenu.getBoundingClientRect().height;if(i>n){const t=i-n+15;this.xPos=e-t+"px"}if(r>a){const e=r-a+15;this.yPos=t-e+"px"}})},showDeezerOptions(){this.options.copyDeezerLink.show=!0,cl.forEach(e=>{this.options[e.objName].show=!0})}}};var dl=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.menuOpen,expression:"menuOpen"}],ref:"contextMenu",staticClass:"context-menu",style:{top:e.yPos,left:e.xPos}},e._l(e.sortedOptions,(function(t){return a("button",{directives:[{name:"show",rawName:"v-show",value:t.show,expression:"option.show"}],key:t.label,staticClass:"menu-option",on:{click:function(e){return e.preventDefault(),t.action(e)}}},[a("span",{staticClass:"menu-option__text"},[e._v(e._s(t.label))])])})),0)};dl._withStripped=!0;var pl=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/globals/TheContextMenu.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:dl,staticRenderFns:[]},(function(e){e&&e("data-v-a8205ec2_0",{source:".context-menu[data-v-a8205ec2] {\n position: absolute;\n top: 0;\n left: 0;\n min-width: 100px;\n border-radius: 7px;\n background: var(--foreground-inverted);\n box-shadow: 4px 10px 18px 0px rgba(0, 0, 0, 0.15);\n overflow: hidden;\n z-index: 10000;\n}\n.menu-option[data-v-a8205ec2] {\n display: flex;\n align-items: center;\n width: 100%;\n height: 40px;\n padding-left: 10px;\n padding-right: 10px;\n color: var(--foreground);\n cursor: pointer;\n}\n.menu-option[data-v-a8205ec2]:hover {\n background: var(--table-highlight);\n filter: brightness(150%);\n}\n.menu-option__text[data-v-a8205ec2] {\n text-transform: capitalize;\n}\nbutton[data-v-a8205ec2] {\n color: var(--accent-text);\n color: unset;\n background-color: var(--accent-color);\n background-color: unset;\n min-width: unset;\n position: unset;\n border: unset;\n border-radius: unset;\n font-family: unset;\n font-weight: unset;\n font-size: unset;\n padding: unset;\n margin-right: unset;\n height: unset;\n text-transform: unset;\n cursor: unset;\n transition: unset;\n}\nbutton[data-v-a8205ec2]:focus {\n outline: none;\n}\nbutton[disabled][data-v-a8205ec2] {\n background-color: unset;\n color: unset;\n opacity: unset;\n}\nbutton.selective[data-v-a8205ec2] {\n background-color: unset;\n color: unset;\n}\nbutton.selective.active[data-v-a8205ec2] {\n background-color: unset;\n color: unset;\n}\nbutton.with_icon[data-v-a8205ec2] {\n display: unset;\n align-items: unset;\n}\nbutton.with_icon i[data-v-a8205ec2] {\n margin-left: unset;\n}\nbutton[data-v-a8205ec2]:active {\n background-color: unset;\n transform: unset;\n}\nbutton[data-v-a8205ec2]:hover {\n background: unset;\n border: unset;\n}\n\n/*# sourceMappingURL=TheContextMenu.vue.map */",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/globals/TheContextMenu.vue","TheContextMenu.vue"],names:[],mappings:"AA4NA;EACA,kBAAA;EACA,MAAA;EACA,OAAA;EACA,gBAAA;EACA,kBAAA;EACA,sCAAA;EACA,iDAAA;EACA,gBAAA;EACA,cAAA;AAAA;AAGA;EACA,aAAA;EACA,mBAAA;EACA,WAAA;EACA,YAAA;EACA,kBAAA;EACA,mBAAA;EACA,wBAAA;EACA,eAAA;AAAA;AARA;IAWA,kCAAA;IACA,wBAAA;AAAA;AAGA;IACA,0BAAA;AAAA;AAKA;EACA,yBAAA;EACA,YAAA;EACA,qCAAA;EACA,uBAAA;EACA,gBAAA;EACA,eAAA;EACA,aAAA;EACA,oBAAA;EACA,kBAAA;EACA,kBAAA;EACA,gBAAA;EACA,cAAA;EACA,mBAAA;EACA,aAAA;EACA,qBAAA;EACA,aAAA;EACA,iBAAA;AAAA;AAjBA;IAoBA,aAAA;AAAA;AApBA;IAwBA,uBAAA;IACA,YAAA;IACA,cAAA;AAAA;AA1BA;IA8BA,uBAAA;IACA,YAAA;AAAA;AA/BA;MAkCA,uBAAA;MACA,YAAA;AAAA;AAnCA;IAwCA,cAAA;IACA,kBAAA;AAAA;AAzCA;MA4CA,kBAAA;AAAA;AA5CA;IAiDA,uBAAA;IACA,gBAAA;AAAA;AAlDA;IAsDA,iBAAA;IACA,aAAA;AAAA;;AChPA,6CAA6C",file:"TheContextMenu.vue",sourcesContent:[null,".context-menu {\n position: absolute;\n top: 0;\n left: 0;\n min-width: 100px;\n border-radius: 7px;\n background: var(--foreground-inverted);\n box-shadow: 4px 10px 18px 0px rgba(0, 0, 0, 0.15);\n overflow: hidden;\n z-index: 10000; }\n\n.menu-option {\n display: flex;\n align-items: center;\n width: 100%;\n height: 40px;\n padding-left: 10px;\n padding-right: 10px;\n color: var(--foreground);\n cursor: pointer; }\n .menu-option:hover {\n background: var(--table-highlight);\n filter: brightness(150%); }\n .menu-option__text {\n text-transform: capitalize; }\n\nbutton {\n color: var(--accent-text);\n color: unset;\n background-color: var(--accent-color);\n background-color: unset;\n min-width: unset;\n position: unset;\n border: unset;\n border-radius: unset;\n font-family: unset;\n font-weight: unset;\n font-size: unset;\n padding: unset;\n margin-right: unset;\n height: unset;\n text-transform: unset;\n cursor: unset;\n transition: unset; }\n button:focus {\n outline: none; }\n button[disabled] {\n background-color: unset;\n color: unset;\n opacity: unset; }\n button.selective {\n background-color: unset;\n color: unset; }\n button.selective.active {\n background-color: unset;\n color: unset; }\n button.with_icon {\n display: unset;\n align-items: unset; }\n button.with_icon i {\n margin-left: unset; }\n button:active {\n background-color: unset;\n transform: unset; }\n button:hover {\n background: unset;\n border: unset; }\n\n/*# sourceMappingURL=TheContextMenu.vue.map */"]},media:void 0})}),ul,"data-v-a8205ec2",!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}})),ml=new xa;async function gl(e,t,{duration:a=1e3,easing:n=hl,interval:i=13}={}){const r=e.volume,s=t-r;if(!(s&&a&&n&&i))return e.volume=t,Promise.resolve();const o=Math.floor(a/i);let l=1;return new Promise(t=>{const a=setInterval(()=>{e.volume=r+n(l/o)*s,++l===o&&(clearInterval(a),t())},i)})}function hl(e){return.5-Math.cos(e*Math.PI)/2}const fl={data:()=>({previewStopped:!1}),mounted(){this.$refs.preview.volume=1,ml.$on("trackPreview:playPausePreview",this.playPausePreview),ml.$on("trackPreview:stopStackedTabsPreview",this.stopStackedTabsPreview),ml.$on("trackPreview:previewMouseEnter",this.previewMouseEnter),ml.$on("trackPreview:previewMouseLeave",this.previewMouseLeave)},methods:{async onCanPlay(){await this.$refs.preview.play(),this.previewStopped=!1,await gl(this.$refs.preview,window.vol.preview_max_volume/100,{duration:500})},async onTimeUpdate(){if(isNaN(this.$refs.preview.duration))return;let e=this.$refs.preview.duration;isFinite(e)||(e=30),e-this.$refs.preview.currentTime>=1||this.previewStopped||(await gl(this.$refs.preview,0,{duration:800}),this.previewStopped=!0,document.querySelectorAll("a[playing] > .preview_controls").forEach(e=>{e.style.opacity=0}),document.querySelectorAll("*").forEach(e=>{e.removeAttribute("playing")}),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(e=>{e.textContent="play_arrow"}))},async playPausePreview(e){e.preventDefault(),e.stopPropagation();const{currentTarget:t}=event;var a="I"==t.tagName?t:t.querySelector("i");t.hasAttribute("playing")?this.$refs.preview.paused?(this.$refs.preview.play(),this.previewStopped=!1,a.innerText="pause",await gl(this.$refs.preview,window.vol.preview_max_volume/100,{duration:500})):(this.previewStopped=!0,a.innerText="play_arrow",await gl(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause()):(document.querySelectorAll("*").forEach(e=>{e.removeAttribute("playing")}),t.setAttribute("playing",!0),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(e=>{e.textContent="play_arrow"}),document.querySelectorAll(".preview_controls").forEach(e=>{e.style.opacity=0}),a.innerText="pause",a.style.opacity=1,this.previewStopped=!1,await gl(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause(),document.getElementById("preview-track_source").src=t.getAttribute("data-preview"),this.$refs.preview.load())},async stopStackedTabsPreview(){let e=Array.prototype.slice.call(document.querySelectorAll(".preview_playlist_controls[playing]"));0!==e.length&&(await gl(this.$refs.preview,0,{duration:800}),this.previewStopped=!0,e.forEach(e=>{e.removeAttribute("playing"),e.innerText="play_arrow"}))},previewMouseEnter(e){e.currentTarget.style.opacity=1},previewMouseLeave(e){const{currentTarget:t}=e,a=t.parentElement.hasAttribute("playing");(a&&this.previewStopped||!a)&&(t.style.opacity=0)}}};var vl=function(){var e=this.$createElement,t=this._self._c||e;return t("audio",{ref:"preview",attrs:{id:"preview-track"},on:{canplay:this.onCanPlay,timeupdate:this.onTimeUpdate}},[t("source",{attrs:{id:"preview-track_source",src:"",type:"audio/mpeg"}})])};vl._withStripped=!0;var bl=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/globals/TheTrackPreview.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:vl,staticRenderFns:[]},(function(e){e&&e("data-v-c39e069e_0",{source:"\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n\n",map:{version:3,sources:[],names:[],mappings:"",file:"TheTrackPreview.vue"},media:void 0})}),fl,void 0,!1,0,(function e(){const t=document.head||document.getElementsByTagName("head")[0],a=e.styles||(e.styles={}),n="undefined"!=typeof navigator&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(e,i){if(document.querySelector('style[data-vue-ssr-id~="'+e+'"]'))return;const r=n?i.media||"default":e,s=a[r]||(a[r]={ids:[],parts:[],element:void 0});if(!s.ids.includes(e)){let a=i.source,o=s.ids.length;if(s.ids.push(e),n&&(s.element=s.element||document.querySelector("style[data-group="+r+"]")),!s.element){const e=s.element=document.createElement("style");e.type="text/css",i.media&&e.setAttribute("media",i.media),n&&(e.setAttribute("data-group",r),e.setAttribute("data-next-index","0")),t.appendChild(e)}if(n&&(o=parseInt(s.element.getAttribute("data-next-index")),s.element.setAttribute("data-next-index",o+1)),s.element.styleSheet)s.parts.push(a),s.element.styleSheet.cssText=s.parts.filter(Boolean).join("\n");else{const e=document.createTextNode(a),t=s.element.childNodes;t[o]&&s.element.removeChild(t[o]),t.length?s.element.insertBefore(e,t[o]):s.element.appendChild(e)}}}}));const yl={data:()=>({open:!1,url:""}),mounted(){this.$root.$on("QualityModal:open",this.openModal),this.$refs.modal.addEventListener("webkitAnimationEnd",this.handleAnimationEnd)},methods:{tryToDownloadTrack(e){const{target:t}=e;this.$refs.modal.classList.add("animated","fadeOut"),t.matches(".quality-button")&&al.sendAddToQueue(this.url,t.dataset.qualityValue)},openModal(e){this.url=e,this.open=!0,this.$refs.modal.classList.add("animated","fadeIn")},handleAnimationEnd(e){const{animationName:t}=e;this.$refs.modal.classList.remove("animated",t),"fadeIn"!==t&&(this.open=!1)}}};var _l=function(){var e=this,t=e.$createElement,a=e._self._c||t;return a("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],ref:"modal",staticClass:"smallmodal",attrs:{id:"modal_quality"},on:{click:function(t){return e.tryToDownloadTrack(t)}}},[a("div",{staticClass:"smallmodal-content"},[a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"9"}},[e._v(e._s(e.$t("globals.download",{thing:"FLAC"})))]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"3"}},[e._v(e._s(e.$t("globals.download",{thing:"MP3 320kbps"})))]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"1"}},[e._v(e._s(e.$t("globals.download",{thing:"MP3 128kbps"})))]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"15"}},[e._v("\n\t\t\t"+e._s(e.$t("globals.download",{thing:"360 Reality Audio [HQ]"}))+"\n\t\t")]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"14"}},[e._v("\n\t\t\t"+e._s(e.$t("globals.download",{thing:"360 Reality Audio [MQ]"}))+"\n\t\t")]),e._v(" "),a("button",{staticClass:"quality-button",attrs:{"data-quality-value":"13"}},[e._v("\n\t\t\t"+e._s(e.$t("globals.download",{thing:"360 Reality Audio [LQ]"}))+"\n\t\t")])])])};_l._withStripped=!0;var Al=function(e,t,a,n,i,r,s,o){const l=("function"==typeof a?a.options:a)||{};l.__file="/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/globals/TheQualityModal.vue",l.render||(l.render=e.render,l.staticRenderFns=e.staticRenderFns,l._compiled=!0,i&&(l.functional=!0)),l._scopeId=n;{let e;if(t&&(e=function(e){t.call(this,s(e))}),void 0!==e)if(l.functional){const t=l.render;l.render=function(a,n){return e.call(n),t(a,n)}}else{const t=l.beforeCreate;l.beforeCreate=t?[].concat(t,e):[e]}}return l}({render:_l,staticRenderFns:[]},(function(e){e&&e("data-v-14a32729_0",{source:"\n.smallmodal {\n\tposition: fixed;\n\tz-index: 1250;\n\tleft: 0;\n\ttop: 0;\n\twidth: 100%;\n\theight: 100%;\n\toverflow: auto;\n\tbackground-color: hsla(0, 0%, 0%, 0.4);\n\tanimation-duration: 0.3s;\n}\n.smallmodal-content {\n\tbackground-color: transparent;\n\tmargin: auto;\n\twidth: var(--modal-content-width);\n\tposition: relative;\n\ttop: 50%;\n\ttransform: translateY(-50%);\n}\n.smallmodal-content button {\n\twidth: 100%;\n\tmargin-bottom: 8px;\n}\n",map:{version:3,sources:["/mnt/Dati/Programmazione/DeezloaderStuff/deemix/deemix-pyweb/webui/src/components/globals/TheQualityModal.vue"],names:[],mappings:";AAmBA;CACA,eAAA;CACA,aAAA;CACA,OAAA;CACA,MAAA;CACA,WAAA;CACA,YAAA;CACA,cAAA;CACA,sCAAA;CACA,wBAAA;AACA;AAEA;CACA,6BAAA;CACA,YAAA;CACA,iCAAA;CACA,kBAAA;CACA,QAAA;CACA,2BAAA;AACA;AAEA;CACA,WAAA;CACA,kBAAA;AACA",file:"TheQualityModal.vue",sourcesContent:["\n\n