diff --git a/public/js/bundle.js b/public/js/bundle.js index 31ffbfb..d2fddba 100644 --- a/public/js/bundle.js +++ b/public/js/bundle.js @@ -2,9 +2,9 @@ * Vue.js v2.6.12 * (c) 2014-2020 Evan You * Released under the MIT License. - */var emptyObject=Object.freeze({});function isUndef(e){return e==null}function isDef(e){return e!=null}function isTrue(e){return e===!0}function isFalse(e){return e===!1}function isPrimitive(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function isObject$4(e){return e!==null&&typeof e=="object"}var _toString=Object.prototype.toString;function toRawType(e){return _toString.call(e).slice(8,-1)}function isPlainObject$2(e){return _toString.call(e)==="[object Object]"}function isRegExp(e){return _toString.call(e)==="[object RegExp]"}function isValidArrayIndex(e){var a=parseFloat(String(e));return a>=0&&Math.floor(a)===a&&isFinite(e)}function isPromise$1(e){return isDef(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function toString$3(e){return e==null?"":Array.isArray(e)||isPlainObject$2(e)&&e.toString===_toString?JSON.stringify(e,null,2):String(e)}function toNumber$1(e){var a=parseFloat(e);return isNaN(a)?e:a}function makeMap(e,a){for(var n=Object.create(null),i=e.split(","),r=0;r-1)return e.splice(n,1)}}var hasOwnProperty$b=Object.prototype.hasOwnProperty;function hasOwn$2(e,a){return hasOwnProperty$b.call(e,a)}function cached$2(e){var a=Object.create(null);return function(i){var r=a[i];return r||(a[i]=e(i))}}var camelizeRE=/-(\w)/g,camelize=cached$2(function(e){return e.replace(camelizeRE,function(a,n){return n?n.toUpperCase():""})}),capitalize=cached$2(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),hyphenateRE=/\B([A-Z])/g,hyphenate=cached$2(function(e){return e.replace(hyphenateRE,"-$1").toLowerCase()});function polyfillBind(e,a){function n(i){var r=arguments.length;return r?r>1?e.apply(a,arguments):e.call(a,i):e.call(a)}return n._length=e.length,n}function nativeBind(e,a){return e.bind(a)}var bind$1=Function.prototype.bind?nativeBind:polyfillBind;function toArray(e,a){a=a||0;for(var n=e.length-a,i=new Array(n);n--;)i[n]=e[n+a];return i}function extend$2(e,a){for(var n in a)e[n]=a[n];return e}function toObject(e){for(var a={},n=0;n0,isEdge=UA&&UA.indexOf("edge/")>0;UA&&UA.indexOf("android")>0;var isIOS=UA&&/iphone|ipad|ipod|ios/.test(UA)||weexPlatform==="ios";UA&&/chrome\/\d+/.test(UA),UA&&/phantomjs/.test(UA);var isFF=UA&&UA.match(/firefox\/(\d+)/),nativeWatch={}.watch,supportsPassive=!1;if(inBrowser$1)try{var opts={};Object.defineProperty(opts,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",null,opts)}catch(e){}var _isServer,isServerRendering=function(){return _isServer===void 0&&(!inBrowser$1&&!inWeex&&typeof global!="undefined"?_isServer=global.process&&global.process.env.VUE_ENV==="server":_isServer=!1),_isServer},devtools=inBrowser$1&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative$1(e){return typeof e=="function"&&/native code/.test(e.toString())}var hasSymbol$2=typeof Symbol!="undefined"&&isNative$1(Symbol)&&typeof Reflect!="undefined"&&isNative$1(Reflect.ownKeys),_Set;typeof Set!="undefined"&&isNative$1(Set)?_Set=Set:_Set=function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(n){return this.set[n]===!0},e.prototype.add=function(n){this.set[n]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var warn$2=noop$2,uid=0,Dep=function(){this.id=uid++,this.subs=[]};Dep.prototype.addSub=function(a){this.subs.push(a)},Dep.prototype.removeSub=function(a){remove$1(this.subs,a)},Dep.prototype.depend=function(){Dep.target&&Dep.target.addDep(this)},Dep.prototype.notify=function(){for(var a=this.subs.slice(),n=0,i=a.length;n-1){if(s&&!hasOwn$2(r,"default"))l=!1;else if(l===""||l===hyphenate(e)){var o=getTypeIndex(String,r.type);(o<0||c0&&(r=normalizeArrayChildren(r,(a||"")+"_"+i),isTextNode(r[0])&&isTextNode(l)&&(n[s]=createTextVNode(l.text+r[0].text),r.shift()),n.push.apply(n,r)):isPrimitive(r)?isTextNode(l)?n[s]=createTextVNode(l.text+r):r!==""&&n.push(createTextVNode(r)):isTextNode(r)&&isTextNode(l)?n[s]=createTextVNode(l.text+r.text):(isTrue(e._isVList)&&isDef(r.tag)&&isUndef(r.key)&&isDef(a)&&(r.key="__vlist"+a+"_"+i+"__"),n.push(r)));return n}function initProvide(e){var a=e.$options.provide;a&&(e._provided=typeof a=="function"?a.call(e):a)}function initInjections(e){var a=resolveInject(e.$options.inject,e);a&&(toggleObserving(!1),Object.keys(a).forEach(function(n){defineReactive$$1(e,n,a[n])}),toggleObserving(!0))}function resolveInject(e,a){if(e){for(var n=Object.create(null),i=hasSymbol$2?Reflect.ownKeys(e):Object.keys(e),r=0;r0,s=e?!!e.$stable:!r,l=e&&e.$key;if(!e)i={};else{if(e._normalized)return e._normalized;if(s&&n&&n!==emptyObject&&l===n.$key&&!r&&!n.$hasNormal)return n;i={};for(var c in e)e[c]&&c[0]!=="$"&&(i[c]=normalizeScopedSlot(a,c,e[c]))}for(var o in a)o in i||(i[o]=proxyNormalSlot(a,o));return e&&Object.isExtensible(e)&&(e._normalized=i),def$1(i,"$stable",s),def$1(i,"$key",l),def$1(i,"$hasNormal",r),i}function normalizeScopedSlot(e,a,n){var i=function(){var r=arguments.length?n.apply(null,arguments):n({});return r=r&&typeof r=="object"&&!Array.isArray(r)?[r]:normalizeChildren(r),r&&(r.length===0||r.length===1&&r[0].isComment)?void 0:r};return n.proxy&&Object.defineProperty(e,a,{get:i,enumerable:!0,configurable:!0}),i}function proxyNormalSlot(e,a){return function(){return e[a]}}function renderList(e,a){var n,i,r,s,l;if(Array.isArray(e)||typeof e=="string")for(n=new Array(e.length),i=0,r=e.length;i1?toArray(r):r;for(var s=toArray(arguments,1),l='event handler for "'+n+'"',c=0,o=r.length;cdocument.createEvent("Event").timeStamp&&(getNow=function(){return performance.now()})}function flushSchedulerQueue(){currentFlushTimestamp=getNow(),flushing=!0;var e,a;for(queue.sort(function(r,s){return r.id-s.id}),index$1=0;index$1index$1&&queue[n].id>e.id;)n--;queue.splice(n+1,0,e)}waiting||(waiting=!0,nextTick(flushSchedulerQueue))}}var uid$2=0,Watcher=function(a,n,i,r,s){this.vm=a,s&&(a._watcher=this),a._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++uid$2,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new _Set,this.newDepIds=new _Set,this.expression="",typeof n=="function"?this.getter=n:(this.getter=parsePath$1(n),this.getter||(this.getter=noop$2)),this.value=this.lazy?void 0:this.get()};Watcher.prototype.get=function(){pushTarget(this);var a,n=this.vm;try{a=this.getter.call(n,n)}catch(i){if(this.user)handleError(i,n,'getter for watcher "'+this.expression+'"');else throw i}finally{this.deep&&traverse(a),popTarget(),this.cleanupDeps()}return a},Watcher.prototype.addDep=function(a){var n=a.id;this.newDepIds.has(n)||(this.newDepIds.add(n),this.newDeps.push(a),this.depIds.has(n)||a.addSub(this))},Watcher.prototype.cleanupDeps=function(){for(var a=this.deps.length;a--;){var n=this.deps[a];this.newDepIds.has(n.id)||n.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},Watcher.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():queueWatcher(this)},Watcher.prototype.run=function(){if(this.active){var a=this.get();if(a!==this.value||isObject$4(a)||this.deep){var n=this.value;if(this.value=a,this.user)try{this.cb.call(this.vm,a,n)}catch(i){handleError(i,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,a,n)}}},Watcher.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Watcher.prototype.depend=function(){for(var a=this.deps.length;a--;)this.deps[a].depend()},Watcher.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||remove$1(this.vm._watchers,this);for(var a=this.deps.length;a--;)this.deps[a].removeSub(this);this.active=!1}};var sharedPropertyDefinition$1={enumerable:!0,configurable:!0,get:noop$2,set:noop$2};function proxy$1(e,a,n){sharedPropertyDefinition$1.get=function(){return this[a][n]},sharedPropertyDefinition$1.set=function(r){this[a][n]=r},Object.defineProperty(e,n,sharedPropertyDefinition$1)}function initState(e){e._watchers=[];var a=e.$options;a.props&&initProps(e,a.props),a.methods&&initMethods(e,a.methods),a.data?initData(e):observe$1(e._data={},!0),a.computed&&initComputed(e,a.computed),a.watch&&a.watch!==nativeWatch&&initWatch(e,a.watch)}function initProps(e,a){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],s=!e.$parent;s||toggleObserving(!1);var l=function(o){r.push(o);var u=validateProp(o,a,n,e);defineReactive$$1(i,o,u),o in e||proxy$1(e,"_props",o)};for(var c in a)l(c);toggleObserving(!0)}function initData(e){var a=e.$options.data;a=e._data=typeof a=="function"?getData(a,e):a||{},isPlainObject$2(a)||(a={});var n=Object.keys(a),i=e.$options.props;e.$options.methods;for(var r=n.length;r--;){var s=n[r];i&&hasOwn$2(i,s)||isReserved(s)||proxy$1(e,"_data",s)}observe$1(a,!0)}function getData(e,a){pushTarget();try{return e.call(a,a)}catch(n){return handleError(n,a,"data()"),{}}finally{popTarget()}}var computedWatcherOptions={lazy:!0};function initComputed(e,a){var n=e._computedWatchers=Object.create(null),i=isServerRendering();for(var r in a){var s=a[r],l=typeof s=="function"?s:s.get;i||(n[r]=new Watcher(e,l||noop$2,noop$2,computedWatcherOptions)),r in e||defineComputed(e,r,s)}}function defineComputed(e,a,n){var i=!isServerRendering();typeof n=="function"?(sharedPropertyDefinition$1.get=i?createComputedGetter(a):createGetterInvoker(n),sharedPropertyDefinition$1.set=noop$2):(sharedPropertyDefinition$1.get=n.get?i&&n.cache!==!1?createComputedGetter(a):createGetterInvoker(n.get):noop$2,sharedPropertyDefinition$1.set=n.set||noop$2),Object.defineProperty(e,a,sharedPropertyDefinition$1)}function createComputedGetter(e){return function(){var n=this._computedWatchers&&this._computedWatchers[e];if(n)return n.dirty&&n.evaluate(),Dep.target&&n.depend(),n.value}}function createGetterInvoker(e){return function(){return e.call(this,this)}}function initMethods(e,a){e.$options.props;for(var n in a)e[n]=typeof a[n]!="function"?noop$2:bind$1(a[n],e)}function initWatch(e,a){for(var n in a){var i=a[n];if(Array.isArray(i))for(var r=0;r-1)return this;var i=toArray(arguments,1);return i.unshift(this),typeof a.install=="function"?a.install.apply(a,i):typeof a=="function"&&a.apply(null,i),n.push(a),this}}function initMixin$1(e){e.mixin=function(a){return this.options=mergeOptions(this.options,a),this}}function initExtend(e){e.cid=0;var a=1;e.extend=function(n){n=n||{};var i=this,r=i.cid,s=n._Ctor||(n._Ctor={});if(s[r])return s[r];var l=n.name||i.options.name,c=function(u){this._init(u)};return c.prototype=Object.create(i.prototype),c.prototype.constructor=c,c.cid=a++,c.options=mergeOptions(i.options,n),c.super=i,c.options.props&&initProps$1(c),c.options.computed&&initComputed$1(c),c.extend=i.extend,c.mixin=i.mixin,c.use=i.use,ASSET_TYPES.forEach(function(o){c[o]=i[o]}),l&&(c.options.components[l]=c),c.superOptions=i.options,c.extendOptions=n,c.sealedOptions=extend$2({},c.options),s[r]=c,c}}function initProps$1(e){var a=e.options.props;for(var n in a)proxy$1(e.prototype,"_props",n)}function initComputed$1(e){var a=e.options.computed;for(var n in a)defineComputed(e.prototype,n,a[n])}function initAssetRegisters(e){ASSET_TYPES.forEach(function(a){e[a]=function(n,i){return i?(a==="component"&&isPlainObject$2(i)&&(i.name=i.name||n,i=this.options._base.extend(i)),a==="directive"&&typeof i=="function"&&(i={bind:i,update:i}),this.options[a+"s"][n]=i,i):this.options[a+"s"][n]}})}function getComponentName(e){return e&&(e.Ctor.options.name||e.tag)}function matches(e,a){return Array.isArray(e)?e.indexOf(a)>-1:typeof e=="string"?e.split(",").indexOf(a)>-1:isRegExp(e)?e.test(a):!1}function pruneCache(e,a){var n=e.cache,i=e.keys,r=e._vnode;for(var s in n){var l=n[s];if(l){var c=getComponentName(l.componentOptions);c&&!a(c)&&pruneCacheEntry(n,s,i,r)}}}function pruneCacheEntry(e,a,n,i){var r=e[a];r&&(!i||r.tag!==i.tag)&&r.componentInstance.$destroy(),e[a]=null,remove$1(n,a)}var patternTypes=[String,RegExp,Array],KeepAlive={name:"keep-alive",abstract:!0,props:{include:patternTypes,exclude:patternTypes,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var a in this.cache)pruneCacheEntry(this.cache,a,this.keys)},mounted:function(){var a=this;this.$watch("include",function(n){pruneCache(a,function(i){return matches(n,i)})}),this.$watch("exclude",function(n){pruneCache(a,function(i){return!matches(n,i)})})},render:function(){var a=this.$slots.default,n=getFirstComponentChild(a),i=n&&n.componentOptions;if(i){var r=getComponentName(i),s=this,l=s.include,c=s.exclude;if(l&&(!r||!matches(l,r))||c&&r&&matches(c,r))return n;var o=this,u=o.cache,d=o.keys,f=n.key==null?i.Ctor.cid+(i.tag?"::"+i.tag:""):n.key;u[f]?(n.componentInstance=u[f].componentInstance,remove$1(d,f),d.push(f)):(u[f]=n,d.push(f),this.max&&d.length>parseInt(this.max)&&pruneCacheEntry(u,d[0],d,this._vnode)),n.data.keepAlive=!0}return n||a&&a[0]}},builtInComponents={KeepAlive};function initGlobalAPI(e){var a={};a.get=function(){return config},Object.defineProperty(e,"config",a),e.util={warn:warn$2,extend:extend$2,mergeOptions,defineReactive:defineReactive$$1},e.set=set,e.delete=del,e.nextTick=nextTick,e.observable=function(n){return observe$1(n),n},e.options=Object.create(null),ASSET_TYPES.forEach(function(n){e.options[n+"s"]=Object.create(null)}),e.options._base=e,extend$2(e.options.components,builtInComponents),initUse(e),initMixin$1(e),initExtend(e),initAssetRegisters(e)}initGlobalAPI(Vue$2),Object.defineProperty(Vue$2.prototype,"$isServer",{get:isServerRendering}),Object.defineProperty(Vue$2.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Vue$2,"FunctionalRenderContext",{value:FunctionalRenderContext}),Vue$2.version="2.6.12";var isReservedAttr=makeMap("style,class"),acceptValue=makeMap("input,textarea,option,select,progress"),mustUseProp=function(e,a,n){return n==="value"&&acceptValue(e)&&a!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"},isEnumeratedAttr=makeMap("contenteditable,draggable,spellcheck"),isValidContentEditableValue=makeMap("events,caret,typing,plaintext-only"),convertEnumeratedValue=function(e,a){return isFalsyAttrValue(a)||a==="false"?"false":e==="contenteditable"&&isValidContentEditableValue(a)?a:"true"},isBooleanAttr=makeMap("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"),xlinkNS="http://www.w3.org/1999/xlink",isXlink=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},getXlinkProp=function(e){return isXlink(e)?e.slice(6,e.length):""},isFalsyAttrValue=function(e){return e==null||e===!1};function genClassForVnode(e){for(var a=e.data,n=e,i=e;isDef(i.componentInstance);)i=i.componentInstance._vnode,i&&i.data&&(a=mergeClassData(i.data,a));for(;isDef(n=n.parent);)n&&n.data&&(a=mergeClassData(a,n.data));return renderClass(a.staticClass,a.class)}function mergeClassData(e,a){return{staticClass:concat(e.staticClass,a.staticClass),class:isDef(e.class)?[e.class,a.class]:a.class}}function renderClass(e,a){return isDef(e)||isDef(a)?concat(e,stringifyClass(a)):""}function concat(e,a){return e?a?e+" "+a:e:a||""}function stringifyClass(e){return Array.isArray(e)?stringifyArray(e):isObject$4(e)?stringifyObject(e):typeof e=="string"?e:""}function stringifyArray(e){for(var a="",n,i=0,r=e.length;i-1?unknownElementCache[e]=a.constructor===window.HTMLUnknownElement||a.constructor===window.HTMLElement:unknownElementCache[e]=/HTMLUnknownElement/.test(a.toString())}var isTextInputType=makeMap("text,number,password,search,email,tel,url");function query(e){if(typeof e=="string"){var a=document.querySelector(e);return a||document.createElement("div")}else return e}function createElement$1(e,a){var n=document.createElement(e);return e!=="select"||a.data&&a.data.attrs&&a.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function createElementNS(e,a){return document.createElementNS(namespaceMap[e],a)}function createTextNode(e){return document.createTextNode(e)}function createComment(e){return document.createComment(e)}function insertBefore(e,a,n){e.insertBefore(a,n)}function removeChild(e,a){e.removeChild(a)}function appendChild(e,a){e.appendChild(a)}function parentNode(e){return e.parentNode}function nextSibling(e){return e.nextSibling}function tagName(e){return e.tagName}function setTextContent(e,a){e.textContent=a}function setStyleScope(e,a){e.setAttribute(a,"")}var nodeOps=Object.freeze({createElement:createElement$1,createElementNS,createTextNode,createComment,insertBefore,removeChild,appendChild,parentNode,nextSibling,tagName,setTextContent,setStyleScope}),ref$1={create:function(a,n){registerRef(n)},update:function(a,n){a.data.ref!==n.data.ref&&(registerRef(a,!0),registerRef(n))},destroy:function(a){registerRef(a,!0)}};function registerRef(e,a){var n=e.data.ref;if(!!isDef(n)){var i=e.context,r=e.componentInstance||e.elm,s=i.$refs;a?Array.isArray(s[n])?remove$1(s[n],r):s[n]===r&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(r)<0&&s[n].push(r):s[n]=[r]:s[n]=r}}var emptyNode=new VNode("",{},[]),hooks=["create","activate","update","remove","destroy"];function sameVnode(e,a){return e.key===a.key&&(e.tag===a.tag&&e.isComment===a.isComment&&isDef(e.data)===isDef(a.data)&&sameInputType(e,a)||isTrue(e.isAsyncPlaceholder)&&e.asyncFactory===a.asyncFactory&&isUndef(a.asyncFactory.error))}function sameInputType(e,a){if(e.tag!=="input")return!0;var n,i=isDef(n=e.data)&&isDef(n=n.attrs)&&n.type,r=isDef(n=a.data)&&isDef(n=n.attrs)&&n.type;return i===r||isTextInputType(i)&&isTextInputType(r)}function createKeyToOldIdx(e,a,n){var i,r,s={};for(i=a;i<=n;++i)r=e[i].key,isDef(r)&&(s[r]=i);return s}function createPatchFunction(e){var a,n,i={},r=e.modules,s=e.nodeOps;for(a=0;aP?(H=isUndef(k[j+1])?null:k[j+1].elm,A(g,H,k,$,j,x)):$>j&&M(b,N,P)}function S(g,b,k,x){for(var T=k;T-1?baseSetAttr(e,a,n):isBooleanAttr(a)?isFalsyAttrValue(n)?e.removeAttribute(a):(n=a==="allowfullscreen"&&e.tagName==="EMBED"?"true":a,e.setAttribute(a,n)):isEnumeratedAttr(a)?e.setAttribute(a,convertEnumeratedValue(a,n)):isXlink(a)?isFalsyAttrValue(n)?e.removeAttributeNS(xlinkNS,getXlinkProp(a)):e.setAttributeNS(xlinkNS,a,n):baseSetAttr(e,a,n)}function baseSetAttr(e,a,n){if(isFalsyAttrValue(n))e.removeAttribute(a);else{if(isIE&&!isIE9&&e.tagName==="TEXTAREA"&&a==="placeholder"&&n!==""&&!e.__ieph){var i=function(r){r.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(a,n)}}var attrs={create:updateAttrs,update:updateAttrs};function updateClass(e,a){var n=a.elm,i=a.data,r=e.data;if(!(isUndef(i.staticClass)&&isUndef(i.class)&&(isUndef(r)||isUndef(r.staticClass)&&isUndef(r.class)))){var s=genClassForVnode(a),l=n._transitionClasses;isDef(l)&&(s=concat(s,stringifyClass(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var klass={create:updateClass,update:updateClass},validDivisionCharRE=/[\w).+\-_$\]]/;function parseFilters(e){var a=!1,n=!1,i=!1,r=!1,s=0,l=0,c=0,o=0,u,d,f,h,m;for(f=0;f=0&&(y=e.charAt(v),y===" ");v--);(!y||!validDivisionCharRE.test(y))&&(r=!0)}}h===void 0?h=e.slice(0,f).trim():o!==0&&_();function _(){(m||(m=[])).push(e.slice(o,f).trim()),o=f+1}if(m)for(f=0;f-1?{exp:e.slice(0,index$1$1),key:'"'+e.slice(index$1$1+1)+'"'}:{exp:e,key:null};for(str=e,index$1$1=expressionPos=expressionEndPos=0;!eof();)chr=next(),isStringStart(chr)?parseString(chr):chr===91&&parseBracket(chr);return{exp:e.slice(0,expressionPos),key:e.slice(expressionPos+1,expressionEndPos)}}function next(){return str.charCodeAt(++index$1$1)}function eof(){return index$1$1>=len}function isStringStart(e){return e===34||e===39}function parseBracket(e){var a=1;for(expressionPos=index$1$1;!eof();){if(e=next(),isStringStart(e)){parseString(e);continue}if(e===91&&a++,e===93&&a--,a===0){expressionEndPos=index$1$1;break}}}function parseString(e){for(var a=e;!eof()&&(e=next(),e!==a););}var RANGE_TOKEN="__r",CHECKBOX_RADIO_TOKEN="__c";function model(e,a,n){var i=a.value,r=a.modifiers,s=e.tag,l=e.attrsMap.type;if(e.component)return genComponentModel(e,i,r),!1;if(s==="select")genSelect(e,i,r);else if(s==="input"&&l==="checkbox")genCheckboxModel(e,i,r);else if(s==="input"&&l==="radio")genRadioModel(e,i,r);else if(s==="input"||s==="textarea")genDefaultModel(e,i,r);else if(!config.isReservedTag(s))return genComponentModel(e,i,r),!1;return!0}function genCheckboxModel(e,a,n){var i=n&&n.number,r=getBindingAttr(e,"value")||"null",s=getBindingAttr(e,"true-value")||"true",l=getBindingAttr(e,"false-value")||"false";addProp(e,"checked","Array.isArray("+a+")?_i("+a+","+r+")>-1"+(s==="true"?":("+a+")":":_q("+a+","+s+")")),addHandler(e,"change","var $$a="+a+",$$el=$event.target,$$c=$$el.checked?("+s+"):("+l+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+genAssignmentCode(a,"$$a.concat([$$v])")+")}else{$$i>-1&&("+genAssignmentCode(a,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+genAssignmentCode(a,"$$c")+"}",null,!0)}function genRadioModel(e,a,n){var i=n&&n.number,r=getBindingAttr(e,"value")||"null";r=i?"_n("+r+")":r,addProp(e,"checked","_q("+a+","+r+")"),addHandler(e,"change",genAssignmentCode(a,r),null,!0)}function genSelect(e,a,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",s="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",l="var $$selectedVal = "+r+";";l=l+" "+genAssignmentCode(a,s),addHandler(e,"change",l,null,!0)}function genDefaultModel(e,a,n){var i=e.attrsMap.type,r=n||{},s=r.lazy,l=r.number,c=r.trim,o=!s&&i!=="range",u=s?"change":i==="range"?RANGE_TOKEN:"input",d="$event.target.value";c&&(d="$event.target.value.trim()"),l&&(d="_n("+d+")");var f=genAssignmentCode(a,d);o&&(f="if($event.target.composing)return;"+f),addProp(e,"value","("+a+")"),addHandler(e,u,f,null,!0),(c||l)&&addHandler(e,"blur","$forceUpdate()")}function normalizeEvents(e){if(isDef(e[RANGE_TOKEN])){var a=isIE?"change":"input";e[a]=[].concat(e[RANGE_TOKEN],e[a]||[]),delete e[RANGE_TOKEN]}isDef(e[CHECKBOX_RADIO_TOKEN])&&(e.change=[].concat(e[CHECKBOX_RADIO_TOKEN],e.change||[]),delete e[CHECKBOX_RADIO_TOKEN])}var target$1$1;function createOnceHandler$1(e,a,n){var i=target$1$1;return function r(){var s=a.apply(null,arguments);s!==null&&remove$2(e,r,n,i)}}var useMicrotaskFix=isUsingMicroTask&&!(isFF&&Number(isFF[1])<=53);function add$1(e,a,n,i){if(useMicrotaskFix){var r=currentFlushTimestamp,s=a;a=s._wrapper=function(l){if(l.target===l.currentTarget||l.timeStamp>=r||l.timeStamp<=0||l.target.ownerDocument!==document)return s.apply(this,arguments)}}target$1$1.addEventListener(e,a,supportsPassive?{capture:n,passive:i}:n)}function remove$2(e,a,n,i){(i||target$1$1).removeEventListener(e,a._wrapper||a,n)}function updateDOMListeners(e,a){if(!(isUndef(e.data.on)&&isUndef(a.data.on))){var n=a.data.on||{},i=e.data.on||{};target$1$1=a.elm,normalizeEvents(n),updateListeners(n,i,add$1,remove$2,createOnceHandler$1,a.context),target$1$1=void 0}}var events={create:updateDOMListeners,update:updateDOMListeners},svgContainer;function updateDOMProps(e,a){if(!(isUndef(e.data.domProps)&&isUndef(a.data.domProps))){var n,i,r=a.elm,s=e.data.domProps||{},l=a.data.domProps||{};isDef(l.__ob__)&&(l=a.data.domProps=extend$2({},l));for(n in s)n in l||(r[n]="");for(n in l){if(i=l[n],n==="textContent"||n==="innerHTML"){if(a.children&&(a.children.length=0),i===s[n])continue;r.childNodes.length===1&&r.removeChild(r.childNodes[0])}if(n==="value"&&r.tagName!=="PROGRESS"){r._value=i;var c=isUndef(i)?"":String(i);shouldUpdateValue(r,c)&&(r.value=c)}else if(n==="innerHTML"&&isSVG(r.tagName)&&isUndef(r.innerHTML)){svgContainer=svgContainer||document.createElement("div"),svgContainer.innerHTML=""+i+"";for(var o=svgContainer.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}else if(i!==s[n])try{r[n]=i}catch(u){}}}}function shouldUpdateValue(e,a){return!e.composing&&(e.tagName==="OPTION"||isNotInFocusAndDirty(e,a)||isDirtyWithModifiers(e,a))}function isNotInFocusAndDirty(e,a){var n=!0;try{n=document.activeElement!==e}catch(i){}return n&&e.value!==a}function isDirtyWithModifiers(e,a){var n=e.value,i=e._vModifiers;if(isDef(i)){if(i.number)return toNumber$1(n)!==toNumber$1(a);if(i.trim)return n.trim()!==a.trim()}return n!==a}var domProps={create:updateDOMProps,update:updateDOMProps},parseStyleText=cached$2(function(e){var a={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach(function(r){if(r){var s=r.split(i);s.length>1&&(a[s[0].trim()]=s[1].trim())}}),a});function normalizeStyleData(e){var a=normalizeStyleBinding(e.style);return e.staticStyle?extend$2(e.staticStyle,a):a}function normalizeStyleBinding(e){return Array.isArray(e)?toObject(e):typeof e=="string"?parseStyleText(e):e}function getStyle(e,a){var n={},i;if(a)for(var r=e;r.componentInstance;)r=r.componentInstance._vnode,r&&r.data&&(i=normalizeStyleData(r.data))&&extend$2(n,i);(i=normalizeStyleData(e.data))&&extend$2(n,i);for(var s=e;s=s.parent;)s.data&&(i=normalizeStyleData(s.data))&&extend$2(n,i);return n}var cssVarRE=/^--/,importantRE=/\s*!important$/,setProp=function(e,a,n){if(cssVarRE.test(a))e.style.setProperty(a,n);else if(importantRE.test(n))e.style.setProperty(hyphenate(a),n.replace(importantRE,""),"important");else{var i=normalize(a);if(Array.isArray(n))for(var r=0,s=n.length;r-1?a.split(whitespaceRE).forEach(function(i){return e.classList.add(i)}):e.classList.add(a);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+a+" ")<0&&e.setAttribute("class",(n+a).trim())}}function removeClass(e,a){if(!(!a||!(a=a.trim())))if(e.classList)a.indexOf(" ")>-1?a.split(whitespaceRE).forEach(function(r){return e.classList.remove(r)}):e.classList.remove(a),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",i=" "+a+" ";n.indexOf(i)>=0;)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function resolveTransition(e){if(!!e){if(typeof e=="object"){var a={};return e.css!==!1&&extend$2(a,autoCssTransition(e.name||"v")),extend$2(a,e),a}else if(typeof e=="string")return autoCssTransition(e)}}var autoCssTransition=cached$2(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"}}),hasTransition=inBrowser$1&&!isIE9,TRANSITION="transition",ANIMATION="animation",transitionProp="transition",transitionEndEvent="transitionend",animationProp="animation",animationEndEvent="animationend";hasTransition&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(transitionProp="WebkitTransition",transitionEndEvent="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(animationProp="WebkitAnimation",animationEndEvent="webkitAnimationEnd"));var raf=inBrowser$1?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function nextFrame(e){raf(function(){raf(e)})}function addTransitionClass(e,a){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(a)<0&&(n.push(a),addClass(e,a))}function removeTransitionClass(e,a){e._transitionClasses&&remove$1(e._transitionClasses,a),removeClass(e,a)}function whenTransitionEnds(e,a,n){var i=getTransitionInfo(e,a),r=i.type,s=i.timeout,l=i.propCount;if(!r)return n();var c=r===TRANSITION?transitionEndEvent:animationEndEvent,o=0,u=function(){e.removeEventListener(c,d),n()},d=function(f){f.target===e&&++o>=l&&u()};setTimeout(function(){o0&&(u=TRANSITION,d=s,f=r.length):a===ANIMATION?o>0&&(u=ANIMATION,d=o,f=c.length):(d=Math.max(s,o),u=d>0?s>o?TRANSITION:ANIMATION:null,f=u?u===TRANSITION?r.length:c.length:0);var h=u===TRANSITION&&transformRE.test(n[transitionProp+"Property"]);return{type:u,timeout:d,propCount:f,hasTransform:h}}function getTimeout(e,a){for(;e.length1}function _enter(e,a){a.data.show!==!0&&enter(a)}var transition=inBrowser$1?{create:_enter,activate:_enter,remove:function(a,n){a.data.show!==!0?leave(a,n):n()}}:{},platformModules=[attrs,klass,events,domProps,style,transition],modules=platformModules.concat(baseModules),patch=createPatchFunction({nodeOps,modules});isIE9&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&trigger(e,"input")});var directive={inserted:function(a,n,i,r){i.tag==="select"?(r.elm&&!r.elm._vOptions?mergeVNodeHook(i,"postpatch",function(){directive.componentUpdated(a,n,i)}):setSelected(a,n,i.context),a._vOptions=[].map.call(a.options,getValue$1)):(i.tag==="textarea"||isTextInputType(a.type))&&(a._vModifiers=n.modifiers,n.modifiers.lazy||(a.addEventListener("compositionstart",onCompositionStart),a.addEventListener("compositionend",onCompositionEnd),a.addEventListener("change",onCompositionEnd),isIE9&&(a.vmodel=!0)))},componentUpdated:function(a,n,i){if(i.tag==="select"){setSelected(a,n,i.context);var r=a._vOptions,s=a._vOptions=[].map.call(a.options,getValue$1);if(s.some(function(c,o){return!looseEqual$1(c,r[o])})){var l=a.multiple?n.value.some(function(c){return hasNoMatchingOption(c,s)}):n.value!==n.oldValue&&hasNoMatchingOption(n.value,s);l&&trigger(a,"change")}}}};function setSelected(e,a,n){actuallySetSelected(e,a),(isIE||isEdge)&&setTimeout(function(){actuallySetSelected(e,a)},0)}function actuallySetSelected(e,a,n){var i=a.value,r=e.multiple;if(!(r&&!Array.isArray(i))){for(var s,l,c=0,o=e.options.length;c-1,l.selected!==s&&(l.selected=s);else if(looseEqual$1(getValue$1(l),i)){e.selectedIndex!==c&&(e.selectedIndex=c);return}r||(e.selectedIndex=-1)}}function hasNoMatchingOption(e,a){return a.every(function(n){return!looseEqual$1(n,e)})}function getValue$1(e){return"_value"in e?e._value:e.value}function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){!e.target.composing||(e.target.composing=!1,trigger(e.target,"input"))}function trigger(e,a){var n=document.createEvent("HTMLEvents");n.initEvent(a,!0,!0),e.dispatchEvent(n)}function locateNode(e){return e.componentInstance&&(!e.data||!e.data.transition)?locateNode(e.componentInstance._vnode):e}var show={bind:function(a,n,i){var r=n.value;i=locateNode(i);var s=i.data&&i.data.transition,l=a.__vOriginalDisplay=a.style.display==="none"?"":a.style.display;r&&s?(i.data.show=!0,enter(i,function(){a.style.display=l})):a.style.display=r?l:"none"},update:function(a,n,i){var r=n.value,s=n.oldValue;if(!r!=!s){i=locateNode(i);var l=i.data&&i.data.transition;l?(i.data.show=!0,r?enter(i,function(){a.style.display=a.__vOriginalDisplay}):leave(i,function(){a.style.display="none"})):a.style.display=r?a.__vOriginalDisplay:"none"}},unbind:function(a,n,i,r,s){s||(a.style.display=a.__vOriginalDisplay)}},platformDirectives={model:directive,show},transitionProps={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 getRealChild(e){var a=e&&e.componentOptions;return a&&a.Ctor.options.abstract?getRealChild(getFirstComponentChild(a.children)):e}function extractTransitionData(e){var a={},n=e.$options;for(var i in n.propsData)a[i]=e[i];var r=n._parentListeners;for(var s in r)a[camelize(s)]=r[s];return a}function placeholder(e,a){if(/\d-keep-alive$/.test(a.tag))return e("keep-alive",{props:a.componentOptions.propsData})}function hasParentTransition(e){for(;e=e.parent;)if(e.data.transition)return!0}function isSameChild(e,a){return a.key===e.key&&a.tag===e.tag}var isNotTextNode=function(e){return e.tag||isAsyncPlaceholder(e)},isVShowDirective=function(e){return e.name==="show"},Transition={name:"transition",props:transitionProps,abstract:!0,render:function(a){var n=this,i=this.$slots.default;if(!!i&&(i=i.filter(isNotTextNode),!!i.length)){var r=this.mode,s=i[0];if(hasParentTransition(this.$vnode))return s;var l=getRealChild(s);if(!l)return s;if(this._leaving)return placeholder(a,s);var c="__transition-"+this._uid+"-";l.key=l.key==null?l.isComment?c+"comment":c+l.tag:isPrimitive(l.key)?String(l.key).indexOf(c)===0?l.key:c+l.key:l.key;var o=(l.data||(l.data={})).transition=extractTransitionData(this),u=this._vnode,d=getRealChild(u);if(l.data.directives&&l.data.directives.some(isVShowDirective)&&(l.data.show=!0),d&&d.data&&!isSameChild(l,d)&&!isAsyncPlaceholder(d)&&!(d.componentInstance&&d.componentInstance._vnode.isComment)){var f=d.data.transition=extend$2({},o);if(r==="out-in")return this._leaving=!0,mergeVNodeHook(f,"afterLeave",function(){n._leaving=!1,n.$forceUpdate()}),placeholder(a,s);if(r==="in-out"){if(isAsyncPlaceholder(l))return u;var h,m=function(){h()};mergeVNodeHook(o,"afterEnter",m),mergeVNodeHook(o,"enterCancelled",m),mergeVNodeHook(f,"delayLeave",function(v){h=v})}}return s}}},props=extend$2({tag:String,moveClass:String},transitionProps);delete props.mode;var TransitionGroup={props,beforeMount:function(){var a=this,n=this._update;this._update=function(i,r){var s=setActiveInstance(a);a.__patch__(a._vnode,a.kept,!1,!0),a._vnode=a.kept,s(),n.call(a,i,r)}},render:function(a){for(var n=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),r=this.prevChildren=this.children,s=this.$slots.default||[],l=this.children=[],c=extractTransitionData(this),o=0;os&&(r.push(o=e.slice(s,c)),i.push(JSON.stringify(o)));var u=parseFilters(l[1].trim());i.push("_s("+u+")"),r.push({"@binding":u}),s=c+l[0].length}return s\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ncname="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+unicodeRegExp.source+"]*",qnameCapture="((?:"+ncname+"\\:)?"+ncname+")",startTagOpen=new RegExp("^<"+qnameCapture),startTagClose=/^\s*(\/?)>/,endTag=new RegExp("^<\\/"+qnameCapture+"[^>]*>"),doctype=/^]+>/i,comment=/^",""":'"',"&":"&"," ":` + */var emptyObject=Object.freeze({});function isUndef(e){return e==null}function isDef(e){return e!=null}function isTrue(e){return e===!0}function isFalse(e){return e===!1}function isPrimitive(e){return typeof e=="string"||typeof e=="number"||typeof e=="symbol"||typeof e=="boolean"}function isObject$4(e){return e!==null&&typeof e=="object"}var _toString=Object.prototype.toString;function toRawType(e){return _toString.call(e).slice(8,-1)}function isPlainObject$2(e){return _toString.call(e)==="[object Object]"}function isRegExp(e){return _toString.call(e)==="[object RegExp]"}function isValidArrayIndex(e){var a=parseFloat(String(e));return a>=0&&Math.floor(a)===a&&isFinite(e)}function isPromise$1(e){return isDef(e)&&typeof e.then=="function"&&typeof e.catch=="function"}function toString$3(e){return e==null?"":Array.isArray(e)||isPlainObject$2(e)&&e.toString===_toString?JSON.stringify(e,null,2):String(e)}function toNumber$1(e){var a=parseFloat(e);return isNaN(a)?e:a}function makeMap(e,a){for(var n=Object.create(null),i=e.split(","),r=0;r-1)return e.splice(n,1)}}var hasOwnProperty$b=Object.prototype.hasOwnProperty;function hasOwn$2(e,a){return hasOwnProperty$b.call(e,a)}function cached$2(e){var a=Object.create(null);return function(i){var r=a[i];return r||(a[i]=e(i))}}var camelizeRE=/-(\w)/g,camelize=cached$2(function(e){return e.replace(camelizeRE,function(a,n){return n?n.toUpperCase():""})}),capitalize=cached$2(function(e){return e.charAt(0).toUpperCase()+e.slice(1)}),hyphenateRE=/\B([A-Z])/g,hyphenate=cached$2(function(e){return e.replace(hyphenateRE,"-$1").toLowerCase()});function polyfillBind(e,a){function n(i){var r=arguments.length;return r?r>1?e.apply(a,arguments):e.call(a,i):e.call(a)}return n._length=e.length,n}function nativeBind(e,a){return e.bind(a)}var bind$1=Function.prototype.bind?nativeBind:polyfillBind;function toArray(e,a){a=a||0;for(var n=e.length-a,i=new Array(n);n--;)i[n]=e[n+a];return i}function extend$2(e,a){for(var n in a)e[n]=a[n];return e}function toObject(e){for(var a={},n=0;n0,isEdge=UA&&UA.indexOf("edge/")>0;UA&&UA.indexOf("android")>0;var isIOS=UA&&/iphone|ipad|ipod|ios/.test(UA)||weexPlatform==="ios";UA&&/chrome\/\d+/.test(UA),UA&&/phantomjs/.test(UA);var isFF=UA&&UA.match(/firefox\/(\d+)/),nativeWatch={}.watch,supportsPassive=!1;if(inBrowser$1)try{var opts={};Object.defineProperty(opts,"passive",{get:function(){supportsPassive=!0}}),window.addEventListener("test-passive",null,opts)}catch(e){}var _isServer,isServerRendering=function(){return _isServer===void 0&&(!inBrowser$1&&!inWeex&&typeof global!="undefined"?_isServer=global.process&&global.process.env.VUE_ENV==="server":_isServer=!1),_isServer},devtools=inBrowser$1&&window.__VUE_DEVTOOLS_GLOBAL_HOOK__;function isNative$1(e){return typeof e=="function"&&/native code/.test(e.toString())}var hasSymbol$2=typeof Symbol!="undefined"&&isNative$1(Symbol)&&typeof Reflect!="undefined"&&isNative$1(Reflect.ownKeys),_Set;typeof Set!="undefined"&&isNative$1(Set)?_Set=Set:_Set=function(){function e(){this.set=Object.create(null)}return e.prototype.has=function(n){return this.set[n]===!0},e.prototype.add=function(n){this.set[n]=!0},e.prototype.clear=function(){this.set=Object.create(null)},e}();var warn$2=noop$2,uid=0,Dep=function(){this.id=uid++,this.subs=[]};Dep.prototype.addSub=function(a){this.subs.push(a)},Dep.prototype.removeSub=function(a){remove$1(this.subs,a)},Dep.prototype.depend=function(){Dep.target&&Dep.target.addDep(this)},Dep.prototype.notify=function(){for(var a=this.subs.slice(),n=0,i=a.length;n-1){if(s&&!hasOwn$2(r,"default"))l=!1;else if(l===""||l===hyphenate(e)){var o=getTypeIndex(String,r.type);(o<0||c0&&(r=normalizeArrayChildren(r,(a||"")+"_"+i),isTextNode(r[0])&&isTextNode(l)&&(n[s]=createTextVNode(l.text+r[0].text),r.shift()),n.push.apply(n,r)):isPrimitive(r)?isTextNode(l)?n[s]=createTextVNode(l.text+r):r!==""&&n.push(createTextVNode(r)):isTextNode(r)&&isTextNode(l)?n[s]=createTextVNode(l.text+r.text):(isTrue(e._isVList)&&isDef(r.tag)&&isUndef(r.key)&&isDef(a)&&(r.key="__vlist"+a+"_"+i+"__"),n.push(r)));return n}function initProvide(e){var a=e.$options.provide;a&&(e._provided=typeof a=="function"?a.call(e):a)}function initInjections(e){var a=resolveInject(e.$options.inject,e);a&&(toggleObserving(!1),Object.keys(a).forEach(function(n){defineReactive$$1(e,n,a[n])}),toggleObserving(!0))}function resolveInject(e,a){if(e){for(var n=Object.create(null),i=hasSymbol$2?Reflect.ownKeys(e):Object.keys(e),r=0;r0,s=e?!!e.$stable:!r,l=e&&e.$key;if(!e)i={};else{if(e._normalized)return e._normalized;if(s&&n&&n!==emptyObject&&l===n.$key&&!r&&!n.$hasNormal)return n;i={};for(var c in e)e[c]&&c[0]!=="$"&&(i[c]=normalizeScopedSlot(a,c,e[c]))}for(var o in a)o in i||(i[o]=proxyNormalSlot(a,o));return e&&Object.isExtensible(e)&&(e._normalized=i),def$1(i,"$stable",s),def$1(i,"$key",l),def$1(i,"$hasNormal",r),i}function normalizeScopedSlot(e,a,n){var i=function(){var r=arguments.length?n.apply(null,arguments):n({});return r=r&&typeof r=="object"&&!Array.isArray(r)?[r]:normalizeChildren(r),r&&(r.length===0||r.length===1&&r[0].isComment)?void 0:r};return n.proxy&&Object.defineProperty(e,a,{get:i,enumerable:!0,configurable:!0}),i}function proxyNormalSlot(e,a){return function(){return e[a]}}function renderList(e,a){var n,i,r,s,l;if(Array.isArray(e)||typeof e=="string")for(n=new Array(e.length),i=0,r=e.length;i1?toArray(r):r;for(var s=toArray(arguments,1),l='event handler for "'+n+'"',c=0,o=r.length;cdocument.createEvent("Event").timeStamp&&(getNow=function(){return performance.now()})}function flushSchedulerQueue(){currentFlushTimestamp=getNow(),flushing=!0;var e,a;for(queue.sort(function(r,s){return r.id-s.id}),index$1=0;index$1index$1&&queue[n].id>e.id;)n--;queue.splice(n+1,0,e)}waiting||(waiting=!0,nextTick(flushSchedulerQueue))}}var uid$2=0,Watcher=function(a,n,i,r,s){this.vm=a,s&&(a._watcher=this),a._watchers.push(this),r?(this.deep=!!r.deep,this.user=!!r.user,this.lazy=!!r.lazy,this.sync=!!r.sync,this.before=r.before):this.deep=this.user=this.lazy=this.sync=!1,this.cb=i,this.id=++uid$2,this.active=!0,this.dirty=this.lazy,this.deps=[],this.newDeps=[],this.depIds=new _Set,this.newDepIds=new _Set,this.expression="",typeof n=="function"?this.getter=n:(this.getter=parsePath$1(n),this.getter||(this.getter=noop$2)),this.value=this.lazy?void 0:this.get()};Watcher.prototype.get=function(){pushTarget(this);var a,n=this.vm;try{a=this.getter.call(n,n)}catch(i){if(this.user)handleError(i,n,'getter for watcher "'+this.expression+'"');else throw i}finally{this.deep&&traverse(a),popTarget(),this.cleanupDeps()}return a},Watcher.prototype.addDep=function(a){var n=a.id;this.newDepIds.has(n)||(this.newDepIds.add(n),this.newDeps.push(a),this.depIds.has(n)||a.addSub(this))},Watcher.prototype.cleanupDeps=function(){for(var a=this.deps.length;a--;){var n=this.deps[a];this.newDepIds.has(n.id)||n.removeSub(this)}var i=this.depIds;this.depIds=this.newDepIds,this.newDepIds=i,this.newDepIds.clear(),i=this.deps,this.deps=this.newDeps,this.newDeps=i,this.newDeps.length=0},Watcher.prototype.update=function(){this.lazy?this.dirty=!0:this.sync?this.run():queueWatcher(this)},Watcher.prototype.run=function(){if(this.active){var a=this.get();if(a!==this.value||isObject$4(a)||this.deep){var n=this.value;if(this.value=a,this.user)try{this.cb.call(this.vm,a,n)}catch(i){handleError(i,this.vm,'callback for watcher "'+this.expression+'"')}else this.cb.call(this.vm,a,n)}}},Watcher.prototype.evaluate=function(){this.value=this.get(),this.dirty=!1},Watcher.prototype.depend=function(){for(var a=this.deps.length;a--;)this.deps[a].depend()},Watcher.prototype.teardown=function(){if(this.active){this.vm._isBeingDestroyed||remove$1(this.vm._watchers,this);for(var a=this.deps.length;a--;)this.deps[a].removeSub(this);this.active=!1}};var sharedPropertyDefinition$1={enumerable:!0,configurable:!0,get:noop$2,set:noop$2};function proxy$1(e,a,n){sharedPropertyDefinition$1.get=function(){return this[a][n]},sharedPropertyDefinition$1.set=function(r){this[a][n]=r},Object.defineProperty(e,n,sharedPropertyDefinition$1)}function initState(e){e._watchers=[];var a=e.$options;a.props&&initProps(e,a.props),a.methods&&initMethods(e,a.methods),a.data?initData(e):observe$1(e._data={},!0),a.computed&&initComputed(e,a.computed),a.watch&&a.watch!==nativeWatch&&initWatch(e,a.watch)}function initProps(e,a){var n=e.$options.propsData||{},i=e._props={},r=e.$options._propKeys=[],s=!e.$parent;s||toggleObserving(!1);var l=function(o){r.push(o);var u=validateProp(o,a,n,e);defineReactive$$1(i,o,u),o in e||proxy$1(e,"_props",o)};for(var c in a)l(c);toggleObserving(!0)}function initData(e){var a=e.$options.data;a=e._data=typeof a=="function"?getData(a,e):a||{},isPlainObject$2(a)||(a={});var n=Object.keys(a),i=e.$options.props;e.$options.methods;for(var r=n.length;r--;){var s=n[r];i&&hasOwn$2(i,s)||isReserved(s)||proxy$1(e,"_data",s)}observe$1(a,!0)}function getData(e,a){pushTarget();try{return e.call(a,a)}catch(n){return handleError(n,a,"data()"),{}}finally{popTarget()}}var computedWatcherOptions={lazy:!0};function initComputed(e,a){var n=e._computedWatchers=Object.create(null),i=isServerRendering();for(var r in a){var s=a[r],l=typeof s=="function"?s:s.get;i||(n[r]=new Watcher(e,l||noop$2,noop$2,computedWatcherOptions)),r in e||defineComputed(e,r,s)}}function defineComputed(e,a,n){var i=!isServerRendering();typeof n=="function"?(sharedPropertyDefinition$1.get=i?createComputedGetter(a):createGetterInvoker(n),sharedPropertyDefinition$1.set=noop$2):(sharedPropertyDefinition$1.get=n.get?i&&n.cache!==!1?createComputedGetter(a):createGetterInvoker(n.get):noop$2,sharedPropertyDefinition$1.set=n.set||noop$2),Object.defineProperty(e,a,sharedPropertyDefinition$1)}function createComputedGetter(e){return function(){var n=this._computedWatchers&&this._computedWatchers[e];if(n)return n.dirty&&n.evaluate(),Dep.target&&n.depend(),n.value}}function createGetterInvoker(e){return function(){return e.call(this,this)}}function initMethods(e,a){e.$options.props;for(var n in a)e[n]=typeof a[n]!="function"?noop$2:bind$1(a[n],e)}function initWatch(e,a){for(var n in a){var i=a[n];if(Array.isArray(i))for(var r=0;r-1)return this;var i=toArray(arguments,1);return i.unshift(this),typeof a.install=="function"?a.install.apply(a,i):typeof a=="function"&&a.apply(null,i),n.push(a),this}}function initMixin$1(e){e.mixin=function(a){return this.options=mergeOptions(this.options,a),this}}function initExtend(e){e.cid=0;var a=1;e.extend=function(n){n=n||{};var i=this,r=i.cid,s=n._Ctor||(n._Ctor={});if(s[r])return s[r];var l=n.name||i.options.name,c=function(u){this._init(u)};return c.prototype=Object.create(i.prototype),c.prototype.constructor=c,c.cid=a++,c.options=mergeOptions(i.options,n),c.super=i,c.options.props&&initProps$1(c),c.options.computed&&initComputed$1(c),c.extend=i.extend,c.mixin=i.mixin,c.use=i.use,ASSET_TYPES.forEach(function(o){c[o]=i[o]}),l&&(c.options.components[l]=c),c.superOptions=i.options,c.extendOptions=n,c.sealedOptions=extend$2({},c.options),s[r]=c,c}}function initProps$1(e){var a=e.options.props;for(var n in a)proxy$1(e.prototype,"_props",n)}function initComputed$1(e){var a=e.options.computed;for(var n in a)defineComputed(e.prototype,n,a[n])}function initAssetRegisters(e){ASSET_TYPES.forEach(function(a){e[a]=function(n,i){return i?(a==="component"&&isPlainObject$2(i)&&(i.name=i.name||n,i=this.options._base.extend(i)),a==="directive"&&typeof i=="function"&&(i={bind:i,update:i}),this.options[a+"s"][n]=i,i):this.options[a+"s"][n]}})}function getComponentName(e){return e&&(e.Ctor.options.name||e.tag)}function matches(e,a){return Array.isArray(e)?e.indexOf(a)>-1:typeof e=="string"?e.split(",").indexOf(a)>-1:isRegExp(e)?e.test(a):!1}function pruneCache(e,a){var n=e.cache,i=e.keys,r=e._vnode;for(var s in n){var l=n[s];if(l){var c=getComponentName(l.componentOptions);c&&!a(c)&&pruneCacheEntry(n,s,i,r)}}}function pruneCacheEntry(e,a,n,i){var r=e[a];r&&(!i||r.tag!==i.tag)&&r.componentInstance.$destroy(),e[a]=null,remove$1(n,a)}var patternTypes=[String,RegExp,Array],KeepAlive={name:"keep-alive",abstract:!0,props:{include:patternTypes,exclude:patternTypes,max:[String,Number]},created:function(){this.cache=Object.create(null),this.keys=[]},destroyed:function(){for(var a in this.cache)pruneCacheEntry(this.cache,a,this.keys)},mounted:function(){var a=this;this.$watch("include",function(n){pruneCache(a,function(i){return matches(n,i)})}),this.$watch("exclude",function(n){pruneCache(a,function(i){return!matches(n,i)})})},render:function(){var a=this.$slots.default,n=getFirstComponentChild(a),i=n&&n.componentOptions;if(i){var r=getComponentName(i),s=this,l=s.include,c=s.exclude;if(l&&(!r||!matches(l,r))||c&&r&&matches(c,r))return n;var o=this,u=o.cache,d=o.keys,f=n.key==null?i.Ctor.cid+(i.tag?"::"+i.tag:""):n.key;u[f]?(n.componentInstance=u[f].componentInstance,remove$1(d,f),d.push(f)):(u[f]=n,d.push(f),this.max&&d.length>parseInt(this.max)&&pruneCacheEntry(u,d[0],d,this._vnode)),n.data.keepAlive=!0}return n||a&&a[0]}},builtInComponents={KeepAlive};function initGlobalAPI(e){var a={};a.get=function(){return config},Object.defineProperty(e,"config",a),e.util={warn:warn$2,extend:extend$2,mergeOptions,defineReactive:defineReactive$$1},e.set=set,e.delete=del,e.nextTick=nextTick,e.observable=function(n){return observe$1(n),n},e.options=Object.create(null),ASSET_TYPES.forEach(function(n){e.options[n+"s"]=Object.create(null)}),e.options._base=e,extend$2(e.options.components,builtInComponents),initUse(e),initMixin$1(e),initExtend(e),initAssetRegisters(e)}initGlobalAPI(Vue$2),Object.defineProperty(Vue$2.prototype,"$isServer",{get:isServerRendering}),Object.defineProperty(Vue$2.prototype,"$ssrContext",{get:function(){return this.$vnode&&this.$vnode.ssrContext}}),Object.defineProperty(Vue$2,"FunctionalRenderContext",{value:FunctionalRenderContext}),Vue$2.version="2.6.12";var isReservedAttr=makeMap("style,class"),acceptValue=makeMap("input,textarea,option,select,progress"),mustUseProp=function(e,a,n){return n==="value"&&acceptValue(e)&&a!=="button"||n==="selected"&&e==="option"||n==="checked"&&e==="input"||n==="muted"&&e==="video"},isEnumeratedAttr=makeMap("contenteditable,draggable,spellcheck"),isValidContentEditableValue=makeMap("events,caret,typing,plaintext-only"),convertEnumeratedValue=function(e,a){return isFalsyAttrValue(a)||a==="false"?"false":e==="contenteditable"&&isValidContentEditableValue(a)?a:"true"},isBooleanAttr=makeMap("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"),xlinkNS="http://www.w3.org/1999/xlink",isXlink=function(e){return e.charAt(5)===":"&&e.slice(0,5)==="xlink"},getXlinkProp=function(e){return isXlink(e)?e.slice(6,e.length):""},isFalsyAttrValue=function(e){return e==null||e===!1};function genClassForVnode(e){for(var a=e.data,n=e,i=e;isDef(i.componentInstance);)i=i.componentInstance._vnode,i&&i.data&&(a=mergeClassData(i.data,a));for(;isDef(n=n.parent);)n&&n.data&&(a=mergeClassData(a,n.data));return renderClass(a.staticClass,a.class)}function mergeClassData(e,a){return{staticClass:concat(e.staticClass,a.staticClass),class:isDef(e.class)?[e.class,a.class]:a.class}}function renderClass(e,a){return isDef(e)||isDef(a)?concat(e,stringifyClass(a)):""}function concat(e,a){return e?a?e+" "+a:e:a||""}function stringifyClass(e){return Array.isArray(e)?stringifyArray(e):isObject$4(e)?stringifyObject(e):typeof e=="string"?e:""}function stringifyArray(e){for(var a="",n,i=0,r=e.length;i-1?unknownElementCache[e]=a.constructor===window.HTMLUnknownElement||a.constructor===window.HTMLElement:unknownElementCache[e]=/HTMLUnknownElement/.test(a.toString())}var isTextInputType=makeMap("text,number,password,search,email,tel,url");function query(e){if(typeof e=="string"){var a=document.querySelector(e);return a||document.createElement("div")}else return e}function createElement$1(e,a){var n=document.createElement(e);return e!=="select"||a.data&&a.data.attrs&&a.data.attrs.multiple!==void 0&&n.setAttribute("multiple","multiple"),n}function createElementNS(e,a){return document.createElementNS(namespaceMap[e],a)}function createTextNode(e){return document.createTextNode(e)}function createComment(e){return document.createComment(e)}function insertBefore(e,a,n){e.insertBefore(a,n)}function removeChild(e,a){e.removeChild(a)}function appendChild(e,a){e.appendChild(a)}function parentNode(e){return e.parentNode}function nextSibling(e){return e.nextSibling}function tagName(e){return e.tagName}function setTextContent(e,a){e.textContent=a}function setStyleScope(e,a){e.setAttribute(a,"")}var nodeOps=Object.freeze({createElement:createElement$1,createElementNS,createTextNode,createComment,insertBefore,removeChild,appendChild,parentNode,nextSibling,tagName,setTextContent,setStyleScope}),ref$1={create:function(a,n){registerRef(n)},update:function(a,n){a.data.ref!==n.data.ref&&(registerRef(a,!0),registerRef(n))},destroy:function(a){registerRef(a,!0)}};function registerRef(e,a){var n=e.data.ref;if(!!isDef(n)){var i=e.context,r=e.componentInstance||e.elm,s=i.$refs;a?Array.isArray(s[n])?remove$1(s[n],r):s[n]===r&&(s[n]=void 0):e.data.refInFor?Array.isArray(s[n])?s[n].indexOf(r)<0&&s[n].push(r):s[n]=[r]:s[n]=r}}var emptyNode=new VNode("",{},[]),hooks=["create","activate","update","remove","destroy"];function sameVnode(e,a){return e.key===a.key&&(e.tag===a.tag&&e.isComment===a.isComment&&isDef(e.data)===isDef(a.data)&&sameInputType(e,a)||isTrue(e.isAsyncPlaceholder)&&e.asyncFactory===a.asyncFactory&&isUndef(a.asyncFactory.error))}function sameInputType(e,a){if(e.tag!=="input")return!0;var n,i=isDef(n=e.data)&&isDef(n=n.attrs)&&n.type,r=isDef(n=a.data)&&isDef(n=n.attrs)&&n.type;return i===r||isTextInputType(i)&&isTextInputType(r)}function createKeyToOldIdx(e,a,n){var i,r,s={};for(i=a;i<=n;++i)r=e[i].key,isDef(r)&&(s[r]=i);return s}function createPatchFunction(e){var a,n,i={},r=e.modules,s=e.nodeOps;for(a=0;aP?(H=isUndef(k[j+1])?null:k[j+1].elm,A(g,H,k,$,j,x)):$>j&&M(b,N,P)}function S(g,b,k,x){for(var T=k;T-1?baseSetAttr(e,a,n):isBooleanAttr(a)?isFalsyAttrValue(n)?e.removeAttribute(a):(n=a==="allowfullscreen"&&e.tagName==="EMBED"?"true":a,e.setAttribute(a,n)):isEnumeratedAttr(a)?e.setAttribute(a,convertEnumeratedValue(a,n)):isXlink(a)?isFalsyAttrValue(n)?e.removeAttributeNS(xlinkNS,getXlinkProp(a)):e.setAttributeNS(xlinkNS,a,n):baseSetAttr(e,a,n)}function baseSetAttr(e,a,n){if(isFalsyAttrValue(n))e.removeAttribute(a);else{if(isIE&&!isIE9&&e.tagName==="TEXTAREA"&&a==="placeholder"&&n!==""&&!e.__ieph){var i=function(r){r.stopImmediatePropagation(),e.removeEventListener("input",i)};e.addEventListener("input",i),e.__ieph=!0}e.setAttribute(a,n)}}var attrs={create:updateAttrs,update:updateAttrs};function updateClass(e,a){var n=a.elm,i=a.data,r=e.data;if(!(isUndef(i.staticClass)&&isUndef(i.class)&&(isUndef(r)||isUndef(r.staticClass)&&isUndef(r.class)))){var s=genClassForVnode(a),l=n._transitionClasses;isDef(l)&&(s=concat(s,stringifyClass(l))),s!==n._prevClass&&(n.setAttribute("class",s),n._prevClass=s)}}var klass={create:updateClass,update:updateClass},validDivisionCharRE=/[\w).+\-_$\]]/;function parseFilters(e){var a=!1,n=!1,i=!1,r=!1,s=0,l=0,c=0,o=0,u,d,f,h,m;for(f=0;f=0&&(y=e.charAt(v),y===" ");v--);(!y||!validDivisionCharRE.test(y))&&(r=!0)}}h===void 0?h=e.slice(0,f).trim():o!==0&&_();function _(){(m||(m=[])).push(e.slice(o,f).trim()),o=f+1}if(m)for(f=0;f-1?{exp:e.slice(0,index$1$1),key:'"'+e.slice(index$1$1+1)+'"'}:{exp:e,key:null};for(str=e,index$1$1=expressionPos=expressionEndPos=0;!eof();)chr=next(),isStringStart(chr)?parseString(chr):chr===91&&parseBracket(chr);return{exp:e.slice(0,expressionPos),key:e.slice(expressionPos+1,expressionEndPos)}}function next(){return str.charCodeAt(++index$1$1)}function eof(){return index$1$1>=len}function isStringStart(e){return e===34||e===39}function parseBracket(e){var a=1;for(expressionPos=index$1$1;!eof();){if(e=next(),isStringStart(e)){parseString(e);continue}if(e===91&&a++,e===93&&a--,a===0){expressionEndPos=index$1$1;break}}}function parseString(e){for(var a=e;!eof()&&(e=next(),e!==a););}var RANGE_TOKEN="__r",CHECKBOX_RADIO_TOKEN="__c";function model(e,a,n){var i=a.value,r=a.modifiers,s=e.tag,l=e.attrsMap.type;if(e.component)return genComponentModel(e,i,r),!1;if(s==="select")genSelect(e,i,r);else if(s==="input"&&l==="checkbox")genCheckboxModel(e,i,r);else if(s==="input"&&l==="radio")genRadioModel(e,i,r);else if(s==="input"||s==="textarea")genDefaultModel(e,i,r);else if(!config.isReservedTag(s))return genComponentModel(e,i,r),!1;return!0}function genCheckboxModel(e,a,n){var i=n&&n.number,r=getBindingAttr(e,"value")||"null",s=getBindingAttr(e,"true-value")||"true",l=getBindingAttr(e,"false-value")||"false";addProp(e,"checked","Array.isArray("+a+")?_i("+a+","+r+")>-1"+(s==="true"?":("+a+")":":_q("+a+","+s+")")),addHandler(e,"change","var $$a="+a+",$$el=$event.target,$$c=$$el.checked?("+s+"):("+l+");if(Array.isArray($$a)){var $$v="+(i?"_n("+r+")":r)+",$$i=_i($$a,$$v);if($$el.checked){$$i<0&&("+genAssignmentCode(a,"$$a.concat([$$v])")+")}else{$$i>-1&&("+genAssignmentCode(a,"$$a.slice(0,$$i).concat($$a.slice($$i+1))")+")}}else{"+genAssignmentCode(a,"$$c")+"}",null,!0)}function genRadioModel(e,a,n){var i=n&&n.number,r=getBindingAttr(e,"value")||"null";r=i?"_n("+r+")":r,addProp(e,"checked","_q("+a+","+r+")"),addHandler(e,"change",genAssignmentCode(a,r),null,!0)}function genSelect(e,a,n){var i=n&&n.number,r='Array.prototype.filter.call($event.target.options,function(o){return o.selected}).map(function(o){var val = "_value" in o ? o._value : o.value;return '+(i?"_n(val)":"val")+"})",s="$event.target.multiple ? $$selectedVal : $$selectedVal[0]",l="var $$selectedVal = "+r+";";l=l+" "+genAssignmentCode(a,s),addHandler(e,"change",l,null,!0)}function genDefaultModel(e,a,n){var i=e.attrsMap.type,r=n||{},s=r.lazy,l=r.number,c=r.trim,o=!s&&i!=="range",u=s?"change":i==="range"?RANGE_TOKEN:"input",d="$event.target.value";c&&(d="$event.target.value.trim()"),l&&(d="_n("+d+")");var f=genAssignmentCode(a,d);o&&(f="if($event.target.composing)return;"+f),addProp(e,"value","("+a+")"),addHandler(e,u,f,null,!0),(c||l)&&addHandler(e,"blur","$forceUpdate()")}function normalizeEvents(e){if(isDef(e[RANGE_TOKEN])){var a=isIE?"change":"input";e[a]=[].concat(e[RANGE_TOKEN],e[a]||[]),delete e[RANGE_TOKEN]}isDef(e[CHECKBOX_RADIO_TOKEN])&&(e.change=[].concat(e[CHECKBOX_RADIO_TOKEN],e.change||[]),delete e[CHECKBOX_RADIO_TOKEN])}var target$1$1;function createOnceHandler$1(e,a,n){var i=target$1$1;return function r(){var s=a.apply(null,arguments);s!==null&&remove$2(e,r,n,i)}}var useMicrotaskFix=isUsingMicroTask&&!(isFF&&Number(isFF[1])<=53);function add$1(e,a,n,i){if(useMicrotaskFix){var r=currentFlushTimestamp,s=a;a=s._wrapper=function(l){if(l.target===l.currentTarget||l.timeStamp>=r||l.timeStamp<=0||l.target.ownerDocument!==document)return s.apply(this,arguments)}}target$1$1.addEventListener(e,a,supportsPassive?{capture:n,passive:i}:n)}function remove$2(e,a,n,i){(i||target$1$1).removeEventListener(e,a._wrapper||a,n)}function updateDOMListeners(e,a){if(!(isUndef(e.data.on)&&isUndef(a.data.on))){var n=a.data.on||{},i=e.data.on||{};target$1$1=a.elm,normalizeEvents(n),updateListeners(n,i,add$1,remove$2,createOnceHandler$1,a.context),target$1$1=void 0}}var events={create:updateDOMListeners,update:updateDOMListeners},svgContainer;function updateDOMProps(e,a){if(!(isUndef(e.data.domProps)&&isUndef(a.data.domProps))){var n,i,r=a.elm,s=e.data.domProps||{},l=a.data.domProps||{};isDef(l.__ob__)&&(l=a.data.domProps=extend$2({},l));for(n in s)n in l||(r[n]="");for(n in l){if(i=l[n],n==="textContent"||n==="innerHTML"){if(a.children&&(a.children.length=0),i===s[n])continue;r.childNodes.length===1&&r.removeChild(r.childNodes[0])}if(n==="value"&&r.tagName!=="PROGRESS"){r._value=i;var c=isUndef(i)?"":String(i);shouldUpdateValue(r,c)&&(r.value=c)}else if(n==="innerHTML"&&isSVG(r.tagName)&&isUndef(r.innerHTML)){svgContainer=svgContainer||document.createElement("div"),svgContainer.innerHTML=""+i+"";for(var o=svgContainer.firstChild;r.firstChild;)r.removeChild(r.firstChild);for(;o.firstChild;)r.appendChild(o.firstChild)}else if(i!==s[n])try{r[n]=i}catch(u){}}}}function shouldUpdateValue(e,a){return!e.composing&&(e.tagName==="OPTION"||isNotInFocusAndDirty(e,a)||isDirtyWithModifiers(e,a))}function isNotInFocusAndDirty(e,a){var n=!0;try{n=document.activeElement!==e}catch(i){}return n&&e.value!==a}function isDirtyWithModifiers(e,a){var n=e.value,i=e._vModifiers;if(isDef(i)){if(i.number)return toNumber$1(n)!==toNumber$1(a);if(i.trim)return n.trim()!==a.trim()}return n!==a}var domProps={create:updateDOMProps,update:updateDOMProps},parseStyleText=cached$2(function(e){var a={},n=/;(?![^(]*\))/g,i=/:(.+)/;return e.split(n).forEach(function(r){if(r){var s=r.split(i);s.length>1&&(a[s[0].trim()]=s[1].trim())}}),a});function normalizeStyleData(e){var a=normalizeStyleBinding(e.style);return e.staticStyle?extend$2(e.staticStyle,a):a}function normalizeStyleBinding(e){return Array.isArray(e)?toObject(e):typeof e=="string"?parseStyleText(e):e}function getStyle(e,a){var n={},i;if(a)for(var r=e;r.componentInstance;)r=r.componentInstance._vnode,r&&r.data&&(i=normalizeStyleData(r.data))&&extend$2(n,i);(i=normalizeStyleData(e.data))&&extend$2(n,i);for(var s=e;s=s.parent;)s.data&&(i=normalizeStyleData(s.data))&&extend$2(n,i);return n}var cssVarRE=/^--/,importantRE=/\s*!important$/,setProp=function(e,a,n){if(cssVarRE.test(a))e.style.setProperty(a,n);else if(importantRE.test(n))e.style.setProperty(hyphenate(a),n.replace(importantRE,""),"important");else{var i=normalize(a);if(Array.isArray(n))for(var r=0,s=n.length;r-1?a.split(whitespaceRE).forEach(function(i){return e.classList.add(i)}):e.classList.add(a);else{var n=" "+(e.getAttribute("class")||"")+" ";n.indexOf(" "+a+" ")<0&&e.setAttribute("class",(n+a).trim())}}function removeClass(e,a){if(!(!a||!(a=a.trim())))if(e.classList)a.indexOf(" ")>-1?a.split(whitespaceRE).forEach(function(r){return e.classList.remove(r)}):e.classList.remove(a),e.classList.length||e.removeAttribute("class");else{for(var n=" "+(e.getAttribute("class")||"")+" ",i=" "+a+" ";n.indexOf(i)>=0;)n=n.replace(i," ");n=n.trim(),n?e.setAttribute("class",n):e.removeAttribute("class")}}function resolveTransition(e){if(!!e){if(typeof e=="object"){var a={};return e.css!==!1&&extend$2(a,autoCssTransition(e.name||"v")),extend$2(a,e),a}else if(typeof e=="string")return autoCssTransition(e)}}var autoCssTransition=cached$2(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"}}),hasTransition=inBrowser$1&&!isIE9,TRANSITION="transition",ANIMATION="animation",transitionProp="transition",transitionEndEvent="transitionend",animationProp="animation",animationEndEvent="animationend";hasTransition&&(window.ontransitionend===void 0&&window.onwebkittransitionend!==void 0&&(transitionProp="WebkitTransition",transitionEndEvent="webkitTransitionEnd"),window.onanimationend===void 0&&window.onwebkitanimationend!==void 0&&(animationProp="WebkitAnimation",animationEndEvent="webkitAnimationEnd"));var raf=inBrowser$1?window.requestAnimationFrame?window.requestAnimationFrame.bind(window):setTimeout:function(e){return e()};function nextFrame(e){raf(function(){raf(e)})}function addTransitionClass(e,a){var n=e._transitionClasses||(e._transitionClasses=[]);n.indexOf(a)<0&&(n.push(a),addClass(e,a))}function removeTransitionClass(e,a){e._transitionClasses&&remove$1(e._transitionClasses,a),removeClass(e,a)}function whenTransitionEnds(e,a,n){var i=getTransitionInfo(e,a),r=i.type,s=i.timeout,l=i.propCount;if(!r)return n();var c=r===TRANSITION?transitionEndEvent:animationEndEvent,o=0,u=function(){e.removeEventListener(c,d),n()},d=function(f){f.target===e&&++o>=l&&u()};setTimeout(function(){o0&&(u=TRANSITION,d=s,f=r.length):a===ANIMATION?o>0&&(u=ANIMATION,d=o,f=c.length):(d=Math.max(s,o),u=d>0?s>o?TRANSITION:ANIMATION:null,f=u?u===TRANSITION?r.length:c.length:0);var h=u===TRANSITION&&transformRE.test(n[transitionProp+"Property"]);return{type:u,timeout:d,propCount:f,hasTransform:h}}function getTimeout(e,a){for(;e.length1}function _enter(e,a){a.data.show!==!0&&enter(a)}var transition=inBrowser$1?{create:_enter,activate:_enter,remove:function(a,n){a.data.show!==!0?leave(a,n):n()}}:{},platformModules=[attrs,klass,events,domProps,style,transition],modules=platformModules.concat(baseModules),patch=createPatchFunction({nodeOps,modules});isIE9&&document.addEventListener("selectionchange",function(){var e=document.activeElement;e&&e.vmodel&&trigger(e,"input")});var directive={inserted:function(a,n,i,r){i.tag==="select"?(r.elm&&!r.elm._vOptions?mergeVNodeHook(i,"postpatch",function(){directive.componentUpdated(a,n,i)}):setSelected(a,n,i.context),a._vOptions=[].map.call(a.options,getValue$1)):(i.tag==="textarea"||isTextInputType(a.type))&&(a._vModifiers=n.modifiers,n.modifiers.lazy||(a.addEventListener("compositionstart",onCompositionStart),a.addEventListener("compositionend",onCompositionEnd),a.addEventListener("change",onCompositionEnd),isIE9&&(a.vmodel=!0)))},componentUpdated:function(a,n,i){if(i.tag==="select"){setSelected(a,n,i.context);var r=a._vOptions,s=a._vOptions=[].map.call(a.options,getValue$1);if(s.some(function(c,o){return!looseEqual$1(c,r[o])})){var l=a.multiple?n.value.some(function(c){return hasNoMatchingOption(c,s)}):n.value!==n.oldValue&&hasNoMatchingOption(n.value,s);l&&trigger(a,"change")}}}};function setSelected(e,a,n){actuallySetSelected(e,a),(isIE||isEdge)&&setTimeout(function(){actuallySetSelected(e,a)},0)}function actuallySetSelected(e,a,n){var i=a.value,r=e.multiple;if(!(r&&!Array.isArray(i))){for(var s,l,c=0,o=e.options.length;c-1,l.selected!==s&&(l.selected=s);else if(looseEqual$1(getValue$1(l),i)){e.selectedIndex!==c&&(e.selectedIndex=c);return}r||(e.selectedIndex=-1)}}function hasNoMatchingOption(e,a){return a.every(function(n){return!looseEqual$1(n,e)})}function getValue$1(e){return"_value"in e?e._value:e.value}function onCompositionStart(e){e.target.composing=!0}function onCompositionEnd(e){!e.target.composing||(e.target.composing=!1,trigger(e.target,"input"))}function trigger(e,a){var n=document.createEvent("HTMLEvents");n.initEvent(a,!0,!0),e.dispatchEvent(n)}function locateNode(e){return e.componentInstance&&(!e.data||!e.data.transition)?locateNode(e.componentInstance._vnode):e}var show={bind:function(a,n,i){var r=n.value;i=locateNode(i);var s=i.data&&i.data.transition,l=a.__vOriginalDisplay=a.style.display==="none"?"":a.style.display;r&&s?(i.data.show=!0,enter(i,function(){a.style.display=l})):a.style.display=r?l:"none"},update:function(a,n,i){var r=n.value,s=n.oldValue;if(!r!=!s){i=locateNode(i);var l=i.data&&i.data.transition;l?(i.data.show=!0,r?enter(i,function(){a.style.display=a.__vOriginalDisplay}):leave(i,function(){a.style.display="none"})):a.style.display=r?a.__vOriginalDisplay:"none"}},unbind:function(a,n,i,r,s){s||(a.style.display=a.__vOriginalDisplay)}},platformDirectives={model:directive,show},transitionProps={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 getRealChild(e){var a=e&&e.componentOptions;return a&&a.Ctor.options.abstract?getRealChild(getFirstComponentChild(a.children)):e}function extractTransitionData(e){var a={},n=e.$options;for(var i in n.propsData)a[i]=e[i];var r=n._parentListeners;for(var s in r)a[camelize(s)]=r[s];return a}function placeholder(e,a){if(/\d-keep-alive$/.test(a.tag))return e("keep-alive",{props:a.componentOptions.propsData})}function hasParentTransition(e){for(;e=e.parent;)if(e.data.transition)return!0}function isSameChild(e,a){return a.key===e.key&&a.tag===e.tag}var isNotTextNode=function(e){return e.tag||isAsyncPlaceholder(e)},isVShowDirective=function(e){return e.name==="show"},Transition={name:"transition",props:transitionProps,abstract:!0,render:function(a){var n=this,i=this.$slots.default;if(!!i&&(i=i.filter(isNotTextNode),!!i.length)){var r=this.mode,s=i[0];if(hasParentTransition(this.$vnode))return s;var l=getRealChild(s);if(!l)return s;if(this._leaving)return placeholder(a,s);var c="__transition-"+this._uid+"-";l.key=l.key==null?l.isComment?c+"comment":c+l.tag:isPrimitive(l.key)?String(l.key).indexOf(c)===0?l.key:c+l.key:l.key;var o=(l.data||(l.data={})).transition=extractTransitionData(this),u=this._vnode,d=getRealChild(u);if(l.data.directives&&l.data.directives.some(isVShowDirective)&&(l.data.show=!0),d&&d.data&&!isSameChild(l,d)&&!isAsyncPlaceholder(d)&&!(d.componentInstance&&d.componentInstance._vnode.isComment)){var f=d.data.transition=extend$2({},o);if(r==="out-in")return this._leaving=!0,mergeVNodeHook(f,"afterLeave",function(){n._leaving=!1,n.$forceUpdate()}),placeholder(a,s);if(r==="in-out"){if(isAsyncPlaceholder(l))return u;var h,m=function(){h()};mergeVNodeHook(o,"afterEnter",m),mergeVNodeHook(o,"enterCancelled",m),mergeVNodeHook(f,"delayLeave",function(v){h=v})}}return s}}},props=extend$2({tag:String,moveClass:String},transitionProps);delete props.mode;var TransitionGroup={props,beforeMount:function(){var a=this,n=this._update;this._update=function(i,r){var s=setActiveInstance(a);a.__patch__(a._vnode,a.kept,!1,!0),a._vnode=a.kept,s(),n.call(a,i,r)}},render:function(a){for(var n=this.tag||this.$vnode.data.tag||"span",i=Object.create(null),r=this.prevChildren=this.children,s=this.$slots.default||[],l=this.children=[],c=extractTransitionData(this),o=0;os&&(r.push(o=e.slice(s,c)),i.push(JSON.stringify(o)));var u=parseFilters(l[1].trim());i.push("_s("+u+")"),r.push({"@binding":u}),s=c+l[0].length}return s\/=]+)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,dynamicArgAttribute=/^\s*((?:v-[\w-]+:|@|:|#)\[[^=]+\][^\s"'<>\/=]*)(?:\s*(=)\s*(?:"([^"]*)"+|'([^']*)'+|([^\s"'=<>`]+)))?/,ncname="[a-zA-Z_][\\-\\.0-9_a-zA-Z"+unicodeRegExp.source+"]*",qnameCapture="((?:"+ncname+"\\:)?"+ncname+")",startTagOpen=new RegExp("^<"+qnameCapture),startTagClose=/^\s*(\/?)>/,endTag=new RegExp("^<\\/"+qnameCapture+"[^>]*>"),doctype=/^]+>/i,comment=/^",""":'"',"&":"&"," ":` `," ":" ","'":"'"},encodedAttr=/&(?:lt|gt|quot|amp|#39);/g,encodedAttrWithNewLines=/&(?:lt|gt|quot|amp|#39|#10|#9);/g,isIgnoreNewlineTag=makeMap("pre,textarea",!0),shouldIgnoreFirstNewline=function(e,a){return e&&isIgnoreNewlineTag(e)&&a[0]===` -`};function decodeAttr(e,a){var n=a?encodedAttrWithNewLines:encodedAttr;return e.replace(n,function(i){return decodingMap[i]})}function parseHTML(e,a){for(var n=[],i=a.expectHTML,r=a.isUnaryTag||no,s=a.canBeLeftOpenTag||no,l=0,c,o;e;){if(c=e,!o||!isPlainTextElement(o)){var u=e.indexOf("<");if(u===0){if(comment.test(e)){var d=e.indexOf("-->");if(d>=0){a.shouldKeepComment&&a.comment(e.substring(4,d),l,l+d+3),S(d+3);continue}}if(conditionalComment.test(e)){var f=e.indexOf("]>");if(f>=0){S(f+2);continue}}var h=e.match(doctype);if(h){S(h[0].length);continue}var m=e.match(endTag);if(m){var v=l;S(m[0].length),E(m[1],v,l);continue}var y=D();if(y){U(y),shouldIgnoreFirstNewline(y.tagName,e)&&S(1);continue}}var _=void 0,w=void 0,A=void 0;if(u>=0){for(w=e.slice(u);!endTag.test(w)&&!startTagOpen.test(w)&&!comment.test(w)&&!conditionalComment.test(w)&&(A=w.indexOf("<",1),!(A<0));)u+=A,w=e.slice(u);_=e.substring(0,u)}u<0&&(_=e),_&&S(_.length),a.chars&&_&&a.chars(_,l-_.length,l)}else{var C=0,M=o.toLowerCase(),F=reCache[M]||(reCache[M]=new RegExp("([\\s\\S]*?)(]*>)","i")),z=e.replace(F,function(I,g,b){return C=b.length,!isPlainTextElement(M)&&M!=="noscript"&&(g=g.replace(//g,"$1").replace(//g,"$1")),shouldIgnoreFirstNewline(M,g)&&(g=g.slice(1)),a.chars&&a.chars(g),""});l+=e.length-z.length,e=z,E(M,l-C,l)}if(e===c){a.chars&&a.chars(e);break}}E();function S(I){l+=I,e=e.substring(I)}function D(){var I=e.match(startTagOpen);if(I){var g={tagName:I[1],attrs:[],start:l};S(I[0].length);for(var b,k;!(b=e.match(startTagClose))&&(k=e.match(dynamicArgAttribute)||e.match(attribute));)k.start=l,S(k[0].length),k.end=l,g.attrs.push(k);if(b)return g.unarySlash=b[1],S(b[0].length),g.end=l,g}}function U(I){var g=I.tagName,b=I.unarySlash;i&&(o==="p"&&isNonPhrasingTag(g)&&E(o),s(g)&&o===g&&E(g));for(var k=r(g)||!!b,x=I.attrs.length,T=new Array(x),N=0;N=0&&n[k].lowerCasedTag!==x;k--);else k=0;if(k>=0){for(var T=n.length-1;T>=k;T--)a.end&&a.end(n[T].tag,g,b);n.length=k,o=k&&n[k-1].tag}else x==="br"?a.start&&a.start(I,[],!0,g,b):x==="p"&&(a.start&&a.start(I,[],!1,g,b),a.end&&a.end(I,g,b))}}var onRE=/^@|^v-on:/,dirRE=/^v-|^@|^:|^#/,forAliasRE=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,forIteratorRE=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,stripParensRE=/^\(|\)$/g,dynamicArgRE=/^\[.*\]$/,argRE=/:(.*)$/,bindRE=/^:|^\.|^v-bind:/,modifierRE=/\.[^.\]]+(?=[^\]]*$)/g,slotRE=/^v-slot(:|$)|^#/,lineBreakRE=/[\r\n]/,whitespaceRE$1=/\s+/g,decodeHTMLCached=cached$2(he.decode),emptySlotScopeToken="_empty_",warn$2$1,delimiters,transforms,preTransforms,postTransforms,platformIsPreTag,platformMustUseProp,platformGetTagNamespace;function createASTElement(e,a,n){return{type:1,tag:e,attrsList:a,attrsMap:makeAttrsMap(a),rawAttrsMap:{},parent:n,children:[]}}function parse$2(e,a){warn$2$1=a.warn||baseWarn,platformIsPreTag=a.isPreTag||no,platformMustUseProp=a.mustUseProp||no,platformGetTagNamespace=a.getTagNamespace||no,a.isReservedTag,transforms=pluckModuleFunction(a.modules,"transformNode"),preTransforms=pluckModuleFunction(a.modules,"preTransformNode"),postTransforms=pluckModuleFunction(a.modules,"postTransformNode"),delimiters=a.delimiters;var n=[],i=a.preserveWhitespace!==!1,r=a.whitespace,s,l,c=!1,o=!1;function u(f){if(d(f),!c&&!f.processed&&(f=processElement(f,a)),!n.length&&f!==s&&s.if&&(f.elseif||f.else)&&addIfCondition(s,{exp:f.elseif,block:f}),l&&!f.forbidden)if(f.elseif||f.else)processIfConditions(f,l);else{if(f.slotScope){var h=f.slotTarget||'"default"';(l.scopedSlots||(l.scopedSlots={}))[h]=f}l.children.push(f),f.parent=l}f.children=f.children.filter(function(v){return!v.slotScope}),d(f),f.pre&&(c=!1),platformIsPreTag(f.tag)&&(o=!1);for(var m=0;m|^function(?:\s+[\w$]+)?\s*\(/,fnInvokeRE=/\([^)]*?\);*$/,simplePathRE=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,keyCodes={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyNames={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"]},genGuard=function(e){return"if("+e+")return null;"},modifierCode={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:genGuard("$event.target !== $event.currentTarget"),ctrl:genGuard("!$event.ctrlKey"),shift:genGuard("!$event.shiftKey"),alt:genGuard("!$event.altKey"),meta:genGuard("!$event.metaKey"),left:genGuard("'button' in $event && $event.button !== 0"),middle:genGuard("'button' in $event && $event.button !== 1"),right:genGuard("'button' in $event && $event.button !== 2")};function genHandlers(e,a){var n=a?"nativeOn:":"on:",i="",r="";for(var s in e){var l=genHandler(e[s]);e[s]&&e[s].dynamic?r+=s+","+l+",":i+='"'+s+'":'+l+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function genHandler(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(d){return genHandler(d)}).join(",")+"]";var a=simplePathRE.test(e.value),n=fnExpRE.test(e.value),i=simplePathRE.test(e.value.replace(fnInvokeRE,""));if(e.modifiers){var r="",s="",l=[];for(var c in e.modifiers)if(modifierCode[c])s+=modifierCode[c],keyCodes[c]&&l.push(c);else if(c==="exact"){var o=e.modifiers;s+=genGuard(["ctrl","shift","alt","meta"].filter(function(d){return!o[d]}).map(function(d){return"$event."+d+"Key"}).join("||"))}else l.push(c);l.length&&(r+=genKeyFilter(l)),s&&(r+=s);var u=a?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":i?"return "+e.value:e.value;return"function($event){"+r+u+"}"}else return a||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function genKeyFilter(e){return"if(!$event.type.indexOf('key')&&"+e.map(genFilterCode).join("&&")+")return null;"}function genFilterCode(e){var a=parseInt(e,10);if(a)return"$event.keyCode!=="+a;var n=keyCodes[e],i=keyNames[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}function on(e,a){e.wrapListeners=function(n){return"_g("+n+","+a.value+")"}}function bind$1$1(e,a){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+a.value+","+(a.modifiers&&a.modifiers.prop?"true":"false")+(a.modifiers&&a.modifiers.sync?",true":"")+")"}}var baseDirectives={on,bind:bind$1$1,cloak:noop$2},CodegenState=function(a){this.options=a,this.warn=a.warn||baseWarn,this.transforms=pluckModuleFunction(a.modules,"transformCode"),this.dataGenFns=pluckModuleFunction(a.modules,"genData"),this.directives=extend$2(extend$2({},baseDirectives),a.directives);var n=a.isReservedTag||no;this.maybeComponent=function(i){return!!i.component||!n(i.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function generate(e,a){var n=new CodegenState(a),i=e?genElement(e,n):'_c("div")';return{render:"with(this){return "+i+"}",staticRenderFns:n.staticRenderFns}}function genElement(e,a){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return genStatic(e,a);if(e.once&&!e.onceProcessed)return genOnce(e,a);if(e.for&&!e.forProcessed)return genFor(e,a);if(e.if&&!e.ifProcessed)return genIf(e,a);if(e.tag==="template"&&!e.slotTarget&&!a.pre)return genChildren(e,a)||"void 0";if(e.tag==="slot")return genSlot(e,a);var n;if(e.component)n=genComponent(e.component,e,a);else{var i;(!e.plain||e.pre&&a.maybeComponent(e))&&(i=genData$2(e,a));var r=e.inlineTemplate?null:genChildren(e,a,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var s=0;s>>0}function containsSlotChild(e){return e.type===1?e.tag==="slot"?!0:e.children.some(containsSlotChild):!1}function genScopedSlot(e,a){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return genIf(e,a,genScopedSlot,"null");if(e.for&&!e.forProcessed)return genFor(e,a,genScopedSlot);var i=e.slotScope===emptySlotScopeToken?"":String(e.slotScope),r="function("+i+"){return "+(e.tag==="template"?e.if&&n?"("+e.if+")?"+(genChildren(e,a)||"undefined")+":undefined":genChildren(e,a)||"undefined":genElement(e,a))+"}",s=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+s+"}"}function genChildren(e,a,n,i,r){var s=e.children;if(s.length){var l=s[0];if(s.length===1&&l.for&&l.tag!=="template"&&l.tag!=="slot"){var c=n?a.maybeComponent(l)?",1":",0":"";return""+(i||genElement)(l,a)+c}var o=n?getNormalizationType(s,a.maybeComponent):0,u=r||genNode;return"["+s.map(function(d){return u(d,a)}).join(",")+"]"+(o?","+o:"")}}function getNormalizationType(e,a){for(var n=0,i=0;i");if(d>=0){a.shouldKeepComment&&a.comment(e.substring(4,d),l,l+d+3),S(d+3);continue}}if(conditionalComment.test(e)){var f=e.indexOf("]>");if(f>=0){S(f+2);continue}}var h=e.match(doctype);if(h){S(h[0].length);continue}var m=e.match(endTag);if(m){var v=l;S(m[0].length),E(m[1],v,l);continue}var y=R();if(y){U(y),shouldIgnoreFirstNewline(y.tagName,e)&&S(1);continue}}var _=void 0,w=void 0,A=void 0;if(u>=0){for(w=e.slice(u);!endTag.test(w)&&!startTagOpen.test(w)&&!comment.test(w)&&!conditionalComment.test(w)&&(A=w.indexOf("<",1),!(A<0));)u+=A,w=e.slice(u);_=e.substring(0,u)}u<0&&(_=e),_&&S(_.length),a.chars&&_&&a.chars(_,l-_.length,l)}else{var C=0,M=o.toLowerCase(),F=reCache[M]||(reCache[M]=new RegExp("([\\s\\S]*?)(]*>)","i")),z=e.replace(F,function(I,g,b){return C=b.length,!isPlainTextElement(M)&&M!=="noscript"&&(g=g.replace(//g,"$1").replace(//g,"$1")),shouldIgnoreFirstNewline(M,g)&&(g=g.slice(1)),a.chars&&a.chars(g),""});l+=e.length-z.length,e=z,E(M,l-C,l)}if(e===c){a.chars&&a.chars(e);break}}E();function S(I){l+=I,e=e.substring(I)}function R(){var I=e.match(startTagOpen);if(I){var g={tagName:I[1],attrs:[],start:l};S(I[0].length);for(var b,k;!(b=e.match(startTagClose))&&(k=e.match(dynamicArgAttribute)||e.match(attribute));)k.start=l,S(k[0].length),k.end=l,g.attrs.push(k);if(b)return g.unarySlash=b[1],S(b[0].length),g.end=l,g}}function U(I){var g=I.tagName,b=I.unarySlash;i&&(o==="p"&&isNonPhrasingTag(g)&&E(o),s(g)&&o===g&&E(g));for(var k=r(g)||!!b,x=I.attrs.length,T=new Array(x),N=0;N=0&&n[k].lowerCasedTag!==x;k--);else k=0;if(k>=0){for(var T=n.length-1;T>=k;T--)a.end&&a.end(n[T].tag,g,b);n.length=k,o=k&&n[k-1].tag}else x==="br"?a.start&&a.start(I,[],!0,g,b):x==="p"&&(a.start&&a.start(I,[],!1,g,b),a.end&&a.end(I,g,b))}}var onRE=/^@|^v-on:/,dirRE=/^v-|^@|^:|^#/,forAliasRE=/([\s\S]*?)\s+(?:in|of)\s+([\s\S]*)/,forIteratorRE=/,([^,\}\]]*)(?:,([^,\}\]]*))?$/,stripParensRE=/^\(|\)$/g,dynamicArgRE=/^\[.*\]$/,argRE=/:(.*)$/,bindRE=/^:|^\.|^v-bind:/,modifierRE=/\.[^.\]]+(?=[^\]]*$)/g,slotRE=/^v-slot(:|$)|^#/,lineBreakRE=/[\r\n]/,whitespaceRE$1=/\s+/g,decodeHTMLCached=cached$2(he.decode),emptySlotScopeToken="_empty_",warn$2$1,delimiters,transforms,preTransforms,postTransforms,platformIsPreTag,platformMustUseProp,platformGetTagNamespace;function createASTElement(e,a,n){return{type:1,tag:e,attrsList:a,attrsMap:makeAttrsMap(a),rawAttrsMap:{},parent:n,children:[]}}function parse$2(e,a){warn$2$1=a.warn||baseWarn,platformIsPreTag=a.isPreTag||no,platformMustUseProp=a.mustUseProp||no,platformGetTagNamespace=a.getTagNamespace||no,a.isReservedTag,transforms=pluckModuleFunction(a.modules,"transformNode"),preTransforms=pluckModuleFunction(a.modules,"preTransformNode"),postTransforms=pluckModuleFunction(a.modules,"postTransformNode"),delimiters=a.delimiters;var n=[],i=a.preserveWhitespace!==!1,r=a.whitespace,s,l,c=!1,o=!1;function u(f){if(d(f),!c&&!f.processed&&(f=processElement(f,a)),!n.length&&f!==s&&s.if&&(f.elseif||f.else)&&addIfCondition(s,{exp:f.elseif,block:f}),l&&!f.forbidden)if(f.elseif||f.else)processIfConditions(f,l);else{if(f.slotScope){var h=f.slotTarget||'"default"';(l.scopedSlots||(l.scopedSlots={}))[h]=f}l.children.push(f),f.parent=l}f.children=f.children.filter(function(v){return!v.slotScope}),d(f),f.pre&&(c=!1),platformIsPreTag(f.tag)&&(o=!1);for(var m=0;m|^function(?:\s+[\w$]+)?\s*\(/,fnInvokeRE=/\([^)]*?\);*$/,simplePathRE=/^[A-Za-z_$][\w$]*(?:\.[A-Za-z_$][\w$]*|\['[^']*?']|\["[^"]*?"]|\[\d+]|\[[A-Za-z_$][\w$]*])*$/,keyCodes={esc:27,tab:9,enter:13,space:32,up:38,left:37,right:39,down:40,delete:[8,46]},keyNames={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"]},genGuard=function(e){return"if("+e+")return null;"},modifierCode={stop:"$event.stopPropagation();",prevent:"$event.preventDefault();",self:genGuard("$event.target !== $event.currentTarget"),ctrl:genGuard("!$event.ctrlKey"),shift:genGuard("!$event.shiftKey"),alt:genGuard("!$event.altKey"),meta:genGuard("!$event.metaKey"),left:genGuard("'button' in $event && $event.button !== 0"),middle:genGuard("'button' in $event && $event.button !== 1"),right:genGuard("'button' in $event && $event.button !== 2")};function genHandlers(e,a){var n=a?"nativeOn:":"on:",i="",r="";for(var s in e){var l=genHandler(e[s]);e[s]&&e[s].dynamic?r+=s+","+l+",":i+='"'+s+'":'+l+","}return i="{"+i.slice(0,-1)+"}",r?n+"_d("+i+",["+r.slice(0,-1)+"])":n+i}function genHandler(e){if(!e)return"function(){}";if(Array.isArray(e))return"["+e.map(function(d){return genHandler(d)}).join(",")+"]";var a=simplePathRE.test(e.value),n=fnExpRE.test(e.value),i=simplePathRE.test(e.value.replace(fnInvokeRE,""));if(e.modifiers){var r="",s="",l=[];for(var c in e.modifiers)if(modifierCode[c])s+=modifierCode[c],keyCodes[c]&&l.push(c);else if(c==="exact"){var o=e.modifiers;s+=genGuard(["ctrl","shift","alt","meta"].filter(function(d){return!o[d]}).map(function(d){return"$event."+d+"Key"}).join("||"))}else l.push(c);l.length&&(r+=genKeyFilter(l)),s&&(r+=s);var u=a?"return "+e.value+"($event)":n?"return ("+e.value+")($event)":i?"return "+e.value:e.value;return"function($event){"+r+u+"}"}else return a||n?e.value:"function($event){"+(i?"return "+e.value:e.value)+"}"}function genKeyFilter(e){return"if(!$event.type.indexOf('key')&&"+e.map(genFilterCode).join("&&")+")return null;"}function genFilterCode(e){var a=parseInt(e,10);if(a)return"$event.keyCode!=="+a;var n=keyCodes[e],i=keyNames[e];return"_k($event.keyCode,"+JSON.stringify(e)+","+JSON.stringify(n)+",$event.key,"+JSON.stringify(i)+")"}function on(e,a){e.wrapListeners=function(n){return"_g("+n+","+a.value+")"}}function bind$1$1(e,a){e.wrapData=function(n){return"_b("+n+",'"+e.tag+"',"+a.value+","+(a.modifiers&&a.modifiers.prop?"true":"false")+(a.modifiers&&a.modifiers.sync?",true":"")+")"}}var baseDirectives={on,bind:bind$1$1,cloak:noop$2},CodegenState=function(a){this.options=a,this.warn=a.warn||baseWarn,this.transforms=pluckModuleFunction(a.modules,"transformCode"),this.dataGenFns=pluckModuleFunction(a.modules,"genData"),this.directives=extend$2(extend$2({},baseDirectives),a.directives);var n=a.isReservedTag||no;this.maybeComponent=function(i){return!!i.component||!n(i.tag)},this.onceId=0,this.staticRenderFns=[],this.pre=!1};function generate(e,a){var n=new CodegenState(a),i=e?genElement(e,n):'_c("div")';return{render:"with(this){return "+i+"}",staticRenderFns:n.staticRenderFns}}function genElement(e,a){if(e.parent&&(e.pre=e.pre||e.parent.pre),e.staticRoot&&!e.staticProcessed)return genStatic(e,a);if(e.once&&!e.onceProcessed)return genOnce(e,a);if(e.for&&!e.forProcessed)return genFor(e,a);if(e.if&&!e.ifProcessed)return genIf(e,a);if(e.tag==="template"&&!e.slotTarget&&!a.pre)return genChildren(e,a)||"void 0";if(e.tag==="slot")return genSlot(e,a);var n;if(e.component)n=genComponent(e.component,e,a);else{var i;(!e.plain||e.pre&&a.maybeComponent(e))&&(i=genData$2(e,a));var r=e.inlineTemplate?null:genChildren(e,a,!0);n="_c('"+e.tag+"'"+(i?","+i:"")+(r?","+r:"")+")"}for(var s=0;s>>0}function containsSlotChild(e){return e.type===1?e.tag==="slot"?!0:e.children.some(containsSlotChild):!1}function genScopedSlot(e,a){var n=e.attrsMap["slot-scope"];if(e.if&&!e.ifProcessed&&!n)return genIf(e,a,genScopedSlot,"null");if(e.for&&!e.forProcessed)return genFor(e,a,genScopedSlot);var i=e.slotScope===emptySlotScopeToken?"":String(e.slotScope),r="function("+i+"){return "+(e.tag==="template"?e.if&&n?"("+e.if+")?"+(genChildren(e,a)||"undefined")+":undefined":genChildren(e,a)||"undefined":genElement(e,a))+"}",s=i?"":",proxy:true";return"{key:"+(e.slotTarget||'"default"')+",fn:"+r+s+"}"}function genChildren(e,a,n,i,r){var s=e.children;if(s.length){var l=s[0];if(s.length===1&&l.for&&l.tag!=="template"&&l.tag!=="slot"){var c=n?a.maybeComponent(l)?",1":",0":"";return""+(i||genElement)(l,a)+c}var o=n?getNormalizationType(s,a.maybeComponent):0,u=r||genNode;return"["+s.map(function(d){return u(d,a)}).join(",")+"]"+(o?","+o:"")}}function getNormalizationType(e,a){for(var n=0,i=0;i`:`
`,div.innerHTML.indexOf(" ")>0}var shouldDecodeNewlines=inBrowser$1?getShouldDecode(!1):!1,shouldDecodeNewlinesForHref=inBrowser$1?getShouldDecode(!0):!1,idToTemplate=cached$2(function(e){var a=query(e);return a&&a.innerHTML}),mount=Vue$2.prototype.$mount;Vue$2.prototype.$mount=function(e,a){if(e=e&&query(e),e===document.body||e===document.documentElement)return this;var n=this.$options;if(!n.render){var i=n.template;if(i)if(typeof i=="string")i.charAt(0)==="#"&&(i=idToTemplate(i));else if(i.nodeType)i=i.innerHTML;else return this;else e&&(i=getOuterHTML(e));if(i){var r=compileToFunctions(i,{outputSourceRange:!1,shouldDecodeNewlines,shouldDecodeNewlinesForHref,delimiters:n.delimiters,comments:n.comments},this),s=r.render,l=r.staticRenderFns;n.render=s,n.staticRenderFns=l}}return mount.call(this,e,a)};function getOuterHTML(e){if(e.outerHTML)return e.outerHTML;var a=document.createElement("div");return a.appendChild(e.cloneNode(!0)),a.innerHTML}Vue$2.compile=compileToFunctions;var toString$2=function(e){return Object.prototype.toString.call(e)};function isNative(e){return typeof e=="function"&&/native code/.test(e.toString())}var hasSymbol$1=typeof Symbol!="undefined"&&isNative(Symbol)&&typeof Reflect!="undefined"&&isNative(Reflect.ownKeys),noopFn=function(e){return e},sharedPropertyDefinition={enumerable:!0,configurable:!0,get:noopFn,set:noopFn};function proxy(e,a,n){var i=n.get,r=n.set;sharedPropertyDefinition.get=i||noopFn,sharedPropertyDefinition.set=r||noopFn,Object.defineProperty(e,a,sharedPropertyDefinition)}function def(e,a,n,i){Object.defineProperty(e,a,{value:n,enumerable:!!i,writable:!0,configurable:!0})}function hasOwn$1(e,a){return Object.hasOwnProperty.call(e,a)}function assert$1(e,a){if(!e)throw new Error("[vue-composition-api] "+a)}function isArray$2(e){return Array.isArray(e)}function isObject$3(e){return e!==null&&typeof e=="object"}function isPlainObject$1(e){return toString$2(e)==="[object Object]"}function isFunction$2(e){return typeof e=="function"}function warn$1(e,a){Vue$2.util.warn(e,a)}function logError(e,a,n){if(typeof window!="undefined"&&typeof console!="undefined")console.error(e);else throw e}var vueDependency=void 0;try{var requiredVue=require("vue");requiredVue&&isVue(requiredVue)?vueDependency=requiredVue:requiredVue&&"default"in requiredVue&&isVue(requiredVue.default)&&(vueDependency=requiredVue.default)}catch(e){}var vueConstructor=null,currentInstance=null,PluginInstalledFlag="__composition_api_installed__";function isVue(e){return e&&typeof e=="function"&&e.name==="Vue"}function isVueRegistered(e){return hasOwn$1(e,PluginInstalledFlag)}function getVueConstructor(){return vueConstructor}function getRegisteredVueOrDefault(){var e=vueConstructor||vueDependency;return e}function setVueConstructor(e){vueConstructor=e,Object.defineProperty(e,PluginInstalledFlag,{configurable:!0,writable:!0,value:!0})}function getCurrentInstance(){return currentInstance}function setCurrentInstance(e){currentInstance=e}function currentVMInFn(e){var a=getCurrentInstance();return a}function defineComponentInstance(e,a){a===void 0&&(a={});var n=e.config.silent;e.config.silent=!0;var i=new e(a);return e.config.silent=n,i}function isComponentInstance(e){var a=getVueConstructor();return a&&e instanceof a}function createSlotProxy(e,a){return function(){for(var n=[],i=0;i=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,a){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],l;try{for(;(a===void 0||a-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(c){l={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(l)throw l.error}}return s}function __spread(){for(var e=[],a=0;a=e.length&&(e=void 0),{value:e&&e[i++],done:!e}}};throw new TypeError(a?"Object is not iterable.":"Symbol.iterator is not defined.")}function __read(e,a){var n=typeof Symbol=="function"&&e[Symbol.iterator];if(!n)return e;var i=n.call(e),r,s=[],l;try{for(;(a===void 0||a-- >0)&&!(r=i.next()).done;)s.push(r.value)}catch(c){l={error:c}}finally{try{r&&!r.done&&(n=i.return)&&n.call(i)}finally{if(l)throw l.error}}return s}function __spread(){for(var e=[],a=0;a{const r=JSON.parse(i.data);r.key===a&&n(r.data)}))}off(a){Object.keys(this.listeners).includes(a)&&(this.removeEventListener("message",this.listeners[a]),delete this.listeners[a])}}const socket=new CustomSocket("ws://"+location.host+"/");var __vue_render__$x=function(e,a){var n=a._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:!a.props.hidden,expression:"!props.hidden"}],staticClass:"flex justify-center items-center flex-col flex-1 h-full",class:a.props.additionalClasses},[n("span",{staticClass:"mb-5"},[a._v(a._s(a.props.text||"Loading..."))]),a._v(" "),a._m(0)])},__vue_staticRenderFns__$x=[function(e,a){var n=a._c;return n("div",{staticClass:"lds-ring"},[n("div"),a._v(" "),n("div"),a._v(" "),n("div"),a._v(" "),n("div")])}];const __vue_inject_styles__$x=function(e){!e||e("data-v-4e4e821e_0",{source:".lds-ring[data-v-4e4e821e]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring div[data-v-4e4e821e]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:lds-ring-data-v-4e4e821e 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#fff transparent transparent transparent}.lds-ring div[data-v-4e4e821e]:nth-child(1){animation-delay:-.45s}.lds-ring div[data-v-4e4e821e]:nth-child(2){animation-delay:-.3s}.lds-ring div[data-v-4e4e821e]:nth-child(3){animation-delay:-.15s}@keyframes lds-ring-data-v-4e4e821e{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}",map:void 0,media:void 0})},__vue_scope_id__$x="data-v-4e4e821e",__vue_module_identifier__$e=void 0,__vue_is_functional_template__$x=!0;function __vue_normalize__$x(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="BaseLoadingPlaceholder.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$e(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$e.styles||(__vue_create_injector__$e.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` +`;styleInject(css_248z$2);class CustomSocket extends WebSocket{constructor(a){super(a);this.listeners={}}emit(a,n){if(this.readyState!==WebSocket.OPEN)return!1;this.send(JSON.stringify({key:a,data:n}))}on(a,n){Object.keys(this.listeners).includes(a)||(this.listeners[a]=n,this.addEventListener("message",i=>{const r=JSON.parse(i.data);r.key===a&&n(r.data)}))}off(a){Object.keys(this.listeners).includes(a)&&(this.removeEventListener("message",this.listeners[a]),delete this.listeners[a])}}const socket=new CustomSocket("ws://"+location.host+"/");var __vue_render__$y=function(e,a){var n=a._c;return n("div",{directives:[{name:"show",rawName:"v-show",value:!a.props.hidden,expression:"!props.hidden"}],staticClass:"flex justify-center items-center flex-col flex-1 h-full",class:a.props.additionalClasses},[n("span",{staticClass:"mb-5"},[a._v(a._s(a.props.text||"Loading..."))]),a._v(" "),a._m(0)])},__vue_staticRenderFns__$y=[function(e,a){var n=a._c;return n("div",{staticClass:"lds-ring"},[n("div"),a._v(" "),n("div"),a._v(" "),n("div"),a._v(" "),n("div")])}];const __vue_inject_styles__$y=function(e){!e||e("data-v-4e4e821e_0",{source:".lds-ring[data-v-4e4e821e]{display:inline-block;position:relative;width:80px;height:80px}.lds-ring div[data-v-4e4e821e]{box-sizing:border-box;display:block;position:absolute;width:64px;height:64px;margin:8px;border:8px solid #fff;border-radius:50%;animation:lds-ring-data-v-4e4e821e 1.2s cubic-bezier(.5,0,.5,1) infinite;border-color:#fff transparent transparent transparent}.lds-ring div[data-v-4e4e821e]:nth-child(1){animation-delay:-.45s}.lds-ring div[data-v-4e4e821e]:nth-child(2){animation-delay:-.3s}.lds-ring div[data-v-4e4e821e]:nth-child(3){animation-delay:-.15s}@keyframes lds-ring-data-v-4e4e821e{0%{transform:rotate(0)}100%{transform:rotate(360deg)}}",map:void 0,media:void 0})},__vue_scope_id__$y="data-v-4e4e821e",__vue_module_identifier__$f=void 0,__vue_is_functional_template__$y=!0;function __vue_normalize__$y(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="BaseLoadingPlaceholder.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$f(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$f.styles||(__vue_create_injector__$f.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` /*# sourceURL=`+s.map.sources[0]+" */",o+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(s.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+l+"]")),!c.element){const d=c.element=document.createElement("style");d.type="text/css",s.media&&d.setAttribute("media",s.media),n&&(d.setAttribute("data-group",l),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(n&&(u=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",u+1)),c.element.styleSheet)c.parts.push(o),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` -`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var BaseLoadingPlaceholder=__vue_normalize__$x({render:__vue_render__$x,staticRenderFns:__vue_staticRenderFns__$x},__vue_inject_styles__$x,{},__vue_scope_id__$x,__vue_is_functional_template__$x,__vue_module_identifier__$e,__vue_create_injector__$e);function fetchData(e,a={},n="GET"){const i=new URL(`${window.location.origin}/api/${e}`);return Object.keys(a).forEach(r=>{i.searchParams.append(r,a[r])}),fetch(i.href,{method:n}).then(r=>r.json()).catch(r=>(console.error("There has been a problem with your fetch operation:",r),Promise.reject(r)))}const postToServer=(e,a)=>{const n=new URL(`${window.location.origin}/api/${e}`);return fetch(n,{body:JSON.stringify(a),headers:{"Content-Type":"application/json"},method:"POST"}).then(i=>{if(!i.ok)throw new Error("Network response was not ok");return i.json()}).catch(i=>{console.error("There has been a problem with your fetch operation:",i)})};function sendAddToQueue(e,a=null){if(!e)throw new Error("No URL given to sendAddToQueue function!");fetchData("addToQueue",{url:e,bitrate:a},"POST")}function aggregateDownloadLinks(e){return e.map(n=>n.link).join(";")}function generatePath(e){if(!e)throw new Error("No element passed to the generatePath function!");const a=[e];for(;(e=e.parentNode)&&e!==document;)a.push(e);return a}function isValidURL(e){const a=e.toLowerCase();if(a.startsWith("http")){if(a.includes("deezer.com")||a.includes("deezer.page.link")||a.includes("open.spotify.com")||a.includes("link.tospotify.com"))return!0}else if(a.startsWith("spotify:"))return!0;return!1}function convertDuration(e){let a,n;return a=Math.floor(e/60),n=e-a*60,n<10&&(n="0"+n),a+":"+n}function convertDurationSeparated(e){let a,n,i;return n=Math.floor(e/60),a=Math.floor(n/60),i=e-n*60,n-=a*60,[a,n,i]}const numberWithDots=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".");function debounce$1(e,a,n){let i;return function(){const r=this,s=arguments,l=function(){i=null,n||e.apply(r,s)},c=n&&!i;clearTimeout(i),i=setTimeout(l,a),c&&e.apply(r,s)}}function copyToClipboard(e){const a=document.createElement("input");document.body.appendChild(a),a.setAttribute("type","text"),a.setAttribute("value",e),a.select(),a.setSelectionRange(0,99999),document.execCommand("copy"),a.remove()}function getPropertyWithFallback(e,...a){for(const n of a){const r=/\./.test(n)?n.split(".").reduce((s,l)=>{if(s)return s[l]},e):e[n];if(typeof r!="undefined")return r}return null}var Utils={isValidURL,convertDuration,convertDurationSeparated,numberWithDots,debounce:debounce$1};const downloadQualities=[{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}];var script$v={data(){return{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:()=>{copyToClipboard(this.generalHref)}},copyImageLink:{label:this.$t("globals.copyImageLink"),show:!1,position:4,action:()=>{copyToClipboard(this.imgSrc)}},copyDeezerLink:{label:this.$t("globals.copyDeezerLink"),show:!1,position:5,action:()=>{copyToClipboard(this.deezerHref)}},paste:{label:this.$t("globals.paste"),show:!1,position:6,action:()=>{clipboard in navigator?navigator.clipboard.readText().then(n=>{document.execCommand("insertText",void 0,n)}):document.execCommand("paste")}}},a=Object.values(e).length+1;return downloadQualities.forEach((n,i)=>{e[n.objName]={label:`${this.$t("globals.download",{thing:n.label})}`,show:!1,position:a+i,action:sendAddToQueue.bind(null,this.deezerHref,n.value)}}),e},sortedOptions(){return Object.values(this.options).sort((e,a)=>e.position{this.menuOpen=!1,this.options.copyLink.show=!1,this.options.copyDeezerLink.show=!1,this.options.copyImageLink.show=!1,downloadQualities.forEach(e=>{this.options[e.objName].show=!1})}).catch(e=>{console.error(e)})},positionMenu(e,a){this.xPos=`${e}px`,this.yPos=`${a}px`,this.$nextTick().then(()=>{const{innerHeight:n,innerWidth:i}=window,r=e+this.$refs.contextMenu.getBoundingClientRect().width,s=a+this.$refs.contextMenu.getBoundingClientRect().height;if(r>i){const l=r-i+15;this.xPos=`${e-l}px`}if(s>n){const l=s-n+15;this.yPos=`${a-l}px`}})},showDeezerOptions(e){e||(this.options.copyDeezerLink.show=!0),downloadQualities.forEach(a=>{this.options[a.objName].show=!0})}}};const __vue_script__$v=script$v;var __vue_render__$w=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("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(i){return n("button",{directives:[{name:"show",rawName:"v-show",value:i.show,expression:"option.show"}],key:i.label,staticClass:"btn menu-option",on:{click:function(r){return r.preventDefault(),i.action(r)}}},[n("span",{staticClass:"menu-option__text"},[e._v(e._s(i.label))])])}),0)},__vue_staticRenderFns__$w=[];const __vue_inject_styles__$w=function(e){!e||e("data-v-56c7988a_0",{source:".context-menu[data-v-56c7988a]{position:absolute;top:0;left:0;min-width:100px;border-radius:7px;background:var(--secondary-background);box-shadow:4px 10px 18px 0 rgba(0,0,0,.15);overflow:hidden;z-index:10000}.menu-option[data-v-56c7988a]{display:flex;align-items:center;width:100%;height:40px;padding-left:10px;padding-right:10px;color:var(--foreground);cursor:pointer}.menu-option[data-v-56c7988a]:hover{background:var(--table-highlight);filter:brightness(150%)}.menu-option__text[data-v-56c7988a]{text-transform:capitalize}button[data-v-56c7988a]{color:var(--primary-text);color:unset;background-color:var(--primary-color);background-color:unset;min-width:unset;position:unset;border:unset;border-radius:unset;font-family:unset;font-weight:unset;font-size:unset;padding:unset;margin-right:unset;height:unset;text-transform:unset;cursor:unset;transition:unset}button[data-v-56c7988a]:focus{outline:0}button[data-v-56c7988a]:active{background-color:unset;transform:unset}button[data-v-56c7988a]:hover{background:unset;border:unset}",map:void 0,media:void 0})},__vue_scope_id__$w="data-v-56c7988a",__vue_module_identifier__$d=void 0,__vue_is_functional_template__$w=!1;function __vue_normalize__$w(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="TheContextMenu.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$d(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$d.styles||(__vue_create_injector__$d.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` +`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var BaseLoadingPlaceholder=__vue_normalize__$y({render:__vue_render__$y,staticRenderFns:__vue_staticRenderFns__$y},__vue_inject_styles__$y,{},__vue_scope_id__$y,__vue_is_functional_template__$y,__vue_module_identifier__$f,__vue_create_injector__$f);function fetchData(e,a={},n="GET"){const i=new URL(`${window.location.origin}/api/${e}`);return Object.keys(a).forEach(r=>{i.searchParams.append(r,a[r])}),fetch(i.href,{method:n}).then(r=>r.json()).catch(r=>(console.error("There has been a problem with your fetch operation:",r),Promise.reject(r)))}const postToServer=(e,a)=>{const n=new URL(`${window.location.origin}/api/${e}`);return fetch(n,{body:JSON.stringify(a),headers:{"Content-Type":"application/json"},method:"POST"}).then(i=>{if(!i.ok)throw new Error("Network response was not ok");return i.json()}).catch(i=>{console.error("There has been a problem with your fetch operation:",i)})};function sendAddToQueue(e,a=null){if(!e)throw new Error("No URL given to sendAddToQueue function!");fetchData("addToQueue",{url:e,bitrate:a},"POST")}function aggregateDownloadLinks(e){return e.map(n=>n.link).join(";")}function generatePath(e){if(!e)throw new Error("No element passed to the generatePath function!");const a=[e];for(;(e=e.parentNode)&&e!==document;)a.push(e);return a}function isValidURL(e){const a=e.toLowerCase();if(a.startsWith("http")){if(a.includes("deezer.com")||a.includes("deezer.page.link")||a.includes("open.spotify.com")||a.includes("link.tospotify.com"))return!0}else if(a.startsWith("spotify:"))return!0;return!1}function convertDuration(e){let a,n;return a=Math.floor(e/60),n=e-a*60,n<10&&(n="0"+n),a+":"+n}function convertDurationSeparated(e){let a,n,i;return n=Math.floor(e/60),a=Math.floor(n/60),i=e-n*60,n-=a*60,[a,n,i]}const numberWithDots=e=>e.toString().replace(/\B(?=(\d{3})+(?!\d))/g,".");function debounce$1(e,a,n){let i;return function(){const r=this,s=arguments,l=function(){i=null,n||e.apply(r,s)},c=n&&!i;clearTimeout(i),i=setTimeout(l,a),c&&e.apply(r,s)}}function copyToClipboard(e){const a=document.createElement("input");document.body.appendChild(a),a.setAttribute("type","text"),a.setAttribute("value",e),a.select(),a.setSelectionRange(0,99999),document.execCommand("copy"),a.remove()}function getPropertyWithFallback(e,...a){for(const n of a){const r=/\./.test(n)?n.split(".").reduce((s,l)=>{if(s)return s[l]},e):e[n];if(typeof r!="undefined")return r}return null}var Utils={isValidURL,convertDuration,convertDurationSeparated,numberWithDots,debounce:debounce$1};const downloadQualities=[{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}];var script$v={data(){return{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:()=>{copyToClipboard(this.generalHref)}},copyImageLink:{label:this.$t("globals.copyImageLink"),show:!1,position:4,action:()=>{copyToClipboard(this.imgSrc)}},copyDeezerLink:{label:this.$t("globals.copyDeezerLink"),show:!1,position:5,action:()=>{copyToClipboard(this.deezerHref)}},paste:{label:this.$t("globals.paste"),show:!1,position:6,action:()=>{clipboard in navigator?navigator.clipboard.readText().then(n=>{document.execCommand("insertText",void 0,n)}):document.execCommand("paste")}}},a=Object.values(e).length+1;return downloadQualities.forEach((n,i)=>{e[n.objName]={label:`${this.$t("globals.download",{thing:n.label})}`,show:!1,position:a+i,action:sendAddToQueue.bind(null,this.deezerHref,n.value)}}),e},sortedOptions(){return Object.values(this.options).sort((e,a)=>e.position{this.menuOpen=!1,this.options.copyLink.show=!1,this.options.copyDeezerLink.show=!1,this.options.copyImageLink.show=!1,downloadQualities.forEach(e=>{this.options[e.objName].show=!1})}).catch(e=>{console.error(e)})},positionMenu(e,a){this.xPos=`${e}px`,this.yPos=`${a}px`,this.$nextTick().then(()=>{const{innerHeight:n,innerWidth:i}=window,r=e+this.$refs.contextMenu.getBoundingClientRect().width,s=a+this.$refs.contextMenu.getBoundingClientRect().height;if(r>i){const l=r-i+15;this.xPos=`${e-l}px`}if(s>n){const l=s-n+15;this.yPos=`${a-l}px`}})},showDeezerOptions(e){e||(this.options.copyDeezerLink.show=!0),downloadQualities.forEach(a=>{this.options[a.objName].show=!0})}}};const __vue_script__$v=script$v;var __vue_render__$x=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("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(i){return n("button",{directives:[{name:"show",rawName:"v-show",value:i.show,expression:"option.show"}],key:i.label,staticClass:"btn menu-option",on:{click:function(r){return r.preventDefault(),i.action(r)}}},[n("span",{staticClass:"menu-option__text"},[e._v(e._s(i.label))])])}),0)},__vue_staticRenderFns__$x=[];const __vue_inject_styles__$x=function(e){!e||e("data-v-56c7988a_0",{source:".context-menu[data-v-56c7988a]{position:absolute;top:0;left:0;min-width:100px;border-radius:7px;background:var(--secondary-background);box-shadow:4px 10px 18px 0 rgba(0,0,0,.15);overflow:hidden;z-index:10000}.menu-option[data-v-56c7988a]{display:flex;align-items:center;width:100%;height:40px;padding-left:10px;padding-right:10px;color:var(--foreground);cursor:pointer}.menu-option[data-v-56c7988a]:hover{background:var(--table-highlight);filter:brightness(150%)}.menu-option__text[data-v-56c7988a]{text-transform:capitalize}button[data-v-56c7988a]{color:var(--primary-text);color:unset;background-color:var(--primary-color);background-color:unset;min-width:unset;position:unset;border:unset;border-radius:unset;font-family:unset;font-weight:unset;font-size:unset;padding:unset;margin-right:unset;height:unset;text-transform:unset;cursor:unset;transition:unset}button[data-v-56c7988a]:focus{outline:0}button[data-v-56c7988a]:active{background-color:unset;transform:unset}button[data-v-56c7988a]:hover{background:unset;border:unset}",map:void 0,media:void 0})},__vue_scope_id__$x="data-v-56c7988a",__vue_module_identifier__$e=void 0,__vue_is_functional_template__$x=!1;function __vue_normalize__$x(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="TheContextMenu.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$e(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$e.styles||(__vue_create_injector__$e.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` /*# sourceURL=`+s.map.sources[0]+" */",o+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(s.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+l+"]")),!c.element){const d=c.element=document.createElement("style");d.type="text/css",s.media&&d.setAttribute("media",s.media),n&&(d.setAttribute("data-group",l),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(n&&(u=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",u+1)),c.element.styleSheet)c.parts.push(o),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` -`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var TheContextMenu=__vue_normalize__$w({render:__vue_render__$w,staticRenderFns:__vue_staticRenderFns__$w},__vue_inject_styles__$w,__vue_script__$v,__vue_scope_id__$w,__vue_is_functional_template__$w,__vue_module_identifier__$d,__vue_create_injector__$d);/*! +`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var TheContextMenu=__vue_normalize__$x({render:__vue_render__$x,staticRenderFns:__vue_staticRenderFns__$x},__vue_inject_styles__$x,__vue_script__$v,__vue_scope_id__$x,__vue_is_functional_template__$x,__vue_module_identifier__$e,__vue_create_injector__$e);/*! * vuex v3.6.2 * (c) 2021 Evan You * @license MIT - */function applyMixin(e){var a=Number(e.version.split(".")[0]);if(a>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(r){r===void 0&&(r={}),r.init=r.init?[i].concat(r.init):i,n.call(this,r)}}function i(){var r=this.$options;r.store?this.$store=typeof r.store=="function"?r.store():r.store:r.parent&&r.parent.$store&&(this.$store=r.parent.$store)}}var target=typeof window!="undefined"?window:typeof global!="undefined"?global:{},devtoolHook=target.__VUE_DEVTOOLS_GLOBAL_HOOK__;function devtoolPlugin(e){!devtoolHook||(e._devtoolHook=devtoolHook,devtoolHook.emit("vuex:init",e),devtoolHook.on("vuex:travel-to-state",function(a){e.replaceState(a)}),e.subscribe(function(a,n){devtoolHook.emit("vuex:mutation",a,n)},{prepend:!0}),e.subscribeAction(function(a,n){devtoolHook.emit("vuex:action",a,n)},{prepend:!0}))}function find(e,a){return e.filter(a)[0]}function deepCopy(e,a){if(a===void 0&&(a=[]),e===null||typeof e!="object")return e;var n=find(a,function(r){return r.original===e});if(n)return n.copy;var i=Array.isArray(e)?[]:{};return a.push({original:e,copy:i}),Object.keys(e).forEach(function(r){i[r]=deepCopy(e[r],a)}),i}function forEachValue(e,a){Object.keys(e).forEach(function(n){return a(e[n],n)})}function isObject$2(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function partial(e,a){return function(){return e(a)}}var Module=function(a,n){this.runtime=n,this._children=Object.create(null),this._rawModule=a;var i=a.state;this.state=(typeof i=="function"?i():i)||{}},prototypeAccessors$2={namespaced:{configurable:!0}};prototypeAccessors$2.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(a,n){this._children[a]=n},Module.prototype.removeChild=function(a){delete this._children[a]},Module.prototype.getChild=function(a){return this._children[a]},Module.prototype.hasChild=function(a){return a in this._children},Module.prototype.update=function(a){this._rawModule.namespaced=a.namespaced,a.actions&&(this._rawModule.actions=a.actions),a.mutations&&(this._rawModule.mutations=a.mutations),a.getters&&(this._rawModule.getters=a.getters)},Module.prototype.forEachChild=function(a){forEachValue(this._children,a)},Module.prototype.forEachGetter=function(a){this._rawModule.getters&&forEachValue(this._rawModule.getters,a)},Module.prototype.forEachAction=function(a){this._rawModule.actions&&forEachValue(this._rawModule.actions,a)},Module.prototype.forEachMutation=function(a){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,a)},Object.defineProperties(Module.prototype,prototypeAccessors$2);var ModuleCollection=function(a){this.register([],a,!1)};ModuleCollection.prototype.get=function(a){return a.reduce(function(n,i){return n.getChild(i)},this.root)},ModuleCollection.prototype.getNamespace=function(a){var n=this.root;return a.reduce(function(i,r){return n=n.getChild(r),i+(n.namespaced?r+"/":"")},"")},ModuleCollection.prototype.update=function(a){update$1([],this.root,a)},ModuleCollection.prototype.register=function(a,n,i){var r=this;i===void 0&&(i=!0);var s=new Module(n,i);if(a.length===0)this.root=s;else{var l=this.get(a.slice(0,-1));l.addChild(a[a.length-1],s)}n.modules&&forEachValue(n.modules,function(c,o){r.register(a.concat(o),c,i)})},ModuleCollection.prototype.unregister=function(a){var n=this.get(a.slice(0,-1)),i=a[a.length-1],r=n.getChild(i);!r||!r.runtime||n.removeChild(i)},ModuleCollection.prototype.isRegistered=function(a){var n=this.get(a.slice(0,-1)),i=a[a.length-1];return n?n.hasChild(i):!1};function update$1(e,a,n){if(a.update(n),n.modules)for(var i in n.modules){if(!a.getChild(i))return;update$1(e.concat(i),a.getChild(i),n.modules[i])}}var Vue$1,Store=function(a){var n=this;a===void 0&&(a={}),!Vue$1&&typeof window!="undefined"&&window.Vue&&install$2(window.Vue);var i=a.plugins;i===void 0&&(i=[]);var r=a.strict;r===void 0&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Vue$1,this._makeLocalGettersCache=Object.create(null);var s=this,l=this,c=l.dispatch,o=l.commit;this.dispatch=function(h,m){return c.call(s,h,m)},this.commit=function(h,m,v){return o.call(s,h,m,v)},this.strict=r;var u=this._modules.root.state;installModule(this,u,[],this._modules.root),resetStoreVM(this,u),i.forEach(function(f){return f(n)});var d=a.devtools!==void 0?a.devtools:Vue$1.config.devtools;d&&devtoolPlugin(this)},prototypeAccessors$1$1={state:{configurable:!0}};prototypeAccessors$1$1.state.get=function(){return this._vm._data.$$state},prototypeAccessors$1$1.state.set=function(e){},Store.prototype.commit=function(a,n,i){var r=this,s=unifyObjectStyle(a,n,i),l=s.type,c=s.payload,o={type:l,payload:c},u=this._mutations[l];!u||(this._withCommit(function(){u.forEach(function(f){f(c)})}),this._subscribers.slice().forEach(function(d){return d(o,r.state)}))},Store.prototype.dispatch=function(a,n){var i=this,r=unifyObjectStyle(a,n),s=r.type,l=r.payload,c={type:s,payload:l},o=this._actions[s];if(!!o){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(c,i.state)})}catch(d){}var u=o.length>1?Promise.all(o.map(function(d){return d(l)})):o[0](l);return new Promise(function(d,f){u.then(function(h){try{i._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(c,i.state)})}catch(m){}d(h)},function(h){try{i._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(c,i.state,h)})}catch(m){}f(h)})})}},Store.prototype.subscribe=function(a,n){return genericSubscribe(a,this._subscribers,n)},Store.prototype.subscribeAction=function(a,n){var i=typeof a=="function"?{before:a}:a;return genericSubscribe(i,this._actionSubscribers,n)},Store.prototype.watch=function(a,n,i){var r=this;return this._watcherVM.$watch(function(){return a(r.state,r.getters)},n,i)},Store.prototype.replaceState=function(a){var n=this;this._withCommit(function(){n._vm._data.$$state=a})},Store.prototype.registerModule=function(a,n,i){i===void 0&&(i={}),typeof a=="string"&&(a=[a]),this._modules.register(a,n),installModule(this,this.state,a,this._modules.get(a),i.preserveState),resetStoreVM(this,this.state)},Store.prototype.unregisterModule=function(a){var n=this;typeof a=="string"&&(a=[a]),this._modules.unregister(a),this._withCommit(function(){var i=getNestedState(n.state,a.slice(0,-1));Vue$1.delete(i,a[a.length-1])}),resetStore(this)},Store.prototype.hasModule=function(a){return typeof a=="string"&&(a=[a]),this._modules.isRegistered(a)},Store.prototype.hotUpdate=function(a){this._modules.update(a),resetStore(this,!0)},Store.prototype._withCommit=function(a){var n=this._committing;this._committing=!0,a(),this._committing=n},Object.defineProperties(Store.prototype,prototypeAccessors$1$1);function genericSubscribe(e,a,n){return a.indexOf(e)<0&&(n&&n.prepend?a.unshift(e):a.push(e)),function(){var i=a.indexOf(e);i>-1&&a.splice(i,1)}}function resetStore(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;installModule(e,n,[],e._modules.root,!0),resetStoreVM(e,n,a)}function resetStoreVM(e,a,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,s={};forEachValue(r,function(c,o){s[o]=partial(c,e),Object.defineProperty(e.getters,o,{get:function(){return e._vm[o]},enumerable:!0})});var l=Vue$1.config.silent;Vue$1.config.silent=!0,e._vm=new Vue$1({data:{$$state:a},computed:s}),Vue$1.config.silent=l,e.strict&&enableStrictMode(e),i&&(n&&e._withCommit(function(){i._data.$$state=null}),Vue$1.nextTick(function(){return i.$destroy()}))}function installModule(e,a,n,i,r){var s=!n.length,l=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[l],e._modulesNamespaceMap[l]=i),!s&&!r){var c=getNestedState(a,n.slice(0,-1)),o=n[n.length-1];e._withCommit(function(){Vue$1.set(c,o,i.state)})}var u=i.context=makeLocalContext(e,l,n);i.forEachMutation(function(d,f){var h=l+f;registerMutation(e,h,d,u)}),i.forEachAction(function(d,f){var h=d.root?f:l+f,m=d.handler||d;registerAction(e,h,m,u)}),i.forEachGetter(function(d,f){var h=l+f;registerGetter(e,h,d,u)}),i.forEachChild(function(d,f){installModule(e,a,n.concat(f),d,r)})}function makeLocalContext(e,a,n){var i=a==="",r={dispatch:i?e.dispatch:function(s,l,c){var o=unifyObjectStyle(s,l,c),u=o.payload,d=o.options,f=o.type;return(!d||!d.root)&&(f=a+f),e.dispatch(f,u)},commit:i?e.commit:function(s,l,c){var o=unifyObjectStyle(s,l,c),u=o.payload,d=o.options,f=o.type;(!d||!d.root)&&(f=a+f),e.commit(f,u,d)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return makeLocalGetters(e,a)}},state:{get:function(){return getNestedState(e.state,n)}}}),r}function makeLocalGetters(e,a){if(!e._makeLocalGettersCache[a]){var n={},i=a.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,i)===a){var s=r.slice(i);Object.defineProperty(n,s,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[a]=n}return e._makeLocalGettersCache[a]}function registerMutation(e,a,n,i){var r=e._mutations[a]||(e._mutations[a]=[]);r.push(function(l){n.call(e,i.state,l)})}function registerAction(e,a,n,i){var r=e._actions[a]||(e._actions[a]=[]);r.push(function(l){var c=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},l);return isPromise(c)||(c=Promise.resolve(c)),e._devtoolHook?c.catch(function(o){throw e._devtoolHook.emit("vuex:error",o),o}):c})}function registerGetter(e,a,n,i){e._wrappedGetters[a]||(e._wrappedGetters[a]=function(s){return n(i.state,i.getters,s.state,s.getters)})}function enableStrictMode(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function getNestedState(e,a){return a.reduce(function(n,i){return n[i]},e)}function unifyObjectStyle(e,a,n){return isObject$2(e)&&e.type&&(n=a,a=e,e=e.type),{type:e,payload:a,options:n}}function install$2(e){Vue$1&&e===Vue$1||(Vue$1=e,applyMixin(Vue$1))}var mapState=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){var c=this.$store.state,o=this.$store.getters;if(e){var u=getModuleByNamespace(this.$store,"mapState",e);if(!u)return;c=u.context.state,o=u.context.getters}return typeof s=="function"?s.call(this,c,o):c[s]},n[r].vuex=!0}),n}),mapMutations=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){for(var c=[],o=arguments.length;o--;)c[o]=arguments[o];var u=this.$store.commit;if(e){var d=getModuleByNamespace(this.$store,"mapMutations",e);if(!d)return;u=d.context.commit}return typeof s=="function"?s.apply(this,[u].concat(c)):u.apply(this.$store,[s].concat(c))}}),n}),mapGetters=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;s=e+s,n[r]=function(){if(!(e&&!getModuleByNamespace(this.$store,"mapGetters",e)))return this.$store.getters[s]},n[r].vuex=!0}),n}),mapActions=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){for(var c=[],o=arguments.length;o--;)c[o]=arguments[o];var u=this.$store.dispatch;if(e){var d=getModuleByNamespace(this.$store,"mapActions",e);if(!d)return;u=d.context.dispatch}return typeof s=="function"?s.apply(this,[u].concat(c)):u.apply(this.$store,[s].concat(c))}}),n}),createNamespacedHelpers=function(e){return{mapState:mapState.bind(null,e),mapGetters:mapGetters.bind(null,e),mapMutations:mapMutations.bind(null,e),mapActions:mapActions.bind(null,e)}};function normalizeMap(e){return isValidMap(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function isValidMap(e){return Array.isArray(e)||isObject$2(e)}function normalizeNamespace(e){return function(a,n){return typeof a!="string"?(n=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,n)}}function getModuleByNamespace(e,a,n){var i=e._modulesNamespaceMap[n];return i}function createLogger(e){e===void 0&&(e={});var a=e.collapsed;a===void 0&&(a=!0);var n=e.filter;n===void 0&&(n=function(d,f,h){return!0});var i=e.transformer;i===void 0&&(i=function(d){return d});var r=e.mutationTransformer;r===void 0&&(r=function(d){return d});var s=e.actionFilter;s===void 0&&(s=function(d,f){return!0});var l=e.actionTransformer;l===void 0&&(l=function(d){return d});var c=e.logMutations;c===void 0&&(c=!0);var o=e.logActions;o===void 0&&(o=!0);var u=e.logger;return u===void 0&&(u=console),function(d){var f=deepCopy(d.state);typeof u!="undefined"&&(c&&d.subscribe(function(h,m){var v=deepCopy(m);if(n(h,f,v)){var y=getFormattedTime(),_=r(h),w="mutation "+h.type+y;startMessage(u,w,a),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(f)),u.log("%c mutation","color: #03A9F4; font-weight: bold",_),u.log("%c next state","color: #4CAF50; font-weight: bold",i(v)),endMessage(u)}f=v}),o&&d.subscribeAction(function(h,m){if(s(h,m)){var v=getFormattedTime(),y=l(h),_="action "+h.type+v;startMessage(u,_,a),u.log("%c action","color: #03A9F4; font-weight: bold",y),endMessage(u)}}))}}function startMessage(e,a,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,a)}catch(r){e.log(a)}}function endMessage(e){try{e.groupEnd()}catch(a){e.log("\u2014\u2014 log end \u2014\u2014")}}function getFormattedTime(){var e=new Date;return" @ "+pad(e.getHours(),2)+":"+pad(e.getMinutes(),2)+":"+pad(e.getSeconds(),2)+"."+pad(e.getMilliseconds(),3)}function repeat(e,a){return new Array(a+1).join(e)}function pad(e,a){return repeat("0",a-e.toString().length)+e}var index={Store,install:install$2,version:"3.6.2",mapState,mapMutations,mapGetters,mapActions,createNamespacedHelpers,createLogger},EventBus=new Vue$2;async function adjustVolume(e,a,{duration:n=1e3,easing:i=swing,interval:r=13}={}){const s=e.volume,l=a-s;if(!l||!n||!i||!r)return e.volume=a,Promise.resolve();const c=Math.floor(n/r);let o=1;return new Promise(u=>{const d=setInterval(()=>{e.volume=s+i(o/c)*l,++o===c&&(clearInterval(d),u())},r)})}function swing(e){return .5-Math.cos(e*Math.PI)/2}function playPausePreview(e){EventBus.$emit("trackPreview:playPausePreview",e)}function previewMouseEnter(e){EventBus.$emit("trackPreview:previewMouseEnter",e)}function previewMouseLeave(e){EventBus.$emit("trackPreview:previewMouseLeave",e)}var script$u={data:()=>({previewStopped:!1}),computed:{...mapGetters({previewVolume:"getPreviewVolume"})},mounted(){this.$refs.preview.volume=1,this.$router.beforeEach((e,a,n)=>{this.stopStackedTabsPreview(),n()}),EventBus.$on("trackPreview:playPausePreview",this.playPausePreview),EventBus.$on("trackPreview:previewMouseEnter",this.previewMouseEnter),EventBus.$on("trackPreview:previewMouseLeave",this.previewMouseLeave)},methods:{async onCanPlay(){await this.$refs.preview.play(),this.previewStopped=!1,await adjustVolume(this.$refs.preview,this.previewVolume/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 adjustVolume(this.$refs.preview,0,{duration:800}),this.previewStopped=!0,document.querySelectorAll("a[playing] > .preview_controls").forEach(a=>{a.style.opacity=0}),document.querySelectorAll("*").forEach(a=>{a.removeAttribute("playing")}),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(a=>{a.textContent="play_arrow"})))},async playPausePreview(e){e.preventDefault(),e.stopPropagation();const{currentTarget:a}=e,n=a.tagName=="I"?a:a.querySelector("i");a.hasAttribute("playing")?this.$refs.preview.paused?(this.$refs.preview.play(),this.previewStopped=!1,n.innerText="pause",await adjustVolume(this.$refs.preview,this.previewVolume/100,{duration:500})):(this.previewStopped=!0,n.innerText="play_arrow",await adjustVolume(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause()):(document.querySelectorAll("*").forEach(i=>{i.removeAttribute("playing")}),a.setAttribute("playing",!0),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(i=>{i.textContent="play_arrow"}),document.querySelectorAll(".preview_controls").forEach(i=>{i.style.opacity=0}),n.innerText="pause",n.style.opacity=1,this.previewStopped=!1,await adjustVolume(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause(),document.getElementById("preview-track_source").src=a.getAttribute("data-preview"),this.$refs.preview.load())},async stopStackedTabsPreview(){const e=Array.prototype.slice.call(document.querySelectorAll(".preview_playlist_controls[playing]"));e.length!==0&&(await adjustVolume(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause(),this.previewStopped=!0,e.forEach(a=>{a.removeAttribute("playing"),a.innerText="play_arrow"}))},previewMouseEnter(e){e.currentTarget.style.opacity=1},previewMouseLeave(e){const{currentTarget:a}=e,n=a.parentElement.hasAttribute("playing");(n&&this.previewStopped||!n)&&(a.style.opacity=0)}}};const __vue_script__$u=script$u;var __vue_render__$v=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("audio",{ref:"preview",attrs:{id:"preview-track"},on:{canplay:e.onCanPlay,timeupdate:e.onTimeUpdate}},[n("source",{attrs:{id:"preview-track_source",src:"",type:"audio/mpeg"}})])},__vue_staticRenderFns__$v=[];const __vue_inject_styles__$v=void 0,__vue_scope_id__$v=void 0,__vue_is_functional_template__$v=!1;function __vue_normalize__$v(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};return o.__file="TheTrackPreview.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i,o}var TheTrackPreview=__vue_normalize__$v({render:__vue_render__$v,staticRenderFns:__vue_staticRenderFns__$v},__vue_inject_styles__$v,__vue_script__$u,__vue_scope_id__$v,__vue_is_functional_template__$v),script$t={data:()=>({open:!1,url:""}),mounted(){this.$root.$on("QualityModal:open",this.openModal),this.$refs.modal.addEventListener("webkitAnimationEnd",this.handleAnimationEnd)},methods:{tryToDownloadTrack(e){const{target:a}=e;this.$refs.modal.classList.add("animated","fadeOut"),!!a.matches(".quality-button")&&sendAddToQueue(this.url,a.dataset.qualityValue)},openModal(e){this.url=e,this.open=!0,this.$refs.modal.classList.add("animated","fadeIn")},handleAnimationEnd(e){const{animationName:a}=e;this.$refs.modal.classList.remove("animated",a),a!=="fadeIn"&&(this.open=!1)}}};const __vue_script__$t=script$t;var __vue_render__$u=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],ref:"modal",staticClass:"smallmodal",attrs:{id:"modal_quality"},on:{click:function(i){return e.tryToDownloadTrack(i)}}},[n("div",{staticClass:"smallmodal-content"},[n("button",{staticClass:"btn btn-primary quality-button",attrs:{"data-quality-value":"9"}},[e._v(` + */function applyMixin(e){var a=Number(e.version.split(".")[0]);if(a>=2)e.mixin({beforeCreate:i});else{var n=e.prototype._init;e.prototype._init=function(r){r===void 0&&(r={}),r.init=r.init?[i].concat(r.init):i,n.call(this,r)}}function i(){var r=this.$options;r.store?this.$store=typeof r.store=="function"?r.store():r.store:r.parent&&r.parent.$store&&(this.$store=r.parent.$store)}}var target=typeof window!="undefined"?window:typeof global!="undefined"?global:{},devtoolHook=target.__VUE_DEVTOOLS_GLOBAL_HOOK__;function devtoolPlugin(e){!devtoolHook||(e._devtoolHook=devtoolHook,devtoolHook.emit("vuex:init",e),devtoolHook.on("vuex:travel-to-state",function(a){e.replaceState(a)}),e.subscribe(function(a,n){devtoolHook.emit("vuex:mutation",a,n)},{prepend:!0}),e.subscribeAction(function(a,n){devtoolHook.emit("vuex:action",a,n)},{prepend:!0}))}function find(e,a){return e.filter(a)[0]}function deepCopy(e,a){if(a===void 0&&(a=[]),e===null||typeof e!="object")return e;var n=find(a,function(r){return r.original===e});if(n)return n.copy;var i=Array.isArray(e)?[]:{};return a.push({original:e,copy:i}),Object.keys(e).forEach(function(r){i[r]=deepCopy(e[r],a)}),i}function forEachValue(e,a){Object.keys(e).forEach(function(n){return a(e[n],n)})}function isObject$2(e){return e!==null&&typeof e=="object"}function isPromise(e){return e&&typeof e.then=="function"}function partial(e,a){return function(){return e(a)}}var Module=function(a,n){this.runtime=n,this._children=Object.create(null),this._rawModule=a;var i=a.state;this.state=(typeof i=="function"?i():i)||{}},prototypeAccessors$2={namespaced:{configurable:!0}};prototypeAccessors$2.namespaced.get=function(){return!!this._rawModule.namespaced},Module.prototype.addChild=function(a,n){this._children[a]=n},Module.prototype.removeChild=function(a){delete this._children[a]},Module.prototype.getChild=function(a){return this._children[a]},Module.prototype.hasChild=function(a){return a in this._children},Module.prototype.update=function(a){this._rawModule.namespaced=a.namespaced,a.actions&&(this._rawModule.actions=a.actions),a.mutations&&(this._rawModule.mutations=a.mutations),a.getters&&(this._rawModule.getters=a.getters)},Module.prototype.forEachChild=function(a){forEachValue(this._children,a)},Module.prototype.forEachGetter=function(a){this._rawModule.getters&&forEachValue(this._rawModule.getters,a)},Module.prototype.forEachAction=function(a){this._rawModule.actions&&forEachValue(this._rawModule.actions,a)},Module.prototype.forEachMutation=function(a){this._rawModule.mutations&&forEachValue(this._rawModule.mutations,a)},Object.defineProperties(Module.prototype,prototypeAccessors$2);var ModuleCollection=function(a){this.register([],a,!1)};ModuleCollection.prototype.get=function(a){return a.reduce(function(n,i){return n.getChild(i)},this.root)},ModuleCollection.prototype.getNamespace=function(a){var n=this.root;return a.reduce(function(i,r){return n=n.getChild(r),i+(n.namespaced?r+"/":"")},"")},ModuleCollection.prototype.update=function(a){update$1([],this.root,a)},ModuleCollection.prototype.register=function(a,n,i){var r=this;i===void 0&&(i=!0);var s=new Module(n,i);if(a.length===0)this.root=s;else{var l=this.get(a.slice(0,-1));l.addChild(a[a.length-1],s)}n.modules&&forEachValue(n.modules,function(c,o){r.register(a.concat(o),c,i)})},ModuleCollection.prototype.unregister=function(a){var n=this.get(a.slice(0,-1)),i=a[a.length-1],r=n.getChild(i);!r||!r.runtime||n.removeChild(i)},ModuleCollection.prototype.isRegistered=function(a){var n=this.get(a.slice(0,-1)),i=a[a.length-1];return n?n.hasChild(i):!1};function update$1(e,a,n){if(a.update(n),n.modules)for(var i in n.modules){if(!a.getChild(i))return;update$1(e.concat(i),a.getChild(i),n.modules[i])}}var Vue$1,Store=function(a){var n=this;a===void 0&&(a={}),!Vue$1&&typeof window!="undefined"&&window.Vue&&install$2(window.Vue);var i=a.plugins;i===void 0&&(i=[]);var r=a.strict;r===void 0&&(r=!1),this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new ModuleCollection(a),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._watcherVM=new Vue$1,this._makeLocalGettersCache=Object.create(null);var s=this,l=this,c=l.dispatch,o=l.commit;this.dispatch=function(h,m){return c.call(s,h,m)},this.commit=function(h,m,v){return o.call(s,h,m,v)},this.strict=r;var u=this._modules.root.state;installModule(this,u,[],this._modules.root),resetStoreVM(this,u),i.forEach(function(f){return f(n)});var d=a.devtools!==void 0?a.devtools:Vue$1.config.devtools;d&&devtoolPlugin(this)},prototypeAccessors$1$1={state:{configurable:!0}};prototypeAccessors$1$1.state.get=function(){return this._vm._data.$$state},prototypeAccessors$1$1.state.set=function(e){},Store.prototype.commit=function(a,n,i){var r=this,s=unifyObjectStyle(a,n,i),l=s.type,c=s.payload,o={type:l,payload:c},u=this._mutations[l];!u||(this._withCommit(function(){u.forEach(function(f){f(c)})}),this._subscribers.slice().forEach(function(d){return d(o,r.state)}))},Store.prototype.dispatch=function(a,n){var i=this,r=unifyObjectStyle(a,n),s=r.type,l=r.payload,c={type:s,payload:l},o=this._actions[s];if(!!o){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(c,i.state)})}catch(d){}var u=o.length>1?Promise.all(o.map(function(d){return d(l)})):o[0](l);return new Promise(function(d,f){u.then(function(h){try{i._actionSubscribers.filter(function(m){return m.after}).forEach(function(m){return m.after(c,i.state)})}catch(m){}d(h)},function(h){try{i._actionSubscribers.filter(function(m){return m.error}).forEach(function(m){return m.error(c,i.state,h)})}catch(m){}f(h)})})}},Store.prototype.subscribe=function(a,n){return genericSubscribe(a,this._subscribers,n)},Store.prototype.subscribeAction=function(a,n){var i=typeof a=="function"?{before:a}:a;return genericSubscribe(i,this._actionSubscribers,n)},Store.prototype.watch=function(a,n,i){var r=this;return this._watcherVM.$watch(function(){return a(r.state,r.getters)},n,i)},Store.prototype.replaceState=function(a){var n=this;this._withCommit(function(){n._vm._data.$$state=a})},Store.prototype.registerModule=function(a,n,i){i===void 0&&(i={}),typeof a=="string"&&(a=[a]),this._modules.register(a,n),installModule(this,this.state,a,this._modules.get(a),i.preserveState),resetStoreVM(this,this.state)},Store.prototype.unregisterModule=function(a){var n=this;typeof a=="string"&&(a=[a]),this._modules.unregister(a),this._withCommit(function(){var i=getNestedState(n.state,a.slice(0,-1));Vue$1.delete(i,a[a.length-1])}),resetStore(this)},Store.prototype.hasModule=function(a){return typeof a=="string"&&(a=[a]),this._modules.isRegistered(a)},Store.prototype.hotUpdate=function(a){this._modules.update(a),resetStore(this,!0)},Store.prototype._withCommit=function(a){var n=this._committing;this._committing=!0,a(),this._committing=n},Object.defineProperties(Store.prototype,prototypeAccessors$1$1);function genericSubscribe(e,a,n){return a.indexOf(e)<0&&(n&&n.prepend?a.unshift(e):a.push(e)),function(){var i=a.indexOf(e);i>-1&&a.splice(i,1)}}function resetStore(e,a){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;installModule(e,n,[],e._modules.root,!0),resetStoreVM(e,n,a)}function resetStoreVM(e,a,n){var i=e._vm;e.getters={},e._makeLocalGettersCache=Object.create(null);var r=e._wrappedGetters,s={};forEachValue(r,function(c,o){s[o]=partial(c,e),Object.defineProperty(e.getters,o,{get:function(){return e._vm[o]},enumerable:!0})});var l=Vue$1.config.silent;Vue$1.config.silent=!0,e._vm=new Vue$1({data:{$$state:a},computed:s}),Vue$1.config.silent=l,e.strict&&enableStrictMode(e),i&&(n&&e._withCommit(function(){i._data.$$state=null}),Vue$1.nextTick(function(){return i.$destroy()}))}function installModule(e,a,n,i,r){var s=!n.length,l=e._modules.getNamespace(n);if(i.namespaced&&(e._modulesNamespaceMap[l],e._modulesNamespaceMap[l]=i),!s&&!r){var c=getNestedState(a,n.slice(0,-1)),o=n[n.length-1];e._withCommit(function(){Vue$1.set(c,o,i.state)})}var u=i.context=makeLocalContext(e,l,n);i.forEachMutation(function(d,f){var h=l+f;registerMutation(e,h,d,u)}),i.forEachAction(function(d,f){var h=d.root?f:l+f,m=d.handler||d;registerAction(e,h,m,u)}),i.forEachGetter(function(d,f){var h=l+f;registerGetter(e,h,d,u)}),i.forEachChild(function(d,f){installModule(e,a,n.concat(f),d,r)})}function makeLocalContext(e,a,n){var i=a==="",r={dispatch:i?e.dispatch:function(s,l,c){var o=unifyObjectStyle(s,l,c),u=o.payload,d=o.options,f=o.type;return(!d||!d.root)&&(f=a+f),e.dispatch(f,u)},commit:i?e.commit:function(s,l,c){var o=unifyObjectStyle(s,l,c),u=o.payload,d=o.options,f=o.type;(!d||!d.root)&&(f=a+f),e.commit(f,u,d)}};return Object.defineProperties(r,{getters:{get:i?function(){return e.getters}:function(){return makeLocalGetters(e,a)}},state:{get:function(){return getNestedState(e.state,n)}}}),r}function makeLocalGetters(e,a){if(!e._makeLocalGettersCache[a]){var n={},i=a.length;Object.keys(e.getters).forEach(function(r){if(r.slice(0,i)===a){var s=r.slice(i);Object.defineProperty(n,s,{get:function(){return e.getters[r]},enumerable:!0})}}),e._makeLocalGettersCache[a]=n}return e._makeLocalGettersCache[a]}function registerMutation(e,a,n,i){var r=e._mutations[a]||(e._mutations[a]=[]);r.push(function(l){n.call(e,i.state,l)})}function registerAction(e,a,n,i){var r=e._actions[a]||(e._actions[a]=[]);r.push(function(l){var c=n.call(e,{dispatch:i.dispatch,commit:i.commit,getters:i.getters,state:i.state,rootGetters:e.getters,rootState:e.state},l);return isPromise(c)||(c=Promise.resolve(c)),e._devtoolHook?c.catch(function(o){throw e._devtoolHook.emit("vuex:error",o),o}):c})}function registerGetter(e,a,n,i){e._wrappedGetters[a]||(e._wrappedGetters[a]=function(s){return n(i.state,i.getters,s.state,s.getters)})}function enableStrictMode(e){e._vm.$watch(function(){return this._data.$$state},function(){},{deep:!0,sync:!0})}function getNestedState(e,a){return a.reduce(function(n,i){return n[i]},e)}function unifyObjectStyle(e,a,n){return isObject$2(e)&&e.type&&(n=a,a=e,e=e.type),{type:e,payload:a,options:n}}function install$2(e){Vue$1&&e===Vue$1||(Vue$1=e,applyMixin(Vue$1))}var mapState=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){var c=this.$store.state,o=this.$store.getters;if(e){var u=getModuleByNamespace(this.$store,"mapState",e);if(!u)return;c=u.context.state,o=u.context.getters}return typeof s=="function"?s.call(this,c,o):c[s]},n[r].vuex=!0}),n}),mapMutations=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){for(var c=[],o=arguments.length;o--;)c[o]=arguments[o];var u=this.$store.commit;if(e){var d=getModuleByNamespace(this.$store,"mapMutations",e);if(!d)return;u=d.context.commit}return typeof s=="function"?s.apply(this,[u].concat(c)):u.apply(this.$store,[s].concat(c))}}),n}),mapGetters=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;s=e+s,n[r]=function(){if(!(e&&!getModuleByNamespace(this.$store,"mapGetters",e)))return this.$store.getters[s]},n[r].vuex=!0}),n}),mapActions=normalizeNamespace(function(e,a){var n={};return normalizeMap(a).forEach(function(i){var r=i.key,s=i.val;n[r]=function(){for(var c=[],o=arguments.length;o--;)c[o]=arguments[o];var u=this.$store.dispatch;if(e){var d=getModuleByNamespace(this.$store,"mapActions",e);if(!d)return;u=d.context.dispatch}return typeof s=="function"?s.apply(this,[u].concat(c)):u.apply(this.$store,[s].concat(c))}}),n}),createNamespacedHelpers=function(e){return{mapState:mapState.bind(null,e),mapGetters:mapGetters.bind(null,e),mapMutations:mapMutations.bind(null,e),mapActions:mapActions.bind(null,e)}};function normalizeMap(e){return isValidMap(e)?Array.isArray(e)?e.map(function(a){return{key:a,val:a}}):Object.keys(e).map(function(a){return{key:a,val:e[a]}}):[]}function isValidMap(e){return Array.isArray(e)||isObject$2(e)}function normalizeNamespace(e){return function(a,n){return typeof a!="string"?(n=a,a=""):a.charAt(a.length-1)!=="/"&&(a+="/"),e(a,n)}}function getModuleByNamespace(e,a,n){var i=e._modulesNamespaceMap[n];return i}function createLogger(e){e===void 0&&(e={});var a=e.collapsed;a===void 0&&(a=!0);var n=e.filter;n===void 0&&(n=function(d,f,h){return!0});var i=e.transformer;i===void 0&&(i=function(d){return d});var r=e.mutationTransformer;r===void 0&&(r=function(d){return d});var s=e.actionFilter;s===void 0&&(s=function(d,f){return!0});var l=e.actionTransformer;l===void 0&&(l=function(d){return d});var c=e.logMutations;c===void 0&&(c=!0);var o=e.logActions;o===void 0&&(o=!0);var u=e.logger;return u===void 0&&(u=console),function(d){var f=deepCopy(d.state);typeof u!="undefined"&&(c&&d.subscribe(function(h,m){var v=deepCopy(m);if(n(h,f,v)){var y=getFormattedTime(),_=r(h),w="mutation "+h.type+y;startMessage(u,w,a),u.log("%c prev state","color: #9E9E9E; font-weight: bold",i(f)),u.log("%c mutation","color: #03A9F4; font-weight: bold",_),u.log("%c next state","color: #4CAF50; font-weight: bold",i(v)),endMessage(u)}f=v}),o&&d.subscribeAction(function(h,m){if(s(h,m)){var v=getFormattedTime(),y=l(h),_="action "+h.type+v;startMessage(u,_,a),u.log("%c action","color: #03A9F4; font-weight: bold",y),endMessage(u)}}))}}function startMessage(e,a,n){var i=n?e.groupCollapsed:e.group;try{i.call(e,a)}catch(r){e.log(a)}}function endMessage(e){try{e.groupEnd()}catch(a){e.log("\u2014\u2014 log end \u2014\u2014")}}function getFormattedTime(){var e=new Date;return" @ "+pad(e.getHours(),2)+":"+pad(e.getMinutes(),2)+":"+pad(e.getSeconds(),2)+"."+pad(e.getMilliseconds(),3)}function repeat(e,a){return new Array(a+1).join(e)}function pad(e,a){return repeat("0",a-e.toString().length)+e}var index={Store,install:install$2,version:"3.6.2",mapState,mapMutations,mapGetters,mapActions,createNamespacedHelpers,createLogger},EventBus=new Vue$2;async function adjustVolume(e,a,{duration:n=1e3,easing:i=swing,interval:r=13}={}){const s=e.volume,l=a-s;if(!l||!n||!i||!r)return e.volume=a,Promise.resolve();const c=Math.floor(n/r);let o=1;return new Promise(u=>{const d=setInterval(()=>{e.volume=s+i(o/c)*l,++o===c&&(clearInterval(d),u())},r)})}function swing(e){return .5-Math.cos(e*Math.PI)/2}function playPausePreview(e){EventBus.$emit("trackPreview:playPausePreview",e)}function previewMouseEnter(e){EventBus.$emit("trackPreview:previewMouseEnter",e)}function previewMouseLeave(e){EventBus.$emit("trackPreview:previewMouseLeave",e)}var script$u={data:()=>({previewStopped:!1}),computed:{...mapGetters({previewVolume:"getPreviewVolume"})},mounted(){this.$refs.preview.volume=1,this.$router.beforeEach((e,a,n)=>{this.stopStackedTabsPreview(),n()}),EventBus.$on("trackPreview:playPausePreview",this.playPausePreview),EventBus.$on("trackPreview:previewMouseEnter",this.previewMouseEnter),EventBus.$on("trackPreview:previewMouseLeave",this.previewMouseLeave)},methods:{async onCanPlay(){await this.$refs.preview.play(),this.previewStopped=!1,await adjustVolume(this.$refs.preview,this.previewVolume/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 adjustVolume(this.$refs.preview,0,{duration:800}),this.previewStopped=!0,document.querySelectorAll("a[playing] > .preview_controls").forEach(a=>{a.style.opacity=0}),document.querySelectorAll("*").forEach(a=>{a.removeAttribute("playing")}),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(a=>{a.textContent="play_arrow"})))},async playPausePreview(e){e.preventDefault(),e.stopPropagation();const{currentTarget:a}=e,n=a.tagName=="I"?a:a.querySelector("i");a.hasAttribute("playing")?this.$refs.preview.paused?(this.$refs.preview.play(),this.previewStopped=!1,n.innerText="pause",await adjustVolume(this.$refs.preview,this.previewVolume/100,{duration:500})):(this.previewStopped=!0,n.innerText="play_arrow",await adjustVolume(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause()):(document.querySelectorAll("*").forEach(i=>{i.removeAttribute("playing")}),a.setAttribute("playing",!0),document.querySelectorAll(".preview_controls, .preview_playlist_controls").forEach(i=>{i.textContent="play_arrow"}),document.querySelectorAll(".preview_controls").forEach(i=>{i.style.opacity=0}),n.innerText="pause",n.style.opacity=1,this.previewStopped=!1,await adjustVolume(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause(),document.getElementById("preview-track_source").src=a.getAttribute("data-preview"),this.$refs.preview.load())},async stopStackedTabsPreview(){const e=Array.prototype.slice.call(document.querySelectorAll(".preview_playlist_controls[playing]"));e.length!==0&&(await adjustVolume(this.$refs.preview,0,{duration:250}),this.$refs.preview.pause(),this.previewStopped=!0,e.forEach(a=>{a.removeAttribute("playing"),a.innerText="play_arrow"}))},previewMouseEnter(e){e.currentTarget.style.opacity=1},previewMouseLeave(e){const{currentTarget:a}=e,n=a.parentElement.hasAttribute("playing");(n&&this.previewStopped||!n)&&(a.style.opacity=0)}}};const __vue_script__$u=script$u;var __vue_render__$w=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("audio",{ref:"preview",attrs:{id:"preview-track"},on:{canplay:e.onCanPlay,timeupdate:e.onTimeUpdate}},[n("source",{attrs:{id:"preview-track_source",src:"",type:"audio/mpeg"}})])},__vue_staticRenderFns__$w=[];const __vue_inject_styles__$w=void 0,__vue_scope_id__$w=void 0,__vue_is_functional_template__$w=!1;function __vue_normalize__$w(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};return o.__file="TheTrackPreview.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i,o}var TheTrackPreview=__vue_normalize__$w({render:__vue_render__$w,staticRenderFns:__vue_staticRenderFns__$w},__vue_inject_styles__$w,__vue_script__$u,__vue_scope_id__$w,__vue_is_functional_template__$w),script$t={data:()=>({open:!1,url:""}),mounted(){this.$root.$on("QualityModal:open",this.openModal),this.$refs.modal.addEventListener("webkitAnimationEnd",this.handleAnimationEnd)},methods:{tryToDownloadTrack(e){const{target:a}=e;this.$refs.modal.classList.add("animated","fadeOut"),!!a.matches(".quality-button")&&sendAddToQueue(this.url,a.dataset.qualityValue)},openModal(e){this.url=e,this.open=!0,this.$refs.modal.classList.add("animated","fadeIn")},handleAnimationEnd(e){const{animationName:a}=e;this.$refs.modal.classList.remove("animated",a),a!=="fadeIn"&&(this.open=!1)}}};const __vue_script__$t=script$t;var __vue_render__$v=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{directives:[{name:"show",rawName:"v-show",value:e.open,expression:"open"}],ref:"modal",staticClass:"smallmodal",attrs:{id:"modal_quality"},on:{click:function(i){return e.tryToDownloadTrack(i)}}},[n("div",{staticClass:"smallmodal-content"},[n("button",{staticClass:"btn btn-primary quality-button",attrs:{"data-quality-value":"9"}},[e._v(` `+e._s(e.$t("globals.download",{thing:"FLAC"}))+` `)]),e._v(" "),n("button",{staticClass:"btn btn-primary quality-button",attrs:{"data-quality-value":"3"}},[e._v(` `+e._s(e.$t("globals.download",{thing:"MP3 320kbps"}))+` @@ -2546,10 +2546,14 @@ a { `+e._s(e.$t("globals.download",{thing:"360 Reality Audio [MQ]"}))+` `)]),e._v(" "),n("button",{staticClass:"btn btn-primary quality-button",attrs:{"data-quality-value":"13"}},[e._v(` `+e._s(e.$t("globals.download",{thing:"360 Reality Audio [LQ]"}))+` - `)])])])},__vue_staticRenderFns__$u=[];const __vue_inject_styles__$u=function(e){!e||e("data-v-131e5ea5_0",{source:".smallmodal{position:fixed;z-index:1250;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0,0,0,.4);animation-duration:.3s}.smallmodal-content{--modal-content-width:95%;background-color:transparent;margin:auto;width:var(--modal-content-width);position:relative;top:50%;transform:translateY(-50%)}@media only screen and (min-width:601px){.smallmodal-content{--modal-content-width:85%}}@media only screen and (min-width:993px){.smallmodal-content{--modal-content-width:70%}}.smallmodal-content button{width:100%;margin-bottom:8px}",map:void 0,media:void 0})},__vue_scope_id__$u=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$u=!1;function __vue_normalize__$u(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="TheQualityModal.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$c(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$c.styles||(__vue_create_injector__$c.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` + `)])])])},__vue_staticRenderFns__$v=[];const __vue_inject_styles__$v=function(e){!e||e("data-v-131e5ea5_0",{source:".smallmodal{position:fixed;z-index:1250;left:0;top:0;width:100%;height:100%;overflow:auto;background-color:rgba(0,0,0,.4);animation-duration:.3s}.smallmodal-content{--modal-content-width:95%;background-color:transparent;margin:auto;width:var(--modal-content-width);position:relative;top:50%;transform:translateY(-50%)}@media only screen and (min-width:601px){.smallmodal-content{--modal-content-width:85%}}@media only screen and (min-width:993px){.smallmodal-content{--modal-content-width:70%}}.smallmodal-content button{width:100%;margin-bottom:8px}",map:void 0,media:void 0})},__vue_scope_id__$v=void 0,__vue_module_identifier__$d=void 0,__vue_is_functional_template__$v=!1;function __vue_normalize__$v(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="TheQualityModal.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$d(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$d.styles||(__vue_create_injector__$d.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` /*# sourceURL=`+s.map.sources[0]+" */",o+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(s.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+l+"]")),!c.element){const d=c.element=document.createElement("style");d.type="text/css",s.media&&d.setAttribute("media",s.media),n&&(d.setAttribute("data-group",l),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(n&&(u=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",u+1)),c.element.styleSheet)c.parts.push(o),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` -`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var TheQualityModal=__vue_normalize__$u({render:__vue_render__$u,staticRenderFns:__vue_staticRenderFns__$u},__vue_inject_styles__$u,__vue_script__$t,__vue_scope_id__$u,__vue_is_functional_template__$u,__vue_module_identifier__$c,__vue_create_injector__$c);const links=[{name:"home",ariaLabel:"home",routerName:"Home",icon:"home",label:"sidebar.home"},{name:"search",ariaLabel:"search",routerName:"Search",icon:"search",label:"sidebar.search"},{name:"charts",ariaLabel:"charts",routerName:"Charts",icon:"show_chart",label:"sidebar.charts"},{name:"favorites",ariaLabel:"favorites",routerName:"Favorites",icon:"star",label:"sidebar.favorites"},{name:"analyzer",ariaLabel:"link analyzer",routerName:"Link Analyzer",icon:"link",label:"sidebar.linkAnalyzer"},{name:"settings",ariaLabel:"settings",routerName:"Settings",icon:"settings",label:"sidebar.settings"},{name:"logs",ariaLabel:"logs",routerName:"Logs",icon:"description",label:"sidebar.logs"},{name:"about",ariaLabel:"info",routerName:"About",icon:"info",label:"sidebar.about"}],THEMES={dark:"dark",light:"light",purple:"purple"},initialTheme=localStorage.getItem("selectedTheme")||document.documentElement.dataset.theme||THEMES.dark,currentTheme=ref(initialTheme);watch(currentTheme,(e,a)=>{a!==e&&(localStorage.setItem("selectedTheme",e),document.documentElement.dataset.theme=e,animateAllElements())});function animateAllElements(){const e=document.querySelectorAll("*");e.forEach(a=>{a.classList.add("changing-theme")}),document.documentElement.addEventListener("transitionend",function a(){e.forEach(n=>{n.classList.remove("changing-theme")}),document.documentElement.removeEventListener("transitionend",a)})}const useTheme=()=>({THEMES,currentTheme});var deemixIcon=` +`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var TheQualityModal=__vue_normalize__$v({render:__vue_render__$v,staticRenderFns:__vue_staticRenderFns__$v},__vue_inject_styles__$v,__vue_script__$t,__vue_scope_id__$v,__vue_is_functional_template__$v,__vue_module_identifier__$d,__vue_create_injector__$d),__vue_render__$u=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{staticClass:"hide",attrs:{id:"deezer_not_available"}},[n("i",{staticClass:"material-icons"},[e._v("warning")]),e._v(" "+e._s(e.$t("toasts.deezerNotAvailable"))+` +`)])},__vue_staticRenderFns__$u=[];const __vue_inject_styles__$u=function(e){!e||e("data-v-4bfaa28e_0",{source:"#deezer_not_available{background-color:#edd102;color:rgba(0,0,0,.75);padding:8px 12px;margin:-10px 10px 0;display:flex;border-radius:8px;align-items:center}#deezer_not_available i{margin-right:8px}#deezer_not_available.hide{display:none!important}",map:void 0,media:void 0})},__vue_scope_id__$u=void 0,__vue_module_identifier__$c=void 0,__vue_is_functional_template__$u=!1;function __vue_normalize__$u(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="DeezerWarning.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$c(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$c.styles||(__vue_create_injector__$c.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` +/*# sourceURL=`+s.map.sources[0]+" */",o+=` +/*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(s.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+l+"]")),!c.element){const d=c.element=document.createElement("style");d.type="text/css",s.media&&d.setAttribute("media",s.media),n&&(d.setAttribute("data-group",l),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(n&&(u=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",u+1)),c.element.styleSheet)c.parts.push(o),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` +`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var DeezerWarning=__vue_normalize__$u({render:__vue_render__$u,staticRenderFns:__vue_staticRenderFns__$u},__vue_inject_styles__$u,{},__vue_scope_id__$u,__vue_is_functional_template__$u,__vue_module_identifier__$c,__vue_create_injector__$c);const links=[{name:"home",ariaLabel:"home",routerName:"Home",icon:"home",label:"sidebar.home"},{name:"search",ariaLabel:"search",routerName:"Search",icon:"search",label:"sidebar.search"},{name:"charts",ariaLabel:"charts",routerName:"Charts",icon:"show_chart",label:"sidebar.charts"},{name:"favorites",ariaLabel:"favorites",routerName:"Favorites",icon:"star",label:"sidebar.favorites"},{name:"analyzer",ariaLabel:"link analyzer",routerName:"Link Analyzer",icon:"link",label:"sidebar.linkAnalyzer"},{name:"settings",ariaLabel:"settings",routerName:"Settings",icon:"settings",label:"sidebar.settings"},{name:"logs",ariaLabel:"logs",routerName:"Logs",icon:"description",label:"sidebar.logs"},{name:"about",ariaLabel:"info",routerName:"About",icon:"info",label:"sidebar.about"}],THEMES={dark:"dark",light:"light",purple:"purple"},initialTheme=localStorage.getItem("selectedTheme")||document.documentElement.dataset.theme||THEMES.dark,currentTheme=ref(initialTheme);watch(currentTheme,(e,a)=>{a!==e&&(localStorage.setItem("selectedTheme",e),document.documentElement.dataset.theme=e,animateAllElements())});function animateAllElements(){const e=document.querySelectorAll("*");e.forEach(a=>{a.classList.add("changing-theme")}),document.documentElement.addEventListener("transitionend",function a(){e.forEach(n=>{n.classList.remove("changing-theme")}),document.documentElement.removeEventListener("transitionend",a)})}const useTheme=()=>({THEMES,currentTheme});var deemixIcon=` @@ -2935,7 +2939,7 @@ a { `)])]),e._v(" "),n("div",{directives:[{name:"show",rawName:"v-show",value:e.isExpanded,expression:"isExpanded"}],ref:"list",staticClass:"w-full pr-2",class:{slim:e.isSlim},attrs:{id:"download_list"}},e._l(e.queueList,function(i){return n("QueueItem",{key:i.uuid,attrs:{"queue-item":i},on:{"show-errors":e.showErrorsTab,"remove-item":e.onRemoveItem}})}),1)])},__vue_staticRenderFns__$o=[];const __vue_inject_styles__$o=function(e){!e||e("data-v-4304dee3_0",{source:"#toggle_download_tab[data-v-4304dee3]{width:25px;height:25px}#toggle_download_tab[data-v-4304dee3]::before{font-family:'Material Icons';font-style:normal;font-weight:400;content:'chevron_right'}#download_tab_container.tab-hidden #toggle_download_tab[data-v-4304dee3]::before{content:'chevron_left'}#download_tab_container.tab-hidden[data-v-4304dee3]::after{content:attr(data-label);display:flex;align-items:center;text-transform:capitalize;writing-mode:vertical-rl;line-height:2rem}#download_list[data-v-4304dee3]{height:calc(100% - 32px);padding-left:28px;overflow-y:scroll}#download_list[data-v-4304dee3]::-webkit-scrollbar{width:10px}#download_list[data-v-4304dee3]::-webkit-scrollbar-track{background:var(--panels-background)}#download_list[data-v-4304dee3]::-webkit-scrollbar-thumb{background:var(--panels-scroll);border-radius:4px;width:6px;padding:0 2px}",map:void 0,media:void 0})},__vue_scope_id__$o="data-v-4304dee3",__vue_module_identifier__$6=void 0,__vue_is_functional_template__$o=!1;function __vue_normalize__$o(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="TheDownloadBar.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$6(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$6.styles||(__vue_create_injector__$6.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` /*# sourceURL=`+s.map.sources[0]+" */",o+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(s.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+l+"]")),!c.element){const d=c.element=document.createElement("style");d.type="text/css",s.media&&d.setAttribute("media",s.media),n&&(d.setAttribute("data-group",l),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(n&&(u=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",u+1)),c.element.styleSheet)c.parts.push(o),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` -`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var TheDownloadBar=__vue_normalize__$o({render:__vue_render__$o,staticRenderFns:__vue_staticRenderFns__$o},__vue_inject_styles__$o,__vue_script__$o,__vue_scope_id__$o,__vue_is_functional_template__$o,__vue_module_identifier__$6,__vue_create_injector__$6),script$n={components:{TheSidebar,TheSearchBar,TheDownloadBar,TheTrackPreview,TheQualityModal,BaseLoadingPlaceholder,TheContextMenu,TheContent},data(){return{isSocketConnected:!1}},mounted(){socket.addEventListener("open",()=>{console.log("Connected to WebSocket"),this.isSocketConnected=!0})}};const __vue_script__$n=script$n;var __vue_render__$n=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{attrs:{id:"app"}},[n("div",{staticClass:"app-container"},[n("TheSidebar"),e._v(" "),n("div",{staticClass:"content-container"},[n("TheSearchBar"),e._v(" "),n("TheContent")],1),e._v(" "),n("TheDownloadBar")],1),e._v(" "),n("BaseLoadingPlaceholder",{attrs:{text:"Connecting to local server...",hidden:e.isSocketConnected,"additional-classes":"absolute top-0 left-0 w-screen h-screen bg-black bg-opacity-50 z-50"}}),e._v(" "),n("TheTrackPreview"),e._v(" "),n("TheQualityModal"),e._v(" "),n("TheContextMenu")],1)},__vue_staticRenderFns__$n=[];const __vue_inject_styles__$n=function(e){!e||e("data-v-33ab6b30_0",{source:".app-container{display:flex}.content-container{width:100%;display:flex;flex-direction:column}",map:void 0,media:void 0})},__vue_scope_id__$n=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$n=!1;function __vue_normalize__$n(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="App.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$5(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$5.styles||(__vue_create_injector__$5.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` +`);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var TheDownloadBar=__vue_normalize__$o({render:__vue_render__$o,staticRenderFns:__vue_staticRenderFns__$o},__vue_inject_styles__$o,__vue_script__$o,__vue_scope_id__$o,__vue_is_functional_template__$o,__vue_module_identifier__$6,__vue_create_injector__$6),script$n={components:{TheSidebar,TheSearchBar,TheDownloadBar,TheTrackPreview,TheQualityModal,BaseLoadingPlaceholder,TheContextMenu,TheContent,DeezerWarning},data(){return{isSocketConnected:!1}},mounted(){socket.addEventListener("open",()=>{console.log("Connected to WebSocket"),this.isSocketConnected=!0})}};const __vue_script__$n=script$n;var __vue_render__$n=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{attrs:{id:"app"}},[n("div",{staticClass:"app-container"},[n("TheSidebar"),e._v(" "),n("div",{staticClass:"content-container"},[n("TheSearchBar"),e._v(" "),n("DeezerWarning"),e._v(" "),n("TheContent")],1),e._v(" "),n("TheDownloadBar")],1),e._v(" "),n("BaseLoadingPlaceholder",{attrs:{text:"Connecting to local server...",hidden:e.isSocketConnected,"additional-classes":"absolute top-0 left-0 w-screen h-screen bg-black bg-opacity-50 z-50"}}),e._v(" "),n("TheTrackPreview"),e._v(" "),n("TheQualityModal"),e._v(" "),n("TheContextMenu")],1)},__vue_staticRenderFns__$n=[];const __vue_inject_styles__$n=function(e){!e||e("data-v-d3908e98_0",{source:".app-container{display:flex}.content-container{width:100%;display:flex;flex-direction:column}",map:void 0,media:void 0})},__vue_scope_id__$n=void 0,__vue_module_identifier__$5=void 0,__vue_is_functional_template__$n=!1;function __vue_normalize__$n(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};o.__file="App.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i;{let u;if(a&&(u=function(d){a.call(this,l(d))}),u!==void 0)if(o.functional){const d=o.render;o.render=function(h,m){return u.call(m),d(h,m)}}else{const d=o.beforeCreate;o.beforeCreate=d?[].concat(d,u):[u]}}return o}function __vue_create_injector__$5(){const e=document.head||document.getElementsByTagName("head")[0],a=__vue_create_injector__$5.styles||(__vue_create_injector__$5.styles={}),n=typeof navigator!="undefined"&&/msie [6-9]\\b/.test(navigator.userAgent.toLowerCase());return function(r,s){if(document.querySelector('style[data-vue-ssr-id~="'+r+'"]'))return;const l=n?s.media||"default":r,c=a[l]||(a[l]={ids:[],parts:[],element:void 0});if(!c.ids.includes(r)){let o=s.source,u=c.ids.length;if(c.ids.push(r),s.map&&(o+=` /*# sourceURL=`+s.map.sources[0]+" */",o+=` /*# sourceMappingURL=data:application/json;base64,`+btoa(unescape(encodeURIComponent(JSON.stringify(s.map))))+" */"),n&&(c.element=c.element||document.querySelector("style[data-group="+l+"]")),!c.element){const d=c.element=document.createElement("style");d.type="text/css",s.media&&d.setAttribute("media",s.media),n&&(d.setAttribute("data-group",l),d.setAttribute("data-next-index","0")),e.appendChild(d)}if(n&&(u=parseInt(c.element.getAttribute("data-next-index")),c.element.setAttribute("data-next-index",u+1)),c.element.styleSheet)c.parts.push(o),c.element.styleSheet.cssText=c.parts.filter(Boolean).join(` `);else{const d=document.createTextNode(o),f=c.element.childNodes;f[u]&&c.element.removeChild(f[u]),f.length?c.element.insertBefore(d,f[u]):c.element.appendChild(d)}}}}var App=__vue_normalize__$n({render:__vue_render__$n,staticRenderFns:__vue_staticRenderFns__$n},__vue_inject_styles__$n,__vue_script__$n,__vue_scope_id__$n,__vue_is_functional_template__$n,__vue_module_identifier__$5,__vue_create_injector__$5);/*! @@ -2946,7 +2950,7 @@ a { * vue-router v3.5.1 * (c) 2021 Evan You * @license MIT - */function extend(e,a){for(var n in a)e[n]=a[n];return e}var encodeReserveRE=/[!'()*]/g,encodeReserveReplacer=function(e){return"%"+e.charCodeAt(0).toString(16)},commaRE=/%2C/g,encode=function(e){return encodeURIComponent(e).replace(encodeReserveRE,encodeReserveReplacer).replace(commaRE,",")};function decode(e){try{return decodeURIComponent(e)}catch(a){}return e}function resolveQuery(e,a,n){a===void 0&&(a={});var i=n||parseQuery,r;try{r=i(e||"")}catch(c){r={}}for(var s in a){var l=a[s];r[s]=Array.isArray(l)?l.map(castQueryParamValue):castQueryParamValue(l)}return r}var castQueryParamValue=function(e){return e==null||typeof e=="object"?e:String(e)};function parseQuery(e){var a={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var i=n.replace(/\+/g," ").split("="),r=decode(i.shift()),s=i.length>0?decode(i.join("=")):null;a[r]===void 0?a[r]=s:Array.isArray(a[r])?a[r].push(s):a[r]=[a[r],s]}),a}function stringifyQuery(e){var a=e?Object.keys(e).map(function(n){var i=e[n];if(i===void 0)return"";if(i===null)return encode(n);if(Array.isArray(i)){var r=[];return i.forEach(function(s){s!==void 0&&(s===null?r.push(encode(n)):r.push(encode(n)+"="+encode(s)))}),r.join("&")}return encode(n)+"="+encode(i)}).filter(function(n){return n.length>0}).join("&"):null;return a?"?"+a:""}var trailingSlashRE=/\/?$/;function createRoute(e,a,n,i){var r=i&&i.options.stringifyQuery,s=a.query||{};try{s=clone(s)}catch(c){}var l={name:a.name||e&&e.name,meta:e&&e.meta||{},path:a.path||"/",hash:a.hash||"",query:s,params:a.params||{},fullPath:getFullPath(a,r),matched:e?formatMatch(e):[]};return n&&(l.redirectedFrom=getFullPath(n,r)),Object.freeze(l)}function clone(e){if(Array.isArray(e))return e.map(clone);if(e&&typeof e=="object"){var a={};for(var n in e)a[n]=clone(e[n]);return a}else return e}var START=createRoute(null,{path:"/"});function formatMatch(e){for(var a=[];e;)a.unshift(e),e=e.parent;return a}function getFullPath(e,a){var n=e.path,i=e.query;i===void 0&&(i={});var r=e.hash;r===void 0&&(r="");var s=a||stringifyQuery;return(n||"/")+s(i)+r}function isSameRoute(e,a,n){return a===START?e===a:a?e.path&&a.path?e.path.replace(trailingSlashRE,"")===a.path.replace(trailingSlashRE,"")&&(n||e.hash===a.hash&&isObjectEqual(e.query,a.query)):e.name&&a.name?e.name===a.name&&(n||e.hash===a.hash&&isObjectEqual(e.query,a.query)&&isObjectEqual(e.params,a.params)):!1:!1}function isObjectEqual(e,a){if(e===void 0&&(e={}),a===void 0&&(a={}),!e||!a)return e===a;var n=Object.keys(e).sort(),i=Object.keys(a).sort();return n.length!==i.length?!1:n.every(function(r,s){var l=e[r],c=i[s];if(c!==r)return!1;var o=a[r];return l==null||o==null?l===o:typeof l=="object"&&typeof o=="object"?isObjectEqual(l,o):String(l)===String(o)})}function isIncludedRoute(e,a){return e.path.replace(trailingSlashRE,"/").indexOf(a.path.replace(trailingSlashRE,"/"))===0&&(!a.hash||e.hash===a.hash)&&queryIncludes(e.query,a.query)}function queryIncludes(e,a){for(var n in a)if(!(n in e))return!1;return!0}function handleRouteEntered(e){for(var a=0;a=0&&(a=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:a}}function cleanPath(e){return e.replace(/\/\//g,"/")}var isarray=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},pathToRegexp_1=pathToRegexp,parse_1=parse,compile_1=compile,tokensToFunction_1=tokensToFunction,tokensToRegExp_1=tokensToRegExp,PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse(e,a){for(var n=[],i=0,r=0,s="",l=a&&a.delimiter||"/",c;(c=PATH_REGEXP.exec(e))!=null;){var o=c[0],u=c[1],d=c.index;if(s+=e.slice(r,d),r=d+o.length,u){s+=u[1];continue}var f=e[r],h=c[2],m=c[3],v=c[4],y=c[5],_=c[6],w=c[7];s&&(n.push(s),s="");var A=h!=null&&f!=null&&f!==h,C=_==="+"||_==="*",M=_==="?"||_==="*",F=c[2]||l,z=v||y;n.push({name:m||i++,prefix:h||"",delimiter:F,optional:M,repeat:C,partial:A,asterisk:!!w,pattern:z?escapeGroup(z):w?".*":"[^"+escapeString(F)+"]+?"})}return r1||!F.length)return F.length===0?a():a("span",{},F)}if(this.tag==="a")M.on=C,M.attrs={href:o,"aria-current":w};else{var z=findAnchor(this.$slots.default);if(z){z.isStatic=!1;var S=z.data=extend({},z.data);S.on=S.on||{};for(var D in S.on){var U=S.on[D];D in C&&(S.on[D]=Array.isArray(U)?U:[U])}for(var E in C)E in S.on?S.on[E].push(C[E]):S.on[E]=A;var I=z.data.attrs=extend({},z.data.attrs);I.href=o,I["aria-current"]=w}else M.on=C}return a(this.tag,M,this.$slots.default)}};function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var a=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(a))return}return e.preventDefault&&e.preventDefault(),!0}}function findAnchor(e){if(e){for(var a,n=0;n-1&&(_.params[M]=v.params[M]);return _.path=fillParams(A.path,_.params),h(A,_,y)}else if(_.path){_.params={};for(var F=0;F=e.length?n():e[r]?a(e[r],function(){i(r+1)}):i(r+1)};i(0)}var NavigationFailureType={redirected:2,aborted:4,cancelled:8,duplicated:16};function createNavigationRedirectedError(e,a){return createRouterError(e,a,NavigationFailureType.redirected,'Redirected when going from "'+e.fullPath+'" to "'+stringifyRoute(a)+'" via a navigation guard.')}function createNavigationDuplicatedError(e,a){var n=createRouterError(e,a,NavigationFailureType.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function createNavigationCancelledError(e,a){return createRouterError(e,a,NavigationFailureType.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+a.fullPath+'" with a new navigation.')}function createNavigationAbortedError(e,a){return createRouterError(e,a,NavigationFailureType.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+a.fullPath+'" via a navigation guard.')}function createRouterError(e,a,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=a,r.type=n,r}var propertiesToLog=["params","query","hash"];function stringifyRoute(e){if(typeof e=="string")return e;if("path"in e)return e.path;var a={};return propertiesToLog.forEach(function(n){n in e&&(a[n]=e[n])}),JSON.stringify(a,null,2)}function isError(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function isNavigationFailure(e,a){return isError(e)&&e._isRouter&&(a==null||e.type===a)}function resolveAsyncComponents(e){return function(a,n,i){var r=!1,s=0,l=null;flatMapComponents(e,function(c,o,u,d){if(typeof c=="function"&&c.cid===void 0){r=!0,s++;var f=once(function(y){isESModule(y)&&(y=y.default),c.resolved=typeof y=="function"?y:_Vue.extend(y),u.components[d]=y,s--,s<=0&&i()}),h=once(function(y){var _="Failed to resolve async component "+d+": "+y;l||(l=isError(y)?y:new Error(_),i(l))}),m;try{m=c(f,h)}catch(y){h(y)}if(m)if(typeof m.then=="function")m.then(f,h);else{var v=m.component;v&&typeof v.then=="function"&&v.then(f,h)}}}),r||i()}}function flatMapComponents(e,a){return flatten(e.map(function(n){return Object.keys(n.components).map(function(i){return a(n.components[i],n.instances[i],n,i)})}))}function flatten(e){return Array.prototype.concat.apply([],e)}var hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function isESModule(e){return e.__esModule||hasSymbol&&e[Symbol.toStringTag]==="Module"}function once(e){var a=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!a)return a=!0,e.apply(this,n)}}var History=function(a,n){this.router=a,this.base=normalizeBase(n),this.current=START,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};History.prototype.listen=function(a){this.cb=a},History.prototype.onReady=function(a,n){this.ready?a():(this.readyCbs.push(a),n&&this.readyErrorCbs.push(n))},History.prototype.onError=function(a){this.errorCbs.push(a)},History.prototype.transitionTo=function(a,n,i){var r=this,s;try{s=this.router.match(a,this.current)}catch(c){throw this.errorCbs.forEach(function(o){o(c)}),c}var l=this.current;this.confirmTransition(s,function(){r.updateRoute(s),n&&n(s),r.ensureURL(),r.router.afterHooks.forEach(function(c){c&&c(s,l)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(c){c(s)}))},function(c){i&&i(c),c&&!r.ready&&(!isNavigationFailure(c,NavigationFailureType.redirected)||l!==START)&&(r.ready=!0,r.readyErrorCbs.forEach(function(o){o(c)}))})},History.prototype.confirmTransition=function(a,n,i){var r=this,s=this.current;this.pending=a;var l=function(y){!isNavigationFailure(y)&&isError(y)&&(r.errorCbs.length?r.errorCbs.forEach(function(_){_(y)}):console.error(y)),i&&i(y)},c=a.matched.length-1,o=s.matched.length-1;if(isSameRoute(a,s)&&c===o&&a.matched[c]===s.matched[o])return this.ensureURL(),l(createNavigationDuplicatedError(s,a));var u=resolveQueue(this.current.matched,a.matched),d=u.updated,f=u.deactivated,h=u.activated,m=[].concat(extractLeaveGuards(f),this.router.beforeHooks,extractUpdateHooks(d),h.map(function(y){return y.beforeEnter}),resolveAsyncComponents(h)),v=function(y,_){if(r.pending!==a)return l(createNavigationCancelledError(s,a));try{y(a,s,function(w){w===!1?(r.ensureURL(!0),l(createNavigationAbortedError(s,a))):isError(w)?(r.ensureURL(!0),l(w)):typeof w=="string"||typeof w=="object"&&(typeof w.path=="string"||typeof w.name=="string")?(l(createNavigationRedirectedError(s,a)),typeof w=="object"&&w.replace?r.replace(w):r.push(w)):_(w)})}catch(w){l(w)}};runQueue(m,v,function(){var y=extractEnterGuards(h),_=y.concat(r.router.resolveHooks);runQueue(_,v,function(){if(r.pending!==a)return l(createNavigationCancelledError(s,a));r.pending=null,n(a),r.router.app&&r.router.app.$nextTick(function(){handleRouteEntered(a)})})})},History.prototype.updateRoute=function(a){this.current=a,this.cb&&this.cb(a)},History.prototype.setupListeners=function(){},History.prototype.teardown=function(){this.listeners.forEach(function(a){a()}),this.listeners=[],this.current=START,this.pending=null};function normalizeBase(e){if(!e)if(inBrowser){var a=document.querySelector("base");e=a&&a.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function resolveQueue(e,a){var n,i=Math.max(e.length,a.length);for(n=0;n0)){var r=this.router,s=r.options.scrollBehavior,l=supportsPushState&&s;l&&this.listeners.push(setupScroll());var c=function(){var o=i.current,u=getLocation(i.base);i.current===START&&u===i._startLocation||i.transitionTo(u,function(d){l&&handleScroll(r,d,o,!0)})};window.addEventListener("popstate",c),this.listeners.push(function(){window.removeEventListener("popstate",c)})}},a.prototype.go=function(i){window.history.go(i)},a.prototype.push=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){pushState(cleanPath(l.base+u.fullPath)),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.replace=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){replaceState(cleanPath(l.base+u.fullPath)),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.ensureURL=function(i){if(getLocation(this.base)!==this.current.fullPath){var r=cleanPath(this.base+this.current.fullPath);i?pushState(r):replaceState(r)}},a.prototype.getCurrentLocation=function(){return getLocation(this.base)},a}(History);function getLocation(e){var a=window.location.pathname;return e&&a.toLowerCase().indexOf(e.toLowerCase())===0&&(a=a.slice(e.length)),(a||"/")+window.location.search+window.location.hash}var HashHistory=function(e){function a(n,i,r){e.call(this,n,i),!(r&&checkFallback(this.base))&&ensureSlash()}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.setupListeners=function(){var i=this;if(!(this.listeners.length>0)){var r=this.router,s=r.options.scrollBehavior,l=supportsPushState&&s;l&&this.listeners.push(setupScroll());var c=function(){var u=i.current;!ensureSlash()||i.transitionTo(getHash(),function(d){l&&handleScroll(i.router,d,u,!0),supportsPushState||replaceHash(d.fullPath)})},o=supportsPushState?"popstate":"hashchange";window.addEventListener(o,c),this.listeners.push(function(){window.removeEventListener(o,c)})}},a.prototype.push=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){pushHash(u.fullPath),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.replace=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){replaceHash(u.fullPath),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.go=function(i){window.history.go(i)},a.prototype.ensureURL=function(i){var r=this.current.fullPath;getHash()!==r&&(i?pushHash(r):replaceHash(r))},a.prototype.getCurrentLocation=function(){return getHash()},a}(History);function checkFallback(e){var a=getLocation(e);if(!/^\/#/.test(a))return window.location.replace(cleanPath(e+"/#"+a)),!0}function ensureSlash(){var e=getHash();return e.charAt(0)==="/"?!0:(replaceHash("/"+e),!1)}function getHash(){var e=window.location.href,a=e.indexOf("#");return a<0?"":(e=e.slice(a+1),e)}function getUrl(e){var a=window.location.href,n=a.indexOf("#"),i=n>=0?a.slice(0,n):a;return i+"#"+e}function pushHash(e){supportsPushState?pushState(getUrl(e)):window.location.hash=e}function replaceHash(e){supportsPushState?replaceState(getUrl(e)):window.location.replace(getUrl(e))}var AbstractHistory=function(e){function a(n,i){e.call(this,n,i),this.stack=[],this.index=-1}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.push=function(i,r,s){var l=this;this.transitionTo(i,function(c){l.stack=l.stack.slice(0,l.index+1).concat(c),l.index++,r&&r(c)},s)},a.prototype.replace=function(i,r,s){var l=this;this.transitionTo(i,function(c){l.stack=l.stack.slice(0,l.index).concat(c),r&&r(c)},s)},a.prototype.go=function(i){var r=this,s=this.index+i;if(!(s<0||s>=this.stack.length)){var l=this.stack[s];this.confirmTransition(l,function(){var c=r.current;r.index=s,r.updateRoute(l),r.router.afterHooks.forEach(function(o){o&&o(l,c)})},function(c){isNavigationFailure(c,NavigationFailureType.duplicated)&&(r.index=s)})}},a.prototype.getCurrentLocation=function(){var i=this.stack[this.stack.length-1];return i?i.fullPath:"/"},a.prototype.ensureURL=function(){},a}(History),VueRouter=function(a){a===void 0&&(a={}),this.app=null,this.apps=[],this.options=a,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=createMatcher(a.routes||[],this);var n=a.mode||"hash";switch(this.fallback=n==="history"&&!supportsPushState&&a.fallback!==!1,this.fallback&&(n="hash"),inBrowser||(n="abstract"),this.mode=n,n){case"history":this.history=new HTML5History(this,a.base);break;case"hash":this.history=new HashHistory(this,a.base,this.fallback);break;case"abstract":this.history=new AbstractHistory(this,a.base);break}},prototypeAccessors={currentRoute:{configurable:!0}};VueRouter.prototype.match=function(a,n,i){return this.matcher.match(a,n,i)},prototypeAccessors.currentRoute.get=function(){return this.history&&this.history.current},VueRouter.prototype.init=function(a){var n=this;if(this.apps.push(a),a.$once("hook:destroyed",function(){var l=n.apps.indexOf(a);l>-1&&n.apps.splice(l,1),n.app===a&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=a;var i=this.history;if(i instanceof HTML5History||i instanceof HashHistory){var r=function(l){var c=i.current,o=n.options.scrollBehavior,u=supportsPushState&&o;u&&"fullPath"in l&&handleScroll(n,l,c,!1)},s=function(l){i.setupListeners(),r(l)};i.transitionTo(i.getCurrentLocation(),s,s)}i.listen(function(l){n.apps.forEach(function(c){c._route=l})})}},VueRouter.prototype.beforeEach=function(a){return registerHook(this.beforeHooks,a)},VueRouter.prototype.beforeResolve=function(a){return registerHook(this.resolveHooks,a)},VueRouter.prototype.afterEach=function(a){return registerHook(this.afterHooks,a)},VueRouter.prototype.onReady=function(a,n){this.history.onReady(a,n)},VueRouter.prototype.onError=function(a){this.history.onError(a)},VueRouter.prototype.push=function(a,n,i){var r=this;if(!n&&!i&&typeof Promise!="undefined")return new Promise(function(s,l){r.history.push(a,s,l)});this.history.push(a,n,i)},VueRouter.prototype.replace=function(a,n,i){var r=this;if(!n&&!i&&typeof Promise!="undefined")return new Promise(function(s,l){r.history.replace(a,s,l)});this.history.replace(a,n,i)},VueRouter.prototype.go=function(a){this.history.go(a)},VueRouter.prototype.back=function(){this.go(-1)},VueRouter.prototype.forward=function(){this.go(1)},VueRouter.prototype.getMatchedComponents=function(a){var n=a?a.matched?a:this.resolve(a).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(i){return Object.keys(i.components).map(function(r){return i.components[r]})})):[]},VueRouter.prototype.resolve=function(a,n,i){n=n||this.history.current;var r=normalizeLocation(a,n,i,this),s=this.match(r,n),l=s.redirectedFrom||s.fullPath,c=this.history.base,o=createHref(c,l,this.mode);return{location:r,route:s,href:o,normalizedTo:r,resolved:s}},VueRouter.prototype.getRoutes=function(){return this.matcher.getRoutes()},VueRouter.prototype.addRoute=function(a,n){this.matcher.addRoute(a,n),this.history.current!==START&&this.history.transitionTo(this.history.getCurrentLocation())},VueRouter.prototype.addRoutes=function(a){this.matcher.addRoutes(a),this.history.current!==START&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(VueRouter.prototype,prototypeAccessors);function registerHook(e,a){return e.push(a),function(){var n=e.indexOf(a);n>-1&&e.splice(n,1)}}function createHref(e,a,n){var i=n==="hash"?"#"+a:a;return e?cleanPath(e+"/"+i):i}VueRouter.install=install,VueRouter.version="3.5.1",VueRouter.isNavigationFailure=isNavigationFailure,VueRouter.NavigationFailureType=NavigationFailureType,VueRouter.START_LOCATION=START,inBrowser&&window.Vue&&window.Vue.use(VueRouter);const isOnline=ref(navigator.onLine);window.addEventListener("online",()=>{isOnline.value=!0}),window.addEventListener("offline",()=>{isOnline.value=!1});const useOnline=()=>({isOnline});var paypal=` + */function extend(e,a){for(var n in a)e[n]=a[n];return e}var encodeReserveRE=/[!'()*]/g,encodeReserveReplacer=function(e){return"%"+e.charCodeAt(0).toString(16)},commaRE=/%2C/g,encode=function(e){return encodeURIComponent(e).replace(encodeReserveRE,encodeReserveReplacer).replace(commaRE,",")};function decode(e){try{return decodeURIComponent(e)}catch(a){}return e}function resolveQuery(e,a,n){a===void 0&&(a={});var i=n||parseQuery,r;try{r=i(e||"")}catch(c){r={}}for(var s in a){var l=a[s];r[s]=Array.isArray(l)?l.map(castQueryParamValue):castQueryParamValue(l)}return r}var castQueryParamValue=function(e){return e==null||typeof e=="object"?e:String(e)};function parseQuery(e){var a={};return e=e.trim().replace(/^(\?|#|&)/,""),e&&e.split("&").forEach(function(n){var i=n.replace(/\+/g," ").split("="),r=decode(i.shift()),s=i.length>0?decode(i.join("=")):null;a[r]===void 0?a[r]=s:Array.isArray(a[r])?a[r].push(s):a[r]=[a[r],s]}),a}function stringifyQuery(e){var a=e?Object.keys(e).map(function(n){var i=e[n];if(i===void 0)return"";if(i===null)return encode(n);if(Array.isArray(i)){var r=[];return i.forEach(function(s){s!==void 0&&(s===null?r.push(encode(n)):r.push(encode(n)+"="+encode(s)))}),r.join("&")}return encode(n)+"="+encode(i)}).filter(function(n){return n.length>0}).join("&"):null;return a?"?"+a:""}var trailingSlashRE=/\/?$/;function createRoute(e,a,n,i){var r=i&&i.options.stringifyQuery,s=a.query||{};try{s=clone(s)}catch(c){}var l={name:a.name||e&&e.name,meta:e&&e.meta||{},path:a.path||"/",hash:a.hash||"",query:s,params:a.params||{},fullPath:getFullPath(a,r),matched:e?formatMatch(e):[]};return n&&(l.redirectedFrom=getFullPath(n,r)),Object.freeze(l)}function clone(e){if(Array.isArray(e))return e.map(clone);if(e&&typeof e=="object"){var a={};for(var n in e)a[n]=clone(e[n]);return a}else return e}var START=createRoute(null,{path:"/"});function formatMatch(e){for(var a=[];e;)a.unshift(e),e=e.parent;return a}function getFullPath(e,a){var n=e.path,i=e.query;i===void 0&&(i={});var r=e.hash;r===void 0&&(r="");var s=a||stringifyQuery;return(n||"/")+s(i)+r}function isSameRoute(e,a,n){return a===START?e===a:a?e.path&&a.path?e.path.replace(trailingSlashRE,"")===a.path.replace(trailingSlashRE,"")&&(n||e.hash===a.hash&&isObjectEqual(e.query,a.query)):e.name&&a.name?e.name===a.name&&(n||e.hash===a.hash&&isObjectEqual(e.query,a.query)&&isObjectEqual(e.params,a.params)):!1:!1}function isObjectEqual(e,a){if(e===void 0&&(e={}),a===void 0&&(a={}),!e||!a)return e===a;var n=Object.keys(e).sort(),i=Object.keys(a).sort();return n.length!==i.length?!1:n.every(function(r,s){var l=e[r],c=i[s];if(c!==r)return!1;var o=a[r];return l==null||o==null?l===o:typeof l=="object"&&typeof o=="object"?isObjectEqual(l,o):String(l)===String(o)})}function isIncludedRoute(e,a){return e.path.replace(trailingSlashRE,"/").indexOf(a.path.replace(trailingSlashRE,"/"))===0&&(!a.hash||e.hash===a.hash)&&queryIncludes(e.query,a.query)}function queryIncludes(e,a){for(var n in a)if(!(n in e))return!1;return!0}function handleRouteEntered(e){for(var a=0;a=0&&(a=e.slice(i),e=e.slice(0,i));var r=e.indexOf("?");return r>=0&&(n=e.slice(r+1),e=e.slice(0,r)),{path:e,query:n,hash:a}}function cleanPath(e){return e.replace(/\/\//g,"/")}var isarray=Array.isArray||function(e){return Object.prototype.toString.call(e)=="[object Array]"},pathToRegexp_1=pathToRegexp,parse_1=parse,compile_1=compile,tokensToFunction_1=tokensToFunction,tokensToRegExp_1=tokensToRegExp,PATH_REGEXP=new RegExp(["(\\\\.)","([\\/.])?(?:(?:\\:(\\w+)(?:\\(((?:\\\\.|[^\\\\()])+)\\))?|\\(((?:\\\\.|[^\\\\()])+)\\))([+*?])?|(\\*))"].join("|"),"g");function parse(e,a){for(var n=[],i=0,r=0,s="",l=a&&a.delimiter||"/",c;(c=PATH_REGEXP.exec(e))!=null;){var o=c[0],u=c[1],d=c.index;if(s+=e.slice(r,d),r=d+o.length,u){s+=u[1];continue}var f=e[r],h=c[2],m=c[3],v=c[4],y=c[5],_=c[6],w=c[7];s&&(n.push(s),s="");var A=h!=null&&f!=null&&f!==h,C=_==="+"||_==="*",M=_==="?"||_==="*",F=c[2]||l,z=v||y;n.push({name:m||i++,prefix:h||"",delimiter:F,optional:M,repeat:C,partial:A,asterisk:!!w,pattern:z?escapeGroup(z):w?".*":"[^"+escapeString(F)+"]+?"})}return r1||!F.length)return F.length===0?a():a("span",{},F)}if(this.tag==="a")M.on=C,M.attrs={href:o,"aria-current":w};else{var z=findAnchor(this.$slots.default);if(z){z.isStatic=!1;var S=z.data=extend({},z.data);S.on=S.on||{};for(var R in S.on){var U=S.on[R];R in C&&(S.on[R]=Array.isArray(U)?U:[U])}for(var E in C)E in S.on?S.on[E].push(C[E]):S.on[E]=A;var I=z.data.attrs=extend({},z.data.attrs);I.href=o,I["aria-current"]=w}else M.on=C}return a(this.tag,M,this.$slots.default)}};function guardEvent(e){if(!(e.metaKey||e.altKey||e.ctrlKey||e.shiftKey)&&!e.defaultPrevented&&!(e.button!==void 0&&e.button!==0)){if(e.currentTarget&&e.currentTarget.getAttribute){var a=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(a))return}return e.preventDefault&&e.preventDefault(),!0}}function findAnchor(e){if(e){for(var a,n=0;n-1&&(_.params[M]=v.params[M]);return _.path=fillParams(A.path,_.params),h(A,_,y)}else if(_.path){_.params={};for(var F=0;F=e.length?n():e[r]?a(e[r],function(){i(r+1)}):i(r+1)};i(0)}var NavigationFailureType={redirected:2,aborted:4,cancelled:8,duplicated:16};function createNavigationRedirectedError(e,a){return createRouterError(e,a,NavigationFailureType.redirected,'Redirected when going from "'+e.fullPath+'" to "'+stringifyRoute(a)+'" via a navigation guard.')}function createNavigationDuplicatedError(e,a){var n=createRouterError(e,a,NavigationFailureType.duplicated,'Avoided redundant navigation to current location: "'+e.fullPath+'".');return n.name="NavigationDuplicated",n}function createNavigationCancelledError(e,a){return createRouterError(e,a,NavigationFailureType.cancelled,'Navigation cancelled from "'+e.fullPath+'" to "'+a.fullPath+'" with a new navigation.')}function createNavigationAbortedError(e,a){return createRouterError(e,a,NavigationFailureType.aborted,'Navigation aborted from "'+e.fullPath+'" to "'+a.fullPath+'" via a navigation guard.')}function createRouterError(e,a,n,i){var r=new Error(i);return r._isRouter=!0,r.from=e,r.to=a,r.type=n,r}var propertiesToLog=["params","query","hash"];function stringifyRoute(e){if(typeof e=="string")return e;if("path"in e)return e.path;var a={};return propertiesToLog.forEach(function(n){n in e&&(a[n]=e[n])}),JSON.stringify(a,null,2)}function isError(e){return Object.prototype.toString.call(e).indexOf("Error")>-1}function isNavigationFailure(e,a){return isError(e)&&e._isRouter&&(a==null||e.type===a)}function resolveAsyncComponents(e){return function(a,n,i){var r=!1,s=0,l=null;flatMapComponents(e,function(c,o,u,d){if(typeof c=="function"&&c.cid===void 0){r=!0,s++;var f=once(function(y){isESModule(y)&&(y=y.default),c.resolved=typeof y=="function"?y:_Vue.extend(y),u.components[d]=y,s--,s<=0&&i()}),h=once(function(y){var _="Failed to resolve async component "+d+": "+y;l||(l=isError(y)?y:new Error(_),i(l))}),m;try{m=c(f,h)}catch(y){h(y)}if(m)if(typeof m.then=="function")m.then(f,h);else{var v=m.component;v&&typeof v.then=="function"&&v.then(f,h)}}}),r||i()}}function flatMapComponents(e,a){return flatten(e.map(function(n){return Object.keys(n.components).map(function(i){return a(n.components[i],n.instances[i],n,i)})}))}function flatten(e){return Array.prototype.concat.apply([],e)}var hasSymbol=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol";function isESModule(e){return e.__esModule||hasSymbol&&e[Symbol.toStringTag]==="Module"}function once(e){var a=!1;return function(){for(var n=[],i=arguments.length;i--;)n[i]=arguments[i];if(!a)return a=!0,e.apply(this,n)}}var History=function(a,n){this.router=a,this.base=normalizeBase(n),this.current=START,this.pending=null,this.ready=!1,this.readyCbs=[],this.readyErrorCbs=[],this.errorCbs=[],this.listeners=[]};History.prototype.listen=function(a){this.cb=a},History.prototype.onReady=function(a,n){this.ready?a():(this.readyCbs.push(a),n&&this.readyErrorCbs.push(n))},History.prototype.onError=function(a){this.errorCbs.push(a)},History.prototype.transitionTo=function(a,n,i){var r=this,s;try{s=this.router.match(a,this.current)}catch(c){throw this.errorCbs.forEach(function(o){o(c)}),c}var l=this.current;this.confirmTransition(s,function(){r.updateRoute(s),n&&n(s),r.ensureURL(),r.router.afterHooks.forEach(function(c){c&&c(s,l)}),r.ready||(r.ready=!0,r.readyCbs.forEach(function(c){c(s)}))},function(c){i&&i(c),c&&!r.ready&&(!isNavigationFailure(c,NavigationFailureType.redirected)||l!==START)&&(r.ready=!0,r.readyErrorCbs.forEach(function(o){o(c)}))})},History.prototype.confirmTransition=function(a,n,i){var r=this,s=this.current;this.pending=a;var l=function(y){!isNavigationFailure(y)&&isError(y)&&(r.errorCbs.length?r.errorCbs.forEach(function(_){_(y)}):console.error(y)),i&&i(y)},c=a.matched.length-1,o=s.matched.length-1;if(isSameRoute(a,s)&&c===o&&a.matched[c]===s.matched[o])return this.ensureURL(),l(createNavigationDuplicatedError(s,a));var u=resolveQueue(this.current.matched,a.matched),d=u.updated,f=u.deactivated,h=u.activated,m=[].concat(extractLeaveGuards(f),this.router.beforeHooks,extractUpdateHooks(d),h.map(function(y){return y.beforeEnter}),resolveAsyncComponents(h)),v=function(y,_){if(r.pending!==a)return l(createNavigationCancelledError(s,a));try{y(a,s,function(w){w===!1?(r.ensureURL(!0),l(createNavigationAbortedError(s,a))):isError(w)?(r.ensureURL(!0),l(w)):typeof w=="string"||typeof w=="object"&&(typeof w.path=="string"||typeof w.name=="string")?(l(createNavigationRedirectedError(s,a)),typeof w=="object"&&w.replace?r.replace(w):r.push(w)):_(w)})}catch(w){l(w)}};runQueue(m,v,function(){var y=extractEnterGuards(h),_=y.concat(r.router.resolveHooks);runQueue(_,v,function(){if(r.pending!==a)return l(createNavigationCancelledError(s,a));r.pending=null,n(a),r.router.app&&r.router.app.$nextTick(function(){handleRouteEntered(a)})})})},History.prototype.updateRoute=function(a){this.current=a,this.cb&&this.cb(a)},History.prototype.setupListeners=function(){},History.prototype.teardown=function(){this.listeners.forEach(function(a){a()}),this.listeners=[],this.current=START,this.pending=null};function normalizeBase(e){if(!e)if(inBrowser){var a=document.querySelector("base");e=a&&a.getAttribute("href")||"/",e=e.replace(/^https?:\/\/[^\/]+/,"")}else e="/";return e.charAt(0)!=="/"&&(e="/"+e),e.replace(/\/$/,"")}function resolveQueue(e,a){var n,i=Math.max(e.length,a.length);for(n=0;n0)){var r=this.router,s=r.options.scrollBehavior,l=supportsPushState&&s;l&&this.listeners.push(setupScroll());var c=function(){var o=i.current,u=getLocation(i.base);i.current===START&&u===i._startLocation||i.transitionTo(u,function(d){l&&handleScroll(r,d,o,!0)})};window.addEventListener("popstate",c),this.listeners.push(function(){window.removeEventListener("popstate",c)})}},a.prototype.go=function(i){window.history.go(i)},a.prototype.push=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){pushState(cleanPath(l.base+u.fullPath)),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.replace=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){replaceState(cleanPath(l.base+u.fullPath)),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.ensureURL=function(i){if(getLocation(this.base)!==this.current.fullPath){var r=cleanPath(this.base+this.current.fullPath);i?pushState(r):replaceState(r)}},a.prototype.getCurrentLocation=function(){return getLocation(this.base)},a}(History);function getLocation(e){var a=window.location.pathname;return e&&a.toLowerCase().indexOf(e.toLowerCase())===0&&(a=a.slice(e.length)),(a||"/")+window.location.search+window.location.hash}var HashHistory=function(e){function a(n,i,r){e.call(this,n,i),!(r&&checkFallback(this.base))&&ensureSlash()}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.setupListeners=function(){var i=this;if(!(this.listeners.length>0)){var r=this.router,s=r.options.scrollBehavior,l=supportsPushState&&s;l&&this.listeners.push(setupScroll());var c=function(){var u=i.current;!ensureSlash()||i.transitionTo(getHash(),function(d){l&&handleScroll(i.router,d,u,!0),supportsPushState||replaceHash(d.fullPath)})},o=supportsPushState?"popstate":"hashchange";window.addEventListener(o,c),this.listeners.push(function(){window.removeEventListener(o,c)})}},a.prototype.push=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){pushHash(u.fullPath),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.replace=function(i,r,s){var l=this,c=this,o=c.current;this.transitionTo(i,function(u){replaceHash(u.fullPath),handleScroll(l.router,u,o,!1),r&&r(u)},s)},a.prototype.go=function(i){window.history.go(i)},a.prototype.ensureURL=function(i){var r=this.current.fullPath;getHash()!==r&&(i?pushHash(r):replaceHash(r))},a.prototype.getCurrentLocation=function(){return getHash()},a}(History);function checkFallback(e){var a=getLocation(e);if(!/^\/#/.test(a))return window.location.replace(cleanPath(e+"/#"+a)),!0}function ensureSlash(){var e=getHash();return e.charAt(0)==="/"?!0:(replaceHash("/"+e),!1)}function getHash(){var e=window.location.href,a=e.indexOf("#");return a<0?"":(e=e.slice(a+1),e)}function getUrl(e){var a=window.location.href,n=a.indexOf("#"),i=n>=0?a.slice(0,n):a;return i+"#"+e}function pushHash(e){supportsPushState?pushState(getUrl(e)):window.location.hash=e}function replaceHash(e){supportsPushState?replaceState(getUrl(e)):window.location.replace(getUrl(e))}var AbstractHistory=function(e){function a(n,i){e.call(this,n,i),this.stack=[],this.index=-1}return e&&(a.__proto__=e),a.prototype=Object.create(e&&e.prototype),a.prototype.constructor=a,a.prototype.push=function(i,r,s){var l=this;this.transitionTo(i,function(c){l.stack=l.stack.slice(0,l.index+1).concat(c),l.index++,r&&r(c)},s)},a.prototype.replace=function(i,r,s){var l=this;this.transitionTo(i,function(c){l.stack=l.stack.slice(0,l.index).concat(c),r&&r(c)},s)},a.prototype.go=function(i){var r=this,s=this.index+i;if(!(s<0||s>=this.stack.length)){var l=this.stack[s];this.confirmTransition(l,function(){var c=r.current;r.index=s,r.updateRoute(l),r.router.afterHooks.forEach(function(o){o&&o(l,c)})},function(c){isNavigationFailure(c,NavigationFailureType.duplicated)&&(r.index=s)})}},a.prototype.getCurrentLocation=function(){var i=this.stack[this.stack.length-1];return i?i.fullPath:"/"},a.prototype.ensureURL=function(){},a}(History),VueRouter=function(a){a===void 0&&(a={}),this.app=null,this.apps=[],this.options=a,this.beforeHooks=[],this.resolveHooks=[],this.afterHooks=[],this.matcher=createMatcher(a.routes||[],this);var n=a.mode||"hash";switch(this.fallback=n==="history"&&!supportsPushState&&a.fallback!==!1,this.fallback&&(n="hash"),inBrowser||(n="abstract"),this.mode=n,n){case"history":this.history=new HTML5History(this,a.base);break;case"hash":this.history=new HashHistory(this,a.base,this.fallback);break;case"abstract":this.history=new AbstractHistory(this,a.base);break}},prototypeAccessors={currentRoute:{configurable:!0}};VueRouter.prototype.match=function(a,n,i){return this.matcher.match(a,n,i)},prototypeAccessors.currentRoute.get=function(){return this.history&&this.history.current},VueRouter.prototype.init=function(a){var n=this;if(this.apps.push(a),a.$once("hook:destroyed",function(){var l=n.apps.indexOf(a);l>-1&&n.apps.splice(l,1),n.app===a&&(n.app=n.apps[0]||null),n.app||n.history.teardown()}),!this.app){this.app=a;var i=this.history;if(i instanceof HTML5History||i instanceof HashHistory){var r=function(l){var c=i.current,o=n.options.scrollBehavior,u=supportsPushState&&o;u&&"fullPath"in l&&handleScroll(n,l,c,!1)},s=function(l){i.setupListeners(),r(l)};i.transitionTo(i.getCurrentLocation(),s,s)}i.listen(function(l){n.apps.forEach(function(c){c._route=l})})}},VueRouter.prototype.beforeEach=function(a){return registerHook(this.beforeHooks,a)},VueRouter.prototype.beforeResolve=function(a){return registerHook(this.resolveHooks,a)},VueRouter.prototype.afterEach=function(a){return registerHook(this.afterHooks,a)},VueRouter.prototype.onReady=function(a,n){this.history.onReady(a,n)},VueRouter.prototype.onError=function(a){this.history.onError(a)},VueRouter.prototype.push=function(a,n,i){var r=this;if(!n&&!i&&typeof Promise!="undefined")return new Promise(function(s,l){r.history.push(a,s,l)});this.history.push(a,n,i)},VueRouter.prototype.replace=function(a,n,i){var r=this;if(!n&&!i&&typeof Promise!="undefined")return new Promise(function(s,l){r.history.replace(a,s,l)});this.history.replace(a,n,i)},VueRouter.prototype.go=function(a){this.history.go(a)},VueRouter.prototype.back=function(){this.go(-1)},VueRouter.prototype.forward=function(){this.go(1)},VueRouter.prototype.getMatchedComponents=function(a){var n=a?a.matched?a:this.resolve(a).route:this.currentRoute;return n?[].concat.apply([],n.matched.map(function(i){return Object.keys(i.components).map(function(r){return i.components[r]})})):[]},VueRouter.prototype.resolve=function(a,n,i){n=n||this.history.current;var r=normalizeLocation(a,n,i,this),s=this.match(r,n),l=s.redirectedFrom||s.fullPath,c=this.history.base,o=createHref(c,l,this.mode);return{location:r,route:s,href:o,normalizedTo:r,resolved:s}},VueRouter.prototype.getRoutes=function(){return this.matcher.getRoutes()},VueRouter.prototype.addRoute=function(a,n){this.matcher.addRoute(a,n),this.history.current!==START&&this.history.transitionTo(this.history.getCurrentLocation())},VueRouter.prototype.addRoutes=function(a){this.matcher.addRoutes(a),this.history.current!==START&&this.history.transitionTo(this.history.getCurrentLocation())},Object.defineProperties(VueRouter.prototype,prototypeAccessors);function registerHook(e,a){return e.push(a),function(){var n=e.indexOf(a);n>-1&&e.splice(n,1)}}function createHref(e,a,n){var i=n==="hash"?"#"+a:a;return e?cleanPath(e+"/"+i):i}VueRouter.install=install,VueRouter.version="3.5.1",VueRouter.isNavigationFailure=isNavigationFailure,VueRouter.NavigationFailureType=NavigationFailureType,VueRouter.START_LOCATION=START,inBrowser&&window.Vue&&window.Vue.use(VueRouter);const isOnline=ref(navigator.onLine);window.addEventListener("online",()=>{isOnline.value=!0}),window.addEventListener("offline",()=>{isOnline.value=!1});const useOnline=()=>({isOnline});var paypal=` @@ -3044,7 +3048,7 @@ a { Now you can see the Client ID. If you click on "Show Client Secret" the client secret will be revealed.`),n("br"),e._v(" "),n("img",{attrs:{src:"https://i.imgur.com/foEfIhO.png",alt:"Screen of client ID and Secret"}})])},function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("p",{staticClass:"mb-2 text-base"},[e._v(` You can get your Spotify Username from the `),n("a",{attrs:{href:"https://www.spotify.com/it/account/overview/",target:"_blank"}},[e._v("Overview page on Spotify's Website")]),e._v(`. - `)])}];const __vue_inject_styles__$k=void 0,__vue_scope_id__$k=void 0,__vue_is_functional_template__$k=!1;function __vue_normalize__$k(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};return o.__file="InfoSpotifyFeatures.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i,o}var InfoSpotifyFeatures=__vue_normalize__$k({render:__vue_render__$k,staticRenderFns:__vue_staticRenderFns__$k},__vue_inject_styles__$k,__vue_script__$k,__vue_scope_id__$k,__vue_is_functional_template__$k),freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$c=Object.prototype,hasOwnProperty$9=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(e){var a=hasOwnProperty$9.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var i=!0}catch(s){}var r=nativeObjectToString$1.call(e);return i&&(a?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var symbolTag$1="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag$1}function arrayMap(e,a){for(var n=-1,i=e==null?0:e.length,r=Array(i);++n-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,a){var n=typeof e;return a=a??MAX_SAFE_INTEGER$1,!!a&&(n=="number"||n!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$9=Object.prototype;function isPrototype(e){var a=e&&e.constructor,n=typeof a=="function"&&a.prototype||objectProto$9;return e===n}function baseTimes(e,a){for(var n=-1,i=Array(e);++n-1}function listCacheSet(e,a){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,a])):n[i][1]=a,this}function ListCache(e){var a=-1,n=e==null?0:e.length;for(this.clear();++ac))return!1;var u=s.get(e),d=s.get(a);if(u&&d)return u==a&&d==e;var f=-1,h=!0,m=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(s.set(e,a),s.set(a,e);++f=a||S<0||f&&D>=s}function w(){var z=now();if(_(z))return A(z);c=setTimeout(w,y(z))}function A(z){return c=void 0,h&&i?m(z):(i=r=void 0,l)}function C(){c!==void 0&&clearTimeout(c),u=0,i=o=r=c=void 0}function M(){return c===void 0?l:A(now())}function F(){var z=now(),S=_(z);if(i=arguments,r=this,o=z,S){if(c===void 0)return v(o);if(f)return clearTimeout(c),c=setTimeout(w,a),m(o)}return c===void 0&&(c=setTimeout(w,a)),l}return F.cancel=C,F.flush=M,F}function arrayIncludesWith(e,a,n){for(var i=-1,r=e==null?0:e.length;++ia||s&&l&&o&&!c&&!u||i&&l&&o||!n&&o||!r)return 1;if(!i&&!s&&!u&&e=c)return o;var u=n[i];return o*(u=="desc"?-1:1)}}return e.index-a.index}function baseOrderBy(e,a,n){a.length?a=arrayMap(a,function(s){return isArray(s)?function(l){return baseGet(l,s.length===1?s[0]:s)}:s}):a=[identity];var i=-1;a=arrayMap(a,baseUnary(baseIteratee));var r=baseMap(e,function(s,l,c){var o=arrayMap(a,function(u){return u(s)});return{criteria:o,index:++i,value:s}});return baseSortBy(r,function(s,l){return compareMultiple(s,l,n)})}function orderBy(e,a,n,i){return e==null?[]:(isArray(a)||(a=a==null?[]:[a]),n=i?void 0:n,isArray(n)||(n=n==null?[]:[n]),baseOrderBy(e,a,n))}var INFINITY=1/0,createSet=Set$1&&1/setToArray(new Set$1([,-0]))[1]==INFINITY?function(e){return new Set$1(e)}:noop,LARGE_ARRAY_SIZE=200;function baseUniq(e,a,n){var i=-1,r=arrayIncludes,s=e.length,l=!0,c=[],o=c;if(n)l=!1,r=arrayIncludesWith;else if(s>=LARGE_ARRAY_SIZE){var u=a?null:createSet(e);if(u)return setToArray(u);l=!1,r=cacheHas,o=new SetCache}else o=a?[]:c;e:for(;++in.artistReleases[n.currentTab])}),i=computed(()=>a.root.$router.currentRoute.params.id),r=ref(!1);getArtistData(unref(i)).then(l=>{r.value=!0;const c={data:[l],hasLoaded:unref(r)},{data:[{artistName:o,artistPictureXL:u,artistReleases:d}]}=standardizeData(c,formatArtistData);Object.assign(n,{artistName:o,artistPicture:u,artistReleases:d,currentTab:Object.keys(d)[0]})}).catch(l=>console.error(l));const s=computed(()=>{if(!unref(r))return[];let l=n.sortKey;return l==="releaseTracksNumber"&&(l=c=>new Number(c.releaseTracksNumber)),orderBy(n.currentRelease,l,n.sortOrder)});return{...toRefs(n),downloadLink:computed(()=>`https://www.deezer.com/artist/${unref(i)}`),headerStyle:computed(()=>({backgroundImage:`linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url(${n.artistPicture})`})),sortedData:s,sendAddToQueue,checkNewRelease}},data(){const e=this.$t.bind(this),a=this.$tc.bind(this);return{head:[{title:a("globals.listTabs.title",1),sortKey:"releaseTitle"},{title:e("globals.listTabs.releaseDate"),sortKey:"releaseDate"},{title:a("globals.listTabs.track",2),sortKey:"releaseTracksNumber"},{title:"",width:null}]}},methods:{sortBy(e){e===this.sortKey?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")}}});const __vue_script__$j=script$j;var __vue_render__$j=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{staticClass:"relative image-header"},[n("header",{staticClass:"flex items-center",style:e.headerStyle},[n("h1",{staticClass:"m-0"},[e._v(e._s(e.artistName))]),e._v(" "),n("div",{staticClass:"grid w-16 h-16 ml-auto rounded-full cursor-pointer bg-primary text-grayscale-870 place-items-center",attrs:{"aria-label":"download",role:"button","data-cm-link":e.downloadLink},on:{click:function(i){return i.stopPropagation(),e.sendAddToQueue(e.downloadLink)}}},[n("i",{staticClass:"text-4xl material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),n("BaseTabs",e._l(e.artistReleases,function(i,r){return n("BaseTab",{key:r,class:{active:e.currentTab===r},on:{click:function(s){e.currentTab=r}}},[e._v(` + `)])}];const __vue_inject_styles__$k=void 0,__vue_scope_id__$k=void 0,__vue_is_functional_template__$k=!1;function __vue_normalize__$k(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};return o.__file="InfoSpotifyFeatures.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i,o}var InfoSpotifyFeatures=__vue_normalize__$k({render:__vue_render__$k,staticRenderFns:__vue_staticRenderFns__$k},__vue_inject_styles__$k,__vue_script__$k,__vue_scope_id__$k,__vue_is_functional_template__$k),freeGlobal=typeof global=="object"&&global&&global.Object===Object&&global,freeSelf=typeof self=="object"&&self&&self.Object===Object&&self,root=freeGlobal||freeSelf||Function("return this")(),Symbol$1=root.Symbol,objectProto$c=Object.prototype,hasOwnProperty$9=objectProto$c.hasOwnProperty,nativeObjectToString$1=objectProto$c.toString,symToStringTag$1=Symbol$1?Symbol$1.toStringTag:void 0;function getRawTag(e){var a=hasOwnProperty$9.call(e,symToStringTag$1),n=e[symToStringTag$1];try{e[symToStringTag$1]=void 0;var i=!0}catch(s){}var r=nativeObjectToString$1.call(e);return i&&(a?e[symToStringTag$1]=n:delete e[symToStringTag$1]),r}var objectProto$b=Object.prototype,nativeObjectToString=objectProto$b.toString;function objectToString(e){return nativeObjectToString.call(e)}var nullTag="[object Null]",undefinedTag="[object Undefined]",symToStringTag=Symbol$1?Symbol$1.toStringTag:void 0;function baseGetTag(e){return e==null?e===void 0?undefinedTag:nullTag:symToStringTag&&symToStringTag in Object(e)?getRawTag(e):objectToString(e)}function isObjectLike(e){return e!=null&&typeof e=="object"}var symbolTag$1="[object Symbol]";function isSymbol(e){return typeof e=="symbol"||isObjectLike(e)&&baseGetTag(e)==symbolTag$1}function arrayMap(e,a){for(var n=-1,i=e==null?0:e.length,r=Array(i);++n-1}var MAX_SAFE_INTEGER$1=9007199254740991,reIsUint=/^(?:0|[1-9]\d*)$/;function isIndex(e,a){var n=typeof e;return a=a??MAX_SAFE_INTEGER$1,!!a&&(n=="number"||n!="symbol"&&reIsUint.test(e))&&e>-1&&e%1==0&&e-1&&e%1==0&&e<=MAX_SAFE_INTEGER}function isArrayLike(e){return e!=null&&isLength(e.length)&&!isFunction(e)}var objectProto$9=Object.prototype;function isPrototype(e){var a=e&&e.constructor,n=typeof a=="function"&&a.prototype||objectProto$9;return e===n}function baseTimes(e,a){for(var n=-1,i=Array(e);++n-1}function listCacheSet(e,a){var n=this.__data__,i=assocIndexOf(n,e);return i<0?(++this.size,n.push([e,a])):n[i][1]=a,this}function ListCache(e){var a=-1,n=e==null?0:e.length;for(this.clear();++ac))return!1;var u=s.get(e),d=s.get(a);if(u&&d)return u==a&&d==e;var f=-1,h=!0,m=n&COMPARE_UNORDERED_FLAG$3?new SetCache:void 0;for(s.set(e,a),s.set(a,e);++f=a||S<0||f&&R>=s}function w(){var z=now();if(_(z))return A(z);c=setTimeout(w,y(z))}function A(z){return c=void 0,h&&i?m(z):(i=r=void 0,l)}function C(){c!==void 0&&clearTimeout(c),u=0,i=o=r=c=void 0}function M(){return c===void 0?l:A(now())}function F(){var z=now(),S=_(z);if(i=arguments,r=this,o=z,S){if(c===void 0)return v(o);if(f)return clearTimeout(c),c=setTimeout(w,a),m(o)}return c===void 0&&(c=setTimeout(w,a)),l}return F.cancel=C,F.flush=M,F}function arrayIncludesWith(e,a,n){for(var i=-1,r=e==null?0:e.length;++ia||s&&l&&o&&!c&&!u||i&&l&&o||!n&&o||!r)return 1;if(!i&&!s&&!u&&e=c)return o;var u=n[i];return o*(u=="desc"?-1:1)}}return e.index-a.index}function baseOrderBy(e,a,n){a.length?a=arrayMap(a,function(s){return isArray(s)?function(l){return baseGet(l,s.length===1?s[0]:s)}:s}):a=[identity];var i=-1;a=arrayMap(a,baseUnary(baseIteratee));var r=baseMap(e,function(s,l,c){var o=arrayMap(a,function(u){return u(s)});return{criteria:o,index:++i,value:s}});return baseSortBy(r,function(s,l){return compareMultiple(s,l,n)})}function orderBy(e,a,n,i){return e==null?[]:(isArray(a)||(a=a==null?[]:[a]),n=i?void 0:n,isArray(n)||(n=n==null?[]:[n]),baseOrderBy(e,a,n))}var INFINITY=1/0,createSet=Set$1&&1/setToArray(new Set$1([,-0]))[1]==INFINITY?function(e){return new Set$1(e)}:noop,LARGE_ARRAY_SIZE=200;function baseUniq(e,a,n){var i=-1,r=arrayIncludes,s=e.length,l=!0,c=[],o=c;if(n)l=!1,r=arrayIncludesWith;else if(s>=LARGE_ARRAY_SIZE){var u=a?null:createSet(e);if(u)return setToArray(u);l=!1,r=cacheHas,o=new SetCache}else o=a?[]:c;e:for(;++in.artistReleases[n.currentTab])}),i=computed(()=>a.root.$router.currentRoute.params.id),r=ref(!1);getArtistData(unref(i)).then(l=>{r.value=!0;const c={data:[l],hasLoaded:unref(r)},{data:[{artistName:o,artistPictureXL:u,artistReleases:d}]}=standardizeData(c,formatArtistData);Object.assign(n,{artistName:o,artistPicture:u,artistReleases:d,currentTab:Object.keys(d)[0]})}).catch(l=>console.error(l));const s=computed(()=>{if(!unref(r))return[];let l=n.sortKey;return l==="releaseTracksNumber"&&(l=c=>new Number(c.releaseTracksNumber)),orderBy(n.currentRelease,l,n.sortOrder)});return{...toRefs(n),downloadLink:computed(()=>`https://www.deezer.com/artist/${unref(i)}`),headerStyle:computed(()=>({backgroundImage:`linear-gradient(to bottom, transparent 0%, var(--main-background) 100%), url(${n.artistPicture})`})),sortedData:s,sendAddToQueue,checkNewRelease}},data(){const e=this.$t.bind(this),a=this.$tc.bind(this);return{head:[{title:a("globals.listTabs.title",1),sortKey:"releaseTitle"},{title:e("globals.listTabs.releaseDate"),sortKey:"releaseDate"},{title:a("globals.listTabs.track",2),sortKey:"releaseTracksNumber"},{title:"",width:null}]}},methods:{sortBy(e){e===this.sortKey?this.sortOrder=this.sortOrder==="asc"?"desc":"asc":(this.sortKey=e,this.sortOrder="asc")}}});const __vue_script__$j=script$j;var __vue_render__$j=function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("div",{staticClass:"relative image-header"},[n("header",{staticClass:"flex items-center",style:e.headerStyle},[n("h1",{staticClass:"m-0"},[e._v(e._s(e.artistName))]),e._v(" "),n("div",{staticClass:"grid w-16 h-16 ml-auto rounded-full cursor-pointer bg-primary text-grayscale-870 place-items-center",attrs:{"aria-label":"download",role:"button","data-cm-link":e.downloadLink},on:{click:function(i){return i.stopPropagation(),e.sendAddToQueue(e.downloadLink)}}},[n("i",{staticClass:"text-4xl material-icons",attrs:{title:e.$t("globals.download_hint")}},[e._v("get_app")])])]),e._v(" "),n("BaseTabs",e._l(e.artistReleases,function(i,r){return n("BaseTab",{key:r,class:{active:e.currentTab===r},on:{click:function(s){e.currentTab=r}}},[e._v(` `+e._s(e.$tc("globals.listTabs."+r,2))+` `)])}),1),e._v(" "),n("table",{staticClass:"table"},[n("thead",[n("tr",e._l(e.head,function(i){return n("th",{key:i.title,staticClass:"uppercase-first-letter",class:{"sort-asc":i.sortKey===e.sortKey&&e.sortOrder=="asc","sort-desc":i.sortKey===e.sortKey&&e.sortOrder=="desc",sortable:i.sortKey,clickable:i.sortKey},style:{width:i.width?i.width:"auto"},on:{click:function(r){i.sortKey&&e.sortBy(i.sortKey)}}},[e._v(` `+e._s(i.title)+` @@ -4936,5 +4940,5 @@ a { `)]),e._v(" "),n("td",[e._v(e._s(i.artists[0].name))]),e._v(" "),n("td",[e._v(e._s(i.album.name))]),e._v(" "),n("td",[e._v(e._s(e.convertDuration(Math.floor(i.duration_ms/1e3))))]),e._v(" "),n("td",[n("input",{directives:[{name:"model",rawName:"v-model",value:i.selected,expression:"track.selected"}],staticClass:"clickable",attrs:{type:"checkbox"},domProps:{checked:Array.isArray(i.selected)?e._i(i.selected,null)>-1:i.selected},on:{change:function(s){var l=i.selected,c=s.target,o=!!c.checked;if(Array.isArray(l)){var u=null,d=e._i(l,u);c.checked?d<0&&e.$set(i,"selected",l.concat([u])):d>-1&&e.$set(i,"selected",l.slice(0,d).concat(l.slice(d+1)))}else e.$set(i,"selected",o)}}})])])})],2)]),e._v(" "),e.label?n("span",{staticStyle:{opacity:"0.4","margin-top":"8px",display:"inline-block","font-size":"13px"}},[e._v(e._s(e.label))]):e._e(),e._v(" "),n("footer",{staticClass:"bg-background-main"},[n("button",{staticClass:"mr-2 btn btn-primary",attrs:{"data-link":e.link},on:{click:function(i){return i.stopPropagation(),e.addToQueue(i)}}},[e._v(` `+e._s(""+e.$t("globals.download",{thing:e.$tc("globals.listTabs."+e.type,1)}))+` `)]),e._v(" "),n("button",{staticClass:"flex items-center btn btn-primary",attrs:{"data-link":e.selectedLinks()},on:{click:function(i){return i.stopPropagation(),e.addToQueue(i)}}},[e._v(` - `+e._s(e.$t("tracklist.downloadSelection"))),n("i",{staticClass:"ml-2 material-icons"},[e._v("file_download")])])])])},__vue_staticRenderFns__=[function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("th",[n("i",{staticClass:"material-icons"},[e._v("music_note")])])},function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("th",[n("i",{staticClass:"material-icons"},[e._v("timer")])])},function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("td",[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[n("i",{staticClass:"material-icons"},[e._v("album")])])])}];const __vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_is_functional_template__=!1;function __vue_normalize__(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};return o.__file="Tracklist.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i,o}var Tracklist=__vue_normalize__({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__);Vue$2.use(VueRouter);const routes=[{path:window.location.pathname,name:"Home",component:Home,meta:{notKeepAlive:!0}},{path:"/tracklist/:type/:id",name:"Tracklist",component:Tracklist},{path:"/artist/:id",name:"Artist",component:Artist,meta:{notKeepAlive:!0}},{path:"/album/:id",name:"Album",component:Tracklist},{path:"/playlist/:id",name:"Playlist",component:Tracklist},{path:"/spotify-playlist/:id",name:"Spotify Playlist",component:Tracklist},{path:"/charts",name:"Charts",component:Charts,meta:{notKeepAlive:!0}},{path:"/favorites",name:"Favorites",component:Favorites,meta:{notKeepAlive:!0}},{path:"/errors",name:"Errors",component:Errors},{path:"/logs",name:"Logs",component:Logs},{path:"/link-analyzer",name:"Link Analyzer",component:LinkAnalyzer},{path:"/about",name:"About",component:About},{path:"/info-arl",name:"ARL",component:InfoArl},{path:"/info-spotify",name:"Spotify Features",component:InfoSpotifyFeatures},{path:"/settings",name:"Settings",component:Settings},{path:"/search",name:"Search",component:Search,meta:{notKeepAlive:!0}},{path:"*",component:Home}],router=new VueRouter({mode:"history",routes,scrollBehavior(e,a,n){return{x:0,y:0}}});router.beforeEach((e,a,n)=>{switch(e.name){case"Tracklist":{console.warn("This should never happen.");break}case"Album":{const i={type:"album",id:e.params.id};fetchData("getTracklist",i).then(r=>{EventBus.$emit("showAlbum",r)});break}case"Playlist":{const i={type:"playlist",id:e.params.id};fetchData("getTracklist",i).then(r=>{EventBus.$emit("showPlaylist",r)});break}case"Spotify Playlist":{const i={type:"spotifyplaylist",id:e.params.id};fetchData("getTracklist",i).then(r=>{EventBus.$emit("showSpotifyPlaylist",r)});break}}n()});async function startApp(){new Vue$2({store,router,i18n,render:i=>i(App)}).$mount("#app");const e=await(await fetch("connect")).json();store.dispatch("setAppInfo",e.update).catch(console.error);let a=localStorage.getItem("arl");const n=localStorage.getItem("accessToken");if(e.autologin){console.info("Autologin");const i=localStorage.getItem("accountNum");async function r(s,l){toast(i18n.t("toasts.loggingIn"),"loading",!1,"login-toast"),s=s.trim();let c;return l!==0?c=await fetchData("login-arl",{arl:s,force:!0,child:l||0},"POST"):c=await fetchData("login-arl",{arl:s},"POST"),c}if(a){let s=await r(a,i);if(s.status===0&&n){const{arl:l}=await postToServer("loginWithCredentials",{accessToken:n});l&&l!==a&&(a=l,store.dispatch("setARL",{arl:a})),s=await r(l,i)}loggedIn(s)}}else loggedIn({status:3,user:e.currentUser,arl:a})}function initClient(){store.dispatch("setClientMode",!0),setClientModeKeyBindings()}document.addEventListener("DOMContentLoaded",startApp),window.api&&initClient(),document.addEventListener("paste",e=>{if(e.target.localName==="input")return;let a=e.clipboardData.getData("Text");if(isValidURL(a))router.currentRoute.name==="Link Analyzer"?socket.emit("analyzeLink",a):(a.includes(` + `+e._s(e.$t("tracklist.downloadSelection"))),n("i",{staticClass:"ml-2 material-icons"},[e._v("file_download")])])])])},__vue_staticRenderFns__=[function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("th",[n("i",{staticClass:"material-icons"},[e._v("music_note")])])},function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("th",[n("i",{staticClass:"material-icons"},[e._v("timer")])])},function(){var e=this,a=e.$createElement,n=e._self._c||a;return n("td",[n("div",{staticClass:"table__cell-content table__cell-content--vertical-center",staticStyle:{opacity:"0.54"}},[n("i",{staticClass:"material-icons"},[e._v("album")])])])}];const __vue_inject_styles__=void 0,__vue_scope_id__=void 0,__vue_is_functional_template__=!1;function __vue_normalize__(e,a,n,i,r,s,l,c){const o=(typeof n=="function"?n.options:n)||{};return o.__file="Tracklist.vue",o.render||(o.render=e.render,o.staticRenderFns=e.staticRenderFns,o._compiled=!0,r&&(o.functional=!0)),o._scopeId=i,o}var Tracklist=__vue_normalize__({render:__vue_render__,staticRenderFns:__vue_staticRenderFns__},__vue_inject_styles__,__vue_script__,__vue_scope_id__,__vue_is_functional_template__);Vue$2.use(VueRouter);const routes=[{path:window.location.pathname,name:"Home",component:Home,meta:{notKeepAlive:!0}},{path:"/tracklist/:type/:id",name:"Tracklist",component:Tracklist},{path:"/artist/:id",name:"Artist",component:Artist,meta:{notKeepAlive:!0}},{path:"/album/:id",name:"Album",component:Tracklist},{path:"/playlist/:id",name:"Playlist",component:Tracklist},{path:"/spotify-playlist/:id",name:"Spotify Playlist",component:Tracklist},{path:"/charts",name:"Charts",component:Charts,meta:{notKeepAlive:!0}},{path:"/favorites",name:"Favorites",component:Favorites,meta:{notKeepAlive:!0}},{path:"/errors",name:"Errors",component:Errors},{path:"/logs",name:"Logs",component:Logs},{path:"/link-analyzer",name:"Link Analyzer",component:LinkAnalyzer},{path:"/about",name:"About",component:About},{path:"/info-arl",name:"ARL",component:InfoArl},{path:"/info-spotify",name:"Spotify Features",component:InfoSpotifyFeatures},{path:"/settings",name:"Settings",component:Settings},{path:"/search",name:"Search",component:Search,meta:{notKeepAlive:!0}},{path:"*",component:Home}],router=new VueRouter({mode:"history",routes,scrollBehavior(e,a,n){return{x:0,y:0}}});router.beforeEach((e,a,n)=>{switch(e.name){case"Tracklist":{console.warn("This should never happen.");break}case"Album":{const i={type:"album",id:e.params.id};fetchData("getTracklist",i).then(r=>{EventBus.$emit("showAlbum",r)});break}case"Playlist":{const i={type:"playlist",id:e.params.id};fetchData("getTracklist",i).then(r=>{EventBus.$emit("showPlaylist",r)});break}case"Spotify Playlist":{const i={type:"spotifyplaylist",id:e.params.id};fetchData("getTracklist",i).then(r=>{EventBus.$emit("showSpotifyPlaylist",r)});break}}n()});async function startApp(){new Vue$2({store,router,i18n,render:i=>i(App)}).$mount("#app");const e=await(await fetch("connect")).json();e.deezerAvailable||document.getElementById("deezer_not_available").classList.remove("hide"),store.dispatch("setAppInfo",e.update).catch(console.error);let a=localStorage.getItem("arl");const n=localStorage.getItem("accessToken");if(e.autologin){console.info("Autologin");const i=localStorage.getItem("accountNum");async function r(s,l){toast(i18n.t("toasts.loggingIn"),"loading",!1,"login-toast"),s=s.trim();let c;return l!==0?c=await fetchData("login-arl",{arl:s,force:!0,child:l||0},"POST"):c=await fetchData("login-arl",{arl:s},"POST"),c}if(a){let s=await r(a,i);if(s.status===0&&n){const{arl:l}=await postToServer("loginWithCredentials",{accessToken:n});l&&l!==a&&(a=l,store.dispatch("setARL",{arl:a})),s=await r(l,i)}loggedIn(s)}}else loggedIn({status:3,user:e.currentUser,arl:a})}function initClient(){store.dispatch("setClientMode",!0),setClientModeKeyBindings()}document.addEventListener("DOMContentLoaded",startApp),window.api&&initClient(),document.addEventListener("paste",e=>{if(e.target.localName==="input")return;let a=e.clipboardData.getData("Text");if(isValidURL(a))router.currentRoute.name==="Link Analyzer"?socket.emit("analyzeLink",a):(a.includes(` `)&&(a=a.replace(/\n/g,";")),sendAddToQueue(a));else{const n=document.querySelector("#searchbar");n.select(),n.setSelectionRange(0,99999)}});function setClientModeKeyBindings(){document.addEventListener("keyup",e=>{e.altKey&&e.key==="ArrowLeft"&&router.back(),e.altKey&&e.key==="ArrowRight"&&router.forward()})}socket.on("message",function(e){console.log(e)});function loggedIn(e){const{status:a,user:n}=e;switch(a){case 1:case 3:toast(i18n.t("toasts.loggedIn"),"done",!0,"login-toast"),store.dispatch("login",e);break;case 2:toast(i18n.t("toasts.alreadyLogged"),"done",!0,"login-toast"),store.dispatch("setUser",n);break;case 0:toast(i18n.t("toasts.loginFailed"),"close",!0,"login-toast"),store.dispatch("removeARL");break;case-1:toast(i18n.t("toasts.deezerNotAvailable"),"close",!0,"login-toast")}}socket.on("restoringQueue",function(){toast(i18n.t("toasts.restoringQueue"),"loading",!1,"restoring_queue")}),socket.on("cancellingCurrentItem",function(e){toast(i18n.t("toasts.cancellingCurrentItem"),"loading",!1,"cancelling_"+e)}),socket.on("currentItemCancelled",function(e){toast(i18n.t("toasts.currentItemCancelled"),"done",!0,"cancelling_"+e)}),socket.on("startAddingArtist",function(e){toast(i18n.t("toasts.startAddingArtist",{artist:e.name}),"loading",!1,"artist_"+e.id)}),socket.on("finishAddingArtist",function(e){toast(i18n.t("toasts.finishAddingArtist",{artist:e.name}),"done",!0,"artist_"+e.id)}),socket.on("startConvertingSpotifyPlaylist",function(e){toast(i18n.t("toasts.startConvertingSpotifyPlaylist"),"loading",!1,"spotifyplaylist_"+e)}),socket.on("finishConvertingSpotifyPlaylist",function(e){toast(i18n.t("toasts.finishConvertingSpotifyPlaylist"),"done",!0,"spotifyplaylist_"+e)}),socket.on("errorMessage",function(e){toast(e,"error")}),socket.on("queueError",function(e){e.errid?toast(e.link+" - "+i18n.t(`errors.ids.${e.errid}`),"error"):toast(e.link+" - "+e.error,"error")}),socket.on("alreadyInQueue",function(e){toast(i18n.t("toasts.alreadyInQueue",{item:e.title}),"playlist_add_check")}),socket.on("loginNeededToDownload",function(){toast(i18n.t("toasts.loginNeededToDownload"),"report")}),socket.on("startGeneratingItems",function(e){toast(i18n.t("toasts.startGeneratingItems",{n:e.total}),"loading",!1,"batch_"+e.uuid)}),socket.on("finishGeneratingItems",function(e){toast(i18n.t("toasts.finishGeneratingItems",{n:e.total}),"done",!0,"batch_"+e.uuid)}); diff --git a/src/App.vue b/src/App.vue index 4316283..d3d6039 100644 --- a/src/App.vue +++ b/src/App.vue @@ -5,6 +5,7 @@
+
@@ -44,6 +45,7 @@ import BaseLoadingPlaceholder from '@components/globals/BaseLoadingPlaceholder.v import TheContextMenu from '@components/globals/TheContextMenu.vue' import TheTrackPreview from '@components/globals/TheTrackPreview.vue' import TheQualityModal from '@components/globals/TheQualityModal.vue' +import DeezerWarning from '@components/globals/DeezerWarning.vue' // import ConfirmModal from '@components/globals/ConfirmModal.vue' import TheSidebar from '@components/TheSidebar.vue' import TheSearchBar from '@components/TheSearchBar.vue' @@ -59,7 +61,8 @@ export default { TheQualityModal, BaseLoadingPlaceholder, TheContextMenu, - TheContent + TheContent, + DeezerWarning // ConfirmModal }, data() { diff --git a/src/app.js b/src/app.js index fad02c1..1215862 100644 --- a/src/app.js +++ b/src/app.js @@ -36,6 +36,7 @@ async function startApp() { }).$mount('#app') const connectResponse = await (await fetch('connect')).json() + if (!connectResponse.deezerAvailable) document.getElementById('deezer_not_available').classList.remove('hide') store.dispatch('setAppInfo', connectResponse.update).catch(console.error) diff --git a/src/components/globals/DeezerWarning.vue b/src/components/globals/DeezerWarning.vue new file mode 100644 index 0000000..d63a6cc --- /dev/null +++ b/src/components/globals/DeezerWarning.vue @@ -0,0 +1,23 @@ + + +