owntone-server/htdocs/assets/index.js
2022-05-20 13:44:22 +02:00

67 lines
788 KiB
JavaScript

var fb=Object.defineProperty,mb=Object.defineProperties;var pb=Object.getOwnPropertyDescriptors;var Gi=Object.getOwnPropertySymbols;var rm=Object.prototype.hasOwnProperty,sm=Object.prototype.propertyIsEnumerable;var nm=(e,t,n)=>t in e?fb(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Je=(e,t)=>{for(var n in t||(t={}))rm.call(t,n)&&nm(e,n,t[n]);if(Gi)for(var n of Gi(t))sm.call(t,n)&&nm(e,n,t[n]);return e},Ln=(e,t)=>mb(e,pb(t));var $u=(e,t)=>{var n={};for(var r in e)rm.call(e,r)&&t.indexOf(r)<0&&(n[r]=e[r]);if(e!=null&&Gi)for(var r of Gi(e))t.indexOf(r)<0&&sm.call(e,r)&&(n[r]=e[r]);return n};const hb=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))r(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const i of o.addedNodes)i.tagName==="LINK"&&i.rel==="modulepreload"&&r(i)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerpolicy&&(o.referrerPolicy=s.referrerpolicy),s.crossorigin==="use-credentials"?o.credentials="include":s.crossorigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function r(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}};hb();function Al(e,t){const n=Object.create(null),r=e.split(",");for(let s=0;s<r.length;s++)n[r[s]]=!0;return t?s=>!!n[s.toLowerCase()]:s=>!!n[s]}const _b="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",gb=Al(_b),yb="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",vb=Al(yb);function Nh(e){return!!e||e===""}function rs(e){if(Ue(e)){const t={};for(let n=0;n<e.length;n++){const r=e[n],s=Ot(r)?Cb(r):rs(r);if(s)for(const o in s)t[o]=s[o]}return t}else{if(Ot(e))return e;if(Nt(e))return e}}const bb=/;(?![^(]*\))/g,wb=/:(.+)/;function Cb(e){const t={};return e.split(bb).forEach(n=>{if(n){const r=n.split(wb);r.length>1&&(t[r[0].trim()]=r[1].trim())}}),t}function Ye(e){let t="";if(Ot(e))t=e;else if(Ue(e))for(let n=0;n<e.length;n++){const r=Ye(e[n]);r&&(t+=r+" ")}else if(Nt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function xb(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Ot(t)&&(e.class=Ye(t)),n&&(e.style=rs(n)),e}function kb(e,t){if(e.length!==t.length)return!1;let n=!0;for(let r=0;n&&r<e.length;r++)n=Zr(e[r],t[r]);return n}function Zr(e,t){if(e===t)return!0;let n=om(e),r=om(t);if(n||r)return n&&r?e.getTime()===t.getTime():!1;if(n=Ue(e),r=Ue(t),n||r)return n&&r?kb(e,t):!1;if(n=Nt(e),r=Nt(t),n||r){if(!n||!r)return!1;const s=Object.keys(e).length,o=Object.keys(t).length;if(s!==o)return!1;for(const i in e){const a=e.hasOwnProperty(i),l=t.hasOwnProperty(i);if(a&&!l||!a&&l||!Zr(e[i],t[i]))return!1}}return String(e)===String(t)}function Ol(e,t){return e.findIndex(n=>Zr(n,t))}const v=e=>Ot(e)?e:e==null?"":Ue(e)||Nt(e)&&(e.toString===jh||!et(e.toString))?JSON.stringify(e,Vh,2):String(e),Vh=(e,t)=>t&&t.__v_isRef?Vh(e,t.value):no(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[r,s])=>(n[`${r} =>`]=s,n),{})}:Es(t)?{[`Set(${t.size})`]:[...t.values()]}:Nt(t)&&!Ue(t)&&!Bh(t)?String(t):t,yt={},to=[],nr=()=>{},Sb=()=>!1,Eb=/^on[^a-z]/,$i=e=>Eb.test(e),pd=e=>e.startsWith("onUpdate:"),Lt=Object.assign,hd=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},$b=Object.prototype.hasOwnProperty,ft=(e,t)=>$b.call(e,t),Ue=Array.isArray,no=e=>Tl(e)==="[object Map]",Es=e=>Tl(e)==="[object Set]",om=e=>e instanceof Date,et=e=>typeof e=="function",Ot=e=>typeof e=="string",_d=e=>typeof e=="symbol",Nt=e=>e!==null&&typeof e=="object",gd=e=>Nt(e)&&et(e.then)&&et(e.catch),jh=Object.prototype.toString,Tl=e=>jh.call(e),zb=e=>Tl(e).slice(8,-1),Bh=e=>Tl(e)==="[object Object]",yd=e=>Ot(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,Xo=Al(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Pl=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Ab=/-(\w)/g,In=Pl(e=>e.replace(Ab,(t,n)=>n?n.toUpperCase():"")),Ob=/\B([A-Z])/g,dr=Pl(e=>e.replace(Ob,"-$1").toLowerCase()),zi=Pl(e=>e.charAt(0).toUpperCase()+e.slice(1)),Qo=Pl(e=>e?`on${zi(e)}`:""),yi=(e,t)=>!Object.is(e,t),ro=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},ol=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},Jr=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let im;const Tb=()=>im||(im=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let An;class vd{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&An&&(this.parent=An,this.index=(An.scopes||(An.scopes=[])).push(this)-1)}run(t){if(this.active){const n=An;try{return An=this,t()}finally{An=n}}}on(){An=this}off(){An=this.parent}stop(t){if(this.active){let n,r;for(n=0,r=this.effects.length;n<r;n++)this.effects[n].stop();for(n=0,r=this.cleanups.length;n<r;n++)this.cleanups[n]();if(this.scopes)for(n=0,r=this.scopes.length;n<r;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const s=this.parent.scopes.pop();s&&s!==this&&(this.parent.scopes[this.index]=s,s.index=this.index)}this.active=!1}}}function Pb(e){return new vd(e)}function Hh(e,t=An){t&&t.active&&t.effects.push(e)}function Db(){return An}function Fb(e){An&&An.cleanups.push(e)}const bd=e=>{const t=new Set(e);return t.w=0,t.n=0,t},Uh=e=>(e.w&Xr)>0,qh=e=>(e.n&Xr)>0,Ib=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=Xr},Mb=e=>{const{deps:t}=e;if(t.length){let n=0;for(let r=0;r<t.length;r++){const s=t[r];Uh(s)&&!qh(s)?s.delete(e):t[n++]=s,s.w&=~Xr,s.n&=~Xr}t.length=n}},fc=new WeakMap;let Ho=0,Xr=1;const mc=30;let er;const bs=Symbol(""),pc=Symbol("");class Ai{constructor(t,n=null,r){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,Hh(this,r)}run(){if(!this.active)return this.fn();let t=er,n=Kr;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=er,er=this,Kr=!0,Xr=1<<++Ho,Ho<=mc?Ib(this):am(this),this.fn()}finally{Ho<=mc&&Mb(this),Xr=1<<--Ho,er=this.parent,Kr=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){er===this?this.deferStop=!0:this.active&&(am(this),this.onStop&&this.onStop(),this.active=!1)}}function am(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function Rb(e,t){e.effect&&(e=e.effect.fn);const n=new Ai(e);t&&(Lt(n,t),t.scope&&Hh(n,t.scope)),(!t||!t.lazy)&&n.run();const r=n.run.bind(n);return r.effect=n,r}function Lb(e){e.effect.stop()}let Kr=!0;const Wh=[];function $s(){Wh.push(Kr),Kr=!1}function zs(){const e=Wh.pop();Kr=e===void 0?!0:e}function Mn(e,t,n){if(Kr&&er){let r=fc.get(e);r||fc.set(e,r=new Map);let s=r.get(n);s||r.set(n,s=bd()),Gh(s)}}function Gh(e,t){let n=!1;Ho<=mc?qh(e)||(e.n|=Xr,n=!Uh(e)):n=!e.has(er),n&&(e.add(er),er.deps.push(e))}function Sr(e,t,n,r,s,o){const i=fc.get(e);if(!i)return;let a=[];if(t==="clear")a=[...i.values()];else if(n==="length"&&Ue(e))i.forEach((l,u)=>{(u==="length"||u>=r)&&a.push(l)});else switch(n!==void 0&&a.push(i.get(n)),t){case"add":Ue(e)?yd(n)&&a.push(i.get("length")):(a.push(i.get(bs)),no(e)&&a.push(i.get(pc)));break;case"delete":Ue(e)||(a.push(i.get(bs)),no(e)&&a.push(i.get(pc)));break;case"set":no(e)&&a.push(i.get(bs));break}if(a.length===1)a[0]&&hc(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);hc(bd(l))}}function hc(e,t){for(const n of Ue(e)?e:[...e])(n!==er||n.allowRecurse)&&(n.scheduler?n.scheduler():n.run())}const Nb=Al("__proto__,__v_isRef,__isVue"),Kh=new Set(Object.getOwnPropertyNames(Symbol).map(e=>Symbol[e]).filter(_d)),Vb=Dl(),jb=Dl(!1,!0),Bb=Dl(!0),Hb=Dl(!0,!0),lm=Ub();function Ub(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const r=ut(this);for(let o=0,i=this.length;o<i;o++)Mn(r,"get",o+"");const s=r[t](...n);return s===-1||s===!1?r[t](...n.map(ut)):s}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){$s();const r=ut(this)[t].apply(this,n);return zs(),r}}),e}function Dl(e=!1,t=!1){return function(r,s,o){if(s==="__v_isReactive")return!e;if(s==="__v_isReadonly")return e;if(s==="__v_isShallow")return t;if(s==="__v_raw"&&o===(e?t?t_:e_:t?Qh:Xh).get(r))return r;const i=Ue(r);if(!e&&i&&ft(lm,s))return Reflect.get(lm,s,o);const a=Reflect.get(r,s,o);return(_d(s)?Kh.has(s):Nb(s))||(e||Mn(r,"get",s),t)?a:jt(a)?!i||!yd(s)?a.value:a:Nt(a)?e?Cd(a):As(a):a}}const qb=Yh(),Wb=Yh(!0);function Yh(e=!1){return function(n,r,s,o){let i=n[r];if(ao(i)&&jt(i)&&!jt(s))return!1;if(!e&&!ao(s)&&(xd(s)||(s=ut(s),i=ut(i)),!Ue(n)&&jt(i)&&!jt(s)))return i.value=s,!0;const a=Ue(n)&&yd(r)?Number(r)<n.length:ft(n,r),l=Reflect.set(n,r,s,o);return n===ut(o)&&(a?yi(s,i)&&Sr(n,"set",r,s):Sr(n,"add",r,s)),l}}function Gb(e,t){const n=ft(e,t);e[t];const r=Reflect.deleteProperty(e,t);return r&&n&&Sr(e,"delete",t,void 0),r}function Kb(e,t){const n=Reflect.has(e,t);return(!_d(t)||!Kh.has(t))&&Mn(e,"has",t),n}function Yb(e){return Mn(e,"iterate",Ue(e)?"length":bs),Reflect.ownKeys(e)}const Zh={get:Vb,set:qb,deleteProperty:Gb,has:Kb,ownKeys:Yb},Jh={get:Bb,set(e,t){return!0},deleteProperty(e,t){return!0}},Zb=Lt({},Zh,{get:jb,set:Wb}),Jb=Lt({},Jh,{get:Hb}),wd=e=>e,Fl=e=>Reflect.getPrototypeOf(e);function Ki(e,t,n=!1,r=!1){e=e.__v_raw;const s=ut(e),o=ut(t);t!==o&&!n&&Mn(s,"get",t),!n&&Mn(s,"get",o);const{has:i}=Fl(s),a=r?wd:n?Ed:vi;if(i.call(s,t))return a(e.get(t));if(i.call(s,o))return a(e.get(o));e!==s&&e.get(t)}function Yi(e,t=!1){const n=this.__v_raw,r=ut(n),s=ut(e);return e!==s&&!t&&Mn(r,"has",e),!t&&Mn(r,"has",s),e===s?n.has(e):n.has(e)||n.has(s)}function Zi(e,t=!1){return e=e.__v_raw,!t&&Mn(ut(e),"iterate",bs),Reflect.get(e,"size",e)}function um(e){e=ut(e);const t=ut(this);return Fl(t).has.call(t,e)||(t.add(e),Sr(t,"add",e,e)),this}function cm(e,t){t=ut(t);const n=ut(this),{has:r,get:s}=Fl(n);let o=r.call(n,e);o||(e=ut(e),o=r.call(n,e));const i=s.call(n,e);return n.set(e,t),o?yi(t,i)&&Sr(n,"set",e,t):Sr(n,"add",e,t),this}function dm(e){const t=ut(this),{has:n,get:r}=Fl(t);let s=n.call(t,e);s||(e=ut(e),s=n.call(t,e)),r&&r.call(t,e);const o=t.delete(e);return s&&Sr(t,"delete",e,void 0),o}function fm(){const e=ut(this),t=e.size!==0,n=e.clear();return t&&Sr(e,"clear",void 0,void 0),n}function Ji(e,t){return function(r,s){const o=this,i=o.__v_raw,a=ut(i),l=t?wd:e?Ed:vi;return!e&&Mn(a,"iterate",bs),i.forEach((u,d)=>r.call(s,l(u),l(d),o))}}function Xi(e,t,n){return function(...r){const s=this.__v_raw,o=ut(s),i=no(o),a=e==="entries"||e===Symbol.iterator&&i,l=e==="keys"&&i,u=s[e](...r),d=n?wd:t?Ed:vi;return!t&&Mn(o,"iterate",l?pc:bs),{next(){const{value:m,done:f}=u.next();return f?{value:m,done:f}:{value:a?[d(m[0]),d(m[1])]:d(m),done:f}},[Symbol.iterator](){return this}}}}function Fr(e){return function(...t){return e==="delete"?!1:this}}function Xb(){const e={get(o){return Ki(this,o)},get size(){return Zi(this)},has:Yi,add:um,set:cm,delete:dm,clear:fm,forEach:Ji(!1,!1)},t={get(o){return Ki(this,o,!1,!0)},get size(){return Zi(this)},has:Yi,add:um,set:cm,delete:dm,clear:fm,forEach:Ji(!1,!0)},n={get(o){return Ki(this,o,!0)},get size(){return Zi(this,!0)},has(o){return Yi.call(this,o,!0)},add:Fr("add"),set:Fr("set"),delete:Fr("delete"),clear:Fr("clear"),forEach:Ji(!0,!1)},r={get(o){return Ki(this,o,!0,!0)},get size(){return Zi(this,!0)},has(o){return Yi.call(this,o,!0)},add:Fr("add"),set:Fr("set"),delete:Fr("delete"),clear:Fr("clear"),forEach:Ji(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(o=>{e[o]=Xi(o,!1,!1),n[o]=Xi(o,!0,!1),t[o]=Xi(o,!1,!0),r[o]=Xi(o,!0,!0)}),[e,n,t,r]}const[Qb,e0,t0,n0]=Xb();function Il(e,t){const n=t?e?n0:t0:e?e0:Qb;return(r,s,o)=>s==="__v_isReactive"?!e:s==="__v_isReadonly"?e:s==="__v_raw"?r:Reflect.get(ft(n,s)&&s in r?n:r,s,o)}const r0={get:Il(!1,!1)},s0={get:Il(!1,!0)},o0={get:Il(!0,!1)},i0={get:Il(!0,!0)},Xh=new WeakMap,Qh=new WeakMap,e_=new WeakMap,t_=new WeakMap;function a0(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function l0(e){return e.__v_skip||!Object.isExtensible(e)?0:a0(zb(e))}function As(e){return ao(e)?e:Ml(e,!1,Zh,r0,Xh)}function n_(e){return Ml(e,!1,Zb,s0,Qh)}function Cd(e){return Ml(e,!0,Jh,o0,e_)}function u0(e){return Ml(e,!0,Jb,i0,t_)}function Ml(e,t,n,r,s){if(!Nt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const o=s.get(e);if(o)return o;const i=l0(e);if(i===0)return e;const a=new Proxy(e,i===2?r:n);return s.set(e,a),a}function ws(e){return ao(e)?ws(e.__v_raw):!!(e&&e.__v_isReactive)}function ao(e){return!!(e&&e.__v_isReadonly)}function xd(e){return!!(e&&e.__v_isShallow)}function kd(e){return ws(e)||ao(e)}function ut(e){const t=e&&e.__v_raw;return t?ut(t):e}function Sd(e){return ol(e,"__v_skip",!0),e}const vi=e=>Nt(e)?As(e):e,Ed=e=>Nt(e)?Cd(e):e;function $d(e){Kr&&er&&(e=ut(e),Gh(e.dep||(e.dep=bd())))}function Rl(e,t){e=ut(e),e.dep&&hc(e.dep)}function jt(e){return!!(e&&e.__v_isRef===!0)}function wn(e){return s_(e,!1)}function r_(e){return s_(e,!0)}function s_(e,t){return jt(e)?e:new c0(e,t)}class c0{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ut(t),this._value=n?t:vi(t)}get value(){return $d(this),this._value}set value(t){t=this.__v_isShallow?t:ut(t),yi(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:vi(t),Rl(this))}}function d0(e){Rl(e)}function so(e){return jt(e)?e.value:e}const f0={get:(e,t,n)=>so(Reflect.get(e,t,n)),set:(e,t,n,r)=>{const s=e[t];return jt(s)&&!jt(n)?(s.value=n,!0):Reflect.set(e,t,n,r)}};function zd(e){return ws(e)?e:new Proxy(e,f0)}class m0{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:r}=t(()=>$d(this),()=>Rl(this));this._get=n,this._set=r}get value(){return this._get()}set value(t){this._set(t)}}function p0(e){return new m0(e)}function ei(e){const t=Ue(e)?new Array(e.length):{};for(const n in e)t[n]=o_(e,n);return t}class h0{constructor(t,n,r){this._object=t,this._key=n,this._defaultValue=r,this.__v_isRef=!0}get value(){const t=this._object[this._key];return t===void 0?this._defaultValue:t}set value(t){this._object[this._key]=t}}function o_(e,t,n){const r=e[t];return jt(r)?r:new h0(e,t,n)}class _0{constructor(t,n,r,s){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ai(t,()=>{this._dirty||(this._dirty=!0,Rl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!s,this.__v_isReadonly=r}get value(){const t=ut(this);return $d(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function g0(e,t,n=!1){let r,s;const o=et(e);return o?(r=e,s=nr):(r=e.get,s=e.set),new _0(r,s,o||!s,n)}const ti=[];function i_(e,...t){$s();const n=ti.length?ti[ti.length-1].component:null,r=n&&n.appContext.config.warnHandler,s=y0();if(r)fr(r,n,11,[e+t.join(""),n&&n.proxy,s.map(({vnode:o})=>`at <${Z_(n,o.type)}>`).join(`
`),s]);else{const o=[`[Vue warn]: ${e}`,...t];s.length&&o.push(`
`,...v0(s)),console.warn(...o)}zs()}function y0(){let e=ti[ti.length-1];if(!e)return[];const t=[];for(;e;){const n=t[0];n&&n.vnode===e?n.recurseCount++:t.push({vnode:e,recurseCount:0});const r=e.component&&e.component.parent;e=r&&r.vnode}return t}function v0(e){const t=[];return e.forEach((n,r)=>{t.push(...r===0?[]:[`
`],...b0(n))}),t}function b0({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",r=e.component?e.component.parent==null:!1,s=` at <${Z_(e.component,e.type,r)}`,o=">"+n;return e.props?[s,...w0(e.props),o]:[s+o]}function w0(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(r=>{t.push(...a_(r,e[r]))}),n.length>3&&t.push(" ..."),t}function a_(e,t,n){return Ot(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:jt(t)?(t=a_(e,ut(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):et(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ut(t),n?t:[`${e}=`,t])}function fr(e,t,n,r){let s;try{s=r?e(...r):e()}catch(o){Os(o,t,n)}return s}function Dn(e,t,n,r){if(et(e)){const o=fr(e,t,n,r);return o&&gd(o)&&o.catch(i=>{Os(i,t,n)}),o}const s=[];for(let o=0;o<e.length;o++)s.push(Dn(e[o],t,n,r));return s}function Os(e,t,n,r=!0){const s=t?t.vnode:null;if(t){let o=t.parent;const i=t.proxy,a=n;for(;o;){const u=o.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,i,a)===!1)return}o=o.parent}const l=t.appContext.config.errorHandler;if(l){fr(l,null,10,[e,i,a]);return}}C0(e,n,s,r)}function C0(e,t,n,r=!0){console.error(e)}let il=!1,_c=!1;const Pn=[];let wr=0;const ni=[];let Uo=null,Gs=0;const ri=[];let Vr=null,Ks=0;const l_=Promise.resolve();let Ad=null,gc=null;function Ll(e){const t=Ad||l_;return e?t.then(this?e.bind(this):e):t}function x0(e){let t=wr+1,n=Pn.length;for(;t<n;){const r=t+n>>>1;bi(Pn[r])<e?t=r+1:n=r}return t}function Od(e){(!Pn.length||!Pn.includes(e,il&&e.allowRecurse?wr+1:wr))&&e!==gc&&(e.id==null?Pn.push(e):Pn.splice(x0(e.id),0,e),u_())}function u_(){!il&&!_c&&(_c=!0,Ad=l_.then(d_))}function k0(e){const t=Pn.indexOf(e);t>wr&&Pn.splice(t,1)}function c_(e,t,n,r){Ue(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?r+1:r))&&n.push(e),u_()}function S0(e){c_(e,Uo,ni,Gs)}function Td(e){c_(e,Vr,ri,Ks)}function Pd(e,t=null){if(ni.length){for(gc=t,Uo=[...new Set(ni)],ni.length=0,Gs=0;Gs<Uo.length;Gs++)Uo[Gs]();Uo=null,Gs=0,gc=null,Pd(e,t)}}function al(e){if(ri.length){const t=[...new Set(ri)];if(ri.length=0,Vr){Vr.push(...t);return}for(Vr=t,Vr.sort((n,r)=>bi(n)-bi(r)),Ks=0;Ks<Vr.length;Ks++)Vr[Ks]();Vr=null,Ks=0}}const bi=e=>e.id==null?1/0:e.id;function d_(e){_c=!1,il=!0,Pd(e),Pn.sort((n,r)=>bi(n)-bi(r));const t=nr;try{for(wr=0;wr<Pn.length;wr++){const n=Pn[wr];n&&n.active!==!1&&fr(n,null,14)}}finally{wr=0,Pn.length=0,al(),il=!1,Ad=null,(Pn.length||ni.length||ri.length)&&d_(e)}}let Ys,Qi=[];function f_(e,t){var n,r;Ys=e,Ys?(Ys.enabled=!0,Qi.forEach(({event:s,args:o})=>Ys.emit(s,...o)),Qi=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((r=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||r===void 0)&&r.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(o=>{f_(o,t)}),setTimeout(()=>{Ys||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,Qi=[])},3e3)):Qi=[]}function E0(e,t,...n){if(e.isUnmounted)return;const r=e.vnode.props||yt;let s=n;const o=t.startsWith("update:"),i=o&&t.slice(7);if(i&&i in r){const d=`${i==="modelValue"?"model":i}Modifiers`,{number:m,trim:f}=r[d]||yt;f?s=n.map(p=>p.trim()):m&&(s=n.map(Jr))}let a,l=r[a=Qo(t)]||r[a=Qo(In(t))];!l&&o&&(l=r[a=Qo(dr(t))]),l&&Dn(l,e,6,s);const u=r[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,Dn(u,e,6,s)}}function m_(e,t,n=!1){const r=t.emitsCache,s=r.get(e);if(s!==void 0)return s;const o=e.emits;let i={},a=!1;if(!et(e)){const l=u=>{const d=m_(u,t,!0);d&&(a=!0,Lt(i,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!o&&!a?(r.set(e,null),null):(Ue(o)?o.forEach(l=>i[l]=null):Lt(i,o),r.set(e,i),i)}function Nl(e,t){return!e||!$i(t)?!1:(t=t.slice(2).replace(/Once$/,""),ft(e,t[0].toLowerCase()+t.slice(1))||ft(e,dr(t))||ft(e,t))}let rn=null,Vl=null;function wi(e){const t=rn;return rn=e,Vl=e&&e.type.__scopeId||null,t}function $0(e){Vl=e}function z0(){Vl=null}const A0=e=>P;function P(e,t=rn,n){if(!t||e._n)return e;const r=(...s)=>{r._d&&Cc(-1);const o=wi(t),i=e(...s);return wi(o),r._d&&Cc(1),i};return r._n=!0,r._c=!0,r._d=!0,r}function Ga(e){const{type:t,vnode:n,proxy:r,withProxy:s,props:o,propsOptions:[i],slots:a,attrs:l,emit:u,render:d,renderCache:m,data:f,setupState:p,ctx:h,inheritAttrs:_}=e;let g,b;const w=wi(e);try{if(n.shapeFlag&4){const x=s||r;g=On(d.call(x,x,m,o,p,f,h)),b=l}else{const x=t;g=On(x.length>1?x(o,{attrs:l,slots:a,emit:u}):x(o,null)),b=t.props?l:T0(l)}}catch(x){ii.length=0,Os(x,e,1),g=C(ln)}let S=g;if(b&&_!==!1){const x=Object.keys(b),{shapeFlag:$}=S;x.length&&$&7&&(i&&x.some(pd)&&(b=P0(b,i)),S=Er(S,b))}return n.dirs&&(S.dirs=S.dirs?S.dirs.concat(n.dirs):n.dirs),n.transition&&(S.transition=n.transition),g=S,wi(w),g}function O0(e){let t;for(let n=0;n<e.length;n++){const r=e[n];if(es(r)){if(r.type!==ln||r.children==="v-if"){if(t)return;t=r}}else return}return t}const T0=e=>{let t;for(const n in e)(n==="class"||n==="style"||$i(n))&&((t||(t={}))[n]=e[n]);return t},P0=(e,t)=>{const n={};for(const r in e)(!pd(r)||!(r.slice(9)in t))&&(n[r]=e[r]);return n};function D0(e,t,n){const{props:r,children:s,component:o}=e,{props:i,children:a,patchFlag:l}=t,u=o.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return r?mm(r,i,u):!!i;if(l&8){const d=t.dynamicProps;for(let m=0;m<d.length;m++){const f=d[m];if(i[f]!==r[f]&&!Nl(u,f))return!0}}}else return(s||a)&&(!a||!a.$stable)?!0:r===i?!1:r?i?mm(r,i,u):!0:!!i;return!1}function mm(e,t,n){const r=Object.keys(t);if(r.length!==Object.keys(e).length)return!0;for(let s=0;s<r.length;s++){const o=r[s];if(t[o]!==e[o]&&!Nl(n,o))return!0}return!1}function Dd({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const F0=e=>e.__isSuspense,I0={name:"Suspense",__isSuspense:!0,process(e,t,n,r,s,o,i,a,l,u){e==null?R0(t,n,r,s,o,i,a,l,u):L0(e,t,n,r,s,i,a,l,u)},hydrate:N0,create:Fd,normalize:V0},M0=I0;function Ci(e,t){const n=e.props&&e.props[t];et(n)&&n()}function R0(e,t,n,r,s,o,i,a,l){const{p:u,o:{createElement:d}}=l,m=d("div"),f=e.suspense=Fd(e,s,r,t,m,n,o,i,a,l);u(null,f.pendingBranch=e.ssContent,m,null,r,f,o,i),f.deps>0?(Ci(e,"onPending"),Ci(e,"onFallback"),u(null,e.ssFallback,t,n,r,null,o,i),oo(f,e.ssFallback)):f.resolve()}function L0(e,t,n,r,s,o,i,a,{p:l,um:u,o:{createElement:d}}){const m=t.suspense=e.suspense;m.vnode=t,t.el=e.el;const f=t.ssContent,p=t.ssFallback,{activeBranch:h,pendingBranch:_,isInFallback:g,isHydrating:b}=m;if(_)m.pendingBranch=f,cr(f,_)?(l(_,f,m.hiddenContainer,null,s,m,o,i,a),m.deps<=0?m.resolve():g&&(l(h,p,n,r,s,null,o,i,a),oo(m,p))):(m.pendingId++,b?(m.isHydrating=!1,m.activeBranch=_):u(_,s,m),m.deps=0,m.effects.length=0,m.hiddenContainer=d("div"),g?(l(null,f,m.hiddenContainer,null,s,m,o,i,a),m.deps<=0?m.resolve():(l(h,p,n,r,s,null,o,i,a),oo(m,p))):h&&cr(f,h)?(l(h,f,n,r,s,m,o,i,a),m.resolve(!0)):(l(null,f,m.hiddenContainer,null,s,m,o,i,a),m.deps<=0&&m.resolve()));else if(h&&cr(f,h))l(h,f,n,r,s,m,o,i,a),oo(m,f);else if(Ci(t,"onPending"),m.pendingBranch=f,m.pendingId++,l(null,f,m.hiddenContainer,null,s,m,o,i,a),m.deps<=0)m.resolve();else{const{timeout:w,pendingId:S}=m;w>0?setTimeout(()=>{m.pendingId===S&&m.fallback(p)},w):w===0&&m.fallback(p)}}function Fd(e,t,n,r,s,o,i,a,l,u,d=!1){const{p:m,m:f,um:p,n:h,o:{parentNode:_,remove:g}}=u,b=Jr(e.props&&e.props.timeout),w={vnode:e,parent:t,parentComponent:n,isSVG:i,container:r,hiddenContainer:s,anchor:o,deps:0,pendingId:0,timeout:typeof b=="number"?b:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(S=!1){const{vnode:x,activeBranch:$,pendingBranch:A,pendingId:I,effects:V,parentComponent:O,container:N}=w;if(w.isHydrating)w.isHydrating=!1;else if(!S){const B=$&&A.transition&&A.transition.mode==="out-in";B&&($.transition.afterLeave=()=>{I===w.pendingId&&f(A,N,Y,0)});let{anchor:Y}=w;$&&(Y=h($),p($,O,w,!0)),B||f(A,N,Y,0)}oo(w,A),w.pendingBranch=null,w.isInFallback=!1;let G=w.parent,F=!1;for(;G;){if(G.pendingBranch){G.effects.push(...V),F=!0;break}G=G.parent}F||Td(V),w.effects=[],Ci(x,"onResolve")},fallback(S){if(!w.pendingBranch)return;const{vnode:x,activeBranch:$,parentComponent:A,container:I,isSVG:V}=w;Ci(x,"onFallback");const O=h($),N=()=>{!w.isInFallback||(m(null,S,I,O,A,null,V,a,l),oo(w,S))},G=S.transition&&S.transition.mode==="out-in";G&&($.transition.afterLeave=N),w.isInFallback=!0,p($,A,null,!0),G||N()},move(S,x,$){w.activeBranch&&f(w.activeBranch,S,x,$),w.container=S},next(){return w.activeBranch&&h(w.activeBranch)},registerDep(S,x){const $=!!w.pendingBranch;$&&w.deps++;const A=S.vnode.el;S.asyncDep.catch(I=>{Os(I,S,0)}).then(I=>{if(S.isUnmounted||w.isUnmounted||w.pendingId!==S.suspenseId)return;S.asyncResolved=!0;const{vnode:V}=S;Sc(S,I,!1),A&&(V.el=A);const O=!A&&S.subTree.el;x(S,V,_(A||S.subTree.el),A?null:h(S.subTree),w,i,l),O&&g(O),Dd(S,V.el),$&&--w.deps===0&&w.resolve()})},unmount(S,x){w.isUnmounted=!0,w.activeBranch&&p(w.activeBranch,n,S,x),w.pendingBranch&&p(w.pendingBranch,n,S,x)}};return w}function N0(e,t,n,r,s,o,i,a,l){const u=t.suspense=Fd(t,r,n,e.parentNode,document.createElement("div"),null,s,o,i,a,!0),d=l(e,u.pendingBranch=t.ssContent,n,u,o,i);return u.deps===0&&u.resolve(),d}function V0(e){const{shapeFlag:t,children:n}=e,r=t&32;e.ssContent=pm(r?n.default:n),e.ssFallback=r?pm(n.fallback):C(ln)}function pm(e){let t;if(et(e)){const n=co&&e._c;n&&(e._d=!1,E()),e=e(),n&&(e._d=!0,t=mr,V_())}return Ue(e)&&(e=O0(e)),e=On(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function p_(e,t){t&&t.pendingBranch?Ue(e)?t.effects.push(...e):t.effects.push(e):Td(e)}function oo(e,t){e.activeBranch=t;const{vnode:n,parentComponent:r}=e,s=n.el=t.el;r&&r.subTree===n&&(r.vnode.el=s,Dd(r,s))}function si(e,t){if(Yt){let n=Yt.provides;const r=Yt.parent&&Yt.parent.provides;r===n&&(n=Yt.provides=Object.create(r)),n[e]=t}}function rr(e,t,n=!1){const r=Yt||rn;if(r){const s=r.parent==null?r.vnode.appContext&&r.vnode.appContext.provides:r.parent.provides;if(s&&e in s)return s[e];if(arguments.length>1)return n&&et(t)?t.call(r.proxy):t}}function j0(e,t){return Oi(e,null,t)}function h_(e,t){return Oi(e,null,{flush:"post"})}function B0(e,t){return Oi(e,null,{flush:"sync"})}const hm={};function Mt(e,t,n){return Oi(e,t,n)}function Oi(e,t,{immediate:n,deep:r,flush:s,onTrack:o,onTrigger:i}=yt){const a=Yt;let l,u=!1,d=!1;if(jt(e)?(l=()=>e.value,u=xd(e)):ws(e)?(l=()=>e,r=!0):Ue(e)?(d=!0,u=e.some(ws),l=()=>e.map(b=>{if(jt(b))return b.value;if(ws(b))return vs(b);if(et(b))return fr(b,a,2)})):et(e)?t?l=()=>fr(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return m&&m(),Dn(e,a,3,[f])}:l=nr,t&&r){const b=l;l=()=>vs(b())}let m,f=b=>{m=g.onStop=()=>{fr(b,a,4)}};if(fo)return f=nr,t?n&&Dn(t,a,3,[l(),d?[]:void 0,f]):l(),nr;let p=d?[]:hm;const h=()=>{if(!!g.active)if(t){const b=g.run();(r||u||(d?b.some((w,S)=>yi(w,p[S])):yi(b,p)))&&(m&&m(),Dn(t,a,3,[b,p===hm?void 0:p,f]),p=b)}else g.run()};h.allowRecurse=!!t;let _;s==="sync"?_=h:s==="post"?_=()=>Xt(h,a&&a.suspense):_=()=>{!a||a.isMounted?S0(h):h()};const g=new Ai(l,_);return t?n?h():p=g.run():s==="post"?Xt(g.run.bind(g),a&&a.suspense):g.run(),()=>{g.stop(),a&&a.scope&&hd(a.scope.effects,g)}}function H0(e,t,n){const r=this.proxy,s=Ot(e)?e.includes(".")?__(r,e):()=>r[e]:e.bind(r,r);let o;et(t)?o=t:(o=t.handler,n=t);const i=Yt;ts(this);const a=Oi(s,o.bind(r),n);return i?ts(i):Yr(),a}function __(e,t){const n=t.split(".");return()=>{let r=e;for(let s=0;s<n.length&&r;s++)r=r[n[s]];return r}}function vs(e,t){if(!Nt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),jt(e))vs(e.value,t);else if(Ue(e))for(let n=0;n<e.length;n++)vs(e[n],t);else if(Es(e)||no(e))e.forEach(n=>{vs(n,t)});else if(Bh(e))for(const n in e)vs(e[n],t);return e}function Id(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Ts(()=>{e.isMounted=!0}),Ul(()=>{e.isUnmounting=!0}),e}const Nn=[Function,Array],U0={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Nn,onEnter:Nn,onAfterEnter:Nn,onEnterCancelled:Nn,onBeforeLeave:Nn,onLeave:Nn,onAfterLeave:Nn,onLeaveCancelled:Nn,onBeforeAppear:Nn,onAppear:Nn,onAfterAppear:Nn,onAppearCancelled:Nn},setup(e,{slots:t}){const n=or(),r=Id();let s;return()=>{const o=t.default&&jl(t.default(),!0);if(!o||!o.length)return;let i=o[0];if(o.length>1){for(const _ of o)if(_.type!==ln){i=_;break}}const a=ut(e),{mode:l}=a;if(r.isLeaving)return zu(i);const u=_m(i);if(!u)return zu(i);const d=lo(u,a,r,n);Ss(u,d);const m=n.subTree,f=m&&_m(m);let p=!1;const{getTransitionKey:h}=u.type;if(h){const _=h();s===void 0?s=_:_!==s&&(s=_,p=!0)}if(f&&f.type!==ln&&(!cr(u,f)||p)){const _=lo(f,a,r,n);if(Ss(f,_),l==="out-in")return r.isLeaving=!0,_.afterLeave=()=>{r.isLeaving=!1,n.update()},zu(i);l==="in-out"&&u.type!==ln&&(_.delayLeave=(g,b,w)=>{const S=g_(r,f);S[String(f.key)]=f,g._leaveCb=()=>{b(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=w})}return i}}},Md=U0;function g_(e,t){const{leavingVNodes:n}=e;let r=n.get(t.type);return r||(r=Object.create(null),n.set(t.type,r)),r}function lo(e,t,n,r){const{appear:s,mode:o,persisted:i=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:m,onLeave:f,onAfterLeave:p,onLeaveCancelled:h,onBeforeAppear:_,onAppear:g,onAfterAppear:b,onAppearCancelled:w}=t,S=String(e.key),x=g_(n,e),$=(I,V)=>{I&&Dn(I,r,9,V)},A={mode:o,persisted:i,beforeEnter(I){let V=a;if(!n.isMounted)if(s)V=_||a;else return;I._leaveCb&&I._leaveCb(!0);const O=x[S];O&&cr(e,O)&&O.el._leaveCb&&O.el._leaveCb(),$(V,[I])},enter(I){let V=l,O=u,N=d;if(!n.isMounted)if(s)V=g||l,O=b||u,N=w||d;else return;let G=!1;const F=I._enterCb=B=>{G||(G=!0,B?$(N,[I]):$(O,[I]),A.delayedLeave&&A.delayedLeave(),I._enterCb=void 0)};V?(V(I,F),V.length<=1&&F()):F()},leave(I,V){const O=String(e.key);if(I._enterCb&&I._enterCb(!0),n.isUnmounting)return V();$(m,[I]);let N=!1;const G=I._leaveCb=F=>{N||(N=!0,V(),F?$(h,[I]):$(p,[I]),I._leaveCb=void 0,x[O]===e&&delete x[O])};x[O]=e,f?(f(I,G),f.length<=1&&G()):G()},clone(I){return lo(I,t,n,r)}};return A}function zu(e){if(Pi(e))return e=Er(e),e.children=null,e}function _m(e){return Pi(e)?e.children?e.children[0]:void 0:e}function Ss(e,t){e.shapeFlag&6&&e.component?Ss(e.component.subTree,t):e.shapeFlag&128?(e.ssContent.transition=t.clone(e.ssContent),e.ssFallback.transition=t.clone(e.ssFallback)):e.transition=t}function jl(e,t=!1,n){let r=[],s=0;for(let o=0;o<e.length;o++){let i=e[o];const a=n==null?i.key:String(n)+String(i.key!=null?i.key:o);i.type===We?(i.patchFlag&128&&s++,r=r.concat(jl(i.children,t,a))):(t||i.type!==ln)&&r.push(a!=null?Er(i,{key:a}):i)}if(s>1)for(let o=0;o<r.length;o++)r[o].patchFlag=-2;return r}function Ti(e){return et(e)?{setup:e,name:e.name}:e}const uo=e=>!!e.type.__asyncLoader;function q0(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:r,delay:s=200,timeout:o,suspensible:i=!0,onError:a}=e;let l=null,u,d=0;const m=()=>(d++,l=null,f()),f=()=>{let p;return l||(p=l=t().catch(h=>{if(h=h instanceof Error?h:new Error(String(h)),a)return new Promise((_,g)=>{a(h,()=>_(m()),()=>g(h),d+1)});throw h}).then(h=>p!==l&&l?l:(h&&(h.__esModule||h[Symbol.toStringTag]==="Module")&&(h=h.default),u=h,h)))};return Ti({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const p=Yt;if(u)return()=>Au(u,p);const h=w=>{l=null,Os(w,p,13,!r)};if(i&&p.suspense||fo)return f().then(w=>()=>Au(w,p)).catch(w=>(h(w),()=>r?C(r,{error:w}):null));const _=wn(!1),g=wn(),b=wn(!!s);return s&&setTimeout(()=>{b.value=!1},s),o!=null&&setTimeout(()=>{if(!_.value&&!g.value){const w=new Error(`Async component timed out after ${o}ms.`);h(w),g.value=w}},o),f().then(()=>{_.value=!0,p.parent&&Pi(p.parent.vnode)&&Od(p.parent.update)}).catch(w=>{h(w),g.value=w}),()=>{if(_.value&&u)return Au(u,p);if(g.value&&r)return C(r,{error:g.value});if(n&&!b.value)return C(n)}}})}function Au(e,{vnode:{ref:t,props:n,children:r}}){const s=C(e,n,r);return s.ref=t,s}const Pi=e=>e.type.__isKeepAlive,W0={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=or(),r=n.ctx;if(!r.renderer)return t.default;const s=new Map,o=new Set;let i=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:m}}}=r,f=m("div");r.activate=(w,S,x,$,A)=>{const I=w.component;u(w,S,x,0,a),l(I.vnode,w,S,x,I,a,$,w.slotScopeIds,A),Xt(()=>{I.isDeactivated=!1,I.a&&ro(I.a);const V=w.props&&w.props.onVnodeMounted;V&&bn(V,I.parent,w)},a)},r.deactivate=w=>{const S=w.component;u(w,f,null,1,a),Xt(()=>{S.da&&ro(S.da);const x=w.props&&w.props.onVnodeUnmounted;x&&bn(x,S.parent,w),S.isDeactivated=!0},a)};function p(w){Ou(w),d(w,n,a,!0)}function h(w){s.forEach((S,x)=>{const $=fl(S.type);$&&(!w||!w($))&&_(x)})}function _(w){const S=s.get(w);!i||S.type!==i.type?p(S):i&&Ou(i),s.delete(w),o.delete(w)}Mt(()=>[e.include,e.exclude],([w,S])=>{w&&h(x=>qo(w,x)),S&&h(x=>!qo(S,x))},{flush:"post",deep:!0});let g=null;const b=()=>{g!=null&&s.set(g,Tu(n.subTree))};return Ts(b),Hl(b),Ul(()=>{s.forEach(w=>{const{subTree:S,suspense:x}=n,$=Tu(S);if(w.type===$.type){Ou($);const A=$.component.da;A&&Xt(A,x);return}p(w)})}),()=>{if(g=null,!t.default)return null;const w=t.default(),S=w[0];if(w.length>1)return i=null,w;if(!es(S)||!(S.shapeFlag&4)&&!(S.shapeFlag&128))return i=null,S;let x=Tu(S);const $=x.type,A=fl(uo(x)?x.type.__asyncResolved||{}:$),{include:I,exclude:V,max:O}=e;if(I&&(!A||!qo(I,A))||V&&A&&qo(V,A))return i=x,S;const N=x.key==null?$:x.key,G=s.get(N);return x.el&&(x=Er(x),S.shapeFlag&128&&(S.ssContent=x)),g=N,G?(x.el=G.el,x.component=G.component,x.transition&&Ss(x,x.transition),x.shapeFlag|=512,o.delete(N),o.add(N)):(o.add(N),O&&o.size>parseInt(O,10)&&_(o.values().next().value)),x.shapeFlag|=256,i=x,S}}},G0=W0;function qo(e,t){return Ue(e)?e.some(n=>qo(n,t)):Ot(e)?e.split(",").includes(t):e.test?e.test(t):!1}function y_(e,t){b_(e,"a",t)}function v_(e,t){b_(e,"da",t)}function b_(e,t,n=Yt){const r=e.__wdc||(e.__wdc=()=>{let s=n;for(;s;){if(s.isDeactivated)return;s=s.parent}return e()});if(Bl(t,r,n),n){let s=n.parent;for(;s&&s.parent;)Pi(s.parent.vnode)&&K0(r,t,n,s),s=s.parent}}function K0(e,t,n,r){const s=Bl(t,e,r,!0);Co(()=>{hd(r[t],s)},n)}function Ou(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function Tu(e){return e.shapeFlag&128?e.ssContent:e}function Bl(e,t,n=Yt,r=!1){if(n){const s=n[e]||(n[e]=[]),o=t.__weh||(t.__weh=(...i)=>{if(n.isUnmounted)return;$s(),ts(n);const a=Dn(t,n,e,i);return Yr(),zs(),a});return r?s.unshift(o):s.push(o),o}}const Ar=e=>(t,n=Yt)=>(!fo||e==="sp")&&Bl(e,t,n),w_=Ar("bm"),Ts=Ar("m"),C_=Ar("bu"),Hl=Ar("u"),Ul=Ar("bum"),Co=Ar("um"),x_=Ar("sp"),k_=Ar("rtg"),S_=Ar("rtc");function E_(e,t=Yt){Bl("ec",e,t)}let yc=!0;function Y0(e){const t=z_(e),n=e.proxy,r=e.ctx;yc=!1,t.beforeCreate&&gm(t.beforeCreate,e,"bc");const{data:s,computed:o,methods:i,watch:a,provide:l,inject:u,created:d,beforeMount:m,mounted:f,beforeUpdate:p,updated:h,activated:_,deactivated:g,beforeDestroy:b,beforeUnmount:w,destroyed:S,unmounted:x,render:$,renderTracked:A,renderTriggered:I,errorCaptured:V,serverPrefetch:O,expose:N,inheritAttrs:G,components:F,directives:B,filters:Y}=t;if(u&&Z0(u,r,null,e.appContext.config.unwrapInjectedRef),i)for(const le in i){const ge=i[le];et(ge)&&(r[le]=ge.bind(n))}if(s){const le=s.call(n,n);Nt(le)&&(e.data=As(le))}if(yc=!0,o)for(const le in o){const ge=o[le],Re=et(ge)?ge.bind(n,n):et(ge.get)?ge.get.bind(n,n):nr,Be=!et(ge)&&et(ge.set)?ge.set.bind(n):nr,he=At({get:Re,set:Be});Object.defineProperty(r,le,{enumerable:!0,configurable:!0,get:()=>he.value,set:X=>he.value=X})}if(a)for(const le in a)$_(a[le],r,n,le);if(l){const le=et(l)?l.call(n):l;Reflect.ownKeys(le).forEach(ge=>{si(ge,le[ge])})}d&&gm(d,e,"c");function te(le,ge){Ue(ge)?ge.forEach(Re=>le(Re.bind(n))):ge&&le(ge.bind(n))}if(te(w_,m),te(Ts,f),te(C_,p),te(Hl,h),te(y_,_),te(v_,g),te(E_,V),te(S_,A),te(k_,I),te(Ul,w),te(Co,x),te(x_,O),Ue(N))if(N.length){const le=e.exposed||(e.exposed={});N.forEach(ge=>{Object.defineProperty(le,ge,{get:()=>n[ge],set:Re=>n[ge]=Re})})}else e.exposed||(e.exposed={});$&&e.render===nr&&(e.render=$),G!=null&&(e.inheritAttrs=G),F&&(e.components=F),B&&(e.directives=B)}function Z0(e,t,n=nr,r=!1){Ue(e)&&(e=vc(e));for(const s in e){const o=e[s];let i;Nt(o)?"default"in o?i=rr(o.from||s,o.default,!0):i=rr(o.from||s):i=rr(o),jt(i)&&r?Object.defineProperty(t,s,{enumerable:!0,configurable:!0,get:()=>i.value,set:a=>i.value=a}):t[s]=i}}function gm(e,t,n){Dn(Ue(e)?e.map(r=>r.bind(t.proxy)):e.bind(t.proxy),t,n)}function $_(e,t,n,r){const s=r.includes(".")?__(n,r):()=>n[r];if(Ot(e)){const o=t[e];et(o)&&Mt(s,o)}else if(et(e))Mt(s,e.bind(n));else if(Nt(e))if(Ue(e))e.forEach(o=>$_(o,t,n,r));else{const o=et(e.handler)?e.handler.bind(n):t[e.handler];et(o)&&Mt(s,o,e)}}function z_(e){const t=e.type,{mixins:n,extends:r}=t,{mixins:s,optionsCache:o,config:{optionMergeStrategies:i}}=e.appContext,a=o.get(t);let l;return a?l=a:!s.length&&!n&&!r?l=t:(l={},s.length&&s.forEach(u=>ll(l,u,i,!0)),ll(l,t,i)),o.set(t,l),l}function ll(e,t,n,r=!1){const{mixins:s,extends:o}=t;o&&ll(e,o,n,!0),s&&s.forEach(i=>ll(e,i,n,!0));for(const i in t)if(!(r&&i==="expose")){const a=J0[i]||n&&n[i];e[i]=a?a(e[i],t[i]):t[i]}return e}const J0={data:ym,props:ps,emits:ps,methods:ps,computed:ps,beforeCreate:cn,created:cn,beforeMount:cn,mounted:cn,beforeUpdate:cn,updated:cn,beforeDestroy:cn,beforeUnmount:cn,destroyed:cn,unmounted:cn,activated:cn,deactivated:cn,errorCaptured:cn,serverPrefetch:cn,components:ps,directives:ps,watch:Q0,provide:ym,inject:X0};function ym(e,t){return t?e?function(){return Lt(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function X0(e,t){return ps(vc(e),vc(t))}function vc(e){if(Ue(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function cn(e,t){return e?[...new Set([].concat(e,t))]:t}function ps(e,t){return e?Lt(Lt(Object.create(null),e),t):t}function Q0(e,t){if(!e)return t;if(!t)return e;const n=Lt(Object.create(null),e);for(const r in t)n[r]=cn(e[r],t[r]);return n}function ew(e,t,n,r=!1){const s={},o={};ol(o,Wl,1),e.propsDefaults=Object.create(null),A_(e,t,s,o);for(const i in e.propsOptions[0])i in s||(s[i]=void 0);n?e.props=r?s:n_(s):e.type.props?e.props=s:e.props=o,e.attrs=o}function tw(e,t,n,r){const{props:s,attrs:o,vnode:{patchFlag:i}}=e,a=ut(s),[l]=e.propsOptions;let u=!1;if((r||i>0)&&!(i&16)){if(i&8){const d=e.vnode.dynamicProps;for(let m=0;m<d.length;m++){let f=d[m];if(Nl(e.emitsOptions,f))continue;const p=t[f];if(l)if(ft(o,f))p!==o[f]&&(o[f]=p,u=!0);else{const h=In(f);s[h]=bc(l,a,h,p,e,!1)}else p!==o[f]&&(o[f]=p,u=!0)}}}else{A_(e,t,s,o)&&(u=!0);let d;for(const m in a)(!t||!ft(t,m)&&((d=dr(m))===m||!ft(t,d)))&&(l?n&&(n[m]!==void 0||n[d]!==void 0)&&(s[m]=bc(l,a,m,void 0,e,!0)):delete s[m]);if(o!==a)for(const m in o)(!t||!ft(t,m)&&!0)&&(delete o[m],u=!0)}u&&Sr(e,"set","$attrs")}function A_(e,t,n,r){const[s,o]=e.propsOptions;let i=!1,a;if(t)for(let l in t){if(Xo(l))continue;const u=t[l];let d;s&&ft(s,d=In(l))?!o||!o.includes(d)?n[d]=u:(a||(a={}))[d]=u:Nl(e.emitsOptions,l)||(!(l in r)||u!==r[l])&&(r[l]=u,i=!0)}if(o){const l=ut(n),u=a||yt;for(let d=0;d<o.length;d++){const m=o[d];n[m]=bc(s,l,m,u[m],e,!ft(u,m))}}return i}function bc(e,t,n,r,s,o){const i=e[n];if(i!=null){const a=ft(i,"default");if(a&&r===void 0){const l=i.default;if(i.type!==Function&&et(l)){const{propsDefaults:u}=s;n in u?r=u[n]:(ts(s),r=u[n]=l.call(null,t),Yr())}else r=l}i[0]&&(o&&!a?r=!1:i[1]&&(r===""||r===dr(n))&&(r=!0))}return r}function O_(e,t,n=!1){const r=t.propsCache,s=r.get(e);if(s)return s;const o=e.props,i={},a=[];let l=!1;if(!et(e)){const d=m=>{l=!0;const[f,p]=O_(m,t,!0);Lt(i,f),p&&a.push(...p)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!o&&!l)return r.set(e,to),to;if(Ue(o))for(let d=0;d<o.length;d++){const m=In(o[d]);vm(m)&&(i[m]=yt)}else if(o)for(const d in o){const m=In(d);if(vm(m)){const f=o[d],p=i[m]=Ue(f)||et(f)?{type:f}:f;if(p){const h=Cm(Boolean,p.type),_=Cm(String,p.type);p[0]=h>-1,p[1]=_<0||h<_,(h>-1||ft(p,"default"))&&a.push(m)}}}const u=[i,a];return r.set(e,u),u}function vm(e){return e[0]!=="$"}function bm(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function wm(e,t){return bm(e)===bm(t)}function Cm(e,t){return Ue(t)?t.findIndex(n=>wm(n,e)):et(t)&&wm(t,e)?0:-1}const T_=e=>e[0]==="_"||e==="$stable",Rd=e=>Ue(e)?e.map(On):[On(e)],nw=(e,t,n)=>{const r=P((...s)=>Rd(t(...s)),n);return r._c=!1,r},P_=(e,t,n)=>{const r=e._ctx;for(const s in e){if(T_(s))continue;const o=e[s];if(et(o))t[s]=nw(s,o,r);else if(o!=null){const i=Rd(o);t[s]=()=>i}}},D_=(e,t)=>{const n=Rd(t);e.slots.default=()=>n},rw=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ut(t),ol(t,"_",n)):P_(t,e.slots={})}else e.slots={},t&&D_(e,t);ol(e.slots,Wl,1)},sw=(e,t,n)=>{const{vnode:r,slots:s}=e;let o=!0,i=yt;if(r.shapeFlag&32){const a=t._;a?n&&a===1?o=!1:(Lt(s,t),!n&&a===1&&delete s._):(o=!t.$stable,P_(t,s)),i=t}else t&&(D_(e,t),i={default:1});if(o)for(const a in s)!T_(a)&&!(a in i)&&delete s[a]};function Ct(e,t){const n=rn;if(n===null)return e;const r=Gl(n)||n.proxy,s=e.dirs||(e.dirs=[]);for(let o=0;o<t.length;o++){let[i,a,l,u=yt]=t[o];et(i)&&(i={mounted:i,updated:i}),i.deep&&vs(a),s.push({dir:i,instance:r,value:a,oldValue:void 0,arg:l,modifiers:u})}return e}function lr(e,t,n,r){const s=e.dirs,o=t&&t.dirs;for(let i=0;i<s.length;i++){const a=s[i];o&&(a.oldValue=o[i].value);let l=a.dir[r];l&&($s(),Dn(l,n,8,[e.el,a,e,t]),zs())}}function F_(){return{app:null,config:{isNativeTag:Sb,performance:!1,globalProperties:{},optionMergeStrategies:{},errorHandler:void 0,warnHandler:void 0,compilerOptions:{}},mixins:[],components:{},directives:{},provides:Object.create(null),optionsCache:new WeakMap,propsCache:new WeakMap,emitsCache:new WeakMap}}let ow=0;function iw(e,t){return function(r,s=null){et(r)||(r=Object.assign({},r)),s!=null&&!Nt(s)&&(s=null);const o=F_(),i=new Set;let a=!1;const l=o.app={_uid:ow++,_component:r,_props:s,_container:null,_context:o,_instance:null,version:eg,get config(){return o.config},set config(u){},use(u,...d){return i.has(u)||(u&&et(u.install)?(i.add(u),u.install(l,...d)):et(u)&&(i.add(u),u(l,...d))),l},mixin(u){return o.mixins.includes(u)||o.mixins.push(u),l},component(u,d){return d?(o.components[u]=d,l):o.components[u]},directive(u,d){return d?(o.directives[u]=d,l):o.directives[u]},mount(u,d,m){if(!a){const f=C(r,s);return f.appContext=o,d&&t?t(f,u):e(f,u,m),a=!0,l._container=u,u.__vue_app__=l,Gl(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,d){return o.provides[u]=d,l}};return l}}function ul(e,t,n,r,s=!1){if(Ue(e)){e.forEach((f,p)=>ul(f,t&&(Ue(t)?t[p]:t),n,r,s));return}if(uo(r)&&!s)return;const o=r.shapeFlag&4?Gl(r.component)||r.component.proxy:r.el,i=s?null:o,{i:a,r:l}=e,u=t&&t.r,d=a.refs===yt?a.refs={}:a.refs,m=a.setupState;if(u!=null&&u!==l&&(Ot(u)?(d[u]=null,ft(m,u)&&(m[u]=null)):jt(u)&&(u.value=null)),et(l))fr(l,a,12,[i,d]);else{const f=Ot(l),p=jt(l);if(f||p){const h=()=>{if(e.f){const _=f?d[l]:l.value;s?Ue(_)&&hd(_,o):Ue(_)?_.includes(o)||_.push(o):f?(d[l]=[o],ft(m,l)&&(m[l]=d[l])):(l.value=[o],e.k&&(d[e.k]=l.value))}else f?(d[l]=i,ft(m,l)&&(m[l]=i)):jt(l)&&(l.value=i,e.k&&(d[e.k]=i))};i?(h.id=-1,Xt(h,n)):h()}}}let Ir=!1;const ea=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",Pu=e=>e.nodeType===8;function aw(e){const{mt:t,p:n,o:{patchProp:r,nextSibling:s,parentNode:o,remove:i,insert:a,createComment:l}}=e,u=(g,b)=>{if(!b.hasChildNodes()){n(null,g,b),al();return}Ir=!1,d(b.firstChild,g,null,null,null),al(),Ir&&console.error("Hydration completed but contains mismatches.")},d=(g,b,w,S,x,$=!1)=>{const A=Pu(g)&&g.data==="[",I=()=>h(g,b,w,S,x,A),{type:V,ref:O,shapeFlag:N}=b,G=g.nodeType;b.el=g;let F=null;switch(V){case Qr:G!==3?F=I():(g.data!==b.children&&(Ir=!0,g.data=b.children),F=s(g));break;case ln:G!==8||A?F=I():F=s(g);break;case Cs:if(G!==1)F=I();else{F=g;const B=!b.children.length;for(let Y=0;Y<b.staticCount;Y++)B&&(b.children+=F.outerHTML),Y===b.staticCount-1&&(b.anchor=F),F=s(F);return F}break;case We:A?F=p(g,b,w,S,x,$):F=I();break;default:if(N&1)G!==1||b.type.toLowerCase()!==g.tagName.toLowerCase()?F=I():F=m(g,b,w,S,x,$);else if(N&6){b.slotScopeIds=x;const B=o(g);if(t(b,B,null,w,S,ea(B),$),F=A?_(g):s(g),uo(b)){let Y;A?(Y=C(We),Y.anchor=F?F.previousSibling:B.lastChild):Y=g.nodeType===3?Tt(""):C("div"),Y.el=g,b.component.subTree=Y}}else N&64?G!==8?F=I():F=b.type.hydrate(g,b,w,S,x,$,e,f):N&128&&(F=b.type.hydrate(g,b,w,S,ea(o(g)),x,$,e,d))}return O!=null&&ul(O,null,S,b),F},m=(g,b,w,S,x,$)=>{$=$||!!b.dynamicChildren;const{type:A,props:I,patchFlag:V,shapeFlag:O,dirs:N}=b,G=A==="input"&&N||A==="option";if(G||V!==-1){if(N&&lr(b,null,w,"created"),I)if(G||!$||V&48)for(const B in I)(G&&B.endsWith("value")||$i(B)&&!Xo(B))&&r(g,B,null,I[B],!1,void 0,w);else I.onClick&&r(g,"onClick",null,I.onClick,!1,void 0,w);let F;if((F=I&&I.onVnodeBeforeMount)&&bn(F,w,b),N&&lr(b,null,w,"beforeMount"),((F=I&&I.onVnodeMounted)||N)&&p_(()=>{F&&bn(F,w,b),N&&lr(b,null,w,"mounted")},S),O&16&&!(I&&(I.innerHTML||I.textContent))){let B=f(g.firstChild,b,g,w,S,x,$);for(;B;){Ir=!0;const Y=B;B=B.nextSibling,i(Y)}}else O&8&&g.textContent!==b.children&&(Ir=!0,g.textContent=b.children)}return g.nextSibling},f=(g,b,w,S,x,$,A)=>{A=A||!!b.dynamicChildren;const I=b.children,V=I.length;for(let O=0;O<V;O++){const N=A?I[O]:I[O]=On(I[O]);if(g)g=d(g,N,S,x,$,A);else{if(N.type===Qr&&!N.children)continue;Ir=!0,n(null,N,w,null,S,x,ea(w),$)}}return g},p=(g,b,w,S,x,$)=>{const{slotScopeIds:A}=b;A&&(x=x?x.concat(A):A);const I=o(g),V=f(s(g),b,I,w,S,x,$);return V&&Pu(V)&&V.data==="]"?s(b.anchor=V):(Ir=!0,a(b.anchor=l("]"),I,V),V)},h=(g,b,w,S,x,$)=>{if(Ir=!0,b.el=null,$){const V=_(g);for(;;){const O=s(g);if(O&&O!==V)i(O);else break}}const A=s(g),I=o(g);return i(g),n(null,b,I,A,w,S,ea(I),x),A},_=g=>{let b=0;for(;g;)if(g=s(g),g&&Pu(g)&&(g.data==="["&&b++,g.data==="]")){if(b===0)return s(g);b--}return g};return[u,d]}const Xt=p_;function I_(e){return R_(e)}function M_(e){return R_(e,aw)}function R_(e,t){const n=Tb();n.__VUE__=!0;const{insert:r,remove:s,patchProp:o,createElement:i,createText:a,createComment:l,setText:u,setElementText:d,parentNode:m,nextSibling:f,setScopeId:p=nr,cloneNode:h,insertStaticContent:_}=e,g=(z,R,Z,ae=null,ue=null,ye=null,Ce=!1,pe=null,j=!!R.dynamicChildren)=>{if(z===R)return;z&&!cr(z,R)&&(ae=be(z),fe(z,ue,ye,!0),z=null),R.patchFlag===-2&&(j=!1,R.dynamicChildren=null);const{type:U,ref:ze,shapeFlag:xe}=R;switch(U){case Qr:b(z,R,Z,ae);break;case ln:w(z,R,Z,ae);break;case Cs:z==null&&S(R,Z,ae,Ce);break;case We:B(z,R,Z,ae,ue,ye,Ce,pe,j);break;default:xe&1?A(z,R,Z,ae,ue,ye,Ce,pe,j):xe&6?Y(z,R,Z,ae,ue,ye,Ce,pe,j):(xe&64||xe&128)&&U.process(z,R,Z,ae,ue,ye,Ce,pe,j,Ie)}ze!=null&&ue&&ul(ze,z&&z.ref,ye,R||z,!R)},b=(z,R,Z,ae)=>{if(z==null)r(R.el=a(R.children),Z,ae);else{const ue=R.el=z.el;R.children!==z.children&&u(ue,R.children)}},w=(z,R,Z,ae)=>{z==null?r(R.el=l(R.children||""),Z,ae):R.el=z.el},S=(z,R,Z,ae)=>{[z.el,z.anchor]=_(z.children,R,Z,ae,z.el,z.anchor)},x=({el:z,anchor:R},Z,ae)=>{let ue;for(;z&&z!==R;)ue=f(z),r(z,Z,ae),z=ue;r(R,Z,ae)},$=({el:z,anchor:R})=>{let Z;for(;z&&z!==R;)Z=f(z),s(z),z=Z;s(R)},A=(z,R,Z,ae,ue,ye,Ce,pe,j)=>{Ce=Ce||R.type==="svg",z==null?I(R,Z,ae,ue,ye,Ce,pe,j):N(z,R,ue,ye,Ce,pe,j)},I=(z,R,Z,ae,ue,ye,Ce,pe)=>{let j,U;const{type:ze,props:xe,shapeFlag:De,transition:Le,patchFlag:qe,dirs:nt}=z;if(z.el&&h!==void 0&&qe===-1)j=z.el=h(z.el);else{if(j=z.el=i(z.type,ye,xe&&xe.is,xe),De&8?d(j,z.children):De&16&&O(z.children,j,null,ae,ue,ye&&ze!=="foreignObject",Ce,pe),nt&&lr(z,null,ae,"created"),xe){for(const y in xe)y!=="value"&&!Xo(y)&&o(j,y,null,xe[y],ye,z.children,ae,ue,se);"value"in xe&&o(j,"value",null,xe.value),(U=xe.onVnodeBeforeMount)&&bn(U,ae,z)}V(j,z,z.scopeId,Ce,ae)}nt&&lr(z,null,ae,"beforeMount");const k=(!ue||ue&&!ue.pendingBranch)&&Le&&!Le.persisted;k&&Le.beforeEnter(j),r(j,R,Z),((U=xe&&xe.onVnodeMounted)||k||nt)&&Xt(()=>{U&&bn(U,ae,z),k&&Le.enter(j),nt&&lr(z,null,ae,"mounted")},ue)},V=(z,R,Z,ae,ue)=>{if(Z&&p(z,Z),ae)for(let ye=0;ye<ae.length;ye++)p(z,ae[ye]);if(ue){let ye=ue.subTree;if(R===ye){const Ce=ue.vnode;V(z,Ce,Ce.scopeId,Ce.slotScopeIds,ue.parent)}}},O=(z,R,Z,ae,ue,ye,Ce,pe,j=0)=>{for(let U=j;U<z.length;U++){const ze=z[U]=pe?jr(z[U]):On(z[U]);g(null,ze,R,Z,ae,ue,ye,Ce,pe)}},N=(z,R,Z,ae,ue,ye,Ce)=>{const pe=R.el=z.el;let{patchFlag:j,dynamicChildren:U,dirs:ze}=R;j|=z.patchFlag&16;const xe=z.props||yt,De=R.props||yt;let Le;Z&&ls(Z,!1),(Le=De.onVnodeBeforeUpdate)&&bn(Le,Z,R,z),ze&&lr(R,z,Z,"beforeUpdate"),Z&&ls(Z,!0);const qe=ue&&R.type!=="foreignObject";if(U?G(z.dynamicChildren,U,pe,Z,ae,qe,ye):Ce||Re(z,R,pe,null,Z,ae,qe,ye,!1),j>0){if(j&16)F(pe,R,xe,De,Z,ae,ue);else if(j&2&&xe.class!==De.class&&o(pe,"class",null,De.class,ue),j&4&&o(pe,"style",xe.style,De.style,ue),j&8){const nt=R.dynamicProps;for(let k=0;k<nt.length;k++){const y=nt[k],M=xe[y],W=De[y];(W!==M||y==="value")&&o(pe,y,M,W,ue,z.children,Z,ae,se)}}j&1&&z.children!==R.children&&d(pe,R.children)}else!Ce&&U==null&&F(pe,R,xe,De,Z,ae,ue);((Le=De.onVnodeUpdated)||ze)&&Xt(()=>{Le&&bn(Le,Z,R,z),ze&&lr(R,z,Z,"updated")},ae)},G=(z,R,Z,ae,ue,ye,Ce)=>{for(let pe=0;pe<R.length;pe++){const j=z[pe],U=R[pe],ze=j.el&&(j.type===We||!cr(j,U)||j.shapeFlag&70)?m(j.el):Z;g(j,U,ze,null,ae,ue,ye,Ce,!0)}},F=(z,R,Z,ae,ue,ye,Ce)=>{if(Z!==ae){for(const pe in ae){if(Xo(pe))continue;const j=ae[pe],U=Z[pe];j!==U&&pe!=="value"&&o(z,pe,U,j,Ce,R.children,ue,ye,se)}if(Z!==yt)for(const pe in Z)!Xo(pe)&&!(pe in ae)&&o(z,pe,Z[pe],null,Ce,R.children,ue,ye,se);"value"in ae&&o(z,"value",Z.value,ae.value)}},B=(z,R,Z,ae,ue,ye,Ce,pe,j)=>{const U=R.el=z?z.el:a(""),ze=R.anchor=z?z.anchor:a("");let{patchFlag:xe,dynamicChildren:De,slotScopeIds:Le}=R;Le&&(pe=pe?pe.concat(Le):Le),z==null?(r(U,Z,ae),r(ze,Z,ae),O(R.children,Z,ze,ue,ye,Ce,pe,j)):xe>0&&xe&64&&De&&z.dynamicChildren?(G(z.dynamicChildren,De,Z,ue,ye,Ce,pe),(R.key!=null||ue&&R===ue.subTree)&&Ld(z,R,!0)):Re(z,R,Z,ze,ue,ye,Ce,pe,j)},Y=(z,R,Z,ae,ue,ye,Ce,pe,j)=>{R.slotScopeIds=pe,z==null?R.shapeFlag&512?ue.ctx.activate(R,Z,ae,Ce,j):de(R,Z,ae,ue,ye,Ce,j):te(z,R,j)},de=(z,R,Z,ae,ue,ye,Ce)=>{const pe=z.component=q_(z,ae,ue);if(Pi(z)&&(pe.ctx.renderer=Ie),G_(pe),pe.asyncDep){if(ue&&ue.registerDep(pe,le),!z.el){const j=pe.subTree=C(ln);w(null,j,R,Z)}return}le(pe,z,R,Z,ue,ye,Ce)},te=(z,R,Z)=>{const ae=R.component=z.component;if(D0(z,R,Z))if(ae.asyncDep&&!ae.asyncResolved){ge(ae,R,Z);return}else ae.next=R,k0(ae.update),ae.update();else R.component=z.component,R.el=z.el,ae.vnode=R},le=(z,R,Z,ae,ue,ye,Ce)=>{const pe=()=>{if(z.isMounted){let{next:ze,bu:xe,u:De,parent:Le,vnode:qe}=z,nt=ze,k;ls(z,!1),ze?(ze.el=qe.el,ge(z,ze,Ce)):ze=qe,xe&&ro(xe),(k=ze.props&&ze.props.onVnodeBeforeUpdate)&&bn(k,Le,ze,qe),ls(z,!0);const y=Ga(z),M=z.subTree;z.subTree=y,g(M,y,m(M.el),be(M),z,ue,ye),ze.el=y.el,nt===null&&Dd(z,y.el),De&&Xt(De,ue),(k=ze.props&&ze.props.onVnodeUpdated)&&Xt(()=>bn(k,Le,ze,qe),ue)}else{let ze;const{el:xe,props:De}=R,{bm:Le,m:qe,parent:nt}=z,k=uo(R);if(ls(z,!1),Le&&ro(Le),!k&&(ze=De&&De.onVnodeBeforeMount)&&bn(ze,nt,R),ls(z,!0),xe&&Ae){const y=()=>{z.subTree=Ga(z),Ae(xe,z.subTree,z,ue,null)};k?R.type.__asyncLoader().then(()=>!z.isUnmounted&&y()):y()}else{const y=z.subTree=Ga(z);g(null,y,Z,ae,z,ue,ye),R.el=y.el}if(qe&&Xt(qe,ue),!k&&(ze=De&&De.onVnodeMounted)){const y=R;Xt(()=>bn(ze,nt,y),ue)}R.shapeFlag&256&&z.a&&Xt(z.a,ue),z.isMounted=!0,R=Z=ae=null}},j=z.effect=new Ai(pe,()=>Od(z.update),z.scope),U=z.update=j.run.bind(j);U.id=z.uid,ls(z,!0),U()},ge=(z,R,Z)=>{R.component=z;const ae=z.vnode.props;z.vnode=R,z.next=null,tw(z,R.props,ae,Z),sw(z,R.children,Z),$s(),Pd(void 0,z.update),zs()},Re=(z,R,Z,ae,ue,ye,Ce,pe,j=!1)=>{const U=z&&z.children,ze=z?z.shapeFlag:0,xe=R.children,{patchFlag:De,shapeFlag:Le}=R;if(De>0){if(De&128){he(U,xe,Z,ae,ue,ye,Ce,pe,j);return}else if(De&256){Be(U,xe,Z,ae,ue,ye,Ce,pe,j);return}}Le&8?(ze&16&&se(U,ue,ye),xe!==U&&d(Z,xe)):ze&16?Le&16?he(U,xe,Z,ae,ue,ye,Ce,pe,j):se(U,ue,ye,!0):(ze&8&&d(Z,""),Le&16&&O(xe,Z,ae,ue,ye,Ce,pe,j))},Be=(z,R,Z,ae,ue,ye,Ce,pe,j)=>{z=z||to,R=R||to;const U=z.length,ze=R.length,xe=Math.min(U,ze);let De;for(De=0;De<xe;De++){const Le=R[De]=j?jr(R[De]):On(R[De]);g(z[De],Le,Z,null,ue,ye,Ce,pe,j)}U>ze?se(z,ue,ye,!0,!1,xe):O(R,Z,ae,ue,ye,Ce,pe,j,xe)},he=(z,R,Z,ae,ue,ye,Ce,pe,j)=>{let U=0;const ze=R.length;let xe=z.length-1,De=ze-1;for(;U<=xe&&U<=De;){const Le=z[U],qe=R[U]=j?jr(R[U]):On(R[U]);if(cr(Le,qe))g(Le,qe,Z,null,ue,ye,Ce,pe,j);else break;U++}for(;U<=xe&&U<=De;){const Le=z[xe],qe=R[De]=j?jr(R[De]):On(R[De]);if(cr(Le,qe))g(Le,qe,Z,null,ue,ye,Ce,pe,j);else break;xe--,De--}if(U>xe){if(U<=De){const Le=De+1,qe=Le<ze?R[Le].el:ae;for(;U<=De;)g(null,R[U]=j?jr(R[U]):On(R[U]),Z,qe,ue,ye,Ce,pe,j),U++}}else if(U>De)for(;U<=xe;)fe(z[U],ue,ye,!0),U++;else{const Le=U,qe=U,nt=new Map;for(U=qe;U<=De;U++){const Me=R[U]=j?jr(R[U]):On(R[U]);Me.key!=null&&nt.set(Me.key,U)}let k,y=0;const M=De-qe+1;let W=!1,Q=0;const me=new Array(M);for(U=0;U<M;U++)me[U]=0;for(U=Le;U<=xe;U++){const Me=z[U];if(y>=M){fe(Me,ue,ye,!0);continue}let re;if(Me.key!=null)re=nt.get(Me.key);else for(k=qe;k<=De;k++)if(me[k-qe]===0&&cr(Me,R[k])){re=k;break}re===void 0?fe(Me,ue,ye,!0):(me[re-qe]=U+1,re>=Q?Q=re:W=!0,g(Me,R[re],Z,null,ue,ye,Ce,pe,j),y++)}const Ee=W?lw(me):to;for(k=Ee.length-1,U=M-1;U>=0;U--){const Me=qe+U,re=R[Me],ce=Me+1<ze?R[Me+1].el:ae;me[U]===0?g(null,re,Z,ce,ue,ye,Ce,pe,j):W&&(k<0||U!==Ee[k]?X(re,Z,ce,2):k--)}}},X=(z,R,Z,ae,ue=null)=>{const{el:ye,type:Ce,transition:pe,children:j,shapeFlag:U}=z;if(U&6){X(z.component.subTree,R,Z,ae);return}if(U&128){z.suspense.move(R,Z,ae);return}if(U&64){Ce.move(z,R,Z,Ie);return}if(Ce===We){r(ye,R,Z);for(let xe=0;xe<j.length;xe++)X(j[xe],R,Z,ae);r(z.anchor,R,Z);return}if(Ce===Cs){x(z,R,Z);return}if(ae!==2&&U&1&&pe)if(ae===0)pe.beforeEnter(ye),r(ye,R,Z),Xt(()=>pe.enter(ye),ue);else{const{leave:xe,delayLeave:De,afterLeave:Le}=pe,qe=()=>r(ye,R,Z),nt=()=>{xe(ye,()=>{qe(),Le&&Le()})};De?De(ye,qe,nt):nt()}else r(ye,R,Z)},fe=(z,R,Z,ae=!1,ue=!1)=>{const{type:ye,props:Ce,ref:pe,children:j,dynamicChildren:U,shapeFlag:ze,patchFlag:xe,dirs:De}=z;if(pe!=null&&ul(pe,null,Z,z,!0),ze&256){R.ctx.deactivate(z);return}const Le=ze&1&&De,qe=!uo(z);let nt;if(qe&&(nt=Ce&&Ce.onVnodeBeforeUnmount)&&bn(nt,R,z),ze&6)oe(z.component,Z,ae);else{if(ze&128){z.suspense.unmount(Z,ae);return}Le&&lr(z,null,R,"beforeUnmount"),ze&64?z.type.remove(z,R,Z,ue,Ie,ae):U&&(ye!==We||xe>0&&xe&64)?se(U,R,Z,!1,!0):(ye===We&&xe&384||!ue&&ze&16)&&se(j,R,Z),ae&&we(z)}(qe&&(nt=Ce&&Ce.onVnodeUnmounted)||Le)&&Xt(()=>{nt&&bn(nt,R,z),Le&&lr(z,null,R,"unmounted")},Z)},we=z=>{const{type:R,el:Z,anchor:ae,transition:ue}=z;if(R===We){H(Z,ae);return}if(R===Cs){$(z);return}const ye=()=>{s(Z),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(z.shapeFlag&1&&ue&&!ue.persisted){const{leave:Ce,delayLeave:pe}=ue,j=()=>Ce(Z,ye);pe?pe(z.el,ye,j):j()}else ye()},H=(z,R)=>{let Z;for(;z!==R;)Z=f(z),s(z),z=Z;s(R)},oe=(z,R,Z)=>{const{bum:ae,scope:ue,update:ye,subTree:Ce,um:pe}=z;ae&&ro(ae),ue.stop(),ye&&(ye.active=!1,fe(Ce,z,R,Z)),pe&&Xt(pe,R),Xt(()=>{z.isUnmounted=!0},R),R&&R.pendingBranch&&!R.isUnmounted&&z.asyncDep&&!z.asyncResolved&&z.suspenseId===R.pendingId&&(R.deps--,R.deps===0&&R.resolve())},se=(z,R,Z,ae=!1,ue=!1,ye=0)=>{for(let Ce=ye;Ce<z.length;Ce++)fe(z[Ce],R,Z,ae,ue)},be=z=>z.shapeFlag&6?be(z.component.subTree):z.shapeFlag&128?z.suspense.next():f(z.anchor||z.el),Ve=(z,R,Z)=>{z==null?R._vnode&&fe(R._vnode,null,null,!0):g(R._vnode||null,z,R,null,null,null,Z),al(),R._vnode=z},Ie={p:g,um:fe,m:X,r:we,mt:de,mc:O,pc:Re,pbc:G,n:be,o:e};let $e,Ae;return t&&([$e,Ae]=t(Ie)),{render:Ve,hydrate:$e,createApp:iw(Ve,$e)}}function ls({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Ld(e,t,n=!1){const r=e.children,s=t.children;if(Ue(r)&&Ue(s))for(let o=0;o<r.length;o++){const i=r[o];let a=s[o];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=s[o]=jr(s[o]),a.el=i.el),n||Ld(i,a))}}function lw(e){const t=e.slice(),n=[0];let r,s,o,i,a;const l=e.length;for(r=0;r<l;r++){const u=e[r];if(u!==0){if(s=n[n.length-1],e[s]<u){t[r]=s,n.push(r);continue}for(o=0,i=n.length-1;o<i;)a=o+i>>1,e[n[a]]<u?o=a+1:i=a;u<e[n[o]]&&(o>0&&(t[r]=n[o-1]),n[o]=r)}}for(o=n.length,i=n[o-1];o-- >0;)n[o]=i,i=t[i];return n}const uw=e=>e.__isTeleport,oi=e=>e&&(e.disabled||e.disabled===""),xm=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,wc=(e,t)=>{const n=e&&e.to;return Ot(n)?t?t(n):null:n},cw={__isTeleport:!0,process(e,t,n,r,s,o,i,a,l,u){const{mc:d,pc:m,pbc:f,o:{insert:p,querySelector:h,createText:_,createComment:g}}=u,b=oi(t.props);let{shapeFlag:w,children:S,dynamicChildren:x}=t;if(e==null){const $=t.el=_(""),A=t.anchor=_("");p($,n,r),p(A,n,r);const I=t.target=wc(t.props,h),V=t.targetAnchor=_("");I&&(p(V,I),i=i||xm(I));const O=(N,G)=>{w&16&&d(S,N,G,s,o,i,a,l)};b?O(n,A):I&&O(I,V)}else{t.el=e.el;const $=t.anchor=e.anchor,A=t.target=e.target,I=t.targetAnchor=e.targetAnchor,V=oi(e.props),O=V?n:A,N=V?$:I;if(i=i||xm(A),x?(f(e.dynamicChildren,x,O,s,o,i,a),Ld(e,t,!0)):l||m(e,t,O,N,s,o,i,a,!1),b)V||ta(t,n,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=wc(t.props,h);G&&ta(t,G,null,u,0)}else V&&ta(t,A,I,u,1)}},remove(e,t,n,r,{um:s,o:{remove:o}},i){const{shapeFlag:a,children:l,anchor:u,targetAnchor:d,target:m,props:f}=e;if(m&&o(d),(i||!oi(f))&&(o(u),a&16))for(let p=0;p<l.length;p++){const h=l[p];s(h,t,n,!0,!!h.dynamicChildren)}},move:ta,hydrate:dw};function ta(e,t,n,{o:{insert:r},m:s},o=2){o===0&&r(e.targetAnchor,t,n);const{el:i,anchor:a,shapeFlag:l,children:u,props:d}=e,m=o===2;if(m&&r(i,t,n),(!m||oi(d))&&l&16)for(let f=0;f<u.length;f++)s(u[f],t,n,2);m&&r(a,t,n)}function dw(e,t,n,r,s,o,{o:{nextSibling:i,parentNode:a,querySelector:l}},u){const d=t.target=wc(t.props,l);if(d){const m=d._lpa||d.firstChild;t.shapeFlag&16&&(oi(t.props)?(t.anchor=u(i(e),t,a(e),n,r,s,o),t.targetAnchor=m):(t.anchor=i(e),t.targetAnchor=u(m,t,d,n,r,s,o)),d._lpa=t.targetAnchor&&i(t.targetAnchor))}return t.anchor&&i(t.anchor)}const ss=cw,Nd="components",fw="directives";function T(e,t){return Vd(Nd,e,!0,t)||e}const L_=Symbol();function N_(e){return Ot(e)?Vd(Nd,e,!1)||e:e||L_}function ql(e){return Vd(fw,e)}function Vd(e,t,n=!0,r=!1){const s=rn||Yt;if(s){const o=s.type;if(e===Nd){const a=fl(o);if(a&&(a===t||a===In(t)||a===zi(In(t))))return o}const i=km(s[e]||o[e],t)||km(s.appContext[e],t);return!i&&r?o:i}}function km(e,t){return e&&(e[t]||e[In(t)]||e[zi(In(t))])}const We=Symbol(void 0),Qr=Symbol(void 0),ln=Symbol(void 0),Cs=Symbol(void 0),ii=[];let mr=null;function E(e=!1){ii.push(mr=e?null:[])}function V_(){ii.pop(),mr=ii[ii.length-1]||null}let co=1;function Cc(e){co+=e}function j_(e){return e.dynamicChildren=co>0?mr||to:null,V_(),co>0&&mr&&mr.push(e),e}function D(e,t,n,r,s,o){return j_(c(e,t,n,r,s,o,!0))}function ke(e,t,n,r,s){return j_(C(e,t,n,r,s,!0))}function es(e){return e?e.__v_isVNode===!0:!1}function cr(e,t){return e.type===t.type&&e.key===t.key}function mw(e){}const Wl="__vInternal",B_=({key:e})=>e!=null?e:null,Ka=({ref:e,ref_key:t,ref_for:n})=>e!=null?Ot(e)||jt(e)||et(e)?{i:rn,r:e,k:t,f:!!n}:e:null;function c(e,t=null,n=null,r=0,s=null,o=e===We?0:1,i=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&B_(t),ref:t&&Ka(t),scopeId:Vl,slotScopeIds:null,children:n,component:null,suspense:null,ssContent:null,ssFallback:null,dirs:null,transition:null,el:null,anchor:null,target:null,targetAnchor:null,staticCount:0,shapeFlag:o,patchFlag:r,dynamicProps:s,dynamicChildren:null,appContext:null};return a?(jd(l,n),o&128&&e.normalize(l)):n&&(l.shapeFlag|=Ot(n)?8:16),co>0&&!i&&mr&&(l.patchFlag>0||o&6)&&l.patchFlag!==32&&mr.push(l),l}const C=pw;function pw(e,t=null,n=null,r=0,s=null,o=!1){if((!e||e===L_)&&(e=ln),es(e)){const a=Er(e,t,!0);return n&&jd(a,n),a}if(Ew(e)&&(e=e.__vccOpts),t){t=H_(t);let{class:a,style:l}=t;a&&!Ot(a)&&(t.class=Ye(a)),Nt(l)&&(kd(l)&&!Ue(l)&&(l=Lt({},l)),t.style=rs(l))}const i=Ot(e)?1:F0(e)?128:uw(e)?64:Nt(e)?4:et(e)?2:0;return c(e,t,n,r,s,i,o,!0)}function H_(e){return e?kd(e)||Wl in e?Lt({},e):e:null}function Er(e,t,n=!1){const{props:r,ref:s,patchFlag:o,children:i}=e,a=t?Bd(r||{},t):r;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&B_(a),ref:t&&t.ref?n&&s?Ue(s)?s.concat(Ka(t)):[s,Ka(t)]:Ka(t):s,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:i,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==We?o===-1?16:o|16:o,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&Er(e.ssContent),ssFallback:e.ssFallback&&Er(e.ssFallback),el:e.el,anchor:e.anchor}}function Tt(e=" ",t=0){return C(Qr,null,e,t)}function hw(e,t){const n=C(Cs,null,e);return n.staticCount=t,n}function J(e="",t=!1){return t?(E(),ke(ln,null,e)):C(ln,null,e)}function On(e){return e==null||typeof e=="boolean"?C(ln):Ue(e)?C(We,null,e.slice()):typeof e=="object"?jr(e):C(Qr,null,String(e))}function jr(e){return e.el===null||e.memo?e:Er(e)}function jd(e,t){let n=0;const{shapeFlag:r}=e;if(t==null)t=null;else if(Ue(t))n=16;else if(typeof t=="object")if(r&65){const s=t.default;s&&(s._c&&(s._d=!1),jd(e,s()),s._c&&(s._d=!0));return}else{n=32;const s=t._;!s&&!(Wl in t)?t._ctx=rn:s===3&&rn&&(rn.slots._===1?t._=1:(t._=2,e.patchFlag|=1024))}else et(t)?(t={default:t,_ctx:rn},n=32):(t=String(t),r&64?(n=16,t=[Tt(t)]):n=8);e.children=t,e.shapeFlag|=n}function Bd(...e){const t={};for(let n=0;n<e.length;n++){const r=e[n];for(const s in r)if(s==="class")t.class!==r.class&&(t.class=Ye([t.class,r.class]));else if(s==="style")t.style=rs([t.style,r.style]);else if($i(s)){const o=t[s],i=r[s];i&&o!==i&&!(Ue(o)&&o.includes(i))&&(t[s]=o?[].concat(o,i):i)}else s!==""&&(t[s]=r[s])}return t}function bn(e,t,n,r=null){Dn(e,t,7,[n,r])}function wt(e,t,n,r){let s;const o=n&&n[r];if(Ue(e)||Ot(e)){s=new Array(e.length);for(let i=0,a=e.length;i<a;i++)s[i]=t(e[i],i,void 0,o&&o[i])}else if(typeof e=="number"){s=new Array(e);for(let i=0;i<e;i++)s[i]=t(i+1,i,void 0,o&&o[i])}else if(Nt(e))if(e[Symbol.iterator])s=Array.from(e,(i,a)=>t(i,a,void 0,o&&o[a]));else{const i=Object.keys(e);s=new Array(i.length);for(let a=0,l=i.length;a<l;a++){const u=i[a];s[a]=t(e[u],u,a,o&&o[a])}}else s=[];return n&&(n[r]=s),s}function Di(e,t){for(let n=0;n<t.length;n++){const r=t[n];if(Ue(r))for(let s=0;s<r.length;s++)e[r[s].name]=r[s].fn;else r&&(e[r.name]=r.fn)}return e}function kt(e,t,n={},r,s){if(rn.isCE||rn.parent&&uo(rn.parent)&&rn.parent.isCE)return C("slot",t==="default"?null:{name:t},r&&r());let o=e[t];o&&o._c&&(o._d=!1),E();const i=o&&U_(o(n)),a=ke(We,{key:n.key||`_${t}`},i||(r?r():[]),i&&e._===1?64:-2);return!s&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),o&&o._c&&(o._d=!0),a}function U_(e){return e.some(t=>es(t)?!(t.type===ln||t.type===We&&!U_(t.children)):!0)?e:null}function _w(e){const t={};for(const n in e)t[Qo(n)]=e[n];return t}const xc=e=>e?W_(e)?Gl(e)||e.proxy:xc(e.parent):null,cl=Lt(Object.create(null),{$:e=>e,$el:e=>e.vnode.el,$data:e=>e.data,$props:e=>e.props,$attrs:e=>e.attrs,$slots:e=>e.slots,$refs:e=>e.refs,$parent:e=>xc(e.parent),$root:e=>xc(e.root),$emit:e=>e.emit,$options:e=>z_(e),$forceUpdate:e=>()=>Od(e.update),$nextTick:e=>Ll.bind(e.proxy),$watch:e=>H0.bind(e)}),kc={get({_:e},t){const{ctx:n,setupState:r,data:s,props:o,accessCache:i,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const p=i[t];if(p!==void 0)switch(p){case 1:return r[t];case 2:return s[t];case 4:return n[t];case 3:return o[t]}else{if(r!==yt&&ft(r,t))return i[t]=1,r[t];if(s!==yt&&ft(s,t))return i[t]=2,s[t];if((u=e.propsOptions[0])&&ft(u,t))return i[t]=3,o[t];if(n!==yt&&ft(n,t))return i[t]=4,n[t];yc&&(i[t]=0)}}const d=cl[t];let m,f;if(d)return t==="$attrs"&&Mn(e,"get",t),d(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==yt&&ft(n,t))return i[t]=4,n[t];if(f=l.config.globalProperties,ft(f,t))return f[t]},set({_:e},t,n){const{data:r,setupState:s,ctx:o}=e;return s!==yt&&ft(s,t)?(s[t]=n,!0):r!==yt&&ft(r,t)?(r[t]=n,!0):ft(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(o[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:r,appContext:s,propsOptions:o}},i){let a;return!!n[i]||e!==yt&&ft(e,i)||t!==yt&&ft(t,i)||(a=o[0])&&ft(a,i)||ft(r,i)||ft(cl,i)||ft(s.config.globalProperties,i)},defineProperty(e,t,n){return n.get!=null?e._.accessCache[t]=0:ft(n,"value")&&this.set(e,t,n.value,null),Reflect.defineProperty(e,t,n)}},gw=Lt({},kc,{get(e,t){if(t!==Symbol.unscopables)return kc.get(e,t,e)},has(e,t){return t[0]!=="_"&&!gb(t)}}),yw=F_();let vw=0;function q_(e,t,n){const r=e.type,s=(t?t.appContext:e.appContext)||yw,o={uid:vw++,vnode:e,type:r,parent:t,appContext:s,root:null,next:null,subTree:null,effect:null,update:null,scope:new vd(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(s.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:O_(r,s),emitsOptions:m_(r,s),emit:null,emitted:null,propsDefaults:yt,inheritAttrs:r.inheritAttrs,ctx:yt,data:yt,props:yt,attrs:yt,slots:yt,refs:yt,setupState:yt,setupContext:null,suspense:n,suspenseId:n?n.pendingId:0,asyncDep:null,asyncResolved:!1,isMounted:!1,isUnmounted:!1,isDeactivated:!1,bc:null,c:null,bm:null,m:null,bu:null,u:null,um:null,bum:null,da:null,a:null,rtg:null,rtc:null,ec:null,sp:null};return o.ctx={_:o},o.root=t?t.root:o,o.emit=E0.bind(null,o),e.ce&&e.ce(o),o}let Yt=null;const or=()=>Yt||rn,ts=e=>{Yt=e,e.scope.on()},Yr=()=>{Yt&&Yt.scope.off(),Yt=null};function W_(e){return e.vnode.shapeFlag&4}let fo=!1;function G_(e,t=!1){fo=t;const{props:n,children:r}=e.vnode,s=W_(e);ew(e,n,s,t),rw(e,r);const o=s?bw(e,t):void 0;return fo=!1,o}function bw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Sd(new Proxy(e.ctx,kc));const{setup:r}=n;if(r){const s=e.setupContext=r.length>1?Y_(e):null;ts(e),$s();const o=fr(r,e,0,[e.props,s]);if(zs(),Yr(),gd(o)){if(o.then(Yr,Yr),t)return o.then(i=>{Sc(e,i,t)}).catch(i=>{Os(i,e,0)});e.asyncDep=o}else Sc(e,o,t)}else K_(e,t)}function Sc(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Nt(t)&&(e.setupState=zd(t)),K_(e,n)}let dl,Ec;function ww(e){dl=e,Ec=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,gw))}}const Cw=()=>!dl;function K_(e,t,n){const r=e.type;if(!e.render){if(!t&&dl&&!r.render){const s=r.template;if(s){const{isCustomElement:o,compilerOptions:i}=e.appContext.config,{delimiters:a,compilerOptions:l}=r,u=Lt(Lt({isCustomElement:o,delimiters:a},i),l);r.render=dl(s,u)}}e.render=r.render||nr,Ec&&Ec(e)}ts(e),$s(),Y0(e),zs(),Yr()}function xw(e){return new Proxy(e.attrs,{get(t,n){return Mn(e,"get","$attrs"),t[n]}})}function Y_(e){const t=r=>{e.exposed=r||{}};let n;return{get attrs(){return n||(n=xw(e))},slots:e.slots,emit:e.emit,expose:t}}function Gl(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(zd(Sd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in cl)return cl[n](e)}}))}const kw=/(?:^|[-_])(\w)/g,Sw=e=>e.replace(kw,t=>t.toUpperCase()).replace(/[-_]/g,"");function fl(e){return et(e)&&e.displayName||e.name}function Z_(e,t,n=!1){let r=fl(t);if(!r&&t.__file){const s=t.__file.match(/([^/\\]+)\.\w+$/);s&&(r=s[1])}if(!r&&e&&e.parent){const s=o=>{for(const i in o)if(o[i]===t)return i};r=s(e.components||e.parent.type.components)||s(e.appContext.components)}return r?Sw(r):n?"App":"Anonymous"}function Ew(e){return et(e)&&"__vccOpts"in e}const At=(e,t)=>g0(e,t,fo);function $w(){return null}function zw(){return null}function Aw(e){}function Ow(e,t){return null}function Tw(){return J_().slots}function Pw(){return J_().attrs}function J_(){const e=or();return e.setupContext||(e.setupContext=Y_(e))}function Dw(e,t){const n=Ue(e)?e.reduce((r,s)=>(r[s]={},r),{}):e;for(const r in t){const s=n[r];s?Ue(s)||et(s)?n[r]={type:s,default:t[r]}:s.default=t[r]:s===null&&(n[r]={default:t[r]})}return n}function Fw(e,t){const n={};for(const r in e)t.includes(r)||Object.defineProperty(n,r,{enumerable:!0,get:()=>e[r]});return n}function Iw(e){const t=or();let n=e();return Yr(),gd(n)&&(n=n.catch(r=>{throw ts(t),r})),[n,()=>ts(t)]}function Cn(e,t,n){const r=arguments.length;return r===2?Nt(t)&&!Ue(t)?es(t)?C(e,null,[t]):C(e,t):C(e,null,t):(r>3?n=Array.prototype.slice.call(arguments,2):r===3&&es(n)&&(n=[n]),C(e,t,n))}const X_=Symbol(""),Mw=()=>{{const e=rr(X_);return e||i_("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function Rw(){}function Lw(e,t,n,r){const s=n[r];if(s&&Q_(s,e))return s;const o=t();return o.memo=e.slice(),n[r]=o}function Q_(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let r=0;r<n.length;r++)if(n[r]!==t[r])return!1;return co>0&&mr&&mr.push(e),!0}const eg="3.2.33",Nw={createComponentInstance:q_,setupComponent:G_,renderComponentRoot:Ga,setCurrentRenderingInstance:wi,isVNode:es,normalizeVNode:On},Vw=Nw,jw=null,Bw=null,Hw="http://www.w3.org/2000/svg",ys=typeof document!="undefined"?document:null,Sm=ys&&ys.createElement("template"),Uw={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,r)=>{const s=t?ys.createElementNS(Hw,e):ys.createElement(e,n?{is:n}:void 0);return e==="select"&&r&&r.multiple!=null&&s.setAttribute("multiple",r.multiple),s},createText:e=>ys.createTextNode(e),createComment:e=>ys.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>ys.querySelector(e),setScopeId(e,t){e.setAttribute(t,"")},cloneNode(e){const t=e.cloneNode(!0);return"_value"in e&&(t._value=e._value),t},insertStaticContent(e,t,n,r,s,o){const i=n?n.previousSibling:t.lastChild;if(s&&(s===o||s.nextSibling))for(;t.insertBefore(s.cloneNode(!0),n),!(s===o||!(s=s.nextSibling)););else{Sm.innerHTML=r?`<svg>${e}</svg>`:e;const a=Sm.content;if(r){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[i?i.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function qw(e,t,n){const r=e._vtc;r&&(t=(t?[t,...r]:[...r]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function Ww(e,t,n){const r=e.style,s=Ot(n);if(n&&!s){for(const o in n)$c(r,o,n[o]);if(t&&!Ot(t))for(const o in t)n[o]==null&&$c(r,o,"")}else{const o=r.display;s?t!==n&&(r.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(r.display=o)}}const Em=/\s*!important$/;function $c(e,t,n){if(Ue(n))n.forEach(r=>$c(e,t,r));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const r=Gw(e,t);Em.test(n)?e.setProperty(dr(r),n.replace(Em,""),"important"):e[r]=n}}const $m=["Webkit","Moz","ms"],Du={};function Gw(e,t){const n=Du[t];if(n)return n;let r=In(t);if(r!=="filter"&&r in e)return Du[t]=r;r=zi(r);for(let s=0;s<$m.length;s++){const o=$m[s]+r;if(o in e)return Du[t]=o}return t}const zm="http://www.w3.org/1999/xlink";function Kw(e,t,n,r,s){if(r&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(zm,t.slice(6,t.length)):e.setAttributeNS(zm,t,n);else{const o=vb(t);n==null||o&&!Nh(n)?e.removeAttribute(t):e.setAttribute(t,o?"":n)}}function Yw(e,t,n,r,s,o,i){if(t==="innerHTML"||t==="textContent"){r&&i(r,s,o),e[t]=n==null?"":n;return}if(t==="value"&&e.tagName!=="PROGRESS"&&!e.tagName.includes("-")){e._value=n;const l=n==null?"":n;(e.value!==l||e.tagName==="OPTION")&&(e.value=l),n==null&&e.removeAttribute(t);return}let a=!1;if(n===""||n==null){const l=typeof e[t];l==="boolean"?n=Nh(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}const[tg,Zw]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=()=>performance.now());const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let zc=0;const Jw=Promise.resolve(),Xw=()=>{zc=0},Qw=()=>zc||(Jw.then(Xw),zc=tg());function Cr(e,t,n,r){e.addEventListener(t,n,r)}function eC(e,t,n,r){e.removeEventListener(t,n,r)}function tC(e,t,n,r,s=null){const o=e._vei||(e._vei={}),i=o[t];if(r&&i)i.value=r;else{const[a,l]=nC(t);if(r){const u=o[t]=rC(r,s);Cr(e,a,u,l)}else i&&(eC(e,a,i,l),o[t]=void 0)}}const Am=/(?:Once|Passive|Capture)$/;function nC(e){let t;if(Am.test(e)){t={};let n;for(;n=e.match(Am);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[dr(e.slice(2)),t]}function rC(e,t){const n=r=>{const s=r.timeStamp||tg();(Zw||s>=n.attached-1)&&Dn(sC(r,n.value),t,5,[r])};return n.value=e,n.attached=Qw(),n}function sC(e,t){if(Ue(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(r=>s=>!s._stopped&&r&&r(s))}else return t}const Om=/^on[a-z]/,oC=(e,t,n,r,s=!1,o,i,a,l)=>{t==="class"?qw(e,r,s):t==="style"?Ww(e,n,r):$i(t)?pd(t)||tC(e,t,n,r,i):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):iC(e,t,r,s))?Yw(e,t,r,o,i,a,l):(t==="true-value"?e._trueValue=r:t==="false-value"&&(e._falseValue=r),Kw(e,t,r,s))};function iC(e,t,n,r){return r?!!(t==="innerHTML"||t==="textContent"||t in e&&Om.test(t)&&et(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Om.test(t)&&Ot(n)?!1:t in e}function ng(e,t){const n=Ti(e);class r extends Kl{constructor(o){super(n,o,t)}}return r.def=n,r}const aC=e=>ng(e,mg),lC=typeof HTMLElement!="undefined"?HTMLElement:class{};class Kl extends lC{constructor(t,n={},r){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&r?r(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Ll(()=>{this._connected||(Oc(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let r=0;r<this.attributes.length;r++)this._setAttr(this.attributes[r].name);new MutationObserver(r=>{for(const s of r)this._setAttr(s.attributeName)}).observe(this,{attributes:!0});const t=r=>{const{props:s,styles:o}=r,i=!Ue(s),a=s?i?Object.keys(s):s:[];let l;if(i)for(const u in this._props){const d=s[u];(d===Number||d&&d.type===Number)&&(this._props[u]=Jr(this._props[u]),(l||(l=Object.create(null)))[u]=!0)}this._numberProps=l;for(const u of Object.keys(this))u[0]!=="_"&&this._setProp(u,this[u],!0,!1);for(const u of a.map(In))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(d){this._setProp(u,d)}});this._applyStyles(o),this._update()},n=this._def.__asyncLoader;n?n().then(t):t(this._def)}_setAttr(t){let n=this.getAttribute(t);this._numberProps&&this._numberProps[t]&&(n=Jr(n)),this._setProp(In(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,r=!0,s=!0){n!==this._props[t]&&(this._props[t]=n,s&&this._instance&&this._update(),r&&(n===!0?this.setAttribute(dr(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(dr(t),n+""):n||this.removeAttribute(dr(t))))}_update(){Oc(this._createVNode(),this.shadowRoot)}_createVNode(){const t=C(this._def,Lt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(s,...o)=>{this.dispatchEvent(new CustomEvent(s,{detail:o}))};let r=this;for(;r=r&&(r.parentNode||r.host);)if(r instanceof Kl){n.parent=r._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const r=document.createElement("style");r.textContent=n,this.shadowRoot.appendChild(r)})}}function uC(e="$style"){{const t=or();if(!t)return yt;const n=t.type.__cssModules;if(!n)return yt;const r=n[e];return r||yt}}function cC(e){const t=or();if(!t)return;const n=()=>Ac(t.subTree,e(t.proxy));h_(n),Ts(()=>{const r=new MutationObserver(n);r.observe(t.subTree.el.parentNode,{childList:!0}),Co(()=>r.disconnect())})}function Ac(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{Ac(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Tm(e.el,t);else if(e.type===We)e.children.forEach(n=>Ac(n,t));else if(e.type===Cs){let{el:n,anchor:r}=e;for(;n&&(Tm(n,t),n!==r);)n=n.nextSibling}}function Tm(e,t){if(e.nodeType===1){const n=e.style;for(const r in t)n.setProperty(`--${r}`,t[r])}}const Mr="transition",Oo="animation",Wt=(e,{slots:t})=>Cn(Md,sg(e),t);Wt.displayName="Transition";const rg={name:String,type:String,css:{type:Boolean,default:!0},duration:[String,Number,Object],enterFromClass:String,enterActiveClass:String,enterToClass:String,appearFromClass:String,appearActiveClass:String,appearToClass:String,leaveFromClass:String,leaveActiveClass:String,leaveToClass:String},dC=Wt.props=Lt({},Md.props,rg),us=(e,t=[])=>{Ue(e)?e.forEach(n=>n(...t)):e&&e(...t)},Pm=e=>e?Ue(e)?e.some(t=>t.length>1):e.length>1:!1;function sg(e){const t={};for(const F in e)F in rg||(t[F]=e[F]);if(e.css===!1)return t;const{name:n="v",type:r,duration:s,enterFromClass:o=`${n}-enter-from`,enterActiveClass:i=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=o,appearActiveClass:u=i,appearToClass:d=a,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:p=`${n}-leave-to`}=e,h=fC(s),_=h&&h[0],g=h&&h[1],{onBeforeEnter:b,onEnter:w,onEnterCancelled:S,onLeave:x,onLeaveCancelled:$,onBeforeAppear:A=b,onAppear:I=w,onAppearCancelled:V=S}=t,O=(F,B,Y)=>{hs(F,B?d:a),hs(F,B?u:i),Y&&Y()},N=(F,B)=>{hs(F,p),hs(F,f),B&&B()},G=F=>(B,Y)=>{const de=F?I:w,te=()=>O(B,F,Y);us(de,[B,te]),Dm(()=>{hs(B,F?l:o),br(B,F?d:a),Pm(de)||Fm(B,r,_,te)})};return Lt(t,{onBeforeEnter(F){us(b,[F]),br(F,o),br(F,i)},onBeforeAppear(F){us(A,[F]),br(F,l),br(F,u)},onEnter:G(!1),onAppear:G(!0),onLeave(F,B){const Y=()=>N(F,B);br(F,m),ig(),br(F,f),Dm(()=>{hs(F,m),br(F,p),Pm(x)||Fm(F,r,g,Y)}),us(x,[F,Y])},onEnterCancelled(F){O(F,!1),us(S,[F])},onAppearCancelled(F){O(F,!0),us(V,[F])},onLeaveCancelled(F){N(F),us($,[F])}})}function fC(e){if(e==null)return null;if(Nt(e))return[Fu(e.enter),Fu(e.leave)];{const t=Fu(e);return[t,t]}}function Fu(e){return Jr(e)}function br(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function hs(e,t){t.split(/\s+/).forEach(r=>r&&e.classList.remove(r));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Dm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let mC=0;function Fm(e,t,n,r){const s=e._endId=++mC,o=()=>{s===e._endId&&r()};if(n)return setTimeout(o,n);const{type:i,timeout:a,propCount:l}=og(e,t);if(!i)return r();const u=i+"end";let d=0;const m=()=>{e.removeEventListener(u,f),o()},f=p=>{p.target===e&&++d>=l&&m()};setTimeout(()=>{d<l&&m()},a+1),e.addEventListener(u,f)}function og(e,t){const n=window.getComputedStyle(e),r=h=>(n[h]||"").split(", "),s=r(Mr+"Delay"),o=r(Mr+"Duration"),i=Im(s,o),a=r(Oo+"Delay"),l=r(Oo+"Duration"),u=Im(a,l);let d=null,m=0,f=0;t===Mr?i>0&&(d=Mr,m=i,f=o.length):t===Oo?u>0&&(d=Oo,m=u,f=l.length):(m=Math.max(i,u),d=m>0?i>u?Mr:Oo:null,f=d?d===Mr?o.length:l.length:0);const p=d===Mr&&/\b(transform|all)(,|$)/.test(n[Mr+"Property"]);return{type:d,timeout:m,propCount:f,hasTransform:p}}function Im(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,r)=>Mm(n)+Mm(e[r])))}function Mm(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function ig(){return document.body.offsetHeight}const ag=new WeakMap,lg=new WeakMap,pC={name:"TransitionGroup",props:Lt({},dC,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=or(),r=Id();let s,o;return Hl(()=>{if(!s.length)return;const i=e.moveClass||`${e.name||"v"}-move`;if(!vC(s[0].el,n.vnode.el,i))return;s.forEach(_C),s.forEach(gC);const a=s.filter(yC);ig(),a.forEach(l=>{const u=l.el,d=u.style;br(u,i),d.transform=d.webkitTransform=d.transitionDuration="";const m=u._moveCb=f=>{f&&f.target!==u||(!f||/transform$/.test(f.propertyName))&&(u.removeEventListener("transitionend",m),u._moveCb=null,hs(u,i))};u.addEventListener("transitionend",m)})}),()=>{const i=ut(e),a=sg(i);let l=i.tag||We;s=o,o=t.default?jl(t.default()):[];for(let u=0;u<o.length;u++){const d=o[u];d.key!=null&&Ss(d,lo(d,a,r,n))}if(s)for(let u=0;u<s.length;u++){const d=s[u];Ss(d,lo(d,a,r,n)),ag.set(d,d.el.getBoundingClientRect())}return C(l,null,o)}}},hC=pC;function _C(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function gC(e){lg.set(e,e.el.getBoundingClientRect())}function yC(e){const t=ag.get(e),n=lg.get(e),r=t.left-n.left,s=t.top-n.top;if(r||s){const o=e.el.style;return o.transform=o.webkitTransform=`translate(${r}px,${s}px)`,o.transitionDuration="0s",e}}function vC(e,t,n){const r=e.cloneNode();e._vtc&&e._vtc.forEach(i=>{i.split(/\s+/).forEach(a=>a&&r.classList.remove(a))}),n.split(/\s+/).forEach(i=>i&&r.classList.add(i)),r.style.display="none";const s=t.nodeType===1?t:t.parentNode;s.appendChild(r);const{hasTransform:o}=og(r);return s.removeChild(r),o}const ns=e=>{const t=e.props["onUpdate:modelValue"];return Ue(t)?n=>ro(t,n):t};function bC(e){e.target.composing=!0}function Rm(e){const t=e.target;t.composing&&(t.composing=!1,wC(t,"input"))}function wC(e,t){const n=document.createEvent("HTMLEvents");n.initEvent(t,!0,!0),e.dispatchEvent(n)}const sn={created(e,{modifiers:{lazy:t,trim:n,number:r}},s){e._assign=ns(s);const o=r||s.props&&s.props.type==="number";Cr(e,t?"change":"input",i=>{if(i.target.composing)return;let a=e.value;n?a=a.trim():o&&(a=Jr(a)),e._assign(a)}),n&&Cr(e,"change",()=>{e.value=e.value.trim()}),t||(Cr(e,"compositionstart",bC),Cr(e,"compositionend",Rm),Cr(e,"change",Rm))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:r,number:s}},o){if(e._assign=ns(o),e.composing||document.activeElement===e&&(n||r&&e.value.trim()===t||(s||e.type==="number")&&Jr(e.value)===t))return;const i=t==null?"":t;e.value!==i&&(e.value=i)}},$r={deep:!0,created(e,t,n){e._assign=ns(n),Cr(e,"change",()=>{const r=e._modelValue,s=mo(e),o=e.checked,i=e._assign;if(Ue(r)){const a=Ol(r,s),l=a!==-1;if(o&&!l)i(r.concat(s));else if(!o&&l){const u=[...r];u.splice(a,1),i(u)}}else if(Es(r)){const a=new Set(r);o?a.add(s):a.delete(s),i(a)}else i(ug(e,o))})},mounted:Lm,beforeUpdate(e,t,n){e._assign=ns(n),Lm(e,t,n)}};function Lm(e,{value:t,oldValue:n},r){e._modelValue=t,Ue(t)?e.checked=Ol(t,r.props.value)>-1:Es(t)?e.checked=t.has(r.props.value):t!==n&&(e.checked=Zr(t,ug(e,!0)))}const Hd={created(e,{value:t},n){e.checked=Zr(t,n.props.value),e._assign=ns(n),Cr(e,"change",()=>{e._assign(mo(e))})},beforeUpdate(e,{value:t,oldValue:n},r){e._assign=ns(r),t!==n&&(e.checked=Zr(t,r.props.value))}},Ud={deep:!0,created(e,{value:t,modifiers:{number:n}},r){const s=Es(t);Cr(e,"change",()=>{const o=Array.prototype.filter.call(e.options,i=>i.selected).map(i=>n?Jr(mo(i)):mo(i));e._assign(e.multiple?s?new Set(o):o:o[0])}),e._assign=ns(r)},mounted(e,{value:t}){Nm(e,t)},beforeUpdate(e,t,n){e._assign=ns(n)},updated(e,{value:t}){Nm(e,t)}};function Nm(e,t){const n=e.multiple;if(!(n&&!Ue(t)&&!Es(t))){for(let r=0,s=e.options.length;r<s;r++){const o=e.options[r],i=mo(o);if(n)Ue(t)?o.selected=Ol(t,i)>-1:o.selected=t.has(i);else if(Zr(mo(o),t)){e.selectedIndex!==r&&(e.selectedIndex=r);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function mo(e){return"_value"in e?e._value:e.value}function ug(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const CC={created(e,t,n){na(e,t,n,null,"created")},mounted(e,t,n){na(e,t,n,null,"mounted")},beforeUpdate(e,t,n,r){na(e,t,n,r,"beforeUpdate")},updated(e,t,n,r){na(e,t,n,r,"updated")}};function na(e,t,n,r,s){let o;switch(e.tagName){case"SELECT":o=Ud;break;case"TEXTAREA":o=sn;break;default:switch(n.props&&n.props.type){case"checkbox":o=$r;break;case"radio":o=Hd;break;default:o=sn}}const i=o[s];i&&i(e,t,n,r)}function xC(){sn.getSSRProps=({value:e})=>({value:e}),Hd.getSSRProps=({value:e},t)=>{if(t.props&&Zr(t.props.value,e))return{checked:!0}},$r.getSSRProps=({value:e},t)=>{if(Ue(e)){if(t.props&&Ol(e,t.props.value)>-1)return{checked:!0}}else if(Es(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}}}const kC=["ctrl","shift","alt","meta"],SC={stop:e=>e.stopPropagation(),prevent:e=>e.preventDefault(),self:e=>e.target!==e.currentTarget,ctrl:e=>!e.ctrlKey,shift:e=>!e.shiftKey,alt:e=>!e.altKey,meta:e=>!e.metaKey,left:e=>"button"in e&&e.button!==0,middle:e=>"button"in e&&e.button!==1,right:e=>"button"in e&&e.button!==2,exact:(e,t)=>kC.some(n=>e[`${n}Key`]&&!t.includes(n))},_t=(e,t)=>(n,...r)=>{for(let s=0;s<t.length;s++){const o=SC[t[s]];if(o&&o(n,t))return}return e(n,...r)},EC={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Tn=(e,t)=>n=>{if(!("key"in n))return;const r=dr(n.key);if(t.some(s=>s===r||EC[s]===r))return e(n)},po={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):To(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:r}){!t!=!n&&(r?t?(r.beforeEnter(e),To(e,!0),r.enter(e)):r.leave(e,()=>{To(e,!1)}):To(e,t))},beforeUnmount(e,{value:t}){To(e,t)}};function To(e,t){e.style.display=t?e._vod:"none"}function $C(){po.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const cg=Lt({patchProp:oC},Uw);let ai,Vm=!1;function dg(){return ai||(ai=I_(cg))}function fg(){return ai=Vm?ai:M_(cg),Vm=!0,ai}const Oc=(...e)=>{dg().render(...e)},mg=(...e)=>{fg().hydrate(...e)},pg=(...e)=>{const t=dg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=hg(r);if(!s)return;const o=t._component;!et(o)&&!o.render&&!o.template&&(o.template=s.innerHTML),s.innerHTML="";const i=n(s,!1,s instanceof SVGElement);return s instanceof Element&&(s.removeAttribute("v-cloak"),s.setAttribute("data-v-app","")),i},t},zC=(...e)=>{const t=fg().createApp(...e),{mount:n}=t;return t.mount=r=>{const s=hg(r);if(s)return n(s,!0,s instanceof SVGElement)},t};function hg(e){return Ot(e)?document.querySelector(e):e}let jm=!1;const AC=()=>{jm||(jm=!0,xC(),$C())},OC=()=>{};var TC=Object.freeze(Object.defineProperty({__proto__:null,compile:OC,EffectScope:vd,ReactiveEffect:Ai,customRef:p0,effect:Rb,effectScope:Pb,getCurrentScope:Db,isProxy:kd,isReactive:ws,isReadonly:ao,isRef:jt,isShallow:xd,markRaw:Sd,onScopeDispose:Fb,proxyRefs:zd,reactive:As,readonly:Cd,ref:wn,shallowReactive:n_,shallowReadonly:u0,shallowRef:r_,stop:Lb,toRaw:ut,toRef:o_,toRefs:ei,triggerRef:d0,unref:so,camelize:In,capitalize:zi,normalizeClass:Ye,normalizeProps:xb,normalizeStyle:rs,toDisplayString:v,toHandlerKey:Qo,BaseTransition:Md,Comment:ln,Fragment:We,KeepAlive:G0,Static:Cs,Suspense:M0,Teleport:ss,Text:Qr,callWithAsyncErrorHandling:Dn,callWithErrorHandling:fr,cloneVNode:Er,compatUtils:Bw,computed:At,createBlock:ke,createCommentVNode:J,createElementBlock:D,createElementVNode:c,createHydrationRenderer:M_,createPropsRestProxy:Fw,createRenderer:I_,createSlots:Di,createStaticVNode:hw,createTextVNode:Tt,createVNode:C,defineAsyncComponent:q0,defineComponent:Ti,defineEmits:zw,defineExpose:Aw,defineProps:$w,get devtools(){return Ys},getCurrentInstance:or,getTransitionRawChildren:jl,guardReactiveProps:H_,h:Cn,handleError:Os,initCustomFormatter:Rw,inject:rr,isMemoSame:Q_,isRuntimeOnly:Cw,isVNode:es,mergeDefaults:Dw,mergeProps:Bd,nextTick:Ll,onActivated:y_,onBeforeMount:w_,onBeforeUnmount:Ul,onBeforeUpdate:C_,onDeactivated:v_,onErrorCaptured:E_,onMounted:Ts,onRenderTracked:S_,onRenderTriggered:k_,onServerPrefetch:x_,onUnmounted:Co,onUpdated:Hl,openBlock:E,popScopeId:z0,provide:si,pushScopeId:$0,queuePostFlushCb:Td,registerRuntimeCompiler:ww,renderList:wt,renderSlot:kt,resolveComponent:T,resolveDirective:ql,resolveDynamicComponent:N_,resolveFilter:jw,resolveTransitionHooks:lo,setBlockTracking:Cc,setDevtoolsHook:f_,setTransitionHooks:Ss,ssrContextKey:X_,ssrUtils:Vw,toHandlers:_w,transformVNodeArgs:mw,useAttrs:Pw,useSSRContext:Mw,useSlots:Tw,useTransitionState:Id,version:eg,warn:i_,watch:Mt,watchEffect:j0,watchPostEffect:h_,watchSyncEffect:B0,withAsyncContext:Iw,withCtx:P,withDefaults:Ow,withDirectives:Ct,withMemo:Lw,withScopeId:A0,Transition:Wt,TransitionGroup:hC,VueElement:Kl,createApp:pg,createSSRApp:zC,defineCustomElement:ng,defineSSRCustomElement:aC,hydrate:mg,initDirectivesForSSR:AC,render:Oc,useCssModule:uC,useCssVars:cC,vModelCheckbox:$r,vModelDynamic:CC,vModelRadio:Hd,vModelSelect:Ud,vModelText:sn,vShow:po,withKeys:Tn,withModifiers:_t},Symbol.toStringTag,{value:"Module"}));/*!
* @intlify/shared v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const PC=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Or=e=>PC?Symbol(e):e,DC=(e,t,n)=>FC({l:e,k:t,s:n}),FC=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),en=e=>typeof e=="number"&&isFinite(e),IC=e=>Wd(e)==="[object Date]",ml=e=>Wd(e)==="[object RegExp]",Yl=e=>mt(e)&&Object.keys(e).length===0;function MC(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const pn=Object.assign;let Bm;const qd=()=>Bm||(Bm=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Hm(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const RC=Object.prototype.hasOwnProperty;function _g(e,t){return RC.call(e,t)}const on=Array.isArray,fn=e=>typeof e=="function",Ge=e=>typeof e=="string",Zt=e=>typeof e=="boolean",hn=e=>e!==null&&typeof e=="object",gg=Object.prototype.toString,Wd=e=>gg.call(e),mt=e=>Wd(e)==="[object Object]",LC=e=>e==null?"":on(e)||mt(e)&&e.toString===gg?JSON.stringify(e,null,2):String(e);/*!
* @intlify/message-resolver v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const NC=Object.prototype.hasOwnProperty;function VC(e,t){return NC.call(e,t)}const Ya=e=>e!==null&&typeof e=="object",os=[];os[0]={w:[0],i:[3,0],["["]:[4],o:[7]};os[1]={w:[1],["."]:[2],["["]:[4],o:[7]};os[2]={w:[2],i:[3,0],["0"]:[3,0]};os[3]={i:[3,0],["0"]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};os[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};os[5]={["'"]:[4,0],o:8,l:[5,0]};os[6]={['"']:[4,0],o:8,l:[6,0]};const jC=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function BC(e){return jC.test(e)}function HC(e){const t=e.charCodeAt(0),n=e.charCodeAt(e.length-1);return t===n&&(t===34||t===39)?e.slice(1,-1):e}function UC(e){if(e==null)return"o";switch(e.charCodeAt(0)){case 91:case 93:case 46:case 34:case 39:return e;case 95:case 36:case 45:return"i";case 9:case 10:case 13:case 160:case 65279:case 8232:case 8233:return"w"}return"i"}function qC(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:BC(t)?HC(t):"*"+t}function WC(e){const t=[];let n=-1,r=0,s=0,o,i,a,l,u,d,m;const f=[];f[0]=()=>{i===void 0?i=a:i+=a},f[1]=()=>{i!==void 0&&(t.push(i),i=void 0)},f[2]=()=>{f[0](),s++},f[3]=()=>{if(s>0)s--,r=4,f[0]();else{if(s=0,i===void 0||(i=qC(i),i===!1))return!1;f[1]()}};function p(){const h=e[n+1];if(r===5&&h==="'"||r===6&&h==='"')return n++,a="\\"+h,f[0](),!0}for(;r!==null;)if(n++,o=e[n],!(o==="\\"&&p())){if(l=UC(o),m=os[r],u=m[l]||m.l||8,u===8||(r=u[0],u[1]!==void 0&&(d=f[u[1]],d&&(a=o,d()===!1))))return;if(r===7)return t}}const Um=new Map;function pl(e,t){if(!Ya(e))return null;let n=Um.get(t);if(n||(n=WC(t),n&&Um.set(t,n)),!n)return null;const r=n.length;let s=e,o=0;for(;o<r;){const i=s[n[o]];if(i===void 0)return null;s=i,o++}return s}function Tc(e){if(!Ya(e))return e;for(const t in e)if(!!VC(e,t))if(!t.includes("."))Ya(e[t])&&Tc(e[t]);else{const n=t.split("."),r=n.length-1;let s=e;for(let o=0;o<r;o++)n[o]in s||(s[n[o]]={}),s=s[n[o]];s[n[r]]=e[t],delete e[t],Ya(s[n[r]])&&Tc(s[n[r]])}return e}/*!
* @intlify/runtime v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const GC=e=>e,KC=e=>"",YC="text",ZC=e=>e.length===0?"":e.join(""),JC=LC;function qm(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function XC(e){const t=en(e.pluralIndex)?e.pluralIndex:-1;return e.named&&(en(e.named.count)||en(e.named.n))?en(e.named.count)?e.named.count:en(e.named.n)?e.named.n:t:t}function QC(e,t){t.count||(t.count=e),t.n||(t.n=e)}function ex(e={}){const t=e.locale,n=XC(e),r=hn(e.pluralRules)&&Ge(t)&&fn(e.pluralRules[t])?e.pluralRules[t]:qm,s=hn(e.pluralRules)&&Ge(t)&&fn(e.pluralRules[t])?qm:void 0,o=g=>g[r(n,g.length,s)],i=e.list||[],a=g=>i[g],l=e.named||{};en(e.pluralIndex)&&QC(n,l);const u=g=>l[g];function d(g){const b=fn(e.messages)?e.messages(g):hn(e.messages)?e.messages[g]:!1;return b||(e.parent?e.parent.message(g):KC)}const m=g=>e.modifiers?e.modifiers[g]:GC,f=mt(e.processor)&&fn(e.processor.normalize)?e.processor.normalize:ZC,p=mt(e.processor)&&fn(e.processor.interpolate)?e.processor.interpolate:JC,h=mt(e.processor)&&Ge(e.processor.type)?e.processor.type:YC,_={list:a,named:u,plural:o,linked:(g,b)=>{const w=d(g)(_);return Ge(b)?m(b)(w):w},message:d,type:h,interpolate:p,normalize:f};return _}/*!
* @intlify/message-compiler v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/function yg(e,t,n={}){const{domain:r,messages:s,args:o}=n,i=e,a=new SyntaxError(String(i));return a.code=e,t&&(a.location=t),a.domain=r,a}/*!
* @intlify/devtools-if v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const vg={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
* @intlify/core-base v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/let xi=null;function tx(e){xi=e}function nx(e,t,n){xi&&xi.emit(vg.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const rx=sx(vg.FunctionTranslate);function sx(e){return t=>xi&&xi.emit(e,t)}const ox="9.1.10",Zl=-1,Wm="";function ix(){return{upper:e=>Ge(e)?e.toUpperCase():e,lower:e=>Ge(e)?e.toLowerCase():e,capitalize:e=>Ge(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let ax,bg=null;const Gm=e=>{bg=e},lx=()=>bg;let Km=0;function ux(e={}){const t=Ge(e.version)?e.version:ox,n=Ge(e.locale)?e.locale:"en-US",r=on(e.fallbackLocale)||mt(e.fallbackLocale)||Ge(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,s=mt(e.messages)?e.messages:{[n]:{}},o=mt(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},i=mt(e.numberFormats)?e.numberFormats:{[n]:{}},a=pn({},e.modifiers||{},ix()),l=e.pluralRules||{},u=fn(e.missing)?e.missing:null,d=Zt(e.missingWarn)||ml(e.missingWarn)?e.missingWarn:!0,m=Zt(e.fallbackWarn)||ml(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,p=!!e.unresolving,h=fn(e.postTranslation)?e.postTranslation:null,_=mt(e.processor)?e.processor:null,g=Zt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter,w=fn(e.messageCompiler)?e.messageCompiler:ax,S=fn(e.onWarn)?e.onWarn:MC,x=e,$=hn(x.__datetimeFormatters)?x.__datetimeFormatters:new Map,A=hn(x.__numberFormatters)?x.__numberFormatters:new Map,I=hn(x.__meta)?x.__meta:{};Km++;const V={version:t,cid:Km,locale:n,fallbackLocale:r,messages:s,datetimeFormats:o,numberFormats:i,modifiers:a,pluralRules:l,missing:u,missingWarn:d,fallbackWarn:m,fallbackFormat:f,unresolving:p,postTranslation:h,processor:_,warnHtmlMessage:g,escapeParameter:b,messageCompiler:w,onWarn:S,__datetimeFormatters:$,__numberFormatters:A,__meta:I};return __INTLIFY_PROD_DEVTOOLS__&&nx(V,t,I),V}function Gd(e,t,n,r,s){const{missing:o,onWarn:i}=e;if(o!==null){const a=o(e,n,t,s);return Ge(a)?a:t}else return t}function Fi(e,t,n){const r=e;r.__localeChainCache||(r.__localeChainCache=new Map);let s=r.__localeChainCache.get(n);if(!s){s=[];let o=[n];for(;on(o);)o=Ym(s,o,t);const i=on(t)?t:mt(t)?t.default?t.default:null:t;o=Ge(i)?[i]:i,on(o)&&Ym(s,o,!1),r.__localeChainCache.set(n,s)}return s}function Ym(e,t,n){let r=!0;for(let s=0;s<t.length&&Zt(r);s++){const o=t[s];Ge(o)&&(r=cx(e,t[s],n))}return r}function cx(e,t,n){let r;const s=t.split("-");do{const o=s.join("-");r=dx(e,o,n),s.splice(-1,1)}while(s.length&&r===!0);return r}function dx(e,t,n){let r=!1;if(!e.includes(t)&&(r=!0,t)){r=t[t.length-1]!=="!";const s=t.replace(/!/g,"");e.push(s),(on(n)||mt(n))&&n[s]&&(r=n[s])}return r}function Po(e,t,n){const r=e;r.__localeChainCache=new Map,Fi(e,n,t)}function Qs(e){return yg(e,null,void 0)}const Zm=()=>"",ur=e=>fn(e);function Jm(e,...t){const{fallbackFormat:n,postTranslation:r,unresolving:s,fallbackLocale:o,messages:i}=e,[a,l]=Pc(...t),u=Zt(l.missingWarn)?l.missingWarn:e.missingWarn,d=Zt(l.fallbackWarn)?l.fallbackWarn:e.fallbackWarn,m=Zt(l.escapeParameter)?l.escapeParameter:e.escapeParameter,f=!!l.resolvedMessage,p=Ge(l.default)||Zt(l.default)?Zt(l.default)?a:l.default:n?a:"",h=n||p!=="",_=Ge(l.locale)?l.locale:e.locale;m&&fx(l);let[g,b,w]=f?[a,_,i[_]||{}]:mx(e,a,_,o,d,u),S=a;if(!f&&!(Ge(g)||ur(g))&&h&&(g=p,S=g),!f&&(!(Ge(g)||ur(g))||!Ge(b)))return s?Zl:a;let x=!1;const $=()=>{x=!0},A=ur(g)?g:wg(e,a,b,g,S,$);if(x)return g;const I=_x(e,b,w,l),V=ex(I),O=px(e,A,V),N=r?r(O):O;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:Ge(a)?a:ur(g)?g.key:"",locale:b||(ur(g)?g.locale:""),format:Ge(g)?g:ur(g)?g.source:"",message:N};G.meta=pn({},e.__meta,lx()||{}),rx(G)}return N}function fx(e){on(e.list)?e.list=e.list.map(t=>Ge(t)?Hm(t):t):hn(e.named)&&Object.keys(e.named).forEach(t=>{Ge(e.named[t])&&(e.named[t]=Hm(e.named[t]))})}function mx(e,t,n,r,s,o){const{messages:i,onWarn:a}=e,l=Fi(e,r,n);let u={},d,m=null;const f="translate";for(let p=0;p<l.length&&(d=l[p],u=i[d]||{},(m=pl(u,t))===null&&(m=u[t]),!(Ge(m)||fn(m)));p++){const h=Gd(e,t,d,o,f);h!==t&&(m=h)}return[m,d,u]}function wg(e,t,n,r,s,o){const{messageCompiler:i,warnHtmlMessage:a}=e;if(ur(r)){const u=r;return u.locale=u.locale||n,u.key=u.key||t,u}const l=i(r,hx(e,n,s,r,a,o));return l.locale=n,l.key=t,l.source=r,l}function px(e,t,n){return t(n)}function Pc(...e){const[t,n,r]=e,s={};if(!Ge(t)&&!en(t)&&!ur(t))throw Qs(14);const o=en(t)?String(t):(ur(t),t);return en(n)?s.plural=n:Ge(n)?s.default=n:mt(n)&&!Yl(n)?s.named=n:on(n)&&(s.list=n),en(r)?s.plural=r:Ge(r)?s.default=r:mt(r)&&pn(s,r),[o,s]}function hx(e,t,n,r,s,o){return{warnHtmlMessage:s,onError:i=>{throw o&&o(i),i},onCacheKey:i=>DC(t,n,i)}}function _x(e,t,n,r){const{modifiers:s,pluralRules:o}=e,a={locale:t,modifiers:s,pluralRules:o,messages:l=>{const u=pl(n,l);if(Ge(u)){let d=!1;const f=wg(e,l,t,u,l,()=>{d=!0});return d?Zm:f}else return ur(u)?u:Zm}};return e.processor&&(a.processor=e.processor),r.list&&(a.list=r.list),r.named&&(a.named=r.named),en(r.plural)&&(a.pluralIndex=r.plural),a}function Xm(e,...t){const{datetimeFormats:n,unresolving:r,fallbackLocale:s,onWarn:o}=e,{__datetimeFormatters:i}=e,[a,l,u,d]=Dc(...t),m=Zt(u.missingWarn)?u.missingWarn:e.missingWarn;Zt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=Ge(u.locale)?u.locale:e.locale,h=Fi(e,s,p);if(!Ge(a)||a==="")return new Intl.DateTimeFormat(p).format(l);let _={},g,b=null;const w="datetime format";for(let $=0;$<h.length&&(g=h[$],_=n[g]||{},b=_[a],!mt(b));$++)Gd(e,a,g,m,w);if(!mt(b)||!Ge(g))return r?Zl:a;let S=`${g}__${a}`;Yl(d)||(S=`${S}__${JSON.stringify(d)}`);let x=i.get(S);return x||(x=new Intl.DateTimeFormat(g,pn({},b,d)),i.set(S,x)),f?x.formatToParts(l):x.format(l)}function Dc(...e){const[t,n,r,s]=e;let o={},i={},a;if(Ge(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw Qs(16);a=new Date(t);try{a.toISOString()}catch{throw Qs(16)}}else if(IC(t)){if(isNaN(t.getTime()))throw Qs(15);a=t}else if(en(t))a=t;else throw Qs(14);return Ge(n)?o.key=n:mt(n)&&(o=n),Ge(r)?o.locale=r:mt(r)&&(i=r),mt(s)&&(i=s),[o.key||"",a,o,i]}function Qm(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__datetimeFormatters.has(o)||r.__datetimeFormatters.delete(o)}}function ep(e,...t){const{numberFormats:n,unresolving:r,fallbackLocale:s,onWarn:o}=e,{__numberFormatters:i}=e,[a,l,u,d]=Fc(...t),m=Zt(u.missingWarn)?u.missingWarn:e.missingWarn;Zt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,p=Ge(u.locale)?u.locale:e.locale,h=Fi(e,s,p);if(!Ge(a)||a==="")return new Intl.NumberFormat(p).format(l);let _={},g,b=null;const w="number format";for(let $=0;$<h.length&&(g=h[$],_=n[g]||{},b=_[a],!mt(b));$++)Gd(e,a,g,m,w);if(!mt(b)||!Ge(g))return r?Zl:a;let S=`${g}__${a}`;Yl(d)||(S=`${S}__${JSON.stringify(d)}`);let x=i.get(S);return x||(x=new Intl.NumberFormat(g,pn({},b,d)),i.set(S,x)),f?x.formatToParts(l):x.format(l)}function Fc(...e){const[t,n,r,s]=e;let o={},i={};if(!en(t))throw Qs(14);const a=t;return Ge(n)?o.key=n:mt(n)&&(o=n),Ge(r)?o.locale=r:mt(r)&&(i=r),mt(s)&&(i=s),[o.key||"",a,o,i]}function tp(e,t,n){const r=e;for(const s in n){const o=`${t}__${s}`;!r.__numberFormatters.has(o)||r.__numberFormatters.delete(o)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(qd().__INTLIFY_PROD_DEVTOOLS__=!1);function gx(){return Cg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Cg(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const yx=typeof Proxy=="function",vx="devtools-plugin:setup",bx="plugin:settings:set";let Ls,Ic;function wx(){var e;return Ls!==void 0||(typeof window!="undefined"&&window.performance?(Ls=!0,Ic=window.performance):typeof global!="undefined"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(Ls=!0,Ic=global.perf_hooks.performance):Ls=!1),Ls}function Cx(){return wx()?Ic.now():Date.now()}class xx{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const r={};if(t.settings)for(const i in t.settings){const a=t.settings[i];r[i]=a.defaultValue}const s=`__vue-devtools-plugin-settings__${t.id}`;let o=Object.assign({},r);try{const i=localStorage.getItem(s),a=JSON.parse(i);Object.assign(o,a)}catch{}this.fallbacks={getSettings(){return o},setSettings(i){try{localStorage.setItem(s,JSON.stringify(i))}catch{}o=i},now(){return Cx()}},n&&n.on(bx,(i,a)=>{i===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(i,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(i,a)=>this.target?this.target[a]:a==="on"?this.proxiedOn:Object.keys(this.fallbacks).includes(a)?(...l)=>(this.targetQueue.push({method:a,args:l,resolve:()=>{}}),this.fallbacks[a](...l)):(...l)=>new Promise(u=>{this.targetQueue.push({method:a,args:l,resolve:u})})})}async setRealTarget(t){this.target=t;for(const n of this.onQueue)this.target.on[n.method](...n.args);for(const n of this.targetQueue)n.resolve(await this.target[n.method](...n.args))}}function kx(e,t){const n=e,r=Cg(),s=gx(),o=yx&&n.enableEarlyProxy;if(s&&(r.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!o))s.emit(vx,e,t);else{const i=o?new xx(n,s):null;(r.__VUE_DEVTOOLS_PLUGINS__=r.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:i}),i&&t(i.proxiedTarget)}}/*!
* vue-i18n v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Sx="9.1.10";function Ex(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(qd().__INTLIFY_PROD_DEVTOOLS__=!1)}function Hn(e,...t){return yg(e,null,void 0)}const Iu="__INTLIFY_META__",Mc=Or("__transrateVNode"),Rc=Or("__datetimeParts"),Lc=Or("__numberParts");Or("__enableEmitter");Or("__disableEmitter");const $x=Or("__setPluralRules");Or("__intlifyMeta");const xg=Or("__injectWithOption");let np=0;function rp(e){return(t,n,r,s)=>e(n,r,or()||void 0,s)}function kg(e,t){const{messages:n,__i18n:r}=t,s=mt(n)?n:on(r)?{}:{[e]:{}};if(on(r)&&r.forEach(({locale:o,resource:i})=>{o?(s[o]=s[o]||{},hl(i,s[o])):hl(i,s)}),t.flatJson)for(const o in s)_g(s,o)&&Tc(s[o]);return s}const ra=e=>!hn(e)||on(e);function hl(e,t){if(ra(e)||ra(t))throw Hn(20);for(const n in e)_g(e,n)&&(ra(e[n])||ra(t[n])?t[n]=e[n]:hl(e[n],t[n]))}const zx=()=>{const e=or();return e&&e.type[Iu]?{[Iu]:e.type[Iu]}:null};function Sg(e={}){const{__root:t}=e,n=t===void 0;let r=Zt(e.inheritLocale)?e.inheritLocale:!0;const s=wn(t&&r?t.locale.value:Ge(e.locale)?e.locale:"en-US"),o=wn(t&&r?t.fallbackLocale.value:Ge(e.fallbackLocale)||on(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:s.value),i=wn(kg(s.value,e)),a=wn(mt(e.datetimeFormats)?e.datetimeFormats:{[s.value]:{}}),l=wn(mt(e.numberFormats)?e.numberFormats:{[s.value]:{}});let u=t?t.missingWarn:Zt(e.missingWarn)||ml(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Zt(e.fallbackWarn)||ml(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:Zt(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.fallbackFormat,p=fn(e.missing)?e.missing:null,h=fn(e.missing)?rp(e.missing):null,_=fn(e.postTranslation)?e.postTranslation:null,g=Zt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,b=!!e.escapeParameter;const w=t?t.modifiers:mt(e.modifiers)?e.modifiers:{};let S=e.pluralRules||t&&t.pluralRules,x;function $(){return ux({version:Sx,locale:s.value,fallbackLocale:o.value,messages:i.value,datetimeFormats:a.value,numberFormats:l.value,modifiers:w,pluralRules:S,missing:h===null?void 0:h,missingWarn:u,fallbackWarn:d,fallbackFormat:f,unresolving:!0,postTranslation:_===null?void 0:_,warnHtmlMessage:g,escapeParameter:b,__datetimeFormatters:mt(x)?x.__datetimeFormatters:void 0,__numberFormatters:mt(x)?x.__numberFormatters:void 0,__v_emitter:mt(x)?x.__v_emitter:void 0,__meta:{framework:"vue"}})}x=$(),Po(x,s.value,o.value);function A(){return[s.value,o.value,i.value,a.value,l.value]}const I=At({get:()=>s.value,set:j=>{s.value=j,x.locale=s.value}}),V=At({get:()=>o.value,set:j=>{o.value=j,x.fallbackLocale=o.value,Po(x,s.value,j)}}),O=At(()=>i.value),N=At(()=>a.value),G=At(()=>l.value);function F(){return fn(_)?_:null}function B(j){_=j,x.postTranslation=j}function Y(){return p}function de(j){j!==null&&(h=rp(j)),p=j,x.missing=h}function te(j,U,ze,xe,De,Le){A();let qe;if(__INTLIFY_PROD_DEVTOOLS__)try{Gm(zx()),qe=j(x)}finally{Gm(null)}else qe=j(x);if(en(qe)&&qe===Zl){const[nt,k]=U();return t&&m?xe(t):De(nt)}else{if(Le(qe))return qe;throw Hn(14)}}function le(...j){return te(U=>Jm(U,...j),()=>Pc(...j),"translate",U=>U.t(...j),U=>U,U=>Ge(U))}function ge(...j){const[U,ze,xe]=j;if(xe&&!hn(xe))throw Hn(15);return le(U,ze,pn({resolvedMessage:!0},xe||{}))}function Re(...j){return te(U=>Xm(U,...j),()=>Dc(...j),"datetime format",U=>U.d(...j),()=>Wm,U=>Ge(U))}function Be(...j){return te(U=>ep(U,...j),()=>Fc(...j),"number format",U=>U.n(...j),()=>Wm,U=>Ge(U))}function he(j){return j.map(U=>Ge(U)?C(Qr,null,U,0):U)}const fe={normalize:he,interpolate:j=>j,type:"vnode"};function we(...j){return te(U=>{let ze;const xe=U;try{xe.processor=fe,ze=Jm(xe,...j)}finally{xe.processor=null}return ze},()=>Pc(...j),"translate",U=>U[Mc](...j),U=>[C(Qr,null,U,0)],U=>on(U))}function H(...j){return te(U=>ep(U,...j),()=>Fc(...j),"number format",U=>U[Lc](...j),()=>[],U=>Ge(U)||on(U))}function oe(...j){return te(U=>Xm(U,...j),()=>Dc(...j),"datetime format",U=>U[Rc](...j),()=>[],U=>Ge(U)||on(U))}function se(j){S=j,x.pluralRules=S}function be(j,U){const ze=Ge(U)?U:s.value,xe=$e(ze);return pl(xe,j)!==null}function Ve(j){let U=null;const ze=Fi(x,o.value,s.value);for(let xe=0;xe<ze.length;xe++){const De=i.value[ze[xe]]||{},Le=pl(De,j);if(Le!=null){U=Le;break}}return U}function Ie(j){const U=Ve(j);return U!=null?U:t?t.tm(j)||{}:{}}function $e(j){return i.value[j]||{}}function Ae(j,U){i.value[j]=U,x.messages=i.value}function z(j,U){i.value[j]=i.value[j]||{},hl(U,i.value[j]),x.messages=i.value}function R(j){return a.value[j]||{}}function Z(j,U){a.value[j]=U,x.datetimeFormats=a.value,Qm(x,j,U)}function ae(j,U){a.value[j]=pn(a.value[j]||{},U),x.datetimeFormats=a.value,Qm(x,j,U)}function ue(j){return l.value[j]||{}}function ye(j,U){l.value[j]=U,x.numberFormats=l.value,tp(x,j,U)}function Ce(j,U){l.value[j]=pn(l.value[j]||{},U),x.numberFormats=l.value,tp(x,j,U)}return np++,t&&(Mt(t.locale,j=>{r&&(s.value=j,x.locale=j,Po(x,s.value,o.value))}),Mt(t.fallbackLocale,j=>{r&&(o.value=j,x.fallbackLocale=j,Po(x,s.value,o.value))})),{id:np,locale:I,fallbackLocale:V,get inheritLocale(){return r},set inheritLocale(j){r=j,j&&t&&(s.value=t.locale.value,o.value=t.fallbackLocale.value,Po(x,s.value,o.value))},get availableLocales(){return Object.keys(i.value).sort()},messages:O,datetimeFormats:N,numberFormats:G,get modifiers(){return w},get pluralRules(){return S||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(j){u=j,x.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(j){d=j,x.fallbackWarn=d},get fallbackRoot(){return m},set fallbackRoot(j){m=j},get fallbackFormat(){return f},set fallbackFormat(j){f=j,x.fallbackFormat=f},get warnHtmlMessage(){return g},set warnHtmlMessage(j){g=j,x.warnHtmlMessage=j},get escapeParameter(){return b},set escapeParameter(j){b=j,x.escapeParameter=j},t:le,rt:ge,d:Re,n:Be,te:be,tm:Ie,getLocaleMessage:$e,setLocaleMessage:Ae,mergeLocaleMessage:z,getDateTimeFormat:R,setDateTimeFormat:Z,mergeDateTimeFormat:ae,getNumberFormat:ue,setNumberFormat:ye,mergeNumberFormat:Ce,getPostTranslationHandler:F,setPostTranslationHandler:B,getMissingHandler:Y,setMissingHandler:de,[Mc]:we,[Lc]:H,[Rc]:oe,[$x]:se,[xg]:e.__injectWithOption}}const Kd={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}},sp={name:"i18n-t",props:pn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>en(e)||!isNaN(e)}},Kd),setup(e,t){const{slots:n,attrs:r}=t,s=e.i18n||Yd({useScope:e.scope,__useComponent:!0}),o=Object.keys(n).filter(i=>i!=="_");return()=>{const i={};e.locale&&(i.locale=e.locale),e.plural!==void 0&&(i.plural=Ge(e.plural)?+e.plural:e.plural);const a=Ax(t,o),l=s[Mc](e.keypath,a,i),u=pn({},r);return Ge(e.tag)||hn(e.tag)?Cn(e.tag,u,l):Cn(We,u,l)}}};function Ax({slots:e},t){return t.length===1&&t[0]==="default"?e.default?e.default():[]:t.reduce((n,r)=>{const s=e[r];return s&&(n[r]=s()),n},{})}function Eg(e,t,n,r){const{slots:s,attrs:o}=t;return()=>{const i={part:!0};let a={};e.locale&&(i.locale=e.locale),Ge(e.format)?i.key=e.format:hn(e.format)&&(Ge(e.format.key)&&(i.key=e.format.key),a=Object.keys(e.format).reduce((m,f)=>n.includes(f)?pn({},m,{[f]:e.format[f]}):m,{}));const l=r(e.value,i,a);let u=[i.key];on(l)?u=l.map((m,f)=>{const p=s[m.type];return p?p({[m.type]:m.value,index:f,parts:l}):[m.value]}):Ge(l)&&(u=[l]);const d=pn({},o);return Ge(e.tag)||hn(e.tag)?Cn(e.tag,d,u):Cn(We,d,u)}}const Ox=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],op={name:"i18n-n",props:pn({value:{type:Number,required:!0},format:{type:[String,Object]}},Kd),setup(e,t){const n=e.i18n||Yd({useScope:"parent",__useComponent:!0});return Eg(e,t,Ox,(...r)=>n[Lc](...r))}},Tx=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],ip={name:"i18n-d",props:pn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},Kd),setup(e,t){const n=e.i18n||Yd({useScope:"parent",__useComponent:!0});return Eg(e,t,Tx,(...r)=>n[Rc](...r))}};function Px(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const r=n.__getInstance(t);return r!=null?r.__composer:e.global.__composer}}function Dx(e){const t=(n,{instance:r,value:s,modifiers:o})=>{if(!r||!r.$)throw Hn(22);const i=Px(e,r.$),a=Fx(s);n.textContent=i.t(...Ix(a))};return{beforeMount:t,beforeUpdate:t}}function Fx(e){if(Ge(e))return{path:e};if(mt(e)){if(!("path"in e))throw Hn(19,"path");return e}else throw Hn(20)}function Ix(e){const{path:t,locale:n,args:r,choice:s,plural:o}=e,i={},a=r||{};return Ge(n)&&(i.locale=n),en(s)&&(i.plural=s),en(o)&&(i.plural=o),[t,a,i]}function Mx(e,t,...n){const r=mt(n[0])?n[0]:{},s=!!r.useI18nComponentName;(Zt(r.globalInstall)?r.globalInstall:!0)&&(e.component(s?"i18n":sp.name,sp),e.component(op.name,op),e.component(ip.name,ip)),e.directive("t",Dx(t))}function Rx(e={}){const t=!!e.globalInjection,n=new Map,r=Sg(e),s=Or(""),o={get mode(){return"composition"},async install(i,...a){i.__VUE_I18N_SYMBOL__=s,i.provide(i.__VUE_I18N_SYMBOL__,o),t&&Bx(i,o.global),Mx(i,o,...a)},get global(){return r},__instances:n,__getInstance(i){return n.get(i)||null},__setInstance(i,a){n.set(i,a)},__deleteInstance(i){n.delete(i)}};return o}function Yd(e={}){const t=or();if(t==null)throw Hn(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw Hn(17);const n=rr(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw Hn(22);const r=n.mode==="composition"?n.global:n.global.__composer,s=Yl(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if(s==="global"){let a=hn(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(a=kg(r.locale.value,{messages:a,__i18n:t.type.__i18nGlobal}));const l=Object.keys(a);if(l.length&&l.forEach(u=>{r.mergeLocaleMessage(u,a[u])}),hn(e.datetimeFormats)){const u=Object.keys(e.datetimeFormats);u.length&&u.forEach(d=>{r.mergeDateTimeFormat(d,e.datetimeFormats[d])})}if(hn(e.numberFormats)){const u=Object.keys(e.numberFormats);u.length&&u.forEach(d=>{r.mergeNumberFormat(d,e.numberFormats[d])})}return r}if(s==="parent"){let a=Lx(n,t,e.__useComponent);return a==null&&(a=r),a}if(n.mode==="legacy")throw Hn(18);const o=n;let i=o.__getInstance(t);if(i==null){const a=t.type,l=pn({},e);a.__i18n&&(l.__i18n=a.__i18n),r&&(l.__root=r),i=Sg(l),Nx(o,t),o.__setInstance(t,i)}return i}function Lx(e,t,n=!1){let r=null;const s=t.root;let o=t.parent;for(;o!=null;){const i=e;if(e.mode==="composition")r=i.__getInstance(o);else{const a=i.__getInstance(o);a!=null&&(r=a.__composer),n&&r&&!r[xg]&&(r=null)}if(r!=null||s===o)break;o=o.parent}return r}function Nx(e,t,n){Ts(()=>{},t),Co(()=>{e.__deleteInstance(t)},t)}const Vx=["locale","fallbackLocale","availableLocales"],jx=["t","rt","d","n","tm"];function Bx(e,t){const n=Object.create(null);Vx.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s)throw Hn(22);const o=jt(s.value)?{get(){return s.value.value},set(i){s.value.value=i}}:{get(){return s.get&&s.get()}};Object.defineProperty(n,r,o)}),e.config.globalProperties.$i18n=n,jx.forEach(r=>{const s=Object.getOwnPropertyDescriptor(t,r);if(!s||!s.value)throw Hn(22);Object.defineProperty(e.config.globalProperties,`$${r}`,s)})}Ex();if(__INTLIFY_PROD_DEVTOOLS__){const e=qd();e.__INTLIFY__=!0,tx(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var Hx={en:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["File"])},url:e=>{const{normalize:t}=e;return t(["URL"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},pipe:e=>{const{normalize:t}=e;return t(["Stream"])}}},dialog:{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Add"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},help:e=>{const{normalize:t}=e;return t(["Adding a podcast includes creating an RSS playlist, that will allow OwnTone to manage the podcast subscription."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-rss"])},processing:e=>{const{normalize:t}=e;return t(["Processing\u2026"])},title:e=>{const{normalize:t}=e;return t(["Add Podcast RSS feed URL"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Add"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},loading:e=>{const{normalize:t}=e;return t(["Loading\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-stream"])},play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Add Stream URL"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added on"])},artist:e=>{const{normalize:t}=e;return t(["Album artist"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Track count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},play:e=>{const{normalize:t}=e;return t(["Play"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"track-count":e=>{const{normalize:t}=e;return t(["Track Count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},save:e=>{const{normalize:t}=e;return t(["Save"])},saving:e=>{const{normalize:t}=e;return t(["Saving\u2026"])},title:e=>{const{normalize:t}=e;return t(["Save queue to playlist"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},remove:e=>{const{normalize:t}=e;return t(["Remove"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},pair:e=>{const{normalize:t}=e;return t(["Pair Remote"])},title:e=>{const{normalize:t}=e;return t(["Remote pairing request"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Play"])},popularity:e=>{const{normalize:t}=e;return t(["Popularity / Followers"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},owner:e=>{const{normalize:t}=e;return t(["Owner"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Add"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Kb/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Comment"])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Mark as new"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},update:{all:e=>{const{normalize:t}=e;return t(["Update everything"])},feeds:e=>{const{normalize:t}=e;return t(["Only update RSS feeds"])},info:e=>{const{normalize:t}=e;return t(["Scan for new, deleted and modified files"])},local:e=>{const{normalize:t}=e;return t(["Only update local library"])},progress:e=>{const{normalize:t}=e;return t(["Library update in progress\u2026"])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Rescan metadata of unmodified files"])},spotify:e=>{const{normalize:t}=e;return t(["Only update Spotify"])},title:e=>{const{normalize:t}=e;return t(["Library update"])}}},language:{en:e=>{const{normalize:t}=e;return t(["English"])},fr:e=>{const{normalize:t}=e;return t(["French (Fran\xE7ais)"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Permanently remove this podcast from your library?"])},"info-2":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["(This will also remove the RSS playlist <b>",n(r("name")),"</b>)."])},notification:e=>{const{normalize:t}=e;return t(["Podcast cannot be removed. Probably it was not added as an RSS playlist."])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["Track is not playable"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([", restriction reason: ",n(r("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["Audiobook"])},music:e=>{const{normalize:t}=e;return t(["Music"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["About"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" - ",n(r("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["HTTP stream error: failed to load stream or stopped loading due to network problem"])},"stream-name":e=>{const{normalize:t}=e;return t([" (stream.mp3)"])},stream:e=>{const{normalize:t}=e;return t(["HTTP stream"])},volume:e=>{const{normalize:t}=e;return t(["Volume"])},files:e=>{const{normalize:t}=e;return t(["Files"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Music"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},search:e=>{const{normalize:t}=e;return t(["Search"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},title:e=>{const{normalize:t}=e;return t(["OwnTone"])},"update-library":e=>{const{normalize:t}=e;return t(["Update Library"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"built-with":e=>{const{normalize:t}=e;return t(['Web interface built with <a href="https://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> and <a href="https://github.com/owntone/owntone-server/network/dependencies">more</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Compiled with support for ",n(r("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Library"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Total playtime"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},update:e=>{const{normalize:t}=e;return t(["Update"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("time"))," ago"])},updated:e=>{const{normalize:t}=e;return t(["Updated"])},uptime:e=>{const{normalize:t}=e;return t(["Uptime"])},version:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["<b>OwnTone</b> - version ",n(r("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["If active, hides singles and albums with tracks that only appear in playlists."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Hide singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["If active, hides albums that only appear in your Spotify library."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Hide albums from Spotify"])},"sort-by":e=>{const{normalize:t}=e;return t(["Sort by"])},title:e=>{const{normalize:t}=e;return t(["Albums"])},filter:{title:e=>{const{normalize:t}=e;return t(["Filter"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"recently-added":e=>{const{normalize:t}=e;return t(["Recently added"])},"recently-released":e=>{const{normalize:t}=e;return t(["Recently released"])}}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"," "])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," artists"])},filter:{title:e=>{const{normalize:t}=e;return t(["Filter"])},name:e=>{const{normalize:t}=e;return t(["Name"])},"recently-added":e=>{const{normalize:t}=e;return t(["Rencently added"])}},"hide-singles-help":e=>{const{normalize:t}=e;return t(["If active, hides artists that only appear on singles or playlists."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Hide singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["If active, hides artists that only appear in your Spotify library."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Hide artists from Spotify"])},"sort-by":e=>{const{normalize:t}=e;return t(["Sort by"])},title:e=>{const{normalize:t}=e;return t(["Artists"])}},audiobooks:{album:{play:e=>{const{normalize:t}=e;return t(["Play"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," audiobooks"])},title:e=>{const{normalize:t}=e;return t(["Audiobooks"])}},artist:{"albums-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," authors"])},title:e=>{const{normalize:t}=e;return t(["Authors"])}}},browse:{albums:e=>{const{normalize:t}=e;return t(["albums"])},"show-more":e=>{const{normalize:t}=e;return t(["Show more"])},tracks:e=>{const{normalize:t}=e;return t(["tracks"])},"recently-added":{albums:e=>{const{normalize:t}=e;return t(["albums"])},title:e=>{const{normalize:t}=e;return t(["Recently added"])}},"recently-played":{title:e=>{const{normalize:t}=e;return t(["Recently played"])},tracks:e=>{const{normalize:t}=e;return t(["tracks"])}}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},tracks:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}}},composers:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," composers"])},title:e=>{const{normalize:t}=e;return t(["Composers"])}},files:{play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Files"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"," "])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},tracks:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"," "])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ",n(r("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}}},genres:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Add some tracks by browsing your library"])},title:e=>{const{normalize:t}=e;return t(["Your play queue is empty"])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("length"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," playlists"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Play"])},"remove-error":e=>{const{normalize:t}=e;return t(["Podcast cannot be removed. Probably it was not added as an RSS playlist."])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Permanently remove this podcast from your library?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["This will also remove the RSS playlist "])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Add"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Mark All Played"])},"new-episodes":e=>{const{normalize:t}=e;return t(["New Episodes"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Update"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Add stream"])},clear:e=>{const{normalize:t}=e;return t(["Clear"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Hide previous"])},queue:e=>{const{normalize:t}=e;return t(["Queue"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," stations"])},title:e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},help:e=>{const{normalize:t}=e;return t(['Tip: you can search by a smart playlist query language <a href="https://github.com/owntone/owntone-server/blob/master/README_SMARTPL.md" target="_blank">expression</a> if you prefix it with <code>query:</code>.'])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["No audiobooks found"])},"no-composers":e=>{const{normalize:t}=e;return t(["No composers found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["No podcasts found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," artists"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," audiobooks"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," composers"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," playlists"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},settings:{artwork:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},coverartarchive:e=>{const{normalize:t}=e;return t(["Cover Art Archive"])},discogs:e=>{const{normalize:t}=e;return t(["Discogs"])},"explanation-1":e=>{const{normalize:t}=e;return t(["OwnTone supports PNG and JPEG artwork which is either placed as separate image files in the library, embedded in the media files or made available online by radio stations."])},"explanation-2":e=>{const{normalize:t}=e;return t(["In addition to that, you can enable fetching artwork from the following artwork providers:"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["No active pairing request."])},"pairing-request":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Remote pairing request from <b>",n(r("remote")),"</b>"])},pairing:e=>{const{normalize:t}=e;return t(["Remote Pairing"])},send:e=>{const{normalize:t}=e;return t(["Send"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["If your speaker requires pairing then activate it below and enter the PIN that it displays."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Speaker pairing and device verification"])},"verification-code":e=>{const{normalize:t}=e;return t(["Enter verification code"])},verify:e=>{const{normalize:t}=e;return t(["Verify"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Album Lists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},files:e=>{const{normalize:t}=e;return t(["Audio Files"])},language:e=>{const{normalize:t}=e;return t(["Language"])},music:e=>{const{normalize:t}=e;return t(["Music"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["If you select more items than can be shown on your screen then the burger menu will disappear."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["Select the top navigation bar menu items"])},"navigation-items":e=>{const{normalize:t}=e;return t(["Navigation Bar"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Now playing page"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},"recently-added-page-info":e=>{const{normalize:t}=e;return t(['Limit the number of albums shown on the "Recently Added" page'])},"recently-added-page":e=>{const{normalize:t}=e;return t(["Recently added page"])},search:e=>{const{normalize:t}=e;return t(["Search"])},"show-composer-genres-info-1":e=>{const{normalize:t}=e;return t(['Comma separated list of genres the composer should be displayed on the "now playing page"'])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Leave empty to always show the composer."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['The genre tag of the current track is matched by checking, if one of the defined genres are included. For example setting to "classical, soundtrack" will show the composer for tracks with a genre tag of "Contemporary Classical"'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Show composer only for listed genres"])},"show-composer-info":e=>{const{normalize:t}=e;return t(['If enabled the composer of the current playing track is shown on the "now playing page"'])},"show-composer":e=>{const{normalize:t}=e;return t(["Show composer"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Show cover artwork in album list"])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - Login with your Last.fm username and password to enable scrobbling"])},info:e=>{const{normalize:t}=e;return t(["OwnTone will not store your Last.fm username/password, only the session key. The session key does not expire."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["OwnTone was built without support for Last.fm."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Stop scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["OwnTone was either built without support for Spotify or libspotify is not installed."])},help:e=>{const{normalize:t}=e;return t(["If you normally log into Spotify with your Facebook account you must first go to Spotify's web site where you can get the Spotify username and password that matches your account."])},"logged-as":e=>{const{normalize:t}=e;return t(["Logged in as "])},requirements:e=>{const{normalize:t}=e;return t(["You must have a Spotify premium account."])},scopes:e=>{const{normalize:t}=e;return t(["Access to the Spotify Web API enables scanning of your Spotify library. Required scopes are: "])},user:e=>{const{normalize:t}=e;return t(["Access granted for "])},authorize:e=>{const{normalize:t}=e;return t(["Authorize Web API access"])},credentials:e=>{const{normalize:t}=e;return t([" - Login with your Spotify username and password"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify Web API</b> - Grant access to the Spotify Web API"])},"help-1":e=>{const{normalize:t}=e;return t(["libspotify enables OwnTone to play Spotify tracks."])},"help-2":e=>{const{normalize:t}=e;return t(["OwnTone will not store your password, but will still be able to log you in automatically afterwards, because libspotify saves a login token."])},reauthorize:e=>{const{normalize:t}=e;return t(["Please reauthorize Web API access to grant OwnTone the following additional access rights: "])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Login"])},logout:e=>{const{normalize:t}=e;return t(["Logout"])}},tabs:{music:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},browse:e=>{const{normalize:t}=e;return t(["Browse"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},search:{library:e=>{const{normalize:t}=e;return t(["Library"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},settings:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},general:e=>{const{normalize:t}=e;return t(["General"])},"online-services":e=>{const{normalize:t}=e;return t(["Online Services"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["Remotes and Outputs"])}}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Featured Playlists"])},"new-releases":e=>{const{normalize:t}=e;return t(["New Releases"])},"show-more":e=>{const{normalize:t}=e;return t(["Show More"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," artists"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," playlists"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (error saving setting)"])},saved:e=>{const{normalize:t}=e;return t([" (setting saved)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["Failed to connect to OwnTone server"])},"missing-port":e=>{const{normalize:t}=e;return t(["Missing websocket port"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Request failed (status: ",n(r("status"))," ",n(r("cause"))," ",n(r("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Queue saved to playlist ",n(r("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks appended to the queue"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Queue is empty"])}}},fr:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["Fichier"])}}},dialog:{cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},add:{rss:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},help:e=>{const{normalize:t}=e;return t(["Adding a podcast includes creating an RSS playlist, that will allow OwnTone to manage the podcast subscription."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-rss"])},processing:e=>{const{normalize:t}=e;return t(["Processing..."])},title:e=>{const{normalize:t}=e;return t(["Add Podcast RSS feed URL"])}},stream:{Ajouter:e=>{const{normalize:t}=e;return t(["Ajouter"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},loading:e=>{const{normalize:t}=e;return t(["Loading ..."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-to-stream"])},"stream.play":e=>{const{normalize:t}=e;return t(["Play"])},"stream.title":e=>{const{normalize:t}=e;return t(["Add Stream URL"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Added on"])},artist:e=>{const{normalize:t}=e;return t(["Album artist"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"release-date":e=>{const{normalize:t}=e;return t(["Release date"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Remove podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Track count"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},artist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},play:e=>{const{normalize:t}=e;return t(["Play"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},play:e=>{const{normalize:t}=e;return t(["Play"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},play:e=>{const{normalize:t}=e;return t(["Play"])},"save.cancel":e=>{const{normalize:t}=e;return t(["Cancel"])},"save.save":e=>{const{normalize:t}=e;return t(["Save"])},"save.saving":e=>{const{normalize:t}=e;return t(["Saving..."])},"save.title":e=>{const{normalize:t}=e;return t(["Save queue to playlist"])},"track-count":e=>{const{normalize:t}=e;return t(["Track Count"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},queue:{"item.album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},"item.album":e=>{const{normalize:t}=e;return t(["Album"])},"item.bitrate":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("rate"))," kbit/s"])},"item.channels":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("channels"))])},"item.composer":e=>{const{normalize:t}=e;return t(["Composer"])},"item.duration":e=>{const{normalize:t}=e;return t(["Duration"])},"item.genre":e=>{const{normalize:t}=e;return t(["Genre"])},"item.path":e=>{const{normalize:t}=e;return t(["Path"])},"item.play":e=>{const{normalize:t}=e;return t(["Play"])},"item.position":e=>{const{normalize:t}=e;return t(["Disc / Track"])},"item.quality":e=>{const{normalize:t}=e;return t(["Quality"])},"item.remove":e=>{const{normalize:t}=e;return t(["Remove"])},"item.samplerate":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["|"," ",n(r("rate"))," Hz"])},"item.spotify.album":e=>{const{normalize:t}=e;return t(["album"])},"item.spotify.artist":e=>{const{normalize:t}=e;return t(["artist"])},"item.type":e=>{const{normalize:t}=e;return t(["Type"])},"item.year":e=>{const{normalize:t}=e;return t(["Year"])}},remote:{"pairing.cancel":e=>{const{normalize:t}=e;return t(["Cancel"])},"pairing.pair-remote":e=>{const{normalize:t}=e;return t(["Pair Remote"])},"pairing.title":e=>{const{normalize:t}=e;return t(["Remote pairing request"])}},spotify:{"album.add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},"album.add":e=>{const{normalize:t}=e;return t(["Ajouter"])},"album.album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},"album.play":e=>{const{normalize:t}=e;return t(["Play"])},"album.release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},"album.type":e=>{const{normalize:t}=e;return t(["Type"])},"artist.add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},"artist.add":e=>{const{normalize:t}=e;return t(["Ajouter"])},"artist.genres":e=>{const{normalize:t}=e;return t(["Genres"])},"artist.play":e=>{const{normalize:t}=e;return t(["Play"])},"artist.popularity":e=>{const{normalize:t}=e;return t(["Popularity / Followers"])},"playlist.add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},"playlist.add":e=>{const{normalize:t}=e;return t(["Ajouter"])},"playlist.owner":e=>{const{normalize:t}=e;return t(["Owner"])},"playlist.path":e=>{const{normalize:t}=e;return t(["Path"])},"playlist.play":e=>{const{normalize:t}=e;return t(["Play"])},"playlist.tracks":e=>{const{normalize:t}=e;return t(["Tracks"])},"track.add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},"track.add":e=>{const{normalize:t}=e;return t(["Ajouter"])},"track.album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},"track.album":e=>{const{normalize:t}=e;return t(["Album"])},"track.duration":e=>{const{normalize:t}=e;return t(["Duration"])},"track.path":e=>{const{normalize:t}=e;return t(["Path"])},"track.play":e=>{const{normalize:t}=e;return t(["Play"])},"track.position":e=>{const{normalize:t}=e;return t(["Disc / Track"])},"track.release-date":e=>{const{normalize:t}=e;return t(["Release Date"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Add Next"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Added On"])},"album-artist":e=>{const{normalize:t}=e;return t(["Album Artist"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Kb/s"])},channels:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Comment"])},composer:e=>{const{normalize:t}=e;return t(["Composer"])},duration:e=>{const{normalize:t}=e;return t(["Duration"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Mark as new"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Mark as played"])},path:e=>{const{normalize:t}=e;return t(["Path"])},play:e=>{const{normalize:t}=e;return t(["Play"])},position:e=>{const{normalize:t}=e;return t(["Disc / Track"])},quality:e=>{const{normalize:t}=e;return t(["Quality"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Rating"])},"release-date":e=>{const{normalize:t}=e;return t(["Release Date"])},samplerate:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artist"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Year"])}},update:{all:e=>{const{normalize:t}=e;return t(["Update everything"])},feeds:e=>{const{normalize:t}=e;return t(["Only update RSS feeds"])},info:e=>{const{normalize:t}=e;return t(["Scan for new, deleted and modified files"])},local:e=>{const{normalize:t}=e;return t(["Only update local library"])},progress:e=>{const{normalize:t}=e;return t(["Library update in progress..."])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Rescan metadata of unmodified files"])},spotify:e=>{const{normalize:t}=e;return t(["Only update Spotify"])},title:e=>{const{normalize:t}=e;return t(["Library update"])}}},language:{en:e=>{const{normalize:t}=e;return t(["English"])},fr:e=>{const{normalize:t}=e;return t(["French (Fran\xE7ais)"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Permanently remove this podcast from your library?"])},"info-2":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["(This will also remove the RSS playlist <b>",n(r("name")),"</b>)."])},notification:e=>{const{normalize:t}=e;return t(["Podcast cannot be removed. Probably it was not added as an RSS playlist."])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["Track is not playable"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([", restriction reason: ",n(r("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},music:e=>{const{normalize:t}=e;return t(["Music"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["About"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" - ",n(r("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["HTTP stream error: failed to load stream or stopped loading due to network problem"])},"stream-name":e=>{const{normalize:t}=e;return t([" (stream.mp3)"])},stream:e=>{const{normalize:t}=e;return t(["HTTP stream"])},volume:e=>{const{normalize:t}=e;return t(["Volume"])},files:e=>{const{normalize:t}=e;return t(["Files"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Music"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},search:e=>{const{normalize:t}=e;return t(["Search"])},settings:e=>{const{normalize:t}=e;return t(["Settings"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])},title:e=>{const{normalize:t}=e;return t(["OwnTone"])},"update-library":e=>{const{normalize:t}=e;return t(["Update Library"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"built-with":e=>{const{normalize:t}=e;return t(['Web interface built with <a href="https://bulma.io">Bulma</a>, <a href="https://materialdesignicons.com/">Material Design Icons</a>, <a href="https://vuejs.org/">Vue.js</a>, <a href="https://github.com/mzabriskie/axios">axios</a> and <a href="https://github.com/owntone/owntone-server/network/dependencies">more</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Compiled with support for ",n(r("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Library"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Total playtime"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},update:e=>{const{normalize:t}=e;return t(["Update"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("time"))," ago"])},updated:e=>{const{normalize:t}=e;return t(["Updated"])},uptime:e=>{const{normalize:t}=e;return t(["Uptime"])},version:e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["<b>OwnTone</b> - version ",n(r("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},"filter.name":e=>{const{normalize:t}=e;return t(["Name"])},"filter.recently-added":e=>{const{normalize:t}=e;return t(["Recently added"])},"filter.recently-released":e=>{const{normalize:t}=e;return t(["Recently released"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["If active, hides singles and albums with tracks that only appear in playlists."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Hide singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["If active, hides albums that only appear in your Spotify library."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Hide albums from Spotify"])},"sort-by":e=>{const{normalize:t}=e;return t(["Sort by"])},title:e=>{const{normalize:t}=e;return t(["Albums"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"," "])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"sort-by":e=>{const{normalize:t}=e;return t(["Sort by"])},"sort-by.name":e=>{const{normalize:t}=e;return t(["Name"])},"sort-by.release-date":e=>{const{normalize:t}=e;return t(["Release date"])},"tracks.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("albums"))," albums ","|"," ",n(r("tracks"))," tracks"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," artists"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"filter.name":e=>{const{normalize:t}=e;return t(["Name"])},"filter.recently-added":e=>{const{normalize:t}=e;return t(["Rencently added"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["If active, hides artists that only appear on singles or playlists."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Hide singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["If active, hides artists that only appear in your Spotify library."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Hide artists from Spotify"])},"sort-by":e=>{const{normalize:t}=e;return t(["Sort by"])},title:e=>{const{normalize:t}=e;return t(["Artists"])}},audiobooks:{"album.play":e=>{const{normalize:t}=e;return t(["Play"])},"album.tracks.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},"albums.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," audiobooks"])},"albums.title":e=>{const{normalize:t}=e;return t(["Audiobooks"])},"artist.albums.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},"artist.shuffle":e=>{const{normalize:t}=e;return t(["Shuffle"])},"artists.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," authors"])},"artists.title":e=>{const{normalize:t}=e;return t(["Authors"])}},browse:{albums:e=>{const{normalize:t}=e;return t(["albums"])},"recently-added":e=>{const{normalize:t}=e;return t(["Recently added"])},"recently-played":e=>{const{normalize:t}=e;return t(["Recently played"])},"recently.added.albums":e=>{const{normalize:t}=e;return t(["albums"])},"recently.added.title":e=>{const{normalize:t}=e;return t(["Recently added"])},"recently.played.title":e=>{const{normalize:t}=e;return t(["Recently played"])},"recently.played.tracks":e=>{const{normalize:t}=e;return t(["tracks"])},"show-more":e=>{const{normalize:t}=e;return t(["Show more"])},tracks:e=>{const{normalize:t}=e;return t(["tracks"])}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},"tracks.albums.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},"tracks.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ","|"," ",n(r("count"))," tracks"])},"tracks.shuffle":e=>{const{normalize:t}=e;return t(["Shuffle"])}},composers:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," composers"])},title:e=>{const{normalize:t}=e;return t(["Composers"])}},files:{play:e=>{const{normalize:t}=e;return t(["Play"])},title:e=>{const{normalize:t}=e;return t(["Files"])}},genre:{"albums.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"," "])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"tracks.albums.count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums ","|"," "])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([" ",n(r("count"))," tracks"])}},genres:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Add some tracks by browsing your library"])},title:e=>{const{normalize:t}=e;return t(["Your play queue is empty"])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("length"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," playlists"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Play"])},"remove.error":e=>{const{normalize:t}=e;return t(["Podcast cannot be removed. Probably it was not added as an RSS playlist."])},"remove.info-1":e=>{const{normalize:t}=e;return t(["Permanently remove this podcast from your library?"])},"remove.info-2":e=>{const{normalize:t}=e;return t(["This will also remove the RSS playlist "])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Mark All Played"])},"new-episodes":e=>{const{normalize:t}=e;return t(["New Episodes"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Update"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Add stream"])},clear:e=>{const{normalize:t}=e;return t(["Clear"])},count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Hide previous"])},queue:e=>{const{normalize:t}=e;return t(["Queue"])}},radio:{"station-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," stations"])},"streams.radio":e=>{const{normalize:t}=e;return t(["Radio"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},help:e=>{const{normalize:t}=e;return t(['Tip: you can search by a smart playlist query language <a href="https://github.com/owntone/owntone-server/blob/master/README_SMARTPL.md" target="_blank">expression</a> if you prefix it with <code>query:</code>.'])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["No audiobooks found"])},"no-composers":e=>{const{normalize:t}=e;return t(["No composers found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["No podcasts found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," artists"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," audiobooks"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," composers"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," playlists"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}},settings:{artwork:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},coverartarchive:e=>{const{normalize:t}=e;return t(["Cover Art Archive"])},discogs:e=>{const{normalize:t}=e;return t(["Discogs"])},"explanation-1":e=>{const{normalize:t}=e;return t(["OwnTone supports PNG and JPEG artwork which is either placed as separate image files in the library, embedded in the media files or made available online by radio stations."])},"explanation-2":e=>{const{normalize:t}=e;return t(["In addition to that, you can enable fetching artwork from the following artwork providers:"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["No active pairing request."])},"pairing-request":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Remote pairing request from <b>",n(r("remote")),"</b>"])},pairing:e=>{const{normalize:t}=e;return t(["Remote Pairing"])},send:e=>{const{normalize:t}=e;return t(["Send"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["If your speaker requires pairing then activate it below and enter the PIN that it displays."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Speaker pairing and device verification"])},"verification-code":e=>{const{normalize:t}=e;return t(["Enter verification code"])},verify:e=>{const{normalize:t}=e;return t(["Verify"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Album Lists"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])},files:e=>{const{normalize:t}=e;return t(["Audio Files"])},language:e=>{const{normalize:t}=e;return t(["Language"])},music:e=>{const{normalize:t}=e;return t(["Music"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["If you select more items than can be shown on your screen then the burger menu will disappear."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["Select the top navigation bar menu items"])},"navigation-items":e=>{const{normalize:t}=e;return t(["Navigation Bar"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Now playing page"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},radio:e=>{const{normalize:t}=e;return t(["Radio"])},"recently-added-page-info":e=>{const{normalize:t}=e;return t(['Limit the number of albums shown on the "Recently Added" page'])},"recently-added-page":e=>{const{normalize:t}=e;return t(["Recently added page"])},search:e=>{const{normalize:t}=e;return t(["Search"])},"show-composer-genres-info-1":e=>{const{normalize:t}=e;return t(['Comma separated list of genres the composer should be displayed on the "now playing page"'])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Leave empty to always show the composer."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['The genre tag of the current track is matched by checking, if one of the defined genres are included. For example setting to "classical, soundtrack" will show the composer for tracks with a genre tag of "Contemporary Classical"'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Show composer only for listed genres"])},"show-composer-info":e=>{const{normalize:t}=e;return t(['If enabled the composer of the current playing track is shown on the "now playing page"'])},"show-composer":e=>{const{normalize:t}=e;return t(["Show composer"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Show cover artwork in album list"])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - Login with your Last.fm username and password to enable scrobbling"])},info:e=>{const{normalize:t}=e;return t(["OwnTone will not store your Last.fm username/password, only the session key. The session key does not expire."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["OwnTone was built without support for Last.fm."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Stop scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["OwnTone was either built without support for Spotify or libspotify is not installed."])},help:e=>{const{normalize:t}=e;return t(["If you normally log into Spotify with your Facebook account you must first go to Spotify's web site where you can get the Spotify username and password that matches your account."])},"logged-as":e=>{const{normalize:t}=e;return t(["Logged in as "])},requirements:e=>{const{normalize:t}=e;return t(["You must have a Spotify premium account."])},scopes:e=>{const{normalize:t}=e;return t(["Access to the Spotify Web API enables scanning of your Spotify library. Required scopes are: "])},user:e=>{const{normalize:t}=e;return t(["Access granted for "])},authorize:e=>{const{normalize:t}=e;return t(["Authorize Web API access"])},credentials:e=>{const{normalize:t}=e;return t([" - Login with your Spotify username and password"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify Web API</b> - Grant access to the Spotify Web API"])},"help-1":e=>{const{normalize:t}=e;return t(["libspotify enables OwnTone to play Spotify tracks."])},"help-2":e=>{const{normalize:t}=e;return t(["OwnTone will not store your password, but will still be able to log you in automatically afterwards, because libspotify saves a login token."])},reauthorize:e=>{const{normalize:t}=e;return t(["Please reauthorize Web API access to grant OwnTone the following additional access rights: "])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Login"])},logout:e=>{const{normalize:t}=e;return t(["Logout"])}},tabs:{music:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},browse:e=>{const{normalize:t}=e;return t(["Browse"])},composers:e=>{const{normalize:t}=e;return t(["Composers"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},search:{library:e=>{const{normalize:t}=e;return t(["Library"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},settings:{artwork:e=>{const{normalize:t}=e;return t(["Artwork"])},general:e=>{const{normalize:t}=e;return t(["General"])},"online-services":e=>{const{normalize:t}=e;return t(["Online Services"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["Remotes and Outputs"])}}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Featured Playlists"])},"new-releases":e=>{const{normalize:t}=e;return t(["New Releases"])},"show-more":e=>{const{normalize:t}=e;return t(["Show More"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artists"])},"no-albums":e=>{const{normalize:t}=e;return t(["No albums found"])},"no-artists":e=>{const{normalize:t}=e;return t(["No artists found"])},"no-playlists":e=>{const{normalize:t}=e;return t(["No playlists found"])},"no-tracks":e=>{const{normalize:t}=e;return t(["No tracks found"])},playlists:e=>{const{normalize:t}=e;return t(["Playlists"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," artists"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," playlists"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Show all ",n(r("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])}}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (error saving setting)"])},saved:e=>{const{normalize:t}=e;return t([" (setting saved)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["Failed to connect to OwnTone server"])},"missing-port":e=>{const{normalize:t}=e;return t(["Missing websocket port"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Request failed (status: ",n(r("status"))," ",n(r("cause"))," ",n(r("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:r}=e;return t(["Queue saved to playlist ",n(r("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:r}=e;return t([n(r("count"))," tracks appended to the queue"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Queue is empty"])}}}},Ux=Rx({legacy:!1,globalInjection:!0,locale:"en",fallbackLocale:"en",messages:Hx});/*!
* vuex v4.0.2
* (c) 2021 Evan You
* @license MIT
*/var qx="store";function xo(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function Wx(e){return e!==null&&typeof e=="object"}function Gx(e){return e&&typeof e.then=="function"}function Kx(e,t){return function(){return e(t)}}function $g(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var r=t.indexOf(e);r>-1&&t.splice(r,1)}}function zg(e,t){e._actions=Object.create(null),e._mutations=Object.create(null),e._wrappedGetters=Object.create(null),e._modulesNamespaceMap=Object.create(null);var n=e.state;Jl(e,n,[],e._modules.root,!0),Zd(e,n,t)}function Zd(e,t,n){var r=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var s=e._wrappedGetters,o={};xo(s,function(i,a){o[a]=Kx(i,e),Object.defineProperty(e.getters,a,{get:function(){return o[a]()},enumerable:!0})}),e._state=As({data:t}),e.strict&&Qx(e),r&&n&&e._withCommit(function(){r.data=null})}function Jl(e,t,n,r,s){var o=!n.length,i=e._modules.getNamespace(n);if(r.namespaced&&(e._modulesNamespaceMap[i],e._modulesNamespaceMap[i]=r),!o&&!s){var a=Jd(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=r.state})}var u=r.context=Yx(e,i,n);r.forEachMutation(function(d,m){var f=i+m;Zx(e,f,d,u)}),r.forEachAction(function(d,m){var f=d.root?m:i+m,p=d.handler||d;Jx(e,f,p,u)}),r.forEachGetter(function(d,m){var f=i+m;Xx(e,f,d,u)}),r.forEachChild(function(d,m){Jl(e,t,n.concat(m),d,s)})}function Yx(e,t,n){var r=t==="",s={dispatch:r?e.dispatch:function(o,i,a){var l=_l(o,i,a),u=l.payload,d=l.options,m=l.type;return(!d||!d.root)&&(m=t+m),e.dispatch(m,u)},commit:r?e.commit:function(o,i,a){var l=_l(o,i,a),u=l.payload,d=l.options,m=l.type;(!d||!d.root)&&(m=t+m),e.commit(m,u,d)}};return Object.defineProperties(s,{getters:{get:r?function(){return e.getters}:function(){return Ag(e,t)}},state:{get:function(){return Jd(e.state,n)}}}),s}function Ag(e,t){if(!e._makeLocalGettersCache[t]){var n={},r=t.length;Object.keys(e.getters).forEach(function(s){if(s.slice(0,r)===t){var o=s.slice(r);Object.defineProperty(n,o,{get:function(){return e.getters[s]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function Zx(e,t,n,r){var s=e._mutations[t]||(e._mutations[t]=[]);s.push(function(i){n.call(e,r.state,i)})}function Jx(e,t,n,r){var s=e._actions[t]||(e._actions[t]=[]);s.push(function(i){var a=n.call(e,{dispatch:r.dispatch,commit:r.commit,getters:r.getters,state:r.state,rootGetters:e.getters,rootState:e.state},i);return Gx(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function Xx(e,t,n,r){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(o){return n(r.state,r.getters,o.state,o.getters)})}function Qx(e){Mt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function Jd(e,t){return t.reduce(function(n,r){return n[r]},e)}function _l(e,t,n){return Wx(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var e2="vuex bindings",ap="vuex:mutations",Mu="vuex:actions",Ns="vuex",t2=0;function n2(e,t){kx({id:"org.vuejs.vuex",app:e,label:"Vuex",homepage:"https://next.vuex.vuejs.org/",logo:"https://vuejs.org/images/icons/favicon-96x96.png",packageName:"vuex",componentStateTypes:[e2]},function(n){n.addTimelineLayer({id:ap,label:"Vuex Mutations",color:lp}),n.addTimelineLayer({id:Mu,label:"Vuex Actions",color:lp}),n.addInspector({id:Ns,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(r){if(r.app===e&&r.inspectorId===Ns)if(r.filter){var s=[];Dg(s,t._modules.root,r.filter,""),r.rootNodes=s}else r.rootNodes=[Pg(t._modules.root,"")]}),n.on.getInspectorState(function(r){if(r.app===e&&r.inspectorId===Ns){var s=r.nodeId;Ag(t,s),r.state=o2(a2(t._modules,s),s==="root"?t.getters:t._makeLocalGettersCache,s)}}),n.on.editInspectorState(function(r){if(r.app===e&&r.inspectorId===Ns){var s=r.nodeId,o=r.path;s!=="root"&&(o=s.split("/").filter(Boolean).concat(o)),t._withCommit(function(){r.set(t._state.data,o,r.state.value)})}}),t.subscribe(function(r,s){var o={};r.payload&&(o.payload=r.payload),o.state=s,n.notifyComponentUpdate(),n.sendInspectorTree(Ns),n.sendInspectorState(Ns),n.addTimelineEvent({layerId:ap,event:{time:Date.now(),title:r.type,data:o}})}),t.subscribeAction({before:function(r,s){var o={};r.payload&&(o.payload=r.payload),r._id=t2++,r._time=Date.now(),o.state=s,n.addTimelineEvent({layerId:Mu,event:{time:r._time,title:r.type,groupId:r._id,subtitle:"start",data:o}})},after:function(r,s){var o={},i=Date.now()-r._time;o.duration={_custom:{type:"duration",display:i+"ms",tooltip:"Action duration",value:i}},r.payload&&(o.payload=r.payload),o.state=s,n.addTimelineEvent({layerId:Mu,event:{time:Date.now(),title:r.type,groupId:r._id,subtitle:"end",data:o}})}})})}var lp=8702998,r2=6710886,s2=16777215,Og={label:"namespaced",textColor:s2,backgroundColor:r2};function Tg(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Pg(e,t){return{id:t||"root",label:Tg(t),tags:e.namespaced?[Og]:[],children:Object.keys(e._children).map(function(n){return Pg(e._children[n],t+n+"/")})}}function Dg(e,t,n,r){r.includes(n)&&e.push({id:r||"root",label:r.endsWith("/")?r.slice(0,r.length-1):r||"Root",tags:t.namespaced?[Og]:[]}),Object.keys(t._children).forEach(function(s){Dg(e,t._children[s],n,r+s+"/")})}function o2(e,t,n){t=n==="root"?t:t[n];var r=Object.keys(t),s={state:Object.keys(e.state).map(function(i){return{key:i,editable:!0,value:e.state[i]}})};if(r.length){var o=i2(t);s.getters=Object.keys(o).map(function(i){return{key:i.endsWith("/")?Tg(i):i,editable:!1,value:Nc(function(){return o[i]})}})}return s}function i2(e){var t={};return Object.keys(e).forEach(function(n){var r=n.split("/");if(r.length>1){var s=t,o=r.pop();r.forEach(function(i){s[i]||(s[i]={_custom:{value:{},display:i,tooltip:"Module",abstract:!0}}),s=s[i]._custom.value}),s[o]=Nc(function(){return e[n]})}else t[n]=Nc(function(){return e[n]})}),t}function a2(e,t){var n=t.split("/").filter(function(r){return r});return n.reduce(function(r,s,o){var i=r[s];if(!i)throw new Error('Missing module "'+s+'" for path "'+t+'".');return o===n.length-1?i:i._children},t==="root"?e:e.root._children)}function Nc(e){try{return e()}catch(t){return t}}var ir=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var r=t.state;this.state=(typeof r=="function"?r():r)||{}},Fg={namespaced:{configurable:!0}};Fg.namespaced.get=function(){return!!this._rawModule.namespaced};ir.prototype.addChild=function(t,n){this._children[t]=n};ir.prototype.removeChild=function(t){delete this._children[t]};ir.prototype.getChild=function(t){return this._children[t]};ir.prototype.hasChild=function(t){return t in this._children};ir.prototype.update=function(t){this._rawModule.namespaced=t.namespaced,t.actions&&(this._rawModule.actions=t.actions),t.mutations&&(this._rawModule.mutations=t.mutations),t.getters&&(this._rawModule.getters=t.getters)};ir.prototype.forEachChild=function(t){xo(this._children,t)};ir.prototype.forEachGetter=function(t){this._rawModule.getters&&xo(this._rawModule.getters,t)};ir.prototype.forEachAction=function(t){this._rawModule.actions&&xo(this._rawModule.actions,t)};ir.prototype.forEachMutation=function(t){this._rawModule.mutations&&xo(this._rawModule.mutations,t)};Object.defineProperties(ir.prototype,Fg);var Ps=function(t){this.register([],t,!1)};Ps.prototype.get=function(t){return t.reduce(function(n,r){return n.getChild(r)},this.root)};Ps.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(r,s){return n=n.getChild(s),r+(n.namespaced?s+"/":"")},"")};Ps.prototype.update=function(t){Ig([],this.root,t)};Ps.prototype.register=function(t,n,r){var s=this;r===void 0&&(r=!0);var o=new ir(n,r);if(t.length===0)this.root=o;else{var i=this.get(t.slice(0,-1));i.addChild(t[t.length-1],o)}n.modules&&xo(n.modules,function(a,l){s.register(t.concat(l),a,r)})};Ps.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1],s=n.getChild(r);!s||!s.runtime||n.removeChild(r)};Ps.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),r=t[t.length-1];return n?n.hasChild(r):!1};function Ig(e,t,n){if(t.update(n),n.modules)for(var r in n.modules){if(!t.getChild(r))return;Ig(e.concat(r),t.getChild(r),n.modules[r])}}function l2(e){return new kn(e)}var kn=function(t){var n=this;t===void 0&&(t={});var r=t.plugins;r===void 0&&(r=[]);var s=t.strict;s===void 0&&(s=!1);var o=t.devtools;this._committing=!1,this._actions=Object.create(null),this._actionSubscribers=[],this._mutations=Object.create(null),this._wrappedGetters=Object.create(null),this._modules=new Ps(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=o;var i=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(f,p){return l.call(i,f,p)},this.commit=function(f,p,h){return u.call(i,f,p,h)},this.strict=s;var d=this._modules.root.state;Jl(this,d,[],this._modules.root),Zd(this,d),r.forEach(function(m){return m(n)})},Xd={state:{configurable:!0}};kn.prototype.install=function(t,n){t.provide(n||qx,this),t.config.globalProperties.$store=this;var r=this._devtools!==void 0?this._devtools:!1;r&&n2(t,this)};Xd.state.get=function(){return this._state.data};Xd.state.set=function(e){};kn.prototype.commit=function(t,n,r){var s=this,o=_l(t,n,r),i=o.type,a=o.payload,l={type:i,payload:a},u=this._mutations[i];!u||(this._withCommit(function(){u.forEach(function(m){m(a)})}),this._subscribers.slice().forEach(function(d){return d(l,s.state)}))};kn.prototype.dispatch=function(t,n){var r=this,s=_l(t,n),o=s.type,i=s.payload,a={type:o,payload:i},l=this._actions[o];if(!!l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,r.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(d){return d(i)})):l[0](i);return new Promise(function(d,m){u.then(function(f){try{r._actionSubscribers.filter(function(p){return p.after}).forEach(function(p){return p.after(a,r.state)})}catch{}d(f)},function(f){try{r._actionSubscribers.filter(function(p){return p.error}).forEach(function(p){return p.error(a,r.state,f)})}catch{}m(f)})})}};kn.prototype.subscribe=function(t,n){return $g(t,this._subscribers,n)};kn.prototype.subscribeAction=function(t,n){var r=typeof t=="function"?{before:t}:t;return $g(r,this._actionSubscribers,n)};kn.prototype.watch=function(t,n,r){var s=this;return Mt(function(){return t(s.state,s.getters)},n,Object.assign({},r))};kn.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};kn.prototype.registerModule=function(t,n,r){r===void 0&&(r={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),Jl(this,this.state,t,this._modules.get(t),r.preserveState),Zd(this,this.state)};kn.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var r=Jd(n.state,t.slice(0,-1));delete r[t[t.length-1]]}),zg(this)};kn.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};kn.prototype.hotUpdate=function(t){this._modules.update(t),zg(this,!0)};kn.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties(kn.prototype,Xd);const Mg="UPDATE_CONFIG",Rg="UPDATE_SETTINGS",Xl="UPDATE_SETTINGS_OPTION",Lg="UPDATE_LIBRARY_STATS",Ng="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",Vg="UPDATE_LIBRARY_PODCASTS_COUNT",jg="UPDATE_LIBRARY_RSS_COUNT",Bg="UPDATE_OUTPUTS",Qd="UPDATE_PLAYER_STATUS",Hg="UPDATE_QUEUE",Ug="UPDATE_LASTFM",qg="UPDATE_SPOTIFY",Wg="UPDATE_PAIRING",ef="SPOTIFY_NEW_RELEASES",tf="SPOTIFY_FEATURED_PLAYLISTS",up="ADD_NOTIFICATION",Vc="DELETE_NOTIFICATION",jc="SEARCH_PATH",nf="ADD_RECENT_SEARCH",Ql="HIDE_SINGLES",rf="HIDE_SPOTIFY",Gg="ARTISTS_SORT",Kg="ARTIST_ALBUMS_SORT",Yg="ALBUMS_SORT",Zg="SHOW_ONLY_NEXT_ITEMS",ho="SHOW_BURGER_MENU",_o="SHOW_PLAYER_MENU",Ii="SHOW_UPDATE_DIALOG",sf="UPDATE_DIALOG_SCAN_KIND";var at=l2({state(){return{config:{websocket_port:0,version:"",buildoptions:[]},settings:{categories:[]},library:{artists:0,albums:0,songs:0,db_playtime:0,updating:!1},audiobooks_count:{},podcasts_count:{},rss_count:{},outputs:[],player:{state:"stop",repeat:"off",consume:!1,shuffle:!1,volume:0,item_id:0,item_length_ms:0,item_progress_ms:0},queue:{version:0,count:0,items:[]},lastfm:{},spotify:{},pairing:{},spotify_new_releases:[],spotify_featured_playlists:[],notifications:{next_id:1,list:[]},search_path:"/search/library",recent_searches:[],hide_singles:!1,hide_spotify:!1,artists_sort:1,artist_albums_sort:1,albums_sort:1,show_only_next_items:!1,show_burger_menu:!1,show_player_menu:!1,show_update_dialog:!1,update_dialog_scan_kind:""}},getters:{now_playing:e=>{const t=e.queue.items.find(function(n){return n.id===e.player.item_id});return t===void 0?{}:t},settings_webinterface:e=>e.settings?e.settings.categories.find(t=>t.name==="webinterface"):null,settings_option_recently_added_limit:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="recently_added_limit");if(n)return n.value}return 100},settings_option_show_composer_now_playing:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="show_composer_now_playing");if(n)return n.value}return!1},settings_option_show_composer_for_genre:(e,t)=>{if(t.settings_webinterface){const n=t.settings_webinterface.options.find(r=>r.name==="show_composer_for_genre");if(n)return n.value}return null},settings_category:e=>t=>e.settings.categories.find(n=>n.name===t),settings_option:e=>(t,n)=>{const r=e.settings.categories.find(s=>s.name===t);return r?r.options.find(s=>s.name===n):{}}},mutations:{[Mg](e,t){e.config=t},[Rg](e,t){e.settings=t},[Xl](e,t){const r=e.settings.categories.find(s=>s.name===t.category).options.find(s=>s.name===t.name);r.value=t.value},[Lg](e,t){e.library=t},[Ng](e,t){e.audiobooks_count=t},[Vg](e,t){e.podcasts_count=t},[jg](e,t){e.rss_count=t},[Bg](e,t){e.outputs=t},[Qd](e,t){e.player=t},[Hg](e,t){e.queue=t},[Ug](e,t){e.lastfm=t},[qg](e,t){e.spotify=t},[Wg](e,t){e.pairing=t},[ef](e,t){e.spotify_new_releases=t},[tf](e,t){e.spotify_featured_playlists=t},[up](e,t){if(t.topic){const n=e.notifications.list.findIndex(r=>r.topic===t.topic);if(n>=0){e.notifications.list.splice(n,1,t);return}}e.notifications.list.push(t)},[Vc](e,t){const n=e.notifications.list.indexOf(t);n!==-1&&e.notifications.list.splice(n,1)},[jc](e,t){e.search_path=t},[nf](e,t){const n=e.recent_searches.findIndex(r=>r===t);n>=0&&e.recent_searches.splice(n,1),e.recent_searches.splice(0,0,t),e.recent_searches.length>5&&e.recent_searches.pop()},[Ql](e,t){e.hide_singles=t},[rf](e,t){e.hide_spotify=t},[Gg](e,t){e.artists_sort=t},[Kg](e,t){e.artist_albums_sort=t},[Yg](e,t){e.albums_sort=t},[Zg](e,t){e.show_only_next_items=t},[ho](e,t){e.show_burger_menu=t},[_o](e,t){e.show_player_menu=t},[Ii](e,t){e.show_update_dialog=t},[sf](e,t){e.update_dialog_scan_kind=t}},actions:{add_notification({commit:e,state:t},n){const r={id:t.notifications.next_id++,type:n.type,text:n.text,topic:n.topic,timeout:n.timeout};e(up,r),n.timeout>0&&setTimeout(()=>{e(Vc,r)},n.timeout)}}});/*!
* vue-router v4.0.15
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const Jg=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",ko=e=>Jg?Symbol(e):"_vr_"+e,u2=ko("rvlm"),cp=ko("rvd"),of=ko("r"),Xg=ko("rl"),Bc=ko("rvl"),Zs=typeof window!="undefined";function c2(e){return e.__esModule||Jg&&e[Symbol.toStringTag]==="Module"}const bt=Object.assign;function Ru(e,t){const n={};for(const r in t){const s=t[r];n[r]=Array.isArray(s)?s.map(e):e(s)}return n}const li=()=>{},d2=/\/$/,f2=e=>e.replace(d2,"");function Lu(e,t,n="/"){let r,s={},o="",i="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(r=t.slice(0,a),o=t.slice(a+1,l>-1?l:t.length),s=e(o)),l>-1&&(r=r||t.slice(0,l),i=t.slice(l,t.length)),r=_2(r!=null?r:t,n),{fullPath:r+(o&&"?")+o+i,path:r,query:s,hash:i}}function m2(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function dp(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function p2(e,t,n){const r=t.matched.length-1,s=n.matched.length-1;return r>-1&&r===s&&go(t.matched[r],n.matched[s])&&Qg(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function go(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function Qg(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!h2(e[n],t[n]))return!1;return!0}function h2(e,t){return Array.isArray(e)?fp(e,t):Array.isArray(t)?fp(t,e):e===t}function fp(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,r)=>n===t[r]):e.length===1&&e[0]===t}function _2(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),r=e.split("/");let s=n.length-1,o,i;for(o=0;o<r.length;o++)if(i=r[o],!(s===1||i==="."))if(i==="..")s--;else break;return n.slice(0,s).join("/")+"/"+r.slice(o-(o===r.length?1:0)).join("/")}var ki;(function(e){e.pop="pop",e.push="push"})(ki||(ki={}));var ui;(function(e){e.back="back",e.forward="forward",e.unknown=""})(ui||(ui={}));function g2(e){if(!e)if(Zs){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),f2(e)}const y2=/^[^#]+#/;function v2(e,t){return e.replace(y2,"#")+t}function b2(e,t){const n=document.documentElement.getBoundingClientRect(),r=e.getBoundingClientRect();return{behavior:t.behavior,left:r.left-n.left-(t.left||0),top:r.top-n.top-(t.top||0)}}const eu=()=>({left:window.pageXOffset,top:window.pageYOffset});function w2(e){let t;if("el"in e){const n=e.el,r=typeof n=="string"&&n.startsWith("#"),s=typeof n=="string"?r?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!s)return;t=b2(s,e)}else t=e;"scrollBehavior"in document.documentElement.style?window.scrollTo(t):window.scrollTo(t.left!=null?t.left:window.pageXOffset,t.top!=null?t.top:window.pageYOffset)}function mp(e,t){return(history.state?history.state.position-t:-1)+e}const Hc=new Map;function C2(e,t){Hc.set(e,t)}function x2(e){const t=Hc.get(e);return Hc.delete(e),t}let k2=()=>location.protocol+"//"+location.host;function ey(e,t){const{pathname:n,search:r,hash:s}=t,o=e.indexOf("#");if(o>-1){let a=s.includes(e.slice(o))?e.slice(o).length:1,l=s.slice(a);return l[0]!=="/"&&(l="/"+l),dp(l,"")}return dp(n,e)+r+s}function S2(e,t,n,r){let s=[],o=[],i=null;const a=({state:f})=>{const p=ey(e,location),h=n.value,_=t.value;let g=0;if(f){if(n.value=p,t.value=f,i&&i===h){i=null;return}g=_?f.position-_.position:0}else r(p);s.forEach(b=>{b(n.value,h,{delta:g,type:ki.pop,direction:g?g>0?ui.forward:ui.back:ui.unknown})})};function l(){i=n.value}function u(f){s.push(f);const p=()=>{const h=s.indexOf(f);h>-1&&s.splice(h,1)};return o.push(p),p}function d(){const{history:f}=window;!f.state||f.replaceState(bt({},f.state,{scroll:eu()}),"")}function m(){for(const f of o)f();o=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:u,destroy:m}}function pp(e,t,n,r=!1,s=!1){return{back:e,current:t,forward:n,replaced:r,position:window.history.length,scroll:s?eu():null}}function E2(e){const{history:t,location:n}=window,r={value:ey(e,n)},s={value:t.state};s.value||o(r.value,{back:null,current:r.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function o(l,u,d){const m=e.indexOf("#"),f=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+l:k2()+e+l;try{t[d?"replaceState":"pushState"](u,"",f),s.value=u}catch(p){console.error(p),n[d?"replace":"assign"](f)}}function i(l,u){const d=bt({},t.state,pp(s.value.back,l,s.value.forward,!0),u,{position:s.value.position});o(l,d,!0),r.value=l}function a(l,u){const d=bt({},s.value,t.state,{forward:l,scroll:eu()});o(d.current,d,!0);const m=bt({},pp(r.value,l,null),{position:d.position+1},u);o(l,m,!1),r.value=l}return{location:r,state:s,push:a,replace:i}}function $2(e){e=g2(e);const t=E2(e),n=S2(e,t.state,t.location,t.replace);function r(o,i=!0){i||n.pauseListeners(),history.go(o)}const s=bt({location:"",base:e,go:r,createHref:v2.bind(null,e)},t,n);return Object.defineProperty(s,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(s,"state",{enumerable:!0,get:()=>t.state.value}),s}function z2(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),$2(e)}function A2(e){return typeof e=="string"||e&&typeof e=="object"}function ty(e){return typeof e=="string"||typeof e=="symbol"}const Rr={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},ny=ko("nf");var hp;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(hp||(hp={}));function yo(e,t){return bt(new Error,{type:e,[ny]:!0},t)}function Lr(e,t){return e instanceof Error&&ny in e&&(t==null||!!(e.type&t))}const _p="[^/]+?",O2={sensitive:!1,strict:!1,start:!0,end:!0},T2=/[.+*?^${}()[\]/\\]/g;function P2(e,t){const n=bt({},O2,t),r=[];let s=n.start?"^":"";const o=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(s+="/");for(let m=0;m<u.length;m++){const f=u[m];let p=40+(n.sensitive?.25:0);if(f.type===0)m||(s+="/"),s+=f.value.replace(T2,"\\$&"),p+=40;else if(f.type===1){const{value:h,repeatable:_,optional:g,regexp:b}=f;o.push({name:h,repeatable:_,optional:g});const w=b||_p;if(w!==_p){p+=10;try{new RegExp(`(${w})`)}catch(x){throw new Error(`Invalid custom RegExp for param "${h}" (${w}): `+x.message)}}let S=_?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;m||(S=g&&u.length<2?`(?:/${S})`:"/"+S),g&&(S+="?"),s+=S,p+=20,g&&(p+=-8),_&&(p+=-20),w===".*"&&(p+=-50)}d.push(p)}r.push(d)}if(n.strict&&n.end){const u=r.length-1;r[u][r[u].length-1]+=.7000000000000001}n.strict||(s+="/?"),n.end?s+="$":n.strict&&(s+="(?:/|$)");const i=new RegExp(s,n.sensitive?"":"i");function a(u){const d=u.match(i),m={};if(!d)return null;for(let f=1;f<d.length;f++){const p=d[f]||"",h=o[f-1];m[h.name]=p&&h.repeatable?p.split("/"):p}return m}function l(u){let d="",m=!1;for(const f of e){(!m||!d.endsWith("/"))&&(d+="/"),m=!1;for(const p of f)if(p.type===0)d+=p.value;else if(p.type===1){const{value:h,repeatable:_,optional:g}=p,b=h in u?u[h]:"";if(Array.isArray(b)&&!_)throw new Error(`Provided param "${h}" is an array but it is not repeatable (* or + modifiers)`);const w=Array.isArray(b)?b.join("/"):b;if(!w)if(g)f.length<2&&e.length>1&&(d.endsWith("/")?d=d.slice(0,-1):m=!0);else throw new Error(`Missing required param "${h}"`);d+=w}}return d}return{re:i,score:r,keys:o,parse:a,stringify:l}}function D2(e,t){let n=0;for(;n<e.length&&n<t.length;){const r=t[n]-e[n];if(r)return r;n++}return e.length<t.length?e.length===1&&e[0]===40+40?-1:1:e.length>t.length?t.length===1&&t[0]===40+40?1:-1:0}function F2(e,t){let n=0;const r=e.score,s=t.score;for(;n<r.length&&n<s.length;){const o=D2(r[n],s[n]);if(o)return o;n++}return s.length-r.length}const I2={type:0,value:""},M2=/[a-zA-Z0-9_]/;function R2(e){if(!e)return[[]];if(e==="/")return[[I2]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(p){throw new Error(`ERR (${n})/"${u}": ${p}`)}let n=0,r=n;const s=[];let o;function i(){o&&s.push(o),o=[]}let a=0,l,u="",d="";function m(){!u||(n===0?o.push({type:0,value:u}):n===1||n===2||n===3?(o.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),o.push({type:1,value:u,regexp:d,repeatable:l==="*"||l==="+",optional:l==="*"||l==="?"})):t("Invalid state to consume buffer"),u="")}function f(){u+=l}for(;a<e.length;){if(l=e[a++],l==="\\"&&n!==2){r=n,n=4;continue}switch(n){case 0:l==="/"?(u&&m(),i()):l===":"?(m(),n=1):f();break;case 4:f(),n=r;break;case 1:l==="("?n=2:M2.test(l)?f():(m(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--);break;case 2:l===")"?d[d.length-1]=="\\"?d=d.slice(0,-1)+l:n=3:d+=l;break;case 3:m(),n=0,l!=="*"&&l!=="?"&&l!=="+"&&a--,d="";break;default:t("Unknown state");break}}return n===2&&t(`Unfinished custom RegExp for param "${u}"`),m(),i(),s}function L2(e,t,n){const r=P2(R2(e.path),n),s=bt(r,{record:e,parent:t,children:[],alias:[]});return t&&!s.record.aliasOf==!t.record.aliasOf&&t.children.push(s),s}function N2(e,t){const n=[],r=new Map;t=yp({strict:!1,end:!0,sensitive:!1},t);function s(d){return r.get(d)}function o(d,m,f){const p=!f,h=j2(d);h.aliasOf=f&&f.record;const _=yp(t,d),g=[h];if("alias"in d){const S=typeof d.alias=="string"?[d.alias]:d.alias;for(const x of S)g.push(bt({},h,{components:f?f.record.components:h.components,path:x,aliasOf:f?f.record:h}))}let b,w;for(const S of g){const{path:x}=S;if(m&&x[0]!=="/"){const $=m.record.path,A=$[$.length-1]==="/"?"":"/";S.path=m.record.path+(x&&A+x)}if(b=L2(S,m,_),f?f.alias.push(b):(w=w||b,w!==b&&w.alias.push(b),p&&d.name&&!gp(b)&&i(d.name)),"children"in h){const $=h.children;for(let A=0;A<$.length;A++)o($[A],b,f&&f.children[A])}f=f||b,l(b)}return w?()=>{i(w)}:li}function i(d){if(ty(d)){const m=r.get(d);m&&(r.delete(d),n.splice(n.indexOf(m),1),m.children.forEach(i),m.alias.forEach(i))}else{const m=n.indexOf(d);m>-1&&(n.splice(m,1),d.record.name&&r.delete(d.record.name),d.children.forEach(i),d.alias.forEach(i))}}function a(){return n}function l(d){let m=0;for(;m<n.length&&F2(d,n[m])>=0&&(d.record.path!==n[m].record.path||!ry(d,n[m]));)m++;n.splice(m,0,d),d.record.name&&!gp(d)&&r.set(d.record.name,d)}function u(d,m){let f,p={},h,_;if("name"in d&&d.name){if(f=r.get(d.name),!f)throw yo(1,{location:d});_=f.record.name,p=bt(V2(m.params,f.keys.filter(w=>!w.optional).map(w=>w.name)),d.params),h=f.stringify(p)}else if("path"in d)h=d.path,f=n.find(w=>w.re.test(h)),f&&(p=f.parse(h),_=f.record.name);else{if(f=m.name?r.get(m.name):n.find(w=>w.re.test(m.path)),!f)throw yo(1,{location:d,currentLocation:m});_=f.record.name,p=bt({},m.params,d.params),h=f.stringify(p)}const g=[];let b=f;for(;b;)g.unshift(b.record),b=b.parent;return{name:_,path:h,params:p,matched:g,meta:H2(g)}}return e.forEach(d=>o(d)),{addRoute:o,resolve:u,removeRoute:i,getRoutes:a,getRecordMatcher:s}}function V2(e,t){const n={};for(const r of t)r in e&&(n[r]=e[r]);return n}function j2(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:B2(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function B2(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const r in e.components)t[r]=typeof n=="boolean"?n:n[r];return t}function gp(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function H2(e){return e.reduce((t,n)=>bt(t,n.meta),{})}function yp(e,t){const n={};for(const r in e)n[r]=r in t?t[r]:e[r];return n}function ry(e,t){return t.children.some(n=>n===e||ry(e,n))}const sy=/#/g,U2=/&/g,q2=/\//g,W2=/=/g,G2=/\?/g,oy=/\+/g,K2=/%5B/g,Y2=/%5D/g,iy=/%5E/g,Z2=/%60/g,ay=/%7B/g,J2=/%7C/g,ly=/%7D/g,X2=/%20/g;function af(e){return encodeURI(""+e).replace(J2,"|").replace(K2,"[").replace(Y2,"]")}function Q2(e){return af(e).replace(ay,"{").replace(ly,"}").replace(iy,"^")}function Uc(e){return af(e).replace(oy,"%2B").replace(X2,"+").replace(sy,"%23").replace(U2,"%26").replace(Z2,"`").replace(ay,"{").replace(ly,"}").replace(iy,"^")}function ek(e){return Uc(e).replace(W2,"%3D")}function tk(e){return af(e).replace(sy,"%23").replace(G2,"%3F")}function nk(e){return e==null?"":tk(e).replace(q2,"%2F")}function gl(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function rk(e){const t={};if(e===""||e==="?")return t;const r=(e[0]==="?"?e.slice(1):e).split("&");for(let s=0;s<r.length;++s){const o=r[s].replace(oy," "),i=o.indexOf("="),a=gl(i<0?o:o.slice(0,i)),l=i<0?null:gl(o.slice(i+1));if(a in t){let u=t[a];Array.isArray(u)||(u=t[a]=[u]),u.push(l)}else t[a]=l}return t}function vp(e){let t="";for(let n in e){const r=e[n];if(n=ek(n),r==null){r!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(r)?r.map(o=>o&&Uc(o)):[r&&Uc(r)]).forEach(o=>{o!==void 0&&(t+=(t.length?"&":"")+n,o!=null&&(t+="="+o))})}return t}function sk(e){const t={};for(const n in e){const r=e[n];r!==void 0&&(t[n]=Array.isArray(r)?r.map(s=>s==null?null:""+s):r==null?r:""+r)}return t}function Do(){let e=[];function t(r){return e.push(r),()=>{const s=e.indexOf(r);s>-1&&e.splice(s,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Br(e,t,n,r,s){const o=r&&(r.enterCallbacks[s]=r.enterCallbacks[s]||[]);return()=>new Promise((i,a)=>{const l=m=>{m===!1?a(yo(4,{from:n,to:t})):m instanceof Error?a(m):A2(m)?a(yo(2,{from:t,to:m})):(o&&r.enterCallbacks[s]===o&&typeof m=="function"&&o.push(m),i())},u=e.call(r&&r.instances[s],t,n,l);let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(m=>a(m))})}function Nu(e,t,n,r){const s=[];for(const o of e)for(const i in o.components){let a=o.components[i];if(!(t!=="beforeRouteEnter"&&!o.instances[i]))if(ok(a)){const u=(a.__vccOpts||a)[t];u&&s.push(Br(u,n,r,o,i))}else{let l=a();s.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${i}" at "${o.path}"`));const d=c2(u)?u.default:u;o.components[i]=d;const f=(d.__vccOpts||d)[t];return f&&Br(f,n,r,o,i)()}))}}return s}function ok(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function bp(e){const t=rr(of),n=rr(Xg),r=At(()=>t.resolve(so(e.to))),s=At(()=>{const{matched:l}=r.value,{length:u}=l,d=l[u-1],m=n.matched;if(!d||!m.length)return-1;const f=m.findIndex(go.bind(null,d));if(f>-1)return f;const p=wp(l[u-2]);return u>1&&wp(d)===p&&m[m.length-1].path!==p?m.findIndex(go.bind(null,l[u-2])):f}),o=At(()=>s.value>-1&&uk(n.params,r.value.params)),i=At(()=>s.value>-1&&s.value===n.matched.length-1&&Qg(n.params,r.value.params));function a(l={}){return lk(l)?t[so(e.replace)?"replace":"push"](so(e.to)).catch(li):Promise.resolve()}return{route:r,href:At(()=>r.value.href),isActive:o,isExactActive:i,navigate:a}}const ik=Ti({name:"RouterLink",props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:bp,setup(e,{slots:t}){const n=As(bp(e)),{options:r}=rr(of),s=At(()=>({[Cp(e.activeClass,r.linkActiveClass,"router-link-active")]:n.isActive,[Cp(e.exactActiveClass,r.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const o=t.default&&t.default(n);return e.custom?o:Cn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:s.value},o)}}}),ak=ik;function lk(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){const t=e.currentTarget.getAttribute("target");if(/\b_blank\b/i.test(t))return}return e.preventDefault&&e.preventDefault(),!0}}function uk(e,t){for(const n in t){const r=t[n],s=e[n];if(typeof r=="string"){if(r!==s)return!1}else if(!Array.isArray(s)||s.length!==r.length||r.some((o,i)=>o!==s[i]))return!1}return!0}function wp(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Cp=(e,t,n)=>e!=null?e:t!=null?t:n,ck=Ti({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const r=rr(Bc),s=At(()=>e.route||r.value),o=rr(cp,0),i=At(()=>s.value.matched[o]);si(cp,o+1),si(u2,i),si(Bc,s);const a=wn();return Mt(()=>[a.value,i.value,e.name],([l,u,d],[m,f,p])=>{u&&(u.instances[d]=l,f&&f!==u&&l&&l===m&&(u.leaveGuards.size||(u.leaveGuards=f.leaveGuards),u.updateGuards.size||(u.updateGuards=f.updateGuards))),l&&u&&(!f||!go(u,f)||!m)&&(u.enterCallbacks[d]||[]).forEach(h=>h(l))},{flush:"post"}),()=>{const l=s.value,u=i.value,d=u&&u.components[e.name],m=e.name;if(!d)return xp(n.default,{Component:d,route:l});const f=u.props[e.name],p=f?f===!0?l.params:typeof f=="function"?f(l):f:null,_=Cn(d,bt({},p,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[m]=null)},ref:a}));return xp(n.default,{Component:_,route:l})||_}}});function xp(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const dk=ck;function fk(e){const t=N2(e.routes,e),n=e.parseQuery||rk,r=e.stringifyQuery||vp,s=e.history,o=Do(),i=Do(),a=Do(),l=r_(Rr);let u=Rr;Zs&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Ru.bind(null,H=>""+H),m=Ru.bind(null,nk),f=Ru.bind(null,gl);function p(H,oe){let se,be;return ty(H)?(se=t.getRecordMatcher(H),be=oe):be=H,t.addRoute(be,se)}function h(H){const oe=t.getRecordMatcher(H);oe&&t.removeRoute(oe)}function _(){return t.getRoutes().map(H=>H.record)}function g(H){return!!t.getRecordMatcher(H)}function b(H,oe){if(oe=bt({},oe||l.value),typeof H=="string"){const Ae=Lu(n,H,oe.path),z=t.resolve({path:Ae.path},oe),R=s.createHref(Ae.fullPath);return bt(Ae,z,{params:f(z.params),hash:gl(Ae.hash),redirectedFrom:void 0,href:R})}let se;if("path"in H)se=bt({},H,{path:Lu(n,H.path,oe.path).path});else{const Ae=bt({},H.params);for(const z in Ae)Ae[z]==null&&delete Ae[z];se=bt({},H,{params:m(H.params)}),oe.params=m(oe.params)}const be=t.resolve(se,oe),Ve=H.hash||"";be.params=d(f(be.params));const Ie=m2(r,bt({},H,{hash:Q2(Ve),path:be.path})),$e=s.createHref(Ie);return bt({fullPath:Ie,hash:Ve,query:r===vp?sk(H.query):H.query||{}},be,{redirectedFrom:void 0,href:$e})}function w(H){return typeof H=="string"?Lu(n,H,l.value.path):bt({},H)}function S(H,oe){if(u!==H)return yo(8,{from:oe,to:H})}function x(H){return I(H)}function $(H){return x(bt(w(H),{replace:!0}))}function A(H){const oe=H.matched[H.matched.length-1];if(oe&&oe.redirect){const{redirect:se}=oe;let be=typeof se=="function"?se(H):se;return typeof be=="string"&&(be=be.includes("?")||be.includes("#")?be=w(be):{path:be},be.params={}),bt({query:H.query,hash:H.hash,params:H.params},be)}}function I(H,oe){const se=u=b(H),be=l.value,Ve=H.state,Ie=H.force,$e=H.replace===!0,Ae=A(se);if(Ae)return I(bt(w(Ae),{state:Ve,force:Ie,replace:$e}),oe||se);const z=se;z.redirectedFrom=oe;let R;return!Ie&&p2(r,be,se)&&(R=yo(16,{to:z,from:be}),Be(be,be,!0,!1)),(R?Promise.resolve(R):O(z,be)).catch(Z=>Lr(Z)?Lr(Z,2)?Z:Re(Z):le(Z,z,be)).then(Z=>{if(Z){if(Lr(Z,2))return I(bt(w(Z.to),{state:Ve,force:Ie,replace:$e}),oe||z)}else Z=G(z,be,!0,$e,Ve);return N(z,be,Z),Z})}function V(H,oe){const se=S(H,oe);return se?Promise.reject(se):Promise.resolve()}function O(H,oe){let se;const[be,Ve,Ie]=mk(H,oe);se=Nu(be.reverse(),"beforeRouteLeave",H,oe);for(const Ae of be)Ae.leaveGuards.forEach(z=>{se.push(Br(z,H,oe))});const $e=V.bind(null,H,oe);return se.push($e),Vs(se).then(()=>{se=[];for(const Ae of o.list())se.push(Br(Ae,H,oe));return se.push($e),Vs(se)}).then(()=>{se=Nu(Ve,"beforeRouteUpdate",H,oe);for(const Ae of Ve)Ae.updateGuards.forEach(z=>{se.push(Br(z,H,oe))});return se.push($e),Vs(se)}).then(()=>{se=[];for(const Ae of H.matched)if(Ae.beforeEnter&&!oe.matched.includes(Ae))if(Array.isArray(Ae.beforeEnter))for(const z of Ae.beforeEnter)se.push(Br(z,H,oe));else se.push(Br(Ae.beforeEnter,H,oe));return se.push($e),Vs(se)}).then(()=>(H.matched.forEach(Ae=>Ae.enterCallbacks={}),se=Nu(Ie,"beforeRouteEnter",H,oe),se.push($e),Vs(se))).then(()=>{se=[];for(const Ae of i.list())se.push(Br(Ae,H,oe));return se.push($e),Vs(se)}).catch(Ae=>Lr(Ae,8)?Ae:Promise.reject(Ae))}function N(H,oe,se){for(const be of a.list())be(H,oe,se)}function G(H,oe,se,be,Ve){const Ie=S(H,oe);if(Ie)return Ie;const $e=oe===Rr,Ae=Zs?history.state:{};se&&(be||$e?s.replace(H.fullPath,bt({scroll:$e&&Ae&&Ae.scroll},Ve)):s.push(H.fullPath,Ve)),l.value=H,Be(H,oe,se,$e),Re()}let F;function B(){F||(F=s.listen((H,oe,se)=>{const be=b(H),Ve=A(be);if(Ve){I(bt(Ve,{replace:!0}),be).catch(li);return}u=be;const Ie=l.value;Zs&&C2(mp(Ie.fullPath,se.delta),eu()),O(be,Ie).catch($e=>Lr($e,12)?$e:Lr($e,2)?(I($e.to,be).then(Ae=>{Lr(Ae,20)&&!se.delta&&se.type===ki.pop&&s.go(-1,!1)}).catch(li),Promise.reject()):(se.delta&&s.go(-se.delta,!1),le($e,be,Ie))).then($e=>{$e=$e||G(be,Ie,!1),$e&&(se.delta?s.go(-se.delta,!1):se.type===ki.pop&&Lr($e,20)&&s.go(-1,!1)),N(be,Ie,$e)}).catch(li)}))}let Y=Do(),de=Do(),te;function le(H,oe,se){Re(H);const be=de.list();return be.length?be.forEach(Ve=>Ve(H,oe,se)):console.error(H),Promise.reject(H)}function ge(){return te&&l.value!==Rr?Promise.resolve():new Promise((H,oe)=>{Y.add([H,oe])})}function Re(H){return te||(te=!H,B(),Y.list().forEach(([oe,se])=>H?se(H):oe()),Y.reset()),H}function Be(H,oe,se,be){const{scrollBehavior:Ve}=e;if(!Zs||!Ve)return Promise.resolve();const Ie=!se&&x2(mp(H.fullPath,0))||(be||!se)&&history.state&&history.state.scroll||null;return Ll().then(()=>Ve(H,oe,Ie)).then($e=>$e&&w2($e)).catch($e=>le($e,H,oe))}const he=H=>s.go(H);let X;const fe=new Set;return{currentRoute:l,addRoute:p,removeRoute:h,hasRoute:g,getRoutes:_,resolve:b,options:e,push:x,replace:$,go:he,back:()=>he(-1),forward:()=>he(1),beforeEach:o.add,beforeResolve:i.add,afterEach:a.add,onError:de.add,isReady:ge,install(H){const oe=this;H.component("RouterLink",ak),H.component("RouterView",dk),H.config.globalProperties.$router=oe,Object.defineProperty(H.config.globalProperties,"$route",{enumerable:!0,get:()=>so(l)}),Zs&&!X&&l.value===Rr&&(X=!0,x(s.location).catch(Ve=>{}));const se={};for(const Ve in Rr)se[Ve]=At(()=>l.value[Ve]);H.provide(of,oe),H.provide(Xg,As(se)),H.provide(Bc,l);const be=H.unmount;fe.add(H),H.unmount=function(){fe.delete(H),fe.size<1&&(u=Rr,F&&F(),F=null,l.value=Rr,X=!1,te=!1),be()}}}}function Vs(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function mk(e,t){const n=[],r=[],s=[],o=Math.max(t.matched.length,e.matched.length);for(let i=0;i<o;i++){const a=t.matched[i];a&&(e.matched.find(u=>go(u,a))?r.push(a):n.push(a));const l=e.matched[i];l&&(t.matched.find(u=>go(u,l))||s.push(l))}return[n,r,s]}var ve=(e,t)=>{const n=e.__vccOpts||e;for(const[r,s]of t)n[r]=s;return n};const pk={name:"ContentWithHeading",data(){return{options_visible:!1}},mounted(){this.$slots.options&&(this.observer=new IntersectionObserver(this.onElementObserved,{rootMargin:"-82px 0px 0px 0px",threshold:1}),this.observer.observe(this.$refs.options_ref))},methods:{onElementObserved(e){e.forEach(({target:t,isIntersecting:n})=>{this.options_visible=n})},scroll_to_top:function(){window.scrollTo({top:0,behavior:"smooth"})},scroll_to_content:function(){this.$route.meta.has_tabs?this.$scrollTo("#top",{offset:-140}):this.$scrollTo("#top",{offset:-110})},visibilityChanged:function(e){this.options_visible=e}}},hk={class:"section fd-content"},_k={class:"container"},gk={class:"columns is-centered"},yk={class:"column is-four-fifths"},vk={key:0},bk={ref:"options_ref",style:{height:"1px"}},wk={class:"buttons is-centered",style:{"margin-bottom":"6px","margin-top":"16px"}},Ck={id:"top",class:"level"},xk={class:"level-left"},kk={class:"level-item has-text-centered-mobile"},Sk={class:"level-right has-text-centered-mobile"},Ek={style:{"margin-top":"16px"}};function $k(e,t,n,r,s,o){const i=T("mdicon");return E(),D("section",hk,[c("div",_k,[c("div",gk,[c("div",yk,[e.$slots.options?(E(),D("section",vk,[c("div",bk,null,512),kt(e.$slots,"options"),c("nav",wk,[s.options_visible?(E(),D("a",{key:1,class:"button is-small is-white",onClick:t[1]||(t[1]=(...a)=>o.scroll_to_content&&o.scroll_to_content(...a))},[C(i,{class:"icon is-small",name:"chevron-up",size:"16"})])):(E(),D("a",{key:0,class:"button is-small is-white",onClick:t[0]||(t[0]=(...a)=>o.scroll_to_top&&o.scroll_to_top(...a))},[C(i,{class:"icon is-small",name:"chevron-down",size:"16"})]))])])):J("",!0),c("div",{class:Ye({"fd-content-with-option":e.$slots.options})},[c("nav",Ck,[c("div",xk,[c("div",kk,[c("div",null,[kt(e.$slots,"heading-left")])])]),c("div",Sk,[kt(e.$slots,"heading-right")])]),kt(e.$slots,"content"),c("div",Ek,[kt(e.$slots,"footer")])],2)])])])])}var pt=ve(pk,[["render",$k]]),an=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function uy(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function cy(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var r=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,r.get?r:{enumerable:!0,get:function(){return e[n]}})}),t}var lf={exports:{}},dy=function(t,n){return function(){for(var s=new Array(arguments.length),o=0;o<s.length;o++)s[o]=arguments[o];return t.apply(n,s)}},zk=dy,is=Object.prototype.toString;function uf(e){return Array.isArray(e)}function qc(e){return typeof e=="undefined"}function Ak(e){return e!==null&&!qc(e)&&e.constructor!==null&&!qc(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}function fy(e){return is.call(e)==="[object ArrayBuffer]"}function Ok(e){return is.call(e)==="[object FormData]"}function Tk(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&fy(e.buffer),t}function Pk(e){return typeof e=="string"}function Dk(e){return typeof e=="number"}function my(e){return e!==null&&typeof e=="object"}function Za(e){if(is.call(e)!=="[object Object]")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}function Fk(e){return is.call(e)==="[object Date]"}function Ik(e){return is.call(e)==="[object File]"}function Mk(e){return is.call(e)==="[object Blob]"}function py(e){return is.call(e)==="[object Function]"}function Rk(e){return my(e)&&py(e.pipe)}function Lk(e){return is.call(e)==="[object URLSearchParams]"}function Nk(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function Vk(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function cf(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),uf(e))for(var n=0,r=e.length;n<r;n++)t.call(null,e[n],n,e);else for(var s in e)Object.prototype.hasOwnProperty.call(e,s)&&t.call(null,e[s],s,e)}function Wc(){var e={};function t(s,o){Za(e[o])&&Za(s)?e[o]=Wc(e[o],s):Za(s)?e[o]=Wc({},s):uf(s)?e[o]=s.slice():e[o]=s}for(var n=0,r=arguments.length;n<r;n++)cf(arguments[n],t);return e}function jk(e,t,n){return cf(t,function(s,o){n&&typeof s=="function"?e[o]=zk(s,n):e[o]=s}),e}function Bk(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}var Sn={isArray:uf,isArrayBuffer:fy,isBuffer:Ak,isFormData:Ok,isArrayBufferView:Tk,isString:Pk,isNumber:Dk,isObject:my,isPlainObject:Za,isUndefined:qc,isDate:Fk,isFile:Ik,isBlob:Mk,isFunction:py,isStream:Rk,isURLSearchParams:Lk,isStandardBrowserEnv:Vk,forEach:cf,merge:Wc,extend:jk,trim:Nk,stripBOM:Bk},js=Sn;function kp(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var hy=function(t,n,r){if(!n)return t;var s;if(r)s=r(n);else if(js.isURLSearchParams(n))s=n.toString();else{var o=[];js.forEach(n,function(l,u){l===null||typeof l=="undefined"||(js.isArray(l)?u=u+"[]":l=[l],js.forEach(l,function(m){js.isDate(m)?m=m.toISOString():js.isObject(m)&&(m=JSON.stringify(m)),o.push(kp(u)+"="+kp(m))}))}),s=o.join("&")}if(s){var i=t.indexOf("#");i!==-1&&(t=t.slice(0,i)),t+=(t.indexOf("?")===-1?"?":"&")+s}return t},Hk=Sn;function tu(){this.handlers=[]}tu.prototype.use=function(t,n,r){return this.handlers.push({fulfilled:t,rejected:n,synchronous:r?r.synchronous:!1,runWhen:r?r.runWhen:null}),this.handlers.length-1};tu.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};tu.prototype.forEach=function(t){Hk.forEach(this.handlers,function(r){r!==null&&t(r)})};var Uk=tu,qk=Sn,Wk=function(t,n){qk.forEach(t,function(s,o){o!==n&&o.toUpperCase()===n.toUpperCase()&&(t[n]=s,delete t[o])})},_y=function(t,n,r,s,o){return t.config=n,r&&(t.code=r),t.request=s,t.response=o,t.isAxiosError=!0,t.toJSON=function(){return{message:this.message,name:this.name,description:this.description,number:this.number,fileName:this.fileName,lineNumber:this.lineNumber,columnNumber:this.columnNumber,stack:this.stack,config:this.config,code:this.code,status:this.response&&this.response.status?this.response.status:null}},t},gy={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Gk=_y,yy=function(t,n,r,s,o){var i=new Error(t);return Gk(i,n,r,s,o)},Kk=yy,Yk=function(t,n,r){var s=r.config.validateStatus;!r.status||!s||s(r.status)?t(r):n(Kk("Request failed with status code "+r.status,r.config,null,r.request,r))},sa=Sn,Zk=sa.isStandardBrowserEnv()?function(){return{write:function(n,r,s,o,i,a){var l=[];l.push(n+"="+encodeURIComponent(r)),sa.isNumber(s)&&l.push("expires="+new Date(s).toGMTString()),sa.isString(o)&&l.push("path="+o),sa.isString(i)&&l.push("domain="+i),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var r=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return r?decodeURIComponent(r[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),Jk=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},Xk=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},Qk=Jk,eS=Xk,tS=function(t,n){return t&&!Qk(n)?eS(t,n):n},Vu=Sn,nS=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"],rS=function(t){var n={},r,s,o;return t&&Vu.forEach(t.split(`
`),function(a){if(o=a.indexOf(":"),r=Vu.trim(a.substr(0,o)).toLowerCase(),s=Vu.trim(a.substr(o+1)),r){if(n[r]&&nS.indexOf(r)>=0)return;r==="set-cookie"?n[r]=(n[r]?n[r]:[]).concat([s]):n[r]=n[r]?n[r]+", "+s:s}}),n},Sp=Sn,sS=Sp.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),r;function s(o){var i=o;return t&&(n.setAttribute("href",i),i=n.href),n.setAttribute("href",i),{href:n.href,protocol:n.protocol?n.protocol.replace(/:$/,""):"",host:n.host,search:n.search?n.search.replace(/^\?/,""):"",hash:n.hash?n.hash.replace(/^#/,""):"",hostname:n.hostname,port:n.port,pathname:n.pathname.charAt(0)==="/"?n.pathname:"/"+n.pathname}}return r=s(window.location.href),function(i){var a=Sp.isString(i)?s(i):i;return a.protocol===r.protocol&&a.host===r.host}}():function(){return function(){return!0}}();function df(e){this.message=e}df.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")};df.prototype.__CANCEL__=!0;var nu=df,oa=Sn,oS=Yk,iS=Zk,aS=hy,lS=tS,uS=rS,cS=sS,ju=yy,dS=gy,fS=nu,Ep=function(t){return new Promise(function(r,s){var o=t.data,i=t.headers,a=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}oa.isFormData(o)&&delete i["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";i.Authorization="Basic "+btoa(m+":"+f)}var p=lS(t.baseURL,t.url);d.open(t.method.toUpperCase(),aS(p,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function h(){if(!!d){var g="getAllResponseHeaders"in d?uS(d.getAllResponseHeaders()):null,b=!a||a==="text"||a==="json"?d.responseText:d.response,w={data:b,status:d.status,statusText:d.statusText,headers:g,config:t,request:d};oS(function(x){r(x),u()},function(x){s(x),u()},w),d=null}}if("onloadend"in d?d.onloadend=h:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(h)},d.onabort=function(){!d||(s(ju("Request aborted",t,"ECONNABORTED",d)),d=null)},d.onerror=function(){s(ju("Network Error",t,null,d)),d=null},d.ontimeout=function(){var b=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",w=t.transitional||dS;t.timeoutErrorMessage&&(b=t.timeoutErrorMessage),s(ju(b,t,w.clarifyTimeoutError?"ETIMEDOUT":"ECONNABORTED",d)),d=null},oa.isStandardBrowserEnv()){var _=(t.withCredentials||cS(p))&&t.xsrfCookieName?iS.read(t.xsrfCookieName):void 0;_&&(i[t.xsrfHeaderName]=_)}"setRequestHeader"in d&&oa.forEach(i,function(b,w){typeof o=="undefined"&&w.toLowerCase()==="content-type"?delete i[w]:d.setRequestHeader(w,b)}),oa.isUndefined(t.withCredentials)||(d.withCredentials=!!t.withCredentials),a&&a!=="json"&&(d.responseType=t.responseType),typeof t.onDownloadProgress=="function"&&d.addEventListener("progress",t.onDownloadProgress),typeof t.onUploadProgress=="function"&&d.upload&&d.upload.addEventListener("progress",t.onUploadProgress),(t.cancelToken||t.signal)&&(l=function(g){!d||(s(!g||g&&g.type?new fS("canceled"):g),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),o||(o=null),d.send(o)})},Qt=Sn,$p=Wk,mS=_y,pS=gy,hS={"Content-Type":"application/x-www-form-urlencoded"};function zp(e,t){!Qt.isUndefined(e)&&Qt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function _S(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Ep),e}function gS(e,t,n){if(Qt.isString(e))try{return(t||JSON.parse)(e),Qt.trim(e)}catch(r){if(r.name!=="SyntaxError")throw r}return(n||JSON.stringify)(e)}var ru={transitional:pS,adapter:_S(),transformRequest:[function(t,n){return $p(n,"Accept"),$p(n,"Content-Type"),Qt.isFormData(t)||Qt.isArrayBuffer(t)||Qt.isBuffer(t)||Qt.isStream(t)||Qt.isFile(t)||Qt.isBlob(t)?t:Qt.isArrayBufferView(t)?t.buffer:Qt.isURLSearchParams(t)?(zp(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):Qt.isObject(t)||n&&n["Content-Type"]==="application/json"?(zp(n,"application/json"),gS(t)):t}],transformResponse:[function(t){var n=this.transitional||ru.transitional,r=n&&n.silentJSONParsing,s=n&&n.forcedJSONParsing,o=!r&&this.responseType==="json";if(o||s&&Qt.isString(t)&&t.length)try{return JSON.parse(t)}catch(i){if(o)throw i.name==="SyntaxError"?mS(i,this,"E_JSON_PARSE"):i}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Qt.forEach(["delete","get","head"],function(t){ru.headers[t]={}});Qt.forEach(["post","put","patch"],function(t){ru.headers[t]=Qt.merge(hS)});var ff=ru,yS=Sn,vS=ff,bS=function(t,n,r){var s=this||vS;return yS.forEach(r,function(i){t=i.call(s,t,n)}),t},vy=function(t){return!!(t&&t.__CANCEL__)},Ap=Sn,Bu=bS,wS=vy,CS=ff,xS=nu;function Hu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new xS("canceled")}var kS=function(t){Hu(t),t.headers=t.headers||{},t.data=Bu.call(t,t.data,t.headers,t.transformRequest),t.headers=Ap.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Ap.forEach(["delete","get","head","post","put","patch","common"],function(s){delete t.headers[s]});var n=t.adapter||CS.adapter;return n(t).then(function(s){return Hu(t),s.data=Bu.call(t,s.data,s.headers,t.transformResponse),s},function(s){return wS(s)||(Hu(t),s&&s.response&&(s.response.data=Bu.call(t,s.response.data,s.response.headers,t.transformResponse))),Promise.reject(s)})},En=Sn,by=function(t,n){n=n||{};var r={};function s(d,m){return En.isPlainObject(d)&&En.isPlainObject(m)?En.merge(d,m):En.isPlainObject(m)?En.merge({},m):En.isArray(m)?m.slice():m}function o(d){if(En.isUndefined(n[d])){if(!En.isUndefined(t[d]))return s(void 0,t[d])}else return s(t[d],n[d])}function i(d){if(!En.isUndefined(n[d]))return s(void 0,n[d])}function a(d){if(En.isUndefined(n[d])){if(!En.isUndefined(t[d]))return s(void 0,t[d])}else return s(void 0,n[d])}function l(d){if(d in n)return s(t[d],n[d]);if(d in t)return s(void 0,t[d])}var u={url:i,method:i,data:i,baseURL:a,transformRequest:a,transformResponse:a,paramsSerializer:a,timeout:a,timeoutMessage:a,withCredentials:a,adapter:a,responseType:a,xsrfCookieName:a,xsrfHeaderName:a,onUploadProgress:a,onDownloadProgress:a,decompress:a,maxContentLength:a,maxBodyLength:a,transport:a,httpAgent:a,httpsAgent:a,cancelToken:a,socketPath:a,responseEncoding:a,validateStatus:l};return En.forEach(Object.keys(t).concat(Object.keys(n)),function(m){var f=u[m]||o,p=f(m);En.isUndefined(p)&&f!==l||(r[m]=p)}),r},wy={version:"0.26.1"},SS=wy.version,mf={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){mf[e]=function(r){return typeof r===e||"a"+(t<1?"n ":" ")+e}});var Op={};mf.transitional=function(t,n,r){function s(o,i){return"[Axios v"+SS+"] Transitional option '"+o+"'"+i+(r?". "+r:"")}return function(o,i,a){if(t===!1)throw new Error(s(i," has been removed"+(n?" in "+n:"")));return n&&!Op[i]&&(Op[i]=!0,console.warn(s(i," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(o,i,a):!0}};function ES(e,t,n){if(typeof e!="object")throw new TypeError("options must be an object");for(var r=Object.keys(e),s=r.length;s-- >0;){var o=r[s],i=t[o];if(i){var a=e[o],l=a===void 0||i(a,o,e);if(l!==!0)throw new TypeError("option "+o+" must be "+l);continue}if(n!==!0)throw Error("Unknown option "+o)}}var $S={assertOptions:ES,validators:mf},Cy=Sn,zS=hy,Tp=Uk,Pp=kS,su=by,xy=$S,Bs=xy.validators;function Mi(e){this.defaults=e,this.interceptors={request:new Tp,response:new Tp}}Mi.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=su(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var r=n.transitional;r!==void 0&&xy.assertOptions(r,{silentJSONParsing:Bs.transitional(Bs.boolean),forcedJSONParsing:Bs.transitional(Bs.boolean),clarifyTimeoutError:Bs.transitional(Bs.boolean)},!1);var s=[],o=!0;this.interceptors.request.forEach(function(p){typeof p.runWhen=="function"&&p.runWhen(n)===!1||(o=o&&p.synchronous,s.unshift(p.fulfilled,p.rejected))});var i=[];this.interceptors.response.forEach(function(p){i.push(p.fulfilled,p.rejected)});var a;if(!o){var l=[Pp,void 0];for(Array.prototype.unshift.apply(l,s),l=l.concat(i),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var u=n;s.length;){var d=s.shift(),m=s.shift();try{u=d(u)}catch(f){m(f);break}}try{a=Pp(u)}catch(f){return Promise.reject(f)}for(;i.length;)a=a.then(i.shift(),i.shift());return a};Mi.prototype.getUri=function(t){return t=su(this.defaults,t),zS(t.url,t.params,t.paramsSerializer).replace(/^\?/,"")};Cy.forEach(["delete","get","head","options"],function(t){Mi.prototype[t]=function(n,r){return this.request(su(r||{},{method:t,url:n,data:(r||{}).data}))}});Cy.forEach(["post","put","patch"],function(t){Mi.prototype[t]=function(n,r,s){return this.request(su(s||{},{method:t,url:n,data:r}))}});var AS=Mi,OS=nu;function vo(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(s){t=s});var n=this;this.promise.then(function(r){if(!!n._listeners){var s,o=n._listeners.length;for(s=0;s<o;s++)n._listeners[s](r);n._listeners=null}}),this.promise.then=function(r){var s,o=new Promise(function(i){n.subscribe(i),s=i}).then(r);return o.cancel=function(){n.unsubscribe(s)},o},e(function(s){n.reason||(n.reason=new OS(s),t(n.reason))})}vo.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};vo.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};vo.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};vo.source=function(){var t,n=new vo(function(s){t=s});return{token:n,cancel:t}};var TS=vo,PS=function(t){return function(r){return t.apply(null,r)}},DS=Sn,FS=function(t){return DS.isObject(t)&&t.isAxiosError===!0},Dp=Sn,IS=dy,Ja=AS,MS=by,RS=ff;function ky(e){var t=new Ja(e),n=IS(Ja.prototype.request,t);return Dp.extend(n,Ja.prototype,t),Dp.extend(n,t),n.create=function(s){return ky(MS(e,s))},n}var _r=ky(RS);_r.Axios=Ja;_r.Cancel=nu;_r.CancelToken=TS;_r.isCancel=vy;_r.VERSION=wy.version;_r.all=function(t){return Promise.all(t)};_r.spread=PS;_r.isAxiosError=FS;lf.exports=_r;lf.exports.default=_r;var Oe=lf.exports;Oe.interceptors.response.use(function(e){return e},function(e){return e.request.status&&e.request.responseURL&&at.dispatch("add_notification",{text:this.$t("server.request-failed",{status:e.request.status,cause:e.request.statusText,url:e.request.responseURL}),type:"danger"}),Promise.reject(e)});var K={config(){return Oe.get("./api/config")},settings(){return Oe.get("./api/settings")},settings_update(e,t){return Oe.put("./api/settings/"+e+"/"+t.name,t)},library_stats(){return Oe.get("./api/library")},library_update(e){const t={};return e&&(t.scan_kind=e),Oe.put("./api/update",void 0,{params:t})},library_rescan(e){const t={};return e&&(t.scan_kind=e),Oe.put("./api/rescan",void 0,{params:t})},library_count(e){return Oe.get("./api/library/count?expression="+e)},queue(){return Oe.get("./api/queue")},queue_clear(){return Oe.put("./api/queue/clear")},queue_remove(e){return Oe.delete("./api/queue/items/"+e)},queue_move(e,t){return Oe.put("./api/queue/items/"+e+"?new_position="+t)},queue_add(e){return Oe.post("./api/queue/items/add?uris="+e).then(t=>(at.dispatch("add_notification",{text:this.$t("server.appended-tracks",{count:t.data.count}),type:"info",timeout:2e3}),Promise.resolve(t)))},queue_add_next(e){let t=0;return at.getters.now_playing&&at.getters.now_playing.id&&(t=at.getters.now_playing.position+1),Oe.post("./api/queue/items/add?uris="+e+"&position="+t).then(n=>(at.dispatch("add_notification",{text:this.$t("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add(e){const t={};return t.expression=e,Oe.post("./api/queue/items/add",void 0,{params:t}).then(n=>(at.dispatch("add_notification",{text:this.$t("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_expression_add_next(e){const t={};return t.expression=e,t.position=0,at.getters.now_playing&&at.getters.now_playing.id&&(t.position=at.getters.now_playing.position+1),Oe.post("./api/queue/items/add",void 0,{params:t}).then(n=>(at.dispatch("add_notification",{text:this.$t("server.appended-tracks",{count:n.data.count}),type:"info",timeout:2e3}),Promise.resolve(n)))},queue_save_playlist(e){return Oe.post("./api/queue/save",void 0,{params:{name:e}}).then(t=>(at.dispatch("add_notification",{text:this.$t("server.queue-saved",{name:e}),type:"info",timeout:2e3}),Promise.resolve(t)))},player_status(){return Oe.get("./api/player")},player_play_uri(e,t,n=void 0){const r={};return r.uris=e,r.shuffle=t?"true":"false",r.clear="true",r.playback="start",r.playback_from_position=n,Oe.post("./api/queue/items/add",void 0,{params:r})},player_play_expression(e,t,n=void 0){const r={};return r.expression=e,r.shuffle=t?"true":"false",r.clear="true",r.playback="start",r.playback_from_position=n,Oe.post("./api/queue/items/add",void 0,{params:r})},player_play(e={}){return Oe.put("./api/player/play",void 0,{params:e})},player_playpos(e){return Oe.put("./api/player/play?position="+e)},player_playid(e){return Oe.put("./api/player/play?item_id="+e)},player_pause(){return Oe.put("./api/player/pause")},player_stop(){return Oe.put("./api/player/stop")},player_next(){return Oe.put("./api/player/next")},player_previous(){return Oe.put("./api/player/previous")},player_shuffle(e){const t=e?"true":"false";return Oe.put("./api/player/shuffle?state="+t)},player_consume(e){const t=e?"true":"false";return Oe.put("./api/player/consume?state="+t)},player_repeat(e){return Oe.put("./api/player/repeat?state="+e)},player_volume(e){return Oe.put("./api/player/volume?volume="+e)},player_output_volume(e,t){return Oe.put("./api/player/volume?volume="+t+"&output_id="+e)},player_seek_to_pos(e){return Oe.put("./api/player/seek?position_ms="+e)},player_seek(e){return Oe.put("./api/player/seek?seek_ms="+e)},outputs(){return Oe.get("./api/outputs")},output_update(e,t){return Oe.put("./api/outputs/"+e,t)},output_toggle(e){return Oe.put("./api/outputs/"+e+"/toggle")},library_artists(e=void 0){return Oe.get("./api/library/artists",{params:{media_kind:e}})},library_artist(e){return Oe.get("./api/library/artists/"+e)},library_artist_albums(e){return Oe.get("./api/library/artists/"+e+"/albums")},library_albums(e=void 0){return Oe.get("./api/library/albums",{params:{media_kind:e}})},library_album(e){return Oe.get("./api/library/albums/"+e)},library_album_tracks(e,t={limit:-1,offset:0}){return Oe.get("./api/library/albums/"+e+"/tracks",{params:t})},library_album_track_update(e,t){return Oe.put("./api/library/albums/"+e+"/tracks",void 0,{params:t})},library_genres(e=void 0){return Oe.get("./api/library/genres",{params:{media_kind:e}})},library_genre(e){return Oe.get(`./api/library/genres/${encodeURIComponent(e)}`)},library_genre_albums(e){const t={type:"albums",expression:`genre is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_genre_tracks(e){const t={type:"tracks",expression:`genre is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_radio_streams(){const e={type:"tracks",media_kind:"music",expression:"data_kind is url and song_length = 0"};return Oe.get("./api/search",{params:e})},library_composers(e=void 0){return Oe.get("./api/library/composers",{params:{media_kind:e}})},library_composer(e){return Oe.get(`./api/library/composers/${encodeURIComponent(e)}`)},library_composer_albums(e){const t={type:"albums",expression:`composer is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_composer_tracks(e){const t={type:"tracks",expression:`composer is "${e}" and media_kind is music`};return Oe.get("./api/search",{params:t})},library_artist_tracks(e){if(e){const t={type:"tracks",expression:'songartistid is "'+e+'"'};return Oe.get("./api/search",{params:t})}},library_podcasts_new_episodes(){const e={type:"tracks",expression:"media_kind is podcast and play_count = 0 ORDER BY time_added DESC"};return Oe.get("./api/search",{params:e})},library_podcast_episodes(e){const t={type:"tracks",expression:'media_kind is podcast and songalbumid is "'+e+'" ORDER BY date_released DESC'};return Oe.get("./api/search",{params:t})},library_add(e){return Oe.post("./api/library/add",void 0,{params:{url:e}})},library_playlist_delete(e){return Oe.delete("./api/library/playlists/"+e,void 0)},library_playlists(){return Oe.get("./api/library/playlists")},library_playlist_folder(e=0){return Oe.get("./api/library/playlists/"+e+"/playlists")},library_playlist(e){return Oe.get("./api/library/playlists/"+e)},library_playlist_tracks(e){return Oe.get("./api/library/playlists/"+e+"/tracks")},library_track(e){return Oe.get("./api/library/tracks/"+e)},library_track_playlists(e){return Oe.get("./api/library/tracks/"+e+"/playlists")},library_track_update(e,t={}){return Oe.put("./api/library/tracks/"+e,void 0,{params:t})},library_files(e=void 0){const t={directory:e};return Oe.get("./api/library/files",{params:t})},search(e){return Oe.get("./api/search",{params:e})},spotify(){return Oe.get("./api/spotify")},spotify_login(e){return Oe.post("./api/spotify-login",e)},spotify_logout(){return Oe.get("./api/spotify-logout")},lastfm(){return Oe.get("./api/lastfm")},lastfm_login(e){return Oe.post("./api/lastfm-login",e)},lastfm_logout(e){return Oe.get("./api/lastfm-logout")},pairing(){return Oe.get("./api/pairing")},pairing_kickoff(e){return Oe.post("./api/pairing",e)},artwork_url_append_size_params(e,t=600,n=600){return e&&e.startsWith("/")?e.includes("?")?e+"&maxwidth="+t+"&maxheight="+n:e+"?maxwidth="+t+"&maxheight="+n:e}};const LS={name:"ListItemQueueItem",props:["item","position","current_position","show_only_next_items","edit_mode"],computed:{state(){return this.$store.state.player},is_next(){return this.current_position<0||this.position>=this.current_position}},methods:{play:function(){K.player_play({item_id:this.item.id})}}},NS={key:0,class:"media"},VS={key:0,class:"media-left"},jS=["textContent"],BS=["textContent"],HS=["textContent"],US={class:"media-right"};function qS(e,t,n,r,s,o){const i=T("mdicon");return o.is_next||!n.show_only_next_items?(E(),D("div",NS,[n.edit_mode?(E(),D("div",VS,[C(i,{class:"icon has-text-grey fd-is-movable handle",name:"drag-horizontal",size:"16"})])):J("",!0),c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...a)=>o.play&&o.play(...a))},[c("h1",{class:Ye(["title is-6",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next}]),textContent:v(n.item.title)},null,10,jS),c("h2",{class:Ye(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}])},[c("b",{textContent:v(n.item.artist)},null,8,BS)],2),c("h2",{class:Ye(["subtitle is-7",{"has-text-primary":n.item.id===o.state.item_id,"has-text-grey-light":!o.is_next,"has-text-grey":o.is_next&&n.item.id!==o.state.item_id}]),textContent:v(n.item.album)},null,10,HS)]),c("div",US,[kt(e.$slots,"actions")])])):J("",!0)}var WS=ve(LS,[["render",qS]]),Sy={exports:{}};(function(e){var t=function(){var n="https://api.spotify.com/v1",r=null,s=null,o=function(f,p){return f.abort=p,f},i=function(f,p){var h;if(s!==null){var _=s.defer();f(function(g){_.resolve(g)},function(g){_.reject(g)}),h=_.promise}else window.Promise&&(h=new window.Promise(f));return h?new o(h,p):null},a=function(){var f=Array.prototype.slice.call(arguments),p=f[0],h=f.slice(1);return p=p||{},h.forEach(function(_){for(var g in _)_.hasOwnProperty(g)&&(p[g]=_[g])}),p},l=function(f,p){var h="";for(var _ in p)if(p.hasOwnProperty(_)){var g=p[_];h+=encodeURIComponent(_)+"="+encodeURIComponent(g)+"&"}return h.length>0&&(h=h.substring(0,h.length-1),f=f+"?"+h),f},u=function(f,p){var h=new XMLHttpRequest,_=function(g,b){function w(A){g&&g(A),p&&p(null,A)}function S(){b&&b(h),p&&p(h,null)}var x=f.type||"GET";if(h.open(x,l(f.url,f.params)),r&&h.setRequestHeader("Authorization","Bearer "+r),h.onreadystatechange=function(){if(h.readyState===4){var A=null;try{A=h.responseText?JSON.parse(h.responseText):""}catch(I){console.error(I)}h.status>=200&&h.status<300?w(A):S()}},x==="GET")h.send(null);else{var $=null;f.postData&&(f.contentType==="image/jpeg"?($=f.postData,h.setRequestHeader("Content-Type",f.contentType)):($=JSON.stringify(f.postData),h.setRequestHeader("Content-Type","application/json"))),h.send($)}};return p?(_(),null):i(_,function(){h.abort()})},d=function(f,p,h,_){var g={},b=null;typeof p=="object"?(g=p,b=h):typeof p=="function"&&(b=p);var w=f.type||"GET";return w!=="GET"&&f.postData&&!_?f.postData=a(f.postData,g):f.params=a(f.params,g),u(f,b)},m=function(){};return m.prototype={constructor:t},m.prototype.getGeneric=function(f,p){var h={url:f};return d(h,p)},m.prototype.getMe=function(f,p){var h={url:n+"/me"};return d(h,f,p)},m.prototype.getMySavedTracks=function(f,p){var h={url:n+"/me/tracks"};return d(h,f,p)},m.prototype.addToMySavedTracks=function(f,p,h){var _={url:n+"/me/tracks",type:"PUT",postData:f};return d(_,p,h)},m.prototype.removeFromMySavedTracks=function(f,p,h){var _={url:n+"/me/tracks",type:"DELETE",postData:f};return d(_,p,h)},m.prototype.containsMySavedTracks=function(f,p,h){var _={url:n+"/me/tracks/contains",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getMySavedAlbums=function(f,p){var h={url:n+"/me/albums"};return d(h,f,p)},m.prototype.addToMySavedAlbums=function(f,p,h){var _={url:n+"/me/albums",type:"PUT",postData:f};return d(_,p,h)},m.prototype.removeFromMySavedAlbums=function(f,p,h){var _={url:n+"/me/albums",type:"DELETE",postData:f};return d(_,p,h)},m.prototype.containsMySavedAlbums=function(f,p,h){var _={url:n+"/me/albums/contains",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getMyTopArtists=function(f,p){var h={url:n+"/me/top/artists"};return d(h,f,p)},m.prototype.getMyTopTracks=function(f,p){var h={url:n+"/me/top/tracks"};return d(h,f,p)},m.prototype.getMyRecentlyPlayedTracks=function(f,p){var h={url:n+"/me/player/recently-played"};return d(h,f,p)},m.prototype.followUsers=function(f,p){var h={url:n+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"user"}};return d(h,p)},m.prototype.followArtists=function(f,p){var h={url:n+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"artist"}};return d(h,p)},m.prototype.followPlaylist=function(f,p,h){var _={url:n+"/playlists/"+f+"/followers",type:"PUT",postData:{}};return d(_,p,h)},m.prototype.unfollowUsers=function(f,p){var h={url:n+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"user"}};return d(h,p)},m.prototype.unfollowArtists=function(f,p){var h={url:n+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"artist"}};return d(h,p)},m.prototype.unfollowPlaylist=function(f,p){var h={url:n+"/playlists/"+f+"/followers",type:"DELETE"};return d(h,p)},m.prototype.isFollowingUsers=function(f,p){var h={url:n+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"user"}};return d(h,p)},m.prototype.isFollowingArtists=function(f,p){var h={url:n+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"artist"}};return d(h,p)},m.prototype.areFollowingPlaylist=function(f,p,h){var _={url:n+"/playlists/"+f+"/followers/contains",type:"GET",params:{ids:p.join(",")}};return d(_,h)},m.prototype.getFollowedArtists=function(f,p){var h={url:n+"/me/following",type:"GET",params:{type:"artist"}};return d(h,f,p)},m.prototype.getUser=function(f,p,h){var _={url:n+"/users/"+encodeURIComponent(f)};return d(_,p,h)},m.prototype.getUserPlaylists=function(f,p,h){var _;return typeof f=="string"?_={url:n+"/users/"+encodeURIComponent(f)+"/playlists"}:(_={url:n+"/me/playlists"},h=p,p=f),d(_,p,h)},m.prototype.getPlaylist=function(f,p,h){var _={url:n+"/playlists/"+f};return d(_,p,h)},m.prototype.getPlaylistTracks=function(f,p,h){var _={url:n+"/playlists/"+f+"/tracks"};return d(_,p,h)},m.prototype.getPlaylistCoverImage=function(f,p){var h={url:n+"/playlists/"+f+"/images"};return d(h,p)},m.prototype.createPlaylist=function(f,p,h){var _={url:n+"/users/"+encodeURIComponent(f)+"/playlists",type:"POST",postData:p};return d(_,p,h)},m.prototype.changePlaylistDetails=function(f,p,h){var _={url:n+"/playlists/"+f,type:"PUT",postData:p};return d(_,p,h)},m.prototype.addTracksToPlaylist=function(f,p,h,_){var g={url:n+"/playlists/"+f+"/tracks",type:"POST",postData:{uris:p}};return d(g,h,_,!0)},m.prototype.replaceTracksInPlaylist=function(f,p,h){var _={url:n+"/playlists/"+f+"/tracks",type:"PUT",postData:{uris:p}};return d(_,{},h)},m.prototype.reorderTracksInPlaylist=function(f,p,h,_,g){var b={url:n+"/playlists/"+f+"/tracks",type:"PUT",postData:{range_start:p,insert_before:h}};return d(b,_,g)},m.prototype.removeTracksFromPlaylist=function(f,p,h){var _=p.map(function(b){return typeof b=="string"?{uri:b}:b}),g={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:_}};return d(g,{},h)},m.prototype.removeTracksFromPlaylistWithSnapshotId=function(f,p,h,_){var g=p.map(function(w){return typeof w=="string"?{uri:w}:w}),b={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:g,snapshot_id:h}};return d(b,{},_)},m.prototype.removeTracksFromPlaylistInPositions=function(f,p,h,_){var g={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{positions:p,snapshot_id:h}};return d(g,{},_)},m.prototype.uploadCustomPlaylistCoverImage=function(f,p,h){var _={url:n+"/playlists/"+f+"/images",type:"PUT",postData:p.replace(/^data:image\/jpeg;base64,/,""),contentType:"image/jpeg"};return d(_,{},h)},m.prototype.getAlbum=function(f,p,h){var _={url:n+"/albums/"+f};return d(_,p,h)},m.prototype.getAlbumTracks=function(f,p,h){var _={url:n+"/albums/"+f+"/tracks"};return d(_,p,h)},m.prototype.getAlbums=function(f,p,h){var _={url:n+"/albums/",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getTrack=function(f,p,h){var _={};return _.url=n+"/tracks/"+f,d(_,p,h)},m.prototype.getTracks=function(f,p,h){var _={url:n+"/tracks/",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getArtist=function(f,p,h){var _={url:n+"/artists/"+f};return d(_,p,h)},m.prototype.getArtists=function(f,p,h){var _={url:n+"/artists/",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getArtistAlbums=function(f,p,h){var _={url:n+"/artists/"+f+"/albums"};return d(_,p,h)},m.prototype.getArtistTopTracks=function(f,p,h,_){var g={url:n+"/artists/"+f+"/top-tracks",params:{country:p}};return d(g,h,_)},m.prototype.getArtistRelatedArtists=function(f,p,h){var _={url:n+"/artists/"+f+"/related-artists"};return d(_,p,h)},m.prototype.getFeaturedPlaylists=function(f,p){var h={url:n+"/browse/featured-playlists"};return d(h,f,p)},m.prototype.getNewReleases=function(f,p){var h={url:n+"/browse/new-releases"};return d(h,f,p)},m.prototype.getCategories=function(f,p){var h={url:n+"/browse/categories"};return d(h,f,p)},m.prototype.getCategory=function(f,p,h){var _={url:n+"/browse/categories/"+f};return d(_,p,h)},m.prototype.getCategoryPlaylists=function(f,p,h){var _={url:n+"/browse/categories/"+f+"/playlists"};return d(_,p,h)},m.prototype.search=function(f,p,h,_){var g={url:n+"/search/",params:{q:f,type:p.join(",")}};return d(g,h,_)},m.prototype.searchAlbums=function(f,p,h){return this.search(f,["album"],p,h)},m.prototype.searchArtists=function(f,p,h){return this.search(f,["artist"],p,h)},m.prototype.searchTracks=function(f,p,h){return this.search(f,["track"],p,h)},m.prototype.searchPlaylists=function(f,p,h){return this.search(f,["playlist"],p,h)},m.prototype.searchShows=function(f,p,h){return this.search(f,["show"],p,h)},m.prototype.searchEpisodes=function(f,p,h){return this.search(f,["episode"],p,h)},m.prototype.getAudioFeaturesForTrack=function(f,p){var h={};return h.url=n+"/audio-features/"+f,d(h,{},p)},m.prototype.getAudioFeaturesForTracks=function(f,p){var h={url:n+"/audio-features",params:{ids:f}};return d(h,{},p)},m.prototype.getAudioAnalysisForTrack=function(f,p){var h={};return h.url=n+"/audio-analysis/"+f,d(h,{},p)},m.prototype.getRecommendations=function(f,p){var h={url:n+"/recommendations"};return d(h,f,p)},m.prototype.getAvailableGenreSeeds=function(f){var p={url:n+"/recommendations/available-genre-seeds"};return d(p,{},f)},m.prototype.getMyDevices=function(f){var p={url:n+"/me/player/devices"};return d(p,{},f)},m.prototype.getMyCurrentPlaybackState=function(f,p){var h={url:n+"/me/player"};return d(h,f,p)},m.prototype.getMyCurrentPlayingTrack=function(f,p){var h={url:n+"/me/player/currently-playing"};return d(h,f,p)},m.prototype.transferMyPlayback=function(f,p,h){var _=p||{};_.device_ids=f;var g={type:"PUT",url:n+"/me/player",postData:_};return d(g,p,h)},m.prototype.play=function(f,p){f=f||{};var h="device_id"in f?{device_id:f.device_id}:null,_={};["context_uri","uris","offset","position_ms"].forEach(function(w){w in f&&(_[w]=f[w])});var g={type:"PUT",url:n+"/me/player/play",params:h,postData:_},b=typeof f=="function"?f:{};return d(g,b,p)},m.prototype.queue=function(f,p,h){p=p||{};var _="device_id"in p?{uri:f,device_id:p.device_id}:{uri:f},g={type:"POST",url:n+"/me/player/queue",params:_};return d(g,p,h)},m.prototype.pause=function(f,p){f=f||{};var h="device_id"in f?{device_id:f.device_id}:null,_={type:"PUT",url:n+"/me/player/pause",params:h};return d(_,f,p)},m.prototype.skipToNext=function(f,p){f=f||{};var h="device_id"in f?{device_id:f.device_id}:null,_={type:"POST",url:n+"/me/player/next",params:h};return d(_,f,p)},m.prototype.skipToPrevious=function(f,p){f=f||{};var h="device_id"in f?{device_id:f.device_id}:null,_={type:"POST",url:n+"/me/player/previous",params:h};return d(_,f,p)},m.prototype.seek=function(f,p,h){p=p||{};var _={position_ms:f};"device_id"in p&&(_.device_id=p.device_id);var g={type:"PUT",url:n+"/me/player/seek",params:_};return d(g,p,h)},m.prototype.setRepeat=function(f,p,h){p=p||{};var _={state:f};"device_id"in p&&(_.device_id=p.device_id);var g={type:"PUT",url:n+"/me/player/repeat",params:_};return d(g,p,h)},m.prototype.setVolume=function(f,p,h){p=p||{};var _={volume_percent:f};"device_id"in p&&(_.device_id=p.device_id);var g={type:"PUT",url:n+"/me/player/volume",params:_};return d(g,p,h)},m.prototype.setShuffle=function(f,p,h){p=p||{};var _={state:f};"device_id"in p&&(_.device_id=p.device_id);var g={type:"PUT",url:n+"/me/player/shuffle",params:_};return d(g,p,h)},m.prototype.getShow=function(f,p,h){var _={};return _.url=n+"/shows/"+f,d(_,p,h)},m.prototype.getShows=function(f,p,h){var _={url:n+"/shows/",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getMySavedShows=function(f,p){var h={url:n+"/me/shows"};return d(h,f,p)},m.prototype.addToMySavedShows=function(f,p,h){var _={url:n+"/me/shows",type:"PUT",postData:f};return d(_,p,h)},m.prototype.removeFromMySavedShows=function(f,p,h){var _={url:n+"/me/shows",type:"DELETE",postData:f};return d(_,p,h)},m.prototype.containsMySavedShows=function(f,p,h){var _={url:n+"/me/shows/contains",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getShowEpisodes=function(f,p,h){var _={url:n+"/shows/"+f+"/episodes"};return d(_,p,h)},m.prototype.getEpisode=function(f,p,h){var _={};return _.url=n+"/episodes/"+f,d(_,p,h)},m.prototype.getEpisodes=function(f,p,h){var _={url:n+"/episodes/",params:{ids:f.join(",")}};return d(_,p,h)},m.prototype.getAccessToken=function(){return r},m.prototype.setAccessToken=function(f){r=f},m.prototype.setPromiseImplementation=function(f){var p=!1;try{var h=new f(function(_){_()});typeof h.then=="function"&&typeof h.catch=="function"&&(p=!0)}catch(_){console.error(_)}if(p)s=f;else throw new Error("Unsupported implementation of Promises/A+")},m}();e.exports=t})(Sy);var ar=Sy.exports;const GS={name:"ModalDialogQueueItem",props:["show","item"],emits:["close"],data(){return{spotify_track:{}}},watch:{item(){if(this.item&&this.item.data_kind==="spotify"){const e=new ar;e.setAccessToken(this.$store.state.spotify.webapi_token),e.getTrack(this.item.path.slice(this.item.path.lastIndexOf(":")+1)).then(t=>{this.spotify_track=t})}else this.spotify_track={}}},methods:{remove:function(){this.$emit("close"),K.queue_remove(this.item.id)},play:function(){this.$emit("close"),K.player_play({item_id:this.item.id})},open_album:function(){this.media_kind==="podcast"?this.$router.push({path:"/podcasts/"+this.item.album_id}):this.media_kind==="audiobook"?this.$router.push({path:"/audiobooks/"+this.item.album_id}):this.$router.push({path:"/music/albums/"+this.item.album_id})},open_album_artist:function(){this.$router.push({path:"/music/artists/"+this.item.album_artist_id})},open_genre:function(){this.$router.push({name:"Genre",params:{genre:this.item.genre}})},open_spotify_artist:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})}}},KS={key:0,class:"modal is-active"},YS={class:"modal-content fd-modal-card"},ZS={class:"card"},JS={class:"card-content"},XS=["textContent"],QS=["textContent"],eE={class:"content is-small"},tE=["textContent"],nE=["textContent"],rE=["textContent"],sE={key:0},oE=["textContent"],iE=["textContent"],aE=["textContent"],lE={key:1},uE=["textContent"],cE=["textContent"],dE={key:2},fE=["textContent"],mE=["textContent"],pE={key:3},hE=["textContent"],_E=["textContent"],gE=["textContent"],yE=["textContent"],vE=["textContent"],bE=["textContent"],wE=["textContent"],CE=["textContent"],xE=["textContent"],kE={class:"title is-6"},SE=["textContent"],EE={key:0,class:"has-text-weight-normal"},$E=Tt(" ("),zE=["textContent"],AE=Tt(", "),OE=["textContent"],TE=Tt(") "),PE=["textContent"],DE={class:"title is-6"},FE=["textContent"],IE=["textContent"],ME=["textContent"],RE=["textContent"],LE={class:"card-footer"},NE=["textContent"],VE=["textContent"];function jE(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",KS,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",YS,[c("div",ZS,[c("div",JS,[c("p",{class:"title is-4",textContent:v(n.item.title)},null,8,XS),c("p",{class:"subtitle",textContent:v(n.item.artist)},null,8,QS),c("div",eE,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.album"))},null,8,tE),n.item.album_id?(E(),D("a",{key:0,class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a)),textContent:v(n.item.album)},null,8,nE)):(E(),D("span",{key:1,class:"title is-6",textContent:v(n.item.album)},null,8,rE))]),n.item.album_artist?(E(),D("p",sE,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.album-artist"))},null,8,oE),n.item.album_artist_id?(E(),D("a",{key:0,class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_album_artist&&o.open_album_artist(...a)),textContent:v(n.item.album_artist)},null,8,iE)):(E(),D("span",{key:1,class:"title is-6",textContent:v(n.item.album_artist)},null,8,aE))])):J("",!0),n.item.composer?(E(),D("p",lE,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.composer"))},null,8,uE),c("span",{class:"title is-6",textContent:v(n.item.composer)},null,8,cE)])):J("",!0),n.item.year>0?(E(),D("p",dE,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.year"))},null,8,fE),c("span",{class:"title is-6",textContent:v(n.item.year)},null,8,mE)])):J("",!0),n.item.genre?(E(),D("p",pE,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.genre"))},null,8,hE),c("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:v(n.item.genre)},null,8,_E)])):J("",!0),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.position"))},null,8,gE),c("span",{class:"title is-6",textContent:v([n.item.disc_number,n.item.track_number].join(" / "))},null,8,yE)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.duration"))},null,8,vE),c("span",{class:"title is-6",textContent:v(e.$filters.durationInHours(n.item.length_ms))},null,8,bE)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.path"))},null,8,wE),c("span",{class:"title is-6",textContent:v(n.item.path)},null,8,CE)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.type"))},null,8,xE),c("span",kE,[c("span",{textContent:v([n.item.media_kind,n.item.data_kind].join(" - "))},null,8,SE),n.item.data_kind==="spotify"?(E(),D("span",EE,[$E,c("a",{onClick:t[4]||(t[4]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a)),textContent:v(e.$t("dialog.queue-item.spotify-artist"))},null,8,zE),AE,c("a",{onClick:t[5]||(t[5]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a)),textContent:v(e.$t("dialog.queue-item.spotify-album"))},null,8,OE),TE])):J("",!0)])]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.queue-item.quality"))},null,8,PE),c("span",DE,[c("span",{textContent:v(n.item.type)},null,8,FE),n.item.samplerate?(E(),D("span",{key:0,textContent:v(e.$t("dialog.queue-item.samplerate",{rate:n.item.samplerate}))},null,8,IE)):J("",!0),n.item.channels?(E(),D("span",{key:1,textContent:v(e.$t("dialog.queue-item.channels",{channels:e.$filters.channels(n.item.channels)}))},null,8,ME)):J("",!0),n.item.bitrate?(E(),D("span",{key:2,textContent:v(e.$t("dialog.queue-item.bitrate",{rate:n.item.bitrate}))},null,8,RE)):J("",!0)])])])]),c("footer",LE,[c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.remove&&o.remove(...a))},[C(i,{class:"icon",name:"delete",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.queue-item.remove"))},null,8,NE)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.queue-item.play"))},null,8,VE)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Ey=ve(GS,[["render",jE]]);const BE={name:"ModalDialogAddUrlStream",props:["show"],emits:["close"],data(){return{url:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.url_field.focus()},10))}},methods:{add_stream:function(){this.loading=!0,K.queue_add(this.url).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})},play:function(){this.loading=!0,K.player_play_uri(this.url,!1).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})}}},HE={key:0,class:"modal is-active"},UE={class:"modal-content fd-modal-card"},qE={class:"card"},WE={class:"card-content"},GE=["textContent"],KE={class:"field"},YE={class:"control is-expanded has-icons-left"},ZE=["placeholder","disabled"],JE={key:0,class:"card-footer"},XE={class:"card-footer-item has-text-dark"},QE=["textContent"],e$={key:1,class:"card-footer"},t$=["textContent"],n$=["textContent"],r$=["textContent"];function s$(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",HE,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",UE,[c("div",qE,[c("div",WE,[c("p",{class:"title is-4",textContent:v(e.$t("dialog.add.stream.title"))},null,8,GE),c("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=_t((...a)=>o.play&&o.play(...a),["prevent"]))},[c("div",KE,[c("p",YE,[Ct(c("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.stream.placeholder"),disabled:s.loading},null,8,ZE),[[sn,s.url]]),C(i,{class:"icon is-left",name:"web",size:"16"})])])],32)]),s.loading?(E(),D("footer",JE,[c("a",XE,[C(i,{class:"icon",name:"web",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.stream.loading"))},null,8,QE)])])):(E(),D("footer",e$,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[C(i,{class:"icon",name:"cancel",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.stream.cancel"))},null,8,t$)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.stream.add"))},null,8,n$)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.stream.play"))},null,8,r$)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var o$=ve(BE,[["render",s$]]);const i$={name:"ModalDialogPlaylistSave",props:["show"],emits:["close"],data(){return{playlist_name:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.playlist_name_field.focus()},10))}},methods:{save:function(){this.playlist_name.length<1||(this.loading=!0,K.queue_save_playlist(this.playlist_name).then(()=>{this.$emit("close"),this.playlist_name=""}).catch(()=>{this.loading=!1}))}}},a$={key:0,class:"modal is-active"},l$={class:"modal-content fd-modal-card"},u$={class:"card"},c$={class:"card-content"},d$=["textContent"],f$={class:"field"},m$={class:"control is-expanded has-icons-left"},p$=["disabled"],h$={key:0,class:"card-footer"},_$={class:"card-footer-item has-text-dark"},g$=["textContent"],y$={key:1,class:"card-footer"},v$=["textContent"],b$=["textContent"];function w$(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",a$,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",l$,[c("div",u$,[c("div",c$,[c("p",{class:"title is-4",textContent:v(e.$t("dialog.playlist.save.title"))},null,8,d$),c("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=_t((...a)=>o.save&&o.save(...a),["prevent"]))},[c("div",f$,[c("p",m$,[Ct(c("input",{ref:"playlist_name_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.playlist_name=a),class:"input is-shadowless",type:"text",placeholder:"Playlist name",disabled:s.loading},null,8,p$),[[sn,s.playlist_name]]),C(i,{class:"icon is-left",name:"file-music",size:"16"})])])],32)]),s.loading?(E(),D("footer",h$,[c("a",_$,[C(i,{class:"icon",name:"web",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.playlist.save.saving"))},null,8,g$)])])):(E(),D("footer",y$,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[C(i,{class:"icon",name:"cancel",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.playlist.save.cancel"))},null,8,v$)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.save&&o.save(...a))},[C(i,{class:"icon",name:"content-save",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.playlist.save.save"))},null,8,b$)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var C$=ve(i$,[["render",w$]]),$y={exports:{}},pf=cy(TC);/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Fp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function hr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Fp(Object(n),!0).forEach(function(r){x$(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Fp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function Xa(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Xa=function(t){return typeof t}:Xa=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xa(e)}function x$(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function qn(){return qn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},qn.apply(this,arguments)}function k$(e,t){if(e==null)return{};var n={},r=Object.keys(e),s,o;for(o=0;o<r.length;o++)s=r[o],!(t.indexOf(s)>=0)&&(n[s]=e[s]);return n}function S$(e,t){if(e==null)return{};var n=k$(e,t),r,s;if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);for(s=0;s<o.length;s++)r=o[s],!(t.indexOf(r)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,r)||(n[r]=e[r]))}return n}function E$(e){return $$(e)||z$(e)||A$(e)||O$()}function $$(e){if(Array.isArray(e))return Gc(e)}function z$(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function A$(e,t){if(!!e){if(typeof e=="string")return Gc(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);if(n==="Object"&&e.constructor&&(n=e.constructor.name),n==="Map"||n==="Set")return Array.from(e);if(n==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return Gc(e,t)}}function Gc(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function O$(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}var T$="1.14.0";function kr(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Tr=kr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Ri=kr(/Edge/i),Ip=kr(/firefox/i),ci=kr(/safari/i)&&!kr(/chrome/i)&&!kr(/android/i),zy=kr(/iP(ad|od|hone)/i),P$=kr(/chrome/i)&&kr(/android/i),Ay={capture:!1,passive:!1};function lt(e,t,n){e.addEventListener(t,n,!Tr&&Ay)}function ot(e,t,n){e.removeEventListener(t,n,!Tr&&Ay)}function yl(e,t){if(!!t){if(t[0]===">"&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch{return!1}return!1}}function D$(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function Qn(e,t,n,r){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&yl(e,t):yl(e,t))||r&&e===n)return e;if(e===n)break}while(e=D$(e))}return null}var Mp=/\s+/g;function $t(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var r=(" "+e.className+" ").replace(Mp," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(Mp," ")}}function je(e,t,n){var r=e&&e.style;if(r){if(n===void 0)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),t===void 0?n:n[t];!(t in r)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),r[t]=n+(typeof n=="string"?"":"px")}}function xs(e,t){var n="";if(typeof e=="string")n=e;else do{var r=je(e,"transform");r&&r!=="none"&&(n=r+" "+n)}while(!t&&(e=e.parentNode));var s=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return s&&new s(n)}function Oy(e,t,n){if(e){var r=e.getElementsByTagName(t),s=0,o=r.length;if(n)for(;s<o;s++)n(r[s],s);return r}return[]}function pr(){var e=document.scrollingElement;return e||document.documentElement}function Et(e,t,n,r,s){if(!(!e.getBoundingClientRect&&e!==window)){var o,i,a,l,u,d,m;if(e!==window&&e.parentNode&&e!==pr()?(o=e.getBoundingClientRect(),i=o.top,a=o.left,l=o.bottom,u=o.right,d=o.height,m=o.width):(i=0,a=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,m=window.innerWidth),(t||n)&&e!==window&&(s=s||e.parentNode,!Tr))do if(s&&s.getBoundingClientRect&&(je(s,"transform")!=="none"||n&&je(s,"position")!=="static")){var f=s.getBoundingClientRect();i-=f.top+parseInt(je(s,"border-top-width")),a-=f.left+parseInt(je(s,"border-left-width")),l=i+o.height,u=a+o.width;break}while(s=s.parentNode);if(r&&e!==window){var p=xs(s||e),h=p&&p.a,_=p&&p.d;p&&(i/=_,a/=h,m/=h,d/=_,l=i+d,u=a+m)}return{top:i,left:a,bottom:l,right:u,width:m,height:d}}}function Rp(e,t,n){for(var r=Gr(e,!0),s=Et(e)[t];r;){var o=Et(r)[n],i=void 0;if(n==="top"||n==="left"?i=s>=o:i=s<=o,!i)return r;if(r===pr())break;r=Gr(r,!1)}return!1}function bo(e,t,n,r){for(var s=0,o=0,i=e.children;o<i.length;){if(i[o].style.display!=="none"&&i[o]!==Xe.ghost&&(r||i[o]!==Xe.dragged)&&Qn(i[o],n.draggable,e,!1)){if(s===t)return i[o];s++}o++}return null}function hf(e,t){for(var n=e.lastElementChild;n&&(n===Xe.ghost||je(n,"display")==="none"||t&&!yl(n,t));)n=n.previousElementSibling;return n||null}function Rt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Xe.clone&&(!t||yl(e,t))&&n++;return n}function Lp(e){var t=0,n=0,r=pr();if(e)do{var s=xs(e),o=s.a,i=s.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function F$(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n)}return-1}function Gr(e,t){if(!e||!e.getBoundingClientRect)return pr();var n=e,r=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var s=je(n);if(n.clientWidth<n.scrollWidth&&(s.overflowX=="auto"||s.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(s.overflowY=="auto"||s.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return pr();if(r||t)return n;r=!0}}while(n=n.parentNode);return pr()}function I$(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function Uu(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}var di;function Ty(e,t){return function(){if(!di){var n=arguments,r=this;n.length===1?e.call(r,n[0]):e.apply(r,n),di=setTimeout(function(){di=void 0},t)}}}function M$(){clearTimeout(di),di=void 0}function Py(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function _f(e){var t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function Np(e,t){je(e,"position","absolute"),je(e,"top",t.top),je(e,"left",t.left),je(e,"width",t.width),je(e,"height",t.height)}function qu(e){je(e,"position",""),je(e,"top",""),je(e,"left",""),je(e,"width",""),je(e,"height","")}var nn="Sortable"+new Date().getTime();function R$(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var r=[].slice.call(this.el.children);r.forEach(function(s){if(!(je(s,"display")==="none"||s===Xe.ghost)){e.push({target:s,rect:Et(s)});var o=hr({},e[e.length-1].rect);if(s.thisAnimationDuration){var i=xs(s,!0);i&&(o.top-=i.f,o.left-=i.e)}s.fromRect=o}})}},addAnimationState:function(r){e.push(r)},removeAnimationState:function(r){e.splice(F$(e,{target:r}),1)},animateAll:function(r){var s=this;if(!this.options.animation){clearTimeout(t),typeof r=="function"&&r();return}var o=!1,i=0;e.forEach(function(a){var l=0,u=a.target,d=u.fromRect,m=Et(u),f=u.prevFromRect,p=u.prevToRect,h=a.rect,_=xs(u,!0);_&&(m.top-=_.f,m.left-=_.e),u.toRect=m,u.thisAnimationDuration&&Uu(f,m)&&!Uu(d,m)&&(h.top-m.top)/(h.left-m.left)===(d.top-m.top)/(d.left-m.left)&&(l=N$(h,f,p,s.options)),Uu(m,d)||(u.prevFromRect=d,u.prevToRect=m,l||(l=s.options.animation),s.animate(u,h,m,l)),l&&(o=!0,i=Math.max(i,l),clearTimeout(u.animationResetTimer),u.animationResetTimer=setTimeout(function(){u.animationTime=0,u.prevFromRect=null,u.fromRect=null,u.prevToRect=null,u.thisAnimationDuration=null},l),u.thisAnimationDuration=l)}),clearTimeout(t),o?t=setTimeout(function(){typeof r=="function"&&r()},i):typeof r=="function"&&r(),e=[]},animate:function(r,s,o,i){if(i){je(r,"transition",""),je(r,"transform","");var a=xs(this.el),l=a&&a.a,u=a&&a.d,d=(s.left-o.left)/(l||1),m=(s.top-o.top)/(u||1);r.animatingX=!!d,r.animatingY=!!m,je(r,"transform","translate3d("+d+"px,"+m+"px,0)"),this.forRepaintDummy=L$(r),je(r,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),je(r,"transform","translate3d(0,0,0)"),typeof r.animated=="number"&&clearTimeout(r.animated),r.animated=setTimeout(function(){je(r,"transition",""),je(r,"transform",""),r.animated=!1,r.animatingX=!1,r.animatingY=!1},i)}}}}function L$(e){return e.offsetWidth}function N$(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}var Hs=[],Wu={initializeByDefault:!0},Li={mount:function(t){for(var n in Wu)Wu.hasOwnProperty(n)&&!(n in t)&&(t[n]=Wu[n]);Hs.forEach(function(r){if(r.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Hs.push(t)},pluginEvent:function(t,n,r){var s=this;this.eventCanceled=!1,r.cancel=function(){s.eventCanceled=!0};var o=t+"Global";Hs.forEach(function(i){!n[i.pluginName]||(n[i.pluginName][o]&&n[i.pluginName][o](hr({sortable:n},r)),n.options[i.pluginName]&&n[i.pluginName][t]&&n[i.pluginName][t](hr({sortable:n},r)))})},initializePlugins:function(t,n,r,s){Hs.forEach(function(a){var l=a.pluginName;if(!(!t.options[l]&&!a.initializeByDefault)){var u=new a(t,n,t.options);u.sortable=t,u.options=t.options,t[l]=u,qn(r,u.defaults)}});for(var o in t.options)if(!!t.options.hasOwnProperty(o)){var i=this.modifyOption(t,o,t.options[o]);typeof i!="undefined"&&(t.options[o]=i)}},getEventProperties:function(t,n){var r={};return Hs.forEach(function(s){typeof s.eventProperties=="function"&&qn(r,s.eventProperties.call(n[s.pluginName],t))}),r},modifyOption:function(t,n,r){var s;return Hs.forEach(function(o){!t[o.pluginName]||o.optionListeners&&typeof o.optionListeners[n]=="function"&&(s=o.optionListeners[n].call(t[o.pluginName],r))}),s}};function Wo(e){var t=e.sortable,n=e.rootEl,r=e.name,s=e.targetEl,o=e.cloneEl,i=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,m=e.newDraggableIndex,f=e.originalEvent,p=e.putSortable,h=e.extraEventProperties;if(t=t||n&&n[nn],!!t){var _,g=t.options,b="on"+r.charAt(0).toUpperCase()+r.substr(1);window.CustomEvent&&!Tr&&!Ri?_=new CustomEvent(r,{bubbles:!0,cancelable:!0}):(_=document.createEvent("Event"),_.initEvent(r,!0,!0)),_.to=i||n,_.from=a||n,_.item=s||n,_.clone=o,_.oldIndex=l,_.newIndex=u,_.oldDraggableIndex=d,_.newDraggableIndex=m,_.originalEvent=f,_.pullMode=p?p.lastPutMode:void 0;var w=hr(hr({},h),Li.getEventProperties(r,t));for(var S in w)_[S]=w[S];n&&n.dispatchEvent(_),g[b]&&g[b].call(t,_)}}var V$=["evt"],yn=function(t,n){var r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},s=r.evt,o=S$(r,V$);Li.pluginEvent.bind(Xe)(t,n,hr({dragEl:Se,parentEl:Dt,ghostEl:rt,rootEl:St,nextEl:_s,lastDownEl:Qa,cloneEl:Ft,cloneHidden:qr,dragStarted:Go,putSortable:Jt,activeSortable:Xe.active,originalEvent:s,oldIndex:eo,oldDraggableIndex:fi,newIndex:zn,newDraggableIndex:Hr,hideGhostForTarget:My,unhideGhostForTarget:Ry,cloneNowHidden:function(){qr=!0},cloneNowShown:function(){qr=!1},dispatchSortableEvent:function(a){dn({sortable:n,name:a,originalEvent:s})}},o))};function dn(e){Wo(hr({putSortable:Jt,cloneEl:Ft,targetEl:Se,rootEl:St,oldIndex:eo,oldDraggableIndex:fi,newIndex:zn,newDraggableIndex:Hr},e))}var Se,Dt,rt,St,_s,Qa,Ft,qr,eo,zn,fi,Hr,ia,Jt,Js=!1,vl=!1,bl=[],cs,Kn,Gu,Ku,Vp,jp,Go,Us,mi,pi=!1,aa=!1,el,tn,Yu=[],Kc=!1,wl=[],ou=typeof document!="undefined",la=zy,Bp=Ri||Tr?"cssFloat":"float",j$=ou&&!P$&&!zy&&"draggable"in document.createElement("div"),Dy=function(){if(!!ou){if(Tr)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Fy=function(t,n){var r=je(t),s=parseInt(r.width)-parseInt(r.paddingLeft)-parseInt(r.paddingRight)-parseInt(r.borderLeftWidth)-parseInt(r.borderRightWidth),o=bo(t,0,n),i=bo(t,1,n),a=o&&je(o),l=i&&je(i),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Et(o).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Et(i).width;if(r.display==="flex")return r.flexDirection==="column"||r.flexDirection==="column-reverse"?"vertical":"horizontal";if(r.display==="grid")return r.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(o&&a.float&&a.float!=="none"){var m=a.float==="left"?"left":"right";return i&&(l.clear==="both"||l.clear===m)?"vertical":"horizontal"}return o&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=s&&r[Bp]==="none"||i&&r[Bp]==="none"&&u+d>s)?"vertical":"horizontal"},B$=function(t,n,r){var s=r?t.left:t.top,o=r?t.right:t.bottom,i=r?t.width:t.height,a=r?n.left:n.top,l=r?n.right:n.bottom,u=r?n.width:n.height;return s===a||o===l||s+i/2===a+u/2},H$=function(t,n){var r;return bl.some(function(s){var o=s[nn].options.emptyInsertThreshold;if(!(!o||hf(s))){var i=Et(s),a=t>=i.left-o&&t<=i.right+o,l=n>=i.top-o&&n<=i.bottom+o;if(a&&l)return r=s}}),r},Iy=function(t){function n(o,i){return function(a,l,u,d){var m=a.options.group.name&&l.options.group.name&&a.options.group.name===l.options.group.name;if(o==null&&(i||m))return!0;if(o==null||o===!1)return!1;if(i&&o==="clone")return o;if(typeof o=="function")return n(o(a,l,u,d),i)(a,l,u,d);var f=(i?a:l).options.group.name;return o===!0||typeof o=="string"&&o===f||o.join&&o.indexOf(f)>-1}}var r={},s=t.group;(!s||Xa(s)!="object")&&(s={name:s}),r.name=s.name,r.checkPull=n(s.pull,!0),r.checkPut=n(s.put),r.revertClone=s.revertClone,t.group=r},My=function(){!Dy&&rt&&je(rt,"display","none")},Ry=function(){!Dy&&rt&&je(rt,"display","")};ou&&document.addEventListener("click",function(e){if(vl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),vl=!1,!1},!0);var ds=function(t){if(Se){t=t.touches?t.touches[0]:t;var n=H$(t.clientX,t.clientY);if(n){var r={};for(var s in t)t.hasOwnProperty(s)&&(r[s]=t[s]);r.target=r.rootEl=n,r.preventDefault=void 0,r.stopPropagation=void 0,n[nn]._onDragOver(r)}}},U$=function(t){Se&&Se.parentNode[nn]._isOutsideThisEl(t.target)};function Xe(e,t){if(!(e&&e.nodeType&&e.nodeType===1))throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(e));this.el=e,this.options=t=qn({},t),e[nn]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Fy(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(i,a){i.setData("Text",a.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:Xe.supportPointer!==!1&&"PointerEvent"in window&&!ci,emptyInsertThreshold:5};Li.initializePlugins(this,e,n);for(var r in n)!(r in t)&&(t[r]=n[r]);Iy(t);for(var s in this)s.charAt(0)==="_"&&typeof this[s]=="function"&&(this[s]=this[s].bind(this));this.nativeDraggable=t.forceFallback?!1:j$,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?lt(e,"pointerdown",this._onTapStart):(lt(e,"mousedown",this._onTapStart),lt(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(lt(e,"dragover",this),lt(e,"dragenter",this)),bl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),qn(this,R$())}Xe.prototype={constructor:Xe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Us=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,Se):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,r=this.el,s=this.options,o=s.preventOnFilter,i=t.type,a=t.touches&&t.touches[0]||t.pointerType&&t.pointerType==="touch"&&t,l=(a||t).target,u=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,d=s.filter;if(X$(r),!Se&&!(/mousedown|pointerdown/.test(i)&&t.button!==0||s.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&ci&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=Qn(l,s.draggable,r,!1),!(l&&l.animated)&&Qa!==l)){if(eo=Rt(l),fi=Rt(l,s.draggable),typeof d=="function"){if(d.call(this,t,l,this)){dn({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:r,fromEl:r}),yn("filter",n,{evt:t}),o&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(m){if(m=Qn(u,m.trim(),r,!1),m)return dn({sortable:n,rootEl:m,name:"filter",targetEl:l,fromEl:r,toEl:r}),yn("filter",n,{evt:t}),!0}),d)){o&&t.cancelable&&t.preventDefault();return}s.handle&&!Qn(u,s.handle,r,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,r){var s=this,o=s.el,i=s.options,a=o.ownerDocument,l;if(r&&!Se&&r.parentNode===o){var u=Et(r);if(St=o,Se=r,Dt=Se.parentNode,_s=Se.nextSibling,Qa=r,ia=i.group,Xe.dragged=Se,cs={target:Se,clientX:(n||t).clientX,clientY:(n||t).clientY},Vp=cs.clientX-u.left,jp=cs.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,Se.style["will-change"]="all",l=function(){if(yn("delayEnded",s,{evt:t}),Xe.eventCanceled){s._onDrop();return}s._disableDelayedDragEvents(),!Ip&&s.nativeDraggable&&(Se.draggable=!0),s._triggerDragStart(t,n),dn({sortable:s,name:"choose",originalEvent:t}),$t(Se,i.chosenClass,!0)},i.ignore.split(",").forEach(function(d){Oy(Se,d.trim(),Zu)}),lt(a,"dragover",ds),lt(a,"mousemove",ds),lt(a,"touchmove",ds),lt(a,"mouseup",s._onDrop),lt(a,"touchend",s._onDrop),lt(a,"touchcancel",s._onDrop),Ip&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Se.draggable=!0),yn("delayStart",this,{evt:t}),i.delay&&(!i.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Ri||Tr))){if(Xe.eventCanceled){this._onDrop();return}lt(a,"mouseup",s._disableDelayedDrag),lt(a,"touchend",s._disableDelayedDrag),lt(a,"touchcancel",s._disableDelayedDrag),lt(a,"mousemove",s._delayedDragTouchMoveHandler),lt(a,"touchmove",s._delayedDragTouchMoveHandler),i.supportPointer&&lt(a,"pointermove",s._delayedDragTouchMoveHandler),s._dragStartTimer=setTimeout(l,i.delay)}else l()}},_delayedDragTouchMoveHandler:function(t){var n=t.touches?t.touches[0]:t;Math.max(Math.abs(n.clientX-this._lastX),Math.abs(n.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Se&&Zu(Se),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._disableDelayedDrag),ot(t,"touchend",this._disableDelayedDrag),ot(t,"touchcancel",this._disableDelayedDrag),ot(t,"mousemove",this._delayedDragTouchMoveHandler),ot(t,"touchmove",this._delayedDragTouchMoveHandler),ot(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,n){n=n||t.pointerType=="touch"&&t,!this.nativeDraggable||n?this.options.supportPointer?lt(document,"pointermove",this._onTouchMove):n?lt(document,"touchmove",this._onTouchMove):lt(document,"mousemove",this._onTouchMove):(lt(Se,"dragend",this),lt(St,"dragstart",this._onDragStart));try{document.selection?tl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(Js=!1,St&&Se){yn("dragStarted",this,{evt:n}),this.nativeDraggable&&lt(document,"dragover",U$);var r=this.options;!t&&$t(Se,r.dragClass,!1),$t(Se,r.ghostClass,!0),Xe.active=this,t&&this._appendGhost(),dn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Kn){this._lastX=Kn.clientX,this._lastY=Kn.clientY,My();for(var t=document.elementFromPoint(Kn.clientX,Kn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Kn.clientX,Kn.clientY),t!==n);)n=t;if(Se.parentNode[nn]._isOutsideThisEl(t),n)do{if(n[nn]){var r=void 0;if(r=n[nn]._onDragOver({clientX:Kn.clientX,clientY:Kn.clientY,target:t,rootEl:n}),r&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);Ry()}},_onTouchMove:function(t){if(cs){var n=this.options,r=n.fallbackTolerance,s=n.fallbackOffset,o=t.touches?t.touches[0]:t,i=rt&&xs(rt,!0),a=rt&&i&&i.a,l=rt&&i&&i.d,u=la&&tn&&Lp(tn),d=(o.clientX-cs.clientX+s.x)/(a||1)+(u?u[0]-Yu[0]:0)/(a||1),m=(o.clientY-cs.clientY+s.y)/(l||1)+(u?u[1]-Yu[1]:0)/(l||1);if(!Xe.active&&!Js){if(r&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<r)return;this._onDragStart(t,!0)}if(rt){i?(i.e+=d-(Gu||0),i.f+=m-(Ku||0)):i={a:1,b:0,c:0,d:1,e:d,f:m};var f="matrix(".concat(i.a,",").concat(i.b,",").concat(i.c,",").concat(i.d,",").concat(i.e,",").concat(i.f,")");je(rt,"webkitTransform",f),je(rt,"mozTransform",f),je(rt,"msTransform",f),je(rt,"transform",f),Gu=d,Ku=m,Kn=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!rt){var t=this.options.fallbackOnBody?document.body:St,n=Et(Se,!0,la,!0,t),r=this.options;if(la){for(tn=t;je(tn,"position")==="static"&&je(tn,"transform")==="none"&&tn!==document;)tn=tn.parentNode;tn!==document.body&&tn!==document.documentElement?(tn===document&&(tn=pr()),n.top+=tn.scrollTop,n.left+=tn.scrollLeft):tn=pr(),Yu=Lp(tn)}rt=Se.cloneNode(!0),$t(rt,r.ghostClass,!1),$t(rt,r.fallbackClass,!0),$t(rt,r.dragClass,!0),je(rt,"transition",""),je(rt,"transform",""),je(rt,"box-sizing","border-box"),je(rt,"margin",0),je(rt,"top",n.top),je(rt,"left",n.left),je(rt,"width",n.width),je(rt,"height",n.height),je(rt,"opacity","0.8"),je(rt,"position",la?"absolute":"fixed"),je(rt,"zIndex","100000"),je(rt,"pointerEvents","none"),Xe.ghost=rt,t.appendChild(rt),je(rt,"transform-origin",Vp/parseInt(rt.style.width)*100+"% "+jp/parseInt(rt.style.height)*100+"%")}},_onDragStart:function(t,n){var r=this,s=t.dataTransfer,o=r.options;if(yn("dragStart",this,{evt:t}),Xe.eventCanceled){this._onDrop();return}yn("setupClone",this),Xe.eventCanceled||(Ft=_f(Se),Ft.draggable=!1,Ft.style["will-change"]="",this._hideClone(),$t(Ft,this.options.chosenClass,!1),Xe.clone=Ft),r.cloneId=tl(function(){yn("clone",r),!Xe.eventCanceled&&(r.options.removeCloneOnHide||St.insertBefore(Ft,Se),r._hideClone(),dn({sortable:r,name:"clone"}))}),!n&&$t(Se,o.dragClass,!0),n?(vl=!0,r._loopId=setInterval(r._emulateDragOver,50)):(ot(document,"mouseup",r._onDrop),ot(document,"touchend",r._onDrop),ot(document,"touchcancel",r._onDrop),s&&(s.effectAllowed="move",o.setData&&o.setData.call(r,s,Se)),lt(document,"drop",r),je(Se,"transform","translateZ(0)")),Js=!0,r._dragStartId=tl(r._dragStarted.bind(r,n,t)),lt(document,"selectstart",r),Go=!0,ci&&je(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,r=t.target,s,o,i,a=this.options,l=a.group,u=Xe.active,d=ia===l,m=a.sort,f=Jt||u,p,h=this,_=!1;if(Kc)return;function g(ge,Re){yn(ge,h,hr({evt:t,isOwner:d,axis:p?"vertical":"horizontal",revert:i,dragRect:s,targetRect:o,canSort:m,fromSortable:f,target:r,completed:w,onMove:function(he,X){return ua(St,n,Se,s,he,Et(he),t,X)},changed:S},Re))}function b(){g("dragOverAnimationCapture"),h.captureAnimationState(),h!==f&&f.captureAnimationState()}function w(ge){return g("dragOverCompleted",{insertion:ge}),ge&&(d?u._hideClone():u._showClone(h),h!==f&&($t(Se,Jt?Jt.options.ghostClass:u.options.ghostClass,!1),$t(Se,a.ghostClass,!0)),Jt!==h&&h!==Xe.active?Jt=h:h===Xe.active&&Jt&&(Jt=null),f===h&&(h._ignoreWhileAnimating=r),h.animateAll(function(){g("dragOverAnimationComplete"),h._ignoreWhileAnimating=null}),h!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(r===Se&&!Se.animated||r===n&&!r.animated)&&(Us=null),!a.dragoverBubble&&!t.rootEl&&r!==document&&(Se.parentNode[nn]._isOutsideThisEl(t.target),!ge&&ds(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),_=!0}function S(){zn=Rt(Se),Hr=Rt(Se,a.draggable),dn({sortable:h,name:"change",toEl:n,newIndex:zn,newDraggableIndex:Hr,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),r=Qn(r,a.draggable,n,!0),g("dragOver"),Xe.eventCanceled)return _;if(Se.contains(t.target)||r.animated&&r.animatingX&&r.animatingY||h._ignoreWhileAnimating===r)return w(!1);if(vl=!1,u&&!a.disabled&&(d?m||(i=Dt!==St):Jt===this||(this.lastPutMode=ia.checkPull(this,u,Se,t))&&l.checkPut(this,u,Se,t))){if(p=this._getDirection(t,r)==="vertical",s=Et(Se),g("dragOverValid"),Xe.eventCanceled)return _;if(i)return Dt=St,b(),this._hideClone(),g("revert"),Xe.eventCanceled||(_s?St.insertBefore(Se,_s):St.appendChild(Se)),w(!0);var x=hf(n,a.draggable);if(!x||K$(t,p,this)&&!x.animated){if(x===Se)return w(!1);if(x&&n===t.target&&(r=x),r&&(o=Et(r)),ua(St,n,Se,s,r,o,t,!!r)!==!1)return b(),n.appendChild(Se),Dt=n,S(),w(!0)}else if(x&&G$(t,p,this)){var $=bo(n,0,a,!0);if($===Se)return w(!1);if(r=$,o=Et(r),ua(St,n,Se,s,r,o,t,!1)!==!1)return b(),n.insertBefore(Se,$),Dt=n,S(),w(!0)}else if(r.parentNode===n){o=Et(r);var A=0,I,V=Se.parentNode!==n,O=!B$(Se.animated&&Se.toRect||s,r.animated&&r.toRect||o,p),N=p?"top":"left",G=Rp(r,"top","top")||Rp(Se,"top","top"),F=G?G.scrollTop:void 0;Us!==r&&(I=o[N],pi=!1,aa=!O&&a.invertSwap||V),A=Y$(t,r,o,p,O?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,aa,Us===r);var B;if(A!==0){var Y=Rt(Se);do Y-=A,B=Dt.children[Y];while(B&&(je(B,"display")==="none"||B===rt))}if(A===0||B===r)return w(!1);Us=r,mi=A;var de=r.nextElementSibling,te=!1;te=A===1;var le=ua(St,n,Se,s,r,o,t,te);if(le!==!1)return(le===1||le===-1)&&(te=le===1),Kc=!0,setTimeout(W$,30),b(),te&&!de?n.appendChild(Se):r.parentNode.insertBefore(Se,te?de:r),G&&Py(G,0,F-G.scrollTop),Dt=Se.parentNode,I!==void 0&&!aa&&(el=Math.abs(I-Et(r)[N])),S(),w(!0)}if(n.contains(Se))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){ot(document,"mousemove",this._onTouchMove),ot(document,"touchmove",this._onTouchMove),ot(document,"pointermove",this._onTouchMove),ot(document,"dragover",ds),ot(document,"mousemove",ds),ot(document,"touchmove",ds)},_offUpEvents:function(){var t=this.el.ownerDocument;ot(t,"mouseup",this._onDrop),ot(t,"touchend",this._onDrop),ot(t,"pointerup",this._onDrop),ot(t,"touchcancel",this._onDrop),ot(document,"selectstart",this)},_onDrop:function(t){var n=this.el,r=this.options;if(zn=Rt(Se),Hr=Rt(Se,r.draggable),yn("drop",this,{evt:t}),Dt=Se&&Se.parentNode,zn=Rt(Se),Hr=Rt(Se,r.draggable),Xe.eventCanceled){this._nulling();return}Js=!1,aa=!1,pi=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Yc(this.cloneId),Yc(this._dragStartId),this.nativeDraggable&&(ot(document,"drop",this),ot(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),ci&&je(document.body,"user-select",""),je(Se,"transform",""),t&&(Go&&(t.cancelable&&t.preventDefault(),!r.dropBubble&&t.stopPropagation()),rt&&rt.parentNode&&rt.parentNode.removeChild(rt),(St===Dt||Jt&&Jt.lastPutMode!=="clone")&&Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),Se&&(this.nativeDraggable&&ot(Se,"dragend",this),Zu(Se),Se.style["will-change"]="",Go&&!Js&&$t(Se,Jt?Jt.options.ghostClass:this.options.ghostClass,!1),$t(Se,this.options.chosenClass,!1),dn({sortable:this,name:"unchoose",toEl:Dt,newIndex:null,newDraggableIndex:null,originalEvent:t}),St!==Dt?(zn>=0&&(dn({rootEl:Dt,name:"add",toEl:Dt,fromEl:St,originalEvent:t}),dn({sortable:this,name:"remove",toEl:Dt,originalEvent:t}),dn({rootEl:Dt,name:"sort",toEl:Dt,fromEl:St,originalEvent:t}),dn({sortable:this,name:"sort",toEl:Dt,originalEvent:t})),Jt&&Jt.save()):zn!==eo&&zn>=0&&(dn({sortable:this,name:"update",toEl:Dt,originalEvent:t}),dn({sortable:this,name:"sort",toEl:Dt,originalEvent:t})),Xe.active&&((zn==null||zn===-1)&&(zn=eo,Hr=fi),dn({sortable:this,name:"end",toEl:Dt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){yn("nulling",this),St=Se=Dt=rt=_s=Ft=Qa=qr=cs=Kn=Go=zn=Hr=eo=fi=Us=mi=Jt=ia=Xe.dragged=Xe.ghost=Xe.clone=Xe.active=null,wl.forEach(function(t){t.checked=!0}),wl.length=Gu=Ku=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Se&&(this._onDragOver(t),q$(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,r=this.el.children,s=0,o=r.length,i=this.options;s<o;s++)n=r[s],Qn(n,i.draggable,this.el,!1)&&t.push(n.getAttribute(i.dataIdAttr)||J$(n));return t},sort:function(t,n){var r={},s=this.el;this.toArray().forEach(function(o,i){var a=s.children[i];Qn(a,this.options.draggable,s,!1)&&(r[o]=a)},this),n&&this.captureAnimationState(),t.forEach(function(o){r[o]&&(s.removeChild(r[o]),s.appendChild(r[o]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return Qn(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var r=this.options;if(n===void 0)return r[t];var s=Li.modifyOption(this,t,n);typeof s!="undefined"?r[t]=s:r[t]=n,t==="group"&&Iy(r)},destroy:function(){yn("destroy",this);var t=this.el;t[nn]=null,ot(t,"mousedown",this._onTapStart),ot(t,"touchstart",this._onTapStart),ot(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(ot(t,"dragover",this),ot(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),bl.splice(bl.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!qr){if(yn("hideClone",this),Xe.eventCanceled)return;je(Ft,"display","none"),this.options.removeCloneOnHide&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),qr=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(qr){if(yn("showClone",this),Xe.eventCanceled)return;Se.parentNode==St&&!this.options.group.revertClone?St.insertBefore(Ft,Se):_s?St.insertBefore(Ft,_s):St.appendChild(Ft),this.options.group.revertClone&&this.animate(Se,Ft),je(Ft,"display",""),qr=!1}}};function q$(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ua(e,t,n,r,s,o,i,a){var l,u=e[nn],d=u.options.onMove,m;return window.CustomEvent&&!Tr&&!Ri?l=new CustomEvent("move",{bubbles:!0,cancelable:!0}):(l=document.createEvent("Event"),l.initEvent("move",!0,!0)),l.to=t,l.from=e,l.dragged=n,l.draggedRect=r,l.related=s||t,l.relatedRect=o||Et(t),l.willInsertAfter=a,l.originalEvent=i,e.dispatchEvent(l),d&&(m=d.call(u,l,i)),m}function Zu(e){e.draggable=!1}function W$(){Kc=!1}function G$(e,t,n){var r=Et(bo(n.el,0,n.options,!0)),s=10;return t?e.clientX<r.left-s||e.clientY<r.top&&e.clientX<r.right:e.clientY<r.top-s||e.clientY<r.bottom&&e.clientX<r.left}function K$(e,t,n){var r=Et(hf(n.el,n.options.draggable)),s=10;return t?e.clientX>r.right+s||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+s}function Y$(e,t,n,r,s,o,i,a){var l=r?e.clientY:e.clientX,u=r?n.height:n.width,d=r?n.top:n.left,m=r?n.bottom:n.right,f=!1;if(!i){if(a&&el<u*s){if(!pi&&(mi===1?l>d+u*o/2:l<m-u*o/2)&&(pi=!0),pi)f=!0;else if(mi===1?l<d+el:l>m-el)return-mi}else if(l>d+u*(1-s)/2&&l<m-u*(1-s)/2)return Z$(t)}return f=f||i,f&&(l<d+u*o/2||l>m-u*o/2)?l>d+u/2?1:-1:0}function Z$(e){return Rt(Se)<Rt(e)?1:-1}function J$(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;n--;)r+=t.charCodeAt(n);return r.toString(36)}function X$(e){wl.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var r=t[n];r.checked&&wl.push(r)}}function tl(e){return setTimeout(e,0)}function Yc(e){return clearTimeout(e)}ou&&lt(document,"touchmove",function(e){(Xe.active||Js)&&e.cancelable&&e.preventDefault()});Xe.utils={on:lt,off:ot,css:je,find:Oy,is:function(t,n){return!!Qn(t,n,t,!1)},extend:I$,throttle:Ty,closest:Qn,toggleClass:$t,clone:_f,index:Rt,nextTick:tl,cancelNextTick:Yc,detectDirection:Fy,getChild:bo};Xe.get=function(e){return e[nn]};Xe.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach(function(r){if(!r.prototype||!r.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(r));r.utils&&(Xe.utils=hr(hr({},Xe.utils),r.utils)),Li.mount(r)})};Xe.create=function(e,t){return new Xe(e,t)};Xe.version=T$;var Ut=[],Ko,Zc,Jc=!1,Ju,Xu,Cl,Yo;function Q$(){function e(){this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(var t in this)t.charAt(0)==="_"&&typeof this[t]=="function"&&(this[t]=this[t].bind(this))}return e.prototype={dragStarted:function(n){var r=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):r.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var r=n.originalEvent;!this.options.dragOverBubble&&!r.rootEl&&this._handleAutoScroll(r)},drop:function(){this.sortable.nativeDraggable?ot(document,"dragover",this._handleAutoScroll):(ot(document,"pointermove",this._handleFallbackAutoScroll),ot(document,"touchmove",this._handleFallbackAutoScroll),ot(document,"mousemove",this._handleFallbackAutoScroll)),Hp(),nl(),M$()},nulling:function(){Cl=Zc=Ko=Jc=Yo=Ju=Xu=null,Ut.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,r){var s=this,o=(n.touches?n.touches[0]:n).clientX,i=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(o,i);if(Cl=n,r||this.options.forceAutoScrollFallback||Ri||Tr||ci){Qu(n,this.options,a,r);var l=Gr(a,!0);Jc&&(!Yo||o!==Ju||i!==Xu)&&(Yo&&Hp(),Yo=setInterval(function(){var u=Gr(document.elementFromPoint(o,i),!0);u!==l&&(l=u,nl()),Qu(n,s.options,u,r)},10),Ju=o,Xu=i)}else{if(!this.options.bubbleScroll||Gr(a,!0)===pr()){nl();return}Qu(n,this.options,Gr(a,!1),!1)}}},qn(e,{pluginName:"scroll",initializeByDefault:!0})}function nl(){Ut.forEach(function(e){clearInterval(e.pid)}),Ut=[]}function Hp(){clearInterval(Yo)}var Qu=Ty(function(e,t,n,r){if(!!t.scroll){var s=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,i=t.scrollSensitivity,a=t.scrollSpeed,l=pr(),u=!1,d;Zc!==n&&(Zc=n,nl(),Ko=t.scroll,d=t.scrollFn,Ko===!0&&(Ko=Gr(n,!0)));var m=0,f=Ko;do{var p=f,h=Et(p),_=h.top,g=h.bottom,b=h.left,w=h.right,S=h.width,x=h.height,$=void 0,A=void 0,I=p.scrollWidth,V=p.scrollHeight,O=je(p),N=p.scrollLeft,G=p.scrollTop;p===l?($=S<I&&(O.overflowX==="auto"||O.overflowX==="scroll"||O.overflowX==="visible"),A=x<V&&(O.overflowY==="auto"||O.overflowY==="scroll"||O.overflowY==="visible")):($=S<I&&(O.overflowX==="auto"||O.overflowX==="scroll"),A=x<V&&(O.overflowY==="auto"||O.overflowY==="scroll"));var F=$&&(Math.abs(w-s)<=i&&N+S<I)-(Math.abs(b-s)<=i&&!!N),B=A&&(Math.abs(g-o)<=i&&G+x<V)-(Math.abs(_-o)<=i&&!!G);if(!Ut[m])for(var Y=0;Y<=m;Y++)Ut[Y]||(Ut[Y]={});(Ut[m].vx!=F||Ut[m].vy!=B||Ut[m].el!==p)&&(Ut[m].el=p,Ut[m].vx=F,Ut[m].vy=B,clearInterval(Ut[m].pid),(F!=0||B!=0)&&(u=!0,Ut[m].pid=setInterval(function(){r&&this.layer===0&&Xe.active._onTouchMove(Cl);var de=Ut[this.layer].vy?Ut[this.layer].vy*a:0,te=Ut[this.layer].vx?Ut[this.layer].vx*a:0;typeof d=="function"&&d.call(Xe.dragged.parentNode[nn],te,de,e,Cl,Ut[this.layer].el)!=="continue"||Py(Ut[this.layer].el,te,de)}.bind({layer:m}),24))),m++}while(t.bubbleScroll&&f!==l&&(f=Gr(f,!1)));Jc=u}},30),Ly=function(t){var n=t.originalEvent,r=t.putSortable,s=t.dragEl,o=t.activeSortable,i=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!n){var u=r||o;a();var d=n.changedTouches&&n.changedTouches.length?n.changedTouches[0]:n,m=document.elementFromPoint(d.clientX,d.clientY);l(),u&&!u.el.contains(m)&&(i("spill"),this.onSpill({dragEl:s,putSortable:r}))}};function gf(){}gf.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,r=t.putSortable;this.sortable.captureAnimationState(),r&&r.captureAnimationState();var s=bo(this.sortable.el,this.startIndex,this.options);s?this.sortable.el.insertBefore(n,s):this.sortable.el.appendChild(n),this.sortable.animateAll(),r&&r.animateAll()},drop:Ly};qn(gf,{pluginName:"revertOnSpill"});function yf(){}yf.prototype={onSpill:function(t){var n=t.dragEl,r=t.putSortable,s=r||this.sortable;s.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),s.animateAll()},drop:Ly};qn(yf,{pluginName:"removeOnSpill"});var Vn;function ez(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var r=n.dragEl;Vn=r},dragOverValid:function(n){var r=n.completed,s=n.target,o=n.onMove,i=n.activeSortable,a=n.changed,l=n.cancel;if(!!i.options.swap){var u=this.sortable.el,d=this.options;if(s&&s!==u){var m=Vn;o(s)!==!1?($t(s,d.swapClass,!0),Vn=s):Vn=null,m&&m!==Vn&&$t(m,d.swapClass,!1)}a(),r(!0),l()}},drop:function(n){var r=n.activeSortable,s=n.putSortable,o=n.dragEl,i=s||this.sortable,a=this.options;Vn&&$t(Vn,a.swapClass,!1),Vn&&(a.swap||s&&s.options.swap)&&o!==Vn&&(i.captureAnimationState(),i!==r&&r.captureAnimationState(),tz(o,Vn),i.animateAll(),i!==r&&r.animateAll())},nulling:function(){Vn=null}},qn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Vn}}})}function tz(e,t){var n=e.parentNode,r=t.parentNode,s,o;!n||!r||n.isEqualNode(t)||r.isEqualNode(e)||(s=Rt(e),o=Rt(t),n.isEqualNode(r)&&s<o&&o++,n.insertBefore(t,n.children[s]),r.insertBefore(e,r.children[o]))}var tt=[],$n=[],Fo,Yn,Io=!1,vn=!1,qs=!1,xt,Mo,ca;function nz(){function e(t){for(var n in this)n.charAt(0)==="_"&&typeof this[n]=="function"&&(this[n]=this[n].bind(this));t.options.supportPointer?lt(document,"pointerup",this._deselectMultiDrag):(lt(document,"mouseup",this._deselectMultiDrag),lt(document,"touchend",this._deselectMultiDrag)),lt(document,"keydown",this._checkKeyDown),lt(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(s,o){var i="";tt.length&&Yn===t?tt.forEach(function(a,l){i+=(l?", ":"")+a.textContent}):i=o.textContent,s.setData("Text",i)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var r=n.dragEl;xt=r},delayEnded:function(){this.isMultiDrag=~tt.indexOf(xt)},setupClone:function(n){var r=n.sortable,s=n.cancel;if(!!this.isMultiDrag){for(var o=0;o<tt.length;o++)$n.push(_f(tt[o])),$n[o].sortableIndex=tt[o].sortableIndex,$n[o].draggable=!1,$n[o].style["will-change"]="",$t($n[o],this.options.selectedClass,!1),tt[o]===xt&&$t($n[o],this.options.chosenClass,!1);r._hideClone(),s()}},clone:function(n){var r=n.sortable,s=n.rootEl,o=n.dispatchSortableEvent,i=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||tt.length&&Yn===r&&(Up(!0,s),o("clone"),i())},showClone:function(n){var r=n.cloneNowShown,s=n.rootEl,o=n.cancel;!this.isMultiDrag||(Up(!1,s),$n.forEach(function(i){je(i,"display","")}),r(),ca=!1,o())},hideClone:function(n){var r=this;n.sortable;var s=n.cloneNowHidden,o=n.cancel;!this.isMultiDrag||($n.forEach(function(i){je(i,"display","none"),r.options.removeCloneOnHide&&i.parentNode&&i.parentNode.removeChild(i)}),s(),ca=!0,o())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Yn&&Yn.multiDrag._deselectMultiDrag(),tt.forEach(function(r){r.sortableIndex=Rt(r)}),tt=tt.sort(function(r,s){return r.sortableIndex-s.sortableIndex}),qs=!0},dragStarted:function(n){var r=this,s=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(s.captureAnimationState(),this.options.animation)){tt.forEach(function(i){i!==xt&&je(i,"position","absolute")});var o=Et(xt,!1,!0,!0);tt.forEach(function(i){i!==xt&&Np(i,o)}),vn=!0,Io=!0}s.animateAll(function(){vn=!1,Io=!1,r.options.animation&&tt.forEach(function(i){qu(i)}),r.options.sort&&da()})}},dragOver:function(n){var r=n.target,s=n.completed,o=n.cancel;vn&&~tt.indexOf(r)&&(s(!1),o())},revert:function(n){var r=n.fromSortable,s=n.rootEl,o=n.sortable,i=n.dragRect;tt.length>1&&(tt.forEach(function(a){o.addAnimationState({target:a,rect:vn?Et(a):i}),qu(a),a.fromRect=i,r.removeAnimationState(a)}),vn=!1,rz(!this.options.removeCloneOnHide,s))},dragOverCompleted:function(n){var r=n.sortable,s=n.isOwner,o=n.insertion,i=n.activeSortable,a=n.parentEl,l=n.putSortable,u=this.options;if(o){if(s&&i._hideClone(),Io=!1,u.animation&&tt.length>1&&(vn||!s&&!i.options.sort&&!l)){var d=Et(xt,!1,!0,!0);tt.forEach(function(f){f!==xt&&(Np(f,d),a.appendChild(f))}),vn=!0}if(!s)if(vn||da(),tt.length>1){var m=ca;i._showClone(r),i.options.animation&&!ca&&m&&$n.forEach(function(f){i.addAnimationState({target:f,rect:Mo}),f.fromRect=Mo,f.thisAnimationDuration=null})}else i._showClone(r)}},dragOverAnimationCapture:function(n){var r=n.dragRect,s=n.isOwner,o=n.activeSortable;if(tt.forEach(function(a){a.thisAnimationDuration=null}),o.options.animation&&!s&&o.multiDrag.isMultiDrag){Mo=qn({},r);var i=xs(xt,!0);Mo.top-=i.f,Mo.left-=i.e}},dragOverAnimationComplete:function(){vn&&(vn=!1,da())},drop:function(n){var r=n.originalEvent,s=n.rootEl,o=n.parentEl,i=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,d=u||this.sortable;if(!!r){var m=this.options,f=o.children;if(!qs)if(m.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),$t(xt,m.selectedClass,!~tt.indexOf(xt)),~tt.indexOf(xt))tt.splice(tt.indexOf(xt),1),Fo=null,Wo({sortable:i,rootEl:s,name:"deselect",targetEl:xt,originalEvt:r});else{if(tt.push(xt),Wo({sortable:i,rootEl:s,name:"select",targetEl:xt,originalEvt:r}),r.shiftKey&&Fo&&i.el.contains(Fo)){var p=Rt(Fo),h=Rt(xt);if(~p&&~h&&p!==h){var _,g;for(h>p?(g=p,_=h):(g=h,_=p+1);g<_;g++)~tt.indexOf(f[g])||($t(f[g],m.selectedClass,!0),tt.push(f[g]),Wo({sortable:i,rootEl:s,name:"select",targetEl:f[g],originalEvt:r}))}}else Fo=xt;Yn=d}if(qs&&this.isMultiDrag){if(vn=!1,(o[nn].options.sort||o!==s)&&tt.length>1){var b=Et(xt),w=Rt(xt,":not(."+this.options.selectedClass+")");if(!Io&&m.animation&&(xt.thisAnimationDuration=null),d.captureAnimationState(),!Io&&(m.animation&&(xt.fromRect=b,tt.forEach(function(x){if(x.thisAnimationDuration=null,x!==xt){var $=vn?Et(x):b;x.fromRect=$,d.addAnimationState({target:x,rect:$})}})),da(),tt.forEach(function(x){f[w]?o.insertBefore(x,f[w]):o.appendChild(x),w++}),l===Rt(xt))){var S=!1;tt.forEach(function(x){if(x.sortableIndex!==Rt(x)){S=!0;return}}),S&&a("update")}tt.forEach(function(x){qu(x)}),d.animateAll()}Yn=d}(s===o||u&&u.lastPutMode!=="clone")&&$n.forEach(function(x){x.parentNode&&x.parentNode.removeChild(x)})}},nullingGlobal:function(){this.isMultiDrag=qs=!1,$n.length=0},destroyGlobal:function(){this._deselectMultiDrag(),ot(document,"pointerup",this._deselectMultiDrag),ot(document,"mouseup",this._deselectMultiDrag),ot(document,"touchend",this._deselectMultiDrag),ot(document,"keydown",this._checkKeyDown),ot(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof qs!="undefined"&&qs)&&Yn===this.sortable&&!(n&&Qn(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;tt.length;){var r=tt[0];$t(r,this.options.selectedClass,!1),tt.shift(),Wo({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:r,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},qn(e,{pluginName:"multiDrag",utils:{select:function(n){var r=n.parentNode[nn];!r||!r.options.multiDrag||~tt.indexOf(n)||(Yn&&Yn!==r&&(Yn.multiDrag._deselectMultiDrag(),Yn=r),$t(n,r.options.selectedClass,!0),tt.push(n))},deselect:function(n){var r=n.parentNode[nn],s=tt.indexOf(n);!r||!r.options.multiDrag||!~s||($t(n,r.options.selectedClass,!1),tt.splice(s,1))}},eventProperties:function(){var n=this,r=[],s=[];return tt.forEach(function(o){r.push({multiDragElement:o,index:o.sortableIndex});var i;vn&&o!==xt?i=-1:vn?i=Rt(o,":not(."+n.options.selectedClass+")"):i=Rt(o),s.push({multiDragElement:o,index:i})}),{items:E$(tt),clones:[].concat($n),oldIndicies:r,newIndicies:s}},optionListeners:{multiDragKey:function(n){return n=n.toLowerCase(),n==="ctrl"?n="Control":n.length>1&&(n=n.charAt(0).toUpperCase()+n.substr(1)),n}}})}function rz(e,t){tt.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function Up(e,t){$n.forEach(function(n,r){var s=t.children[n.sortableIndex+(e?Number(r):0)];s?t.insertBefore(n,s):t.appendChild(n)})}function da(){tt.forEach(function(e){e!==xt&&e.parentNode&&e.parentNode.removeChild(e)})}Xe.mount(new Q$);Xe.mount(yf,gf);var sz=Object.freeze(Object.defineProperty({__proto__:null,default:Xe,MultiDrag:nz,Sortable:Xe,Swap:ez},Symbol.toStringTag,{value:"Module"})),oz=cy(sz);(function(e,t){(function(r,s){e.exports=s(pf,oz)})(typeof self!="undefined"?self:an,function(n,r){return function(s){var o={};function i(a){if(o[a])return o[a].exports;var l=o[a]={i:a,l:!1,exports:{}};return s[a].call(l.exports,l,l.exports,i),l.l=!0,l.exports}return i.m=s,i.c=o,i.d=function(a,l,u){i.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},i.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},i.t=function(a,l){if(l&1&&(a=i(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(i.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var d in a)i.d(u,d,function(m){return a[m]}.bind(null,d));return u},i.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return i.d(l,"a",l),l},i.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},i.p="",i(i.s="fb15")}({"00ee":function(s,o,i){var a=i("b622"),l=a("toStringTag"),u={};u[l]="z",s.exports=String(u)==="[object z]"},"0366":function(s,o,i){var a=i("1c0b");s.exports=function(l,u,d){if(a(l),u===void 0)return l;switch(d){case 0:return function(){return l.call(u)};case 1:return function(m){return l.call(u,m)};case 2:return function(m,f){return l.call(u,m,f)};case 3:return function(m,f,p){return l.call(u,m,f,p)}}return function(){return l.apply(u,arguments)}}},"057f":function(s,o,i){var a=i("fc6a"),l=i("241c").f,u={}.toString,d=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],m=function(f){try{return l(f)}catch{return d.slice()}};s.exports.f=function(p){return d&&u.call(p)=="[object Window]"?m(p):l(a(p))}},"06cf":function(s,o,i){var a=i("83ab"),l=i("d1e7"),u=i("5c6c"),d=i("fc6a"),m=i("c04e"),f=i("5135"),p=i("0cfb"),h=Object.getOwnPropertyDescriptor;o.f=a?h:function(g,b){if(g=d(g),b=m(b,!0),p)try{return h(g,b)}catch{}if(f(g,b))return u(!l.f.call(g,b),g[b])}},"0cfb":function(s,o,i){var a=i("83ab"),l=i("d039"),u=i("cc12");s.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(s,o,i){var a=i("23e7"),l=i("d58f").left,u=i("a640"),d=i("ae40"),m=u("reduce"),f=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!m||!f},{reduce:function(h){return l(this,h,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(s,o,i){var a=i("c6b6"),l=i("9263");s.exports=function(u,d){var m=u.exec;if(typeof m=="function"){var f=m.call(u,d);if(typeof f!="object")throw TypeError("RegExp exec method returned something other than an Object or null");return f}if(a(u)!=="RegExp")throw TypeError("RegExp#exec called on incompatible receiver");return l.call(u,d)}},"159b":function(s,o,i){var a=i("da84"),l=i("fdbc"),u=i("17c2"),d=i("9112");for(var m in l){var f=a[m],p=f&&f.prototype;if(p&&p.forEach!==u)try{d(p,"forEach",u)}catch{p.forEach=u}}},"17c2":function(s,o,i){var a=i("b727").forEach,l=i("a640"),u=i("ae40"),d=l("forEach"),m=u("forEach");s.exports=!d||!m?function(p){return a(this,p,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(s,o,i){var a=i("d066");s.exports=a("document","documentElement")},"1c0b":function(s,o){s.exports=function(i){if(typeof i!="function")throw TypeError(String(i)+" is not a function");return i}},"1c7e":function(s,o,i){var a=i("b622"),l=a("iterator"),u=!1;try{var d=0,m={next:function(){return{done:!!d++}},return:function(){u=!0}};m[l]=function(){return this},Array.from(m,function(){throw 2})}catch{}s.exports=function(f,p){if(!p&&!u)return!1;var h=!1;try{var _={};_[l]=function(){return{next:function(){return{done:h=!0}}}},f(_)}catch{}return h}},"1d80":function(s,o){s.exports=function(i){if(i==null)throw TypeError("Can't call method on "+i);return i}},"1dde":function(s,o,i){var a=i("d039"),l=i("b622"),u=i("2d00"),d=l("species");s.exports=function(m){return u>=51||!a(function(){var f=[],p=f.constructor={};return p[d]=function(){return{foo:1}},f[m](Boolean).foo!==1})}},"23cb":function(s,o,i){var a=i("a691"),l=Math.max,u=Math.min;s.exports=function(d,m){var f=a(d);return f<0?l(f+m,0):u(f,m)}},"23e7":function(s,o,i){var a=i("da84"),l=i("06cf").f,u=i("9112"),d=i("6eeb"),m=i("ce4e"),f=i("e893"),p=i("94ca");s.exports=function(h,_){var g=h.target,b=h.global,w=h.stat,S,x,$,A,I,V;if(b?x=a:w?x=a[g]||m(g,{}):x=(a[g]||{}).prototype,x)for($ in _){if(I=_[$],h.noTargetGet?(V=l(x,$),A=V&&V.value):A=x[$],S=p(b?$:g+(w?".":"#")+$,h.forced),!S&&A!==void 0){if(typeof I==typeof A)continue;f(I,A)}(h.sham||A&&A.sham)&&u(I,"sham",!0),d(x,$,I,h)}}},"241c":function(s,o,i){var a=i("ca84"),l=i("7839"),u=l.concat("length","prototype");o.f=Object.getOwnPropertyNames||function(m){return a(m,u)}},"25f0":function(s,o,i){var a=i("6eeb"),l=i("825a"),u=i("d039"),d=i("ad6d"),m="toString",f=RegExp.prototype,p=f[m],h=u(function(){return p.call({source:"a",flags:"b"})!="/a/b"}),_=p.name!=m;(h||_)&&a(RegExp.prototype,m,function(){var b=l(this),w=String(b.source),S=b.flags,x=String(S===void 0&&b instanceof RegExp&&!("flags"in f)?d.call(b):S);return"/"+w+"/"+x},{unsafe:!0})},"2ca0":function(s,o,i){var a=i("23e7"),l=i("06cf").f,u=i("50c4"),d=i("5a34"),m=i("1d80"),f=i("ab13"),p=i("c430"),h="".startsWith,_=Math.min,g=f("startsWith"),b=!p&&!g&&!!function(){var w=l(String.prototype,"startsWith");return w&&!w.writable}();a({target:"String",proto:!0,forced:!b&&!g},{startsWith:function(S){var x=String(m(this));d(S);var $=u(_(arguments.length>1?arguments[1]:void 0,x.length)),A=String(S);return h?h.call(x,A,$):x.slice($,$+A.length)===A}})},"2d00":function(s,o,i){var a=i("da84"),l=i("342f"),u=a.process,d=u&&u.versions,m=d&&d.v8,f,p;m?(f=m.split("."),p=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(p=f[1]))),s.exports=p&&+p},"342f":function(s,o,i){var a=i("d066");s.exports=a("navigator","userAgent")||""},"35a1":function(s,o,i){var a=i("f5df"),l=i("3f8c"),u=i("b622"),d=u("iterator");s.exports=function(m){if(m!=null)return m[d]||m["@@iterator"]||l[a(m)]}},"37e8":function(s,o,i){var a=i("83ab"),l=i("9bf2"),u=i("825a"),d=i("df75");s.exports=a?Object.defineProperties:function(f,p){u(f);for(var h=d(p),_=h.length,g=0,b;_>g;)l.f(f,b=h[g++],p[b]);return f}},"3bbe":function(s,o,i){var a=i("861d");s.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(s,o,i){var a=i("6547").charAt,l=i("69f3"),u=i("7dd0"),d="String Iterator",m=l.set,f=l.getterFor(d);u(String,"String",function(p){m(this,{type:d,string:String(p),index:0})},function(){var h=f(this),_=h.string,g=h.index,b;return g>=_.length?{value:void 0,done:!0}:(b=a(_,g),h.index+=b.length,{value:b,done:!1})})},"3f8c":function(s,o){s.exports={}},"4160":function(s,o,i){var a=i("23e7"),l=i("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(s,o,i){var a=i("da84");s.exports=a},"44ad":function(s,o,i){var a=i("d039"),l=i("c6b6"),u="".split;s.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return l(d)=="String"?u.call(d,""):Object(d)}:Object},"44d2":function(s,o,i){var a=i("b622"),l=i("7c73"),u=i("9bf2"),d=a("unscopables"),m=Array.prototype;m[d]==null&&u.f(m,d,{configurable:!0,value:l(null)}),s.exports=function(f){m[d][f]=!0}},"44e7":function(s,o,i){var a=i("861d"),l=i("c6b6"),u=i("b622"),d=u("match");s.exports=function(m){var f;return a(m)&&((f=m[d])!==void 0?!!f:l(m)=="RegExp")}},"4930":function(s,o,i){var a=i("d039");s.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(s,o,i){var a=i("fc6a"),l=i("50c4"),u=i("23cb"),d=function(m){return function(f,p,h){var _=a(f),g=l(_.length),b=u(h,g),w;if(m&&p!=p){for(;g>b;)if(w=_[b++],w!=w)return!0}else for(;g>b;b++)if((m||b in _)&&_[b]===p)return m||b||0;return!m&&-1}};s.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(s,o,i){var a=i("23e7"),l=i("b727").filter,u=i("1dde"),d=i("ae40"),m=u("filter"),f=d("filter");a({target:"Array",proto:!0,forced:!m||!f},{filter:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(s,o,i){var a=i("0366"),l=i("7b0b"),u=i("9bdd"),d=i("e95a"),m=i("50c4"),f=i("8418"),p=i("35a1");s.exports=function(_){var g=l(_),b=typeof this=="function"?this:Array,w=arguments.length,S=w>1?arguments[1]:void 0,x=S!==void 0,$=p(g),A=0,I,V,O,N,G,F;if(x&&(S=a(S,w>2?arguments[2]:void 0,2)),$!=null&&!(b==Array&&d($)))for(N=$.call(g),G=N.next,V=new b;!(O=G.call(N)).done;A++)F=x?u(N,S,[O.value,A],!0):O.value,f(V,A,F);else for(I=m(g.length),V=new b(I);I>A;A++)F=x?S(g[A],A):g[A],f(V,A,F);return V.length=A,V}},"4fad":function(s,o,i){var a=i("23e7"),l=i("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return l(d)}})},"50c4":function(s,o,i){var a=i("a691"),l=Math.min;s.exports=function(u){return u>0?l(a(u),9007199254740991):0}},"5135":function(s,o){var i={}.hasOwnProperty;s.exports=function(a,l){return i.call(a,l)}},"5319":function(s,o,i){var a=i("d784"),l=i("825a"),u=i("7b0b"),d=i("50c4"),m=i("a691"),f=i("1d80"),p=i("8aa5"),h=i("14c3"),_=Math.max,g=Math.min,b=Math.floor,w=/\$([$&'`]|\d\d?|<[^>]*>)/g,S=/\$([$&'`]|\d\d?)/g,x=function($){return $===void 0?$:String($)};a("replace",2,function($,A,I,V){var O=V.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,N=V.REPLACE_KEEPS_$0,G=O?"$":"$0";return[function(Y,de){var te=f(this),le=Y==null?void 0:Y[$];return le!==void 0?le.call(Y,te,de):A.call(String(te),Y,de)},function(B,Y){if(!O&&N||typeof Y=="string"&&Y.indexOf(G)===-1){var de=I(A,B,this,Y);if(de.done)return de.value}var te=l(B),le=String(this),ge=typeof Y=="function";ge||(Y=String(Y));var Re=te.global;if(Re){var Be=te.unicode;te.lastIndex=0}for(var he=[];;){var X=h(te,le);if(X===null||(he.push(X),!Re))break;var fe=String(X[0]);fe===""&&(te.lastIndex=p(le,d(te.lastIndex),Be))}for(var we="",H=0,oe=0;oe<he.length;oe++){X=he[oe];for(var se=String(X[0]),be=_(g(m(X.index),le.length),0),Ve=[],Ie=1;Ie<X.length;Ie++)Ve.push(x(X[Ie]));var $e=X.groups;if(ge){var Ae=[se].concat(Ve,be,le);$e!==void 0&&Ae.push($e);var z=String(Y.apply(void 0,Ae))}else z=F(se,le,be,Ve,$e,Y);be>=H&&(we+=le.slice(H,be)+z,H=be+se.length)}return we+le.slice(H)}];function F(B,Y,de,te,le,ge){var Re=de+B.length,Be=te.length,he=S;return le!==void 0&&(le=u(le),he=w),A.call(ge,he,function(X,fe){var we;switch(fe.charAt(0)){case"$":return"$";case"&":return B;case"`":return Y.slice(0,de);case"'":return Y.slice(Re);case"<":we=le[fe.slice(1,-1)];break;default:var H=+fe;if(H===0)return X;if(H>Be){var oe=b(H/10);return oe===0?X:oe<=Be?te[oe-1]===void 0?fe.charAt(1):te[oe-1]+fe.charAt(1):X}we=te[H-1]}return we===void 0?"":we})}})},"5692":function(s,o,i){var a=i("c430"),l=i("c6cd");(s.exports=function(u,d){return l[u]||(l[u]=d!==void 0?d:{})})("versions",[]).push({version:"3.6.5",mode:a?"pure":"global",copyright:"\xA9 2020 Denis Pushkarev (zloirock.ru)"})},"56ef":function(s,o,i){var a=i("d066"),l=i("241c"),u=i("7418"),d=i("825a");s.exports=a("Reflect","ownKeys")||function(f){var p=l.f(d(f)),h=u.f;return h?p.concat(h(f)):p}},"5a34":function(s,o,i){var a=i("44e7");s.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(s,o){s.exports=function(i,a){return{enumerable:!(i&1),configurable:!(i&2),writable:!(i&4),value:a}}},"5db7":function(s,o,i){var a=i("23e7"),l=i("a2bf"),u=i("7b0b"),d=i("50c4"),m=i("1c0b"),f=i("65f0");a({target:"Array",proto:!0},{flatMap:function(h){var _=u(this),g=d(_.length),b;return m(h),b=f(_,0),b.length=l(b,_,_,g,0,1,h,arguments.length>1?arguments[1]:void 0),b}})},"6547":function(s,o,i){var a=i("a691"),l=i("1d80"),u=function(d){return function(m,f){var p=String(l(m)),h=a(f),_=p.length,g,b;return h<0||h>=_?d?"":void 0:(g=p.charCodeAt(h),g<55296||g>56319||h+1===_||(b=p.charCodeAt(h+1))<56320||b>57343?d?p.charAt(h):g:d?p.slice(h,h+2):(g-55296<<10)+(b-56320)+65536)}};s.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(s,o,i){var a=i("861d"),l=i("e8b5"),u=i("b622"),d=u("species");s.exports=function(m,f){var p;return l(m)&&(p=m.constructor,typeof p=="function"&&(p===Array||l(p.prototype))?p=void 0:a(p)&&(p=p[d],p===null&&(p=void 0))),new(p===void 0?Array:p)(f===0?0:f)}},"69f3":function(s,o,i){var a=i("7f9a"),l=i("da84"),u=i("861d"),d=i("9112"),m=i("5135"),f=i("f772"),p=i("d012"),h=l.WeakMap,_,g,b,w=function(O){return b(O)?g(O):_(O,{})},S=function(O){return function(N){var G;if(!u(N)||(G=g(N)).type!==O)throw TypeError("Incompatible receiver, "+O+" required");return G}};if(a){var x=new h,$=x.get,A=x.has,I=x.set;_=function(O,N){return I.call(x,O,N),N},g=function(O){return $.call(x,O)||{}},b=function(O){return A.call(x,O)}}else{var V=f("state");p[V]=!0,_=function(O,N){return d(O,V,N),N},g=function(O){return m(O,V)?O[V]:{}},b=function(O){return m(O,V)}}s.exports={set:_,get:g,has:b,enforce:w,getterFor:S}},"6eeb":function(s,o,i){var a=i("da84"),l=i("9112"),u=i("5135"),d=i("ce4e"),m=i("8925"),f=i("69f3"),p=f.get,h=f.enforce,_=String(String).split("String");(s.exports=function(g,b,w,S){var x=S?!!S.unsafe:!1,$=S?!!S.enumerable:!1,A=S?!!S.noTargetGet:!1;if(typeof w=="function"&&(typeof b=="string"&&!u(w,"name")&&l(w,"name",b),h(w).source=_.join(typeof b=="string"?b:"")),g===a){$?g[b]=w:d(b,w);return}else x?!A&&g[b]&&($=!0):delete g[b];$?g[b]=w:l(g,b,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&p(this).source||m(this)})},"6f53":function(s,o,i){var a=i("83ab"),l=i("df75"),u=i("fc6a"),d=i("d1e7").f,m=function(f){return function(p){for(var h=u(p),_=l(h),g=_.length,b=0,w=[],S;g>b;)S=_[b++],(!a||d.call(h,S))&&w.push(f?[S,h[S]]:h[S]);return w}};s.exports={entries:m(!0),values:m(!1)}},"73d9":function(s,o,i){var a=i("44d2");a("flatMap")},"7418":function(s,o){o.f=Object.getOwnPropertySymbols},"746f":function(s,o,i){var a=i("428f"),l=i("5135"),u=i("e538"),d=i("9bf2").f;s.exports=function(m){var f=a.Symbol||(a.Symbol={});l(f,m)||d(f,m,{value:u.f(m)})}},"7839":function(s,o){s.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(s,o,i){var a=i("1d80");s.exports=function(l){return Object(a(l))}},"7c73":function(s,o,i){var a=i("825a"),l=i("37e8"),u=i("7839"),d=i("d012"),m=i("1be4"),f=i("cc12"),p=i("f772"),h=">",_="<",g="prototype",b="script",w=p("IE_PROTO"),S=function(){},x=function(O){return _+b+h+O+_+"/"+b+h},$=function(O){O.write(x("")),O.close();var N=O.parentWindow.Object;return O=null,N},A=function(){var O=f("iframe"),N="java"+b+":",G;return O.style.display="none",m.appendChild(O),O.src=String(N),G=O.contentWindow.document,G.open(),G.write(x("document.F=Object")),G.close(),G.F},I,V=function(){try{I=document.domain&&new ActiveXObject("htmlfile")}catch{}V=I?$(I):A();for(var O=u.length;O--;)delete V[g][u[O]];return V()};d[w]=!0,s.exports=Object.create||function(N,G){var F;return N!==null?(S[g]=a(N),F=new S,S[g]=null,F[w]=N):F=V(),G===void 0?F:l(F,G)}},"7dd0":function(s,o,i){var a=i("23e7"),l=i("9ed3"),u=i("e163"),d=i("d2bb"),m=i("d44e"),f=i("9112"),p=i("6eeb"),h=i("b622"),_=i("c430"),g=i("3f8c"),b=i("ae93"),w=b.IteratorPrototype,S=b.BUGGY_SAFARI_ITERATORS,x=h("iterator"),$="keys",A="values",I="entries",V=function(){return this};s.exports=function(O,N,G,F,B,Y,de){l(G,N,F);var te=function(oe){if(oe===B&&he)return he;if(!S&&oe in Re)return Re[oe];switch(oe){case $:return function(){return new G(this,oe)};case A:return function(){return new G(this,oe)};case I:return function(){return new G(this,oe)}}return function(){return new G(this)}},le=N+" Iterator",ge=!1,Re=O.prototype,Be=Re[x]||Re["@@iterator"]||B&&Re[B],he=!S&&Be||te(B),X=N=="Array"&&Re.entries||Be,fe,we,H;if(X&&(fe=u(X.call(new O)),w!==Object.prototype&&fe.next&&(!_&&u(fe)!==w&&(d?d(fe,w):typeof fe[x]!="function"&&f(fe,x,V)),m(fe,le,!0,!0),_&&(g[le]=V))),B==A&&Be&&Be.name!==A&&(ge=!0,he=function(){return Be.call(this)}),(!_||de)&&Re[x]!==he&&f(Re,x,he),g[N]=he,B)if(we={values:te(A),keys:Y?he:te($),entries:te(I)},de)for(H in we)(S||ge||!(H in Re))&&p(Re,H,we[H]);else a({target:N,proto:!0,forced:S||ge},we);return we}},"7f9a":function(s,o,i){var a=i("da84"),l=i("8925"),u=a.WeakMap;s.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(s,o,i){var a=i("861d");s.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(s,o,i){var a=i("d039");s.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"8418":function(s,o,i){var a=i("c04e"),l=i("9bf2"),u=i("5c6c");s.exports=function(d,m,f){var p=a(m);p in d?l.f(d,p,u(0,f)):d[p]=f}},"861d":function(s,o){s.exports=function(i){return typeof i=="object"?i!==null:typeof i=="function"}},"8875":function(s,o,i){var a,l,u;(function(d,m){l=[],a=m,u=typeof a=="function"?a.apply(o,l):a,u!==void 0&&(s.exports=u)})(typeof self!="undefined"?self:this,function(){function d(){var m=Object.getOwnPropertyDescriptor(document,"currentScript");if(!m&&"currentScript"in document&&document.currentScript||m&&m.get!==d&&document.currentScript)return document.currentScript;try{throw new Error}catch(I){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,p=/@([^@]*):(\d+):(\d+)\s*$/ig,h=f.exec(I.stack)||p.exec(I.stack),_=h&&h[1]||!1,g=h&&h[2]||!1,b=document.location.href.replace(document.location.hash,""),w,S,x,$=document.getElementsByTagName("script");_===b&&(w=document.documentElement.outerHTML,S=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),x=w.replace(S,"$1").trim());for(var A=0;A<$.length;A++)if($[A].readyState==="interactive"||$[A].src===_||_===b&&$[A].innerHTML&&$[A].innerHTML.trim()===x)return $[A];return null}}return d})},"8925":function(s,o,i){var a=i("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),s.exports=a.inspectSource},"8aa5":function(s,o,i){var a=i("6547").charAt;s.exports=function(l,u,d){return u+(d?a(l,u).length:1)}},"8bbf":function(s,o){s.exports=n},"90e3":function(s,o){var i=0,a=Math.random();s.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++i+a).toString(36)}},"9112":function(s,o,i){var a=i("83ab"),l=i("9bf2"),u=i("5c6c");s.exports=a?function(d,m,f){return l.f(d,m,u(1,f))}:function(d,m,f){return d[m]=f,d}},"9263":function(s,o,i){var a=i("ad6d"),l=i("9f7f"),u=RegExp.prototype.exec,d=String.prototype.replace,m=u,f=function(){var g=/a/,b=/b*/g;return u.call(g,"a"),u.call(b,"a"),g.lastIndex!==0||b.lastIndex!==0}(),p=l.UNSUPPORTED_Y||l.BROKEN_CARET,h=/()??/.exec("")[1]!==void 0,_=f||h||p;_&&(m=function(b){var w=this,S,x,$,A,I=p&&w.sticky,V=a.call(w),O=w.source,N=0,G=b;return I&&(V=V.replace("y",""),V.indexOf("g")===-1&&(V+="g"),G=String(b).slice(w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&b[w.lastIndex-1]!==`
`)&&(O="(?: "+O+")",G=" "+G,N++),x=new RegExp("^(?:"+O+")",V)),h&&(x=new RegExp("^"+O+"$(?!\\s)",V)),f&&(S=w.lastIndex),$=u.call(I?x:w,G),I?$?($.input=$.input.slice(N),$[0]=$[0].slice(N),$.index=w.lastIndex,w.lastIndex+=$[0].length):w.lastIndex=0:f&&$&&(w.lastIndex=w.global?$.index+$[0].length:S),h&&$&&$.length>1&&d.call($[0],x,function(){for(A=1;A<arguments.length-2;A++)arguments[A]===void 0&&($[A]=void 0)}),$}),s.exports=m},"94ca":function(s,o,i){var a=i("d039"),l=/#|\.prototype\./,u=function(h,_){var g=m[d(h)];return g==p?!0:g==f?!1:typeof _=="function"?a(_):!!_},d=u.normalize=function(h){return String(h).replace(l,".").toLowerCase()},m=u.data={},f=u.NATIVE="N",p=u.POLYFILL="P";s.exports=u},"99af":function(s,o,i){var a=i("23e7"),l=i("d039"),u=i("e8b5"),d=i("861d"),m=i("7b0b"),f=i("50c4"),p=i("8418"),h=i("65f0"),_=i("1dde"),g=i("b622"),b=i("2d00"),w=g("isConcatSpreadable"),S=9007199254740991,x="Maximum allowed index exceeded",$=b>=51||!l(function(){var O=[];return O[w]=!1,O.concat()[0]!==O}),A=_("concat"),I=function(O){if(!d(O))return!1;var N=O[w];return N!==void 0?!!N:u(O)},V=!$||!A;a({target:"Array",proto:!0,forced:V},{concat:function(N){var G=m(this),F=h(G,0),B=0,Y,de,te,le,ge;for(Y=-1,te=arguments.length;Y<te;Y++)if(ge=Y===-1?G:arguments[Y],I(ge)){if(le=f(ge.length),B+le>S)throw TypeError(x);for(de=0;de<le;de++,B++)de in ge&&p(F,B,ge[de])}else{if(B>=S)throw TypeError(x);p(F,B++,ge)}return F.length=B,F}})},"9bdd":function(s,o,i){var a=i("825a");s.exports=function(l,u,d,m){try{return m?u(a(d)[0],d[1]):u(d)}catch(p){var f=l.return;throw f!==void 0&&a(f.call(l)),p}}},"9bf2":function(s,o,i){var a=i("83ab"),l=i("0cfb"),u=i("825a"),d=i("c04e"),m=Object.defineProperty;o.f=a?m:function(p,h,_){if(u(p),h=d(h,!0),u(_),l)try{return m(p,h,_)}catch{}if("get"in _||"set"in _)throw TypeError("Accessors not supported");return"value"in _&&(p[h]=_.value),p}},"9ed3":function(s,o,i){var a=i("ae93").IteratorPrototype,l=i("7c73"),u=i("5c6c"),d=i("d44e"),m=i("3f8c"),f=function(){return this};s.exports=function(p,h,_){var g=h+" Iterator";return p.prototype=l(a,{next:u(1,_)}),d(p,g,!1,!0),m[g]=f,p}},"9f7f":function(s,o,i){var a=i("d039");function l(u,d){return RegExp(u,d)}o.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),o.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(s,o,i){var a=i("e8b5"),l=i("50c4"),u=i("0366"),d=function(m,f,p,h,_,g,b,w){for(var S=_,x=0,$=b?u(b,w,3):!1,A;x<h;){if(x in p){if(A=$?$(p[x],x,f):p[x],g>0&&a(A))S=d(m,f,A,l(A.length),S,g-1)-1;else{if(S>=9007199254740991)throw TypeError("Exceed the acceptable array length");m[S]=A}S++}x++}return S};s.exports=d},a352:function(s,o){s.exports=r},a434:function(s,o,i){var a=i("23e7"),l=i("23cb"),u=i("a691"),d=i("50c4"),m=i("7b0b"),f=i("65f0"),p=i("8418"),h=i("1dde"),_=i("ae40"),g=h("splice"),b=_("splice",{ACCESSORS:!0,0:0,1:2}),w=Math.max,S=Math.min,x=9007199254740991,$="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!g||!b},{splice:function(I,V){var O=m(this),N=d(O.length),G=l(I,N),F=arguments.length,B,Y,de,te,le,ge;if(F===0?B=Y=0:F===1?(B=0,Y=N-G):(B=F-2,Y=S(w(u(V),0),N-G)),N+B-Y>x)throw TypeError($);for(de=f(O,Y),te=0;te<Y;te++)le=G+te,le in O&&p(de,te,O[le]);if(de.length=Y,B<Y){for(te=G;te<N-Y;te++)le=te+Y,ge=te+B,le in O?O[ge]=O[le]:delete O[ge];for(te=N;te>N-Y+B;te--)delete O[te-1]}else if(B>Y)for(te=N-Y;te>G;te--)le=te+Y-1,ge=te+B-1,le in O?O[ge]=O[le]:delete O[ge];for(te=0;te<B;te++)O[te+G]=arguments[te+2];return O.length=N-Y+B,de}})},a4d3:function(s,o,i){var a=i("23e7"),l=i("da84"),u=i("d066"),d=i("c430"),m=i("83ab"),f=i("4930"),p=i("fdbf"),h=i("d039"),_=i("5135"),g=i("e8b5"),b=i("861d"),w=i("825a"),S=i("7b0b"),x=i("fc6a"),$=i("c04e"),A=i("5c6c"),I=i("7c73"),V=i("df75"),O=i("241c"),N=i("057f"),G=i("7418"),F=i("06cf"),B=i("9bf2"),Y=i("d1e7"),de=i("9112"),te=i("6eeb"),le=i("5692"),ge=i("f772"),Re=i("d012"),Be=i("90e3"),he=i("b622"),X=i("e538"),fe=i("746f"),we=i("d44e"),H=i("69f3"),oe=i("b727").forEach,se=ge("hidden"),be="Symbol",Ve="prototype",Ie=he("toPrimitive"),$e=H.set,Ae=H.getterFor(be),z=Object[Ve],R=l.Symbol,Z=u("JSON","stringify"),ae=F.f,ue=B.f,ye=N.f,Ce=Y.f,pe=le("symbols"),j=le("op-symbols"),U=le("string-to-symbol-registry"),ze=le("symbol-to-string-registry"),xe=le("wks"),De=l.QObject,Le=!De||!De[Ve]||!De[Ve].findChild,qe=m&&h(function(){return I(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(ce,ee,ie){var Ne=ae(z,ee);Ne&&delete z[ee],ue(ce,ee,ie),Ne&&ce!==z&&ue(z,ee,Ne)}:ue,nt=function(ce,ee){var ie=pe[ce]=I(R[Ve]);return $e(ie,{type:be,tag:ce,description:ee}),m||(ie.description=ee),ie},k=p?function(ce){return typeof ce=="symbol"}:function(ce){return Object(ce)instanceof R},y=function(ee,ie,Ne){ee===z&&y(j,ie,Ne),w(ee);var He=$(ie,!0);return w(Ne),_(pe,He)?(Ne.enumerable?(_(ee,se)&&ee[se][He]&&(ee[se][He]=!1),Ne=I(Ne,{enumerable:A(0,!1)})):(_(ee,se)||ue(ee,se,A(1,{})),ee[se][He]=!0),qe(ee,He,Ne)):ue(ee,He,Ne)},M=function(ee,ie){w(ee);var Ne=x(ie),He=V(Ne).concat(Me(Ne));return oe(He,function(ct){(!m||Q.call(Ne,ct))&&y(ee,ct,Ne[ct])}),ee},W=function(ee,ie){return ie===void 0?I(ee):M(I(ee),ie)},Q=function(ee){var ie=$(ee,!0),Ne=Ce.call(this,ie);return this===z&&_(pe,ie)&&!_(j,ie)?!1:Ne||!_(this,ie)||!_(pe,ie)||_(this,se)&&this[se][ie]?Ne:!0},me=function(ee,ie){var Ne=x(ee),He=$(ie,!0);if(!(Ne===z&&_(pe,He)&&!_(j,He))){var ct=ae(Ne,He);return ct&&_(pe,He)&&!(_(Ne,se)&&Ne[se][He])&&(ct.enumerable=!0),ct}},Ee=function(ee){var ie=ye(x(ee)),Ne=[];return oe(ie,function(He){!_(pe,He)&&!_(Re,He)&&Ne.push(He)}),Ne},Me=function(ee){var ie=ee===z,Ne=ye(ie?j:x(ee)),He=[];return oe(Ne,function(ct){_(pe,ct)&&(!ie||_(z,ct))&&He.push(pe[ct])}),He};if(f||(R=function(){if(this instanceof R)throw TypeError("Symbol is not a constructor");var ee=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ie=Be(ee),Ne=function(He){this===z&&Ne.call(j,He),_(this,se)&&_(this[se],ie)&&(this[se][ie]=!1),qe(this,ie,A(1,He))};return m&&Le&&qe(z,ie,{configurable:!0,set:Ne}),nt(ie,ee)},te(R[Ve],"toString",function(){return Ae(this).tag}),te(R,"withoutSetter",function(ce){return nt(Be(ce),ce)}),Y.f=Q,B.f=y,F.f=me,O.f=N.f=Ee,G.f=Me,X.f=function(ce){return nt(he(ce),ce)},m&&(ue(R[Ve],"description",{configurable:!0,get:function(){return Ae(this).description}}),d||te(z,"propertyIsEnumerable",Q,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:R}),oe(V(xe),function(ce){fe(ce)}),a({target:be,stat:!0,forced:!f},{for:function(ce){var ee=String(ce);if(_(U,ee))return U[ee];var ie=R(ee);return U[ee]=ie,ze[ie]=ee,ie},keyFor:function(ee){if(!k(ee))throw TypeError(ee+" is not a symbol");if(_(ze,ee))return ze[ee]},useSetter:function(){Le=!0},useSimple:function(){Le=!1}}),a({target:"Object",stat:!0,forced:!f,sham:!m},{create:W,defineProperty:y,defineProperties:M,getOwnPropertyDescriptor:me}),a({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:Ee,getOwnPropertySymbols:Me}),a({target:"Object",stat:!0,forced:h(function(){G.f(1)})},{getOwnPropertySymbols:function(ee){return G.f(S(ee))}}),Z){var re=!f||h(function(){var ce=R();return Z([ce])!="[null]"||Z({a:ce})!="{}"||Z(Object(ce))!="{}"});a({target:"JSON",stat:!0,forced:re},{stringify:function(ee,ie,Ne){for(var He=[ee],ct=1,_n;arguments.length>ct;)He.push(arguments[ct++]);if(_n=ie,!(!b(ie)&&ee===void 0||k(ee)))return g(ie)||(ie=function(Wn,Gn){if(typeof _n=="function"&&(Gn=_n.call(this,Wn,Gn)),!k(Gn))return Gn}),He[1]=ie,Z.apply(null,He)}})}R[Ve][Ie]||de(R[Ve],Ie,R[Ve].valueOf),we(R,be),Re[se]=!0},a630:function(s,o,i){var a=i("23e7"),l=i("4df4"),u=i("1c7e"),d=!u(function(m){Array.from(m)});a({target:"Array",stat:!0,forced:d},{from:l})},a640:function(s,o,i){var a=i("d039");s.exports=function(l,u){var d=[][l];return!!d&&a(function(){d.call(null,u||function(){throw 1},1)})}},a691:function(s,o){var i=Math.ceil,a=Math.floor;s.exports=function(l){return isNaN(l=+l)?0:(l>0?a:i)(l)}},ab13:function(s,o,i){var a=i("b622"),l=a("match");s.exports=function(u){var d=/./;try{"/./"[u](d)}catch{try{return d[l]=!1,"/./"[u](d)}catch{}}return!1}},ac1f:function(s,o,i){var a=i("23e7"),l=i("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(s,o,i){var a=i("825a");s.exports=function(){var l=a(this),u="";return l.global&&(u+="g"),l.ignoreCase&&(u+="i"),l.multiline&&(u+="m"),l.dotAll&&(u+="s"),l.unicode&&(u+="u"),l.sticky&&(u+="y"),u}},ae40:function(s,o,i){var a=i("83ab"),l=i("d039"),u=i("5135"),d=Object.defineProperty,m={},f=function(p){throw p};s.exports=function(p,h){if(u(m,p))return m[p];h||(h={});var _=[][p],g=u(h,"ACCESSORS")?h.ACCESSORS:!1,b=u(h,0)?h[0]:f,w=u(h,1)?h[1]:void 0;return m[p]=!!_&&!l(function(){if(g&&!a)return!0;var S={length:-1};g?d(S,1,{enumerable:!0,get:f}):S[1]=1,_.call(S,b,w)})}},ae93:function(s,o,i){var a=i("e163"),l=i("9112"),u=i("5135"),d=i("b622"),m=i("c430"),f=d("iterator"),p=!1,h=function(){return this},_,g,b;[].keys&&(b=[].keys(),"next"in b?(g=a(a(b)),g!==Object.prototype&&(_=g)):p=!0),_==null&&(_={}),!m&&!u(_,f)&&l(_,f,h),s.exports={IteratorPrototype:_,BUGGY_SAFARI_ITERATORS:p}},b041:function(s,o,i){var a=i("00ee"),l=i("f5df");s.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(s,o,i){var a=i("83ab"),l=i("9bf2").f,u=Function.prototype,d=u.toString,m=/^\s*function ([^ (]*)/,f="name";a&&!(f in u)&&l(u,f,{configurable:!0,get:function(){try{return d.call(this).match(m)[1]}catch{return""}}})},b622:function(s,o,i){var a=i("da84"),l=i("5692"),u=i("5135"),d=i("90e3"),m=i("4930"),f=i("fdbf"),p=l("wks"),h=a.Symbol,_=f?h:h&&h.withoutSetter||d;s.exports=function(g){return u(p,g)||(m&&u(h,g)?p[g]=h[g]:p[g]=_("Symbol."+g)),p[g]}},b64b:function(s,o,i){var a=i("23e7"),l=i("7b0b"),u=i("df75"),d=i("d039"),m=d(function(){u(1)});a({target:"Object",stat:!0,forced:m},{keys:function(p){return u(l(p))}})},b727:function(s,o,i){var a=i("0366"),l=i("44ad"),u=i("7b0b"),d=i("50c4"),m=i("65f0"),f=[].push,p=function(h){var _=h==1,g=h==2,b=h==3,w=h==4,S=h==6,x=h==5||S;return function($,A,I,V){for(var O=u($),N=l(O),G=a(A,I,3),F=d(N.length),B=0,Y=V||m,de=_?Y($,F):g?Y($,0):void 0,te,le;F>B;B++)if((x||B in N)&&(te=N[B],le=G(te,B,O),h)){if(_)de[B]=le;else if(le)switch(h){case 3:return!0;case 5:return te;case 6:return B;case 2:f.call(de,te)}else if(w)return!1}return S?-1:b||w?w:de}};s.exports={forEach:p(0),map:p(1),filter:p(2),some:p(3),every:p(4),find:p(5),findIndex:p(6)}},c04e:function(s,o,i){var a=i("861d");s.exports=function(l,u){if(!a(l))return l;var d,m;if(u&&typeof(d=l.toString)=="function"&&!a(m=d.call(l))||typeof(d=l.valueOf)=="function"&&!a(m=d.call(l))||!u&&typeof(d=l.toString)=="function"&&!a(m=d.call(l)))return m;throw TypeError("Can't convert object to primitive value")}},c430:function(s,o){s.exports=!1},c6b6:function(s,o){var i={}.toString;s.exports=function(a){return i.call(a).slice(8,-1)}},c6cd:function(s,o,i){var a=i("da84"),l=i("ce4e"),u="__core-js_shared__",d=a[u]||l(u,{});s.exports=d},c740:function(s,o,i){var a=i("23e7"),l=i("b727").findIndex,u=i("44d2"),d=i("ae40"),m="findIndex",f=!0,p=d(m);m in[]&&Array(1)[m](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!p},{findIndex:function(_){return l(this,_,arguments.length>1?arguments[1]:void 0)}}),u(m)},c8ba:function(s,o){var i;i=function(){return this}();try{i=i||new Function("return this")()}catch{typeof window=="object"&&(i=window)}s.exports=i},c975:function(s,o,i){var a=i("23e7"),l=i("4d64").indexOf,u=i("a640"),d=i("ae40"),m=[].indexOf,f=!!m&&1/[1].indexOf(1,-0)<0,p=u("indexOf"),h=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!p||!h},{indexOf:function(g){return f?m.apply(this,arguments)||0:l(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(s,o,i){var a=i("5135"),l=i("fc6a"),u=i("4d64").indexOf,d=i("d012");s.exports=function(m,f){var p=l(m),h=0,_=[],g;for(g in p)!a(d,g)&&a(p,g)&&_.push(g);for(;f.length>h;)a(p,g=f[h++])&&(~u(_,g)||_.push(g));return _}},caad:function(s,o,i){var a=i("23e7"),l=i("4d64").includes,u=i("44d2"),d=i("ae40"),m=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!m},{includes:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(s,o,i){var a=i("da84"),l=i("861d"),u=a.document,d=l(u)&&l(u.createElement);s.exports=function(m){return d?u.createElement(m):{}}},ce4e:function(s,o,i){var a=i("da84"),l=i("9112");s.exports=function(u,d){try{l(a,u,d)}catch{a[u]=d}return d}},d012:function(s,o){s.exports={}},d039:function(s,o){s.exports=function(i){try{return!!i()}catch{return!0}}},d066:function(s,o,i){var a=i("428f"),l=i("da84"),u=function(d){return typeof d=="function"?d:void 0};s.exports=function(d,m){return arguments.length<2?u(a[d])||u(l[d]):a[d]&&a[d][m]||l[d]&&l[d][m]}},d1e7:function(s,o,i){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);o.f=u?function(m){var f=l(this,m);return!!f&&f.enumerable}:a},d28b:function(s,o,i){var a=i("746f");a("iterator")},d2bb:function(s,o,i){var a=i("825a"),l=i("3bbe");s.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var u=!1,d={},m;try{m=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,m.call(d,[]),u=d instanceof Array}catch{}return function(p,h){return a(p),l(h),u?m.call(p,h):p.__proto__=h,p}}():void 0)},d3b7:function(s,o,i){var a=i("00ee"),l=i("6eeb"),u=i("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(s,o,i){var a=i("9bf2").f,l=i("5135"),u=i("b622"),d=u("toStringTag");s.exports=function(m,f,p){m&&!l(m=p?m:m.prototype,d)&&a(m,d,{configurable:!0,value:f})}},d58f:function(s,o,i){var a=i("1c0b"),l=i("7b0b"),u=i("44ad"),d=i("50c4"),m=function(f){return function(p,h,_,g){a(h);var b=l(p),w=u(b),S=d(b.length),x=f?S-1:0,$=f?-1:1;if(_<2)for(;;){if(x in w){g=w[x],x+=$;break}if(x+=$,f?x<0:S<=x)throw TypeError("Reduce of empty array with no initial value")}for(;f?x>=0:S>x;x+=$)x in w&&(g=h(g,w[x],x,b));return g}};s.exports={left:m(!1),right:m(!0)}},d784:function(s,o,i){i("ac1f");var a=i("6eeb"),l=i("d039"),u=i("b622"),d=i("9263"),m=i("9112"),f=u("species"),p=!l(function(){var w=/./;return w.exec=function(){var S=[];return S.groups={a:"7"},S},"".replace(w,"$<a>")!=="7"}),h=function(){return"a".replace(/./,"$0")==="$0"}(),_=u("replace"),g=function(){return/./[_]?/./[_]("a","$0")==="":!1}(),b=!l(function(){var w=/(?:)/,S=w.exec;w.exec=function(){return S.apply(this,arguments)};var x="ab".split(w);return x.length!==2||x[0]!=="a"||x[1]!=="b"});s.exports=function(w,S,x,$){var A=u(w),I=!l(function(){var B={};return B[A]=function(){return 7},""[w](B)!=7}),V=I&&!l(function(){var B=!1,Y=/a/;return w==="split"&&(Y={},Y.constructor={},Y.constructor[f]=function(){return Y},Y.flags="",Y[A]=/./[A]),Y.exec=function(){return B=!0,null},Y[A](""),!B});if(!I||!V||w==="replace"&&!(p&&h&&!g)||w==="split"&&!b){var O=/./[A],N=x(A,""[w],function(B,Y,de,te,le){return Y.exec===d?I&&!le?{done:!0,value:O.call(Y,de,te)}:{done:!0,value:B.call(de,Y,te)}:{done:!1}},{REPLACE_KEEPS_$0:h,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),G=N[0],F=N[1];a(String.prototype,w,G),a(RegExp.prototype,A,S==2?function(B,Y){return F.call(B,this,Y)}:function(B){return F.call(B,this)})}$&&m(RegExp.prototype[A],"sham",!0)}},d81d:function(s,o,i){var a=i("23e7"),l=i("b727").map,u=i("1dde"),d=i("ae40"),m=u("map"),f=d("map");a({target:"Array",proto:!0,forced:!m||!f},{map:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}})},da84:function(s,o,i){(function(a){var l=function(u){return u&&u.Math==Math&&u};s.exports=l(typeof globalThis=="object"&&globalThis)||l(typeof window=="object"&&window)||l(typeof self=="object"&&self)||l(typeof a=="object"&&a)||Function("return this")()}).call(this,i("c8ba"))},dbb4:function(s,o,i){var a=i("23e7"),l=i("83ab"),u=i("56ef"),d=i("fc6a"),m=i("06cf"),f=i("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(h){for(var _=d(h),g=m.f,b=u(_),w={},S=0,x,$;b.length>S;)$=g(_,x=b[S++]),$!==void 0&&f(w,x,$);return w}})},dbf1:function(s,o,i){(function(a){i.d(o,"a",function(){return u});function l(){return typeof window!="undefined"?window.console:a.console}var u=l()}).call(this,i("c8ba"))},ddb0:function(s,o,i){var a=i("da84"),l=i("fdbc"),u=i("e260"),d=i("9112"),m=i("b622"),f=m("iterator"),p=m("toStringTag"),h=u.values;for(var _ in l){var g=a[_],b=g&&g.prototype;if(b){if(b[f]!==h)try{d(b,f,h)}catch{b[f]=h}if(b[p]||d(b,p,_),l[_]){for(var w in u)if(b[w]!==u[w])try{d(b,w,u[w])}catch{b[w]=u[w]}}}}},df75:function(s,o,i){var a=i("ca84"),l=i("7839");s.exports=Object.keys||function(d){return a(d,l)}},e01a:function(s,o,i){var a=i("23e7"),l=i("83ab"),u=i("da84"),d=i("5135"),m=i("861d"),f=i("9bf2").f,p=i("e893"),h=u.Symbol;if(l&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var _={},g=function(){var A=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),I=this instanceof g?new h(A):A===void 0?h():h(A);return A===""&&(_[I]=!0),I};p(g,h);var b=g.prototype=h.prototype;b.constructor=g;var w=b.toString,S=String(h("test"))=="Symbol(test)",x=/^Symbol\((.*)\)[^)]+$/;f(b,"description",{configurable:!0,get:function(){var A=m(this)?this.valueOf():this,I=w.call(A);if(d(_,A))return"";var V=S?I.slice(7,-1):I.replace(x,"$1");return V===""?void 0:V}}),a({global:!0,forced:!0},{Symbol:g})}},e163:function(s,o,i){var a=i("5135"),l=i("7b0b"),u=i("f772"),d=i("e177"),m=u("IE_PROTO"),f=Object.prototype;s.exports=d?Object.getPrototypeOf:function(p){return p=l(p),a(p,m)?p[m]:typeof p.constructor=="function"&&p instanceof p.constructor?p.constructor.prototype:p instanceof Object?f:null}},e177:function(s,o,i){var a=i("d039");s.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(s,o,i){var a=i("fc6a"),l=i("44d2"),u=i("3f8c"),d=i("69f3"),m=i("7dd0"),f="Array Iterator",p=d.set,h=d.getterFor(f);s.exports=m(Array,"Array",function(_,g){p(this,{type:f,target:a(_),index:0,kind:g})},function(){var _=h(this),g=_.target,b=_.kind,w=_.index++;return!g||w>=g.length?(_.target=void 0,{value:void 0,done:!0}):b=="keys"?{value:w,done:!1}:b=="values"?{value:g[w],done:!1}:{value:[w,g[w]],done:!1}},"values"),u.Arguments=u.Array,l("keys"),l("values"),l("entries")},e439:function(s,o,i){var a=i("23e7"),l=i("d039"),u=i("fc6a"),d=i("06cf").f,m=i("83ab"),f=l(function(){d(1)}),p=!m||f;a({target:"Object",stat:!0,forced:p,sham:!m},{getOwnPropertyDescriptor:function(_,g){return d(u(_),g)}})},e538:function(s,o,i){var a=i("b622");o.f=a},e893:function(s,o,i){var a=i("5135"),l=i("56ef"),u=i("06cf"),d=i("9bf2");s.exports=function(m,f){for(var p=l(f),h=d.f,_=u.f,g=0;g<p.length;g++){var b=p[g];a(m,b)||h(m,b,_(f,b))}}},e8b5:function(s,o,i){var a=i("c6b6");s.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(s,o,i){var a=i("b622"),l=i("3f8c"),u=a("iterator"),d=Array.prototype;s.exports=function(m){return m!==void 0&&(l.Array===m||d[u]===m)}},f5df:function(s,o,i){var a=i("00ee"),l=i("c6b6"),u=i("b622"),d=u("toStringTag"),m=l(function(){return arguments}())=="Arguments",f=function(p,h){try{return p[h]}catch{}};s.exports=a?l:function(p){var h,_,g;return p===void 0?"Undefined":p===null?"Null":typeof(_=f(h=Object(p),d))=="string"?_:m?l(h):(g=l(h))=="Object"&&typeof h.callee=="function"?"Arguments":g}},f772:function(s,o,i){var a=i("5692"),l=i("90e3"),u=a("keys");s.exports=function(d){return u[d]||(u[d]=l(d))}},fb15:function(s,o,i){if(i.r(o),typeof window!="undefined"){var a=window.document.currentScript;{var l=i("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(i.p=u[1])}i("99af"),i("4de4"),i("4160"),i("c975"),i("d81d"),i("a434"),i("159b"),i("a4d3"),i("e439"),i("dbb4"),i("b64b");function d(k,y,M){return y in k?Object.defineProperty(k,y,{value:M,enumerable:!0,configurable:!0,writable:!0}):k[y]=M,k}function m(k,y){var M=Object.keys(k);if(Object.getOwnPropertySymbols){var W=Object.getOwnPropertySymbols(k);y&&(W=W.filter(function(Q){return Object.getOwnPropertyDescriptor(k,Q).enumerable})),M.push.apply(M,W)}return M}function f(k){for(var y=1;y<arguments.length;y++){var M=arguments[y]!=null?arguments[y]:{};y%2?m(Object(M),!0).forEach(function(W){d(k,W,M[W])}):Object.getOwnPropertyDescriptors?Object.defineProperties(k,Object.getOwnPropertyDescriptors(M)):m(Object(M)).forEach(function(W){Object.defineProperty(k,W,Object.getOwnPropertyDescriptor(M,W))})}return k}function p(k){if(Array.isArray(k))return k}i("e01a"),i("d28b"),i("e260"),i("d3b7"),i("3ca3"),i("ddb0");function h(k,y){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(k)))){var M=[],W=!0,Q=!1,me=void 0;try{for(var Ee=k[Symbol.iterator](),Me;!(W=(Me=Ee.next()).done)&&(M.push(Me.value),!(y&&M.length===y));W=!0);}catch(re){Q=!0,me=re}finally{try{!W&&Ee.return!=null&&Ee.return()}finally{if(Q)throw me}}return M}}i("a630"),i("fb6a"),i("b0c0"),i("25f0");function _(k,y){(y==null||y>k.length)&&(y=k.length);for(var M=0,W=new Array(y);M<y;M++)W[M]=k[M];return W}function g(k,y){if(!!k){if(typeof k=="string")return _(k,y);var M=Object.prototype.toString.call(k).slice(8,-1);if(M==="Object"&&k.constructor&&(M=k.constructor.name),M==="Map"||M==="Set")return Array.from(k);if(M==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(M))return _(k,y)}}function b(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function w(k,y){return p(k)||h(k,y)||g(k,y)||b()}function S(k){if(Array.isArray(k))return _(k)}function x(k){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(k))return Array.from(k)}function $(){throw new TypeError(`Invalid attempt to spread non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function A(k){return S(k)||x(k)||g(k)||$()}var I=i("a352"),V=i.n(I);function O(k){k.parentElement!==null&&k.parentElement.removeChild(k)}function N(k,y,M){var W=M===0?k.children[0]:k.children[M-1].nextSibling;k.insertBefore(y,W)}var G=i("dbf1");i("13d5"),i("4fad"),i("ac1f"),i("5319");function F(k){var y=Object.create(null);return function(W){var Q=y[W];return Q||(y[W]=k(W))}}var B=/-(\w)/g,Y=F(function(k){return k.replace(B,function(y,M){return M.toUpperCase()})});i("5db7"),i("73d9");var de=["Start","Add","Remove","Update","End"],te=["Choose","Unchoose","Sort","Filter","Clone"],le=["Move"],ge=[le,de,te].flatMap(function(k){return k}).map(function(k){return"on".concat(k)}),Re={manage:le,manageAndEmit:de,emit:te};function Be(k){return ge.indexOf(k)!==-1}i("caad"),i("2ca0");var he=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","label","legend","li","link","main","map","mark","math","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rb","rp","rt","rtc","ruby","s","samp","script","section","select","slot","small","source","span","strong","style","sub","summary","sup","svg","table","tbody","td","template","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr"];function X(k){return he.includes(k)}function fe(k){return["transition-group","TransitionGroup"].includes(k)}function we(k){return["id","class","role","style"].includes(k)||k.startsWith("data-")||k.startsWith("aria-")||k.startsWith("on")}function H(k){return k.reduce(function(y,M){var W=w(M,2),Q=W[0],me=W[1];return y[Q]=me,y},{})}function oe(k){var y=k.$attrs,M=k.componentData,W=M===void 0?{}:M,Q=H(Object.entries(y).filter(function(me){var Ee=w(me,2),Me=Ee[0];return Ee[1],we(Me)}));return f(f({},Q),W)}function se(k){var y=k.$attrs,M=k.callBackBuilder,W=H(be(y));Object.entries(M).forEach(function(me){var Ee=w(me,2),Me=Ee[0],re=Ee[1];Re[Me].forEach(function(ce){W["on".concat(ce)]=re(ce)})});var Q="[data-draggable]".concat(W.draggable||"");return f(f({},W),{},{draggable:Q})}function be(k){return Object.entries(k).filter(function(y){var M=w(y,2),W=M[0];return M[1],!we(W)}).map(function(y){var M=w(y,2),W=M[0],Q=M[1];return[Y(W),Q]}).filter(function(y){var M=w(y,2),W=M[0];return M[1],!Be(W)})}i("c740");function Ve(k,y){if(!(k instanceof y))throw new TypeError("Cannot call a class as a function")}function Ie(k,y){for(var M=0;M<y.length;M++){var W=y[M];W.enumerable=W.enumerable||!1,W.configurable=!0,"value"in W&&(W.writable=!0),Object.defineProperty(k,W.key,W)}}function $e(k,y,M){return y&&Ie(k.prototype,y),M&&Ie(k,M),k}var Ae=function(y){var M=y.el;return M},z=function(y,M){return y.__draggable_context=M},R=function(y){return y.__draggable_context},Z=function(){function k(y){var M=y.nodes,W=M.header,Q=M.default,me=M.footer,Ee=y.root,Me=y.realList;Ve(this,k),this.defaultNodes=Q,this.children=[].concat(A(W),A(Q),A(me)),this.externalComponent=Ee.externalComponent,this.rootTransition=Ee.transition,this.tag=Ee.tag,this.realList=Me}return $e(k,[{key:"render",value:function(M,W){var Q=this.tag,me=this.children,Ee=this._isRootComponent,Me=Ee?{default:function(){return me}}:me;return M(Q,W,Me)}},{key:"updated",value:function(){var M=this.defaultNodes,W=this.realList;M.forEach(function(Q,me){z(Ae(Q),{element:W[me],index:me})})}},{key:"getUnderlyingVm",value:function(M){return R(M)}},{key:"getVmIndexFromDomIndex",value:function(M,W){var Q=this.defaultNodes,me=Q.length,Ee=W.children,Me=Ee.item(M);if(Me===null)return me;var re=R(Me);if(re)return re.index;if(me===0)return 0;var ce=Ae(Q[0]),ee=A(Ee).findIndex(function(ie){return ie===ce});return M<ee?0:me}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),k}(),ae=i("8bbf");function ue(k,y){var M=k[y];return M?M():[]}function ye(k){var y=k.$slots,M=k.realList,W=k.getKey,Q=M||[],me=["header","footer"].map(function(ie){return ue(y,ie)}),Ee=w(me,2),Me=Ee[0],re=Ee[1],ce=y.item;if(!ce)throw new Error("draggable element must have an item slot");var ee=Q.flatMap(function(ie,Ne){return ce({element:ie,index:Ne}).map(function(He){return He.key=W(ie),He.props=f(f({},He.props||{}),{},{"data-draggable":!0}),He})});if(ee.length!==Q.length)throw new Error("Item slot must have only one child");return{header:Me,footer:re,default:ee}}function Ce(k){var y=fe(k),M=!X(k)&&!y;return{transition:y,externalComponent:M,tag:M?Object(ae.resolveComponent)(k):y?ae.TransitionGroup:k}}function pe(k){var y=k.$slots,M=k.tag,W=k.realList,Q=k.getKey,me=ye({$slots:y,realList:W,getKey:Q}),Ee=Ce(M);return new Z({nodes:me,root:Ee,realList:W})}function j(k,y){var M=this;Object(ae.nextTick)(function(){return M.$emit(k.toLowerCase(),y)})}function U(k){var y=this;return function(M,W){if(y.realList!==null)return y["onDrag".concat(k)](M,W)}}function ze(k){var y=this,M=U.call(this,k);return function(W,Q){M.call(y,W,Q),j.call(y,k,W)}}var xe=null,De={list:{type:Array,required:!1,default:null},modelValue:{type:Array,required:!1,default:null},itemKey:{type:[String,Function],required:!0},clone:{type:Function,default:function(y){return y}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Le=["update:modelValue","change"].concat(A([].concat(A(Re.manageAndEmit),A(Re.emit)).map(function(k){return k.toLowerCase()}))),qe=Object(ae.defineComponent)({name:"draggable",inheritAttrs:!1,props:De,emits:Le,data:function(){return{error:!1}},render:function(){try{this.error=!1;var y=this.$slots,M=this.$attrs,W=this.tag,Q=this.componentData,me=this.realList,Ee=this.getKey,Me=pe({$slots:y,tag:W,realList:me,getKey:Ee});this.componentStructure=Me;var re=oe({$attrs:M,componentData:Q});return Me.render(ae.h,re)}catch(ce){return this.error=!0,Object(ae.h)("pre",{style:{color:"red"}},ce.stack)}},created:function(){this.list!==null&&this.modelValue!==null&&G.a.error("modelValue and list props are mutually exclusive! Please set one or another.")},mounted:function(){var y=this;if(!this.error){var M=this.$attrs,W=this.$el,Q=this.componentStructure;Q.updated();var me=se({$attrs:M,callBackBuilder:{manageAndEmit:function(re){return ze.call(y,re)},emit:function(re){return j.bind(y,re)},manage:function(re){return U.call(y,re)}}}),Ee=W.nodeType===1?W:W.parentElement;this._sortable=new V.a(Ee,me),this.targetDomElement=Ee,Ee.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var y=this.list;return y||this.modelValue},getKey:function(){var y=this.itemKey;return typeof y=="function"?y:function(M){return M[y]}}},watch:{$attrs:{handler:function(y){var M=this._sortable;!M||be(y).forEach(function(W){var Q=w(W,2),me=Q[0],Ee=Q[1];M.option(me,Ee)})},deep:!0}},methods:{getUnderlyingVm:function(y){return this.componentStructure.getUnderlyingVm(y)||null},getUnderlyingPotencialDraggableComponent:function(y){return y.__draggable_component__},emitChanges:function(y){var M=this;Object(ae.nextTick)(function(){return M.$emit("change",y)})},alterList:function(y){if(this.list){y(this.list);return}var M=A(this.modelValue);y(M),this.$emit("update:modelValue",M)},spliceList:function(){var y=arguments,M=function(Q){return Q.splice.apply(Q,A(y))};this.alterList(M)},updatePosition:function(y,M){var W=function(me){return me.splice(M,0,me.splice(y,1)[0])};this.alterList(W)},getRelatedContextFromMoveEvent:function(y){var M=y.to,W=y.related,Q=this.getUnderlyingPotencialDraggableComponent(M);if(!Q)return{component:Q};var me=Q.realList,Ee={list:me,component:Q};if(M!==W&&me){var Me=Q.getUnderlyingVm(W)||{};return f(f({},Me),Ee)}return Ee},getVmIndexFromDomIndex:function(y){return this.componentStructure.getVmIndexFromDomIndex(y,this.targetDomElement)},onDragStart:function(y){this.context=this.getUnderlyingVm(y.item),y.item._underlying_vm_=this.clone(this.context.element),xe=y.item},onDragAdd:function(y){var M=y.item._underlying_vm_;if(M!==void 0){O(y.item);var W=this.getVmIndexFromDomIndex(y.newIndex);this.spliceList(W,0,M);var Q={element:M,newIndex:W};this.emitChanges({added:Q})}},onDragRemove:function(y){if(N(this.$el,y.item,y.oldIndex),y.pullMode==="clone"){O(y.clone);return}var M=this.context,W=M.index,Q=M.element;this.spliceList(W,1);var me={element:Q,oldIndex:W};this.emitChanges({removed:me})},onDragUpdate:function(y){O(y.item),N(y.from,y.item,y.oldIndex);var M=this.context.index,W=this.getVmIndexFromDomIndex(y.newIndex);this.updatePosition(M,W);var Q={element:this.context.element,oldIndex:M,newIndex:W};this.emitChanges({moved:Q})},computeFutureIndex:function(y,M){if(!y.element)return 0;var W=A(M.to.children).filter(function(Me){return Me.style.display!=="none"}),Q=W.indexOf(M.related),me=y.component.getVmIndexFromDomIndex(Q),Ee=W.indexOf(xe)!==-1;return Ee||!M.willInsertAfter?me:me+1},onDragMove:function(y,M){var W=this.move,Q=this.realList;if(!W||!Q)return!0;var me=this.getRelatedContextFromMoveEvent(y),Ee=this.computeFutureIndex(me,y),Me=f(f({},this.context),{},{futureIndex:Ee}),re=f(f({},y),{},{relatedContext:me,draggedContext:Me});return W(re,M)},onDragEnd:function(){xe=null}}}),nt=qe;o.default=nt},fb6a:function(s,o,i){var a=i("23e7"),l=i("861d"),u=i("e8b5"),d=i("23cb"),m=i("50c4"),f=i("fc6a"),p=i("8418"),h=i("b622"),_=i("1dde"),g=i("ae40"),b=_("slice"),w=g("slice",{ACCESSORS:!0,0:0,1:2}),S=h("species"),x=[].slice,$=Math.max;a({target:"Array",proto:!0,forced:!b||!w},{slice:function(I,V){var O=f(this),N=m(O.length),G=d(I,N),F=d(V===void 0?N:V,N),B,Y,de;if(u(O)&&(B=O.constructor,typeof B=="function"&&(B===Array||u(B.prototype))?B=void 0:l(B)&&(B=B[S],B===null&&(B=void 0)),B===Array||B===void 0))return x.call(O,G,F);for(Y=new(B===void 0?Array:B)($(F-G,0)),de=0;G<F;G++,de++)G in O&&p(Y,de,O[G]);return Y.length=de,Y}})},fc6a:function(s,o,i){var a=i("44ad"),l=i("1d80");s.exports=function(u){return a(l(u))}},fdbc:function(s,o){s.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(s,o,i){var a=i("4930");s.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})($y);var iz=uy($y.exports);const az={name:"PageQueue",components:{ContentWithHeading:pt,ListItemQueueItem:WS,draggable:iz,ModalDialogQueueItem:Ey,ModalDialogAddUrlStream:o$,ModalDialogPlaylistSave:C$},data(){return{edit_mode:!1,show_details_modal:!1,show_url_modal:!1,show_pls_save_modal:!1,selected_item:{}}},computed:{state(){return this.$store.state.player},is_queue_save_allowed(){return this.$store.state.config.allow_modifying_stored_playlists&&this.$store.state.config.default_playlist_directory},queue(){return this.$store.state.queue},queue_items:{get(){return this.$store.state.queue.items},set(e){}},current_position(){const e=this.$store.getters.now_playing;return e===void 0||e.position===void 0?-1:this.$store.getters.now_playing.position},show_only_next_items(){return this.$store.state.show_only_next_items}},methods:{queue_clear:function(){K.queue_clear()},update_show_next_items:function(e){this.$store.commit(Zg,!this.show_only_next_items)},remove:function(e){K.queue_remove(e.id)},move_item:function(e){const t=this.show_only_next_items?e.oldIndex+this.current_position:e.oldIndex,n=this.queue_items[t],r=n.position+(e.newIndex-e.oldIndex);r!==t&&K.queue_move(n.id,r)},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0},open_add_stream_dialog:function(e){this.show_url_modal=!0},save_dialog:function(e){this.queue_items.length>0&&(this.show_pls_save_modal=!0)}}},lz=["textContent"],uz=["textContent"],cz={class:"buttons is-centered"},dz=["textContent"],fz=["textContent"],mz=["textContent"],pz=["textContent"],hz=["disabled"],_z=["textContent"],gz=["onClick"],yz=["onClick"];function vz(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-item-queue-item"),l=T("draggable"),u=T("modal-dialog-queue-item"),d=T("modal-dialog-add-url-stream"),m=T("modal-dialog-playlist-save"),f=T("content-with-heading");return E(),ke(f,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.queue.queue"))},null,8,lz),c("p",{class:"heading",textContent:v(e.$t("page.queue.count",{count:o.queue.count}))},null,8,uz)]),"heading-right":P(()=>[c("div",cz,[c("a",{class:Ye(["button is-small",{"is-info":o.show_only_next_items}]),onClick:t[0]||(t[0]=(...p)=>o.update_show_next_items&&o.update_show_next_items(...p))},[C(i,{class:"icon",name:"arrow-collapse-down",size:"16"}),c("span",{textContent:v(e.$t("page.queue.hide-previous"))},null,8,dz)],2),c("a",{class:"button is-small",onClick:t[1]||(t[1]=(...p)=>o.open_add_stream_dialog&&o.open_add_stream_dialog(...p))},[C(i,{class:"icon",name:"web",size:"16"}),c("span",{textContent:v(e.$t("page.queue.add-stream"))},null,8,fz)]),c("a",{class:Ye(["button is-small",{"is-info":s.edit_mode}]),onClick:t[2]||(t[2]=p=>s.edit_mode=!s.edit_mode)},[C(i,{class:"icon",name:"pencil",size:"16"}),c("span",{textContent:v(e.$t("page.queue.edit"))},null,8,mz)],2),c("a",{class:"button is-small",onClick:t[3]||(t[3]=(...p)=>o.queue_clear&&o.queue_clear(...p))},[C(i,{class:"icon",name:"delete-empty",size:"16"}),c("span",{textContent:v(e.$t("page.queue.clear"))},null,8,pz)]),o.is_queue_save_allowed?(E(),D("a",{key:0,class:"button is-small",disabled:o.queue_items.length===0,onClick:t[4]||(t[4]=(...p)=>o.save_dialog&&o.save_dialog(...p))},[C(i,{class:"icon",name:"content-save",size:"16"}),c("span",{textContent:v(e.$t("page.queue.save"))},null,8,_z)],8,hz)):J("",!0)])]),content:P(()=>[C(l,{modelValue:o.queue_items,"onUpdate:modelValue":t[5]||(t[5]=p=>o.queue_items=p),handle:".handle","item-key":"id",onEnd:o.move_item},{item:P(({element:p,index:h})=>[C(a,{item:p,position:h,current_position:o.current_position,show_only_next_items:o.show_only_next_items,edit_mode:s.edit_mode},{actions:P(()=>[s.edit_mode?J("",!0):(E(),D("a",{key:0,onClick:_t(_=>o.open_dialog(p),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,gz)),p.id!==o.state.item_id&&s.edit_mode?(E(),D("a",{key:1,onClick:_t(_=>o.remove(p),["prevent","stop"])},[C(i,{class:"icon has-text-grey",name:"delete",size:"18"})],8,yz)):J("",!0)]),_:2},1032,["item","position","current_position","show_only_next_items","edit_mode"])]),_:1},8,["modelValue","onEnd"]),C(u,{show:s.show_details_modal,item:s.selected_item,onClose:t[6]||(t[6]=p=>s.show_details_modal=!1)},null,8,["show","item"]),C(d,{show:s.show_url_modal,onClose:t[7]||(t[7]=p=>s.show_url_modal=!1)},null,8,["show"]),o.is_queue_save_allowed?(E(),ke(m,{key:0,show:s.show_pls_save_modal,onClose:t[8]||(t[8]=p=>s.show_pls_save_modal=!1)},null,8,["show"])):J("",!0)]),_:1})}var bz=ve(az,[["render",vz]]);function ec(e){return[null,void 0,!1].indexOf(e)!==-1}function qp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function Wp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?qp(Object(n),!0).forEach(function(r){wz(e,r,n[r])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):qp(Object(n)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(n,r))})}return e}function wz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Cz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Ny(e){var t={exports:{}};return e(t,t.exports),t.exports}function Xc(e){return Xc=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},Xc(e)}var Gp=Ny(function(e,t){e.exports=function(){var n=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function r(h){return h.split("").reverse().join("")}function s(h,_){return h.substring(0,_.length)===_}function o(h,_){return h.slice(-1*_.length)===_}function i(h,_,g){if((h[_]||h[g])&&h[_]===h[g])throw new Error(_)}function a(h){return typeof h=="number"&&isFinite(h)}function l(h,_){return h=h.toString().split("e"),(+((h=(h=Math.round(+(h[0]+"e"+(h[1]?+h[1]+_:_)))).toString().split("e"))[0]+"e"+(h[1]?+h[1]-_:-_))).toFixed(_)}function u(h,_,g,b,w,S,x,$,A,I,V,O){var N,G,F,B=O,Y="",de="";return S&&(O=S(O)),!!a(O)&&(h!==!1&&parseFloat(O.toFixed(h))===0&&(O=0),O<0&&(N=!0,O=Math.abs(O)),h!==!1&&(O=l(O,h)),(O=O.toString()).indexOf(".")!==-1?(F=(G=O.split("."))[0],g&&(Y=g+G[1])):F=O,_&&(F=r(F).match(/.{1,3}/g),F=r(F.join(r(_)))),N&&$&&(de+=$),b&&(de+=b),N&&A&&(de+=A),de+=F,de+=Y,w&&(de+=w),I&&(de=I(de,B)),de)}function d(h,_,g,b,w,S,x,$,A,I,V,O){var N,G="";return V&&(O=V(O)),!(!O||typeof O!="string")&&($&&s(O,$)&&(O=O.replace($,""),N=!0),b&&s(O,b)&&(O=O.replace(b,"")),A&&s(O,A)&&(O=O.replace(A,""),N=!0),w&&o(O,w)&&(O=O.slice(0,-1*w.length)),_&&(O=O.split(_).join("")),g&&(O=O.replace(g,".")),N&&(G+="-"),(G=(G+=O).replace(/[^0-9\.\-.]/g,""))!==""&&(G=Number(G),x&&(G=x(G)),!!a(G)&&G))}function m(h){var _,g,b,w={};for(h.suffix===void 0&&(h.suffix=h.postfix),_=0;_<n.length;_+=1)if((b=h[g=n[_]])===void 0)g!=="negative"||w.negativeBefore?g==="mark"&&w.thousand!=="."?w[g]=".":w[g]=!1:w[g]="-";else if(g==="decimals"){if(!(b>=0&&b<8))throw new Error(g);w[g]=b}else if(g==="encoder"||g==="decoder"||g==="edit"||g==="undo"){if(typeof b!="function")throw new Error(g);w[g]=b}else{if(typeof b!="string")throw new Error(g);w[g]=b}return i(w,"mark","thousand"),i(w,"prefix","negative"),i(w,"prefix","negativeBefore"),w}function f(h,_,g){var b,w=[];for(b=0;b<n.length;b+=1)w.push(h[n[b]]);return w.push(g),_.apply("",w)}function p(h){if(!(this instanceof p))return new p(h);Xc(h)==="object"&&(h=m(h),this.to=function(_){return f(h,u,_)},this.from=function(_){return f(h,d,_)})}return p}()});function Kp(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(s){return Object.getOwnPropertyDescriptor(e,s).enumerable})),n.push.apply(n,r)}return n}function xz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kz(e,t,n){var r=ei(e),s=r.format,o=r.step,i=n.value,a=n.classList,l=At(function(){return s&&s.value?typeof s.value=="function"?{to:s.value}:Gp(function(u){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?Kp(Object(m),!0).forEach(function(f){xz(u,f,m[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):Kp(Object(m)).forEach(function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(m,f))})}return u}({},s.value)):Gp({decimals:o.value>=0?0:2})});return{tooltipsFormat:At(function(){return Array.isArray(i.value)?i.value.map(function(u){return l.value}):l.value}),tooltipsMerge:function(u,d,m){var f=getComputedStyle(u).direction==="rtl",p=u.noUiSlider.options.direction==="rtl",h=u.noUiSlider.options.orientation==="vertical",_=u.noUiSlider.getTooltips(),g=u.noUiSlider.getOrigins();_.forEach(function(b,w){b&&g[w].appendChild(b)}),u.noUiSlider.on("update",function(b,w,S,x,$){var A=[[]],I=[[]],V=[[]],O=0;_[0]&&(A[0][0]=0,I[0][0]=$[0],V[0][0]=l.value.to(parseFloat(b[0])));for(var N=1;N<b.length;N++)(!_[N]||b[N]-b[N-1]>d)&&(A[++O]=[],V[O]=[],I[O]=[]),_[N]&&(A[O].push(N),V[O].push(l.value.to(parseFloat(b[N]))),I[O].push($[N]));A.forEach(function(G,F){for(var B=G.length,Y=0;Y<B;Y++){var de=G[Y];if(Y===B-1){var te=0;I[F].forEach(function(Be){te+=1e3-Be});var le=h?"bottom":"right",ge=p?0:B-1,Re=1e3-I[F][ge];te=(f&&!h?100:0)+te/B-Re,_[de].innerHTML=V[F].join(m),_[de].style.display="block",_[de].style[le]=te+"%",a.value.tooltipHidden.split(" ").forEach(function(Be){_[de].classList.contains(Be)&&_[de].classList.remove(Be)})}else _[de].style.display="none",a.value.tooltipHidden.split(" ").forEach(function(Be){_[de].classList.add(Be)})}})})}}}function hi(e){return hi=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?function(t){return typeof t}:function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},hi(e)}var Sz=Cz(Ny(function(e,t){(function(n){function r(k){return s(k)&&typeof k.from=="function"}function s(k){return hi(k)==="object"&&typeof k.to=="function"}function o(k){k.parentElement.removeChild(k)}function i(k){return k!=null}function a(k){k.preventDefault()}function l(k){return k.filter(function(y){return!this[y]&&(this[y]=!0)},{})}function u(k,y){return Math.round(k/y)*y}function d(k,y){var M=k.getBoundingClientRect(),W=k.ownerDocument,Q=W.documentElement,me=S(W);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(me.x=0),y?M.top+me.y-Q.clientTop:M.left+me.x-Q.clientLeft}function m(k){return typeof k=="number"&&!isNaN(k)&&isFinite(k)}function f(k,y,M){M>0&&(g(k,y),setTimeout(function(){b(k,y)},M))}function p(k){return Math.max(Math.min(k,100),0)}function h(k){return Array.isArray(k)?k:[k]}function _(k){var y=(k=String(k)).split(".");return y.length>1?y[1].length:0}function g(k,y){k.classList&&!/\s/.test(y)?k.classList.add(y):k.className+=" "+y}function b(k,y){k.classList&&!/\s/.test(y)?k.classList.remove(y):k.className=k.className.replace(new RegExp("(^|\\b)"+y.split(" ").join("|")+"(\\b|$)","gi")," ")}function w(k,y){return k.classList?k.classList.contains(y):new RegExp("\\b"+y+"\\b").test(k.className)}function S(k){var y=window.pageXOffset!==void 0,M=(k.compatMode||"")==="CSS1Compat";return{x:y?window.pageXOffset:M?k.documentElement.scrollLeft:k.body.scrollLeft,y:y?window.pageYOffset:M?k.documentElement.scrollTop:k.body.scrollTop}}function x(){return window.navigator.pointerEnabled?{start:"pointerdown",move:"pointermove",end:"pointerup"}:window.navigator.msPointerEnabled?{start:"MSPointerDown",move:"MSPointerMove",end:"MSPointerUp"}:{start:"mousedown touchstart",move:"mousemove touchmove",end:"mouseup touchend"}}function $(){var k=!1;try{var y=Object.defineProperty({},"passive",{get:function(){k=!0}});window.addEventListener("test",null,y)}catch{}return k}function A(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function I(k,y){return 100/(y-k)}function V(k,y,M){return 100*y/(k[M+1]-k[M])}function O(k,y){return V(k,k[0]<0?y+Math.abs(k[0]):y-k[0],0)}function N(k,y){return y*(k[1]-k[0])/100+k[0]}function G(k,y){for(var M=1;k>=y[M];)M+=1;return M}function F(k,y,M){if(M>=k.slice(-1)[0])return 100;var W=G(M,k),Q=k[W-1],me=k[W],Ee=y[W-1],Me=y[W];return Ee+O([Q,me],M)/I(Ee,Me)}function B(k,y,M){if(M>=100)return k.slice(-1)[0];var W=G(M,y),Q=k[W-1],me=k[W],Ee=y[W-1];return N([Q,me],(M-Ee)*I(Ee,y[W]))}function Y(k,y,M,W){if(W===100)return W;var Q=G(W,k),me=k[Q-1],Ee=k[Q];return M?W-me>(Ee-me)/2?Ee:me:y[Q-1]?k[Q-1]+u(W-k[Q-1],y[Q-1]):W}var de,te;n.PipsMode=void 0,(te=n.PipsMode||(n.PipsMode={})).Range="range",te.Steps="steps",te.Positions="positions",te.Count="count",te.Values="values",n.PipsType=void 0,(de=n.PipsType||(n.PipsType={}))[de.None=-1]="None",de[de.NoValue=0]="NoValue",de[de.LargeValue=1]="LargeValue",de[de.SmallValue=2]="SmallValue";var le=function(){function k(y,M,W){var Q;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[W||!1],this.xNumSteps=[!1],this.snap=M;var me=[];for(Object.keys(y).forEach(function(Ee){me.push([h(y[Ee]),Ee])}),me.sort(function(Ee,Me){return Ee[0][0]-Me[0][0]}),Q=0;Q<me.length;Q++)this.handleEntryPoint(me[Q][1],me[Q][0]);for(this.xNumSteps=this.xSteps.slice(0),Q=0;Q<this.xNumSteps.length;Q++)this.handleStepPoint(Q,this.xNumSteps[Q])}return k.prototype.getDistance=function(y){for(var M=[],W=0;W<this.xNumSteps.length-1;W++)M[W]=V(this.xVal,y,W);return M},k.prototype.getAbsoluteDistance=function(y,M,W){var Q,me=0;if(y<this.xPct[this.xPct.length-1])for(;y>this.xPct[me+1];)me++;else y===this.xPct[this.xPct.length-1]&&(me=this.xPct.length-2);W||y!==this.xPct[me+1]||me++,M===null&&(M=[]);var Ee=1,Me=M[me],re=0,ce=0,ee=0,ie=0;for(Q=W?(y-this.xPct[me])/(this.xPct[me+1]-this.xPct[me]):(this.xPct[me+1]-y)/(this.xPct[me+1]-this.xPct[me]);Me>0;)re=this.xPct[me+1+ie]-this.xPct[me+ie],M[me+ie]*Ee+100-100*Q>100?(ce=re*Q,Ee=(Me-100*Q)/M[me+ie],Q=1):(ce=M[me+ie]*re/100*Ee,Ee=0),W?(ee-=ce,this.xPct.length+ie>=1&&ie--):(ee+=ce,this.xPct.length-ie>=1&&ie++),Me=M[me+ie]*Ee;return y+ee},k.prototype.toStepping=function(y){return y=F(this.xVal,this.xPct,y)},k.prototype.fromStepping=function(y){return B(this.xVal,this.xPct,y)},k.prototype.getStep=function(y){return y=Y(this.xPct,this.xSteps,this.snap,y)},k.prototype.getDefaultStep=function(y,M,W){var Q=G(y,this.xPct);return(y===100||M&&y===this.xPct[Q-1])&&(Q=Math.max(Q-1,1)),(this.xVal[Q]-this.xVal[Q-1])/W},k.prototype.getNearbySteps=function(y){var M=G(y,this.xPct);return{stepBefore:{startValue:this.xVal[M-2],step:this.xNumSteps[M-2],highestStep:this.xHighestCompleteStep[M-2]},thisStep:{startValue:this.xVal[M-1],step:this.xNumSteps[M-1],highestStep:this.xHighestCompleteStep[M-1]},stepAfter:{startValue:this.xVal[M],step:this.xNumSteps[M],highestStep:this.xHighestCompleteStep[M]}}},k.prototype.countStepDecimals=function(){var y=this.xNumSteps.map(_);return Math.max.apply(null,y)},k.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},k.prototype.convert=function(y){return this.getStep(this.toStepping(y))},k.prototype.handleEntryPoint=function(y,M){var W;if(!m(W=y==="min"?0:y==="max"?100:parseFloat(y))||!m(M[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(W),this.xVal.push(M[0]);var Q=Number(M[1]);W?this.xSteps.push(!isNaN(Q)&&Q):isNaN(Q)||(this.xSteps[0]=Q),this.xHighestCompleteStep.push(0)},k.prototype.handleStepPoint=function(y,M){if(M)if(this.xVal[y]!==this.xVal[y+1]){this.xSteps[y]=V([this.xVal[y],this.xVal[y+1]],M,0)/I(this.xPct[y],this.xPct[y+1]);var W=(this.xVal[y+1]-this.xVal[y])/this.xNumSteps[y],Q=Math.ceil(Number(W.toFixed(3))-1),me=this.xVal[y]+this.xNumSteps[y]*Q;this.xHighestCompleteStep[y]=me}else this.xSteps[y]=this.xHighestCompleteStep[y]=this.xVal[y]},k}(),ge={to:function(k){return k===void 0?"":k.toFixed(2)},from:Number},Re={target:"target",base:"base",origin:"origin",handle:"handle",handleLower:"handle-lower",handleUpper:"handle-upper",touchArea:"touch-area",horizontal:"horizontal",vertical:"vertical",background:"background",connect:"connect",connects:"connects",ltr:"ltr",rtl:"rtl",textDirectionLtr:"txt-dir-ltr",textDirectionRtl:"txt-dir-rtl",draggable:"draggable",drag:"state-drag",tap:"state-tap",active:"active",tooltip:"tooltip",pips:"pips",pipsHorizontal:"pips-horizontal",pipsVertical:"pips-vertical",marker:"marker",markerHorizontal:"marker-horizontal",markerVertical:"marker-vertical",markerNormal:"marker-normal",markerLarge:"marker-large",markerSub:"marker-sub",value:"value",valueHorizontal:"value-horizontal",valueVertical:"value-vertical",valueNormal:"value-normal",valueLarge:"value-large",valueSub:"value-sub"},Be={tooltips:".__tooltips",aria:".__aria"};function he(k,y){if(!m(y))throw new Error("noUiSlider: 'step' is not numeric.");k.singleStep=y}function X(k,y){if(!m(y))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");k.keyboardPageMultiplier=y}function fe(k,y){if(!m(y))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");k.keyboardMultiplier=y}function we(k,y){if(!m(y))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");k.keyboardDefaultStep=y}function H(k,y){if(hi(y)!=="object"||Array.isArray(y))throw new Error("noUiSlider: 'range' is not an object.");if(y.min===void 0||y.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");k.spectrum=new le(y,k.snap||!1,k.singleStep)}function oe(k,y){if(y=h(y),!Array.isArray(y)||!y.length)throw new Error("noUiSlider: 'start' option is incorrect.");k.handles=y.length,k.start=y}function se(k,y){if(typeof y!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");k.snap=y}function be(k,y){if(typeof y!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");k.animate=y}function Ve(k,y){if(typeof y!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");k.animationDuration=y}function Ie(k,y){var M,W=[!1];if(y==="lower"?y=[!0,!1]:y==="upper"&&(y=[!1,!0]),y===!0||y===!1){for(M=1;M<k.handles;M++)W.push(y);W.push(!1)}else{if(!Array.isArray(y)||!y.length||y.length!==k.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");W=y}k.connect=W}function $e(k,y){switch(y){case"horizontal":k.ort=0;break;case"vertical":k.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Ae(k,y){if(!m(y))throw new Error("noUiSlider: 'margin' option must be numeric.");y!==0&&(k.margin=k.spectrum.getDistance(y))}function z(k,y){if(!m(y))throw new Error("noUiSlider: 'limit' option must be numeric.");if(k.limit=k.spectrum.getDistance(y),!k.limit||k.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function R(k,y){var M;if(!m(y)&&!Array.isArray(y))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(y)&&y.length!==2&&!m(y[0])&&!m(y[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(y!==0){for(Array.isArray(y)||(y=[y,y]),k.padding=[k.spectrum.getDistance(y[0]),k.spectrum.getDistance(y[1])],M=0;M<k.spectrum.xNumSteps.length-1;M++)if(k.padding[0][M]<0||k.padding[1][M]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var W=y[0]+y[1],Q=k.spectrum.xVal[0];if(W/(k.spectrum.xVal[k.spectrum.xVal.length-1]-Q)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Z(k,y){switch(y){case"ltr":k.dir=0;break;case"rtl":k.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function ae(k,y){if(typeof y!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var M=y.indexOf("tap")>=0,W=y.indexOf("drag")>=0,Q=y.indexOf("fixed")>=0,me=y.indexOf("snap")>=0,Ee=y.indexOf("hover")>=0,Me=y.indexOf("unconstrained")>=0,re=y.indexOf("drag-all")>=0;if(Q){if(k.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Ae(k,k.start[1]-k.start[0])}if(Me&&(k.margin||k.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");k.events={tap:M||me,drag:W,dragAll:re,fixed:Q,snap:me,hover:Ee,unconstrained:Me}}function ue(k,y){if(y!==!1)if(y===!0||s(y)){k.tooltips=[];for(var M=0;M<k.handles;M++)k.tooltips.push(y)}else{if((y=h(y)).length!==k.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");y.forEach(function(W){if(typeof W!="boolean"&&!s(W))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),k.tooltips=y}}function ye(k,y){if(y.length!==k.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");k.handleAttributes=y}function Ce(k,y){if(!s(y))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");k.ariaFormat=y}function pe(k,y){if(!r(y))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");k.format=y}function j(k,y){if(typeof y!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");k.keyboardSupport=y}function U(k,y){k.documentElement=y}function ze(k,y){if(typeof y!="string"&&y!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");k.cssPrefix=y}function xe(k,y){if(hi(y)!=="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof k.cssPrefix=="string"?(k.cssClasses={},Object.keys(y).forEach(function(M){k.cssClasses[M]=k.cssPrefix+y[M]})):k.cssClasses=y}function De(k){var y={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:ge,format:ge},M={step:{r:!1,t:he},keyboardPageMultiplier:{r:!1,t:X},keyboardMultiplier:{r:!1,t:fe},keyboardDefaultStep:{r:!1,t:we},start:{r:!0,t:oe},connect:{r:!0,t:Ie},direction:{r:!0,t:Z},snap:{r:!1,t:se},animate:{r:!1,t:be},animationDuration:{r:!1,t:Ve},range:{r:!0,t:H},orientation:{r:!1,t:$e},margin:{r:!1,t:Ae},limit:{r:!1,t:z},padding:{r:!1,t:R},behaviour:{r:!0,t:ae},ariaFormat:{r:!1,t:Ce},format:{r:!1,t:pe},tooltips:{r:!1,t:ue},keyboardSupport:{r:!0,t:j},documentElement:{r:!1,t:U},cssPrefix:{r:!0,t:ze},cssClasses:{r:!0,t:xe},handleAttributes:{r:!1,t:ye}},W={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Re,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};k.format&&!k.ariaFormat&&(k.ariaFormat=k.format),Object.keys(M).forEach(function(re){if(i(k[re])||W[re]!==void 0)M[re].t(y,i(k[re])?k[re]:W[re]);else if(M[re].r)throw new Error("noUiSlider: '"+re+"' is required.")}),y.pips=k.pips;var Q=document.createElement("div"),me=Q.style.msTransform!==void 0,Ee=Q.style.transform!==void 0;y.transformRule=Ee?"transform":me?"msTransform":"webkitTransform";var Me=[["left","top"],["right","bottom"]];return y.style=Me[y.dir][y.ort],y}function Le(k,y,M){var W,Q,me,Ee,Me,re=x(),ce=A()&&$(),ee=k,ie=y.spectrum,Ne=[],He=[],ct=[],_n=0,Wn={},Gn=k.ownerDocument,Bi=y.documentElement||Gn.documentElement,Hi=Gn.body,j1=Gn.dir==="rtl"||y.ort===1?0:100;function vr(L,q){var ne=Gn.createElement("div");return q&&g(ne,q),L.appendChild(ne),ne}function B1(L,q){var ne=vr(L,y.cssClasses.origin),_e=vr(ne,y.cssClasses.handle);if(vr(_e,y.cssClasses.touchArea),_e.setAttribute("data-handle",String(q)),y.keyboardSupport&&(_e.setAttribute("tabindex","0"),_e.addEventListener("keydown",function(Pe){return nb(Pe,q)})),y.handleAttributes!==void 0){var Fe=y.handleAttributes[q];Object.keys(Fe).forEach(function(Pe){_e.setAttribute(Pe,Fe[Pe])})}return _e.setAttribute("role","slider"),_e.setAttribute("aria-orientation",y.ort?"vertical":"horizontal"),q===0?g(_e,y.cssClasses.handleLower):q===y.handles-1&&g(_e,y.cssClasses.handleUpper),ne}function Nf(L,q){return!!q&&vr(L,y.cssClasses.connect)}function H1(L,q){var ne=vr(q,y.cssClasses.connects);Q=[],(me=[]).push(Nf(ne,L[0]));for(var _e=0;_e<y.handles;_e++)Q.push(B1(q,_e)),ct[_e]=_e,me.push(Nf(ne,L[_e+1]))}function U1(L){return g(L,y.cssClasses.target),y.dir===0?g(L,y.cssClasses.ltr):g(L,y.cssClasses.rtl),y.ort===0?g(L,y.cssClasses.horizontal):g(L,y.cssClasses.vertical),g(L,getComputedStyle(L).direction==="rtl"?y.cssClasses.textDirectionRtl:y.cssClasses.textDirectionLtr),vr(L,y.cssClasses.base)}function q1(L,q){return!(!y.tooltips||!y.tooltips[q])&&vr(L.firstChild,y.cssClasses.tooltip)}function Vf(){return ee.hasAttribute("disabled")}function _u(L){return Q[L].hasAttribute("disabled")}function gu(){Me&&(Ao("update"+Be.tooltips),Me.forEach(function(L){L&&o(L)}),Me=null)}function jf(){gu(),Me=Q.map(q1),Cu("update"+Be.tooltips,function(L,q,ne){if(Me&&y.tooltips&&Me[q]!==!1){var _e=L[q];y.tooltips[q]!==!0&&(_e=y.tooltips[q].to(ne[q])),Me[q].innerHTML=_e}})}function W1(){Ao("update"+Be.aria),Cu("update"+Be.aria,function(L,q,ne,_e,Fe){ct.forEach(function(Pe){var Ze=Q[Pe],Ke=Ui(He,Pe,0,!0,!0,!0),Vt=Ui(He,Pe,100,!0,!0,!0),Pt=Fe[Pe],ht=String(y.ariaFormat.to(ne[Pe]));Ke=ie.fromStepping(Ke).toFixed(1),Vt=ie.fromStepping(Vt).toFixed(1),Pt=ie.fromStepping(Pt).toFixed(1),Ze.children[0].setAttribute("aria-valuemin",Ke),Ze.children[0].setAttribute("aria-valuemax",Vt),Ze.children[0].setAttribute("aria-valuenow",Pt),Ze.children[0].setAttribute("aria-valuetext",ht)})})}function G1(L){if(L.mode===n.PipsMode.Range||L.mode===n.PipsMode.Steps)return ie.xVal;if(L.mode===n.PipsMode.Count){if(L.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var q=L.values-1,ne=100/q,_e=[];q--;)_e[q]=q*ne;return _e.push(100),Bf(_e,L.stepped)}return L.mode===n.PipsMode.Positions?Bf(L.values,L.stepped):L.mode===n.PipsMode.Values?L.stepped?L.values.map(function(Fe){return ie.fromStepping(ie.getStep(ie.toStepping(Fe)))}):L.values:[]}function Bf(L,q){return L.map(function(ne){return ie.fromStepping(q?ie.getStep(ne):ne)})}function K1(L){function q(Pt,ht){return Number((Pt+ht).toFixed(7))}var ne=G1(L),_e={},Fe=ie.xVal[0],Pe=ie.xVal[ie.xVal.length-1],Ze=!1,Ke=!1,Vt=0;return(ne=l(ne.slice().sort(function(Pt,ht){return Pt-ht})))[0]!==Fe&&(ne.unshift(Fe),Ze=!0),ne[ne.length-1]!==Pe&&(ne.push(Pe),Ke=!0),ne.forEach(function(Pt,ht){var Gt,vt,gn,un,Ht,Jf,Su,Xf,Qf,em,Eu=Pt,Rs=ne[ht+1],tm=L.mode===n.PipsMode.Steps;for(tm&&(Gt=ie.xNumSteps[ht]),Gt||(Gt=Rs-Eu),Rs===void 0&&(Rs=Eu),Gt=Math.max(Gt,1e-7),vt=Eu;vt<=Rs;vt=q(vt,Gt)){for(Xf=(Ht=(un=ie.toStepping(vt))-Vt)/(L.density||1),em=Ht/(Qf=Math.round(Xf)),gn=1;gn<=Qf;gn+=1)_e[(Jf=Vt+gn*em).toFixed(5)]=[ie.fromStepping(Jf),0];Su=ne.indexOf(vt)>-1?n.PipsType.LargeValue:tm?n.PipsType.SmallValue:n.PipsType.NoValue,!ht&&Ze&&vt!==Rs&&(Su=0),vt===Rs&&Ke||(_e[un.toFixed(5)]=[vt,Su]),Vt=un}}),_e}function Y1(L,q,ne){var _e,Fe,Pe=Gn.createElement("div"),Ze=((_e={})[n.PipsType.None]="",_e[n.PipsType.NoValue]=y.cssClasses.valueNormal,_e[n.PipsType.LargeValue]=y.cssClasses.valueLarge,_e[n.PipsType.SmallValue]=y.cssClasses.valueSub,_e),Ke=((Fe={})[n.PipsType.None]="",Fe[n.PipsType.NoValue]=y.cssClasses.markerNormal,Fe[n.PipsType.LargeValue]=y.cssClasses.markerLarge,Fe[n.PipsType.SmallValue]=y.cssClasses.markerSub,Fe),Vt=[y.cssClasses.valueHorizontal,y.cssClasses.valueVertical],Pt=[y.cssClasses.markerHorizontal,y.cssClasses.markerVertical];function ht(vt,gn){var un=gn===y.cssClasses.value,Ht=un?Ze:Ke;return gn+" "+(un?Vt:Pt)[y.ort]+" "+Ht[vt]}function Gt(vt,gn,un){if((un=q?q(gn,un):un)!==n.PipsType.None){var Ht=vr(Pe,!1);Ht.className=ht(un,y.cssClasses.marker),Ht.style[y.style]=vt+"%",un>n.PipsType.NoValue&&((Ht=vr(Pe,!1)).className=ht(un,y.cssClasses.value),Ht.setAttribute("data-value",String(gn)),Ht.style[y.style]=vt+"%",Ht.innerHTML=String(ne.to(gn)))}}return g(Pe,y.cssClasses.pips),g(Pe,y.ort===0?y.cssClasses.pipsHorizontal:y.cssClasses.pipsVertical),Object.keys(L).forEach(function(vt){Gt(vt,L[vt][0],L[vt][1])}),Pe}function yu(){Ee&&(o(Ee),Ee=null)}function vu(L){yu();var q=K1(L),ne=L.filter,_e=L.format||{to:function(Fe){return String(Math.round(Fe))}};return Ee=ee.appendChild(Y1(q,ne,_e))}function Hf(){var L=W.getBoundingClientRect(),q="offset"+["Width","Height"][y.ort];return y.ort===0?L.width||W[q]:L.height||W[q]}function as(L,q,ne,_e){var Fe=function(Ze){var Ke=Z1(Ze,_e.pageOffset,_e.target||q);return!!Ke&&!(Vf()&&!_e.doNotReject)&&!(w(ee,y.cssClasses.tap)&&!_e.doNotReject)&&!(L===re.start&&Ke.buttons!==void 0&&Ke.buttons>1)&&(!_e.hover||!Ke.buttons)&&(ce||Ke.preventDefault(),Ke.calcPoint=Ke.points[y.ort],void ne(Ke,_e))},Pe=[];return L.split(" ").forEach(function(Ze){q.addEventListener(Ze,Fe,!!ce&&{passive:!0}),Pe.push([Ze,Fe])}),Pe}function Z1(L,q,ne){var _e=L.type.indexOf("touch")===0,Fe=L.type.indexOf("mouse")===0,Pe=L.type.indexOf("pointer")===0,Ze=0,Ke=0;if(L.type.indexOf("MSPointer")===0&&(Pe=!0),L.type==="mousedown"&&!L.buttons&&!L.touches)return!1;if(_e){var Vt=function(Gt){var vt=Gt.target;return vt===ne||ne.contains(vt)||L.composed&&L.composedPath().shift()===ne};if(L.type==="touchstart"){var Pt=Array.prototype.filter.call(L.touches,Vt);if(Pt.length>1)return!1;Ze=Pt[0].pageX,Ke=Pt[0].pageY}else{var ht=Array.prototype.find.call(L.changedTouches,Vt);if(!ht)return!1;Ze=ht.pageX,Ke=ht.pageY}}return q=q||S(Gn),(Fe||Pe)&&(Ze=L.clientX+q.x,Ke=L.clientY+q.y),L.pageOffset=q,L.points=[Ze,Ke],L.cursor=Fe||Pe,L}function Uf(L){var q=100*(L-d(W,y.ort))/Hf();return q=p(q),y.dir?100-q:q}function J1(L){var q=100,ne=!1;return Q.forEach(function(_e,Fe){if(!_u(Fe)){var Pe=He[Fe],Ze=Math.abs(Pe-L);(Ze<q||Ze<=q&&L>Pe||Ze===100&&q===100)&&(ne=Fe,q=Ze)}}),ne}function X1(L,q){L.type==="mouseout"&&L.target.nodeName==="HTML"&&L.relatedTarget===null&&bu(L,q)}function Q1(L,q){if(navigator.appVersion.indexOf("MSIE 9")===-1&&L.buttons===0&&q.buttonsProperty!==0)return bu(L,q);var ne=(y.dir?-1:1)*(L.calcPoint-q.startCalcPoint);qf(ne>0,100*ne/q.baseSize,q.locations,q.handleNumbers,q.connect)}function bu(L,q){q.handle&&(b(q.handle,y.cssClasses.active),_n-=1),q.listeners.forEach(function(ne){Bi.removeEventListener(ne[0],ne[1])}),_n===0&&(b(ee,y.cssClasses.drag),ku(),L.cursor&&(Hi.style.cursor="",Hi.removeEventListener("selectstart",a))),q.handleNumbers.forEach(function(ne){Bt("change",ne),Bt("set",ne),Bt("end",ne)})}function wu(L,q){if(!q.handleNumbers.some(_u)){var ne;q.handleNumbers.length===1&&(ne=Q[q.handleNumbers[0]].children[0],_n+=1,g(ne,y.cssClasses.active)),L.stopPropagation();var _e=[],Fe=as(re.move,Bi,Q1,{target:L.target,handle:ne,connect:q.connect,listeners:_e,startCalcPoint:L.calcPoint,baseSize:Hf(),pageOffset:L.pageOffset,handleNumbers:q.handleNumbers,buttonsProperty:L.buttons,locations:He.slice()}),Pe=as(re.end,Bi,bu,{target:L.target,handle:ne,listeners:_e,doNotReject:!0,handleNumbers:q.handleNumbers}),Ze=as("mouseout",Bi,X1,{target:L.target,handle:ne,listeners:_e,doNotReject:!0,handleNumbers:q.handleNumbers});_e.push.apply(_e,Fe.concat(Pe,Ze)),L.cursor&&(Hi.style.cursor=getComputedStyle(L.target).cursor,Q.length>1&&g(ee,y.cssClasses.drag),Hi.addEventListener("selectstart",a,!1)),q.handleNumbers.forEach(function(Ke){Bt("start",Ke)})}}function eb(L){L.stopPropagation();var q=Uf(L.calcPoint),ne=J1(q);ne!==!1&&(y.events.snap||f(ee,y.cssClasses.tap,y.animationDuration),Ms(ne,q,!0,!0),ku(),Bt("slide",ne,!0),Bt("update",ne,!0),y.events.snap?wu(L,{handleNumbers:[ne]}):(Bt("change",ne,!0),Bt("set",ne,!0)))}function tb(L){var q=Uf(L.calcPoint),ne=ie.getStep(q),_e=ie.fromStepping(ne);Object.keys(Wn).forEach(function(Fe){Fe.split(".")[0]==="hover"&&Wn[Fe].forEach(function(Pe){Pe.call(Wi,_e)})})}function nb(L,q){if(Vf()||_u(q))return!1;var ne=["Left","Right"],_e=["Down","Up"],Fe=["PageDown","PageUp"],Pe=["Home","End"];y.dir&&!y.ort?ne.reverse():y.ort&&!y.dir&&(_e.reverse(),Fe.reverse());var Ze,Ke=L.key.replace("Arrow",""),Vt=Ke===Fe[0],Pt=Ke===Fe[1],ht=Ke===_e[0]||Ke===ne[0]||Vt,Gt=Ke===_e[1]||Ke===ne[1]||Pt,vt=Ke===Pe[0],gn=Ke===Pe[1];if(!(ht||Gt||vt||gn))return!0;if(L.preventDefault(),Gt||ht){var un=ht?0:1,Ht=Zf(q)[un];if(Ht===null)return!1;Ht===!1&&(Ht=ie.getDefaultStep(He[q],ht,y.keyboardDefaultStep)),Ht*=Pt||Vt?y.keyboardPageMultiplier:y.keyboardMultiplier,Ht=Math.max(Ht,1e-7),Ht*=ht?-1:1,Ze=Ne[q]+Ht}else Ze=gn?y.spectrum.xVal[y.spectrum.xVal.length-1]:y.spectrum.xVal[0];return Ms(q,ie.toStepping(Ze),!0,!0),Bt("slide",q),Bt("update",q),Bt("change",q),Bt("set",q),!1}function rb(L){L.fixed||Q.forEach(function(q,ne){as(re.start,q.children[0],wu,{handleNumbers:[ne]})}),L.tap&&as(re.start,W,eb,{}),L.hover&&as(re.move,W,tb,{hover:!0}),L.drag&&me.forEach(function(q,ne){if(q!==!1&&ne!==0&&ne!==me.length-1){var _e=Q[ne-1],Fe=Q[ne],Pe=[q],Ze=[_e,Fe],Ke=[ne-1,ne];g(q,y.cssClasses.draggable),L.fixed&&(Pe.push(_e.children[0]),Pe.push(Fe.children[0])),L.dragAll&&(Ze=Q,Ke=ct),Pe.forEach(function(Vt){as(re.start,Vt,wu,{handles:Ze,handleNumbers:Ke,connect:q})})}})}function Cu(L,q){Wn[L]=Wn[L]||[],Wn[L].push(q),L.split(".")[0]==="update"&&Q.forEach(function(ne,_e){Bt("update",_e)})}function sb(L){return L===Be.aria||L===Be.tooltips}function Ao(L){var q=L&&L.split(".")[0],ne=q?L.substring(q.length):L;Object.keys(Wn).forEach(function(_e){var Fe=_e.split(".")[0],Pe=_e.substring(Fe.length);q&&q!==Fe||ne&&ne!==Pe||sb(Pe)&&ne!==Pe||delete Wn[_e]})}function Bt(L,q,ne){Object.keys(Wn).forEach(function(_e){var Fe=_e.split(".")[0];L===Fe&&Wn[_e].forEach(function(Pe){Pe.call(Wi,Ne.map(y.format.to),q,Ne.slice(),ne||!1,He.slice(),Wi)})})}function Ui(L,q,ne,_e,Fe,Pe){var Ze;return Q.length>1&&!y.events.unconstrained&&(_e&&q>0&&(Ze=ie.getAbsoluteDistance(L[q-1],y.margin,!1),ne=Math.max(ne,Ze)),Fe&&q<Q.length-1&&(Ze=ie.getAbsoluteDistance(L[q+1],y.margin,!0),ne=Math.min(ne,Ze))),Q.length>1&&y.limit&&(_e&&q>0&&(Ze=ie.getAbsoluteDistance(L[q-1],y.limit,!1),ne=Math.min(ne,Ze)),Fe&&q<Q.length-1&&(Ze=ie.getAbsoluteDistance(L[q+1],y.limit,!0),ne=Math.max(ne,Ze))),y.padding&&(q===0&&(Ze=ie.getAbsoluteDistance(0,y.padding[0],!1),ne=Math.max(ne,Ze)),q===Q.length-1&&(Ze=ie.getAbsoluteDistance(100,y.padding[1],!0),ne=Math.min(ne,Ze))),!((ne=p(ne=ie.getStep(ne)))===L[q]&&!Pe)&&ne}function xu(L,q){var ne=y.ort;return(ne?q:L)+", "+(ne?L:q)}function qf(L,q,ne,_e,Fe){var Pe=ne.slice(),Ze=_e[0],Ke=[!L,L],Vt=[L,!L];_e=_e.slice(),L&&_e.reverse(),_e.length>1?_e.forEach(function(ht,Gt){var vt=Ui(Pe,ht,Pe[ht]+q,Ke[Gt],Vt[Gt],!1);vt===!1?q=0:(q=vt-Pe[ht],Pe[ht]=vt)}):Ke=Vt=[!0];var Pt=!1;_e.forEach(function(ht,Gt){Pt=Ms(ht,ne[ht]+q,Ke[Gt],Vt[Gt])||Pt}),Pt&&(_e.forEach(function(ht){Bt("update",ht),Bt("slide",ht)}),Fe!=null&&Bt("drag",Ze))}function Wf(L,q){return y.dir?100-L-q:L}function ob(L,q){He[L]=q,Ne[L]=ie.fromStepping(q);var ne="translate("+xu(Wf(q,0)-j1+"%","0")+")";Q[L].style[y.transformRule]=ne,Gf(L),Gf(L+1)}function ku(){ct.forEach(function(L){var q=He[L]>50?-1:1,ne=3+(Q.length+q*L);Q[L].style.zIndex=String(ne)})}function Ms(L,q,ne,_e,Fe){return Fe||(q=Ui(He,L,q,ne,_e,!1)),q!==!1&&(ob(L,q),!0)}function Gf(L){if(me[L]){var q=0,ne=100;L!==0&&(q=He[L-1]),L!==me.length-1&&(ne=He[L]);var _e=ne-q,Fe="translate("+xu(Wf(q,_e)+"%","0")+")",Pe="scale("+xu(_e/100,"1")+")";me[L].style[y.transformRule]=Fe+" "+Pe}}function Kf(L,q){return L===null||L===!1||L===void 0?He[q]:(typeof L=="number"&&(L=String(L)),(L=y.format.from(L))!==!1&&(L=ie.toStepping(L)),L===!1||isNaN(L)?He[q]:L)}function qi(L,q,ne){var _e=h(L),Fe=He[0]===void 0;q=q===void 0||q,y.animate&&!Fe&&f(ee,y.cssClasses.tap,y.animationDuration),ct.forEach(function(Ke){Ms(Ke,Kf(_e[Ke],Ke),!0,!1,ne)});var Pe=ct.length===1?0:1;if(Fe&&ie.hasNoSize()&&(ne=!0,He[0]=0,ct.length>1)){var Ze=100/(ct.length-1);ct.forEach(function(Ke){He[Ke]=Ke*Ze})}for(;Pe<ct.length;++Pe)ct.forEach(function(Ke){Ms(Ke,He[Ke],!0,!0,ne)});ku(),ct.forEach(function(Ke){Bt("update",Ke),_e[Ke]!==null&&q&&Bt("set",Ke)})}function ib(L){qi(y.start,L)}function ab(L,q,ne,_e){if(!((L=Number(L))>=0&&L<ct.length))throw new Error("noUiSlider: invalid handle number, got: "+L);Ms(L,Kf(q,L),!0,!0,_e),Bt("update",L),ne&&Bt("set",L)}function Yf(L){if(L===void 0&&(L=!1),L)return Ne.length===1?Ne[0]:Ne.slice(0);var q=Ne.map(y.format.to);return q.length===1?q[0]:q}function lb(){for(Ao(Be.aria),Ao(Be.tooltips),Object.keys(y.cssClasses).forEach(function(L){b(ee,y.cssClasses[L])});ee.firstChild;)ee.removeChild(ee.firstChild);delete ee.noUiSlider}function Zf(L){var q=He[L],ne=ie.getNearbySteps(q),_e=Ne[L],Fe=ne.thisStep.step,Pe=null;if(y.snap)return[_e-ne.stepBefore.startValue||null,ne.stepAfter.startValue-_e||null];Fe!==!1&&_e+Fe>ne.stepAfter.startValue&&(Fe=ne.stepAfter.startValue-_e),Pe=_e>ne.thisStep.startValue?ne.thisStep.step:ne.stepBefore.step!==!1&&_e-ne.stepBefore.highestStep,q===100?Fe=null:q===0&&(Pe=null);var Ze=ie.countStepDecimals();return Fe!==null&&Fe!==!1&&(Fe=Number(Fe.toFixed(Ze))),Pe!==null&&Pe!==!1&&(Pe=Number(Pe.toFixed(Ze))),[Pe,Fe]}function ub(){return ct.map(Zf)}function cb(L,q){var ne=Yf(),_e=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];_e.forEach(function(Pe){L[Pe]!==void 0&&(M[Pe]=L[Pe])});var Fe=De(M);_e.forEach(function(Pe){L[Pe]!==void 0&&(y[Pe]=Fe[Pe])}),ie=Fe.spectrum,y.margin=Fe.margin,y.limit=Fe.limit,y.padding=Fe.padding,y.pips?vu(y.pips):yu(),y.tooltips?jf():gu(),He=[],qi(i(L.start)?L.start:ne,q)}function db(){W=U1(ee),H1(y.connect,W),rb(y.events),qi(y.start),y.pips&&vu(y.pips),y.tooltips&&jf(),W1()}db();var Wi={destroy:lb,steps:ub,on:Cu,off:Ao,get:Yf,set:qi,setHandle:ab,reset:ib,__moveHandles:function(L,q,ne){qf(L,q,He,ne)},options:M,updateOptions:cb,target:ee,removePips:yu,removeTooltips:gu,getPositions:function(){return He.slice()},getTooltips:function(){return Me},getOrigins:function(){return Q},pips:vu};return Wi}function qe(k,y){if(!k||!k.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+k);if(k.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var M=Le(k,De(y),y);return k.noUiSlider=M,M}var nt={__spectrum:le,cssClasses:Re,create:qe};n.create=qe,n.cssClasses=Re,n.default=nt,Object.defineProperty(n,"__esModule",{value:!0})})(t)}));function Yp(e,t){var n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(r,s){return r===n[s]})}var Si={name:"Slider",emits:["input","update:modelValue","update","change","start","end"],props:{value:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},modelValue:{validator:function(e){return t=>typeof t=="number"||t instanceof Array||t==null||t===!1},required:!1},id:{type:[String,Number],required:!1},disabled:{type:Boolean,required:!1,default:!1},min:{type:Number,required:!1,default:0},max:{type:Number,required:!1,default:100},step:{type:Number,required:!1,default:1},orientation:{type:String,required:!1,default:"horizontal"},direction:{type:String,required:!1,default:"ltr"},tooltips:{type:Boolean,required:!1,default:!0},options:{type:Object,required:!1,default:()=>({})},merge:{type:Number,required:!1,default:-1},format:{type:[Object,Function,Boolean],required:!1,default:null},classes:{type:Object,required:!1,default:()=>({})},showTooltip:{type:String,required:!1,default:"always"},tooltipPosition:{type:String,required:!1,default:null},lazy:{type:Boolean,required:!1,default:!0}},setup(e,t){const n=function(i,a,l){var u=ei(i),d=u.value,m=u.modelValue,f=a.expose!==void 0?m:d,p=wn(f.value);if(ec(f.value))throw new Error("Slider v-model must be a Number or Array");if(Array.isArray(f.value)&&f.value.length==0)throw new Error("Slider v-model must not be an empty array");return{value:f,initialValue:p}}(e,t),r=function(i,a,l){var u=ei(i),d=u.classes,m=u.showTooltip,f=u.tooltipPosition,p=u.orientation,h=At(function(){return Wp({target:"slider-target",focused:"slider-focused",tooltipFocus:"slider-tooltip-focus",tooltipDrag:"slider-tooltip-drag",ltr:"slider-ltr",rtl:"slider-rtl",horizontal:"slider-horizontal",vertical:"slider-vertical",textDirectionRtl:"slider-txt-dir-rtl",textDirectionLtr:"slider-txt-dir-ltr",base:"slider-base",connects:"slider-connects",connect:"slider-connect",origin:"slider-origin",handle:"slider-handle",handleLower:"slider-handle-lower",handleUpper:"slider-handle-upper",touchArea:"slider-touch-area",tooltip:"slider-tooltip",tooltipTop:"slider-tooltip-top",tooltipBottom:"slider-tooltip-bottom",tooltipLeft:"slider-tooltip-left",tooltipRight:"slider-tooltip-right",tooltipHidden:"slider-tooltip-hidden",active:"slider-active",draggable:"slider-draggable",tap:"slider-state-tap",drag:"slider-state-drag",pips:"slider-pips",pipsHorizontal:"slider-pips-horizontal",pipsVertical:"slider-pips-vertical",marker:"slider-marker",markerHorizontal:"slider-marker-horizontal",markerVertical:"slider-marker-vertical",markerNormal:"slider-marker-normal",markerLarge:"slider-marker-large",markerSub:"slider-marker-sub",value:"slider-value",valueHorizontal:"slider-value-horizontal",valueVertical:"slider-value-vertical",valueNormal:"slider-value-normal",valueLarge:"slider-value-large",valueSub:"slider-value-sub"},d.value)});return{classList:At(function(){var _=Wp({},h.value);return Object.keys(_).forEach(function(g){_[g]=Array.isArray(_[g])?_[g].filter(function(b){return b!==null}).join(" "):_[g]}),m.value!=="always"&&(_.target+=" ".concat(m.value==="drag"?_.tooltipDrag:_.tooltipFocus)),p.value==="horizontal"&&(_.tooltip+=f.value==="bottom"?" ".concat(_.tooltipBottom):" ".concat(_.tooltipTop)),p.value==="vertical"&&(_.tooltip+=f.value==="right"?" ".concat(_.tooltipRight):" ".concat(_.tooltipLeft)),_})}}(e),s=kz(e,0,{value:n.value,classList:r.classList}),o=function(i,a,l){var u=ei(i),d=u.orientation,m=u.direction,f=u.tooltips,p=u.step,h=u.min,_=u.max,g=u.merge,b=u.id,w=u.disabled,S=u.options,x=u.classes,$=u.format,A=u.lazy,I=l.value,V=l.initialValue,O=l.tooltipsFormat,N=l.tooltipsMerge,G=l.classList,F=wn(null),B=wn(null),Y=wn(!1),de=At(function(){var we={cssPrefix:"",cssClasses:G.value,orientation:d.value,direction:m.value,tooltips:!!f.value&&O.value,connect:"lower",start:ec(I.value)?h.value:I.value,range:{min:h.value,max:_.value}};return p.value>0&&(we.step=p.value),Array.isArray(I.value)&&(we.connect=!0),we}),te=At(function(){var we={id:b&&b.value?b.value:void 0};return w.value&&(we.disabled=!0),we}),le=At(function(){return Array.isArray(I.value)}),ge=function(){var we=B.value.get();return Array.isArray(we)?we.map(function(H){return parseFloat(H)}):parseFloat(we)},Re=function(we){var H=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];B.value.set(we,H)},Be=function(we){a.emit("input",we),a.emit("update:modelValue",we),a.emit("update",we)},he=function(){B.value=Sz.create(F.value,Object.assign({},de.value,S.value)),f.value&&le.value&&g.value>=0&&N(F.value,g.value," - "),B.value.on("set",function(we){var H=ge();a.emit("change",H),A.value&&Be(H)}),B.value.on("update",function(we){if(Y.value){var H=ge();le.value&&Yp(I.value,H)||!le.value&&I.value==H?a.emit("update",H):A.value||Be(H)}}),B.value.on("start",function(we){var H=ge();a.emit("start",H)}),B.value.on("end",function(we){var H=ge();a.emit("end",H)}),F.value.querySelectorAll("[data-handle]").forEach(function(we){we.onblur=function(){G.value.focused.split(" ").forEach(function(H){F.value.classList.remove(H)})},we.onfocus=function(){G.value.focused.split(" ").forEach(function(H){F.value.classList.add(H)})}}),Y.value=!0},X=function(){B.value.off(),B.value.destroy(),B.value=null},fe=function(we,H){Y.value=!1,X(),he()};return Ts(he),Co(X),Mt(le,fe,{immediate:!1}),Mt(h,fe,{immediate:!1}),Mt(_,fe,{immediate:!1}),Mt(p,fe,{immediate:!1}),Mt(d,fe,{immediate:!1}),Mt(m,fe,{immediate:!1}),Mt(f,fe,{immediate:!1}),Mt(g,fe,{immediate:!1}),Mt($,fe,{immediate:!1,deep:!0}),Mt(S,fe,{immediate:!1,deep:!0}),Mt(x,fe,{immediate:!1,deep:!0}),Mt(I,function(we){ec(we)?Re(h.value,!1):(le.value&&!Yp(we,ge())||!le.value&&we!=ge())&&Re(we,!1)},{deep:!0}),{slider:F,slider$:B,isRange:le,sliderProps:te,init:he,destroy:X,refresh:fe,update:Re,reset:function(){Be(V.value)}}}(e,t,{value:n.value,initialValue:n.initialValue,tooltipsFormat:s.tooltipsFormat,tooltipsMerge:s.tooltipsMerge,classList:r.classList});return Je(Je(Je({},r),s),o)}};Si.render=function(e,t,n,r,s,o){return E(),D("div",Bd(e.sliderProps,{ref:"slider"}),null,16)},Si.__file="src/Slider.vue";var Vy={exports:{}},Ez=[{value:"#B0171F",name:"indian red"},{value:"#DC143C",css:!0,name:"crimson"},{value:"#FFB6C1",css:!0,name:"lightpink"},{value:"#FFAEB9",name:"lightpink 1"},{value:"#EEA2AD",name:"lightpink 2"},{value:"#CD8C95",name:"lightpink 3"},{value:"#8B5F65",name:"lightpink 4"},{value:"#FFC0CB",css:!0,name:"pink"},{value:"#FFB5C5",name:"pink 1"},{value:"#EEA9B8",name:"pink 2"},{value:"#CD919E",name:"pink 3"},{value:"#8B636C",name:"pink 4"},{value:"#DB7093",css:!0,name:"palevioletred"},{value:"#FF82AB",name:"palevioletred 1"},{value:"#EE799F",name:"palevioletred 2"},{value:"#CD6889",name:"palevioletred 3"},{value:"#8B475D",name:"palevioletred 4"},{value:"#FFF0F5",name:"lavenderblush 1"},{value:"#FFF0F5",css:!0,name:"lavenderblush"},{value:"#EEE0E5",name:"lavenderblush 2"},{value:"#CDC1C5",name:"lavenderblush 3"},{value:"#8B8386",name:"lavenderblush 4"},{value:"#FF3E96",name:"violetred 1"},{value:"#EE3A8C",name:"violetred 2"},{value:"#CD3278",name:"violetred 3"},{value:"#8B2252",name:"violetred 4"},{value:"#FF69B4",css:!0,name:"hotpink"},{value:"#FF6EB4",name:"hotpink 1"},{value:"#EE6AA7",name:"hotpink 2"},{value:"#CD6090",name:"hotpink 3"},{value:"#8B3A62",name:"hotpink 4"},{value:"#872657",name:"raspberry"},{value:"#FF1493",name:"deeppink 1"},{value:"#FF1493",css:!0,name:"deeppink"},{value:"#EE1289",name:"deeppink 2"},{value:"#CD1076",name:"deeppink 3"},{value:"#8B0A50",name:"deeppink 4"},{value:"#FF34B3",name:"maroon 1"},{value:"#EE30A7",name:"maroon 2"},{value:"#CD2990",name:"maroon 3"},{value:"#8B1C62",name:"maroon 4"},{value:"#C71585",css:!0,name:"mediumvioletred"},{value:"#D02090",name:"violetred"},{value:"#DA70D6",css:!0,name:"orchid"},{value:"#FF83FA",name:"orchid 1"},{value:"#EE7AE9",name:"orchid 2"},{value:"#CD69C9",name:"orchid 3"},{value:"#8B4789",name:"orchid 4"},{value:"#D8BFD8",css:!0,name:"thistle"},{value:"#FFE1FF",name:"thistle 1"},{value:"#EED2EE",name:"thistle 2"},{value:"#CDB5CD",name:"thistle 3"},{value:"#8B7B8B",name:"thistle 4"},{value:"#FFBBFF",name:"plum 1"},{value:"#EEAEEE",name:"plum 2"},{value:"#CD96CD",name:"plum 3"},{value:"#8B668B",name:"plum 4"},{value:"#DDA0DD",css:!0,name:"plum"},{value:"#EE82EE",css:!0,name:"violet"},{value:"#FF00FF",vga:!0,name:"magenta"},{value:"#FF00FF",vga:!0,css:!0,name:"fuchsia"},{value:"#EE00EE",name:"magenta 2"},{value:"#CD00CD",name:"magenta 3"},{value:"#8B008B",name:"magenta 4"},{value:"#8B008B",css:!0,name:"darkmagenta"},{value:"#800080",vga:!0,css:!0,name:"purple"},{value:"#BA55D3",css:!0,name:"mediumorchid"},{value:"#E066FF",name:"mediumorchid 1"},{value:"#D15FEE",name:"mediumorchid 2"},{value:"#B452CD",name:"mediumorchid 3"},{value:"#7A378B",name:"mediumorchid 4"},{value:"#9400D3",css:!0,name:"darkviolet"},{value:"#9932CC",css:!0,name:"darkorchid"},{value:"#BF3EFF",name:"darkorchid 1"},{value:"#B23AEE",name:"darkorchid 2"},{value:"#9A32CD",name:"darkorchid 3"},{value:"#68228B",name:"darkorchid 4"},{value:"#4B0082",css:!0,name:"indigo"},{value:"#8A2BE2",css:!0,name:"blueviolet"},{value:"#9B30FF",name:"purple 1"},{value:"#912CEE",name:"purple 2"},{value:"#7D26CD",name:"purple 3"},{value:"#551A8B",name:"purple 4"},{value:"#9370DB",css:!0,name:"mediumpurple"},{value:"#AB82FF",name:"mediumpurple 1"},{value:"#9F79EE",name:"mediumpurple 2"},{value:"#8968CD",name:"mediumpurple 3"},{value:"#5D478B",name:"mediumpurple 4"},{value:"#483D8B",css:!0,name:"darkslateblue"},{value:"#8470FF",name:"lightslateblue"},{value:"#7B68EE",css:!0,name:"mediumslateblue"},{value:"#6A5ACD",css:!0,name:"slateblue"},{value:"#836FFF",name:"slateblue 1"},{value:"#7A67EE",name:"slateblue 2"},{value:"#6959CD",name:"slateblue 3"},{value:"#473C8B",name:"slateblue 4"},{value:"#F8F8FF",css:!0,name:"ghostwhite"},{value:"#E6E6FA",css:!0,name:"lavender"},{value:"#0000FF",vga:!0,css:!0,name:"blue"},{value:"#0000EE",name:"blue 2"},{value:"#0000CD",name:"blue 3"},{value:"#0000CD",css:!0,name:"mediumblue"},{value:"#00008B",name:"blue 4"},{value:"#00008B",css:!0,name:"darkblue"},{value:"#000080",vga:!0,css:!0,name:"navy"},{value:"#191970",css:!0,name:"midnightblue"},{value:"#3D59AB",name:"cobalt"},{value:"#4169E1",css:!0,name:"royalblue"},{value:"#4876FF",name:"royalblue 1"},{value:"#436EEE",name:"royalblue 2"},{value:"#3A5FCD",name:"royalblue 3"},{value:"#27408B",name:"royalblue 4"},{value:"#6495ED",css:!0,name:"cornflowerblue"},{value:"#B0C4DE",css:!0,name:"lightsteelblue"},{value:"#CAE1FF",name:"lightsteelblue 1"},{value:"#BCD2EE",name:"lightsteelblue 2"},{value:"#A2B5CD",name:"lightsteelblue 3"},{value:"#6E7B8B",name:"lightsteelblue 4"},{value:"#778899",css:!0,name:"lightslategray"},{value:"#708090",css:!0,name:"slategray"},{value:"#C6E2FF",name:"slategray 1"},{value:"#B9D3EE",name:"slategray 2"},{value:"#9FB6CD",name:"slategray 3"},{value:"#6C7B8B",name:"slategray 4"},{value:"#1E90FF",name:"dodgerblue 1"},{value:"#1E90FF",css:!0,name:"dodgerblue"},{value:"#1C86EE",name:"dodgerblue 2"},{value:"#1874CD",name:"dodgerblue 3"},{value:"#104E8B",name:"dodgerblue 4"},{value:"#F0F8FF",css:!0,name:"aliceblue"},{value:"#4682B4",css:!0,name:"steelblue"},{value:"#63B8FF",name:"steelblue 1"},{value:"#5CACEE",name:"steelblue 2"},{value:"#4F94CD",name:"steelblue 3"},{value:"#36648B",name:"steelblue 4"},{value:"#87CEFA",css:!0,name:"lightskyblue"},{value:"#B0E2FF",name:"lightskyblue 1"},{value:"#A4D3EE",name:"lightskyblue 2"},{value:"#8DB6CD",name:"lightskyblue 3"},{value:"#607B8B",name:"lightskyblue 4"},{value:"#87CEFF",name:"skyblue 1"},{value:"#7EC0EE",name:"skyblue 2"},{value:"#6CA6CD",name:"skyblue 3"},{value:"#4A708B",name:"skyblue 4"},{value:"#87CEEB",css:!0,name:"skyblue"},{value:"#00BFFF",name:"deepskyblue 1"},{value:"#00BFFF",css:!0,name:"deepskyblue"},{value:"#00B2EE",name:"deepskyblue 2"},{value:"#009ACD",name:"deepskyblue 3"},{value:"#00688B",name:"deepskyblue 4"},{value:"#33A1C9",name:"peacock"},{value:"#ADD8E6",css:!0,name:"lightblue"},{value:"#BFEFFF",name:"lightblue 1"},{value:"#B2DFEE",name:"lightblue 2"},{value:"#9AC0CD",name:"lightblue 3"},{value:"#68838B",name:"lightblue 4"},{value:"#B0E0E6",css:!0,name:"powderblue"},{value:"#98F5FF",name:"cadetblue 1"},{value:"#8EE5EE",name:"cadetblue 2"},{value:"#7AC5CD",name:"cadetblue 3"},{value:"#53868B",name:"cadetblue 4"},{value:"#00F5FF",name:"turquoise 1"},{value:"#00E5EE",name:"turquoise 2"},{value:"#00C5CD",name:"turquoise 3"},{value:"#00868B",name:"turquoise 4"},{value:"#5F9EA0",css:!0,name:"cadetblue"},{value:"#00CED1",css:!0,name:"darkturquoise"},{value:"#F0FFFF",name:"azure 1"},{value:"#F0FFFF",css:!0,name:"azure"},{value:"#E0EEEE",name:"azure 2"},{value:"#C1CDCD",name:"azure 3"},{value:"#838B8B",name:"azure 4"},{value:"#E0FFFF",name:"lightcyan 1"},{value:"#E0FFFF",css:!0,name:"lightcyan"},{value:"#D1EEEE",name:"lightcyan 2"},{value:"#B4CDCD",name:"lightcyan 3"},{value:"#7A8B8B",name:"lightcyan 4"},{value:"#BBFFFF",name:"paleturquoise 1"},{value:"#AEEEEE",name:"paleturquoise 2"},{value:"#AEEEEE",css:!0,name:"paleturquoise"},{value:"#96CDCD",name:"paleturquoise 3"},{value:"#668B8B",name:"paleturquoise 4"},{value:"#2F4F4F",css:!0,name:"darkslategray"},{value:"#97FFFF",name:"darkslategray 1"},{value:"#8DEEEE",name:"darkslategray 2"},{value:"#79CDCD",name:"darkslategray 3"},{value:"#528B8B",name:"darkslategray 4"},{value:"#00FFFF",name:"cyan"},{value:"#00FFFF",css:!0,name:"aqua"},{value:"#00EEEE",name:"cyan 2"},{value:"#00CDCD",name:"cyan 3"},{value:"#008B8B",name:"cyan 4"},{value:"#008B8B",css:!0,name:"darkcyan"},{value:"#008080",vga:!0,css:!0,name:"teal"},{value:"#48D1CC",css:!0,name:"mediumturquoise"},{value:"#20B2AA",css:!0,name:"lightseagreen"},{value:"#03A89E",name:"manganeseblue"},{value:"#40E0D0",css:!0,name:"turquoise"},{value:"#808A87",name:"coldgrey"},{value:"#00C78C",name:"turquoiseblue"},{value:"#7FFFD4",name:"aquamarine 1"},{value:"#7FFFD4",css:!0,name:"aquamarine"},{value:"#76EEC6",name:"aquamarine 2"},{value:"#66CDAA",name:"aquamarine 3"},{value:"#66CDAA",css:!0,name:"mediumaquamarine"},{value:"#458B74",name:"aquamarine 4"},{value:"#00FA9A",css:!0,name:"mediumspringgreen"},{value:"#F5FFFA",css:!0,name:"mintcream"},{value:"#00FF7F",css:!0,name:"springgreen"},{value:"#00EE76",name:"springgreen 1"},{value:"#00CD66",name:"springgreen 2"},{value:"#008B45",name:"springgreen 3"},{value:"#3CB371",css:!0,name:"mediumseagreen"},{value:"#54FF9F",name:"seagreen 1"},{value:"#4EEE94",name:"seagreen 2"},{value:"#43CD80",name:"seagreen 3"},{value:"#2E8B57",name:"seagreen 4"},{value:"#2E8B57",css:!0,name:"seagreen"},{value:"#00C957",name:"emeraldgreen"},{value:"#BDFCC9",name:"mint"},{value:"#3D9140",name:"cobaltgreen"},{value:"#F0FFF0",name:"honeydew 1"},{value:"#F0FFF0",css:!0,name:"honeydew"},{value:"#E0EEE0",name:"honeydew 2"},{value:"#C1CDC1",name:"honeydew 3"},{value:"#838B83",name:"honeydew 4"},{value:"#8FBC8F",css:!0,name:"darkseagreen"},{value:"#C1FFC1",name:"darkseagreen 1"},{value:"#B4EEB4",name:"darkseagreen 2"},{value:"#9BCD9B",name:"darkseagreen 3"},{value:"#698B69",name:"darkseagreen 4"},{value:"#98FB98",css:!0,name:"palegreen"},{value:"#9AFF9A",name:"palegreen 1"},{value:"#90EE90",name:"palegreen 2"},{value:"#90EE90",css:!0,name:"lightgreen"},{value:"#7CCD7C",name:"palegreen 3"},{value:"#548B54",name:"palegreen 4"},{value:"#32CD32",css:!0,name:"limegreen"},{value:"#228B22",css:!0,name:"forestgreen"},{value:"#00FF00",vga:!0,name:"green 1"},{value:"#00FF00",vga:!0,css:!0,name:"lime"},{value:"#00EE00",name:"green 2"},{value:"#00CD00",name:"green 3"},{value:"#008B00",name:"green 4"},{value:"#008000",vga:!0,css:!0,name:"green"},{value:"#006400",css:!0,name:"darkgreen"},{value:"#308014",name:"sapgreen"},{value:"#7CFC00",css:!0,name:"lawngreen"},{value:"#7FFF00",name:"chartreuse 1"},{value:"#7FFF00",css:!0,name:"chartreuse"},{value:"#76EE00",name:"chartreuse 2"},{value:"#66CD00",name:"chartreuse 3"},{value:"#458B00",name:"chartreuse 4"},{value:"#ADFF2F",css:!0,name:"greenyellow"},{value:"#CAFF70",name:"darkolivegreen 1"},{value:"#BCEE68",name:"darkolivegreen 2"},{value:"#A2CD5A",name:"darkolivegreen 3"},{value:"#6E8B3D",name:"darkolivegreen 4"},{value:"#556B2F",css:!0,name:"darkolivegreen"},{value:"#6B8E23",css:!0,name:"olivedrab"},{value:"#C0FF3E",name:"olivedrab 1"},{value:"#B3EE3A",name:"olivedrab 2"},{value:"#9ACD32",name:"olivedrab 3"},{value:"#9ACD32",css:!0,name:"yellowgreen"},{value:"#698B22",name:"olivedrab 4"},{value:"#FFFFF0",name:"ivory 1"},{value:"#FFFFF0",css:!0,name:"ivory"},{value:"#EEEEE0",name:"ivory 2"},{value:"#CDCDC1",name:"ivory 3"},{value:"#8B8B83",name:"ivory 4"},{value:"#F5F5DC",css:!0,name:"beige"},{value:"#FFFFE0",name:"lightyellow 1"},{value:"#FFFFE0",css:!0,name:"lightyellow"},{value:"#EEEED1",name:"lightyellow 2"},{value:"#CDCDB4",name:"lightyellow 3"},{value:"#8B8B7A",name:"lightyellow 4"},{value:"#FAFAD2",css:!0,name:"lightgoldenrodyellow"},{value:"#FFFF00",vga:!0,name:"yellow 1"},{value:"#FFFF00",vga:!0,css:!0,name:"yellow"},{value:"#EEEE00",name:"yellow 2"},{value:"#CDCD00",name:"yellow 3"},{value:"#8B8B00",name:"yellow 4"},{value:"#808069",name:"warmgrey"},{value:"#808000",vga:!0,css:!0,name:"olive"},{value:"#BDB76B",css:!0,name:"darkkhaki"},{value:"#FFF68F",name:"khaki 1"},{value:"#EEE685",name:"khaki 2"},{value:"#CDC673",name:"khaki 3"},{value:"#8B864E",name:"khaki 4"},{value:"#F0E68C",css:!0,name:"khaki"},{value:"#EEE8AA",css:!0,name:"palegoldenrod"},{value:"#FFFACD",name:"lemonchiffon 1"},{value:"#FFFACD",css:!0,name:"lemonchiffon"},{value:"#EEE9BF",name:"lemonchiffon 2"},{value:"#CDC9A5",name:"lemonchiffon 3"},{value:"#8B8970",name:"lemonchiffon 4"},{value:"#FFEC8B",name:"lightgoldenrod 1"},{value:"#EEDC82",name:"lightgoldenrod 2"},{value:"#CDBE70",name:"lightgoldenrod 3"},{value:"#8B814C",name:"lightgoldenrod 4"},{value:"#E3CF57",name:"banana"},{value:"#FFD700",name:"gold 1"},{value:"#FFD700",css:!0,name:"gold"},{value:"#EEC900",name:"gold 2"},{value:"#CDAD00",name:"gold 3"},{value:"#8B7500",name:"gold 4"},{value:"#FFF8DC",name:"cornsilk 1"},{value:"#FFF8DC",css:!0,name:"cornsilk"},{value:"#EEE8CD",name:"cornsilk 2"},{value:"#CDC8B1",name:"cornsilk 3"},{value:"#8B8878",name:"cornsilk 4"},{value:"#DAA520",css:!0,name:"goldenrod"},{value:"#FFC125",name:"goldenrod 1"},{value:"#EEB422",name:"goldenrod 2"},{value:"#CD9B1D",name:"goldenrod 3"},{value:"#8B6914",name:"goldenrod 4"},{value:"#B8860B",css:!0,name:"darkgoldenrod"},{value:"#FFB90F",name:"darkgoldenrod 1"},{value:"#EEAD0E",name:"darkgoldenrod 2"},{value:"#CD950C",name:"darkgoldenrod 3"},{value:"#8B6508",name:"darkgoldenrod 4"},{value:"#FFA500",name:"orange 1"},{value:"#FF8000",css:!0,name:"orange"},{value:"#EE9A00",name:"orange 2"},{value:"#CD8500",name:"orange 3"},{value:"#8B5A00",name:"orange 4"},{value:"#FFFAF0",css:!0,name:"floralwhite"},{value:"#FDF5E6",css:!0,name:"oldlace"},{value:"#F5DEB3",css:!0,name:"wheat"},{value:"#FFE7BA",name:"wheat 1"},{value:"#EED8AE",name:"wheat 2"},{value:"#CDBA96",name:"wheat 3"},{value:"#8B7E66",name:"wheat 4"},{value:"#FFE4B5",css:!0,name:"moccasin"},{value:"#FFEFD5",css:!0,name:"papayawhip"},{value:"#FFEBCD",css:!0,name:"blanchedalmond"},{value:"#FFDEAD",name:"navajowhite 1"},{value:"#FFDEAD",css:!0,name:"navajowhite"},{value:"#EECFA1",name:"navajowhite 2"},{value:"#CDB38B",name:"navajowhite 3"},{value:"#8B795E",name:"navajowhite 4"},{value:"#FCE6C9",name:"eggshell"},{value:"#D2B48C",css:!0,name:"tan"},{value:"#9C661F",name:"brick"},{value:"#FF9912",name:"cadmiumyellow"},{value:"#FAEBD7",css:!0,name:"antiquewhite"},{value:"#FFEFDB",name:"antiquewhite 1"},{value:"#EEDFCC",name:"antiquewhite 2"},{value:"#CDC0B0",name:"antiquewhite 3"},{value:"#8B8378",name:"antiquewhite 4"},{value:"#DEB887",css:!0,name:"burlywood"},{value:"#FFD39B",name:"burlywood 1"},{value:"#EEC591",name:"burlywood 2"},{value:"#CDAA7D",name:"burlywood 3"},{value:"#8B7355",name:"burlywood 4"},{value:"#FFE4C4",name:"bisque 1"},{value:"#FFE4C4",css:!0,name:"bisque"},{value:"#EED5B7",name:"bisque 2"},{value:"#CDB79E",name:"bisque 3"},{value:"#8B7D6B",name:"bisque 4"},{value:"#E3A869",name:"melon"},{value:"#ED9121",name:"carrot"},{value:"#FF8C00",css:!0,name:"darkorange"},{value:"#FF7F00",name:"darkorange 1"},{value:"#EE7600",name:"darkorange 2"},{value:"#CD6600",name:"darkorange 3"},{value:"#8B4500",name:"darkorange 4"},{value:"#FFA54F",name:"tan 1"},{value:"#EE9A49",name:"tan 2"},{value:"#CD853F",name:"tan 3"},{value:"#CD853F",css:!0,name:"peru"},{value:"#8B5A2B",name:"tan 4"},{value:"#FAF0E6",css:!0,name:"linen"},{value:"#FFDAB9",name:"peachpuff 1"},{value:"#FFDAB9",css:!0,name:"peachpuff"},{value:"#EECBAD",name:"peachpuff 2"},{value:"#CDAF95",name:"peachpuff 3"},{value:"#8B7765",name:"peachpuff 4"},{value:"#FFF5EE",name:"seashell 1"},{value:"#FFF5EE",css:!0,name:"seashell"},{value:"#EEE5DE",name:"seashell 2"},{value:"#CDC5BF",name:"seashell 3"},{value:"#8B8682",name:"seashell 4"},{value:"#F4A460",css:!0,name:"sandybrown"},{value:"#C76114",name:"rawsienna"},{value:"#D2691E",css:!0,name:"chocolate"},{value:"#FF7F24",name:"chocolate 1"},{value:"#EE7621",name:"chocolate 2"},{value:"#CD661D",name:"chocolate 3"},{value:"#8B4513",name:"chocolate 4"},{value:"#8B4513",css:!0,name:"saddlebrown"},{value:"#292421",name:"ivoryblack"},{value:"#FF7D40",name:"flesh"},{value:"#FF6103",name:"cadmiumorange"},{value:"#8A360F",name:"burntsienna"},{value:"#A0522D",css:!0,name:"sienna"},{value:"#FF8247",name:"sienna 1"},{value:"#EE7942",name:"sienna 2"},{value:"#CD6839",name:"sienna 3"},{value:"#8B4726",name:"sienna 4"},{value:"#FFA07A",name:"lightsalmon 1"},{value:"#FFA07A",css:!0,name:"lightsalmon"},{value:"#EE9572",name:"lightsalmon 2"},{value:"#CD8162",name:"lightsalmon 3"},{value:"#8B5742",name:"lightsalmon 4"},{value:"#FF7F50",css:!0,name:"coral"},{value:"#FF4500",name:"orangered 1"},{value:"#FF4500",css:!0,name:"orangered"},{value:"#EE4000",name:"orangered 2"},{value:"#CD3700",name:"orangered 3"},{value:"#8B2500",name:"orangered 4"},{value:"#5E2612",name:"sepia"},{value:"#E9967A",css:!0,name:"darksalmon"},{value:"#FF8C69",name:"salmon 1"},{value:"#EE8262",name:"salmon 2"},{value:"#CD7054",name:"salmon 3"},{value:"#8B4C39",name:"salmon 4"},{value:"#FF7256",name:"coral 1"},{value:"#EE6A50",name:"coral 2"},{value:"#CD5B45",name:"coral 3"},{value:"#8B3E2F",name:"coral 4"},{value:"#8A3324",name:"burntumber"},{value:"#FF6347",name:"tomato 1"},{value:"#FF6347",css:!0,name:"tomato"},{value:"#EE5C42",name:"tomato 2"},{value:"#CD4F39",name:"tomato 3"},{value:"#8B3626",name:"tomato 4"},{value:"#FA8072",css:!0,name:"salmon"},{value:"#FFE4E1",name:"mistyrose 1"},{value:"#FFE4E1",css:!0,name:"mistyrose"},{value:"#EED5D2",name:"mistyrose 2"},{value:"#CDB7B5",name:"mistyrose 3"},{value:"#8B7D7B",name:"mistyrose 4"},{value:"#FFFAFA",name:"snow 1"},{value:"#FFFAFA",css:!0,name:"snow"},{value:"#EEE9E9",name:"snow 2"},{value:"#CDC9C9",name:"snow 3"},{value:"#8B8989",name:"snow 4"},{value:"#BC8F8F",css:!0,name:"rosybrown"},{value:"#FFC1C1",name:"rosybrown 1"},{value:"#EEB4B4",name:"rosybrown 2"},{value:"#CD9B9B",name:"rosybrown 3"},{value:"#8B6969",name:"rosybrown 4"},{value:"#F08080",css:!0,name:"lightcoral"},{value:"#CD5C5C",css:!0,name:"indianred"},{value:"#FF6A6A",name:"indianred 1"},{value:"#EE6363",name:"indianred 2"},{value:"#8B3A3A",name:"indianred 4"},{value:"#CD5555",name:"indianred 3"},{value:"#A52A2A",css:!0,name:"brown"},{value:"#FF4040",name:"brown 1"},{value:"#EE3B3B",name:"brown 2"},{value:"#CD3333",name:"brown 3"},{value:"#8B2323",name:"brown 4"},{value:"#B22222",css:!0,name:"firebrick"},{value:"#FF3030",name:"firebrick 1"},{value:"#EE2C2C",name:"firebrick 2"},{value:"#CD2626",name:"firebrick 3"},{value:"#8B1A1A",name:"firebrick 4"},{value:"#FF0000",vga:!0,name:"red 1"},{value:"#FF0000",vga:!0,css:!0,name:"red"},{value:"#EE0000",name:"red 2"},{value:"#CD0000",name:"red 3"},{value:"#8B0000",name:"red 4"},{value:"#8B0000",css:!0,name:"darkred"},{value:"#800000",vga:!0,css:!0,name:"maroon"},{value:"#8E388E",name:"sgi beet"},{value:"#7171C6",name:"sgi slateblue"},{value:"#7D9EC0",name:"sgi lightblue"},{value:"#388E8E",name:"sgi teal"},{value:"#71C671",name:"sgi chartreuse"},{value:"#8E8E38",name:"sgi olivedrab"},{value:"#C5C1AA",name:"sgi brightgray"},{value:"#C67171",name:"sgi salmon"},{value:"#555555",name:"sgi darkgray"},{value:"#1E1E1E",name:"sgi gray 12"},{value:"#282828",name:"sgi gray 16"},{value:"#515151",name:"sgi gray 32"},{value:"#5B5B5B",name:"sgi gray 36"},{value:"#848484",name:"sgi gray 52"},{value:"#8E8E8E",name:"sgi gray 56"},{value:"#AAAAAA",name:"sgi lightgray"},{value:"#B7B7B7",name:"sgi gray 72"},{value:"#C1C1C1",name:"sgi gray 76"},{value:"#EAEAEA",name:"sgi gray 92"},{value:"#F4F4F4",name:"sgi gray 96"},{value:"#FFFFFF",vga:!0,css:!0,name:"white"},{value:"#F5F5F5",name:"white smoke"},{value:"#F5F5F5",name:"gray 96"},{value:"#DCDCDC",css:!0,name:"gainsboro"},{value:"#D3D3D3",css:!0,name:"lightgrey"},{value:"#C0C0C0",vga:!0,css:!0,name:"silver"},{value:"#A9A9A9",css:!0,name:"darkgray"},{value:"#808080",vga:!0,css:!0,name:"gray"},{value:"#696969",css:!0,name:"dimgray"},{value:"#696969",name:"gray 42"},{value:"#000000",vga:!0,css:!0,name:"black"},{value:"#FCFCFC",name:"gray 99"},{value:"#FAFAFA",name:"gray 98"},{value:"#F7F7F7",name:"gray 97"},{value:"#F2F2F2",name:"gray 95"},{value:"#F0F0F0",name:"gray 94"},{value:"#EDEDED",name:"gray 93"},{value:"#EBEBEB",name:"gray 92"},{value:"#E8E8E8",name:"gray 91"},{value:"#E5E5E5",name:"gray 90"},{value:"#E3E3E3",name:"gray 89"},{value:"#E0E0E0",name:"gray 88"},{value:"#DEDEDE",name:"gray 87"},{value:"#DBDBDB",name:"gray 86"},{value:"#D9D9D9",name:"gray 85"},{value:"#D6D6D6",name:"gray 84"},{value:"#D4D4D4",name:"gray 83"},{value:"#D1D1D1",name:"gray 82"},{value:"#CFCFCF",name:"gray 81"},{value:"#CCCCCC",name:"gray 80"},{value:"#C9C9C9",name:"gray 79"},{value:"#C7C7C7",name:"gray 78"},{value:"#C4C4C4",name:"gray 77"},{value:"#C2C2C2",name:"gray 76"},{value:"#BFBFBF",name:"gray 75"},{value:"#BDBDBD",name:"gray 74"},{value:"#BABABA",name:"gray 73"},{value:"#B8B8B8",name:"gray 72"},{value:"#B5B5B5",name:"gray 71"},{value:"#B3B3B3",name:"gray 70"},{value:"#B0B0B0",name:"gray 69"},{value:"#ADADAD",name:"gray 68"},{value:"#ABABAB",name:"gray 67"},{value:"#A8A8A8",name:"gray 66"},{value:"#A6A6A6",name:"gray 65"},{value:"#A3A3A3",name:"gray 64"},{value:"#A1A1A1",name:"gray 63"},{value:"#9E9E9E",name:"gray 62"},{value:"#9C9C9C",name:"gray 61"},{value:"#999999",name:"gray 60"},{value:"#969696",name:"gray 59"},{value:"#949494",name:"gray 58"},{value:"#919191",name:"gray 57"},{value:"#8F8F8F",name:"gray 56"},{value:"#8C8C8C",name:"gray 55"},{value:"#8A8A8A",name:"gray 54"},{value:"#878787",name:"gray 53"},{value:"#858585",name:"gray 52"},{value:"#828282",name:"gray 51"},{value:"#7F7F7F",name:"gray 50"},{value:"#7D7D7D",name:"gray 49"},{value:"#7A7A7A",name:"gray 48"},{value:"#787878",name:"gray 47"},{value:"#757575",name:"gray 46"},{value:"#737373",name:"gray 45"},{value:"#707070",name:"gray 44"},{value:"#6E6E6E",name:"gray 43"},{value:"#666666",name:"gray 40"},{value:"#636363",name:"gray 39"},{value:"#616161",name:"gray 38"},{value:"#5E5E5E",name:"gray 37"},{value:"#5C5C5C",name:"gray 36"},{value:"#595959",name:"gray 35"},{value:"#575757",name:"gray 34"},{value:"#545454",name:"gray 33"},{value:"#525252",name:"gray 32"},{value:"#4F4F4F",name:"gray 31"},{value:"#4D4D4D",name:"gray 30"},{value:"#4A4A4A",name:"gray 29"},{value:"#474747",name:"gray 28"},{value:"#454545",name:"gray 27"},{value:"#424242",name:"gray 26"},{value:"#404040",name:"gray 25"},{value:"#3D3D3D",name:"gray 24"},{value:"#3B3B3B",name:"gray 23"},{value:"#383838",name:"gray 22"},{value:"#363636",name:"gray 21"},{value:"#333333",name:"gray 20"},{value:"#303030",name:"gray 19"},{value:"#2E2E2E",name:"gray 18"},{value:"#2B2B2B",name:"gray 17"},{value:"#292929",name:"gray 16"},{value:"#262626",name:"gray 15"},{value:"#242424",name:"gray 14"},{value:"#212121",name:"gray 13"},{value:"#1F1F1F",name:"gray 12"},{value:"#1C1C1C",name:"gray 11"},{value:"#1A1A1A",name:"gray 10"},{value:"#171717",name:"gray 9"},{value:"#141414",name:"gray 8"},{value:"#121212",name:"gray 7"},{value:"#0F0F0F",name:"gray 6"},{value:"#0D0D0D",name:"gray 5"},{value:"#0A0A0A",name:"gray 4"},{value:"#080808",name:"gray 3"},{value:"#050505",name:"gray 2"},{value:"#030303",name:"gray 1"},{value:"#F5F5F5",css:!0,name:"whitesmoke"}];(function(e){var t=Ez,n=t.filter(function(s){return!!s.css}),r=t.filter(function(s){return!!s.vga});e.exports=function(s){var o=e.exports.get(s);return o&&o.value},e.exports.get=function(s){return s=s||"",s=s.trim().toLowerCase(),t.filter(function(o){return o.name.toLowerCase()===s}).pop()},e.exports.all=e.exports.get.all=function(){return t},e.exports.get.css=function(s){return s?(s=s||"",s=s.trim().toLowerCase(),n.filter(function(o){return o.name.toLowerCase()===s}).pop()):n},e.exports.get.vga=function(s){return s?(s=s||"",s=s.trim().toLowerCase(),r.filter(function(o){return o.name.toLowerCase()===s}).pop()):r}})(Vy);var $z=1/0,zz="[object Symbol]",Az=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,jy="\\ud800-\\udfff",Oz="\\u0300-\\u036f\\ufe20-\\ufe23",Tz="\\u20d0-\\u20f0",By="\\u2700-\\u27bf",Hy="a-z\\xdf-\\xf6\\xf8-\\xff",Pz="\\xac\\xb1\\xd7\\xf7",Dz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",Fz="\\u2000-\\u206f",Iz=" \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",Uy="A-Z\\xc0-\\xd6\\xd8-\\xde",Mz="\\ufe0e\\ufe0f",qy=Pz+Dz+Fz+Iz,Wy="['\u2019]",Zp="["+qy+"]",Rz="["+Oz+Tz+"]",Gy="\\d+",Lz="["+By+"]",Ky="["+Hy+"]",Yy="[^"+jy+qy+Gy+By+Hy+Uy+"]",Nz="\\ud83c[\\udffb-\\udfff]",Vz="(?:"+Rz+"|"+Nz+")",jz="[^"+jy+"]",Zy="(?:\\ud83c[\\udde6-\\uddff]){2}",Jy="[\\ud800-\\udbff][\\udc00-\\udfff]",Xs="["+Uy+"]",Bz="\\u200d",Jp="(?:"+Ky+"|"+Yy+")",Hz="(?:"+Xs+"|"+Yy+")",Xp="(?:"+Wy+"(?:d|ll|m|re|s|t|ve))?",Qp="(?:"+Wy+"(?:D|LL|M|RE|S|T|VE))?",Xy=Vz+"?",Qy="["+Mz+"]?",Uz="(?:"+Bz+"(?:"+[jz,Zy,Jy].join("|")+")"+Qy+Xy+")*",qz=Qy+Xy+Uz,Wz="(?:"+[Lz,Zy,Jy].join("|")+")"+qz,Gz=RegExp([Xs+"?"+Ky+"+"+Xp+"(?="+[Zp,Xs,"$"].join("|")+")",Hz+"+"+Qp+"(?="+[Zp,Xs+Jp,"$"].join("|")+")",Xs+"?"+Jp+"+"+Xp,Xs+"+"+Qp,Gy,Wz].join("|"),"g"),Kz=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Yz=typeof an=="object"&&an&&an.Object===Object&&an,Zz=typeof self=="object"&&self&&self.Object===Object&&self,Jz=Yz||Zz||Function("return this")();function Xz(e){return e.match(Az)||[]}function Qz(e){return Kz.test(e)}function e8(e){return e.match(Gz)||[]}var t8=Object.prototype,n8=t8.toString,eh=Jz.Symbol,th=eh?eh.prototype:void 0,nh=th?th.toString:void 0;function r8(e){if(typeof e=="string")return e;if(o8(e))return nh?nh.call(e):"";var t=e+"";return t=="0"&&1/e==-$z?"-0":t}function s8(e){return!!e&&typeof e=="object"}function o8(e){return typeof e=="symbol"||s8(e)&&n8.call(e)==zz}function i8(e){return e==null?"":r8(e)}function a8(e,t,n){return e=i8(e),t=n?void 0:t,t===void 0?Qz(e)?e8(e):Xz(e):e.match(t)||[]}var l8=a8,u8=1/0,c8="[object Symbol]",d8=/^\s+/,vf="\\ud800-\\udfff",ev="\\u0300-\\u036f\\ufe20-\\ufe23",tv="\\u20d0-\\u20f0",nv="\\ufe0e\\ufe0f",f8="["+vf+"]",Qc="["+ev+tv+"]",ed="\\ud83c[\\udffb-\\udfff]",m8="(?:"+Qc+"|"+ed+")",rv="[^"+vf+"]",sv="(?:\\ud83c[\\udde6-\\uddff]){2}",ov="[\\ud800-\\udbff][\\udc00-\\udfff]",iv="\\u200d",av=m8+"?",lv="["+nv+"]?",p8="(?:"+iv+"(?:"+[rv,sv,ov].join("|")+")"+lv+av+")*",h8=lv+av+p8,_8="(?:"+[rv+Qc+"?",Qc,sv,ov,f8].join("|")+")",g8=RegExp(ed+"(?="+ed+")|"+_8+h8,"g"),y8=RegExp("["+iv+vf+ev+tv+nv+"]"),v8=typeof an=="object"&&an&&an.Object===Object&&an,b8=typeof self=="object"&&self&&self.Object===Object&&self,w8=v8||b8||Function("return this")();function C8(e){return e.split("")}function x8(e,t,n,r){for(var s=e.length,o=n+(r?1:-1);r?o--:++o<s;)if(t(e[o],o,e))return o;return-1}function k8(e,t,n){if(t!==t)return x8(e,S8,n);for(var r=n-1,s=e.length;++r<s;)if(e[r]===t)return r;return-1}function S8(e){return e!==e}function E8(e,t){for(var n=-1,r=e.length;++n<r&&k8(t,e[n],0)>-1;);return n}function $8(e){return y8.test(e)}function rh(e){return $8(e)?z8(e):C8(e)}function z8(e){return e.match(g8)||[]}var A8=Object.prototype,O8=A8.toString,sh=w8.Symbol,oh=sh?sh.prototype:void 0,ih=oh?oh.toString:void 0;function T8(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++r<s;)o[r]=e[r+t];return o}function uv(e){if(typeof e=="string")return e;if(F8(e))return ih?ih.call(e):"";var t=e+"";return t=="0"&&1/e==-u8?"-0":t}function P8(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:T8(e,t,n)}function D8(e){return!!e&&typeof e=="object"}function F8(e){return typeof e=="symbol"||D8(e)&&O8.call(e)==c8}function I8(e){return e==null?"":uv(e)}function M8(e,t,n){if(e=I8(e),e&&(n||t===void 0))return e.replace(d8,"");if(!e||!(t=uv(t)))return e;var r=rh(e),s=E8(r,rh(t));return P8(r,s).join("")}var R8=M8,td=1/0,L8=9007199254740991,N8=17976931348623157e292,ah=0/0,V8="[object Symbol]",j8=/^\s+|\s+$/g,B8=/^[-+]0x[0-9a-f]+$/i,H8=/^0b[01]+$/i,U8=/^0o[0-7]+$/i,bf="\\ud800-\\udfff",cv="\\u0300-\\u036f\\ufe20-\\ufe23",dv="\\u20d0-\\u20f0",fv="\\ufe0e\\ufe0f",q8="["+bf+"]",nd="["+cv+dv+"]",rd="\\ud83c[\\udffb-\\udfff]",W8="(?:"+nd+"|"+rd+")",mv="[^"+bf+"]",pv="(?:\\ud83c[\\udde6-\\uddff]){2}",hv="[\\ud800-\\udbff][\\udc00-\\udfff]",_v="\\u200d",gv=W8+"?",yv="["+fv+"]?",G8="(?:"+_v+"(?:"+[mv,pv,hv].join("|")+")"+yv+gv+")*",K8=yv+gv+G8,Y8="(?:"+[mv+nd+"?",nd,pv,hv,q8].join("|")+")",sd=RegExp(rd+"(?="+rd+")|"+Y8+K8,"g"),Z8=RegExp("["+_v+bf+cv+dv+fv+"]"),J8=parseInt,X8=typeof an=="object"&&an&&an.Object===Object&&an,Q8=typeof self=="object"&&self&&self.Object===Object&&self,eA=X8||Q8||Function("return this")(),tA=rA("length");function nA(e){return e.split("")}function rA(e){return function(t){return t==null?void 0:t[e]}}function wf(e){return Z8.test(e)}function vv(e){return wf(e)?oA(e):tA(e)}function sA(e){return wf(e)?iA(e):nA(e)}function oA(e){for(var t=sd.lastIndex=0;sd.test(e);)t++;return t}function iA(e){return e.match(sd)||[]}var aA=Object.prototype,lA=aA.toString,lh=eA.Symbol,uA=Math.ceil,cA=Math.floor,uh=lh?lh.prototype:void 0,ch=uh?uh.toString:void 0;function dh(e,t){var n="";if(!e||t<1||t>L8)return n;do t%2&&(n+=e),t=cA(t/2),t&&(e+=e);while(t);return n}function dA(e,t,n){var r=-1,s=e.length;t<0&&(t=-t>s?0:s+t),n=n>s?s:n,n<0&&(n+=s),s=t>n?0:n-t>>>0,t>>>=0;for(var o=Array(s);++r<s;)o[r]=e[r+t];return o}function bv(e){if(typeof e=="string")return e;if(wv(e))return ch?ch.call(e):"";var t=e+"";return t=="0"&&1/e==-td?"-0":t}function fA(e,t,n){var r=e.length;return n=n===void 0?r:n,!t&&n>=r?e:dA(e,t,n)}function mA(e,t){t=t===void 0?" ":bv(t);var n=t.length;if(n<2)return n?dh(t,e):t;var r=dh(t,uA(e/vv(t)));return wf(t)?fA(sA(r),0,e).join(""):r.slice(0,e)}function fh(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function pA(e){return!!e&&typeof e=="object"}function wv(e){return typeof e=="symbol"||pA(e)&&lA.call(e)==V8}function hA(e){if(!e)return e===0?e:0;if(e=gA(e),e===td||e===-td){var t=e<0?-1:1;return t*N8}return e===e?e:0}function _A(e){var t=hA(e),n=t%1;return t===t?n?t-n:t:0}function gA(e){if(typeof e=="number")return e;if(wv(e))return ah;if(fh(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=fh(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(j8,"");var n=H8.test(e);return n||U8.test(e)?J8(e.slice(2),n?2:8):B8.test(e)?ah:+e}function yA(e){return e==null?"":bv(e)}function vA(e,t,n){e=yA(e),t=_A(t);var r=t?vv(e):0;return t&&r<t?e+mA(t-r,n):e}var bA=vA,wA=(e,t,n,r)=>{const s=(e+(r||"")).toString().includes("%");if(typeof e=="string"?[e,t,n,r]=e.match(/(0?\.?\d{1,3})%?\b/g).map(Number):r!==void 0&&(r=parseFloat(r)),typeof e!="number"||typeof t!="number"||typeof n!="number"||e>255||t>255||n>255)throw new TypeError("Expected three numbers below 256");if(typeof r=="number"){if(!s&&r>=0&&r<=1)r=Math.round(255*r);else if(s&&r>=0&&r<=100)r=Math.round(255*r/100);else throw new TypeError(`Expected alpha value (${r}) as a fraction or percentage`);r=(r|1<<8).toString(16).slice(1)}else r="";return(n|t<<8|e<<16|1<<24).toString(16).slice(1)+r};const Ei="a-f\\d",CA=`#?[${Ei}]{3}[${Ei}]?`,xA=`#?[${Ei}]{6}([${Ei}]{2})?`,kA=new RegExp(`[^#${Ei}]`,"gi"),SA=new RegExp(`^${CA}$|^${xA}$`,"i");var EA=(e,t={})=>{if(typeof e!="string"||kA.test(e)||!SA.test(e))throw new TypeError("Expected a valid hex string");e=e.replace(/^#/,"");let n=1;e.length===8&&(n=Number.parseInt(e.slice(6,8),16)/255,e=e.slice(0,6)),e.length===4&&(n=Number.parseInt(e.slice(3,4).repeat(2),16)/255,e=e.slice(0,3)),e.length===3&&(e=e[0]+e[0]+e[1]+e[1]+e[2]+e[2]);const r=Number.parseInt(e,16),s=r>>16,o=r>>8&255,i=r&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[s,o,i,a];if(t.format==="css"){const l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${s} ${o} ${i}${l})`}return{red:s,green:o,blue:i,alpha:a}},$A=Vy.exports,zA=l8,AA=R8,OA=bA,TA=wA,Cv=EA;const tc=.75,nc=.25,rc=16777215,PA=49979693;var DA=function(e){return"#"+MA(String(JSON.stringify(e)))};function FA(e){var t=zA(e),n=[];return t.forEach(function(r){var s=$A(r);s&&n.push(Cv(AA(s,"#"),{format:"array"}))}),n}function IA(e){var t=[0,0,0];return e.forEach(function(n){for(var r=0;r<3;r++)t[r]+=n[r]}),[t[0]/e.length,t[1]/e.length,t[2]/e.length]}function MA(e){var t,n=FA(e);n.length>0&&(t=IA(n));var r=1,s=0,o=1;if(e.length>0)for(var i=0;i<e.length;i++)e[i].charCodeAt(0)>s&&(s=e[i].charCodeAt(0)),o=parseInt(rc/s),r=(r+e[i].charCodeAt(0)*o*PA)%rc;var a=(r*e.length%rc).toString(16);a=OA(a,6,a);var l=Cv(a,{format:"array"});return t?TA(nc*l[0]+tc*t[0],nc*l[1]+tc*t[1],nc*l[2]+tc*t[2]):a}function RA(e){const t=e.replace(/#/,""),n=parseInt(t.substr(0,2),16),r=parseInt(t.substr(2,2),16),s=parseInt(t.substr(4,2),16);return[.299*n,.587*r,.114*s].reduce((i,a)=>i+a)/255>.5}function LA(e){return RA(e)?"#000000":"#ffffff"}function NA(e){const t='<svg width="'+e.width+'" height="'+e.height+'" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 '+e.width+" "+e.height+'" preserveAspectRatio="none"><defs><style type="text/css"> #holder text { fill: '+e.textColor+"; font-family: "+e.fontFamily+"; font-size: "+e.fontSize+"px; font-weight: "+e.fontWeight+'; } </style></defs><g id="holder"> <rect width="100%" height="100%" fill="'+e.backgroundColor+'"></rect> <g> <text text-anchor="middle" x="50%" y="50%" dy=".3em">'+e.caption+"</text> </g></g></svg>";return"data:image/svg+xml;charset=UTF-8,"+encodeURIComponent(t)}function xv(e,t,n){const r=DA(t),s=LA(r),o={width:n.width,height:n.height,textColor:s,backgroundColor:r,caption:e,fontFamily:n.font_family,fontSize:n.font_size,fontWeight:n.font_weight};return NA(o)}const VA={name:"CoverArtwork",props:["artist","album","artwork_url","maxwidth","maxheight"],emits:["click"],data(){return{width:600,height:600,font_family:"sans-serif",font_size:200,font_weight:600,lazy_lifecycle:{error:e=>{e.src=this.dataURI()}}}},computed:{artwork_url_with_size:function(){return this.maxwidth>0&&this.maxheight>0?K.artwork_url_append_size_params(this.artwork_url,this.maxwidth,this.maxheight):K.artwork_url_append_size_params(this.artwork_url)},alt_text(){return this.artist+" - "+this.album},caption(){return this.album?this.album.substring(0,2):this.artist?this.artist.substring(0,2):""}},methods:{dataURI:function(){return xv(this.caption,this.alt_text,{width:this.width,height:this.height,font_family:this.font_family,font_size:this.font_size,font_weight:this.font_weight})}}};function jA(e,t,n,r,s,o){const i=ql("lazy");return E(),D("figure",null,[Ct(c("img",{onClick:t[0]||(t[0]=a=>e.$emit("click"))},null,512),[[i,{src:o.artwork_url_with_size,lifecycle:s.lazy_lifecycle}]])])}var Pr=ve(VA,[["render",jA]]);const BA={name:"PageNowPlaying",components:{ModalDialogQueueItem:Ey,Slider:Si,CoverArtwork:Pr},data(){return{item_progress_ms:0,interval_id:0,is_dragged:!1,show_details_modal:!1,selected_item:{}}},computed:{state(){return this.$store.state.player},now_playing(){return this.$store.getters.now_playing},settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},settings_option_show_composer_for_genre(){return this.$store.getters.settings_option_show_composer_for_genre},composer(){return this.settings_option_show_composer_now_playing&&(!this.settings_option_show_composer_for_genre||this.now_playing.genre&&this.settings_option_show_composer_for_genre.toLowerCase().split(",").findIndex(e=>this.now_playing.genre.toLowerCase().indexOf(e.trim())>=0)>=0)?this.now_playing.composer:null}},watch:{state(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0),this.item_progress_ms=this.state.item_progress_ms,this.state.state==="play"&&(this.interval_id=window.setInterval(this.tick,1e3))}},mounted:function(){console.log(this.$refs.slider)},created(){this.item_progress_ms=this.state.item_progress_ms,K.player_status().then(({data:e})=>{this.$store.commit(Qd,e),this.state.state==="play"&&(this.interval_id=window.setInterval(this.tick,1e3))})},unmounted(){this.interval_id>0&&(window.clearTimeout(this.interval_id),this.interval_id=0)},methods:{tick:function(){this.is_dragged||(this.item_progress_ms+=1e3)},start_dragging:function(){console.log("@start"),this.is_dragged=!0},end_dragging:function(){console.log("@end"),this.is_dragged=!1},seek:function(e){K.player_seek_to_pos(e).catch(()=>{this.item_progress_ms=this.state.item_progress_ms})},open_dialog:function(e){this.selected_item=e,this.show_details_modal=!0}}},HA={key:0,class:"fd-is-fullheight"},UA={class:"fd-is-expanded"},qA={class:"fd-has-padding-left-right"},WA={class:"container has-text-centered"},GA={class:"control has-text-centered fd-progress-now-playing"},KA={class:"content"},YA=["textContent"],ZA={class:"fd-has-padding-left-right"},JA={class:"container has-text-centered fd-has-margin-top"},XA=["textContent"],QA=["textContent"],e6=["textContent"],t6=["textContent"],n6={key:1,class:"fd-is-fullheight"},r6={class:"fd-is-expanded fd-has-padding-left-right",style:{"flex-direction":"column"}},s6={class:"content has-text-centered"},o6=["textContent"],i6=["textContent"];function a6(e,t,n,r,s,o){const i=T("cover-artwork"),a=T("Slider"),l=T("modal-dialog-queue-item");return E(),D("section",null,[o.now_playing.id>0?(E(),D("div",HA,[c("div",UA,[C(i,{artwork_url:o.now_playing.artwork_url,artist:o.now_playing.artist,album:o.now_playing.album,class:"fd-cover-image fd-has-action",onClick:t[0]||(t[0]=u=>o.open_dialog(o.now_playing))},null,8,["artwork_url","artist","album"])]),c("div",qA,[c("div",WA,[c("p",GA,[C(a,{ref:"slider",modelValue:s.item_progress_ms,"onUpdate:modelValue":t[1]||(t[1]=u=>s.item_progress_ms=u),min:0,max:o.state.item_length_ms,step:1e3,tooltips:!1,disabled:o.state.state==="stop",classes:{target:"seek-slider"},onChange:o.seek,onStart:o.start_dragging,onEnd:o.end_dragging},null,8,["modelValue","max","disabled","onChange","onStart","onEnd"])]),c("p",KA,[c("span",{textContent:v([e.$filters.durationInHours(s.item_progress_ms),e.$filters.durationInHours(o.now_playing.length_ms)].join(" / "))},null,8,YA)])])]),c("div",ZA,[c("div",JA,[c("h1",{class:"title is-5",textContent:v(o.now_playing.title)},null,8,XA),c("h2",{class:"title is-6",textContent:v(o.now_playing.artist)},null,8,QA),o.composer?(E(),D("h2",{key:0,class:"subtitle is-6 has-text-grey has-text-weight-bold",textContent:v(o.composer)},null,8,e6)):J("",!0),c("h3",{class:"subtitle is-6",textContent:v(o.now_playing.album)},null,8,t6)])])])):(E(),D("div",n6,[c("div",r6,[c("div",s6,[c("h1",{class:"title is-5",textContent:v(e.$("page.now-playing.title"))},null,8,o6),c("p",{textContent:v(e.$("page.now-playing.info"))},null,8,i6)])])])),C(l,{show:s.show_details_modal,item:s.selected_item,onClose:t[2]||(t[2]=u=>s.show_details_modal=!1)},null,8,["show","item"])])}var l6=ve(BA,[["render",a6]]);const u6={name:"TabsMusic",computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid}}},c6={class:"section fd-tabs-section"},d6={class:"container"},f6={class:"columns is-centered"},m6={class:"column is-four-fifths"},p6={class:"tabs is-centered is-small"},h6=["onClick","onKeypress"],_6=["textContent"],g6=["onClick","onKeypress"],y6=["textContent"],v6=["onClick","onKeypress"],b6=["textContent"],w6=["onClick","onKeypress"],C6=["textContent"],x6=["onClick","onKeypress"],k6=["textContent"],S6=["onClick","onKeypress"],E6=["textContent"];function $6(e,t,n,r,s,o){const i=T("mdicon"),a=T("router-link");return E(),D("section",c6,[c("div",d6,[c("div",f6,[c("div",m6,[c("div",p6,[c("ul",null,[C(a,{to:"/music/browse",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"web",size:"16"}),c("span",{textContent:v(e.$t("page.settings.tabs.music.browse"))},null,8,_6)],40,h6)],2)]),_:1}),C(a,{to:"/music/artists",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"account-music",size:"16"}),c("span",{textContent:v(e.$t("page.settings.tabs.music.artists"))},null,8,y6)],40,g6)],2)]),_:1}),C(a,{to:"/music/albums",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"album",size:"16"}),c("span",{textContent:v(e.$t("page.settings.tabs.music.albums"))},null,8,b6)],40,v6)],2)]),_:1}),C(a,{to:"/music/genres",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"speaker",size:"16"}),c("span",{textContent:v(e.$t("page.settings.tabs.music.genres"))},null,8,C6)],40,w6)],2)]),_:1}),C(a,{to:"/music/composers",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"book-open-page-variant",size:"16"}),c("span",{textContent:v(e.$t("page.settings.tabs.music.composers"))},null,8,k6)],40,x6)],2)]),_:1}),o.spotify_enabled?(E(),ke(a,{key:0,to:"/music/spotify",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"spotify",size:"16"}),c("span",{textContent:v(e.$t("page.settings.tabs.music.spotify"))},null,8,E6)],40,S6)],2)]),_:1})):J("",!0)])])])])])])}var gr=ve(u6,[["render",$6]]);const z6={name:"ModalDialogAlbum",components:{CoverArtwork:Pr},props:["show","album","media_kind","new_tracks"],emits:["close","remove-podcast","play-count-changed"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return K.artwork_url_append_size_params(this.album.artwork_url)},media_kind_resolved:function(){return this.media_kind?this.media_kind:this.album.media_kind}},methods:{play:function(){this.$emit("close"),K.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.album.uri)},open_album:function(){this.media_kind_resolved==="podcast"?this.$router.push({path:"/podcasts/"+this.album.id}):this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/"+this.album.id}):this.$router.push({path:"/music/albums/"+this.album.id})},open_artist:function(){this.media_kind_resolved==="podcast"||(this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id}):this.$router.push({path:"/music/artists/"+this.album.artist_id}))},mark_played:function(){K.library_album_track_update(this.album.id,{play_count:"played"}).then(({data:e})=>{this.$emit("play-count-changed"),this.$emit("close")})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}}},A6={key:0,class:"modal is-active"},O6={class:"modal-content fd-modal-card"},T6={class:"card"},P6={class:"card-content"},D6={class:"title is-4"},F6=["textContent"],I6={key:0,class:"buttons"},M6=["textContent"],R6=["textContent"],L6={class:"content is-small"},N6={key:0},V6=["textContent"],j6=["textContent"],B6={key:1},H6=["textContent"],U6=["textContent"],q6={key:2},W6=["textContent"],G6=["textContent"],K6=["textContent"],Y6=["textContent"],Z6=["textContent"],J6=["textContent"],X6=["textContent"],Q6=["textContent"],eO=["textContent"],tO=["textContent"],nO={class:"card-footer"},rO=["textContent"],sO=["textContent"],oO=["textContent"];function iO(e,t,n,r,s,o){const i=T("cover-artwork"),a=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",A6,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=l=>e.$emit("close"))}),c("div",O6,[c("div",T6,[c("div",P6,[C(i,{artwork_url:n.album.artwork_url,artist:n.album.artist,album:n.album.name,class:"image is-square fd-has-margin-bottom fd-has-shadow"},null,8,["artwork_url","artist","album"]),c("p",D6,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...l)=>o.open_album&&o.open_album(...l)),textContent:v(n.album.name)},null,8,F6)]),o.media_kind_resolved==="podcast"?(E(),D("div",I6,[c("a",{class:"button is-small",onClick:t[2]||(t[2]=(...l)=>o.mark_played&&o.mark_played(...l)),textContent:v(e.$t("dialog.album.mark-as-played"))},null,8,M6),c("a",{class:"button is-small",onClick:t[3]||(t[3]=l=>e.$emit("remove-podcast")),textContent:v(e.$t("dialog.album.remove-podcast"))},null,8,R6)])):J("",!0),c("div",L6,[n.album.artist?(E(),D("p",N6,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.artist"))},null,8,V6),c("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...l)=>o.open_artist&&o.open_artist(...l)),textContent:v(n.album.artist)},null,8,j6)])):J("",!0),n.album.date_released?(E(),D("p",B6,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.release-date"))},null,8,H6),c("span",{class:"title is-6",textContent:v(e.$filters.date(n.album.date_released))},null,8,U6)])):n.album.year>0?(E(),D("p",q6,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.year"))},null,8,W6),c("span",{class:"title is-6",textContent:v(n.album.year)},null,8,G6)])):J("",!0),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.tracks"))},null,8,K6),c("span",{class:"title is-6",textContent:v(n.album.track_count)},null,8,Y6)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.duration"))},null,8,Z6),c("span",{class:"title is-6",textContent:v(e.$filters.durationInHours(n.album.length_ms))},null,8,J6)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.type"))},null,8,X6),c("span",{class:"title is-6",textContent:v([e.t("media.kind."+n.album.media_kind),e.t("data.kind."+n.album.data_kind)].join(" - "))},null,8,Q6)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.album.added-on"))},null,8,eO),c("span",{class:"title is-6",textContent:v(e.$filters.datetime(n.album.time_added))},null,8,tO)])])]),c("footer",nO,[c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...l)=>o.queue_add&&o.queue_add(...l))},[C(a,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.album.add"))},null,8,rO)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...l)=>o.queue_add_next&&o.queue_add_next(...l))},[C(a,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.album.add-next"))},null,8,sO)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...l)=>o.play&&o.play(...l))},[C(a,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.album.play"))},null,8,oO)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=l=>e.$emit("close"))})])):J("",!0)]),_:1})])}var iu=ve(z6,[["render",iO]]);const aO={name:"ModalDialog",props:["show","title","ok_action","delete_action","close_action"],emits:["delete","close","ok"]},lO={key:0,class:"modal is-active"},uO={class:"modal-content fd-modal-card"},cO={class:"card"},dO={class:"card-content"},fO=["textContent"],mO={class:"card-footer"},pO=["textContent"],hO=["textContent"],_O=["textContent"];function gO(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",lO,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",uO,[c("div",cO,[c("div",dO,[n.title?(E(),D("p",{key:0,class:"title is-4",textContent:v(n.title)},null,8,fO)):J("",!0),kt(e.$slots,"modal-content")]),c("footer",mO,[c("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=a=>e.$emit("close"))},[C(i,{class:"icon",name:"cancel",size:"16"}),c("span",{class:"is-size-7",textContent:v(n.close_action?n.close_action:e.t("dialog.cancel"))},null,8,pO)]),n.delete_action?(E(),D("a",{key:0,class:"card-footer-item has-background-danger has-text-white has-text-weight-bold",onClick:t[2]||(t[2]=a=>e.$emit("delete"))},[C(i,{class:"icon",name:"delete",size:"16"}),c("span",{class:"is-size-7",textContent:v(n.delete_action)},null,8,hO)])):J("",!0),n.ok_action?(E(),D("a",{key:1,class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[3]||(t[3]=a=>e.$emit("ok"))},[C(i,{class:"icon",name:"check",size:"16"}),c("span",{class:"is-size-7",textContent:v(n.ok_action)},null,8,_O)])):J("",!0)])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):J("",!0)]),_:3})])}var Cf=ve(aO,[["render",gO]]);const yO={name:"ListAlbums",components:{ModalDialogAlbum:iu,ModalDialog:Cf},props:["albums","media_kind","hide_group_title"],emits:["play-count-changed","podcast-deleted"],data(){return{show_details_modal:!1,selected_album:{},show_remove_podcast_modal:!1,rss_playlist_to_remove:{},artwork_options:{width:600,height:600,font_family:"sans-serif",font_size:200,font_weight:600,lazy_lifecycle:{error:e=>{e.src=this.dataURI(e.attributes.album.value,e.attributes.artist.value)}}}}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value},media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_album.media_kind}},methods:{open_album:function(e){this.selected_album=e,this.media_kind_resolved==="podcast"?this.$router.push({path:"/podcasts/"+e.id}):this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/"+e.id}):this.$router.push({path:"/music/albums/"+e.id})},open_dialog:function(e){this.selected_album=e,this.show_details_modal=!0},open_remove_podcast_dialog:function(){K.library_album_tracks(this.selected_album.id,{limit:1}).then(({data:e})=>{K.library_track_playlists(e.items[0].id).then(({data:t})=>{const n=t.items.filter(r=>r.type==="rss");if(n.length!==1){this.$store.dispatch("add_notification",{text:this.$t("list.albums.notification"),type:"danger"});return}this.rss_playlist_to_remove=n[0],this.show_remove_podcast_modal=!0,this.show_details_modal=!1})})},play_count_changed:function(){this.$emit("play-count-changed")},remove_podcast:function(){this.show_remove_podcast_modal=!1,K.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$emit("podcast-deleted")})},artwork_url_with_size:function(e){return this.artwork_options.width>0&&this.artwork_options.height>0?K.artwork_url_append_size_params(e,this.artwork_options.width,this.artwork_options.height):K.artwork_url_append_size_params(e)},alt_text(e,t){return t+" - "+e},caption(e,t){return e?e.substring(0,2):t?t.substring(0,2):""},dataURI:function(e,t){const n=this.caption(e,t),r=this.alt_text(e,t);return xv(n,r,{width:this.artwork_options.width,height:this.artwork_options.height,font_family:this.artwork_options.font_family,font_size:this.artwork_options.font_size,font_weight:this.artwork_options.font_weight})}}},vO={key:0,class:"mt-6 mb-5 py-2"},bO=["id","textContent"],wO=["onClick"],CO={key:0,class:"media-left fd-has-action"},xO={class:"image is-64x64 fd-has-shadow fd-has-action"},kO=["album","artist"],SO={class:"media-content fd-has-action is-clipped"},EO={style:{"margin-top":"0.7rem"}},$O=["textContent"],zO={class:"subtitle is-7 has-text-grey"},AO=["textContent"],OO=["textContent"],TO={class:"media-right",style:{"padding-top":"0.7rem"}},PO=["onClick"],DO=["textContent"],FO=["innerHTML"];function IO(e,t,n,r,s,o){const i=T("mdicon"),a=T("modal-dialog-album"),l=T("modal-dialog"),u=ql("lazy");return E(),D(We,null,[(E(!0),D(We,null,wt(n.albums,d=>(E(),D(We,{key:d.itemId},[!d.isItem&&!n.hide_group_title?(E(),D("div",vO,[c("span",{id:"index_"+d.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:v(d.groupKey)},null,8,bO)])):d.isItem?(E(),D("div",{key:1,class:"media",onClick:m=>o.open_album(d.item)},[o.is_visible_artwork?(E(),D("div",CO,[c("div",xO,[c("figure",null,[Ct(c("img",{album:d.item.name,artist:d.item.artist},null,8,kO),[[u,{src:o.artwork_url_with_size(d.item.artwork_url),lifecycle:s.artwork_options.lazy_lifecycle}]])])])])):J("",!0),c("div",SO,[c("div",EO,[c("h1",{class:"title is-6",textContent:v(d.item.name)},null,8,$O),c("h2",zO,[c("b",{textContent:v(d.item.artist)},null,8,AO)]),d.item.date_released&&d.item.media_kind==="music"?(E(),D("h2",{key:0,class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:v(e.$filters.date(d.item.date_released))},null,8,OO)):J("",!0)])]),c("div",TO,[c("a",{onClick:_t(m=>o.open_dialog(d.item),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,PO)])],8,wO)):J("",!0)],64))),128)),(E(),ke(ss,{to:"#app"},[C(a,{show:s.show_details_modal,album:s.selected_album,media_kind:n.media_kind,onRemovePodcast:t[0]||(t[0]=d=>o.open_remove_podcast_dialog()),onPlayCountChanged:t[1]||(t[1]=d=>o.play_count_changed()),onClose:t[2]||(t[2]=d=>s.show_details_modal=!1)},null,8,["show","album","media_kind"]),C(l,{show:s.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=d=>s.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":P(()=>[c("p",{textContent:v(e.$t("list.albums.info-1"))},null,8,DO),c("p",{class:"is-size-7",innerHTML:e.$t("list.albums.info-2",{name:s.rss_playlist_to_remove.name})},null,8,FO)]),_:1},8,["show","onDelete"])]))],64)}var yr=ve(yO,[["render",IO]]);const MO={name:"ModalDialogTrack",props:["show","track"],emits:["close","play-count-changed"],data(){return{spotify_track:{}}},watch:{track(){if(this.track&&this.track.data_kind==="spotify"){const e=new ar;e.setAccessToken(this.$store.state.spotify.webapi_token),e.getTrack(this.track.path.slice(this.track.path.lastIndexOf(":")+1)).then(t=>{this.spotify_track=t})}else this.spotify_track={}}},methods:{play_track:function(){this.$emit("close"),K.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.track.uri)},open_album:function(){this.$emit("close"),this.track.media_kind==="podcast"?this.$router.push({path:"/podcasts/"+this.track.album_id}):this.track.media_kind==="audiobook"?this.$router.push({path:"/audiobooks/"+this.track.album_id}):this.$router.push({path:"/music/albums/"+this.track.album_id})},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.track.album_artist_id})},open_genre:function(){this.$router.push({name:"Genre",params:{genre:this.track.genre}})},open_spotify_artist:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/artists/"+this.spotify_track.artists[0].id})},open_spotify_album:function(){this.$emit("close"),this.$router.push({path:"/music/spotify/albums/"+this.spotify_track.album.id})},mark_new:function(){K.library_track_update(this.track.id,{play_count:"reset"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})},mark_played:function(){K.library_track_update(this.track.id,{play_count:"increment"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})}}},RO={key:0,class:"modal is-active"},LO={class:"modal-content fd-modal-card"},NO={class:"card"},VO={class:"card-content"},jO=["textContent"],BO=["textContent"],HO={key:0,class:"buttons"},UO=["textContent"],qO=["textContent"],WO={class:"content is-small"},GO=["textContent"],KO=["textContent"],YO={key:0},ZO=["textContent"],JO=["textContent"],XO={key:1},QO=["textContent"],eT=["textContent"],tT={key:2},nT=["textContent"],rT=["textContent"],sT={key:3},oT=["textContent"],iT=["textContent"],aT={key:4},lT=["textContent"],uT=["textContent"],cT=["textContent"],dT=["textContent"],fT=["textContent"],mT=["textContent"],pT=["textContent"],hT=["textContent"],_T=["textContent"],gT={class:"title is-6"},yT=["textContent"],vT={key:0,class:"has-text-weight-normal"},bT=Tt(" ("),wT=["textContent"],CT=Tt(", "),xT=["textContent"],kT=Tt(") "),ST=["textContent"],ET={class:"title is-6"},$T=["textContent"],zT=["textContent"],AT=["textContent"],OT=["textContent"],TT=["textContent"],PT=["textContent"],DT=["textContent"],FT=["textContent"],IT={key:5},MT=["textContent"],RT=["textContent"],LT={class:"card-footer"},NT=["textContent"],VT=["textContent"],jT=["textContent"];function BT(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",RO,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",LO,[c("div",NO,[c("div",VO,[c("p",{class:"title is-4",textContent:v(n.track.title)},null,8,jO),c("p",{class:"subtitle",textContent:v(n.track.artist)},null,8,BO),n.track.media_kind==="podcast"?(E(),D("div",HO,[n.track.play_count>0?(E(),D("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...a)=>o.mark_new&&o.mark_new(...a)),textContent:v(e.$t("dialog.track.mark-as-new"))},null,8,UO)):J("",!0),n.track.play_count===0?(E(),D("a",{key:1,class:"button is-small",onClick:t[2]||(t[2]=(...a)=>o.mark_played&&o.mark_played(...a)),textContent:v(e.$t("dialog.track.mark-as-played"))},null,8,qO)):J("",!0)])):J("",!0),c("div",WO,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.album"))},null,8,GO),c("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a)),textContent:v(n.track.album)},null,8,KO)]),n.track.album_artist&&n.track.media_kind!=="audiobook"?(E(),D("p",YO,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.album-artist"))},null,8,ZO),c("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:v(n.track.album_artist)},null,8,JO)])):J("",!0),n.track.composer?(E(),D("p",XO,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.composer"))},null,8,QO),c("span",{class:"title is-6",textContent:v(n.track.composer)},null,8,eT)])):J("",!0),n.track.date_released?(E(),D("p",tT,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.release-date"))},null,8,nT),c("span",{class:"title is-6",textContent:v(e.$filters.date(n.track.date_released))},null,8,rT)])):n.track.year>0?(E(),D("p",sT,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.year"))},null,8,oT),c("span",{class:"title is-6",textContent:v(n.track.year)},null,8,iT)])):J("",!0),n.track.genre?(E(),D("p",aT,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.genre"))},null,8,lT),c("a",{class:"title is-6 has-text-link",onClick:t[5]||(t[5]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:v(n.track.genre)},null,8,uT)])):J("",!0),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.position"))},null,8,cT),c("span",{class:"title is-6",textContent:v([n.track.disc_number,n.track.track_number].join(" / "))},null,8,dT)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.duration"))},null,8,fT),c("span",{class:"title is-6",textContent:v(e.$filters.durationInHours(n.track.length_ms))},null,8,mT)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.path"))},null,8,pT),c("span",{class:"title is-6",textContent:v(n.track.path)},null,8,hT)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.type"))},null,8,_T),c("span",gT,[c("span",{textContent:v([n.track.media_kind,n.track.data_kind].join(" - "))},null,8,yT),n.track.data_kind==="spotify"?(E(),D("span",vT,[bT,c("a",{onClick:t[6]||(t[6]=(...a)=>o.open_spotify_artist&&o.open_spotify_artist(...a)),textContent:v(e.$t("dialog.track.spotify-artist"))},null,8,wT),CT,c("a",{onClick:t[7]||(t[7]=(...a)=>o.open_spotify_album&&o.open_spotify_album(...a)),textContent:v(e.$t("dialog.track.spotify-album"))},null,8,xT),kT])):J("",!0)])]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.quality"))},null,8,ST),c("span",ET,[c("span",{textContent:v(n.track.type)},null,8,$T),n.track.samplerate?(E(),D("span",{key:0,textContent:v(e.$t("dialog.track.samplerate",{rate:n.track.samplerate}))},null,8,zT)):J("",!0),n.track.channels?(E(),D("span",{key:1,textContent:v(e.$t("dialog.track.channels",{channels:e.$filters.channels(n.track.channels)}))},null,8,AT)):J("",!0),n.track.bitrate?(E(),D("span",{key:2,textContent:v(e.$t("dialog.track.bitrate",{rate:n.track.bitrate}))},null,8,OT)):J("",!0)])]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.added-on"))},null,8,TT),c("span",{class:"title is-6",textContent:v(e.$filters.datetime(n.track.time_added))},null,8,PT)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.rating"))},null,8,DT),c("span",{class:"title is-6",textContent:v(e.$t("dialog.track.rating-value",{rating:Math.floor(n.track.rating/10)}))},null,8,FT)]),n.track.comment?(E(),D("p",IT,[c("span",{class:"heading",textContent:v(e.$t("dialog.track.comment"))},null,8,MT),c("span",{class:"title is-6",textContent:v(n.track.comment)},null,8,RT)])):J("",!0)])]),c("footer",LT,[c("a",{class:"card-footer-item has-text-dark",onClick:t[8]||(t[8]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.track.add"))},null,8,NT)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[9]||(t[9]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.track.add-next"))},null,8,VT)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[10]||(t[10]=(...a)=>o.play_track&&o.play_track(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.track.play"))},null,8,jT)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[11]||(t[11]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var HT=ve(MO,[["render",BT]]);const UT={name:"ProgressBar",props:["max","value"],computed:{width(){return this.value>0&&this.max>0?parseInt(this.value*100/this.max):0},width_percent(){return this.width+"%"}}};function qT(e,t,n,r,s,o){return o.width>0?(E(),D("div",{key:0,class:"progress-bar mt-2",style:rs({width:o.width_percent})},null,4)):J("",!0)}var WT=ve(UT,[["render",qT]]);const GT={name:"ListTracks",components:{ModalDialogTrack:HT,ProgressBar:WT},props:["tracks","uris","expression","show_progress","show_icon"],emits:["play-count-changed"],data(){return{show_details_modal:!1,selected_track:{}}},methods:{play_track:function(e,t){this.uris?K.player_play_uri(this.uris,!1,e):this.expression?K.player_play_expression(this.expression,!1,e):K.player_play_uri(t.uri,!1)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},KT=["id","onClick"],YT={key:0,class:"media-left fd-has-action"},ZT={class:"media-content fd-has-action is-clipped"},JT=["textContent"],XT=["textContent"],QT=["textContent"],e4={class:"media-right"},t4=["onClick"];function n4(e,t,n,r,s,o){const i=T("mdicon"),a=T("progress-bar"),l=T("modal-dialog-track");return E(),D(We,null,[(E(!0),D(We,null,wt(n.tracks,(u,d)=>(E(),D("div",{id:"index_"+u.title_sort.charAt(0).toUpperCase(),key:u.id,class:Ye(["media",{"with-progress":n.show_progress}]),onClick:m=>o.play_track(d,u)},[n.show_icon?(E(),D("figure",YT,[C(i,{class:"icon",name:"file-outline",size:"16"})])):J("",!0),c("div",ZT,[c("h1",{class:Ye(["title is-6",{"has-text-grey":u.media_kind==="podcast"&&u.play_count>0}]),textContent:v(u.title)},null,10,JT),c("h2",{class:"subtitle is-7 has-text-grey",textContent:v(u.artist)},null,8,XT),c("h2",{class:"subtitle is-7 has-text-grey",textContent:v(u.album)},null,8,QT),n.show_progress?(E(),ke(a,{key:0,max:u.length_ms,value:u.seek_ms},null,8,["max","value"])):J("",!0)]),c("div",e4,[c("a",{onClick:_t(m=>o.open_dialog(u),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,t4)])],10,KT))),128)),(E(),ke(ss,{to:"#app"},[C(l,{show:s.show_details_modal,track:s.selected_track,onClose:t[0]||(t[0]=u=>s.show_details_modal=!1),onPlayCountChanged:t[1]||(t[1]=u=>e.$emit("play-count-changed"))},null,8,["show","track"])]))],64)}var Rn=ve(GT,[["render",n4]]);const kv="GROUP_KEY_NONE";function Sv(){return{compareFn:null,groupKeyFn:e=>kv}}function So(e,t="_"){return{compareFn:null,groupKeyFn:n=>(n[e]||t).charAt(0).toUpperCase()}}function Ev(e,t="_"){return{compareFn:(n,r)=>{const s=n[e]||t,o=r[e]||t;return s.localeCompare(o)},groupKeyFn:n=>(n[e]||t).charAt(0).toUpperCase()}}function xl(e,{direction:t="asc",defaultValue:n="0000"}){return{compareFn:(r,s)=>{const o=r[e]||n,i=s[e]||n,a=o.localeCompare(i);return t==="asc"?a:a*-1},groupKeyFn:r=>(r[e]||n).substring(0,4)}}function r4(e,t="0000"){return{compareFn:(n,r)=>{const s=n[e]||t;return(r[e]||t).localeCompare(s)},groupKeyFn:n=>{const r=n[e];if(!r)return t;const s=new Date().getTime()-new Date(r).getTime();return s<864e5?"Today":s<6048e5?"Last week":s<2592e6?"Last month":r.substring(0,4)}}}class st{constructor({items:t=[],total:n=0,offset:r=0,limit:s=-1}={}){this.items=t,this.total=n,this.offset=r,this.limit=s,this.count=t.length,this.indexList=[],this.group(Sv())}get(){return this.itemsByGroup}isEmpty(){return!this.items||this.items.length<=0}group(t,n=[]){const r=n?this.items.filter(o=>n.every(i=>i(o))):this.items;this.count=r.length;let s=t.compareFn?[...r].sort(t.compareFn):r;this.indexList=[...new Set(s.map(t.groupKeyFn))],this.itemsByGroup=s.reduce((o,i)=>{const a=t.groupKeyFn(i);return o[a]=[...o[a]||[],i],o},{})}[Symbol.iterator](){let t=-1,n=-1;return{next:()=>{if(t>=this.indexList.length)return{done:!0};if(t<0&&(++t,n=0,this.indexList[t]!==kv))return{value:{groupKey:this.indexList[t],itemId:this.indexList[t],isItem:!1,item:{}},done:!1};let r=this.indexList[t],s=this.itemsByGroup[r];if(n<s.length){const o=this.itemsByGroup[r][n++];return{value:{groupKey:r,itemId:o.id,isItem:!0,item:o},done:!1}}else return++t,n=0,t<this.indexList.length?(r=this.indexList[t],{value:{groupKey:r,itemId:r,isItem:!1,item:{}},done:!1}):{done:!0}}}}}const fa={load:function(e){return Promise.all([K.search({type:"album",expression:"time_added after 8 weeks ago and media_kind is music having track_count > 3 order by time_added desc",limit:3}),K.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:3})])},set:function(e,t){e.recently_added=new st(t[0].data.albums),e.recently_played=t[1].data.tracks}},s4={name:"PageBrowse",components:{ContentWithHeading:pt,TabsMusic:gr,ListAlbums:yr,ListTracks:Rn},beforeRouteEnter(e,t,n){fa.load(e).then(r=>{n(s=>fa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;fa.load(e).then(s=>{fa.set(r,s),n()})},data(){return{recently_added:[],recently_played:{items:[]},show_track_details_modal:!1,selected_track:{}}},methods:{open_browse:function(e){this.$router.push({path:"/music/browse/"+e})}}},o4={class:"fd-page-with-tabs"},i4=["textContent"],a4=["textContent"],l4={class:"level"},u4={class:"level-item"},c4=["textContent"],d4=["textContent"],f4=["textContent"],m4={class:"level"},p4={class:"level-item"},h4=["textContent"];function _4(e,t,n,r,s,o){const i=T("tabs-music"),a=T("list-albums"),l=T("content-with-heading"),u=T("list-tracks");return E(),D("div",o4,[C(i),C(l,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.browse.recently-added.title"))},null,8,i4),c("p",{class:"heading",textContent:v(e.$t("page.browse.albums"))},null,8,a4)]),content:P(()=>[C(a,{albums:s.recently_added},null,8,["albums"])]),footer:P(()=>[c("nav",l4,[c("p",u4,[c("a",{class:"button is-light is-small is-rounded",onClick:t[0]||(t[0]=d=>o.open_browse("recently_added")),textContent:v(e.$t("page.browse.show-more"))},null,8,c4)])])]),_:1}),C(l,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.browse.recently-played.title"))},null,8,d4),c("p",{class:"heading",textContent:v(e.$t("page.browse.tracks"))},null,8,f4)]),content:P(()=>[C(u,{tracks:s.recently_played.items},null,8,["tracks"])]),footer:P(()=>[c("nav",m4,[c("p",p4,[c("a",{class:"button is-light is-small is-rounded",onClick:t[1]||(t[1]=d=>o.open_browse("recently_played")),textContent:v(e.$t("page.browse.show-more"))},null,8,h4)])])]),_:1})])}var g4=ve(s4,[["render",_4]]);const ma={load:function(e){const t=at.getters.settings_option_recently_added_limit;return K.search({type:"album",expression:"media_kind is music having track_count > 3 order by time_added desc",limit:t})},set:function(e,t){e.recently_added=new st(t.data.albums),e.recently_added.group(r4("time_added",{direction:"desc",defaultValue:"0000"}))}},y4={name:"PageBrowseType",components:{ContentWithHeading:pt,TabsMusic:gr,ListAlbums:yr},beforeRouteEnter(e,t,n){ma.load(e).then(r=>{n(s=>ma.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.recently_added.isEmpty()){n();return}const r=this;ma.load(e).then(s=>{ma.set(r,s),n()})},data(){return{recently_added:new st}}},v4={class:"fd-page-with-tabs"},b4=["textContent"],w4=["textContent"];function C4(e,t,n,r,s,o){const i=T("tabs-music"),a=T("list-albums"),l=T("content-with-heading");return E(),D("div",v4,[C(i),C(l,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.browse.recently.added.title"))},null,8,b4),c("p",{class:"heading",textContent:v(e.$t("page.browse.recently.added.albums"))},null,8,w4)]),content:P(()=>[C(a,{albums:s.recently_added},null,8,["albums"])]),_:1})])}var x4=ve(y4,[["render",C4]]);const pa={load:function(e){return K.search({type:"track",expression:"time_played after 8 weeks ago and media_kind is music order by time_played desc",limit:50})},set:function(e,t){e.recently_played=t.data.tracks}},k4={name:"PageBrowseType",components:{ContentWithHeading:pt,TabsMusic:gr,ListTracks:Rn},beforeRouteEnter(e,t,n){pa.load(e).then(r=>{n(s=>pa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;pa.load(e).then(s=>{pa.set(r,s),n()})},data(){return{recently_played:{}}}},S4={class:"fd-page-with-tabs"},E4=["textContent"],$4=["textContent"];function z4(e,t,n,r,s,o){const i=T("tabs-music"),a=T("list-tracks"),l=T("content-with-heading");return E(),D("div",S4,[C(i),C(l,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.browse.recently.played.title"))},null,8,E4),c("p",{class:"heading",textContent:v(e.$t("page.browse.recently.played.tracks"))},null,8,$4)]),content:P(()=>[C(a,{tracks:s.recently_played.items},null,8,["tracks"])]),_:1})])}var A4=ve(k4,[["render",z4]]);const O4={name:"IndexButtonList",props:["index"],computed:{filtered_index(){if(!this.index)return[];const e="!\"#$%&'()*+,-./:;<=>?@[\\]^`{|}~";return this.index.filter(t=>!e.includes(t))}},methods:{nav:function(e){this.$router.push({hash:"#index_"+e})},scroll_to_top:function(){window.scrollTo({top:0,behavior:"smooth"})}}},T4={class:"buttons is-centered fd-is-square",style:{"margin-bottom":"16px"}},P4=["onClick","textContent"];function D4(e,t,n,r,s,o){return E(),D("section",null,[c("nav",T4,[(E(!0),D(We,null,wt(o.filtered_index,i=>(E(),D("a",{key:i,class:"button is-small",onClick:a=>o.nav(i),textContent:v(i)},null,8,P4))),128))])])}var Dr=ve(O4,[["render",D4]]);const F4={name:"ModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.artist.uri)},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.artist.id})}}},I4={key:0,class:"modal is-active"},M4={class:"modal-content fd-modal-card"},R4={class:"card"},L4={class:"card-content"},N4={class:"title is-4"},V4=["textContent"],j4={class:"content is-small"},B4=["textContent"],H4=["textContent"],U4=["textContent"],q4=["textContent"],W4=["textContent"],G4=["textContent"],K4=["textContent"],Y4=["textContent"],Z4={class:"card-footer"},J4=["textContent"],X4=["textContent"],Q4=["textContent"];function e5(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",I4,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",M4,[c("div",R4,[c("div",L4,[c("p",N4,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:v(n.artist.name)},null,8,V4)]),c("div",j4,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.artist.albums"))},null,8,B4),c("span",{class:"title is-6",textContent:v(n.artist.album_count)},null,8,H4)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.artist.tracks"))},null,8,U4),c("span",{class:"title is-6",textContent:v(n.artist.track_count)},null,8,q4)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.artist.type"))},null,8,W4),c("span",{class:"title is-6",textContent:v(e.$t("data.kind."+n.artist.data_kind))},null,8,G4)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.artist.added-on"))},null,8,K4),c("span",{class:"title is-6",textContent:v(e.$filters.datetime(n.artist.time_added))},null,8,Y4)])])]),c("footer",Z4,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.artist.add"))},null,8,J4)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.artist.add-next"))},null,8,X4)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.artist.play"))},null,8,Q4)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var au=ve(F4,[["render",e5]]);const t5={name:"ListArtists",components:{ModalDialogArtist:au},props:["artists","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_artist:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_artist.media_kind}},methods:{open_artist:function(e){this.selected_artist=e,this.media_kind_resolved==="podcast"||(this.media_kind_resolved==="audiobook"?this.$router.push({path:"/audiobooks/artists/"+e.id}):this.$router.push({path:"/music/artists/"+e.id}))},open_dialog:function(e){this.selected_artist=e,this.show_details_modal=!0}}},n5={key:0,class:"mt-6 mb-5 py-2"},r5={class:"media-content is-clipped"},s5=["id","textContent"],o5=["onClick"],i5={class:"media-content fd-has-action is-clipped"},a5=["textContent"],l5={class:"media-right"},u5=["onClick"];function c5(e,t,n,r,s,o){const i=T("mdicon"),a=T("modal-dialog-artist");return E(),D(We,null,[(E(!0),D(We,null,wt(n.artists,l=>(E(),D(We,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(E(),D("div",n5,[c("div",r5,[c("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:v(l.groupKey)},null,8,s5)])])):l.isItem?(E(),D("div",{key:1,class:"media",onClick:u=>o.open_artist(l.item)},[c("div",i5,[c("h1",{class:"title is-6",textContent:v(l.item.name)},null,8,a5)]),c("div",l5,[c("a",{onClick:_t(u=>o.open_dialog(l.item),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,u5)])],8,o5)):J("",!0)],64))),128)),(E(),ke(ss,{to:"#app"},[C(a,{show:s.show_details_modal,artist:s.selected_artist,media_kind:n.media_kind,onClose:t[0]||(t[0]=l=>s.show_details_modal=!1)},null,8,["show","artist","media_kind"])]))],64)}var xf=ve(t5,[["render",c5]]);const d5={name:"DropdownMenu",props:["modelValue","options"],emits:["update:modelValue"],data(){return{is_active:!1}},computed:{option:{get(){return this.options.find(e=>e.id===this.modelValue)}}},methods:{onClickOutside(e){this.is_active=!1},select(e){this.is_active=!1,this.$emit("update:modelValue",e.id)}}},f5={class:"dropdown-trigger"},m5=["textContent"],p5={id:"dropdown-menu",class:"dropdown-menu",role:"menu"},h5={class:"dropdown-content"},_5=["textContent","onClick"];function g5(e,t,n,r,s,o){const i=T("mdicon"),a=ql("click-away");return Ct((E(),D("div",{class:Ye(["dropdown",{"is-active":s.is_active}])},[c("div",f5,[c("button",{class:"button","aria-haspopup":"true","aria-controls":"dropdown-menu",onClick:t[0]||(t[0]=l=>s.is_active=!s.is_active)},[c("span",{textContent:v(o.option.name)},null,8,m5),C(i,{class:"icon",name:"chevron-down",size:"16"})])]),c("div",p5,[c("div",h5,[(E(!0),D(We,null,wt(n.options,l=>(E(),D("a",{key:l.id,textContent:v(l.name),class:Ye(["dropdown-item",{"is-active":n.modelValue===l.id}]),onClick:u=>o.select(l)},null,10,_5))),128))])])],2)),[[a,o.onClickOutside]])}var lu=ve(d5,[["render",g5]]);const ha={load:function(e){return K.library_artists("music")},set:function(e,t){e.artists_list=new st(t.data)}},y5={name:"PageArtists",components:{ContentWithHeading:pt,TabsMusic:gr,IndexButtonList:Dr,ListArtists:xf,DropdownMenu:lu},beforeRouteEnter(e,t,n){ha.load(e).then(r=>{n(s=>ha.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const r=this;ha.load(e).then(s=>{ha.set(r,s),n()})},data(){return{artists_list:new st,groupby_options:[{id:1,name:this.$t("page.artists.filter.name"),options:So("name_sort")},{id:2,name:this.$t("page.artists.filter.recently-added"),options:xl("time_added",{direction:"desc",defaultValue:"0000"})}]}},computed:{artists(){if(!this.artists_list)return[];const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.artists_list.group(e.options,[t=>!this.hide_singles||t.track_count>t.album_count*2,t=>!this.hide_spotify||t.data_kind!=="spotify"]),this.artists_list},selected_groupby_option_id:{get(){return this.$store.state.artists_sort},set(e){this.$store.commit(Gg,e)}},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},hide_singles:{get(){return this.$store.state.hide_singles},set(e){this.$store.commit(Ql,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(rf,e)}}},methods:{}},v5={class:"fd-page-with-tabs"},b5={class:"columns"},w5={class:"column"},C5=["textContent"],x5={class:"field"},k5={class:"control"},S5=["textContent"],E5=["textContent"],$5={key:0,class:"field"},z5={class:"control"},A5=["textContent"],O5=["textContent"],T5={class:"column"},P5=["textContent"],D5=["textContent"],F5=["textContent"];function I5(e,t,n,r,s,o){const i=T("tabs-music"),a=T("index-button-list"),l=T("dropdown-menu"),u=T("list-artists"),d=T("content-with-heading");return E(),D("div",v5,[C(i),C(d,null,{options:P(()=>[C(a,{index:o.artists.indexList},null,8,["index"]),c("div",b5,[c("div",w5,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:v(e.$t("page.artists.filter"))},null,8,C5),c("div",x5,[c("div",k5,[Ct(c("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=m=>o.hide_singles=m),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[$r,o.hide_singles]]),c("label",{for:"switchHideSingles",textContent:v(e.$t("page.artists.hide-singles"))},null,8,S5)]),c("p",{class:"help",textContent:v(e.$t("page.artists.hide-singles-help"))},null,8,E5)]),o.spotify_enabled?(E(),D("div",$5,[c("div",z5,[Ct(c("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=m=>o.hide_spotify=m),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[$r,o.hide_spotify]]),c("label",{for:"switchHideSpotify",textContent:v(e.$t("page.artists.hide-spotify"))},null,8,A5)]),c("p",{class:"help",textContent:v(e.$t("page.artists.hide-spotify-help"))},null,8,O5)])):J("",!0)]),c("div",T5,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:v(e.$t("page.artists.sort-by.title"))},null,8,P5),C(l,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=m=>o.selected_groupby_option_id=m),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.artists.title"))},null,8,D5),c("p",{class:"heading",textContent:v(e.$t("page.artists.count",{count:o.artists.count}))},null,8,F5)]),"heading-right":P(()=>[]),content:P(()=>[C(u,{artists:o.artists},null,8,["artists"])]),_:1})])}var M5=ve(y5,[["render",I5]]);const _a={load:function(e){return Promise.all([K.library_artist(e.params.artist_id),K.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums_list=new st(t[1].data)}},R5={name:"PageArtist",components:{ContentWithHeading:pt,ListAlbums:yr,ModalDialogArtist:au,DropdownMenu:lu},beforeRouteEnter(e,t,n){_a.load(e).then(r=>{n(s=>_a.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;_a.load(e).then(s=>{_a.set(r,s),n()})},data(){return{artist:{},albums_list:new st,groupby_options:[{id:1,name:this.$t("page.artist.sort-by.name"),options:So("name_sort")},{id:2,name:this.$t("page.artist.sort-by.release-date"),options:xl("date_released",{direction:"asc",defaultValue:"0000"})}],show_artist_details_modal:!1}},computed:{albums(){const e=this.groupby_options.find(t=>t.name===this.selected_groupby_option_id);return this.albums_list.group(e.options),this.albums_list},selected_groupby_option_id:{get(){return this.$store.state.artist_albums_sort},set(e){this.$store.commit(Kg,e)}}},methods:{open_tracks:function(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play:function(){K.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!0)}}},L5={class:"columns"},N5={class:"column"},V5=["textContent"],j5=["textContent"],B5={class:"buttons is-centered"},H5=["textContent"],U5={class:"heading has-text-centered-mobile"},q5=["textContent"],W5=["textContent"];function G5(e,t,n,r,s,o){const i=T("dropdown-menu"),a=T("mdicon"),l=T("list-albums"),u=T("modal-dialog-artist"),d=T("content-with-heading");return E(),ke(d,null,{options:P(()=>[c("div",L5,[c("div",N5,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:v(e.$t("page.artist.sort-by.title"))},null,8,V5),C(i,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>o.selected_groupby_option_id=m),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.artist.name)},null,8,j5)]),"heading-right":P(()=>[c("div",B5,[c("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>s.show_artist_details_modal=!0)},[C(a,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>o.play&&o.play(...m))},[C(a,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.artist.shuffle"))},null,8,H5)])])]),content:P(()=>[c("p",U5,[c("span",{textContent:v(e.$t("page.artist.album-count",{count:s.artist.album_count}))},null,8,q5),c("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>o.open_tracks&&o.open_tracks(...m)),textContent:v(e.$t("page.artist.track-count",{count:s.artist.track_count}))},null,8,W5)]),C(l,{albums:o.albums,hide_group_title:!0},null,8,["albums"]),C(u,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[4]||(t[4]=m=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var K5=ve(R5,[["render",G5]]);const ga={load:function(e){return K.library_albums("music")},set:function(e,t){e.albums_list=new st(t.data)}},Y5={name:"PageAlbums",components:{ContentWithHeading:pt,TabsMusic:gr,IndexButtonList:Dr,ListAlbums:yr,DropdownMenu:lu},beforeRouteEnter(e,t,n){ga.load(e).then(r=>{n(s=>ga.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const r=this;ga.load(e).then(s=>{ga.set(r,s),n()})},data(){return{albums_list:new st,groupby_options:[{id:1,name:this.$t("page.albums.filter.name"),options:So("name_sort")},{id:2,name:this.$t("page.albums.filter.recently-added"),options:xl("time_added",{direction:"desc",defaultValue:"0000"})},{id:3,name:this.$t("page.albums.filter.recently-released"),options:xl("date_released",{direction:"desc",defaultValue:"0000"})}]}},computed:{albums(){const e=this.groupby_options.find(t=>t.id===this.selected_groupby_option_id);return this.albums_list.group(e.options,[t=>!this.hide_singles||t.track_count>2,t=>!this.hide_spotify||t.data_kind!=="spotify"]),this.albums_list},selected_groupby_option_id:{get(){return this.$store.state.albums_sort},set(e){this.$store.commit(Yg,e)}},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},hide_singles:{get(){return this.$store.state.hide_singles},set(e){this.$store.commit(Ql,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(rf,e)}}},methods:{scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}},Z5={class:"fd-page-with-tabs"},J5={class:"columns"},X5={class:"column"},Q5=["textContent"],e3={class:"field"},t3={class:"control"},n3=["textContent"],r3=["textContent"],s3={key:0,class:"field"},o3={class:"control"},i3=["textContent"],a3=["textContent"],l3={class:"column"},u3=["textContent"],c3=["textContent"],d3=["textContent"];function f3(e,t,n,r,s,o){const i=T("tabs-music"),a=T("index-button-list"),l=T("dropdown-menu"),u=T("list-albums"),d=T("content-with-heading");return E(),D("div",Z5,[C(i),C(d,null,{options:P(()=>[C(a,{index:o.albums.indexList},null,8,["index"]),c("div",J5,[c("div",X5,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:v(e.$t("page.albums.filter.title"))},null,8,Q5),c("div",e3,[c("div",t3,[Ct(c("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=m=>o.hide_singles=m),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[$r,o.hide_singles]]),c("label",{for:"switchHideSingles",textContent:v(e.$t("page.albums.hide-singles"))},null,8,n3)]),c("p",{class:"help",textContent:v(e.$t("page.albums.hide-singles-help"))},null,8,r3)]),o.spotify_enabled?(E(),D("div",s3,[c("div",o3,[Ct(c("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=m=>o.hide_spotify=m),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[$r,o.hide_spotify]]),c("label",{for:"switchHideSpotify",textContent:v(e.$t("page.albums.hide-spotify"))},null,8,i3)]),c("p",{class:"help",textContent:v(e.$t("page.albums.hide-spotify-help"))},null,8,a3)])):J("",!0)]),c("div",l3,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:v(e.$t("page.albums.sort-by.title"))},null,8,u3),C(l,{modelValue:o.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=m=>o.selected_groupby_option_id=m),options:s.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.albums.title"))},null,8,c3),c("p",{class:"heading",textContent:v(e.$t("page.albums.count",{count:o.albums.count}))},null,8,d3)]),"heading-right":P(()=>[]),content:P(()=>[C(u,{albums:o.albums},null,8,["albums"])]),_:1})])}var m3=ve(Y5,[["render",f3]]);const p3={},h3={class:"hero is-light is-bold fd-content"},_3={class:"hero-body"},g3={class:"container"},y3={class:"columns is-centered"},v3={class:"column is-four-fifths"},b3={class:"columns",style:{"flex-direction":"row-reverse"}},w3={class:"column fd-has-cover"},C3={class:"column is-three-fifths has-text-centered-mobile",style:{margin:"auto 0"}},x3={class:"section fd-content"},k3={class:"container"},S3={class:"columns is-centered"},E3={class:"column is-four-fifths"},$3={style:{"margin-top":"16px"}};function z3(e,t){return E(),D("div",null,[c("section",h3,[c("div",_3,[c("div",g3,[c("div",y3,[c("div",v3,[c("div",b3,[c("div",w3,[kt(e.$slots,"heading-right")]),c("div",C3,[kt(e.$slots,"heading-left")])])])])])])]),c("section",x3,[c("div",k3,[c("div",S3,[c("div",E3,[kt(e.$slots,"content"),c("div",$3,[kt(e.$slots,"footer")])])])])])])}var kf=ve(p3,[["render",z3]]);const ya={load:function(e){return Promise.all([K.library_album(e.params.album_id),K.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},A3={name:"PageAlbum",components:{ContentWithHero:kf,ListTracks:Rn,ModalDialogAlbum:iu,CoverArtwork:Pr},beforeRouteEnter(e,t,n){ya.load(e).then(r=>{n(s=>ya.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;ya.load(e).then(s=>{ya.set(r,s),n()})},data(){return{album:{},tracks:[],show_album_details_modal:!1}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.album.artist_id})},play:function(){K.player_play_uri(this.album.uri,!0)}}},O3=["textContent"],T3={class:"subtitle is-6 has-text-link has-text-weight-normal"},P3=["textContent"],D3={class:"buttons fd-is-centered-mobile fd-has-margin-top"},F3=["textContent"],I3={class:"image is-square fd-has-shadow fd-has-action"},M3=["textContent"];function R3(e,t,n,r,s,o){const i=T("mdicon"),a=T("cover-artwork"),l=T("list-tracks"),u=T("modal-dialog-album"),d=T("content-with-hero");return E(),ke(d,null,{"heading-left":P(()=>[c("h1",{class:"title is-5",textContent:v(s.album.name)},null,8,O3),c("h2",T3,[c("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:v(s.album.artist)},null,8,P3)]),c("div",D3,[c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.album.shuffle"))},null,8,F3)]),c("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=m=>s.show_album_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})])])]),"heading-right":P(()=>[c("p",I3,[C(a,{artwork_url:s.album.artwork_url,artist:s.album.artist,album:s.album.name,onClick:t[3]||(t[3]=m=>s.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:P(()=>[c("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:v(e.$t("page.album.track-count",{count:s.album.track_count}))},null,8,M3),C(l,{tracks:s.tracks,uris:s.album.uri},null,8,["tracks","uris"]),C(u,{show:s.show_album_details_modal,album:s.album,onClose:t[4]||(t[4]=m=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var L3=ve(A3,[["render",R3]]);const N3={name:"ModalDialogGenre",props:["show","genre"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),K.queue_expression_add('genre is "'+this.genre.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),K.queue_expression_add_next('genre is "'+this.genre.name+'" and media_kind is music')},open_genre:function(){this.$emit("close"),this.$router.push({name:"Genre",params:{genre:this.genre.name}})}}},V3={key:0,class:"modal is-active"},j3={class:"modal-content fd-modal-card"},B3={class:"card"},H3={class:"card-content"},U3={class:"title is-4"},q3=["textContent"],W3={class:"content is-small"},G3=["textContent"],K3=["textContent"],Y3=["textContent"],Z3=["textContent"],J3=["textContent"],X3=["textContent"],Q3={class:"card-footer"},eP=["textContent"],tP=["textContent"],nP=["textContent"];function rP(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",V3,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",j3,[c("div",B3,[c("div",H3,[c("p",U3,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_genre&&o.open_genre(...a)),textContent:v(n.genre.name)},null,8,q3)]),c("div",W3,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.genre.albums"))},null,8,G3),c("span",{class:"title is-6",textContent:v(n.genre.album_count)},null,8,K3)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.genre.tracks"))},null,8,Y3),c("span",{class:"title is-6",textContent:v(n.genre.track_count)},null,8,Z3)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.genre.duration"))},null,8,J3),c("span",{class:"title is-6",textContent:v(e.$filters.durationInHours(n.genre.length_ms))},null,8,X3)])])]),c("footer",Q3,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.genre.add"))},null,8,eP)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.genre.add-next"))},null,8,tP)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.genre.play"))},null,8,nP)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Sf=ve(N3,[["render",rP]]);const sP={name:"ListGenres",components:{ModalDialogGenre:Sf},props:["genres","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_genre:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_genre.media_kind}},methods:{open_genre:function(e){this.$router.push({name:"Genre",params:{genre:e.name}})},open_dialog:function(e){this.selected_genre=e,this.show_details_modal=!0}}},oP={key:0,class:"mt-6 mb-5 py-2"},iP={class:"media-content is-clipped"},aP=["id","textContent"],lP=["onClick"],uP={class:"media-content fd-has-action is-clipped"},cP=["textContent"],dP={class:"media-right"},fP=["onClick"];function mP(e,t,n,r,s,o){const i=T("mdicon"),a=T("modal-dialog-genre");return E(),D(We,null,[(E(!0),D(We,null,wt(n.genres,l=>(E(),D(We,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(E(),D("div",oP,[c("div",iP,[c("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:v(l.groupKey)},null,8,aP)])])):l.isItem?(E(),D("div",{key:1,class:"media",onClick:u=>o.open_genre(l.item)},[c("div",uP,[c("h1",{class:"title is-6",textContent:v(l.item.name)},null,8,cP)]),c("div",dP,[c("a",{onClick:_t(u=>o.open_dialog(l.item),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,fP)])],8,lP)):J("",!0)],64))),128)),(E(),ke(ss,{to:"#app"},[C(a,{show:s.show_details_modal,genre:s.selected_genre,onClose:t[0]||(t[0]=l=>s.show_details_modal=!1)},null,8,["show","genre"])]))],64)}var pP=ve(sP,[["render",mP]]);const va={load:function(e){return K.library_genres("music")},set:function(e,t){e.genres=t.data,e.genres=new st(t.data),e.genres.group(Ev("name_sort"))}},hP={name:"PageGenres",components:{ContentWithHeading:pt,TabsMusic:gr,IndexButtonList:Dr,ListGenres:pP},beforeRouteEnter(e,t,n){va.load(e).then(r=>{n(s=>va.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;va.load(e).then(s=>{va.set(r,s),n()})},data(){return{genres:new st}},computed:{},methods:{}},_P={class:"fd-page-with-tabs"},gP=["textContent"],yP=["textContent"];function vP(e,t,n,r,s,o){const i=T("tabs-music"),a=T("index-button-list"),l=T("list-genres"),u=T("content-with-heading");return E(),D("div",_P,[C(i),C(u,null,{options:P(()=>[C(a,{index:s.genres.indexList},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.genres.title"))},null,8,gP),c("p",{class:"heading",textContent:v(e.$t("page.genres.count",{count:s.genres.total}))},null,8,yP)]),content:P(()=>[C(l,{genres:s.genres},null,8,["genres"])]),_:1})])}var bP=ve(hP,[["render",vP]]);const ba={load:function(e){return Promise.all([K.library_genre(e.params.genre),K.library_genre_albums(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.albums_list=new st(t[1].data.albums),e.albums_list.group(So("name_sort"))}},wP={name:"PageGenre",components:{ContentWithHeading:pt,IndexButtonList:Dr,ListAlbums:yr,ModalDialogGenre:Sf},beforeRouteEnter(e,t,n){ba.load(e).then(r=>{n(s=>ba.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const r=this;ba.load(e).then(s=>{ba.set(r,s),n()})},data(){return{genre:{},albums_list:new st,show_genre_details_modal:!1}},methods:{open_tracks:function(){this.show_details_modal=!1,this.$router.push({name:"GenreTracks",params:{genre:this.genre.name}})},play:function(){K.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!0)}}},CP=["textContent"],xP={class:"buttons is-centered"},kP=["textContent"],SP={class:"heading has-text-centered-mobile"},EP=["textContent"],$P=["textContent"];function zP(e,t,n,r,s,o){const i=T("index-button-list"),a=T("mdicon"),l=T("list-albums"),u=T("modal-dialog-genre"),d=T("content-with-heading");return E(),D("div",null,[C(d,null,{options:P(()=>[C(i,{index:s.albums_list.indexList},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.genre.name)},null,8,CP)]),"heading-right":P(()=>[c("div",xP,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>s.show_genre_details_modal=!0)},[C(a,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[C(a,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.genre.shuffle"))},null,8,kP)])])]),content:P(()=>[c("p",SP,[c("span",{textContent:v(e.$t("page.genre.album-count",{count:s.genre.album_count}))},null,8,EP),c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...m)=>o.open_tracks&&o.open_tracks(...m)),textContent:v(e.$t("page.genre.track-count",{count:s.genre.track_count}))},null,8,$P)]),C(l,{albums:s.albums_list},null,8,["albums"]),C(u,{show:s.show_genre_details_modal,genre:s.genre,onClose:t[3]||(t[3]=m=>s.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var AP=ve(wP,[["render",zP]]);const wa={load:function(e){return Promise.all([K.library_genre(e.params.genre),K.library_genre_tracks(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.tracks=t[1].data.tracks}},OP={name:"PageGenreTracks",components:{ContentWithHeading:pt,ListTracks:Rn,IndexButtonList:Dr,ModalDialogGenre:Sf},beforeRouteEnter(e,t,n){wa.load(e).then(r=>{n(s=>wa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;wa.load(e).then(s=>{wa.set(r,s),n()})},data(){return{tracks:{items:[]},genre:"",show_genre_details_modal:!1}},computed:{index_list(){return[...new Set(this.tracks.items.map(e=>e.title_sort.charAt(0).toUpperCase()))]},expression(){return'genre is "'+this.genre.name+'" and media_kind is music'}},methods:{open_genre:function(){this.show_details_modal=!1,this.$router.push({name:"Genre",params:{genre:this.genre.name}})},play:function(){K.player_play_expression(this.expression,!0)}}},TP=["textContent"],PP={class:"buttons is-centered"},DP=["textContent"],FP={class:"heading has-text-centered-mobile"},IP=["textContent"],MP=["textContent"];function RP(e,t,n,r,s,o){const i=T("index-button-list"),a=T("mdicon"),l=T("list-tracks"),u=T("modal-dialog-genre"),d=T("content-with-heading");return E(),D("div",null,[C(d,null,{options:P(()=>[C(i,{index:o.index_list},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.genre.name)},null,8,TP)]),"heading-right":P(()=>[c("div",PP,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>s.show_genre_details_modal=!0)},[C(a,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[C(a,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.genre.tracks.shuffle"))},null,8,DP)])])]),content:P(()=>[c("p",FP,[c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...m)=>o.open_genre&&o.open_genre(...m)),textContent:v(e.$t("page.genre.tracks.album-count",{count:s.genre.album_count}))},null,8,IP),c("span",{textContent:v(e.$t("page.genre.tracks.count",{count:s.genre.track_count}))},null,8,MP)]),C(l,{tracks:s.tracks.items,expression:o.expression},null,8,["tracks","expression"]),C(u,{show:s.show_genre_details_modal,genre:s.genre,onClose:t[3]||(t[3]=m=>s.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var LP=ve(OP,[["render",RP]]);const Ca={load:function(e){return Promise.all([K.library_artist(e.params.artist_id),K.library_artist_tracks(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.tracks=t[1].data.tracks}},NP={name:"PageArtistTracks",components:{ContentWithHeading:pt,ListTracks:Rn,IndexButtonList:Dr,ModalDialogArtist:au},beforeRouteEnter(e,t,n){Ca.load(e).then(r=>{n(s=>Ca.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ca.load(e).then(s=>{Ca.set(r,s),n()})},data(){return{artist:{},tracks:{items:[]},show_artist_details_modal:!1}},computed:{index_list(){return[...new Set(this.tracks.items.map(e=>e.title_sort.charAt(0).toUpperCase()))]},track_uris(){return this.tracks.items.map(e=>e.uri).join(",")}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/music/artists/"+this.artist.id})},play:function(){K.player_play_uri(this.tracks.items.map(e=>e.uri).join(","),!0)}}},VP=["textContent"],jP={class:"buttons is-centered"},BP=["textContent"],HP={class:"heading has-text-centered-mobile"},UP=["textContent"];function qP(e,t,n,r,s,o){const i=T("index-button-list"),a=T("mdicon"),l=T("list-tracks"),u=T("modal-dialog-artist"),d=T("content-with-heading");return E(),D("div",null,[C(d,null,{options:P(()=>[C(i,{index:o.index_list},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.artist.name)},null,8,VP)]),"heading-right":P(()=>[c("div",jP,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>s.show_artist_details_modal=!0)},[C(a,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[C(a,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.artist.shuffle"))},null,8,BP)])])]),content:P(()=>[c("p",HP,[c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:v(e.$t("page.artist.track-count",{albums:s.artist.album_count,tracks:s.artist.track_count}))},null,8,UP)]),C(l,{tracks:s.tracks.items,uris:o.track_uris},null,8,["tracks","uris"]),C(u,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[3]||(t[3]=m=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var WP=ve(NP,[["render",qP]]);const GP={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),K.queue_expression_add('composer is "'+this.composer.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),K.queue_expression_add_next('composer is "'+this.composer.name+'" and media_kind is music')},open_albums:function(){this.$emit("close"),this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},open_tracks:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})}}},KP={key:0,class:"modal is-active"},YP={class:"modal-content fd-modal-card"},ZP={class:"card"},JP={class:"card-content"},XP={class:"title is-4"},QP=["textContent"],eD=["textContent"],tD=["textContent"],nD=["textContent"],rD=["textContent"],sD=["textContent"],oD=["textContent"],iD={class:"card-footer"},aD=["textContent"],lD=["textContent"],uD=["textContent"];function cD(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",KP,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",YP,[c("div",ZP,[c("div",JP,[c("p",XP,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_albums&&o.open_albums(...a)),textContent:v(n.composer.name)},null,8,QP)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.composer.albums"))},null,8,eD),c("a",{class:"has-text-link is-6",onClick:t[2]||(t[2]=(...a)=>o.open_albums&&o.open_albums(...a)),textContent:v(n.composer.album_count)},null,8,tD)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.composer.tracks"))},null,8,nD),c("a",{class:"has-text-link is-6",onClick:t[3]||(t[3]=(...a)=>o.open_tracks&&o.open_tracks(...a)),textContent:v(n.composer.track_count)},null,8,rD)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.composer.duration"))},null,8,sD),c("span",{class:"title is-6",textContent:v(e.$filters.durationInHours(n.composer.length_ms))},null,8,oD)])]),c("footer",iD,[c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.composer.add"))},null,8,aD)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.composer.add-next"))},null,8,lD)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.composer.play"))},null,8,uD)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[7]||(t[7]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Ef=ve(GP,[["render",cD]]);const dD={name:"ListComposers",components:{ModalDialogComposer:Ef},props:["composers","media_kind","hide_group_title"],data(){return{show_details_modal:!1,selected_composer:{}}},computed:{media_kind_resolved:function(){return this.media_kind?this.media_kind:this.selected_composer.media_kind}},methods:{open_composer:function(e){this.selected_composer=e,this.$router.push({name:"ComposerTracks",params:{composer:e.name}})},open_dialog:function(e){this.selected_composer=e,this.show_details_modal=!0}}},fD={key:0,class:"mt-6 mb-5 py-2"},mD={class:"media-content is-clipped"},pD=["id","textContent"],hD=["onClick"],_D={class:"media-content fd-has-action is-clipped"},gD=["textContent"],yD={class:"media-right"},vD=["onClick"];function bD(e,t,n,r,s,o){const i=T("mdicon"),a=T("modal-dialog-composer");return E(),D(We,null,[(E(!0),D(We,null,wt(n.composers,l=>(E(),D(We,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(E(),D("div",fD,[c("div",mD,[c("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:v(l.groupKey)},null,8,pD)])])):l.isItem?(E(),D("div",{key:1,class:"media",onClick:u=>o.open_composer(l.item)},[c("div",_D,[c("h1",{class:"title is-6",textContent:v(l.item.name)},null,8,gD)]),c("div",yD,[c("a",{onClick:_t(u=>o.open_dialog(l.item),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,vD)])],8,hD)):J("",!0)],64))),128)),(E(),ke(ss,{to:"#app"},[C(a,{show:s.show_details_modal,composer:s.selected_composer,media_kind:n.media_kind,onClose:t[0]||(t[0]=l=>s.show_details_modal=!1)},null,8,["show","composer","media_kind"])]))],64)}var $v=ve(dD,[["render",bD]]);const xa={load:function(e){return K.library_composers("music")},set:function(e,t){e.composers=new st(t.data),e.composers.group(Ev("name_sort"))}},wD={name:"PageComposers",components:{ContentWithHeading:pt,TabsMusic:gr,IndexButtonList:Dr,ListComposers:$v},beforeRouteEnter(e,t,n){xa.load(e).then(r=>{n(s=>xa.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.composers.isEmpty()){n();return}const r=this;xa.load(e).then(s=>{xa.set(r,s),n()})},data(){return{composers:new st}},methods:{}},CD=["textContent"],xD=["textContent"];function kD(e,t,n,r,s,o){const i=T("tabs-music"),a=T("index-button-list"),l=T("list-composers"),u=T("content-with-heading");return E(),D("div",null,[C(i),C(u,null,{options:P(()=>[C(a,{index:s.composers.indexList},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.composers.title"))},null,8,CD),c("p",{class:"heading",textContent:v(e.$t("page.composers.count",{count:s.composers.total}))},null,8,xD)]),content:P(()=>[C(l,{composers:s.composers},null,8,["composers"])]),_:1})])}var SD=ve(wD,[["render",kD]]);const ka={load:function(e){return Promise.all([K.library_composer(e.params.composer),K.library_composer_albums(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.albums_list=new st(t[1].data.albums)}},ED={name:"PageComposer",components:{ContentWithHeading:pt,ListAlbums:yr,ModalDialogComposer:Ef},beforeRouteEnter(e,t,n){ka.load(e).then(r=>{n(s=>ka.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;ka.load(e).then(s=>{ka.set(r,s),n()})},data(){return{composer:{},albums_list:new st,show_composer_details_modal:!1}},methods:{open_tracks:function(){this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})},play:function(){K.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!0)}}},$D=["textContent"],zD={class:"buttons is-centered"},AD=["textContent"],OD={class:"heading has-text-centered-mobile"},TD=["textContent"],PD=["textContent"];function DD(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-albums"),l=T("modal-dialog-composer"),u=T("content-with-heading");return E(),D("div",null,[C(u,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.composer.name)},null,8,$D)]),"heading-right":P(()=>[c("div",zD,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_composer_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.composer.shuffle"))},null,8,AD)])])]),content:P(()=>[c("p",OD,[c("span",{textContent:v(e.$t("page.composer.album-count",{count:s.composer.album_count}))},null,8,TD),c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>o.open_tracks&&o.open_tracks(...d)),textContent:v(e.$t("page.composer.track-count",{count:s.composer.track_count}))},null,8,PD)]),C(a,{albums:s.albums_list,hide_group_title:!0},null,8,["albums"]),C(l,{show:s.show_composer_details_modal,composer:s.composer,onClose:t[3]||(t[3]=d=>s.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var FD=ve(ED,[["render",DD]]);const Sa={load:function(e){return Promise.all([K.library_composer(e.params.composer),K.library_composer_tracks(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.tracks=t[1].data.tracks}},ID={name:"PageComposerTracks",components:{ContentWithHeading:pt,ListTracks:Rn,ModalDialogComposer:Ef},beforeRouteEnter(e,t,n){Sa.load(e).then(r=>{n(s=>Sa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Sa.load(e).then(s=>{Sa.set(r,s),n()})},data(){return{tracks:{items:[]},composer:{},show_composer_details_modal:!1}},computed:{play_expression(){return'composer is "'+this.composer.name+'" and media_kind is music'}},methods:{open_albums:function(){this.show_details_modal=!1,this.$router.push({name:"ComposerAlbums",params:{composer:this.composer.name}})},play:function(){K.player_play_expression(this.play_expression,!0)}}},MD=["textContent"],RD={class:"buttons is-centered"},LD=["textContent"],ND={class:"heading has-text-centered-mobile"},VD=["textContent"],jD=["textContent"];function BD(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-tracks"),l=T("modal-dialog-composer"),u=T("content-with-heading");return E(),D("div",null,[C(u,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.composer.name)},null,8,MD)]),"heading-right":P(()=>[c("div",RD,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_composer_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.composer.tracks.shuffle"))},null,8,LD)])])]),content:P(()=>[c("p",ND,[c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>o.open_albums&&o.open_albums(...d)),textContent:v(e.$t("page.composer.tracks.album-count",{count:s.composer.album_count}))},null,8,VD),c("span",{textContent:v(e.$t("page.composer.track-count",{count:s.composer.track_count}))},null,8,jD)]),C(a,{tracks:s.tracks.items,expression:o.play_expression},null,8,["tracks","expression"]),C(l,{show:s.show_composer_details_modal,composer:s.composer,onClose:t[3]||(t[3]=d=>s.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var HD=ve(ID,[["render",BD]]);const UD={name:"ModalDialogAddRss",props:["show"],emits:["close","podcast-added"],data(){return{url:"",loading:!1}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.url_field.focus()},10))}},methods:{add_stream:function(){this.loading=!0,K.library_add(this.url).then(()=>{this.$emit("close"),this.$emit("podcast-added"),this.url=""}).catch(()=>{this.loading=!1})}}},qD={key:0,class:"modal is-active"},WD={class:"modal-content fd-modal-card"},GD={class:"card"},KD={class:"card-content"},YD=["textContent"],ZD={class:"field"},JD={class:"control is-expanded has-icons-left"},XD=["placeholder","disabled"],QD=["textContent"],eF={key:0,class:"card-footer"},tF={class:"card-footer-item button is-loading"},nF=["textContent"],rF={key:1,class:"card-footer"},sF=["textContent"],oF=["textContent"];function iF(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",qD,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",WD,[c("div",GD,[c("div",KD,[c("p",{class:"title is-4",textContent:v(e.$t("dialog.add.rss.title"))},null,8,YD),c("form",{onSubmit:t[2]||(t[2]=_t((...a)=>o.add_stream&&o.add_stream(...a),["prevent"]))},[c("div",ZD,[c("p",JD,[Ct(c("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.rss.placeholder"),disabled:s.loading},null,8,XD),[[sn,s.url]]),C(i,{class:"icon is-left",name:"rss",size:"16"})]),c("p",{class:"help",textContent:v(e.$t("dialog.add.rss.help"))},null,8,QD)])],32)]),s.loading?(E(),D("footer",eF,[c("a",tF,[C(i,{class:"icon",name:"web",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.rss.processing"))},null,8,nF)])])):(E(),D("footer",rF,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[C(i,{class:"icon",name:"cancel",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.rss.cancel"))},null,8,sF)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.add_stream&&o.add_stream(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.add.rss.add"))},null,8,oF)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var aF=ve(UD,[["render",iF]]);const Ea={load:function(e){return Promise.all([K.library_albums("podcast"),K.library_podcasts_new_episodes()])},set:function(e,t){e.albums=new st(t[0].data),e.new_episodes=t[1].data.tracks}},lF={name:"PagePodcasts",components:{ContentWithHeading:pt,ListTracks:Rn,ListAlbums:yr,ModalDialogAddRss:aF},beforeRouteEnter(e,t,n){Ea.load(e).then(r=>{n(s=>Ea.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ea.load(e).then(s=>{Ea.set(r,s),n()})},data(){return{albums:[],new_episodes:{items:[]},show_url_modal:!1}},computed:{rss(){return this.$store.state.rss_count}},methods:{mark_all_played:function(){this.new_episodes.items.forEach(e=>{K.library_track_update(e.id,{play_count:"increment"})}),this.new_episodes.items={}},open_add_podcast_dialog:function(e){this.show_url_modal=!0},reload_new_episodes:function(){K.library_podcasts_new_episodes().then(({data:e})=>{this.new_episodes=e.tracks})},reload_podcasts:function(){K.library_albums("podcast").then(({data:e})=>{this.albums=new st(e),this.reload_new_episodes()})},update_rss:function(){this.$store.commit(sf,"rss"),this.$store.commit(Ii,!0)}}},uF=["textContent"],cF={class:"buttons is-centered"},dF=["textContent"],fF=["textContent"],mF=["textContent"],pF={class:"buttons is-centered"},hF=["textContent"],_F=["textContent"];function gF(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-tracks"),l=T("content-with-heading"),u=T("list-albums"),d=T("modal-dialog-add-rss");return E(),D("div",null,[s.new_episodes.items.length>0?(E(),ke(l,{key:0},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.podcasts.new-episodes"))},null,8,uF)]),"heading-right":P(()=>[c("div",cF,[c("a",{class:"button is-small",onClick:t[0]||(t[0]=(...m)=>o.mark_all_played&&o.mark_all_played(...m))},[C(i,{class:"icon",name:"pencil",size:"16"}),c("span",{textContent:v(e.$t("page.podcasts.mark-all-played"))},null,8,dF)])])]),content:P(()=>[C(a,{tracks:s.new_episodes.items,show_progress:!0,onPlayCountChanged:o.reload_new_episodes},null,8,["tracks","onPlayCountChanged"])]),_:1})):J("",!0),C(l,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.podcasts.title"))},null,8,fF),c("p",{class:"heading",textContent:v(e.$t("page.podcasts.count",{count:s.albums.total}))},null,8,mF)]),"heading-right":P(()=>[c("div",pF,[o.rss.tracks>0?(E(),D("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...m)=>o.update_rss&&o.update_rss(...m))},[C(i,{class:"icon",name:"refresh",size:"16"}),c("span",{textContent:v(e.$t("page.podcasts.update"))},null,8,hF)])):J("",!0),c("a",{class:"button is-small",onClick:t[2]||(t[2]=(...m)=>o.open_add_podcast_dialog&&o.open_add_podcast_dialog(...m))},[C(i,{class:"icon",name:"rss",size:"16"}),c("span",{textContent:v(e.$t("page.podcasts.add"))},null,8,_F)])])]),content:P(()=>[C(u,{albums:s.albums,onPlayCountChanged:t[3]||(t[3]=m=>o.reload_new_episodes()),onPodcastDeleted:t[4]||(t[4]=m=>o.reload_podcasts())},null,8,["albums"]),C(d,{show:s.show_url_modal,onClose:t[5]||(t[5]=m=>s.show_url_modal=!1),onPodcastAdded:t[6]||(t[6]=m=>o.reload_podcasts())},null,8,["show"])]),_:1})])}var yF=ve(lF,[["render",gF]]);const $a={load:function(e){return Promise.all([K.library_album(e.params.album_id),K.library_podcast_episodes(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.tracks.items}},vF={name:"PagePodcast",components:{ContentWithHeading:pt,ListTracks:Rn,ModalDialogAlbum:iu,ModalDialog:Cf},beforeRouteEnter(e,t,n){$a.load(e).then(r=>{n(s=>$a.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;$a.load(e).then(s=>{$a.set(r,s),n()})},data(){return{album:{},tracks:[],show_album_details_modal:!1,show_remove_podcast_modal:!1,rss_playlist_to_remove:{}}},computed:{new_tracks(){return this.tracks.filter(e=>e.play_count===0).length}},methods:{play:function(){K.player_play_uri(this.album.uri,!1)},open_remove_podcast_dialog:function(){this.show_album_details_modal=!1,K.library_track_playlists(this.tracks[0].id).then(({data:e})=>{const t=e.items.filter(n=>n.type==="rss");if(t.length!==1){this.$store.dispatch("add_notification",{text:this.$t("page.podcast.remove-error"),type:"danger"});return}this.rss_playlist_to_remove=t[0],this.show_remove_podcast_modal=!0})},remove_podcast:function(){this.show_remove_podcast_modal=!1,K.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$router.replace({path:"/podcasts"})})},reload_tracks:function(){K.library_podcast_episodes(this.album.id).then(({data:e})=>{this.tracks=e.tracks.items})}}},bF=["textContent"],wF={class:"buttons is-centered"},CF=["textContent"],xF=["textContent"],kF=["textContent"],SF={class:"is-size-7"},EF=Tt(" ("),$F=["textContent"],zF=["textContent"],AF=Tt(") ");function OF(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-tracks"),l=T("modal-dialog-album"),u=T("modal-dialog"),d=T("content-with-heading");return E(),ke(d,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(s.album.name)},null,8,bF)]),"heading-right":P(()=>[c("div",wF,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>s.show_album_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{textContent:v(e.$t("page.podcast.play"))},null,8,CF)])])]),content:P(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:v(e.$t("page.podcast.track-count",{count:s.album.track_count}))},null,8,xF),C(a,{tracks:s.tracks,show_progress:!0,onPlayCountChanged:o.reload_tracks},null,8,["tracks","onPlayCountChanged"]),C(l,{show:s.show_album_details_modal,album:s.album,media_kind:"podcast",new_tracks:o.new_tracks,onClose:t[2]||(t[2]=m=>s.show_album_details_modal=!1),onPlayCountChanged:o.reload_tracks,onRemovePodcast:o.open_remove_podcast_dialog},null,8,["show","album","new_tracks","onPlayCountChanged","onRemovePodcast"]),C(u,{show:s.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=m=>s.show_remove_podcast_modal=!1),onDelete:o.remove_podcast},{"modal-content":P(()=>[c("p",{textContent:v(e.$t("page.podcast.remove-info-1"))},null,8,kF),c("p",SF,[EF,c("span",{textContent:v(e.$t("page.podcast.remove-info-2"))},null,8,$F),c("b",{textContent:v(s.rss_playlist_to_remove.name)},null,8,zF),AF])]),_:1},8,["show","onDelete"])]),_:1})}var TF=ve(vF,[["render",OF]]);const PF={name:"TabsAudiobooks"},DF={class:"section fd-tabs-section"},FF={class:"container"},IF={class:"columns is-centered"},MF={class:"column is-four-fifths"},RF={class:"tabs is-centered is-small"},LF=["onClick","onKeypress"],NF=["textContent"],VF=["onClick","onKeypress"],jF=["textContent"];function BF(e,t,n,r,s,o){const i=T("mdicon"),a=T("router-link");return E(),D("section",DF,[c("div",FF,[c("div",IF,[c("div",MF,[c("div",RF,[c("ul",null,[C(a,{to:"/audiobooks/artists",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"account-music",size:"16"}),c("span",{textContent:v(e.$t("tabs.audiobooks.authors"))},null,8,NF)],40,LF)],2)]),_:1}),C(a,{to:"/audiobooks/albums",custom:""},{default:P(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Tn(l,["enter"])},[C(i,{class:"icon is-small",name:"album",size:"16"}),c("span",{textContent:v(e.$t("tabs.audiobooks.audiobooks"))},null,8,jF)],40,VF)],2)]),_:1})])])])])])])}var zv=ve(PF,[["render",BF]]);const za={load:function(e){return K.library_albums("audiobook")},set:function(e,t){e.albums=new st(t.data),e.albums.group(So("name_sort"))}},HF={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:zv,ContentWithHeading:pt,IndexButtonList:Dr,ListAlbums:yr},beforeRouteEnter(e,t,n){za.load(e).then(r=>{n(s=>za.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const r=this;za.load(e).then(s=>{za.set(r,s),n()})},data(){return{albums:new st}},methods:{}},UF={class:"fd-page-with-tabs"},qF=["textContent"],WF=["textContent"];function GF(e,t,n,r,s,o){const i=T("tabs-audiobooks"),a=T("index-button-list"),l=T("list-albums"),u=T("content-with-heading");return E(),D("div",UF,[C(i),C(u,null,{options:P(()=>[C(a,{index:s.albums.indexList},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.audiobooks.albums.title"))},null,8,qF),c("p",{class:"heading",textContent:v(e.$t("page.audiobooks.albums.count",{count:s.albums.count}))},null,8,WF)]),content:P(()=>[C(l,{albums:s.albums},null,8,["albums"])]),_:1})])}var KF=ve(HF,[["render",GF]]);const Aa={load:function(e){return K.library_artists("audiobook")},set:function(e,t){e.artists_list=new st(t.data)}},YF={name:"PageAudiobooksArtists",components:{ContentWithHeading:pt,TabsAudiobooks:zv,IndexButtonList:Dr,ListArtists:xf},beforeRouteEnter(e,t,n){Aa.load(e).then(r=>{n(s=>Aa.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const r=this;Aa.load(e).then(s=>{Aa.set(r,s),n()})},data(){return{artists_list:new st}},computed:{artists(){return this.artists_list?(this.artists_list.group(So("name_sort")),this.artists_list):[]}},methods:{}},ZF={class:"fd-page-with-tabs"},JF=["textContent"],XF=["textContent"];function QF(e,t,n,r,s,o){const i=T("tabs-audiobooks"),a=T("index-button-list"),l=T("list-artists"),u=T("content-with-heading");return E(),D("div",ZF,[C(i),C(u,null,{options:P(()=>[C(a,{index:o.artists.indexList},null,8,["index"])]),"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.audiobooks.artists.title"))},null,8,JF),c("p",{class:"heading",textContent:v(e.$t("page.audiobooks.artists.count",{count:e.tists.count}))},null,8,XF)]),"heading-right":P(()=>[]),content:P(()=>[C(l,{artists:o.artists},null,8,["artists"])]),_:1})])}var eI=ve(YF,[["render",QF]]);const Oa={load:function(e){return Promise.all([K.library_artist(e.params.artist_id),K.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums=new st(t[1].data)}},tI={name:"PageAudiobooksArtist",components:{ContentWithHeading:pt,ListAlbums:yr,ModalDialogArtist:au},beforeRouteEnter(e,t,n){Oa.load(e).then(r=>{n(s=>Oa.set(s,r))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const r=this;Oa.load(e).then(s=>{Oa.set(r,s),n()})},data(){return{artist:{},albums:new st,show_artist_details_modal:!1}},methods:{play:function(){K.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!1)}}},nI=["textContent"],rI={class:"buttons is-centered"},sI=["textContent"],oI=["textContent"];function iI(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-albums"),l=T("modal-dialog-artist"),u=T("content-with-heading");return E(),ke(u,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.artist.name)},null,8,nI)]),"heading-right":P(()=>[c("div",rI,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_artist_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{textContent:v(e.$t("page.audiobooks.artist.shuffle"))},null,8,sI)])])]),content:P(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:v(e.$t("page.audiobooks.artist.album-count",{count:s.artist.album_count}))},null,8,oI),C(a,{albums:s.albums},null,8,["albums"]),C(l,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[2]||(t[2]=d=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var aI=ve(tI,[["render",iI]]);const Ta={load:function(e){return Promise.all([K.library_album(e.params.album_id),K.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},lI={name:"PageAudiobooksAlbum",components:{ContentWithHero:kf,ListTracks:Rn,ModalDialogAlbum:iu,CoverArtwork:Pr},beforeRouteEnter(e,t,n){Ta.load(e).then(r=>{n(s=>Ta.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ta.load(e).then(s=>{Ta.set(r,s),n()})},data(){return{album:{},tracks:[],show_album_details_modal:!1}},methods:{open_artist:function(){this.show_details_modal=!1,this.$router.push({path:"/audiobooks/artists/"+this.album.artist_id})},play:function(){K.player_play_uri(this.album.uri,!1)},play_track:function(e){K.player_play_uri(this.album.uri,!1,e)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},uI=["textContent"],cI={class:"subtitle is-6 has-text-link has-text-weight-normal"},dI=["textContent"],fI={class:"buttons fd-is-centered-mobile fd-has-margin-top"},mI=["textContent"],pI={class:"image is-square fd-has-shadow fd-has-action"},hI=["textContent"];function _I(e,t,n,r,s,o){const i=T("mdicon"),a=T("cover-artwork"),l=T("list-tracks"),u=T("modal-dialog-album"),d=T("content-with-hero");return E(),ke(d,null,{"heading-left":P(()=>[c("h1",{class:"title is-5",textContent:v(s.album.name)},null,8,uI),c("h2",cI,[c("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...m)=>o.open_artist&&o.open_artist(...m)),textContent:v(s.album.artist)},null,8,dI)]),c("div",fI,[c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>o.play&&o.play(...m))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{textContent:v(e.$t("page.audiobooks.album.play"))},null,8,mI)]),c("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=m=>s.show_album_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})])])]),"heading-right":P(()=>[c("p",pI,[C(a,{artwork_url:s.album.artwork_url,artist:s.album.artist,album:s.album.name,onClick:t[3]||(t[3]=m=>s.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:P(()=>[c("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:v(e.$t("page.audiobooks.album.track-count",{count:s.album.track_count}))},null,8,hI),C(l,{tracks:s.tracks,uris:s.album.uri},null,8,["tracks","uris"]),C(u,{show:s.show_album_details_modal,album:s.album,media_kind:"audiobook",onClose:t[4]||(t[4]=m=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var gI=ve(lI,[["render",_I]]);const yI={name:"ModalDialogPlaylist",props:["show","playlist","uris"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_uri(this.uris?this.uris:this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.uris?this.uris:this.playlist.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.uris?this.uris:this.playlist.uri)},open_playlist:function(){this.$emit("close"),this.$router.push({path:"/playlists/"+this.playlist.id+"/tracks"})}}},vI={key:0,class:"modal is-active"},bI={class:"modal-content fd-modal-card"},wI={class:"card"},CI={class:"card-content"},xI={class:"title is-4"},kI=["textContent"],SI={class:"content is-small"},EI=c("span",{class:"heading"},"Path",-1),$I=["textContent"],zI=["textContent"],AI=["textContent"],OI={key:0},TI=["textContent"],PI=["textContent"],DI={key:0,class:"card-footer"},FI=["textContent"],II=["textContent"],MI=["textContent"];function RI(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",vI,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",bI,[c("div",wI,[c("div",CI,[c("p",xI,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a)),textContent:v(n.playlist.name)},null,8,kI)]),c("div",SI,[c("p",null,[EI,c("span",{class:"title is-6",textContent:v(n.playlist.path)},null,8,$I)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.playlist.type"))},null,8,zI),c("span",{class:"title is-6",textContent:v(n.playlist.type)},null,8,AI)]),n.playlist.folder?J("",!0):(E(),D("p",OI,[c("span",{class:"heading",textContent:v(e.$t("dialog.playlist.track-count"))},null,8,TI),c("span",{class:"title is-6",textContent:v(n.playlist.item_count)},null,8,PI)]))])]),n.playlist.folder?J("",!0):(E(),D("footer",DI,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.playlist.add"))},null,8,FI)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.playlist.add-next"))},null,8,II)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.playlist.play"))},null,8,MI)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Av=ve(yI,[["render",RI]]);const LI={name:"ListPlaylists",components:{ModalDialogPlaylist:Av},props:["playlists"],data(){return{show_details_modal:!1,selected_playlist:{}}},methods:{open_playlist:function(e){e.type!=="folder"?this.$router.push({path:"/playlists/"+e.id+"/tracks"}):this.$router.push({path:"/playlists/"+e.id})},open_dialog:function(e){this.selected_playlist=e,this.show_details_modal=!0},icon_name:function(e){return e.type==="folder"?"folder":e.type==="rss"?"rss":"music-box-multiple"}}},NI=["playlist","onClick"],VI={class:"media-left fd-has-action"},jI={class:"media-content fd-has-action is-clipped"},BI=["textContent"],HI={class:"media-right"},UI=["onClick"];function qI(e,t,n,r,s,o){const i=T("mdicon"),a=T("modal-dialog-playlist");return E(),D(We,null,[(E(!0),D(We,null,wt(n.playlists,l=>(E(),D("div",{key:l.itemId,class:"media",playlist:l,onClick:u=>o.open_playlist(l.item)},[c("figure",VI,[C(i,{class:"icon",name:o.icon_name(l.item),size:"16"},null,8,["name"])]),c("div",jI,[c("h1",{class:"title is-6",textContent:v(l.item.name)},null,8,BI)]),c("div",HI,[c("a",{onClick:_t(u=>o.open_dialog(l.item),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,UI)])],8,NI))),128)),(E(),ke(ss,{to:"#app"},[C(a,{show:s.show_details_modal,playlist:s.selected_playlist,onClose:t[0]||(t[0]=l=>s.show_details_modal=!1)},null,8,["show","playlist"])]))],64)}var $f=ve(LI,[["render",qI]]);const Pa={load:function(e){return Promise.all([K.library_playlist(e.params.playlist_id),K.library_playlist_folder(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.playlists_list=new st(t[1].data)}},WI={name:"PagePlaylists",components:{ContentWithHeading:pt,ListPlaylists:$f},beforeRouteEnter(e,t,n){Pa.load(e).then(r=>{n(s=>Pa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Pa.load(e).then(s=>{Pa.set(r,s),n()})},data(){return{playlist:{},playlists_list:new st}},computed:{radio_playlists(){return this.$store.state.config.radio_playlists},playlists(){return this.playlists_list.group(Sv(),[e=>e.folder||this.radio_playlists||e.stream_count===0||e.item_count>e.stream_count]),this.playlists_list}}},GI=["textContent"],KI=["textContent"];function YI(e,t,n,r,s,o){const i=T("list-playlists"),a=T("content-with-heading");return E(),ke(a,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.playlist.name)},null,8,GI),c("p",{class:"heading",textContent:v(e.$t("page.playlists.count",{count:o.playlists.count}))},null,8,KI)]),content:P(()=>[C(i,{playlists:o.playlists},null,8,["playlists"])]),_:1})}var ZI=ve(WI,[["render",YI]]);const Da={load:function(e){return Promise.all([K.library_playlist(e.params.playlist_id),K.library_playlist_tracks(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.tracks=t[1].data.items}},JI={name:"PagePlaylist",components:{ContentWithHeading:pt,ListTracks:Rn,ModalDialogPlaylist:Av},beforeRouteEnter(e,t,n){Da.load(e).then(r=>{n(s=>Da.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Da.load(e).then(s=>{Da.set(r,s),n()})},data(){return{playlist:{},tracks:[],show_playlist_details_modal:!1}},computed:{uris(){return this.playlist.random?this.tracks.map(e=>e.uri).join(","):this.playlist.uri}},methods:{play:function(){K.player_play_uri(this.uris,!0)}}},XI=["textContent"],QI={class:"buttons is-centered"},eM=["textContent"],tM=["textContent"];function nM(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-tracks"),l=T("modal-dialog-playlist"),u=T("content-with-heading");return E(),ke(u,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(s.playlist.name)},null,8,XI)]),"heading-right":P(()=>[c("div",QI,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>s.show_playlist_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>o.play&&o.play(...d))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.playlist.shuffle"))},null,8,eM)])])]),content:P(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:v(e.$t("page.playlist.length",{length:s.tracks.length}))},null,8,tM),C(a,{tracks:s.tracks,uris:o.uris},null,8,["tracks","uris"]),C(l,{show:s.show_playlist_details_modal,playlist:s.playlist,uris:o.uris,onClose:t[2]||(t[2]=d=>s.show_playlist_details_modal=!1)},null,8,["show","playlist","uris"])]),_:1})}var rM=ve(JI,[["render",nM]]);const sM={name:"ModalDialogDirectory",props:["show","directory"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_expression('path starts with "'+this.directory.path+'" order by path asc',!1)},queue_add:function(){this.$emit("close"),K.queue_expression_add('path starts with "'+this.directory.path+'" order by path asc')},queue_add_next:function(){this.$emit("close"),K.queue_expression_add_next('path starts with "'+this.directory.path+'" order by path asc')}}},oM={key:0,class:"modal is-active"},iM={class:"modal-content fd-modal-card"},aM={class:"card"},lM={class:"card-content"},uM=["textContent"],cM={class:"card-footer"},dM=["textContent"],fM=["textContent"],mM=["textContent"];function pM(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",oM,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",iM,[c("div",aM,[c("div",lM,[c("p",{class:"title is-4",textContent:v(n.directory.path)},null,8,uM)]),c("footer",cM,[c("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.directory.add"))},null,8,dM)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.directory.add-next"))},null,8,fM)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.directory.play"))},null,8,mM)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var hM=ve(sM,[["render",pM]]);const _M={name:"ListDirectories",components:{ModalDialogDirectory:hM},props:["directories"],data(){return{show_details_modal:!1,selected_directory:{}}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"}},methods:{open_parent_directory:function(){this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))===""||this.$store.state.config.directories.includes(this.current_directory)?this.$router.push({path:"/files"}):this.$router.push({path:"/files",query:{directory:this.current_directory.slice(0,this.current_directory.lastIndexOf("/"))}})},open_directory:function(e){this.$router.push({path:"/files",query:{directory:e.path}})},open_dialog:function(e){this.selected_directory=e,this.show_details_modal=!0}}},gM={class:"media-left fd-has-action"},yM=c("div",{class:"media-content fd-has-action is-clipped"},[c("h1",{class:"title is-6"},"..")],-1),vM={class:"media-right"},bM=["onClick"],wM={class:"media-left fd-has-action"},CM={class:"media-content fd-has-action is-clipped"},xM=["textContent"],kM=["textContent"],SM={class:"media-right"},EM=["onClick"];function $M(e,t,n,r,s,o){const i=T("mdicon"),a=T("modal-dialog-directory");return E(),D(We,null,[e.$route.query.directory?(E(),D("div",{key:0,class:"media",onClick:t[0]||(t[0]=l=>o.open_parent_directory())},[c("figure",gM,[C(i,{class:"icon",name:"subdirectory-arrow-left",size:"16"})]),yM,c("div",vM,[kt(e.$slots,"actions")])])):J("",!0),(E(!0),D(We,null,wt(n.directories,l=>(E(),D("div",{key:l.path,class:"media",onClick:u=>o.open_directory(l)},[c("figure",wM,[C(i,{class:"icon",name:"folder",size:"16"})]),c("div",CM,[c("h1",{class:"title is-6",textContent:v(l.path.substring(l.path.lastIndexOf("/")+1))},null,8,xM),c("h2",{class:"subtitle is-7 has-text-grey-light",textContent:v(l.path)},null,8,kM)]),c("div",SM,[c("a",{onClick:_t(u=>o.open_dialog(l),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,EM)])],8,bM))),128)),(E(),ke(ss,{to:"#app"},[C(a,{show:s.show_details_modal,directory:s.selected_directory,onClose:t[1]||(t[1]=l=>s.show_details_modal=!1)},null,8,["show","directory"])]))],64)}var zM=ve(_M,[["render",$M]]);const Fa={load:function(e){return e.query.directory?K.library_files(e.query.directory):Promise.resolve()},set:function(e,t){t?e.files=t.data:e.files={directories:e.$store.state.config.directories.map(n=>({path:n})),tracks:{items:[]},playlists:{items:[]}}}},AM={name:"PageFiles",components:{ContentWithHeading:pt,ListDirectories:zM,ListPlaylists:$f,ListTracks:Rn},beforeRouteEnter(e,t,n){Fa.load(e).then(r=>{n(s=>Fa.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Fa.load(e).then(s=>{Fa.set(r,s),n()})},data(){return{files:{directories:[],tracks:{items:[]},playlists:{items:[]}}}},computed:{current_directory(){return this.$route.query&&this.$route.query.directory?this.$route.query.directory:"/"},play_expression(){return'path starts with "'+this.current_directory+'" order by path asc'}},methods:{play:function(){K.player_play_expression(this.play_expression,!1)}}},OM=["textContent"],TM=["textContent"],PM={class:"buttons is-centered"},DM=["textContent"];function FM(e,t,n,r,s,o){const i=T("mdicon"),a=T("list-directories"),l=T("list-playlists"),u=T("list-tracks"),d=T("modal-dialog-directory"),m=T("content-with-heading");return E(),D("div",null,[C(m,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.files.title"))},null,8,OM),c("p",{class:"title is-7 has-text-grey",textContent:v(o.current_directory)},null,8,TM)]),"heading-right":P(()=>[c("div",PM,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>e.open_directory_dialog({path:o.current_directory}))},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{textContent:v(e.$t("page.files.play"))},null,8,DM)])])]),content:P(()=>[C(a,{directories:s.files.directories},null,8,["directories"]),C(l,{playlists:s.files.playlists.items},null,8,["playlists"]),C(u,{tracks:s.files.tracks.items,expression:o.play_expression,show_icon:!0},null,8,["tracks","expression"]),C(d,{show:e.show_directory_details_modal,directory:e.selected_directory,onClose:t[2]||(t[2]=f=>e.show_directory_details_modal=!1)},null,8,["show","directory"])]),_:1})])}var IM=ve(AM,[["render",FM]]);const Ia={load:function(e){return K.library_radio_streams()},set:function(e,t){e.tracks=t.data.tracks}},MM={name:"PageRadioStreams",components:{ContentWithHeading:pt,ListTracks:Rn},beforeRouteEnter(e,t,n){Ia.load(e).then(r=>{n(s=>Ia.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ia.load(e).then(s=>{Ia.set(r,s),n()})},data(){return{tracks:{items:[]}}}},RM=["textContent"],LM=["textContent"];function NM(e,t,n,r,s,o){const i=T("list-tracks"),a=T("content-with-heading");return E(),D("div",null,[C(a,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.radio.title"))},null,8,RM)]),content:P(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:v(e.$t("page.radio.count",{count:s.tracks.total}))},null,8,LM),C(i,{tracks:s.tracks.items},null,8,["tracks"])]),_:1})])}var VM=ve(MM,[["render",NM]]);const jM={name:"ContentText"},BM={class:"section fd-content py-3"},HM={class:"container"},UM={class:"columns is-centered"},qM={class:"column is-four-fifths"};function WM(e,t,n,r,s,o){return E(),D("section",BM,[c("div",HM,[c("div",UM,[c("div",qM,[kt(e.$slots,"content")])])])])}var Ov=ve(jM,[["render",WM]]);const GM={name:"TabsSearch",props:["query"],computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},route_query:function(){return this.query?{type:"track,artist,album,playlist,audiobook,podcast",query:this.query,limit:3,offset:0}:null}},methods:{search_library:function(){this.$store.commit(jc,"/search/library"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})},search_spotify:function(){this.$store.commit(jc,"/search/spotify"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})}}},KM={key:0,class:"section fd-remove-padding-bottom"},YM={class:"container"},ZM={class:"columns is-centered"},JM={class:"column is-four-fifths"},XM={class:"tabs is-centered is-small is-toggle is-toggle-rounded"},QM=["textContent"],e7=["textContent"];function t7(e,t,n,r,s,o){const i=T("mdicon");return o.spotify_enabled?(E(),D("section",KM,[c("div",YM,[c("div",ZM,[c("div",JM,[c("div",XM,[c("ul",null,[c("li",{class:Ye({"is-active":e.$store.state.search_path==="/search/library"})},[c("a",{onClick:t[0]||(t[0]=(...a)=>o.search_library&&o.search_library(...a))},[C(i,{class:"icon is-small",name:"bookshelf",size:"16"}),c("span",{textContent:v(e.$t("tabs.search.library"))},null,8,QM)])],2),c("li",{class:Ye({"is-active":e.$store.state.search_path==="/search/spotify"})},[c("a",{onClick:t[1]||(t[1]=(...a)=>o.search_spotify&&o.search_spotify(...a))},[C(i,{class:"icon is-small",name:"spotify",size:"16"}),c("span",{textContent:v(e.$t("tabs.search.spotify"))},null,8,e7)])],2)])])])])])])):J("",!0)}var Tv=ve(GM,[["render",t7]]);const n7={name:"PageSearch",components:{ContentWithHeading:pt,ContentText:Ov,TabsSearch:Tv,ListTracks:Rn,ListArtists:xf,ListAlbums:yr,ListPlaylists:$f,ListComposers:$v},data(){return{search_query:"",tracks:{items:[],total:0},artists:new st,albums:new st,composers:new st,playlists:new st,audiobooks:new st,podcasts:new st}},computed:{recent_searches(){return this.$store.state.recent_searches},show_tracks(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button(){return this.tracks.total>this.tracks.items.length},show_artists(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button(){return this.artists.total>this.artists.items.length},show_albums(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button(){return this.albums.total>this.albums.items.length},show_composers(){return this.$route.query.type&&this.$route.query.type.includes("composer")},show_all_composers_button(){return this.composers.total>this.composers.items.length},show_playlists(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button(){return this.playlists.total>this.playlists.items.length},show_audiobooks(){return this.$route.query.type&&this.$route.query.type.includes("audiobook")},show_all_audiobooks_button(){return this.audiobooks.total>this.audiobooks.items.length},show_podcasts(){return this.$route.query.type&&this.$route.query.type.includes("podcast")},show_all_podcasts_button(){return this.podcasts.total>this.podcasts.items.length},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},watch:{$route(e,t){this.search(e)}},mounted:function(){this.search(this.$route)},methods:{search:function(e){if(!e.query.query||e.query.query===""){this.search_query="",this.$refs.search_field.focus();return}this.search_query=e.query.query,this.searchMusic(e.query),this.searchAudiobooks(e.query),this.searchPodcasts(e.query),this.$store.commit(nf,e.query.query)},searchMusic:function(e){if(e.type.indexOf("track")<0&&e.type.indexOf("artist")<0&&e.type.indexOf("album")<0&&e.type.indexOf("playlist")<0)return;const t={type:e.type,media_kind:"music"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.query=e.query,e.limit&&(t.limit=e.limit,t.offset=e.offset),K.search(t).then(({data:n})=>{this.tracks=n.tracks?n.tracks:{items:[],total:0},this.artists=new st(n.artists),this.albums=new st(n.albums),this.composers=new st(n.composers),this.playlists=new st(n.playlists)})},searchAudiobooks:function(e){if(e.type.indexOf("audiobook")<0)return;const t={type:"album",media_kind:"audiobook"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.expression='((album includes "'+e.query+'" or artist includes "'+e.query+'") and media_kind is audiobook)',e.limit&&(t.limit=e.limit,t.offset=e.offset),K.search(t).then(({data:n})=>{this.audiobooks=new st(n.albums)})},searchPodcasts:function(e){if(e.type.indexOf("podcast")<0)return;const t={type:"album",media_kind:"podcast"};e.query.startsWith("query:")?t.expression=e.query.replace(/^query:/,"").trim():t.expression='((album includes "'+e.query+'" or artist includes "'+e.query+'") and media_kind is podcast)',e.limit&&(t.limit=e.limit,t.offset=e.offset),K.search(t).then(({data:n})=>{this.podcasts=new st(n.albums)})},new_search:function(){!this.search_query||(this.$router.push({path:this.$store.state.search_path,query:{type:"track,artist,album,playlist,audiobook,podcast,composer",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks:function(){this.$router.push({path:"/search/library",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/library",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/library",query:{type:"album",query:this.$route.query.query}})},open_search_composers:function(){this.$router.push({path:"/search/library",query:{type:"tracks",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/library",query:{type:"playlist",query:this.$route.query.query}})},open_search_audiobooks:function(){this.$router.push({path:"/search/library",query:{type:"audiobook",query:this.$route.query.query}})},open_search_podcasts:function(){this.$router.push({path:"/search/library",query:{type:"podcast",query:this.$route.query.query}})},open_composer:function(e){this.$router.push({name:"ComposerAlbums",params:{composer:e.name}})},open_playlist:function(e){this.$router.push({path:"/playlists/"+e.id+"/tracks"})},open_recent_search:function(e){this.search_query=e,this.new_search()},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog:function(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_composer_dialog:function(e){this.selected_composer=e,this.show_composer_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},r7={class:"section fd-remove-padding-bottom"},s7={class:"container"},o7={class:"columns is-centered"},i7={class:"column is-four-fifths"},a7={class:"field"},l7={class:"control is-expanded has-icons-left"},u7={class:"help has-text-centered"},c7=["innerHTML"],d7={class:"tags",style:{"margin-top":"16px"}},f7=["onClick","textContent"],m7=["textContent"],p7={key:0,class:"level"},h7={class:"level-item"},_7=["textContent"],g7=["textContent"],y7=["textContent"],v7={key:0,class:"level"},b7={class:"level-item"},w7=["textContent"],C7=["textContent"],x7=["textContent"],k7={key:0,class:"level"},S7={class:"level-item"},E7=["textContent"],$7=["textContent"],z7=["textContent"],A7={key:0,class:"level"},O7={class:"level-item"},T7=["textContent"],P7=["textContent"],D7=["textContent"],F7={key:0,class:"level"},I7={class:"level-item"},M7=["textContent"],R7=["textContent"],L7=["textContent"],N7={key:0,class:"level"},V7={class:"level-item"},j7=["textContent"],B7=["textContent"],H7=["textContent"],U7={key:0,class:"level"},q7={class:"level-item"},W7=["textContent"],G7=["textContent"];function K7(e,t,n,r,s,o){const i=T("mdicon"),a=T("tabs-search"),l=T("list-tracks"),u=T("content-with-heading"),d=T("content-text"),m=T("list-artists"),f=T("list-albums"),p=T("list-composers"),h=T("list-playlists");return E(),D("div",null,[c("section",r7,[c("div",s7,[c("div",o7,[c("div",i7,[c("form",{onSubmit:t[1]||(t[1]=_t((..._)=>o.new_search&&o.new_search(..._),["prevent"]))},[c("div",a7,[c("p",l7,[Ct(c("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=_=>s.search_query=_),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[sn,s.search_query]]),C(i,{class:"icon is-left",name:"magnify",size:"16"})]),c("p",u7,[c("span",{innerHTML:e.$t("page.search.help")},null,8,c7)])])],32),c("div",d7,[(E(!0),D(We,null,wt(o.recent_searches,_=>(E(),D("a",{key:_,class:"tag",onClick:g=>o.open_recent_search(_),textContent:v(_)},null,8,f7))),128))])])])])]),C(a,{query:s.search_query},null,8,["query"]),o.show_tracks&&s.tracks.total?(E(),ke(u,{key:0},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.tracks"))},null,8,m7)]),content:P(()=>[C(l,{tracks:s.tracks.items},null,8,["tracks"])]),footer:P(()=>[o.show_all_tracks_button?(E(),D("nav",p7,[c("p",h7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[2]||(t[2]=(..._)=>o.open_search_tracks&&o.open_search_tracks(..._)),textContent:v(e.$t("page.search.show.tracks",{count:s.tracks.total.toLocaleString()}))},null,8,_7)])])):J("",!0)]),_:1})):J("",!0),o.show_tracks&&!s.tracks.total?(E(),ke(d,{key:1,class:"mt-6"},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-tracks"))},null,8,g7)])]),_:1})):J("",!0),o.show_artists&&s.artists.total?(E(),ke(u,{key:2},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.artists"))},null,8,y7)]),content:P(()=>[C(m,{artists:s.artists,hide_group_title:!0},null,8,["artists"])]),footer:P(()=>[o.show_all_artists_button?(E(),D("nav",v7,[c("p",b7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(..._)=>o.open_search_artists&&o.open_search_artists(..._)),textContent:v(e.$t("page.search.show.artists",{count:s.artists.total.toLocaleString()}))},null,8,w7)])])):J("",!0)]),_:1})):J("",!0),o.show_artists&&!s.artists.total?(E(),ke(d,{key:3},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-artists"))},null,8,C7)])]),_:1})):J("",!0),o.show_albums&&s.albums.total?(E(),ke(u,{key:4},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.albums"))},null,8,x7)]),content:P(()=>[C(f,{albums:s.albums,hide_group_title:!0},null,8,["albums"])]),footer:P(()=>[o.show_all_albums_button?(E(),D("nav",k7,[c("p",S7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[4]||(t[4]=(..._)=>o.open_search_albums&&o.open_search_albums(..._)),textContent:v(e.$t("page.search.show-albums",{count:s.albums.total.toLocaleString()}))},null,8,E7)])])):J("",!0)]),_:1})):J("",!0),o.show_albums&&!s.albums.total?(E(),ke(d,{key:5},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-albums"))},null,8,$7)])]),_:1})):J("",!0),o.show_composers&&s.composers.total?(E(),ke(u,{key:6},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.composers"))},null,8,z7)]),content:P(()=>[C(p,{composers:s.composers},null,8,["composers"])]),footer:P(()=>[o.show_all_composers_button?(E(),D("nav",A7,[c("p",O7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(..._)=>o.open_search_composers&&o.open_search_composers(..._)),textContent:v(e.$t("page.search.show.composers",{count:s.composers.total.toLocaleString()}))},null,8,T7)])])):J("",!0)]),_:1})):J("",!0),o.show_composers&&!s.composers.total?(E(),ke(d,{key:7},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-composers"))},null,8,P7)])]),_:1})):J("",!0),o.show_playlists&&s.playlists.total?(E(),ke(u,{key:8},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.playlists"))},null,8,D7)]),content:P(()=>[C(h,{playlists:s.playlists},null,8,["playlists"])]),footer:P(()=>[o.show_all_playlists_button?(E(),D("nav",F7,[c("p",I7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[6]||(t[6]=(..._)=>o.open_search_playlists&&o.open_search_playlists(..._)),textContent:v(e.$t("page.search.show.playlists",{count:s.playlists.total.toLocaleString()}))},null,8,M7)])])):J("",!0)]),_:1})):J("",!0),o.show_playlists&&!s.playlists.total?(E(),ke(d,{key:9},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-playlists"))},null,8,R7)])]),_:1})):J("",!0),o.show_podcasts&&s.podcasts.total?(E(),ke(u,{key:10},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.podcasts"))},null,8,L7)]),content:P(()=>[C(f,{albums:s.podcasts},null,8,["albums"])]),footer:P(()=>[o.show_all_podcasts_button?(E(),D("nav",N7,[c("p",V7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(..._)=>o.open_search_podcasts&&o.open_search_podcasts(..._)),textContent:v(e.$t("page.search.show.podcasts",{count:s.podcasts.total.toLocaleString()}))},null,8,j7)])])):J("",!0)]),_:1})):J("",!0),o.show_podcasts&&!s.podcasts.total?(E(),ke(d,{key:11},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-podcasts"))},null,8,B7)])]),_:1})):J("",!0),o.show_audiobooks&&s.audiobooks.total?(E(),ke(u,{key:12},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.search.audiobooks"))},null,8,H7)]),content:P(()=>[C(f,{albums:s.audiobooks},null,8,["albums"])]),footer:P(()=>[o.show_all_audiobooks_button?(E(),D("nav",U7,[c("p",q7,[c("a",{class:"button is-light is-small is-rounded",onClick:t[8]||(t[8]=(..._)=>o.open_search_audiobooks&&o.open_search_audiobooks(..._)),textContent:v(e.$t("page.search.show.audiobooks",{count:s.audiobooks.total.toLocaleString()}))},null,8,W7)])])):J("",!0)]),_:1})):J("",!0),o.show_audiobooks&&!s.audiobooks.total?(E(),ke(d,{key:13},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.search.no-audiobooks"))},null,8,G7)])]),_:1})):J("",!0)])}var Y7=ve(n7,[["render",K7]]);const Z7={name:"PageAbout",data(){return{show_update_dropdown:!1,show_update_library:!1}},computed:{config(){return this.$store.state.config},library(){return this.$store.state.library}},methods:{onClickOutside(e){this.show_update_dropdown=!1},showUpdateDialog(){this.$store.commit(Ii,!0)}}},J7={class:"section"},X7={class:"container"},Q7={class:"columns is-centered"},eR={class:"column is-four-fifths has-text-centered-mobile"},tR=["innerHTML"],nR=["textContent"],rR={class:"section"},sR={class:"container"},oR={class:"columns is-centered"},iR={class:"column is-four-fifths"},aR={class:"content"},lR={class:"level is-mobile"},uR={class:"level-left"},cR={class:"level-item"},dR=["textContent"],fR={class:"level-right"},mR={key:0},pR=["textContent"],hR={key:1},_R=["textContent"],gR={class:"table"},yR=["textContent"],vR=["textContent"],bR=["textContent"],wR=["textContent"],CR=["textContent"],xR=["textContent"],kR=["textContent"],SR=["textContent"],ER=["textContent"],$R={class:"has-text-right"},zR=["textContent"],AR=Tt(" ("),OR=["textContent"],TR=Tt(") "),PR=["textContent"],DR={class:"has-text-right"},FR=["textContent"],IR=Tt(" ("),MR=["textContent"],RR=Tt(") "),LR={class:"section"},NR={class:"container"},VR={class:"columns is-centered"},jR={class:"column is-four-fifths"},BR={class:"content has-text-centered-mobile"},HR=["textContent"],UR=["innerHTML"];function qR(e,t,n,r,s,o){return E(),D("div",null,[c("section",J7,[c("div",X7,[c("div",Q7,[c("div",eR,[c("p",{class:"heading",innerHTML:e.$t("page.about.version",{version:o.config.version})},null,8,tR),c("h1",{class:"title is-4",textContent:v(o.config.library_name)},null,8,nR)])])])]),c("section",rR,[c("div",sR,[c("div",oR,[c("div",iR,[c("div",aR,[c("nav",lR,[c("div",uR,[c("div",cR,[c("h2",{class:"title is-5",textContent:v(e.$t("page.about.library"))},null,8,dR)])]),c("div",fR,[o.library.updating?(E(),D("div",mR,[c("a",{class:"button is-small is-loading",textContent:v(e.$t("page.about.update"))},null,8,pR)])):(E(),D("div",hR,[c("a",{class:"button is-small",onClick:t[0]||(t[0]=i=>o.showUpdateDialog()),textContent:v(e.$t("page.about.update"))},null,8,_R)]))])]),c("table",gR,[c("tbody",null,[c("tr",null,[c("th",{textContent:v(e.$t("page.about.artists"))},null,8,yR),c("td",{class:"has-text-right",textContent:v(e.$filters.number(o.library.artists))},null,8,vR)]),c("tr",null,[c("th",{textContent:v(e.$t("page.about.albums"))},null,8,bR),c("td",{class:"has-text-right",textContent:v(e.$filters.number(o.library.albums))},null,8,wR)]),c("tr",null,[c("th",{textContent:v(e.$t("page.about.tracks"))},null,8,CR),c("td",{class:"has-text-right",textContent:v(e.$filters.number(o.library.songs))},null,8,xR)]),c("tr",null,[c("th",{textContent:v(e.$t("page.about.total-playtime"))},null,8,kR),c("td",{class:"has-text-right",textContent:v(e.$filters.durationInDays(o.library.db_playtime*1e3))},null,8,SR)]),c("tr",null,[c("th",{textContent:v(e.$t("page.about.updated"))},null,8,ER),c("td",$R,[c("span",{textContent:v(e.$t("page.about.updated-on",{time:e.$filters.timeFromNow(o.library.updated_at)}))},null,8,zR),AR,c("span",{class:"has-text-grey",textContent:v(e.$filters.datetime(o.library.updated_at))},null,8,OR),TR])]),c("tr",null,[c("th",{textContent:v(e.$t("page.about.uptime"))},null,8,PR),c("td",DR,[c("span",{textContent:v(e.$filters.timeFromNow(o.library.started_at,!0))},null,8,FR),IR,c("span",{class:"has-text-grey",textContent:v(e.$filters.datetime(o.library.started_at))},null,8,MR),RR])])])])])])])])]),c("section",LR,[c("div",NR,[c("div",VR,[c("div",jR,[c("div",BR,[c("p",{class:"is-size-7",textContent:v(e.$t("page.about.compiled-with",{options:o.config.buildoptions.join(", ")}))},null,8,HR),c("p",{class:"is-size-7",innerHTML:e.$t("page.about.built-with")},null,8,UR)])])])])])])}var WR=ve(Z7,[["render",qR]]);const GR={name:"SpotifyListItemAlbum",props:["album"]},KR={class:"media"},YR={key:0,class:"media-left fd-has-action"},ZR={class:"media-content fd-has-action is-clipped"},JR=["textContent"],XR={class:"subtitle is-7 has-text-grey"},QR=["textContent"],eL=["textContent"],tL={class:"media-right"};function nL(e,t,n,r,s,o){return E(),D("div",KR,[e.$slots.artwork?(E(),D("div",YR,[kt(e.$slots,"artwork")])):J("",!0),c("div",ZR,[c("h1",{class:"title is-6",textContent:v(n.album.name)},null,8,JR),c("h2",XR,[c("b",{textContent:v(n.album.artists[0].name)},null,8,QR)]),c("h2",{class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:v([n.album.album_type,e.$filters.date(n.album.release_date)].join(", "))},null,8,eL)]),c("div",tL,[kt(e.$slots,"actions")])])}var uu=ve(GR,[["render",nL]]);const rL={name:"SpotifyListItemPlaylist",props:["playlist"],methods:{open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},sL={class:"media"},oL=["textContent"],iL=["textContent"],aL={class:"media-right"};function lL(e,t,n,r,s,o){return E(),D("div",sL,[c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_playlist&&o.open_playlist(...i))},[c("h1",{class:"title is-6",textContent:v(n.playlist.name)},null,8,oL),c("h2",{class:"subtitle is-7",textContent:v(n.playlist.owner.display_name)},null,8,iL)]),c("div",aL,[kt(e.$slots,"actions")])])}var zf=ve(rL,[["render",lL]]);const uL={name:"SpotifyModalDialogAlbum",props:["show","album"],emits:["close"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{play:function(){this.$emit("close"),K.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.album.uri)},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},artwork_loaded:function(){this.artwork_visible=!0},artwork_error:function(){this.artwork_visible=!1}}},cL={key:0,class:"modal is-active"},dL={class:"modal-content fd-modal-card"},fL={class:"card"},mL={class:"card-content"},pL={class:"image is-square fd-has-margin-bottom"},hL=["src"],_L={class:"title is-4"},gL=["textContent"],yL={class:"content is-small"},vL=["textContent"],bL=["textContent"],wL=["textContent"],CL=["textContent"],xL=["textContent"],kL=["textContent"],SL={class:"card-footer"},EL=["textContent"],$L=["textContent"],zL=["textContent"];function AL(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",cL,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",dL,[c("div",fL,[c("div",mL,[Ct(c("figure",pL,[c("img",{src:o.artwork_url,class:"fd-has-shadow",onLoad:t[1]||(t[1]=(...a)=>o.artwork_loaded&&o.artwork_loaded(...a)),onError:t[2]||(t[2]=(...a)=>o.artwork_error&&o.artwork_error(...a))},null,40,hL)],512),[[po,s.artwork_visible]]),c("p",_L,[c("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...a)=>o.open_album&&o.open_album(...a)),textContent:v(n.album.name)},null,8,gL)]),c("div",yL,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.album.album-artist"))},null,8,vL),c("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:v(n.album.artists[0].name)},null,8,bL)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.album.release-date"))},null,8,wL),c("span",{class:"title is-6",textContent:v(e.$filters.date(n.album.release_date))},null,8,CL)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.album.type"))},null,8,xL),c("span",{class:"title is-6",textContent:v(n.album.album_type)},null,8,kL)])])]),c("footer",SL,[c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.album.add"))},null,8,EL)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.album.add-next"))},null,8,$L)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.album.play"))},null,8,zL)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Ni=ve(uL,[["render",AL]]);const OL={name:"SpotifyModalDialogPlaylist",props:["show","playlist"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_uri(this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.playlist.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.playlist.uri)},open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},TL={key:0,class:"modal is-active"},PL={class:"modal-content fd-modal-card"},DL={class:"card"},FL={class:"card-content"},IL={class:"title is-4"},ML=["textContent"],RL={class:"content is-small"},LL=["textContent"],NL=["textContent"],VL=["textContent"],jL=["textContent"],BL=["textContent"],HL=["textContent"],UL={class:"card-footer"},qL=["textContent"],WL=["textContent"],GL=["textContent"];function KL(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",TL,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",PL,[c("div",DL,[c("div",FL,[c("p",IL,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_playlist&&o.open_playlist(...a)),textContent:v(n.playlist.name)},null,8,ML)]),c("div",RL,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.playlist.owner"))},null,8,LL),c("span",{class:"title is-6",textContent:v(n.playlist.owner.display_name)},null,8,NL)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.playlist.tracks"))},null,8,VL),c("span",{class:"title is-6",textContent:v(n.playlist.tracks.total)},null,8,jL)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.playlist.path"))},null,8,BL),c("span",{class:"title is-6",textContent:v(n.playlist.uri)},null,8,HL)])])]),c("footer",UL,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.playlist.add"))},null,8,qL)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.playlist.add-next"))},null,8,WL)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.playlist.play"))},null,8,GL)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var cu=ve(OL,[["render",KL]]);const Ma={load:function(e){if(at.state.spotify_new_releases.length>0&&at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new ar;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getNewReleases({country:at.state.spotify.webapi_country,limit:50}),t.getFeaturedPlaylists({country:at.state.spotify.webapi_country,limit:50})])},set:function(e,t){t&&(at.commit(ef,t[0].albums.items),at.commit(tf,t[1].playlists.items))}},YL={name:"SpotifyPageBrowse",components:{ContentWithHeading:pt,TabsMusic:gr,SpotifyListItemAlbum:uu,SpotifyListItemPlaylist:zf,SpotifyModalDialogAlbum:Ni,SpotifyModalDialogPlaylist:cu,CoverArtwork:Pr},beforeRouteEnter(e,t,n){Ma.load(e).then(r=>{n(s=>Ma.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ma.load(e).then(s=>{Ma.set(r,s),n()})},data(){return{show_album_details_modal:!1,selected_album:{},show_playlist_details_modal:!1,selected_playlist:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases.slice(0,3)},featured_playlists(){return this.$store.state.spotify_featured_playlists.slice(0,3)},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},ZL={class:"fd-page-with-tabs"},JL=["textContent"],XL={class:"image is-64x64 fd-has-shadow fd-has-action"},QL=["onClick"],e9={class:"level"},t9={class:"level-item"},n9=["textContent"],r9=["onClick"],s9={class:"level"},o9={class:"level-item"};function i9(e,t,n,r,s,o){const i=T("tabs-music"),a=T("cover-artwork"),l=T("mdicon"),u=T("spotify-list-item-album"),d=T("spotify-modal-dialog-album"),m=T("router-link"),f=T("content-with-heading"),p=T("spotify-list-item-playlist"),h=T("spotify-modal-dialog-playlist");return E(),D("div",ZL,[C(i),C(f,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.spotify.browse.new-releases"))},null,8,JL)]),content:P(()=>[(E(!0),D(We,null,wt(o.new_releases,_=>(E(),ke(u,{key:_.id,album:_,onClick:g=>o.open_album(_)},Di({actions:P(()=>[c("a",{onClick:_t(g=>o.open_album_dialog(_),["prevent","stop"])},[C(l,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,QL)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:P(()=>[c("p",XL,[C(a,{artwork_url:o.artwork_url(_),artist:_.artist,album:_.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),C(d,{show:s.show_album_details_modal,album:s.selected_album,onClose:t[0]||(t[0]=_=>s.show_album_details_modal=!1)},null,8,["show","album"])]),footer:P(()=>[c("nav",e9,[c("p",t9,[C(m,{to:"/music/spotify/new-releases",class:"button is-light is-small is-rounded",textContent:v(e.$t("page.spotify.browse.show-more"))},null,8,["textContent"])])])]),_:1}),C(f,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.spotify.browse.featured-playlists"))},null,8,n9)]),content:P(()=>[(E(!0),D(We,null,wt(o.featured_playlists,_=>(E(),ke(p,{key:_.id,playlist:_},{actions:P(()=>[c("a",{onClick:_t(g=>o.open_playlist_dialog(_),["prevent","stop"])},[C(l,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,r9)]),_:2},1032,["playlist"]))),128)),C(h,{show:s.show_playlist_details_modal,playlist:s.selected_playlist,onClose:t[1]||(t[1]=_=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:P(()=>[c("nav",s9,[c("p",o9,[C(m,{to:"/music/spotify/featured-playlists",class:"button is-light is-small is-rounded",textContent:v(e.$t("page.spotify.browse.show-more"))},null,8,["textContent"])])])]),_:1})])}var a9=ve(YL,[["render",i9]]);const Ra={load:function(e){if(at.state.spotify_new_releases.length>0)return Promise.resolve();const t=new ar;return t.setAccessToken(at.state.spotify.webapi_token),t.getNewReleases({country:at.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&at.commit(ef,t.albums.items)}},l9={name:"SpotifyPageBrowseNewReleases",components:{ContentWithHeading:pt,TabsMusic:gr,SpotifyListItemAlbum:uu,SpotifyModalDialogAlbum:Ni,CoverArtwork:Pr},beforeRouteEnter(e,t,n){Ra.load(e).then(r=>{n(s=>Ra.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Ra.load(e).then(s=>{Ra.set(r,s),n()})},data(){return{show_album_details_modal:!1,selected_album:{}}},computed:{new_releases(){return this.$store.state.spotify_new_releases},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},u9={class:"fd-page-with-tabs"},c9=c("p",{class:"title is-4"},"New Releases",-1),d9={class:"image is-64x64 fd-has-shadow fd-has-action"},f9=["onClick"];function m9(e,t,n,r,s,o){const i=T("tabs-music"),a=T("cover-artwork"),l=T("mdicon"),u=T("spotify-list-item-album"),d=T("spotify-modal-dialog-album"),m=T("content-with-heading");return E(),D("div",u9,[C(i),C(m,null,{"heading-left":P(()=>[c9]),content:P(()=>[(E(!0),D(We,null,wt(o.new_releases,f=>(E(),ke(u,{key:f.id,album:f,onClick:p=>o.open_album(f)},Di({actions:P(()=>[c("a",{onClick:_t(p=>o.open_album_dialog(f),["prevent","stop"])},[C(l,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,f9)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:P(()=>[c("p",d9,[C(a,{artwork_url:o.artwork_url(f),artist:f.artist,album:f.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),C(d,{show:s.show_album_details_modal,album:s.selected_album,onClose:t[0]||(t[0]=f=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var p9=ve(l9,[["render",m9]]);const La={load:function(e){if(at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new ar;t.setAccessToken(at.state.spotify.webapi_token),t.getFeaturedPlaylists({country:at.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&at.commit(tf,t.playlists.items)}},h9={name:"SpotifyPageBrowseFeaturedPlaylists",components:{ContentWithHeading:pt,TabsMusic:gr,SpotifyListItemPlaylist:zf,SpotifyModalDialogPlaylist:cu},beforeRouteEnter(e,t,n){La.load(e).then(r=>{n(s=>La.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;La.load(e).then(s=>{La.set(r,s),n()})},data(){return{show_playlist_details_modal:!1,selected_playlist:{}}},computed:{featured_playlists(){return this.$store.state.spotify_featured_playlists}},methods:{open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0}}},_9={class:"fd-page-with-tabs"},g9=c("p",{class:"title is-4"},"Featured Playlists",-1),y9=["onClick"];function v9(e,t,n,r,s,o){const i=T("tabs-music"),a=T("mdicon"),l=T("spotify-list-item-playlist"),u=T("spotify-modal-dialog-playlist"),d=T("content-with-heading");return E(),D("div",_9,[C(i),C(d,null,{"heading-left":P(()=>[g9]),content:P(()=>[(E(!0),D(We,null,wt(o.featured_playlists,m=>(E(),ke(l,{key:m.id,playlist:m},{actions:P(()=>[c("a",{onClick:_t(f=>o.open_playlist_dialog(m),["prevent","stop"])},[C(a,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,y9)]),_:2},1032,["playlist"]))),128)),C(u,{show:s.show_playlist_details_modal,playlist:s.selected_playlist,onClose:t[0]||(t[0]=m=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var b9=ve(h9,[["render",v9]]);const w9={name:"SpotifyModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.artist.uri)},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},C9={key:0,class:"modal is-active"},x9={class:"modal-content fd-modal-card"},k9={class:"card"},S9={class:"card-content"},E9={class:"title is-4"},$9=["textContent"],z9={class:"content is-small"},A9=["textContent"],O9=["textContent"],T9=["textContent"],P9=["textContent"],D9={class:"card-footer"},F9=["textContent"],I9=["textContent"],M9=["textContent"];function R9(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",C9,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",x9,[c("div",k9,[c("div",S9,[c("p",E9,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:v(n.artist.name)},null,8,$9)]),c("div",z9,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.artist.popularity"))},null,8,A9),c("span",{class:"title is-6",textContent:v([n.artist.popularity,n.artist.followers.total].join(" / "))},null,8,O9)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.artist.genres"))},null,8,T9),c("span",{class:"title is-6",textContent:v(n.artist.genres.join(", "))},null,8,P9)])])]),c("footer",D9,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.artist.add"))},null,8,F9)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.artist.add-next"))},null,8,I9)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.artist.play"))},null,8,M9)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Pv=ve(w9,[["render",R9]]),du={exports:{}};/*!
*
* @ts-pro/vue-eternal-loading v1.1.1
* (c) 2021 Oleksandr Havrashenko
* MIT License
*
*/(function(e,t){(function(n,r){e.exports=r(pf)})(typeof self!="undefined"?self:an,function(n){return function(r){var s={};function o(i){if(s[i])return s[i].exports;var a=s[i]={i,l:!1,exports:{}};return r[i].call(a.exports,a,a.exports,o),a.l=!0,a.exports}return o.m=r,o.c=s,o.d=function(i,a,l){o.o(i,a)||Object.defineProperty(i,a,{enumerable:!0,get:l})},o.r=function(i){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(i,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(i,"__esModule",{value:!0})},o.t=function(i,a){if(1&a&&(i=o(i)),8&a||4&a&&typeof i=="object"&&i&&i.__esModule)return i;var l=Object.create(null);if(o.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:i}),2&a&&typeof i!="string")for(var u in i)o.d(l,u,function(d){return i[d]}.bind(null,u));return l},o.n=function(i){var a=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(a,"a",a),a},o.o=function(i,a){return Object.prototype.hasOwnProperty.call(i,a)},o.p="",o(o.s="fae3")}({"00ee":function(r,s,o){var i=o("b622"),a=i("toStringTag"),l={};l[a]="z",r.exports=String(l)==="[object z]"},"0366":function(r,s,o){var i=o("1c0b");r.exports=function(a,l,u){if(i(a),l===void 0)return a;switch(u){case 0:return function(){return a.call(l)};case 1:return function(d){return a.call(l,d)};case 2:return function(d,m){return a.call(l,d,m)};case 3:return function(d,m,f){return a.call(l,d,m,f)}}return function(){return a.apply(l,arguments)}}},"057f":function(r,s,o){var i=o("fc6a"),a=o("241c").f,l={}.toString,u=typeof window=="object"&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],d=function(m){try{return a(m)}catch{return u.slice()}};r.exports.f=function(m){return u&&l.call(m)=="[object Window]"?d(m):a(i(m))}},"06cf":function(r,s,o){var i=o("83ab"),a=o("d1e7"),l=o("5c6c"),u=o("fc6a"),d=o("c04e"),m=o("5135"),f=o("0cfb"),p=Object.getOwnPropertyDescriptor;s.f=i?p:function(h,_){if(h=u(h),_=d(_,!0),f)try{return p(h,_)}catch{}if(m(h,_))return l(!a.f.call(h,_),h[_])}},"0cfb":function(r,s,o){var i=o("83ab"),a=o("d039"),l=o("cc12");r.exports=!i&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(r,s,o){var i=o("d066");r.exports=i("document","documentElement")},"1c0b":function(r,s){r.exports=function(o){if(typeof o!="function")throw TypeError(String(o)+" is not a function");return o}},"1c7e":function(r,s,o){var i=o("b622"),a=i("iterator"),l=!1;try{var u=0,d={next:function(){return{done:!!u++}},return:function(){l=!0}};d[a]=function(){return this},Array.from(d,function(){throw 2})}catch{}r.exports=function(m,f){if(!f&&!l)return!1;var p=!1;try{var h={};h[a]=function(){return{next:function(){return{done:p=!0}}}},m(h)}catch{}return p}},"1d80":function(r,s){r.exports=function(o){if(o==null)throw TypeError("Can't call method on "+o);return o}},"1dde":function(r,s,o){var i=o("d039"),a=o("b622"),l=o("2d00"),u=a("species");r.exports=function(d){return l>=51||!i(function(){var m=[],f=m.constructor={};return f[u]=function(){return{foo:1}},m[d](Boolean).foo!==1})}},"23cb":function(r,s,o){var i=o("a691"),a=Math.max,l=Math.min;r.exports=function(u,d){var m=i(u);return m<0?a(m+d,0):l(m,d)}},"23e7":function(r,s,o){var i=o("da84"),a=o("06cf").f,l=o("9112"),u=o("6eeb"),d=o("ce4e"),m=o("e893"),f=o("94ca");r.exports=function(p,h){var _,g,b,w,S,x,$=p.target,A=p.global,I=p.stat;if(g=A?i:I?i[$]||d($,{}):(i[$]||{}).prototype,g)for(b in h){if(S=h[b],p.noTargetGet?(x=a(g,b),w=x&&x.value):w=g[b],_=f(A?b:$+(I?".":"#")+b,p.forced),!_&&w!==void 0){if(typeof S==typeof w)continue;m(S,w)}(p.sham||w&&w.sham)&&l(S,"sham",!0),u(g,b,S,p)}}},"241c":function(r,s,o){var i=o("ca84"),a=o("7839"),l=a.concat("length","prototype");s.f=Object.getOwnPropertyNames||function(u){return i(u,l)}},"2a62":function(r,s,o){var i=o("825a");r.exports=function(a){var l=a.return;if(l!==void 0)return i(l.call(a)).value}},"2d00":function(r,s,o){var i,a,l=o("da84"),u=o("342f"),d=l.process,m=d&&d.versions,f=m&&m.v8;f?(i=f.split("."),a=i[0]<4?1:i[0]+i[1]):u&&(i=u.match(/Edge\/(\d+)/),(!i||i[1]>=74)&&(i=u.match(/Chrome\/(\d+)/),i&&(a=i[1]))),r.exports=a&&+a},"342f":function(r,s,o){var i=o("d066");r.exports=i("navigator","userAgent")||""},"35a1":function(r,s,o){var i=o("f5df"),a=o("3f8c"),l=o("b622"),u=l("iterator");r.exports=function(d){if(d!=null)return d[u]||d["@@iterator"]||a[i(d)]}},"37e8":function(r,s,o){var i=o("83ab"),a=o("9bf2"),l=o("825a"),u=o("df75");r.exports=i?Object.defineProperties:function(d,m){l(d);for(var f,p=u(m),h=p.length,_=0;h>_;)a.f(d,f=p[_++],m[f]);return d}},"3bbe":function(r,s,o){var i=o("861d");r.exports=function(a){if(!i(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(r,s,o){var i=o("6547").charAt,a=o("69f3"),l=o("7dd0"),u="String Iterator",d=a.set,m=a.getterFor(u);l(String,"String",function(f){d(this,{type:u,string:String(f),index:0})},function(){var f,p=m(this),h=p.string,_=p.index;return _>=h.length?{value:void 0,done:!0}:(f=i(h,_),p.index+=f.length,{value:f,done:!1})})},"3f8c":function(r,s){r.exports={}},"428f":function(r,s,o){var i=o("da84");r.exports=i},"44ad":function(r,s,o){var i=o("d039"),a=o("c6b6"),l="".split;r.exports=i(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return a(u)=="String"?l.call(u,""):Object(u)}:Object},"44d2":function(r,s,o){var i=o("b622"),a=o("7c73"),l=o("9bf2"),u=i("unscopables"),d=Array.prototype;d[u]==null&&l.f(d,u,{configurable:!0,value:a(null)}),r.exports=function(m){d[u][m]=!0}},4930:function(r,s,o){var i=o("2d00"),a=o("d039");r.exports=!!Object.getOwnPropertySymbols&&!a(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&i&&i<41})},"4d64":function(r,s,o){var i=o("fc6a"),a=o("50c4"),l=o("23cb"),u=function(d){return function(m,f,p){var h,_=i(m),g=a(_.length),b=l(p,g);if(d&&f!=f){for(;g>b;)if(h=_[b++],h!=h)return!0}else for(;g>b;b++)if((d||b in _)&&_[b]===f)return d||b||0;return!d&&-1}};r.exports={includes:u(!0),indexOf:u(!1)}},"4df4":function(r,s,o){var i=o("0366"),a=o("7b0b"),l=o("9bdd"),u=o("e95a"),d=o("50c4"),m=o("8418"),f=o("35a1");r.exports=function(p){var h,_,g,b,w,S,x=a(p),$=typeof this=="function"?this:Array,A=arguments.length,I=A>1?arguments[1]:void 0,V=I!==void 0,O=f(x),N=0;if(V&&(I=i(I,A>2?arguments[2]:void 0,2)),O==null||$==Array&&u(O))for(h=d(x.length),_=new $(h);h>N;N++)S=V?I(x[N],N):x[N],m(_,N,S);else for(b=O.call(x),w=b.next,_=new $;!(g=w.call(b)).done;N++)S=V?l(b,I,[g.value,N],!0):g.value,m(_,N,S);return _.length=N,_}},"50c4":function(r,s,o){var i=o("a691"),a=Math.min;r.exports=function(l){return l>0?a(i(l),9007199254740991):0}},5135:function(r,s,o){var i=o("7b0b"),a={}.hasOwnProperty;r.exports=Object.hasOwn||function(l,u){return a.call(i(l),u)}},5692:function(r,s,o){var i=o("c430"),a=o("c6cd");(r.exports=function(l,u){return a[l]||(a[l]=u!==void 0?u:{})})("versions",[]).push({version:"3.15.2",mode:i?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(r,s,o){var i=o("d066"),a=o("241c"),l=o("7418"),u=o("825a");r.exports=i("Reflect","ownKeys")||function(d){var m=a.f(u(d)),f=l.f;return f?m.concat(f(d)):m}},"5c6c":function(r,s){r.exports=function(o,i){return{enumerable:!(1&o),configurable:!(2&o),writable:!(4&o),value:i}}},6547:function(r,s,o){var i=o("a691"),a=o("1d80"),l=function(u){return function(d,m){var f,p,h=String(a(d)),_=i(m),g=h.length;return _<0||_>=g?u?"":void 0:(f=h.charCodeAt(_),f<55296||f>56319||_+1===g||(p=h.charCodeAt(_+1))<56320||p>57343?u?h.charAt(_):f:u?h.slice(_,_+2):p-56320+(f-55296<<10)+65536)}};r.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(r,s,o){var i=o("861d"),a=o("e8b5"),l=o("b622"),u=l("species");r.exports=function(d,m){var f;return a(d)&&(f=d.constructor,typeof f!="function"||f!==Array&&!a(f.prototype)?i(f)&&(f=f[u],f===null&&(f=void 0)):f=void 0),new(f===void 0?Array:f)(m===0?0:m)}},"69f3":function(r,s,o){var i,a,l,u=o("7f9a"),d=o("da84"),m=o("861d"),f=o("9112"),p=o("5135"),h=o("c6cd"),_=o("f772"),g=o("d012"),b="Object already initialized",w=d.WeakMap,S=function(N){return l(N)?a(N):i(N,{})},x=function(N){return function(G){var F;if(!m(G)||(F=a(G)).type!==N)throw TypeError("Incompatible receiver, "+N+" required");return F}};if(u||h.state){var $=h.state||(h.state=new w),A=$.get,I=$.has,V=$.set;i=function(N,G){if(I.call($,N))throw new TypeError(b);return G.facade=N,V.call($,N,G),G},a=function(N){return A.call($,N)||{}},l=function(N){return I.call($,N)}}else{var O=_("state");g[O]=!0,i=function(N,G){if(p(N,O))throw new TypeError(b);return G.facade=N,f(N,O,G),G},a=function(N){return p(N,O)?N[O]:{}},l=function(N){return p(N,O)}}r.exports={set:i,get:a,has:l,enforce:S,getterFor:x}},"6eeb":function(r,s,o){var i=o("da84"),a=o("9112"),l=o("5135"),u=o("ce4e"),d=o("8925"),m=o("69f3"),f=m.get,p=m.enforce,h=String(String).split("String");(r.exports=function(_,g,b,w){var S,x=!!w&&!!w.unsafe,$=!!w&&!!w.enumerable,A=!!w&&!!w.noTargetGet;typeof b=="function"&&(typeof g!="string"||l(b,"name")||a(b,"name",g),S=p(b),S.source||(S.source=h.join(typeof g=="string"?g:""))),_!==i?(x?!A&&_[g]&&($=!0):delete _[g],$?_[g]=b:a(_,g,b)):$?_[g]=b:u(g,b)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d(this)})},7418:function(r,s){s.f=Object.getOwnPropertySymbols},"746f":function(r,s,o){var i=o("428f"),a=o("5135"),l=o("e538"),u=o("9bf2").f;r.exports=function(d){var m=i.Symbol||(i.Symbol={});a(m,d)||u(m,d,{value:l.f(d)})}},7839:function(r,s){r.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(r,s,o){var i=o("1d80");r.exports=function(a){return Object(i(a))}},"7c73":function(r,s,o){var i,a=o("825a"),l=o("37e8"),u=o("7839"),d=o("d012"),m=o("1be4"),f=o("cc12"),p=o("f772"),h=">",_="<",g="prototype",b="script",w=p("IE_PROTO"),S=function(){},x=function(V){return _+b+h+V+_+"/"+b+h},$=function(V){V.write(x("")),V.close();var O=V.parentWindow.Object;return V=null,O},A=function(){var V,O=f("iframe"),N="java"+b+":";return O.style.display="none",m.appendChild(O),O.src=String(N),V=O.contentWindow.document,V.open(),V.write(x("document.F=Object")),V.close(),V.F},I=function(){try{i=document.domain&&new ActiveXObject("htmlfile")}catch{}I=i?$(i):A();for(var V=u.length;V--;)delete I[g][u[V]];return I()};d[w]=!0,r.exports=Object.create||function(V,O){var N;return V!==null?(S[g]=a(V),N=new S,S[g]=null,N[w]=V):N=I(),O===void 0?N:l(N,O)}},"7dd0":function(r,s,o){var i=o("23e7"),a=o("9ed3"),l=o("e163"),u=o("d2bb"),d=o("d44e"),m=o("9112"),f=o("6eeb"),p=o("b622"),h=o("c430"),_=o("3f8c"),g=o("ae93"),b=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,S=p("iterator"),x="keys",$="values",A="entries",I=function(){return this};r.exports=function(V,O,N,G,F,B,Y){a(N,O,G);var de,te,le,ge=function(H){if(H===F&&fe)return fe;if(!w&&H in he)return he[H];switch(H){case x:return function(){return new N(this,H)};case $:return function(){return new N(this,H)};case A:return function(){return new N(this,H)}}return function(){return new N(this)}},Re=O+" Iterator",Be=!1,he=V.prototype,X=he[S]||he["@@iterator"]||F&&he[F],fe=!w&&X||ge(F),we=O=="Array"&&he.entries||X;if(we&&(de=l(we.call(new V)),b!==Object.prototype&&de.next&&(h||l(de)===b||(u?u(de,b):typeof de[S]!="function"&&m(de,S,I)),d(de,Re,!0,!0),h&&(_[Re]=I))),F==$&&X&&X.name!==$&&(Be=!0,fe=function(){return X.call(this)}),h&&!Y||he[S]===fe||m(he,S,fe),_[O]=fe,F)if(te={values:ge($),keys:B?fe:ge(x),entries:ge(A)},Y)for(le in te)(w||Be||!(le in he))&&f(he,le,te[le]);else i({target:O,proto:!0,forced:w||Be},te);return te}},"7f9a":function(r,s,o){var i=o("da84"),a=o("8925"),l=i.WeakMap;r.exports=typeof l=="function"&&/native code/.test(a(l))},"825a":function(r,s,o){var i=o("861d");r.exports=function(a){if(!i(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(r,s,o){var i=o("d039");r.exports=!i(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(r,s,o){var i=o("c04e"),a=o("9bf2"),l=o("5c6c");r.exports=function(u,d,m){var f=i(d);f in u?a.f(u,f,l(0,m)):u[f]=m}},"861d":function(r,s){r.exports=function(o){return typeof o=="object"?o!==null:typeof o=="function"}},8875:function(r,s,o){var i,a,l;(function(u,d){a=[],i=d,l=typeof i=="function"?i.apply(s,a):i,l===void 0||(r.exports=l)})(typeof self!="undefined"&&self,function(){function u(){var d=Object.getOwnPropertyDescriptor(document,"currentScript");if(!d&&"currentScript"in document&&document.currentScript||d&&d.get!==u&&document.currentScript)return document.currentScript;try{throw new Error}catch(A){var m,f,p,h=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,_=/@([^@]*):(\d+):(\d+)\s*$/gi,g=h.exec(A.stack)||_.exec(A.stack),b=g&&g[1]||!1,w=g&&g[2]||!1,S=document.location.href.replace(document.location.hash,""),x=document.getElementsByTagName("script");b===S&&(m=document.documentElement.outerHTML,f=new RegExp("(?:[^\\n]+?\\n){0,"+(w-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),p=m.replace(f,"$1").trim());for(var $=0;$<x.length;$++)if(x[$].readyState==="interactive"||x[$].src===b||b===S&&x[$].innerHTML&&x[$].innerHTML.trim()===p)return x[$];return null}}return u})},8925:function(r,s,o){var i=o("c6cd"),a=Function.toString;typeof i.inspectSource!="function"&&(i.inspectSource=function(l){return a.call(l)}),r.exports=i.inspectSource},"8bbf":function(r,s){r.exports=n},"90e3":function(r,s){var o=0,i=Math.random();r.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++o+i).toString(36)}},9112:function(r,s,o){var i=o("83ab"),a=o("9bf2"),l=o("5c6c");r.exports=i?function(u,d,m){return a.f(u,d,l(1,m))}:function(u,d,m){return u[d]=m,u}},"94ca":function(r,s,o){var i=o("d039"),a=/#|\.prototype\./,l=function(p,h){var _=d[u(p)];return _==f||_!=m&&(typeof h=="function"?i(h):!!h)},u=l.normalize=function(p){return String(p).replace(a,".").toLowerCase()},d=l.data={},m=l.NATIVE="N",f=l.POLYFILL="P";r.exports=l},"9bdd":function(r,s,o){var i=o("825a"),a=o("2a62");r.exports=function(l,u,d,m){try{return m?u(i(d)[0],d[1]):u(d)}catch(f){throw a(l),f}}},"9bf2":function(r,s,o){var i=o("83ab"),a=o("0cfb"),l=o("825a"),u=o("c04e"),d=Object.defineProperty;s.f=i?d:function(m,f,p){if(l(m),f=u(f,!0),l(p),a)try{return d(m,f,p)}catch{}if("get"in p||"set"in p)throw TypeError("Accessors not supported");return"value"in p&&(m[f]=p.value),m}},"9ed3":function(r,s,o){var i=o("ae93").IteratorPrototype,a=o("7c73"),l=o("5c6c"),u=o("d44e"),d=o("3f8c"),m=function(){return this};r.exports=function(f,p,h){var _=p+" Iterator";return f.prototype=a(i,{next:l(1,h)}),u(f,_,!1,!0),d[_]=m,f}},a4d3:function(r,s,o){var i=o("23e7"),a=o("da84"),l=o("d066"),u=o("c430"),d=o("83ab"),m=o("4930"),f=o("fdbf"),p=o("d039"),h=o("5135"),_=o("e8b5"),g=o("861d"),b=o("825a"),w=o("7b0b"),S=o("fc6a"),x=o("c04e"),$=o("5c6c"),A=o("7c73"),I=o("df75"),V=o("241c"),O=o("057f"),N=o("7418"),G=o("06cf"),F=o("9bf2"),B=o("d1e7"),Y=o("9112"),de=o("6eeb"),te=o("5692"),le=o("f772"),ge=o("d012"),Re=o("90e3"),Be=o("b622"),he=o("e538"),X=o("746f"),fe=o("d44e"),we=o("69f3"),H=o("b727").forEach,oe=le("hidden"),se="Symbol",be="prototype",Ve=Be("toPrimitive"),Ie=we.set,$e=we.getterFor(se),Ae=Object[be],z=a.Symbol,R=l("JSON","stringify"),Z=G.f,ae=F.f,ue=O.f,ye=B.f,Ce=te("symbols"),pe=te("op-symbols"),j=te("string-to-symbol-registry"),U=te("symbol-to-string-registry"),ze=te("wks"),xe=a.QObject,De=!xe||!xe[be]||!xe[be].findChild,Le=d&&p(function(){return A(ae({},"a",{get:function(){return ae(this,"a",{value:7}).a}})).a!=7})?function(re,ce,ee){var ie=Z(Ae,ce);ie&&delete Ae[ce],ae(re,ce,ee),ie&&re!==Ae&&ae(Ae,ce,ie)}:ae,qe=function(re,ce){var ee=Ce[re]=A(z[be]);return Ie(ee,{type:se,tag:re,description:ce}),d||(ee.description=ce),ee},nt=f?function(re){return typeof re=="symbol"}:function(re){return Object(re)instanceof z},k=function(re,ce,ee){re===Ae&&k(pe,ce,ee),b(re);var ie=x(ce,!0);return b(ee),h(Ce,ie)?(ee.enumerable?(h(re,oe)&&re[oe][ie]&&(re[oe][ie]=!1),ee=A(ee,{enumerable:$(0,!1)})):(h(re,oe)||ae(re,oe,$(1,{})),re[oe][ie]=!0),Le(re,ie,ee)):ae(re,ie,ee)},y=function(re,ce){b(re);var ee=S(ce),ie=I(ee).concat(Ee(ee));return H(ie,function(Ne){d&&!W.call(ee,Ne)||k(re,Ne,ee[Ne])}),re},M=function(re,ce){return ce===void 0?A(re):y(A(re),ce)},W=function(re){var ce=x(re,!0),ee=ye.call(this,ce);return!(this===Ae&&h(Ce,ce)&&!h(pe,ce))&&(!(ee||!h(this,ce)||!h(Ce,ce)||h(this,oe)&&this[oe][ce])||ee)},Q=function(re,ce){var ee=S(re),ie=x(ce,!0);if(ee!==Ae||!h(Ce,ie)||h(pe,ie)){var Ne=Z(ee,ie);return!Ne||!h(Ce,ie)||h(ee,oe)&&ee[oe][ie]||(Ne.enumerable=!0),Ne}},me=function(re){var ce=ue(S(re)),ee=[];return H(ce,function(ie){h(Ce,ie)||h(ge,ie)||ee.push(ie)}),ee},Ee=function(re){var ce=re===Ae,ee=ue(ce?pe:S(re)),ie=[];return H(ee,function(Ne){!h(Ce,Ne)||ce&&!h(Ae,Ne)||ie.push(Ce[Ne])}),ie};if(m||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var re=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,ce=Re(re),ee=function(ie){this===Ae&&ee.call(pe,ie),h(this,oe)&&h(this[oe],ce)&&(this[oe][ce]=!1),Le(this,ce,$(1,ie))};return d&&De&&Le(Ae,ce,{configurable:!0,set:ee}),qe(ce,re)},de(z[be],"toString",function(){return $e(this).tag}),de(z,"withoutSetter",function(re){return qe(Re(re),re)}),B.f=W,F.f=k,G.f=Q,V.f=O.f=me,N.f=Ee,he.f=function(re){return qe(Be(re),re)},d&&(ae(z[be],"description",{configurable:!0,get:function(){return $e(this).description}}),u||de(Ae,"propertyIsEnumerable",W,{unsafe:!0}))),i({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:z}),H(I(ze),function(re){X(re)}),i({target:se,stat:!0,forced:!m},{for:function(re){var ce=String(re);if(h(j,ce))return j[ce];var ee=z(ce);return j[ce]=ee,U[ee]=ce,ee},keyFor:function(re){if(!nt(re))throw TypeError(re+" is not a symbol");if(h(U,re))return U[re]},useSetter:function(){De=!0},useSimple:function(){De=!1}}),i({target:"Object",stat:!0,forced:!m,sham:!d},{create:M,defineProperty:k,defineProperties:y,getOwnPropertyDescriptor:Q}),i({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:me,getOwnPropertySymbols:Ee}),i({target:"Object",stat:!0,forced:p(function(){N.f(1)})},{getOwnPropertySymbols:function(re){return N.f(w(re))}}),R){var Me=!m||p(function(){var re=z();return R([re])!="[null]"||R({a:re})!="{}"||R(Object(re))!="{}"});i({target:"JSON",stat:!0,forced:Me},{stringify:function(re,ce,ee){for(var ie,Ne=[re],He=1;arguments.length>He;)Ne.push(arguments[He++]);if(ie=ce,(g(ce)||re!==void 0)&&!nt(re))return _(ce)||(ce=function(ct,_n){if(typeof ie=="function"&&(_n=ie.call(this,ct,_n)),!nt(_n))return _n}),Ne[1]=ce,R.apply(null,Ne)}})}z[be][Ve]||Y(z[be],Ve,z[be].valueOf),fe(z,se),ge[oe]=!0},a630:function(r,s,o){var i=o("23e7"),a=o("4df4"),l=o("1c7e"),u=!l(function(d){Array.from(d)});i({target:"Array",stat:!0,forced:u},{from:a})},a691:function(r,s){var o=Math.ceil,i=Math.floor;r.exports=function(a){return isNaN(a=+a)?0:(a>0?i:o)(a)}},ae93:function(r,s,o){var i,a,l,u=o("d039"),d=o("e163"),m=o("9112"),f=o("5135"),p=o("b622"),h=o("c430"),_=p("iterator"),g=!1,b=function(){return this};[].keys&&(l=[].keys(),"next"in l?(a=d(d(l)),a!==Object.prototype&&(i=a)):g=!0);var w=i==null||u(function(){var S={};return i[_].call(S)!==S});w&&(i={}),h&&!w||f(i,_)||m(i,_,b),r.exports={IteratorPrototype:i,BUGGY_SAFARI_ITERATORS:g}},b041:function(r,s,o){var i=o("00ee"),a=o("f5df");r.exports=i?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(r,s,o){var i=o("83ab"),a=o("9bf2").f,l=Function.prototype,u=l.toString,d=/^\s*function ([^ (]*)/,m="name";i&&!(m in l)&&a(l,m,{configurable:!0,get:function(){try{return u.call(this).match(d)[1]}catch{return""}}})},b622:function(r,s,o){var i=o("da84"),a=o("5692"),l=o("5135"),u=o("90e3"),d=o("4930"),m=o("fdbf"),f=a("wks"),p=i.Symbol,h=m?p:p&&p.withoutSetter||u;r.exports=function(_){return l(f,_)&&(d||typeof f[_]=="string")||(d&&l(p,_)?f[_]=p[_]:f[_]=h("Symbol."+_)),f[_]}},b727:function(r,s,o){var i=o("0366"),a=o("44ad"),l=o("7b0b"),u=o("50c4"),d=o("65f0"),m=[].push,f=function(p){var h=p==1,_=p==2,g=p==3,b=p==4,w=p==6,S=p==7,x=p==5||w;return function($,A,I,V){for(var O,N,G=l($),F=a(G),B=i(A,I,3),Y=u(F.length),de=0,te=V||d,le=h?te($,Y):_||S?te($,0):void 0;Y>de;de++)if((x||de in F)&&(O=F[de],N=B(O,de,G),p))if(h)le[de]=N;else if(N)switch(p){case 3:return!0;case 5:return O;case 6:return de;case 2:m.call(le,O)}else switch(p){case 4:return!1;case 7:m.call(le,O)}return w?-1:g||b?b:le}};r.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},c04e:function(r,s,o){var i=o("861d");r.exports=function(a,l){if(!i(a))return a;var u,d;if(l&&typeof(u=a.toString)=="function"&&!i(d=u.call(a))||typeof(u=a.valueOf)=="function"&&!i(d=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!i(d=u.call(a)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(r,s){r.exports=!1},c6b6:function(r,s){var o={}.toString;r.exports=function(i){return o.call(i).slice(8,-1)}},c6cd:function(r,s,o){var i=o("da84"),a=o("ce4e"),l="__core-js_shared__",u=i[l]||a(l,{});r.exports=u},c8ba:function(r,s){var o;o=function(){return this}();try{o=o||new Function("return this")()}catch{typeof window=="object"&&(o=window)}r.exports=o},ca84:function(r,s,o){var i=o("5135"),a=o("fc6a"),l=o("4d64").indexOf,u=o("d012");r.exports=function(d,m){var f,p=a(d),h=0,_=[];for(f in p)!i(u,f)&&i(p,f)&&_.push(f);for(;m.length>h;)i(p,f=m[h++])&&(~l(_,f)||_.push(f));return _}},cc12:function(r,s,o){var i=o("da84"),a=o("861d"),l=i.document,u=a(l)&&a(l.createElement);r.exports=function(d){return u?l.createElement(d):{}}},ce4e:function(r,s,o){var i=o("da84"),a=o("9112");r.exports=function(l,u){try{a(i,l,u)}catch{i[l]=u}return u}},d012:function(r,s){r.exports={}},d039:function(r,s){r.exports=function(o){try{return!!o()}catch{return!0}}},d066:function(r,s,o){var i=o("428f"),a=o("da84"),l=function(u){return typeof u=="function"?u:void 0};r.exports=function(u,d){return arguments.length<2?l(i[u])||l(a[u]):i[u]&&i[u][d]||a[u]&&a[u][d]}},d1e7:function(r,s,o){var i={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!i.call({1:2},1);s.f=l?function(u){var d=a(this,u);return!!d&&d.enumerable}:i},d28b:function(r,s,o){var i=o("746f");i("iterator")},d2bb:function(r,s,o){var i=o("825a"),a=o("3bbe");r.exports=Object.setPrototypeOf||("__proto__"in{}?function(){var l,u=!1,d={};try{l=Object.getOwnPropertyDescriptor(Object.prototype,"__proto__").set,l.call(d,[]),u=d instanceof Array}catch{}return function(m,f){return i(m),a(f),u?l.call(m,f):m.__proto__=f,m}}():void 0)},d3b7:function(r,s,o){var i=o("00ee"),a=o("6eeb"),l=o("b041");i||a(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(r,s,o){var i=o("9bf2").f,a=o("5135"),l=o("b622"),u=l("toStringTag");r.exports=function(d,m,f){d&&!a(d=f?d:d.prototype,u)&&i(d,u,{configurable:!0,value:m})}},da84:function(r,s,o){(function(i){var a=function(l){return l&&l.Math==Math&&l};r.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof i=="object"&&i)||function(){return this}()||Function("return this")()}).call(this,o("c8ba"))},ddb0:function(r,s,o){var i=o("da84"),a=o("fdbc"),l=o("e260"),u=o("9112"),d=o("b622"),m=d("iterator"),f=d("toStringTag"),p=l.values;for(var h in a){var _=i[h],g=_&&_.prototype;if(g){if(g[m]!==p)try{u(g,m,p)}catch{g[m]=p}if(g[f]||u(g,f,h),a[h]){for(var b in l)if(g[b]!==l[b])try{u(g,b,l[b])}catch{g[b]=l[b]}}}}},df75:function(r,s,o){var i=o("ca84"),a=o("7839");r.exports=Object.keys||function(l){return i(l,a)}},e01a:function(r,s,o){var i=o("23e7"),a=o("83ab"),l=o("da84"),u=o("5135"),d=o("861d"),m=o("9bf2").f,f=o("e893"),p=l.Symbol;if(a&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var h={},_=function(){var x=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),$=this instanceof _?new p(x):x===void 0?p():p(x);return x===""&&(h[$]=!0),$};f(_,p);var g=_.prototype=p.prototype;g.constructor=_;var b=g.toString,w=String(p("test"))=="Symbol(test)",S=/^Symbol\((.*)\)[^)]+$/;m(g,"description",{configurable:!0,get:function(){var x=d(this)?this.valueOf():this,$=b.call(x);if(u(h,x))return"";var A=w?$.slice(7,-1):$.replace(S,"$1");return A===""?void 0:A}}),i({global:!0,forced:!0},{Symbol:_})}},e163:function(r,s,o){var i=o("5135"),a=o("7b0b"),l=o("f772"),u=o("e177"),d=l("IE_PROTO"),m=Object.prototype;r.exports=u?Object.getPrototypeOf:function(f){return f=a(f),i(f,d)?f[d]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?m:null}},e177:function(r,s,o){var i=o("d039");r.exports=!i(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},e260:function(r,s,o){var i=o("fc6a"),a=o("44d2"),l=o("3f8c"),u=o("69f3"),d=o("7dd0"),m="Array Iterator",f=u.set,p=u.getterFor(m);r.exports=d(Array,"Array",function(h,_){f(this,{type:m,target:i(h),index:0,kind:_})},function(){var h=p(this),_=h.target,g=h.kind,b=h.index++;return!_||b>=_.length?(h.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:b,done:!1}:g=="values"?{value:_[b],done:!1}:{value:[b,_[b]],done:!1}},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},e538:function(r,s,o){var i=o("b622");s.f=i},e893:function(r,s,o){var i=o("5135"),a=o("56ef"),l=o("06cf"),u=o("9bf2");r.exports=function(d,m){for(var f=a(m),p=u.f,h=l.f,_=0;_<f.length;_++){var g=f[_];i(d,g)||p(d,g,h(m,g))}}},e8b5:function(r,s,o){var i=o("c6b6");r.exports=Array.isArray||function(a){return i(a)=="Array"}},e95a:function(r,s,o){var i=o("b622"),a=o("3f8c"),l=i("iterator"),u=Array.prototype;r.exports=function(d){return d!==void 0&&(a.Array===d||u[l]===d)}},f5df:function(r,s,o){var i=o("00ee"),a=o("c6b6"),l=o("b622"),u=l("toStringTag"),d=a(function(){return arguments}())=="Arguments",m=function(f,p){try{return f[p]}catch{}};r.exports=i?a:function(f){var p,h,_;return f===void 0?"Undefined":f===null?"Null":typeof(h=m(p=Object(f),u))=="string"?h:d?a(p):(_=a(p))=="Object"&&typeof p.callee=="function"?"Arguments":_}},f772:function(r,s,o){var i=o("5692"),a=o("90e3"),l=i("keys");r.exports=function(u){return l[u]||(l[u]=a(u))}},fae3:function(r,s,o){if(o.r(s),o.d(s,"VueEternalLoading",function(){return G}),typeof window!="undefined"){var i=window.document.currentScript,a=o("8875");i=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var l=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(o.p=l[1])}var u=o("8bbf"),d={class:"vue-eternal-loading",ref:"rootRef"},m=Object(u.createVNode)("div",{class:"loading"},"Loading...",-1),f=Object(u.createVNode)("div",{class:"no-more"},"No more.",-1),p=Object(u.createVNode)("div",{class:"no-results"},"No results.",-1),h=Object(u.createVNode)("div",{class:"error"},"Error.",-1);function _(F,B,Y,de,te,le){return Object(u.openBlock)(),Object(u.createBlock)("div",d,[F.state==="loading"?Object(u.renderSlot)(F.$slots,"loading",Object(u.mergeProps)({key:0},{isFirstLoad:F.isFirstLoad}),function(){return[m]}):F.state==="no-more"?Object(u.renderSlot)(F.$slots,"no-more",Object(u.mergeProps)({key:1},{retry:F.retry}),function(){return[f]}):F.state==="no-results"?Object(u.renderSlot)(F.$slots,"no-results",Object(u.mergeProps)({key:2},{retry:F.retry}),function(){return[p]}):F.state==="error"?Object(u.renderSlot)(F.$slots,"error",Object(u.mergeProps)({key:3},{retry:F.retry}),function(){return[h]}):Object(u.createCommentVNode)("",!0)],512)}function g(F){if(Array.isArray(F))return F}o("a4d3"),o("e01a"),o("d3b7"),o("d28b"),o("e260"),o("3ca3"),o("ddb0");function b(F,B){var Y=F==null?null:typeof Symbol!="undefined"&&F[Symbol.iterator]||F["@@iterator"];if(Y!=null){var de,te,le=[],ge=!0,Re=!1;try{for(Y=Y.call(F);!(ge=(de=Y.next()).done)&&(le.push(de.value),!(B&&le.length===B));ge=!0);}catch(Be){Re=!0,te=Be}finally{try{ge||Y.return==null||Y.return()}finally{if(Re)throw te}}return le}}o("fb6a"),o("b0c0"),o("a630");function w(F,B){(B==null||B>F.length)&&(B=F.length);for(var Y=0,de=new Array(B);Y<B;Y++)de[Y]=F[Y];return de}function S(F,B){if(F){if(typeof F=="string")return w(F,B);var Y=Object.prototype.toString.call(F).slice(8,-1);return Y==="Object"&&F.constructor&&(Y=F.constructor.name),Y==="Map"||Y==="Set"?Array.from(F):Y==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(Y)?w(F,B):void 0}}function x(){throw new TypeError(`Invalid attempt to destructure non-iterable instance.
In order to be iterable, non-array objects must have a [Symbol.iterator]() method.`)}function $(F,B){return g(F)||b(F,B)||S(F,B)||x()}function A(F){return F.scrollHeight}function I(F){return F.scrollWidth}function V(F,B){F.scrollTop=F.scrollHeight-B+F.scrollTop}function O(F,B){F.scrollLeft=F.scrollWidth-B+F.scrollLeft}var N=Object(u.defineComponent)({name:"VueEternalLoading",props:{load:{required:!0,type:Function},isInitial:{required:!1,type:Boolean,default:!0},position:{required:!1,type:String,default:"default"},container:{required:!1,type:Object,default:null},margin:{required:!1,type:String,default:void 0}},setup:function(F,B){var Y,de=Object(u.ref)(),te=Object(u.ref)("loading"),le=Object(u.ref)(F.isInitial),ge=0;function Re(){Object(u.nextTick)(function(){var Ie;if(F.position==="top")V((Ie=F.container)!==null&&Ie!==void 0?Ie:document.documentElement,ge);else if(F.position==="left"){var $e;O(($e=F.container)!==null&&$e!==void 0?$e:document.documentElement,ge)}})}function Be(Ie,$e){return Ie===0?le.value?(X(),"no-results"):(he(),"no-more"):Ie!==void 0&&$e!==void 0&&Ie<$e?(he(),"no-more"):(le.value=!1,Re(),be(),"loading")}function he(){le.value=!1,oe("no-more"),Re()}function X(){le.value=!1,oe("no-results"),Re()}function fe(){le.value=!1,oe("error"),Re()}function we(){le.value=!0,oe("loading"),be()}function H(){oe("loading"),be()}function oe(Ie){te.value=Ie}function se(){de.value&&Y.unobserve(de.value)}function be(){de.value&&Y.observe(de.value)}function Ve(){return new IntersectionObserver(function(Ie){var $e=$(Ie,1),Ae=$e[0];if(Ae.isIntersecting){var z;if(F.position==="top")ge=A((z=F.container)!==null&&z!==void 0?z:document.documentElement);else if(F.position==="left"){var R;ge=I((R=F.container)!==null&&R!==void 0?R:document.documentElement)}se(),F.load({loaded:Be,noMore:he,noResults:X,error:fe},{isFirstLoad:le.value})}},{root:F.container,threshold:0,rootMargin:F.margin})}return Object(u.watchEffect)(function(){Y&&se(),Y=Ve(),be()},{flush:"post"}),Object(u.watch)(function(){return F.isInitial},function(Ie){Ie&&we()}),Object(u.watch)(le,function(Ie){Ie||B.emit("update:isInitial",!1)}),{rootRef:de,state:te,isFirstLoad:le,retry:H}}});N.render=_;var G=N},fb6a:function(r,s,o){var i=o("23e7"),a=o("861d"),l=o("e8b5"),u=o("23cb"),d=o("50c4"),m=o("fc6a"),f=o("8418"),p=o("b622"),h=o("1dde"),_=h("slice"),g=p("species"),b=[].slice,w=Math.max;i({target:"Array",proto:!0,forced:!_},{slice:function(S,x){var $,A,I,V=m(this),O=d(V.length),N=u(S,O),G=u(x===void 0?O:x,O);if(l(V)&&($=V.constructor,typeof $!="function"||$!==Array&&!l($.prototype)?a($)&&($=$[g],$===null&&($=void 0)):$=void 0,$===Array||$===void 0))return b.call(V,N,G);for(A=new($===void 0?Array:$)(w(G-N,0)),I=0;N<G;N++,I++)N in V&&f(A,I,V[N]);return A.length=I,A}})},fc6a:function(r,s,o){var i=o("44ad"),a=o("1d80");r.exports=function(l){return i(a(l))}},fdbc:function(r,s){r.exports={CSSRuleList:0,CSSStyleDeclaration:0,CSSValueList:0,ClientRectList:0,DOMRectList:0,DOMStringList:0,DOMTokenList:1,DataTransferItemList:0,FileList:0,HTMLAllCollection:0,HTMLCollection:0,HTMLFormElement:0,HTMLSelectElement:0,MediaList:0,MimeTypeArray:0,NamedNodeMap:0,NodeList:1,PaintRequestList:0,Plugin:0,PluginArray:0,SVGLengthList:0,SVGNumberList:0,SVGPathSegList:0,SVGPointList:0,SVGStringList:0,SVGTransformList:0,SourceBufferList:0,StyleSheetList:0,TextTrackCueList:0,TextTrackList:0,TouchList:0}},fdbf:function(r,s,o){var i=o("4930");r.exports=i&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(du);const od=50,Na={load:function(e){const t=new ar;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getArtist(e.params.artist_id),t.getArtistAlbums(e.params.artist_id,{limit:od,offset:0,include_groups:"album,single",market:at.state.spotify.webapi_country})])},set:function(e,t){e.artist=t[0],e.albums=[],e.total=0,e.offset=0,e.append_albums(t[1])}},L9={name:"SpotifyPageArtist",components:{ContentWithHeading:pt,SpotifyListItemAlbum:uu,SpotifyModalDialogAlbum:Ni,SpotifyModalDialogArtist:Pv,VueEternalLoading:du.exports.VueEternalLoading,CoverArtwork:Pr},beforeRouteEnter(e,t,n){Na.load(e).then(r=>{n(s=>Na.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Na.load(e).then(s=>{Na.set(r,s),n()})},data(){return{artist:{},albums:[],total:0,offset:0,show_details_modal:!1,selected_album:{},show_artist_details_modal:!1}},computed:{is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},methods:{load_next:function({loaded:e}){const t=new ar;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getArtistAlbums(this.artist.id,{limit:od,offset:this.offset,include_groups:"album,single"}).then(n=>{this.append_albums(n),e(n.items.length,od)})},append_albums:function(e){this.albums=this.albums.concat(e.items),this.total=e.total,this.offset+=e.limit},play:function(){this.show_details_modal=!1,K.player_play_uri(this.artist.uri,!0)},open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},open_dialog:function(e){this.selected_album=e,this.show_details_modal=!0},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},N9=["textContent"],V9={class:"buttons is-centered"},j9=["textContent"],B9=["textContent"],H9={class:"image is-64x64 fd-has-shadow fd-has-action"},U9=["onClick"],q9=Tt(" . ");function W9(e,t,n,r,s,o){const i=T("mdicon"),a=T("cover-artwork"),l=T("spotify-list-item-album"),u=T("VueEternalLoading"),d=T("spotify-modal-dialog-album"),m=T("spotify-modal-dialog-artist"),f=T("content-with-heading");return E(),ke(f,null,{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(s.artist.name)},null,8,N9)]),"heading-right":P(()=>[c("div",V9,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=p=>s.show_artist_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...p)=>o.play&&o.play(...p))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.spotify.artist.shuffle"))},null,8,j9)])])]),content:P(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:v(e.$t("page.spotify.artist.album-count",{count:s.total}))},null,8,B9),(E(!0),D(We,null,wt(s.albums,p=>(E(),ke(l,{key:p.id,album:p,onClick:h=>o.open_album(p)},Di({actions:P(()=>[c("a",{onClick:_t(h=>o.open_dialog(p),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,U9)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:P(()=>[c("p",H9,[C(a,{artwork_url:o.artwork_url(p),artist:p.artist,album:p.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),s.offset<s.total?(E(),ke(u,{key:0,load:o.load_next},{"no-more":P(()=>[q9]),_:1},8,["load"])):J("",!0),C(d,{show:s.show_details_modal,album:s.selected_album,onClose:t[2]||(t[2]=p=>s.show_details_modal=!1)},null,8,["show","album"]),C(m,{show:s.show_artist_details_modal,artist:s.artist,onClose:t[3]||(t[3]=p=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var G9=ve(L9,[["render",W9]]);const K9={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],methods:{play:function(){K.player_play_uri(this.context_uri,!1,this.position)}}},Y9={class:"media"},Z9=["textContent"],J9=["textContent"],X9={key:0,class:"subtitle is-7"},Q9=Tt(" ("),eN=["textContent"],tN=["textContent"],nN=Tt(") "),rN={class:"media-right"};function sN(e,t,n,r,s,o){return E(),D("div",Y9,[c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.play&&o.play(...i))},[c("h1",{class:Ye(["title is-6",{"has-text-grey-light":n.track.is_playable===!1}]),textContent:v(n.track.name)},null,10,Z9),c("h2",{class:Ye(["subtitle is-7",{"has-text-grey":n.track.is_playable,"has-text-grey-light":n.track.is_playable===!1}])},[c("b",{textContent:v(n.track.artists[0].name)},null,8,J9)],2),n.track.is_playable===!1?(E(),D("h2",X9,[Q9,c("span",{textContent:v(e.$t("list.spotify.not-playable-track"))},null,8,eN),n.track.restrictions&&n.track.restrictions.reason?(E(),D("span",{key:0,textContent:v(e.$t("list.spotify.restriction-reason",{reason:n.track.restrictions.reason}))},null,8,tN)):J("",!0),nN])):J("",!0)]),c("div",rN,[kt(e.$slots,"actions")])])}var Af=ve(K9,[["render",sN]]);const oN={name:"SpotifyModalDialogTrack",props:["show","track","album"],emits:["close"],methods:{play:function(){this.$emit("close"),K.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),K.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),K.queue_add_next(this.track.uri)},open_album:function(){this.$router.push({path:"/music/spotify/albums/"+this.album.id})},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})}}},iN={key:0,class:"modal is-active"},aN={class:"modal-content fd-modal-card"},lN={class:"card"},uN={class:"card-content"},cN=["textContent"],dN=["textContent"],fN={class:"content is-small"},mN=["textContent"],pN=["textContent"],hN=["textContent"],_N=["textContent"],gN=["textContent"],yN=["textContent"],vN=["textContent"],bN=["textContent"],wN=["textContent"],CN=["textContent"],xN=["textContent"],kN=["textContent"],SN={class:"card-footer"},EN=["textContent"],$N=["textContent"],zN=["textContent"];function AN(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",iN,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",aN,[c("div",lN,[c("div",uN,[c("p",{class:"title is-4",textContent:v(n.track.name)},null,8,cN),c("p",{class:"subtitle",textContent:v(n.track.artists[0].name)},null,8,dN),c("div",fN,[c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.track.album"))},null,8,mN),c("a",{class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>o.open_album&&o.open_album(...a)),textContent:v(n.album.name)},null,8,pN)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.track.album-artist"))},null,8,hN),c("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>o.open_artist&&o.open_artist(...a)),textContent:v(n.album.artists[0].name)},null,8,_N)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.track.release-date"))},null,8,gN),c("span",{class:"title is-6",textContent:v(e.$filters.date(n.album.release_date))},null,8,yN)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.track.position"))},null,8,vN),c("span",{class:"title is-6",textContent:v([n.track.disc_number,n.track.track_number].join(" / "))},null,8,bN)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.track.duration"))},null,8,wN),c("span",{class:"title is-6",textContent:v(e.$filters.durationInHours(n.track.duration_ms))},null,8,CN)]),c("p",null,[c("span",{class:"heading",textContent:v(e.$t("dialog.spotify.track.path"))},null,8,xN),c("span",{class:"title is-6",textContent:v(n.track.uri)},null,8,kN)])])]),c("footer",SN,[c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>o.queue_add&&o.queue_add(...a))},[C(i,{class:"icon",name:"playlist-plus",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.track.add"))},null,8,EN)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>o.queue_add_next&&o.queue_add_next(...a))},[C(i,{class:"icon",name:"playlist-play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.track.add-next"))},null,8,$N)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>o.play&&o.play(...a))},[C(i,{class:"icon",name:"play",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.spotify.track.play"))},null,8,zN)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var Of=ve(oN,[["render",AN]]);const Va={load:function(e){const t=new ar;return t.setAccessToken(at.state.spotify.webapi_token),t.getAlbum(e.params.album_id,{market:at.state.spotify.webapi_country})},set:function(e,t){e.album=t}},ON={name:"PageAlbum",components:{ContentWithHero:kf,SpotifyListItemTrack:Af,SpotifyModalDialogTrack:Of,SpotifyModalDialogAlbum:Ni,CoverArtwork:Pr},beforeRouteEnter(e,t,n){Va.load(e).then(r=>{n(s=>Va.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;Va.load(e).then(s=>{Va.set(r,s),n()})},data(){return{album:{artists:[{}],tracks:{}},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1}},computed:{artwork_url:function(){return this.album.images&&this.album.images.length>0?this.album.images[0].url:""}},methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.album.artists[0].id})},play:function(){this.show_details_modal=!1,K.player_play_uri(this.album.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},TN=["textContent"],PN={class:"subtitle is-6 has-text-link has-text-weight-normal"},DN=["textContent"],FN={class:"buttons fd-is-centered-mobile fd-has-margin-top"},IN=["textContent"],MN={class:"image is-square fd-has-shadow fd-has-action"},RN=["textContent"],LN=["onClick"];function NN(e,t,n,r,s,o){const i=T("mdicon"),a=T("cover-artwork"),l=T("spotify-list-item-track"),u=T("spotify-modal-dialog-track"),d=T("spotify-modal-dialog-album"),m=T("content-with-hero");return E(),ke(m,null,{"heading-left":P(()=>[c("h1",{class:"title is-5",textContent:v(s.album.name)},null,8,TN),c("h2",PN,[c("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>o.open_artist&&o.open_artist(...f)),textContent:v(s.album.artists[0].name)},null,8,DN)]),c("div",FN,[c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.spotify.album.shuffle"))},null,8,IN)]),c("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>s.show_album_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})])])]),"heading-right":P(()=>[c("p",MN,[C(a,{artwork_url:o.artwork_url,artist:s.album.artist,album:s.album.name,onClick:t[3]||(t[3]=f=>s.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:P(()=>[c("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:v(e.$t("page.spotify.album.track-count",{count:s.album.tracks.total}))},null,8,RN),(E(!0),D(We,null,wt(s.album.tracks.items,(f,p)=>(E(),ke(l,{key:f.id,track:f,position:p,album:s.album,context_uri:s.album.uri},{actions:P(()=>[c("a",{onClick:_t(h=>o.open_track_dialog(f),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,LN)]),_:2},1032,["track","position","album","context_uri"]))),128)),C(u,{show:s.show_track_details_modal,track:s.selected_track,album:s.album,onClose:t[4]||(t[4]=f=>s.show_track_details_modal=!1)},null,8,["show","track","album"]),C(d,{show:s.show_album_details_modal,album:s.album,onClose:t[5]||(t[5]=f=>s.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var VN=ve(ON,[["render",NN]]);const id=50,ja={load:function(e){const t=new ar;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getPlaylist(e.params.playlist_id),t.getPlaylistTracks(e.params.playlist_id,{limit:id,offset:0})])},set:function(e,t){e.playlist=t[0],e.tracks=[],e.total=0,e.offset=0,e.append_tracks(t[1])}},jN={name:"SpotifyPagePlaylist",components:{ContentWithHeading:pt,SpotifyListItemTrack:Af,SpotifyModalDialogTrack:Of,SpotifyModalDialogPlaylist:cu,VueEternalLoading:du.exports.VueEternalLoading},beforeRouteEnter(e,t,n){ja.load(e).then(r=>{n(s=>ja.set(s,r))})},beforeRouteUpdate(e,t,n){const r=this;ja.load(e).then(s=>{ja.set(r,s),n()})},data(){return{playlist:{tracks:{}},tracks:[],total:0,offset:0,show_track_details_modal:!1,selected_track:{},show_playlist_details_modal:!1}},methods:{load_next:function({loaded:e}){const t=new ar;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getPlaylistTracks(this.playlist.id,{limit:id,offset:this.offset}).then(n=>{this.append_tracks(n),e(n.items.length,id)})},append_tracks:function(e){this.tracks=this.tracks.concat(e.items),this.total=e.total,this.offset+=e.limit},play:function(){this.show_details_modal=!1,K.player_play_uri(this.playlist.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},BN=["textContent"],HN={class:"buttons is-centered"},UN=["textContent"],qN=["textContent"],WN=["onClick"],GN=Tt(" . ");function KN(e,t,n,r,s,o){const i=T("mdicon"),a=T("spotify-list-item-track"),l=T("VueEternalLoading"),u=T("spotify-modal-dialog-track"),d=T("spotify-modal-dialog-playlist"),m=T("content-with-heading");return E(),ke(m,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(s.playlist.name)},null,8,BN)]),"heading-right":P(()=>[c("div",HN,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>s.show_playlist_details_modal=!0)},[C(i,{class:"icon",name:"dots-horizontal",size:"16"})]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>o.play&&o.play(...f))},[C(i,{class:"icon",name:"shuffle",size:"16"}),c("span",{textContent:v(e.$t("page.spotify.playlist.shuffle"))},null,8,UN)])])]),content:P(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:v(e.$t("page.spotify.playlist.count",{count:s.playlist.tracks.total}))},null,8,qN),(E(!0),D(We,null,wt(s.tracks,(f,p)=>(E(),ke(a,{key:f.track.id,track:f.track,album:f.track.album,position:p,context_uri:s.playlist.uri},{actions:P(()=>[c("a",{onClick:_t(h=>o.open_track_dialog(f.track),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,WN)]),_:2},1032,["track","album","position","context_uri"]))),128)),s.offset<s.total?(E(),ke(l,{key:0,load:o.load_next},{"no-more":P(()=>[GN]),_:1},8,["load"])):J("",!0),C(u,{show:s.show_track_details_modal,track:s.selected_track,album:s.selected_track.album,onClose:t[2]||(t[2]=f=>s.show_track_details_modal=!1)},null,8,["show","track","album"]),C(d,{show:s.show_playlist_details_modal,playlist:s.playlist,onClose:t[3]||(t[3]=f=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})}var YN=ve(jN,[["render",KN]]);const ZN={name:"SpotifyListItemArtist",props:["artist"],methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},JN={class:"media"},XN=["textContent"],QN={class:"media-right"};function eV(e,t,n,r,s,o){return E(),D("div",JN,[c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...i)=>o.open_artist&&o.open_artist(...i))},[c("h1",{class:"title is-6",textContent:v(n.artist.name)},null,8,XN)]),c("div",QN,[kt(e.$slots,"actions")])])}var tV=ve(ZN,[["render",eV]]);const Ro=50,nV={name:"SpotifyPageSearch",components:{ContentWithHeading:pt,ContentText:Ov,TabsSearch:Tv,SpotifyListItemTrack:Af,SpotifyListItemArtist:tV,SpotifyListItemAlbum:uu,SpotifyListItemPlaylist:zf,SpotifyModalDialogTrack:Of,SpotifyModalDialogArtist:Pv,SpotifyModalDialogAlbum:Ni,SpotifyModalDialogPlaylist:cu,VueEternalLoading:du.exports.VueEternalLoading,CoverArtwork:Pr},data(){return{search_query:"",tracks:{items:[],total:0},artists:{items:[],total:0},albums:{items:[],total:0},playlists:{items:[],total:0},query:{},search_param:{},show_track_details_modal:!1,selected_track:{},show_album_details_modal:!1,selected_album:{},show_artist_details_modal:!1,selected_artist:{},show_playlist_details_modal:!1,selected_playlist:{},validSearchTypes:["track","artist","album","playlist"]}},computed:{recent_searches(){return this.$store.state.recent_searches.filter(e=>!e.startsWith("query:"))},show_tracks(){return this.$route.query.type&&this.$route.query.type.includes("track")},show_all_tracks_button(){return this.tracks.total>this.tracks.items.length},show_artists(){return this.$route.query.type&&this.$route.query.type.includes("artist")},show_all_artists_button(){return this.artists.total>this.artists.items.length},show_albums(){return this.$route.query.type&&this.$route.query.type.includes("album")},show_all_albums_button(){return this.albums.total>this.albums.items.length},show_playlists(){return this.$route.query.type&&this.$route.query.type.includes("playlist")},show_all_playlists_button(){return this.playlists.total>this.playlists.items.length},is_visible_artwork(){return this.$store.getters.settings_option("webinterface","show_cover_artwork_in_album_lists").value}},watch:{$route(e,t){this.query=e.query,this.search()}},mounted:function(){this.query=this.$route.query,this.search()},methods:{reset:function(){this.tracks={items:[],total:0},this.artists={items:[],total:0},this.albums={items:[],total:0},this.playlists={items:[],total:0}},search:function(){if(this.reset(),!this.query.query||this.query.query===""||this.query.query.startsWith("query:")){this.search_query="",this.$refs.search_field.focus();return}this.search_query=this.query.query,this.search_param.limit=this.query.limit?this.query.limit:Ro,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit(nf,this.query.query),this.search_all()},spotify_search:function(){return K.spotify().then(({data:e})=>{this.search_param.market=e.webapi_country;const t=new ar;t.setAccessToken(e.webapi_token);const n=this.query.type.split(",").filter(r=>this.validSearchTypes.includes(r));return t.search(this.query.query,n,this.search_param)})},search_all:function(){this.spotify_search().then(e=>{this.tracks=e.tracks?e.tracks:{items:[],total:0},this.artists=e.artists?e.artists:{items:[],total:0},this.albums=e.albums?e.albums:{items:[],total:0},this.playlists=e.playlists?e.playlists:{items:[],total:0}})},search_tracks_next:function({loaded:e}){this.spotify_search().then(t=>{this.tracks.items=this.tracks.items.concat(t.tracks.items),this.tracks.total=t.tracks.total,this.search_param.offset+=t.tracks.limit,e(t.tracks.items.length,Ro)})},search_artists_next:function({loaded:e}){this.spotify_search().then(t=>{this.artists.items=this.artists.items.concat(t.artists.items),this.artists.total=t.artists.total,this.search_param.offset+=t.artists.limit,e(t.artists.items.length,Ro)})},search_albums_next:function({loaded:e}){this.spotify_search().then(t=>{this.albums.items=this.albums.items.concat(t.albums.items),this.albums.total=t.albums.total,this.search_param.offset+=t.albums.limit,e(t.albums.items.length,Ro)})},search_playlists_next:function({loaded:e}){this.spotify_search().then(t=>{this.playlists.items=this.playlists.items.concat(t.playlists.items),this.playlists.total=t.playlists.total,this.search_param.offset+=t.playlists.limit,e(t.playlists.items.length,Ro)})},new_search:function(){!this.search_query||(this.$router.push({path:"/search/spotify",query:{type:"track,artist,album,playlist,audiobook,podcast",query:this.search_query,limit:3,offset:0}}),this.$refs.search_field.blur())},open_search_tracks:function(){this.$router.push({path:"/search/spotify",query:{type:"track",query:this.$route.query.query}})},open_search_artists:function(){this.$router.push({path:"/search/spotify",query:{type:"artist",query:this.$route.query.query}})},open_search_albums:function(){this.$router.push({path:"/search/spotify",query:{type:"album",query:this.$route.query.query}})},open_search_playlists:function(){this.$router.push({path:"/search/spotify",query:{type:"playlist",query:this.$route.query.query}})},open_recent_search:function(e){this.search_query=e,this.new_search()},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0},open_album_dialog:function(e){this.selected_album=e,this.show_album_details_modal=!0},open_artist_dialog:function(e){this.selected_artist=e,this.show_artist_details_modal=!0},open_playlist_dialog:function(e){this.selected_playlist=e,this.show_playlist_details_modal=!0},open_album:function(e){this.$router.push({path:"/music/spotify/albums/"+e.id})},artwork_url:function(e){return e.images&&e.images.length>0?e.images[0].url:""}}},rV={class:"section fd-remove-padding-bottom"},sV={class:"container"},oV={class:"columns is-centered"},iV={class:"column is-four-fifths"},aV={class:"field"},lV={class:"control is-expanded has-icons-left"},uV={class:"tags",style:{"margin-top":"16px"}},cV=["onClick","textContent"],dV=["textContent"],fV=["onClick"],mV=Tt(" . "),pV={key:0,class:"level"},hV={class:"level-item"},_V=["textContent"],gV=["textContent"],yV=["textContent"],vV=["onClick"],bV=Tt(" . "),wV={key:0,class:"level"},CV={class:"level-item"},xV=["textContent"],kV=["textContent"],SV=["textContent"],EV={class:"image is-64x64 fd-has-shadow fd-has-action"},$V=["onClick"],zV=Tt(" . "),AV={key:0,class:"level"},OV={class:"level-item"},TV=["textContent"],PV=["textContent"],DV=["textContent"],FV=["onClick"],IV=Tt(" . "),MV={key:0,class:"level"},RV={class:"level-item"},LV=["textContent"],NV=["textContent"];function VV(e,t,n,r,s,o){const i=T("mdicon"),a=T("tabs-search"),l=T("spotify-list-item-track"),u=T("VueEternalLoading"),d=T("spotify-modal-dialog-track"),m=T("content-with-heading"),f=T("content-text"),p=T("spotify-list-item-artist"),h=T("spotify-modal-dialog-artist"),_=T("cover-artwork"),g=T("spotify-list-item-album"),b=T("spotify-modal-dialog-album"),w=T("spotify-list-item-playlist"),S=T("spotify-modal-dialog-playlist");return E(),D("div",null,[c("section",rV,[c("div",sV,[c("div",oV,[c("div",iV,[c("form",{onSubmit:t[1]||(t[1]=_t((...x)=>o.new_search&&o.new_search(...x),["prevent"]))},[c("div",aV,[c("p",lV,[Ct(c("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=x=>s.search_query=x),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[sn,s.search_query]]),C(i,{class:"icon is-left",name:"magnify",size:"16"})])])],32),c("div",uV,[(E(!0),D(We,null,wt(o.recent_searches,x=>(E(),D("a",{key:x,class:"tag",onClick:$=>o.open_recent_search(x),textContent:v(x)},null,8,cV))),128))])])])])]),C(a,{query:s.search_query},null,8,["query"]),o.show_tracks&&s.tracks.total?(E(),ke(m,{key:0},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.spotify.search.tracks"))},null,8,dV)]),content:P(()=>[(E(!0),D(We,null,wt(s.tracks.items,x=>(E(),ke(l,{key:x.id,track:x,album:x.album,position:0,context_uri:x.uri},{actions:P(()=>[c("a",{onClick:_t($=>o.open_track_dialog(x),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,fV)]),_:2},1032,["track","album","context_uri"]))),128)),s.query.type==="track"?(E(),ke(u,{key:0,load:o.search_tracks_next},{"no-more":P(()=>[mV]),_:1},8,["load"])):J("",!0),C(d,{show:s.show_track_details_modal,track:s.selected_track,album:s.selected_track.album,onClose:t[2]||(t[2]=x=>s.show_track_details_modal=!1)},null,8,["show","track","album"])]),footer:P(()=>[o.show_all_tracks_button?(E(),D("nav",pV,[c("p",hV,[c("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...x)=>o.open_search_tracks&&o.open_search_tracks(...x)),textContent:v(e.$t("page.spotify.search.show-all-tracks",{count:s.tracks.total.toLocaleString()}))},null,8,_V)])])):J("",!0)]),_:1})):J("",!0),o.show_tracks&&!s.tracks.total?(E(),ke(f,{key:1,class:"mt-6"},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.spotify.search.no-tracks"))},null,8,gV)])]),_:1})):J("",!0),o.show_artists&&s.artists.total?(E(),ke(m,{key:2},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.spotify.search.artists"))},null,8,yV)]),content:P(()=>[(E(!0),D(We,null,wt(s.artists.items,x=>(E(),ke(p,{key:x.id,artist:x},{actions:P(()=>[c("a",{onClick:_t($=>o.open_artist_dialog(x),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,vV)]),_:2},1032,["artist"]))),128)),s.query.type==="artist"?(E(),ke(u,{key:0,load:o.search_artists_next},{"no-more":P(()=>[bV]),_:1},8,["load"])):J("",!0),C(h,{show:s.show_artist_details_modal,artist:s.selected_artist,onClose:t[4]||(t[4]=x=>s.show_artist_details_modal=!1)},null,8,["show","artist"])]),footer:P(()=>[o.show_all_artists_button?(E(),D("nav",wV,[c("p",CV,[c("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...x)=>o.open_search_artists&&o.open_search_artists(...x)),textContent:v(e.$t("page.spotify.search.show-all-artists",{count:s.artists.total.toLocaleString()}))},null,8,xV)])])):J("",!0)]),_:1})):J("",!0),o.show_artists&&!s.artists.total?(E(),ke(f,{key:3},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.spotify.search.no-artists"))},null,8,kV)])]),_:1})):J("",!0),o.show_albums&&s.albums.total?(E(),ke(m,{key:4},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.spotify.search.albums"))},null,8,SV)]),content:P(()=>[(E(!0),D(We,null,wt(s.albums.items,x=>(E(),ke(g,{key:x.id,album:x,onClick:$=>o.open_album(x)},Di({actions:P(()=>[c("a",{onClick:_t($=>o.open_album_dialog(x),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,$V)]),_:2},[o.is_visible_artwork?{name:"artwork",fn:P(()=>[c("p",EV,[C(_,{artwork_url:o.artwork_url(x),artist:x.artist,album:x.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),s.query.type==="album"?(E(),ke(u,{key:0,load:o.search_albums_next},{"no-more":P(()=>[zV]),_:1},8,["load"])):J("",!0),C(b,{show:s.show_album_details_modal,album:s.selected_album,onClose:t[6]||(t[6]=x=>s.show_album_details_modal=!1)},null,8,["show","album"])]),footer:P(()=>[o.show_all_albums_button?(E(),D("nav",AV,[c("p",OV,[c("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...x)=>o.open_search_albums&&o.open_search_albums(...x)),textContent:v(e.$t("page.spotify.search.show-all-albums",{count:s.albums.total.toLocaleString()}))},null,8,TV)])])):J("",!0)]),_:1})):J("",!0),o.show_albums&&!s.albums.total?(E(),ke(f,{key:5},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.spotify.search.no-albums"))},null,8,PV)])]),_:1})):J("",!0),o.show_playlists&&s.playlists.total?(E(),ke(m,{key:6},{"heading-left":P(()=>[c("p",{class:"title is-4",textContent:v(e.$t("page.spotify.search.playlists"))},null,8,DV)]),content:P(()=>[(E(!0),D(We,null,wt(s.playlists.items,x=>(E(),ke(w,{key:x.id,playlist:x},{actions:P(()=>[c("a",{onClick:_t($=>o.open_playlist_dialog(x),["prevent","stop"])},[C(i,{class:"icon has-text-dark",name:"dots-vertical",size:"16"})],8,FV)]),_:2},1032,["playlist"]))),128)),s.query.type==="playlist"?(E(),ke(u,{key:0,load:o.search_playlists_next},{"no-more":P(()=>[IV]),_:1},8,["load"])):J("",!0),C(S,{show:s.show_playlist_details_modal,playlist:s.selected_playlist,onClose:t[8]||(t[8]=x=>s.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:P(()=>[o.show_all_playlists_button?(E(),D("nav",MV,[c("p",RV,[c("a",{class:"button is-light is-small is-rounded",onClick:t[9]||(t[9]=(...x)=>o.open_search_playlists&&o.open_search_playlists(...x)),textContent:v(e.$t("page.spotify.search.show-all-playlists",{count:s.playlists.total.toLocaleString()}))},null,8,LV)])])):J("",!0)]),_:1})):J("",!0),o.show_playlists&&!s.playlists.total?(E(),ke(f,{key:7},{content:P(()=>[c("p",null,[c("i",{textContent:v(e.$t("page.spotify.search.no-playlists"))},null,8,NV)])]),_:1})):J("",!0)])}var jV=ve(nV,[["render",VV]]);const BV={name:"TabsSettings"},HV={class:"section fd-tabs-section"},UV={class:"container"},qV={class:"columns is-centered"},WV={class:"column is-four-fifths"},GV={class:"tabs is-centered is-small"},KV=["onClick","onKeypress"],YV=["textContent"],ZV=["onClick","onKeypress"],JV=["textContent"],XV=["onClick","onKeypress"],QV=["textContent"],ej=["onClick","onKeypress"],tj=["textContent"];function nj(e,t,n,r,s,o){const i=T("router-link");return E(),D("section",HV,[c("div",UV,[c("div",qV,[c("div",WV,[c("div",GV,[c("ul",null,[C(i,{to:"/settings/webinterface",custom:""},{default:P(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Tn(a,["enter"])},[c("span",{textContent:v(e.$t("page.settings.tabs.settings.general"))},null,8,YV)],40,KV)],2)]),_:1}),C(i,{to:"/settings/remotes-outputs",custom:""},{default:P(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Tn(a,["enter"])},[c("span",{textContent:v(e.$t("page.settings.tabs.settings.remotes-and-outputs"))},null,8,JV)],40,ZV)],2)]),_:1}),C(i,{to:"/settings/artwork",custom:""},{default:P(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Tn(a,["enter"])},[c("span",{textContent:v(e.$t("page.settings.tabs.settings.artwork"))},null,8,QV)],40,XV)],2)]),_:1}),C(i,{to:"/settings/online-services",custom:""},{default:P(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Tn(a,["enter"])},[c("span",{textContent:v(e.$t("page.settings.tabs.settings.online-services"))},null,8,tj)],40,ej)],2)]),_:1})])])])])])])}var fu=ve(BV,[["render",nj]]);const rj={name:"SettingsCheckbox",props:["category_name","option_name"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?this.$t("setting.saved"):this.statusUpdate==="error"?this.$t("setting.not-saved"):""},is_success(){return this.statusUpdate==="success"},is_error(){return this.statusUpdate==="error"}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.setting.checked!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.setting.checked;if(console.log(this.$refs.setting),e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};K.settings_update(this.category.name,t).then(()=>{this.$store.commit(Xl,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.setting.checked=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},sj={class:"field"},oj={class:"switch"},ij=["checked"],aj=["textContent"],lj={key:0,class:"help"};function uj(e,t,n,r,s,o){return E(),D("div",sj,[c("label",oj,[c("input",{ref:"setting",type:"checkbox",checked:o.value,style:{"margin-right":"5px"},onChange:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,ij),kt(e.$slots,"label"),c("i",{class:Ye(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:v(o.info)},null,10,aj)]),e.$slots.info?(E(),D("p",lj,[kt(e.$slots,"info")])):J("",!0)])}var Dv=ve(rj,[["render",uj]]);const cj={name:"SettingsTextfield",props:["category_name","option_name","placeholder","disabled"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?this.$t("setting.saved"):this.statusUpdate==="error"?this.$t("setting.not-saved"):""},is_success(){return this.statusUpdate==="success"},is_error(){return this.statusUpdate==="error"}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.setting.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.setting.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:e};K.settings_update(this.category.name,t).then(()=>{this.$store.commit(Xl,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.setting.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},dj=["disabled"],fj={class:"field"},mj={class:"label has-text-weight-normal"},pj=["textContent"],hj={class:"control"},_j=["placeholder","value"],gj={key:0,class:"help"};function yj(e,t,n,r,s,o){return E(),D("fieldset",{disabled:n.disabled},[c("div",fj,[c("label",mj,[kt(e.$slots,"label"),c("i",{class:Ye(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:v(o.info)},null,10,pj)]),c("div",hj,[c("input",{ref:"setting",class:"input",type:"text",placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,_j)]),e.$slots.info?(E(),D("p",gj,[kt(e.$slots,"info")])):J("",!0)])],8,dj)}var vj=ve(cj,[["render",yj]]);const bj={name:"SettingsIntfield",props:["category_name","option_name","placeholder","disabled"],data(){return{timerDelay:2e3,timerId:-1,statusUpdate:""}},computed:{category(){return this.$store.state.settings.categories.find(e=>e.name===this.category_name)},option(){return this.category?this.category.options.find(e=>e.name===this.option_name):{}},value(){return this.option.value},info(){return this.statusUpdate==="success"?this.$t("setting.saved"):this.statusUpdate==="error"?this.$t("setting.not-saved"):""},is_success(){return this.statusUpdate==="success"},is_error(){return this.statusUpdate==="error"}},methods:{set_update_timer(){this.timerId>0&&(window.clearTimeout(this.timerId),this.timerId=-1),this.statusUpdate="",this.$refs.setting.value!==this.value&&(this.timerId=window.setTimeout(this.update_setting,this.timerDelay))},update_setting(){this.timerId=-1;const e=this.$refs.setting.value;if(e===this.value){this.statusUpdate="";return}const t={category:this.category.name,name:this.option_name,value:parseInt(e,10)};K.settings_update(this.category.name,t).then(()=>{this.$store.commit(Xl,t),this.statusUpdate="success"}).catch(()=>{this.statusUpdate="error",this.$refs.setting.value=this.value}).finally(()=>{this.timerId=window.setTimeout(this.clear_status,this.timerDelay)})},clear_status:function(){this.statusUpdate=""}}},wj=["disabled"],Cj={class:"field"},xj={class:"label has-text-weight-normal"},kj=["textContent"],Sj={class:"control"},Ej=["placeholder","value"],$j={key:0,class:"help"};function zj(e,t,n,r,s,o){return E(),D("fieldset",{disabled:n.disabled},[c("div",Cj,[c("label",xj,[kt(e.$slots,"label"),c("i",{class:Ye(["is-size-7",{"has-text-info":o.is_success,"has-text-danger":o.is_error}]),textContent:v(o.info)},null,10,kj)]),c("div",Sj,[c("input",{ref:"setting",class:"input",type:"number",min:"0",style:{width:"10em"},placeholder:n.placeholder,value:o.value,onInput:t[0]||(t[0]=(...i)=>o.set_update_timer&&o.set_update_timer(...i))},null,40,Ej)]),e.$slots.info?(E(),D("p",$j,[kt(e.$slots,"info")])):J("",!0)])],8,wj)}var Aj=ve(bj,[["render",zj]]);const Oj={name:"SettingsPageWebinterface",components:{ContentWithHeading:pt,TabsSettings:fu,SettingsCheckbox:Dv,SettingsTextfield:vj,SettingsIntfield:Aj,DropdownMenu:lu},computed:{settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},locale:{get(){return this.$i18n.locale},set(e){this.$i18n.locale=e}},locales:{get(){return this.$i18n.availableLocales.map(e=>({id:e,name:this.$t("language."+e)}))}}}},Tj={class:"fd-page-with-tabs"},Pj=["textContent"],Dj=["textContent"],Fj=["textContent"],Ij=["textContent"],Mj=["textContent"],Rj=["textContent"],Lj=["textContent"],Nj=["textContent"],Vj=["textContent"],jj=["textContent"],Bj=["textContent"],Hj=["textContent"],Uj=["textContent"],qj=["textContent"],Wj=["textContent"],Gj=["textContent"],Kj=["textContent"],Yj=["textContent"],Zj=["textContent"],Jj=["textContent"],Xj=["textContent"],Qj=["textContent"],eB=["textContent"];function tB(e,t,n,r,s,o){const i=T("tabs-settings"),a=T("dropdown-menu"),l=T("content-with-heading"),u=T("settings-checkbox"),d=T("settings-textfield"),m=T("settings-intfield");return E(),D("div",Tj,[C(i),C(l,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.general.language"))},null,8,Pj)]),content:P(()=>[c("div",{textContent:v(o.locale)},null,8,Dj),C(a,{modelValue:o.locale,"onUpdate:modelValue":t[0]||(t[0]=f=>o.locale=f),options:o.locales},null,8,["modelValue","options"])]),_:1}),C(l,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.general.navigation-items"))},null,8,Fj)]),content:P(()=>[c("p",{class:"content",textContent:v(e.$t("page.settings.general.navigation-item-selection"))},null,8,Ij),c("div",{class:"notification is-size-7",textContent:v(e.$t("page.settings.general.navigation-item-selection-info"))},null,8,Mj),C(u,{category_name:"webinterface",option_name:"show_menu_item_playlists"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.playlists"))},null,8,Rj)]),_:1}),C(u,{category_name:"webinterface",option_name:"show_menu_item_music"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.music"))},null,8,Lj)]),_:1}),C(u,{category_name:"webinterface",option_name:"show_menu_item_podcasts"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.podcasts"))},null,8,Nj)]),_:1}),C(u,{category_name:"webinterface",option_name:"show_menu_item_audiobooks"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.audiobooks"))},null,8,Vj)]),_:1}),C(u,{category_name:"webinterface",option_name:"show_menu_item_radio"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.radio"))},null,8,jj)]),_:1}),C(u,{category_name:"webinterface",option_name:"show_menu_item_files"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.files"))},null,8,Bj)]),_:1}),C(u,{category_name:"webinterface",option_name:"show_menu_item_search"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.search"))},null,8,Hj)]),_:1})]),_:1}),C(l,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.general.album-lists"))},null,8,Uj)]),content:P(()=>[C(u,{category_name:"webinterface",option_name:"show_cover_artwork_in_album_lists"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.show-coverart"))},null,8,qj)]),_:1})]),_:1}),C(l,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.general.now-playing-page"))},null,8,Wj)]),content:P(()=>[C(u,{category_name:"webinterface",option_name:"show_composer_now_playing"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.show-composer"))},null,8,Gj)]),info:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.show-composer-info"))},null,8,Kj)]),_:1}),C(d,{category_name:"webinterface",option_name:"show_composer_for_genre",disabled:!o.settings_option_show_composer_now_playing,placeholder:"Genres"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.show-composer-genres"))},null,8,Yj)]),info:P(()=>[c("p",{class:"help",textContent:v(e.$t("page.settings.general.show-composer-genres-info-1"))},null,8,Zj),c("p",{class:"help",textContent:v(e.$t("page.settings.general.show-composer-genres-info-2"))},null,8,Jj),c("p",{class:"help",textContent:v(e.$t("page.settings.general.show-composer-genres-info-3"))},null,8,Xj)]),_:1},8,["disabled"])]),_:1}),C(l,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.general.recently-added-page"))},null,8,Qj)]),content:P(()=>[C(m,{category_name:"webinterface",option_name:"recently_added_limit"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.general.recently-added-page-info"))},null,8,eB)]),_:1})]),_:1})])}var nB=ve(Oj,[["render",tB]]);const rB={name:"SettingsPageArtwork",components:{ContentWithHeading:pt,TabsSettings:fu,SettingsCheckbox:Dv},computed:{spotify(){return this.$store.state.spotify}}},sB={class:"fd-page-with-tabs"},oB=["textContent"],iB=["textContent"],aB=["textContent"],lB=["textContent"],uB={href:"https://www.spotify.com/",target:"_blank"},cB=["textContent"],dB={href:"https://www.discogs.com/",target:"_blank"},fB=["textContent"],mB={href:"https://coverartarchive.org/",target:"_blank"};function pB(e,t,n,r,s,o){const i=T("tabs-settings"),a=T("mdicon"),l=T("settings-checkbox"),u=T("content-with-heading");return E(),D("div",sB,[C(i),C(u,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.artwork.artwork"))},null,8,oB)]),content:P(()=>[c("div",{class:"content",textContent:v(e.$t("page.settings.artwork.explanation-1"))},null,8,iB),c("div",{class:"content",textContent:v(e.$t("page.settings.artwork.explanation-2"))},null,8,aB),o.spotify.libspotify_logged_in?(E(),ke(l,{key:0,category_name:"artwork",option_name:"use_artwork_source_spotify"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.artwork.spotify"))},null,8,lB),c("a",uB,[C(a,{class:"icon",name:"open-in-new",size:"16"})])]),_:1})):J("",!0),C(l,{category_name:"artwork",option_name:"use_artwork_source_discogs"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.artwork.discogs"))},null,8,cB),c("a",dB,[C(a,{class:"icon",name:"open-in-new",size:"16"})])]),_:1}),C(l,{category_name:"artwork",option_name:"use_artwork_source_coverartarchive"},{label:P(()=>[c("span",{textContent:v(e.$t("page.settings.artwork.coverartarchive"))},null,8,fB),c("a",mB,[C(a,{class:"icon",name:"open-in-new",size:"16"})])]),_:1})]),_:1})])}var hB=ve(rB,[["render",pB]]);const _B={name:"SettingsPageOnlineServices",components:{ContentWithHeading:pt,TabsSettings:fu},filters:{join(e){return e.join(", ")}},data(){return{libspotify:{user:"",password:"",errors:{user:"",password:"",error:""}},lastfm_login:{user:"",password:"",errors:{user:"",password:"",error:""}}}},computed:{lastfm(){return this.$store.state.lastfm},spotify(){return this.$store.state.spotify},spotify_required_scope(){return this.spotify.webapi_required_scope?this.spotify.webapi_required_scope.split(" "):[]},spotify_missing_scope(){return this.spotify.webapi_token_valid&&this.spotify.webapi_granted_scope&&this.spotify.webapi_required_scope?this.spotify.webapi_required_scope.split(" ").filter(e=>this.spotify.webapi_granted_scope.indexOf(e)<0):[]},use_libspotify(){return this.$store.state.config.use_libspotify}},methods:{login_libspotify(){K.spotify_login(this.libspotify).then(e=>{this.libspotify.user="",this.libspotify.password="",this.libspotify.errors.user="",this.libspotify.errors.password="",this.libspotify.errors.error="",e.data.success||(this.libspotify.errors.user=e.data.errors.user,this.libspotify.errors.password=e.data.errors.password,this.libspotify.errors.error=e.data.errors.error)})},logout_spotify(){K.spotify_logout()},login_lastfm(){K.lastfm_login(this.lastfm_login).then(e=>{this.lastfm_login.user="",this.lastfm_login.password="",this.lastfm_login.errors.user="",this.lastfm_login.errors.password="",this.lastfm_login.errors.error="",e.data.success||(this.lastfm_login.errors.user=e.data.errors.user,this.lastfm_login.errors.password=e.data.errors.password,this.lastfm_login.errors.error=e.data.errors.error)})},logoutLastfm(){K.lastfm_logout()}}},gB={class:"fd-page-with-tabs"},yB=["textContent"],vB={key:0,class:"notification is-size-7"},bB=["textContent"],wB={key:1},CB={class:"notification is-size-7"},xB=["textContent"],kB=["textContent"],SB={key:0},EB={class:"content"},$B=["textContent"],zB=["textContent"],AB={key:0,class:"fd-has-margin-bottom"},OB=["textContent"],TB=["textContent"],PB={class:"field is-grouped"},DB={class:"control is-expanded"},FB=["textContent"],IB={class:"control is-expanded"},MB=["textContent"],RB={class:"control"},LB=["textContent"],NB=["textContent"],VB=["textContent"],jB=["textContent"],BB={class:"fd-has-margin-top"},HB=["innerHTML"],UB={key:0},qB=["textContent"],WB=["textContent"],GB={key:1,class:"help is-danger"},KB=["textContent"],YB=["textContent"],ZB={class:"field fd-has-margin-top"},JB={class:"control"},XB=["href","textContent"],QB={class:"help"},eH=["textContent"],tH=["textContent"],nH={key:2,class:"field fd-has-margin-top"},rH={class:"control"},sH=["textContent"],oH=["textContent"],iH={key:0,class:"notification is-size-7"},aH=["textContent"],lH={key:1},uH=["innerHTML"],cH={key:0},dH=["textContent"],fH={key:1},mH={class:"field is-grouped"},pH={class:"control is-expanded"},hH=["textContent"],_H={class:"control is-expanded"},gH=["textContent"],yH={class:"control"},vH=["textContent"],bH=["textContent"],wH=["textContent"];function CH(e,t,n,r,s,o){const i=T("tabs-settings"),a=T("content-with-heading");return E(),D("div",gB,[C(i),C(a,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.services.spotify.title"))},null,8,yB)]),content:P(()=>[o.spotify.spotify_installed?J("",!0):(E(),D("div",vB,[c("p",{textContent:v(e.$t("page.settings.services.spotify.no-support"))},null,8,bB)])),o.spotify.spotify_installed?(E(),D("div",wB,[c("div",CB,[c("b",{textContent:v(e.$t("page.settings.services.spotify.requirements"))},null,8,xB),e.use_libspotity?(E(),D("span",{key:0,textContent:v(e.$t("page.settings.services.spotify.help"))},null,8,kB)):J("",!0)]),e.use_libspotity?(E(),D("div",SB,[c("p",EB,[c("b",{textContent:v(e.$t("page.settings.services.spotify"))},null,8,$B),c("span",{textContent:v(e.$t("page.settings.services.spotify.credentials"))},null,8,zB)]),o.spotify.libspotify_logged_in?(E(),D("p",AB,[c("span",{textContent:v(e.$t("page.settings.services.spotify.logged-as"))},null,8,OB),c("b",null,[c("code",{textContent:v(o.spotify.libspotify_user)},null,8,TB)])])):J("",!0),o.spotify.spotify_installed&&!o.spotify.libspotify_logged_in?(E(),D("form",{key:1,onSubmit:t[2]||(t[2]=_t((...l)=>o.login_libspotify&&o.login_libspotify(...l),["prevent"]))},[c("div",PB,[c("div",DB,[Ct(c("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>s.libspotify.user=l),class:"input",type:"text",placeholder:"Username"},null,512),[[sn,s.libspotify.user]]),c("p",{class:"help is-danger",textContent:v(s.libspotify.errors.user)},null,8,FB)]),c("div",IB,[Ct(c("input",{"onUpdate:modelValue":t[1]||(t[1]=l=>s.libspotify.password=l),class:"input",type:"password",placeholder:"Password"},null,512),[[sn,s.libspotify.password]]),c("p",{class:"help is-danger",textContent:v(s.libspotify.errors.password)},null,8,MB)]),c("div",RB,[c("button",{class:"button is-info",textContent:v(e.$t("page.settings.services.login"))},null,8,LB)])])],32)):J("",!0),c("p",{class:"help is-danger",textContent:v(s.libspotify.errors.error)},null,8,NB),c("p",{class:"help",textContent:v(e.$t("page.settings.services.spotify.help-1"))},null,8,VB),c("p",{class:"help",textContent:v(e.$t("page.settings.services.spotify.help-2"))},null,8,jB)])):J("",!0),c("div",BB,[c("p",{class:"content",innerHTML:e.$t("page.settings.services.spotify.grant-access")},null,8,HB),o.spotify.webapi_token_valid?(E(),D("p",UB,[c("span",{textContent:v(e.$t("page.settings.services.spotify.user"))},null,8,qB),c("code",{textContent:v(o.spotify.webapi_user)},null,8,WB)])):J("",!0),o.spotify_missing_scope.length>0?(E(),D("p",GB,[c("span",{textContent:v(e.$t("page.settings.services.spotify.reauthorize"))},null,8,KB),c("code",{textContent:v(o.spotify_missing_scope.join())},null,8,YB)])):J("",!0),c("div",ZB,[c("div",JB,[c("a",{class:Ye(["button",{"is-info":!o.spotify.webapi_token_valid||o.spotify_missing_scope.length>0}]),href:o.spotify.oauth_uri,textContent:v(e.$t("page.settings.services.spotify.authorize"))},null,10,XB)])]),c("p",QB,[c("span",{textContent:v(e.$t("page.settings.services.spotify.scopes"))},null,8,eH),c("code",{textContent:v(o.spotify_required_scope.join())},null,8,tH)]),o.spotify.webapi_token_valid?(E(),D("div",nH,[c("div",rH,[c("a",{class:"button is-danger",onClick:t[3]||(t[3]=(...l)=>o.logout_spotify&&o.logout_spotify(...l)),textContent:v(e.$t("page.settings.services.logout"))},null,8,sH)])])):J("",!0)])])):J("",!0)]),_:1}),C(a,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.services.lastfm.title"))},null,8,oH)]),content:P(()=>[o.lastfm.enabled?J("",!0):(E(),D("div",iH,[c("p",{textContent:v(e.$t("page.settings.services.lastfm.no-support"))},null,8,aH)])),o.lastfm.enabled?(E(),D("div",lH,[c("p",{class:"content",innerHTML:e.$t("page.settings.services.lastfm.grant-access")},null,8,uH),o.lastfm.scrobbling_enabled?(E(),D("div",cH,[c("a",{class:"button",onClick:t[4]||(t[4]=(...l)=>o.logoutLastfm&&o.logoutLastfm(...l)),textContent:v(e.$t("page.settings.services.lastfm.stop-scrobbling"))},null,8,dH)])):J("",!0),o.lastfm.scrobbling_enabled?J("",!0):(E(),D("div",fH,[c("form",{onSubmit:t[7]||(t[7]=_t((...l)=>o.login_lastfm&&o.login_lastfm(...l),["prevent"]))},[c("div",mH,[c("div",pH,[Ct(c("input",{"onUpdate:modelValue":t[5]||(t[5]=l=>s.lastfm_login.user=l),class:"input",type:"text",placeholder:"Username"},null,512),[[sn,s.lastfm_login.user]]),c("p",{class:"help is-danger",textContent:v(s.lastfm_login.errors.user)},null,8,hH)]),c("div",_H,[Ct(c("input",{"onUpdate:modelValue":t[6]||(t[6]=l=>s.lastfm_login.password=l),class:"input",type:"password",placeholder:"Password"},null,512),[[sn,s.lastfm_login.password]]),c("p",{class:"help is-danger",textContent:v(s.lastfm_login.errors.password)},null,8,gH)]),c("div",yH,[c("button",{class:"button is-info",type:"submit",textContent:v(e.$t("page.settings.services.login"))},null,8,vH)])]),c("p",{class:"help is-danger",textContent:v(s.lastfm_login.errors.error)},null,8,bH),c("p",{class:"help",textContent:v(e.$t("page.settings.services.lastfm.info"))},null,8,wH)],32)]))])):J("",!0)]),_:1})])}var xH=ve(_B,[["render",CH]]);const kH={name:"SettingsPageRemotesOutputs",components:{ContentWithHeading:pt,TabsSettings:fu},filters:{},data(){return{pairing_req:{pin:""},verification_req:{pin:""}}},computed:{pairing(){return this.$store.state.pairing},outputs(){return this.$store.state.outputs}},methods:{kickoff_pairing(){K.pairing_kickoff(this.pairing_req)},output_toggle(e){K.output_toggle(e)},kickoff_verification(e){K.output_update(e,this.verification_req)}}},SH={class:"fd-page-with-tabs"},EH=["textContent"],$H={key:0,class:"notification"},zH=["innerHTML"],AH={class:"field is-grouped"},OH={class:"control"},TH={class:"control"},PH=["textContent"],DH={key:1,class:"content"},FH=["textContent"],IH=["textContent"],MH=["textContent"],RH={class:"field"},LH={class:"control"},NH={class:"checkbox"},VH=["onUpdate:modelValue","onChange"],jH=["textContent"],BH=["onSubmit"],HH={class:"field is-grouped"},UH={class:"control"},qH=["placeholder"],WH={class:"control"},GH=["textContent"];function KH(e,t,n,r,s,o){const i=T("tabs-settings"),a=T("content-with-heading");return E(),D("div",SH,[C(i),C(a,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.devices.pairing"))},null,8,EH)]),content:P(()=>[o.pairing.active?(E(),D("div",$H,[c("form",{onSubmit:t[1]||(t[1]=_t((...l)=>o.kickoff_pairing&&o.kickoff_pairing(...l),["prevent"]))},[c("label",{class:"label has-text-weight-normal",innerHTML:e.$t("page.settings.devices.pairing-request",{remote:o.pairing.remote})},null,8,zH),c("div",AH,[c("div",OH,[Ct(c("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>s.pairing_req.pin=l),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[sn,s.pairing_req.pin]])]),c("div",TH,[c("button",{class:"button is-info",type:"submit",textContent:v(e.$t("page.settings.devices.send"))},null,8,PH)])])],32)])):J("",!0),o.pairing.active?J("",!0):(E(),D("div",DH,[c("p",{textContent:v(e.$t("page.settings.devices.no-active-pairing"))},null,8,FH)]))]),_:1}),C(a,null,{"heading-left":P(()=>[c("div",{class:"title is-4",textContent:v(e.$t("page.settings.devices.speaker-pairing"))},null,8,IH)]),content:P(()=>[c("p",{class:"content",textContent:v(e.$t("page.settings.devices.speaker-pairing-info"))},null,8,MH),(E(!0),D(We,null,wt(o.outputs,l=>(E(),D("div",{key:l.id},[c("div",RH,[c("div",LH,[c("label",NH,[Ct(c("input",{"onUpdate:modelValue":u=>l.selected=u,type:"checkbox",style:{"margin-right":"5px"},onChange:u=>o.output_toggle(l.id)},null,40,VH),[[$r,l.selected]]),c("span",{textContent:v(l.name)},null,8,jH)])])]),l.needs_auth_key?(E(),D("form",{key:0,class:"fd-has-margin-bottom",onSubmit:_t(u=>o.kickoff_verification(l.id),["prevent"])},[c("div",HH,[c("div",UH,[Ct(c("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>s.verification_req.pin=u),class:"input",type:"text",placeholder:e.$t("page.settings.devices.verification-code")},null,8,qH),[[sn,s.verification_req.pin]])]),c("div",WH,[c("button",{class:"button is-info",type:"submit",textContent:v(e.$t("page.settings.devices.verify"))},null,8,GH)])])],40,BH)):J("",!0)]))),128))]),_:1})])}var YH=ve(kH,[["render",KH]]);const Fv=fk({history:z2(),routes:[{path:"/",name:"PageQueue",component:bz},{path:"/about",name:"About",component:WR},{path:"/now-playing",name:"Now playing",component:l6},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:g4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:x4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:A4,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/artists",name:"Artists",component:M5,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:K5,meta:{show_progress:!0,has_index:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:WP,meta:{show_progress:!0,has_index:!0}},{path:"/music/albums",name:"Albums",component:m3,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/albums/:album_id",name:"Album",component:L3,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:bP,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/genres/:genre",name:"Genre",component:AP,meta:{show_progress:!0,has_index:!0}},{path:"/music/genres/:genre/tracks",name:"GenreTracks",component:LP,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers",name:"Composers",component:SD,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/albums",name:"ComposerAlbums",component:FD,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/tracks",name:"ComposerTracks",component:HD,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/podcasts",name:"Podcasts",component:yF,meta:{show_progress:!0}},{path:"/podcasts/:album_id",name:"Podcast",component:TF,meta:{show_progress:!0}},{path:"/audiobooks",redirect:"/audiobooks/artists"},{path:"/audiobooks/artists",name:"AudiobooksArtists",component:eI,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/artists/:artist_id",name:"AudiobooksArtist",component:aI,meta:{show_progress:!0}},{path:"/audiobooks/albums",name:"AudiobooksAlbums",component:KF,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:gI,meta:{show_progress:!0}},{path:"/radio",name:"Radio",component:VM,meta:{show_progress:!0}},{path:"/files",name:"Files",component:IM,meta:{show_progress:!0}},{path:"/playlists",redirect:"/playlists/0"},{path:"/playlists/:playlist_id",name:"Playlists",component:ZI,meta:{show_progress:!0}},{path:"/playlists/:playlist_id/tracks",name:"Playlist",component:rM,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:Y7},{path:"/music/spotify",name:"Spotify",component:a9,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:p9,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:b9,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:G9,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:VN,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:YN,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:jV},{path:"/settings/webinterface",name:"Settings Webinterface",component:nB},{path:"/settings/artwork",name:"Settings Artwork",component:hB},{path:"/settings/online-services",name:"Settings Online Services",component:xH},{path:"/settings/remotes-outputs",name:"Settings Remotes Outputs",component:YH}],scrollBehavior(e,t,n){return n?new Promise((s,o)=>{setTimeout(()=>{s(n)},0)}):e.path===t.path&&e.hash?{el:e.hash,top:120}:e.hash?new Promise((s,o)=>{setTimeout(()=>{s({el:e.hash,top:120})},0)}):e.meta.has_index?new Promise((s,o)=>{setTimeout(()=>{e.meta.has_tabs?s({el:"#top",top:140}):s({el:"#top",top:110})},0)}):{left:0,top:0}}});Fv.beforeEach((e,t,n)=>{if(at.state.show_burger_menu){at.commit(ho,!1),n(!1);return}if(at.state.show_player_menu){at.commit(_o,!1),n(!1);return}n(!0)});var Iv={exports:{}};(function(e){e.exports=function(t){var n={};function r(s){if(n[s])return n[s].exports;var o=n[s]={i:s,l:!1,exports:{}};return t[s].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=t,r.c=n,r.d=function(s,o,i){r.o(s,o)||Object.defineProperty(s,o,{enumerable:!0,get:i})},r.r=function(s){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(s,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(s,"__esModule",{value:!0})},r.t=function(s,o){if(o&1&&(s=r(s)),o&8||o&4&&typeof s=="object"&&s&&s.__esModule)return s;var i=Object.create(null);if(r.r(i),Object.defineProperty(i,"default",{enumerable:!0,value:s}),o&2&&typeof s!="string")for(var a in s)r.d(i,a,function(l){return s[l]}.bind(null,a));return i},r.n=function(s){var o=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(o,"a",o),o},r.o=function(s,o){return Object.prototype.hasOwnProperty.call(s,o)},r.p="",r(r.s="fb15")}({"8875":function(t,n,r){var s,o,i;(function(a,l){o=[],s=l,i=typeof s=="function"?s.apply(n,o):s,i!==void 0&&(t.exports=i)})(typeof self!="undefined"?self:this,function(){function a(){var l=Object.getOwnPropertyDescriptor(document,"currentScript");if(!l&&"currentScript"in document&&document.currentScript||l&&l.get!==a&&document.currentScript)return document.currentScript;try{throw new Error}catch(x){var u=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,m=u.exec(x.stack)||d.exec(x.stack),f=m&&m[1]||!1,p=m&&m[2]||!1,h=document.location.href.replace(document.location.hash,""),_,g,b,w=document.getElementsByTagName("script");f===h&&(_=document.documentElement.outerHTML,g=new RegExp("(?:[^\\n]+?\\n){0,"+(p-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),b=_.replace(g,"$1").trim());for(var S=0;S<w.length;S++)if(w[S].readyState==="interactive"||w[S].src===f||f===h&&w[S].innerHTML&&w[S].innerHTML.trim()===b)return w[S];return null}}return a})},"8bbf":function(t,n){t.exports=pf},fb15:function(t,n,r){if(r.r(n),typeof window!="undefined"){var s=window.document.currentScript;{var o=r("8875");s=o(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:o})}var i=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);i&&(r.p=i[1])}var a=r("8bbf");function l(h,_,g,b,w,S){return Object(a.openBlock)(),Object(a.createBlock)("div",{style:b.finalStyle},null,4)}var u=typeof window!="undefined",d={name:"VueProgress",serverCacheKey:function(){return"Progress"},setup:function(){var _=u?Object(a.inject)("RADON_LOADING_BAR"):{percent:0,options:{canSuccess:!0,show:!1,color:"rgb(19, 91, 55)",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},location:"top",autoRevert:!0,inverse:!1}},g=Object(a.computed)(function(){var b=_.options,w=!!b.show,S=b.location,x={"z-index":999999,"background-color":b.canSuccess?b.color:b.failedColor,opacity:b.show?1:0,position:b.position};return S==="top"||S==="bottom"?(S==="top"?x.top="0px":x.bottom="0px",b.inverse?x.right="0px":x.left="0px",x.width=_.percent+"%",x.height=b.thickness,x.transition=(w?"width "+b.transition.speed+", ":"")+"opacity "+b.transition.opacity):(S==="left"||S==="right")&&(S==="left"?x.left="0px":x.right="0px",b.inverse?x.top="0px":x.bottom="0px",x.height=_.percent+"%",x.width=b.thickness,x.transition=(w?"height "+b.transition.speed+", ":"")+"opacity "+b.transition.opacity),x});return{progress:_,finalStyle:g}}};d.render=l;var m=d;function f(h,_){for(var g=1,b,w;g<arguments.length;++g){w=arguments[g];for(b in w)Object.prototype.hasOwnProperty.call(w,b)&&(h[b]=w[b])}return h}var p={install:function(_,g){var b={canSuccess:!0,show:!1,color:"#73ccec",position:"fixed",failedColor:"red",thickness:"2px",transition:{speed:"0.2s",opacity:"0.6s",termination:300},autoRevert:!0,location:"top",inverse:!1,autoFinish:!0},w=f(b,g),S=Object(a.reactive)({percent:0,options:w});_.provide("RADON_LOADING_BAR",S);var x={state:{tFailColor:"",tColor:"",timer:null,cut:0},start:function(A){var I=this;A||(A=3e3),S.percent=0,S.options.show=!0,S.options.canSuccess=!0,this.state.cut=1e4/Math.floor(A),clearInterval(this.state.timer),this.state.timer=setInterval(function(){I.increase(I.state.cut*Math.random()),S.percent>95&&S.options.autoFinish&&I.finish()},100)},set:function(A){S.options.show=!0,S.options.canSuccess=!0,S.percent=Math.floor(A)},get:function(){return Math.floor(S.percent)},increase:function(A){S.percent=Math.min(99,S.percent+Math.floor(A))},decrease:function(A){S.percent=S.percent-Math.floor(A)},hide:function(){var A=this;clearInterval(this.state.timer),this.state.timer=null,setTimeout(function(){S.options.show=!1,Object(a.nextTick)(function(){setTimeout(function(){S.percent=0},100),S.options.autoRevert&&setTimeout(function(){A.revert()},300)})},S.options.transition.termination)},pause:function(){clearInterval(this.state.timer)},finish:function(){S.percent=100,this.hide()},fail:function(){S.options.canSuccess=!1,S.percent=100,this.hide()},setFailColor:function(A){S.options.failedColor=A},setColor:function(A){S.options.color=A},setLocation:function(A){S.options.location=A},setTransition:function(A){S.options.transition=A},tempFailColor:function(A){this.state.tFailColor=S.options.failedColor,S.options.failedColor=A},tempColor:function(A){this.state.tColor=S.options.color,S.options.color=A},tempLocation:function(A){this.state.tLocation=S.options.location,S.options.location=A},tempTransition:function(A){this.state.tTransition=S.options.transition,S.options.transition=A},revertColor:function(){S.options.color=this.state.tColor,this.state.tColor=""},revertFailColor:function(){S.options.failedColor=this.state.tFailColor,this.state.tFailColor=""},revertLocation:function(){S.options.location=this.state.tLocation,this.state.tLocation=""},revertTransition:function(){S.options.transition=this.state.tTransition,this.state.tTransition={}},revert:function(){S.options.autoRevert&&(this.state.tColor&&this.revertColor(),this.state.tFailColor&&this.revertFailColor(),this.state.tLocation&&this.revertLocation(),this.state.tTransition&&(this.state.tTransition.speed!==void 0||this.state.tTransition.opacity!==void 0)&&this.revertTransition())},parseMeta:function(A){for(var I in A.func){var V=A.func[I];switch(V.call){case"color":switch(V.modifier){case"set":this.setColor(V.argument);break;case"temp":this.tempColor(V.argument);break}break;case"fail":switch(V.modifier){case"set":this.setFailColor(V.argument);break;case"temp":this.tempFailColor(V.argument);break}break;case"location":switch(V.modifier){case"set":this.setLocation(V.argument);break;case"temp":this.tempLocation(V.argument);break}break;case"transition":switch(V.modifier){case"set":this.setTransition(V.argument);break;case"temp":this.tempTransition(V.argument);break}break}}}};_.component("vue-progress-bar",m),_.config.globalProperties.$Progress=x}};n.default=p}})})(Iv);var ZH=uy(Iv.exports);const Mv=function(){return document.ontouchstart!==null?"click":"touchstart"},kl="__vue_click_away__",Rv=function(e,t,n){Lv(e);let r=n.context,s=t.value,o=!1;setTimeout(function(){o=!0},0),e[kl]=function(i){if((!e||!e.contains(i.target))&&s&&o&&typeof s=="function")return s.call(r,i)},document.addEventListener(Mv(),e[kl],!1)},Lv=function(e){document.removeEventListener(Mv(),e[kl],!1),delete e[kl]},JH=function(e,t,n){t.value!==t.oldValue&&Rv(e,t,n)},XH={install:function(e){e.directive("click-away",QH)}},QH={mounted:Rv,updated:JH,unmounted:Lv};/*!
* Vue3-Lazyload.js v0.2.5-beta
* A Vue3.x image lazyload plugin
* (c) 2021 MuRong <admin@imuboy.cn>
* Released under the MIT License.
*/var Xn;(function(e){e.LOADING="loading",e.LOADED="loaded",e.ERROR="error"})(Xn||(Xn={}));var eU=typeof window!="undefined"&&window!==null,tU=oU(),nU=Object.prototype.propertyIsEnumerable,mh=Object.getOwnPropertySymbols;function _i(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function rU(e){return typeof e=="object"?e===null:typeof e!="function"}function sU(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function oU(){return eU&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}}),!0):!1}function iU(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];if(!_i(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof mh!="function")return e;for(var r=0,s=t;r<s.length;r++)for(var o=s[r],i=mh(o),a=0,l=i;a<l.length;a++){var u=l[a];nU.call(o,u)&&(e[u]=o[u])}return e}function Nv(e){for(var t=[],n=1;n<arguments.length;n++)t[n-1]=arguments[n];var r=0;for(rU(e)&&(e=t[r++]),e||(e={});r<t.length;r++)if(_i(t[r])){for(var s=0,o=Object.keys(t[r]);s<o.length;s++){var i=o[s];sU(i)&&(_i(e[i])&&_i(t[r][i])?Nv(e[i],t[r][i]):e[i]=t[r][i])}iU(e,t[r])}return e}var aU={rootMargin:"0px",threshold:0},ph="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",lU="",uU=function(){function e(t){this.options={loading:ph,error:lU,observerOptions:aU,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}return e.prototype.config=function(t){t===void 0&&(t={}),Nv(this.options,t)},e.prototype.mount=function(t,n){var r=this._valueFormatter(n.value),s=r.src,o=r.loading,i=r.error,a=r.lifecycle;this._lifecycle(Xn.LOADING,a,t),t.setAttribute("src",o||ph),tU||(this.loadImages(t,s,i,a),this._log(function(){throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,s,i,a)},e.prototype.update=function(t,n){var r;(r=this._realObserver(t))===null||r===void 0||r.unobserve(t);var s=this._valueFormatter(n.value),o=s.src,i=s.error,a=s.lifecycle;this._initIntersectionObserver(t,o,i,a)},e.prototype.unmount=function(t){var n;(n=this._realObserver(t))===null||n===void 0||n.unobserve(t),this._images.delete(t)},e.prototype.loadImages=function(t,n,r,s){this._setImageSrc(t,n,r,s)},e.prototype._setImageSrc=function(t,n,r,s){var o=this;if(t.tagName.toLowerCase()==="img"){if(n){var i=t.getAttribute("src");i!==n&&t.setAttribute("src",n)}this._listenImageStatus(t,function(){o._lifecycle(Xn.LOADED,s,t)},function(){var a;t.onload=null,o._lifecycle(Xn.ERROR,s,t),(a=o._realObserver(t))===null||a===void 0||a.disconnect(),r&&t.setAttribute("src",r),o._log(function(){throw new Error("Image failed to load!")})})}else t.style.backgroundImage="url('"+n+"')"},e.prototype._initIntersectionObserver=function(t,n,r,s){var o=this,i,a=this.options.observerOptions;this._images.set(t,new IntersectionObserver(function(l){Array.prototype.forEach.call(l,function(u){var d;u.isIntersecting&&((d=o._realObserver(t))===null||d===void 0||d.unobserve(u.target),o._setImageSrc(t,n,r,s))})},a)),(i=this._realObserver(t))===null||i===void 0||i.observe(t)},e.prototype._listenImageStatus=function(t,n,r){t.onload=n,t.onerror=r},e.prototype._valueFormatter=function(t){var n=t,r=this.options.loading,s=this.options.error,o=this.options.lifecycle;return _i(t)&&(n=t.src,r=t.loading||this.options.loading,s=t.error||this.options.error,o=t.lifecycle||this.options.lifecycle),{src:n,loading:r,error:s,lifecycle:o}},e.prototype._log=function(t){this.options.log&&t()},e.prototype._lifecycle=function(t,n,r){switch(t){case Xn.LOADING:r==null||r.setAttribute("lazy",Xn.LOADING),n!=null&&n.loading&&n.loading(r);break;case Xn.LOADED:r==null||r.setAttribute("lazy",Xn.LOADED),n!=null&&n.loaded&&n.loaded(r);break;case Xn.ERROR:r==null||r.setAttribute("lazy",Xn.ERROR),n!=null&&n.error&&n.error(r);break}},e.prototype._realObserver=function(t){return this._images.get(t)},e}(),cU={install:function(e,t){var n=new uU(t);e.config.globalProperties.$Lazyload=n,e.provide("Lazyload",n),e.directive("lazy",{mounted:n.mount.bind(n),updated:n.update.bind(n),unmounted:n.unmount.bind(n)})}},Vv={exports:{}};/*!
* vue-scrollto v2.20.0
* (c) 2019 Randjelovic Igor
* @license MIT
*/(function(e,t){(function(n,r){e.exports=r()})(an,function(){function n(he){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(X){return typeof X}:n=function(X){return X&&typeof Symbol=="function"&&X.constructor===Symbol&&X!==Symbol.prototype?"symbol":typeof X},n(he)}function r(){return r=Object.assign||function(he){for(var X=1;X<arguments.length;X++){var fe=arguments[X];for(var we in fe)Object.prototype.hasOwnProperty.call(fe,we)&&(he[we]=fe[we])}return he},r.apply(this,arguments)}var s=4,o=.001,i=1e-7,a=10,l=11,u=1/(l-1),d=typeof Float32Array=="function";function m(he,X){return 1-3*X+3*he}function f(he,X){return 3*X-6*he}function p(he){return 3*he}function h(he,X,fe){return((m(X,fe)*he+f(X,fe))*he+p(X))*he}function _(he,X,fe){return 3*m(X,fe)*he*he+2*f(X,fe)*he+p(X)}function g(he,X,fe,we,H){var oe,se,be=0;do se=X+(fe-X)/2,oe=h(se,we,H)-he,oe>0?fe=se:X=se;while(Math.abs(oe)>i&&++be<a);return se}function b(he,X,fe,we){for(var H=0;H<s;++H){var oe=_(X,fe,we);if(oe===0)return X;var se=h(X,fe,we)-he;X-=se/oe}return X}function w(he){return he}var S=function(X,fe,we,H){if(!(0<=X&&X<=1&&0<=we&&we<=1))throw new Error("bezier x values must be in [0, 1] range");if(X===fe&&we===H)return w;for(var oe=d?new Float32Array(l):new Array(l),se=0;se<l;++se)oe[se]=h(se*u,X,we);function be(Ve){for(var Ie=0,$e=1,Ae=l-1;$e!==Ae&&oe[$e]<=Ve;++$e)Ie+=u;--$e;var z=(Ve-oe[$e])/(oe[$e+1]-oe[$e]),R=Ie+z*u,Z=_(R,X,we);return Z>=o?b(Ve,R,X,we):Z===0?R:g(Ve,Ie,Ie+u,X,we)}return function(Ie){return Ie===0?0:Ie===1?1:h(be(Ie),fe,H)}},x={ease:[.25,.1,.25,1],linear:[0,0,1,1],"ease-in":[.42,0,1,1],"ease-out":[0,0,.58,1],"ease-in-out":[.42,0,.58,1]},$=!1;try{var A=Object.defineProperty({},"passive",{get:function(){$=!0}});window.addEventListener("test",null,A)}catch{}var I={$:function(X){return typeof X!="string"?X:document.querySelector(X)},on:function(X,fe,we){var H=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};fe instanceof Array||(fe=[fe]);for(var oe=0;oe<fe.length;oe++)X.addEventListener(fe[oe],we,$?H:!1)},off:function(X,fe,we){fe instanceof Array||(fe=[fe]);for(var H=0;H<fe.length;H++)X.removeEventListener(fe[H],we)},cumulativeOffset:function(X){var fe=0,we=0;do fe+=X.offsetTop||0,we+=X.offsetLeft||0,X=X.offsetParent;while(X);return{top:fe,left:we}}},V=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],O={container:"body",duration:500,lazy:!0,easing:"ease",offset:0,force:!0,cancelable:!0,onStart:!1,onDone:!1,onCancel:!1,x:!1,y:!0};function N(he){O=r({},O,he)}var G=function(){var X,fe,we,H,oe,se,be,Ve,Ie,$e,Ae,z,R,Z,ae,ue,ye,Ce,pe,j,U,ze,xe,De=function(ce){!Ve||(xe=ce,j=!0)},Le,qe,nt,k;function y(re){var ce=re.scrollTop;return re.tagName.toLowerCase()==="body"&&(ce=ce||document.documentElement.scrollTop),ce}function M(re){var ce=re.scrollLeft;return re.tagName.toLowerCase()==="body"&&(ce=ce||document.documentElement.scrollLeft),ce}function W(){U=I.cumulativeOffset(fe),ze=I.cumulativeOffset(X),z&&(ae=ze.left-U.left+se,Ce=ae-Z),R&&(ye=ze.top-U.top+se,pe=ye-ue)}function Q(re){if(j)return me();qe||(qe=re),oe||W(),nt=re-qe,k=Math.min(nt/we,1),k=Le(k),Ee(fe,ue+pe*k,Z+Ce*k),nt<we?window.requestAnimationFrame(Q):me()}function me(){j||Ee(fe,ye,ae),qe=!1,I.off(fe,V,De),j&&Ae&&Ae(xe,X),!j&&$e&&$e(X)}function Ee(re,ce,ee){R&&(re.scrollTop=ce),z&&(re.scrollLeft=ee),re.tagName.toLowerCase()==="body"&&(R&&(document.documentElement.scrollTop=ce),z&&(document.documentElement.scrollLeft=ee))}function Me(re,ce){var ee=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(ce)==="object"?ee=ce:typeof ce=="number"&&(ee.duration=ce),X=I.$(re),!X)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+re);if(fe=I.$(ee.container||O.container),we=ee.hasOwnProperty("duration")?ee.duration:O.duration,oe=ee.hasOwnProperty("lazy")?ee.lazy:O.lazy,H=ee.easing||O.easing,se=ee.hasOwnProperty("offset")?ee.offset:O.offset,be=ee.hasOwnProperty("force")?ee.force!==!1:O.force,Ve=ee.hasOwnProperty("cancelable")?ee.cancelable!==!1:O.cancelable,Ie=ee.onStart||O.onStart,$e=ee.onDone||O.onDone,Ae=ee.onCancel||O.onCancel,z=ee.x===void 0?O.x:ee.x,R=ee.y===void 0?O.y:ee.y,typeof se=="function"&&(se=se(X,fe)),Z=M(fe),ue=y(fe),W(),j=!1,!be){var ie=fe.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:fe.offsetHeight,Ne=ue,He=Ne+ie,ct=ye-se,_n=ct+X.offsetHeight;if(ct>=Ne&&_n<=He){$e&&$e(X);return}}if(Ie&&Ie(X),!pe&&!Ce){$e&&$e(X);return}return typeof H=="string"&&(H=x[H]||x.ease),Le=S.apply(S,H),I.on(fe,V,De,{passive:!0}),window.requestAnimationFrame(Q),function(){xe=null,j=!0}}return Me},F=G(),B=[];function Y(he){for(var X=0;X<B.length;++X)if(B[X].el===he)return B.splice(X,1),!0;return!1}function de(he){for(var X=0;X<B.length;++X)if(B[X].el===he)return B[X]}function te(he){var X=de(he);return X||(B.push(X={el:he,binding:{}}),X)}function le(he){var X=te(this).binding;if(!!X.value){if(he.preventDefault(),typeof X.value=="string")return F(X.value);F(X.value.el||X.value.element,X.value)}}var ge={bind:function(X,fe){te(X).binding=fe,I.on(X,"click",le)},unbind:function(X){Y(X),I.off(X,"click",le)},update:function(X,fe){te(X).binding=fe}},Re={bind:ge.bind,unbind:ge.unbind,update:ge.update,beforeMount:ge.bind,unmounted:ge.unbind,updated:ge.update,scrollTo:F,bindings:B},Be=function(X,fe){fe&&N(fe),X.directive("scroll-to",Re);var we=X.config.globalProperties||X.prototype;we.$scrollTo=Re.scrollTo};return typeof window!="undefined"&&window.Vue&&(window.VueScrollTo=Re,window.VueScrollTo.setDefaults=N,window.VueScrollTo.scroller=G,window.Vue.use&&window.Vue.use(Be)),Re.install=Be,Re})})(Vv);var dU=Vv.exports,fU="M11,14C12,14 13.05,14.16 14.2,14.44C13.39,15.31 13,16.33 13,17.5C13,18.39 13.25,19.23 13.78,20H3V18C3,16.81 3.91,15.85 5.74,15.12C7.57,14.38 9.33,14 11,14M11,12C9.92,12 9,11.61 8.18,10.83C7.38,10.05 7,9.11 7,8C7,6.92 7.38,6 8.18,5.18C9,4.38 9.92,4 11,4C12.11,4 13.05,4.38 13.83,5.18C14.61,6 15,6.92 15,8C15,9.11 14.61,10.05 13.83,10.83C13.05,11.61 12.11,12 11,12M18.5,10H20L22,10V12H20V17.5A2.5,2.5 0 0,1 17.5,20A2.5,2.5 0 0,1 15,17.5A2.5,2.5 0 0,1 17.5,15C17.86,15 18.19,15.07 18.5,15.21V10Z",mU="M12,11A1,1 0 0,0 11,12A1,1 0 0,0 12,13A1,1 0 0,0 13,12A1,1 0 0,0 12,11M12,16.5C9.5,16.5 7.5,14.5 7.5,12C7.5,9.5 9.5,7.5 12,7.5C14.5,7.5 16.5,9.5 16.5,12C16.5,14.5 14.5,16.5 12,16.5M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",pU="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",hU="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",_U="M19 2L14 6.5V17.5L19 13V2M6.5 5C4.55 5 2.45 5.4 1 6.5V21.16C1 21.41 1.25 21.66 1.5 21.66C1.6 21.66 1.65 21.59 1.75 21.59C3.1 20.94 5.05 20.5 6.5 20.5C8.45 20.5 10.55 20.9 12 22C13.35 21.15 15.8 20.5 17.5 20.5C19.15 20.5 20.85 20.81 22.25 21.56C22.35 21.61 22.4 21.59 22.5 21.59C22.75 21.59 23 21.34 23 21.09V6.5C22.4 6.05 21.75 5.75 21 5.5V19C19.9 18.65 18.7 18.5 17.5 18.5C15.8 18.5 13.35 19.15 12 20V6.5C10.55 5.4 8.45 5 6.5 5Z",gU="M17.5 14.33C18.29 14.33 19.13 14.41 20 14.57V16.07C19.38 15.91 18.54 15.83 17.5 15.83C15.6 15.83 14.11 16.16 13 16.82V15.13C14.17 14.6 15.67 14.33 17.5 14.33M13 12.46C14.29 11.93 15.79 11.67 17.5 11.67C18.29 11.67 19.13 11.74 20 11.9V13.4C19.38 13.24 18.54 13.16 17.5 13.16C15.6 13.16 14.11 13.5 13 14.15M17.5 10.5C15.6 10.5 14.11 10.82 13 11.5V9.84C14.23 9.28 15.73 9 17.5 9C18.29 9 19.13 9.08 20 9.23V10.78C19.26 10.59 18.41 10.5 17.5 10.5M21 18.5V7C19.96 6.67 18.79 6.5 17.5 6.5C15.45 6.5 13.62 7 12 8V19.5C13.62 18.5 15.45 18 17.5 18C18.69 18 19.86 18.16 21 18.5M17.5 4.5C19.85 4.5 21.69 5 23 6V20.56C23 20.68 22.95 20.8 22.84 20.91C22.73 21 22.61 21.08 22.5 21.08C22.39 21.08 22.31 21.06 22.25 21.03C20.97 20.34 19.38 20 17.5 20C15.45 20 13.62 20.5 12 21.5C10.66 20.5 8.83 20 6.5 20C4.84 20 3.25 20.36 1.75 21.07C1.72 21.08 1.68 21.08 1.63 21.1C1.59 21.11 1.55 21.12 1.5 21.12C1.39 21.12 1.27 21.08 1.16 21C1.05 20.89 1 20.78 1 20.65V6C2.34 5 4.18 4.5 6.5 4.5C8.83 4.5 10.66 5 12 6C13.34 5 15.17 4.5 17.5 4.5Z",yU="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",vU="M12 10C10.9 10 10 10.9 10 12S10.9 14 12 14 14 13.1 14 12 13.1 10 12 10M18 12C18 8.7 15.3 6 12 6S6 8.7 6 12C6 14.2 7.2 16.1 9 17.2L10 15.5C8.8 14.8 8 13.5 8 12.1C8 9.9 9.8 8.1 12 8.1S16 9.9 16 12.1C16 13.6 15.2 14.9 14 15.5L15 17.2C16.8 16.2 18 14.2 18 12M12 2C6.5 2 2 6.5 2 12C2 15.7 4 18.9 7 20.6L8 18.9C5.6 17.5 4 14.9 4 12C4 7.6 7.6 4 12 4S20 7.6 20 12C20 15 18.4 17.5 16 18.9L17 20.6C20 18.9 22 15.7 22 12C22 6.5 17.5 2 12 2Z",bU="M12 2C17.5 2 22 6.5 22 12S17.5 22 12 22 2 17.5 2 12 6.5 2 12 2M12 4C10.1 4 8.4 4.6 7.1 5.7L18.3 16.9C19.3 15.5 20 13.8 20 12C20 7.6 16.4 4 12 4M16.9 18.3L5.7 7.1C4.6 8.4 4 10.1 4 12C4 16.4 7.6 20 12 20C13.9 20 15.6 19.4 16.9 18.3Z",wU="M1,10V12A9,9 0 0,1 10,21H12C12,14.92 7.07,10 1,10M1,14V16A5,5 0 0,1 6,21H8A7,7 0 0,0 1,14M1,18V21H4A3,3 0 0,0 1,18M21,3H3C1.89,3 1,3.89 1,5V8H3V5H21V19H14V21H21A2,2 0 0,0 23,19V5C23,3.89 22.1,3 21,3Z",CU="M6,22H18L12,16M21,3H3A2,2 0 0,0 1,5V17A2,2 0 0,0 3,19H7V17H3V5H21V17H17V19H21A2,2 0 0,0 23,17V5A2,2 0 0,0 21,3Z",xU="M17,19H7V5H17M17,1H7C5.89,1 5,1.89 5,3V21A2,2 0 0,0 7,23H17A2,2 0 0,0 19,21V3C19,1.89 18.1,1 17,1Z",kU="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",SU="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",EU="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",$U="M15,9H5V5H15M12,19A3,3 0 0,1 9,16A3,3 0 0,1 12,13A3,3 0 0,1 15,16A3,3 0 0,1 12,19M17,3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V7L17,3Z",zU="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",AU="M20.37,8.91L19.37,10.64L7.24,3.64L8.24,1.91L11.28,3.66L12.64,3.29L16.97,5.79L17.34,7.16L20.37,8.91M6,19V7H11.07L18,11V19A2,2 0 0,1 16,21H8A2,2 0 0,1 6,19Z",OU="M16,12A2,2 0 0,1 18,10A2,2 0 0,1 20,12A2,2 0 0,1 18,14A2,2 0 0,1 16,12M10,12A2,2 0 0,1 12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12M4,12A2,2 0 0,1 6,10A2,2 0 0,1 8,12A2,2 0 0,1 6,14A2,2 0 0,1 4,12Z",TU="M12,16A2,2 0 0,1 14,18A2,2 0 0,1 12,20A2,2 0 0,1 10,18A2,2 0 0,1 12,16M12,10A2,2 0 0,1 14,12A2,2 0 0,1 12,14A2,2 0 0,1 10,12A2,2 0 0,1 12,10M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8A2,2 0 0,1 10,6A2,2 0 0,1 12,4Z",PU="M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z",DU="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",FU="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M13,13H11V18A2,2 0 0,1 9,20A2,2 0 0,1 7,18A2,2 0 0,1 9,16C9.4,16 9.7,16.1 10,16.3V11H13V13M13,9V3.5L18.5,9H13Z",IU="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",MU="M17.66 11.2C17.43 10.9 17.15 10.64 16.89 10.38C16.22 9.78 15.46 9.35 14.82 8.72C13.33 7.26 13 4.85 13.95 3C13 3.23 12.17 3.75 11.46 4.32C8.87 6.4 7.85 10.07 9.07 13.22C9.11 13.32 9.15 13.42 9.15 13.55C9.15 13.77 9 13.97 8.8 14.05C8.57 14.15 8.33 14.09 8.14 13.93C8.08 13.88 8.04 13.83 8 13.76C6.87 12.33 6.69 10.28 7.45 8.64C5.78 10 4.87 12.3 5 14.47C5.06 14.97 5.12 15.47 5.29 15.97C5.43 16.57 5.7 17.17 6 17.7C7.08 19.43 8.95 20.67 10.96 20.92C13.1 21.19 15.39 20.8 17.03 19.32C18.86 17.66 19.5 15 18.56 12.72L18.43 12.46C18.22 12 17.66 11.2 17.66 11.2M14.5 17.5C14.22 17.74 13.76 18 13.4 18.1C12.28 18.5 11.16 17.94 10.5 17.28C11.69 17 12.4 16.12 12.61 15.23C12.78 14.43 12.46 13.77 12.33 13C12.21 12.26 12.23 11.63 12.5 10.94C12.69 11.32 12.89 11.7 13.13 12C13.9 13 15.11 13.44 15.37 14.8C15.41 14.94 15.43 15.08 15.43 15.23C15.46 16.05 15.1 16.95 14.5 17.5H14.5Z",RU="M10,4H4C2.89,4 2,4.89 2,6V18A2,2 0 0,0 4,20H20A2,2 0 0,0 22,18V8C22,6.89 21.1,6 20,6H12L10,4Z",LU="M19,20H4C2.89,20 2,19.1 2,18V6C2,4.89 2.89,4 4,4H10L12,6H19A2,2 0 0,1 21,8H21L4,8V18L6.14,10H23.21L20.93,18.5C20.7,19.37 19.92,20 19,20Z",NU="M9.5,3A6.5,6.5 0 0,1 16,9.5C16,11.11 15.41,12.59 14.44,13.73L14.71,14H15.5L20.5,19L19,20.5L14,15.5V14.71L13.73,14.44C12.59,15.41 11.11,16 9.5,16A6.5,6.5 0 0,1 3,9.5A6.5,6.5 0 0,1 9.5,3M9.5,5C7,5 5,7 5,9.5C5,12 7,14 9.5,14C12,14 14,12 14,9.5C14,7 12,5 9.5,5Z",VU="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",jU="M21,3V15.5A3.5,3.5 0 0,1 17.5,19A3.5,3.5 0 0,1 14,15.5A3.5,3.5 0 0,1 17.5,12C18.04,12 18.55,12.12 19,12.34V6.47L9,8.6V17.5A3.5,3.5 0 0,1 5.5,21A3.5,3.5 0 0,1 2,17.5A3.5,3.5 0 0,1 5.5,14C6.04,14 6.55,14.12 7,14.34V6L21,3Z",BU="M4,6H2V20A2,2 0 0,0 4,22H18V20H4M18,7H15V12.5A2.5,2.5 0 0,1 12.5,15A2.5,2.5 0 0,1 10,12.5A2.5,2.5 0 0,1 12.5,10C13.07,10 13.58,10.19 14,10.5V5H18M20,2H8A2,2 0 0,0 6,4V16A2,2 0 0,0 8,18H20A2,2 0 0,0 22,16V4A2,2 0 0,0 20,2Z",HU="M14,3V5H17.59L7.76,14.83L9.17,16.24L19,6.41V10H21V3M19,19H5V5H12V3H5C3.89,3 3,3.9 3,5V19A2,2 0 0,0 5,21H19A2,2 0 0,0 21,19V12H19V19Z",UU="M14,19H18V5H14M6,19H10V5H6V19Z",qU="M20.71,7.04C21.1,6.65 21.1,6 20.71,5.63L18.37,3.29C18,2.9 17.35,2.9 16.96,3.29L15.12,5.12L18.87,8.87M3,17.25V21H6.75L17.81,9.93L14.06,6.18L3,17.25Z",WU="M22,14H20V16H14V13H16V11H14V6A2,2 0 0,0 12,4H4V2H2V10H4V8H10V11H8V13H10V18A2,2 0 0,0 12,20H20V22H22",GU="M8,5.14V19.14L19,12.14L8,5.14Z",KU="M19,9H2V11H19V9M19,5H2V7H19V5M2,15H15V13H2V15M17,13V19L22,16L17,13Z",YU="M2,16H10V14H2M18,14V10H16V14H12V16H16V20H18V16H22V14M14,6H2V8H14M14,10H2V12H14V10Z",ZU="M17,18.25V21.5H7V18.25C7,16.87 9.24,15.75 12,15.75C14.76,15.75 17,16.87 17,18.25M12,5.5A6.5,6.5 0 0,1 18.5,12C18.5,13.25 18.15,14.42 17.54,15.41L16,14.04C16.32,13.43 16.5,12.73 16.5,12C16.5,9.5 14.5,7.5 12,7.5C9.5,7.5 7.5,9.5 7.5,12C7.5,12.73 7.68,13.43 8,14.04L6.46,15.41C5.85,14.42 5.5,13.25 5.5,12A6.5,6.5 0 0,1 12,5.5M12,1.5A10.5,10.5 0 0,1 22.5,12C22.5,14.28 21.77,16.39 20.54,18.11L19.04,16.76C19.96,15.4 20.5,13.76 20.5,12A8.5,8.5 0 0,0 12,3.5A8.5,8.5 0 0,0 3.5,12C3.5,13.76 4.04,15.4 4.96,16.76L3.46,18.11C2.23,16.39 1.5,14.28 1.5,12A10.5,10.5 0 0,1 12,1.5M12,9.5A2.5,2.5 0 0,1 14.5,12A2.5,2.5 0 0,1 12,14.5A2.5,2.5 0 0,1 9.5,12A2.5,2.5 0 0,1 12,9.5Z",JU="M12,10A2,2 0 0,1 14,12C14,12.5 13.82,12.94 13.53,13.29L16.7,22H14.57L12,14.93L9.43,22H7.3L10.47,13.29C10.18,12.94 10,12.5 10,12A2,2 0 0,1 12,10M12,8A4,4 0 0,0 8,12C8,12.5 8.1,13 8.28,13.46L7.4,15.86C6.53,14.81 6,13.47 6,12A6,6 0 0,1 12,6A6,6 0 0,1 18,12C18,13.47 17.47,14.81 16.6,15.86L15.72,13.46C15.9,13 16,12.5 16,12A4,4 0 0,0 12,8M12,4A8,8 0 0,0 4,12C4,14.36 5,16.5 6.64,17.94L5.92,19.94C3.54,18.11 2,15.23 2,12A10,10 0 0,1 12,2A10,10 0 0,1 22,12C22,15.23 20.46,18.11 18.08,19.94L17.36,17.94C19,16.5 20,14.36 20,12A8,8 0 0,0 12,4Z",XU="M17.65,6.35C16.2,4.9 14.21,4 12,4A8,8 0 0,0 4,12A8,8 0 0,0 12,20C15.73,20 18.84,17.45 19.73,14H17.65C16.83,16.33 14.61,18 12,18A6,6 0 0,1 6,12A6,6 0 0,1 12,6C13.66,6 15.14,6.69 16.22,7.78L13,11H20V4L17.65,6.35Z",QU="M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",eq="M2,5.27L3.28,4L20,20.72L18.73,22L15.73,19H7V22L3,18L7,14V17H13.73L7,10.27V11H5V8.27L2,5.27M17,13H19V17.18L17,15.18V13M17,5V2L21,6L17,10V7H8.82L6.82,5H17Z",tq="M13,15V9H12L10,10V11H11.5V15M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",nq="M11.5,12L20,18V6M11,18V6L2.5,12L11,18Z",rq="M6.18,15.64A2.18,2.18 0 0,1 8.36,17.82C8.36,19 7.38,20 6.18,20C5,20 4,19 4,17.82A2.18,2.18 0 0,1 6.18,15.64M4,4.44A15.56,15.56 0 0,1 19.56,20H16.73A12.73,12.73 0 0,0 4,7.27V4.44M4,10.1A9.9,9.9 0 0,1 13.9,20H11.07A7.07,7.07 0 0,0 4,12.93V10.1Z",sq="M4,1H20A1,1 0 0,1 21,2V6A1,1 0 0,1 20,7H4A1,1 0 0,1 3,6V2A1,1 0 0,1 4,1M4,9H20A1,1 0 0,1 21,10V14A1,1 0 0,1 20,15H4A1,1 0 0,1 3,14V10A1,1 0 0,1 4,9M4,17H20A1,1 0 0,1 21,18V22A1,1 0 0,1 20,23H4A1,1 0 0,1 3,22V18A1,1 0 0,1 4,17M9,5H10V3H9V5M9,13H10V11H9V13M9,21H10V19H9V21M5,3V5H7V3H5M5,11V13H7V11H5M5,19V21H7V19H5Z",oq="M14.83,13.41L13.42,14.82L16.55,17.95L14.5,20H20V14.5L17.96,16.54L14.83,13.41M14.5,4L16.54,6.04L4,18.59L5.41,20L17.96,7.46L20,9.5V4M10.59,9.17L5.41,4L4,5.41L9.17,10.58L10.59,9.17Z",iq="M16,4.5V7H5V9H16V11.5L19.5,8M16,12.5V15H5V17H16V19.5L19.5,16",aq="M20,5V19L13,12M6,5V19H4V5M13,5V19L6,12",lq="M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12",uq="M12,12A3,3 0 0,0 9,15A3,3 0 0,0 12,18A3,3 0 0,0 15,15A3,3 0 0,0 12,12M12,20A5,5 0 0,1 7,15A5,5 0 0,1 12,10A5,5 0 0,1 17,15A5,5 0 0,1 12,20M12,4A2,2 0 0,1 14,6A2,2 0 0,1 12,8C10.89,8 10,7.1 10,6C10,4.89 10.89,4 12,4M17,2H7C5.89,2 5,2.89 5,4V20A2,2 0 0,0 7,22H17A2,2 0 0,0 19,20V4C19,2.89 18.1,2 17,2Z",cq="M17.9,10.9C14.7,9 9.35,8.8 6.3,9.75C5.8,9.9 5.3,9.6 5.15,9.15C5,8.65 5.3,8.15 5.75,8C9.3,6.95 15.15,7.15 18.85,9.35C19.3,9.6 19.45,10.2 19.2,10.65C18.95,11 18.35,11.15 17.9,10.9M17.8,13.7C17.55,14.05 17.1,14.2 16.75,13.95C14.05,12.3 9.95,11.8 6.8,12.8C6.4,12.9 5.95,12.7 5.85,12.3C5.75,11.9 5.95,11.45 6.35,11.35C10,10.25 14.5,10.8 17.6,12.7C17.9,12.85 18.05,13.35 17.8,13.7M16.6,16.45C16.4,16.75 16.05,16.85 15.75,16.65C13.4,15.2 10.45,14.9 6.95,15.7C6.6,15.8 6.3,15.55 6.2,15.25C6.1,14.9 6.35,14.6 6.65,14.5C10.45,13.65 13.75,14 16.35,15.6C16.7,15.75 16.75,16.15 16.6,16.45M12,2A10,10 0 0,0 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z",dq="M18,18H6V6H18V18Z",fq="M11,9L12.42,10.42L8.83,14H18V4H20V16H8.83L12.42,19.58L11,21L5,15L11,9Z",mq="M14,3.23V5.29C16.89,6.15 19,8.83 19,12C19,15.17 16.89,17.84 14,18.7V20.77C18,19.86 21,16.28 21,12C21,7.72 18,4.14 14,3.23M16.5,12C16.5,10.23 15.5,8.71 14,7.97V16C15.5,15.29 16.5,13.76 16.5,12M3,9V15H7L12,20V4L7,9H3Z",pq="M12,4L9.91,6.09L12,8.18M4.27,3L3,4.27L7.73,9H3V15H7L12,20V13.27L16.25,17.53C15.58,18.04 14.83,18.46 14,18.7V20.77C15.38,20.45 16.63,19.82 17.68,18.96L19.73,21L21,19.73L12,10.73M19,12C19,12.94 18.8,13.82 18.46,14.64L19.97,16.15C20.62,14.91 21,13.5 21,12C21,7.72 18,4.14 14,3.23V5.29C16.89,6.15 19,8.83 19,12M16.5,12C16.5,10.23 15.5,8.71 14,7.97V10.18L16.45,12.63C16.5,12.43 16.5,12.21 16.5,12Z",hq="M16.36,14C16.44,13.34 16.5,12.68 16.5,12C16.5,11.32 16.44,10.66 16.36,10H19.74C19.9,10.64 20,11.31 20,12C20,12.69 19.9,13.36 19.74,14M14.59,19.56C15.19,18.45 15.65,17.25 15.97,16H18.92C17.96,17.65 16.43,18.93 14.59,19.56M14.34,14H9.66C9.56,13.34 9.5,12.68 9.5,12C9.5,11.32 9.56,10.65 9.66,10H14.34C14.43,10.65 14.5,11.32 14.5,12C14.5,12.68 14.43,13.34 14.34,14M12,19.96C11.17,18.76 10.5,17.43 10.09,16H13.91C13.5,17.43 12.83,18.76 12,19.96M8,8H5.08C6.03,6.34 7.57,5.06 9.4,4.44C8.8,5.55 8.35,6.75 8,8M5.08,16H8C8.35,17.25 8.8,18.45 9.4,19.56C7.57,18.93 6.03,17.65 5.08,16M4.26,14C4.1,13.36 4,12.69 4,12C4,11.31 4.1,10.64 4.26,10H7.64C7.56,10.66 7.5,11.32 7.5,12C7.5,12.68 7.56,13.34 7.64,14M12,4.03C12.83,5.23 13.5,6.57 13.91,8H10.09C10.5,6.57 11.17,5.23 12,4.03M18.92,8H15.97C15.65,6.75 15.19,5.55 14.59,4.44C16.43,5.07 17.96,6.34 18.92,8M12,2C6.47,2 2,6.5 2,12A10,10 0 0,0 12,22A10,10 0 0,0 22,12A10,10 0 0,0 12,2Z";const _q={title:[String],spin:[Boolean],width:[Number,String],height:[Number,String],ariaLabel:[String],staticClass:[String],class:[String],name:{type:String,required:!0,default:"alert"},size:{type:[Number,String],default:24},viewBox:{type:String,default:"0 0 24 24"},xmlns:{type:String,default:"http://www.w3.org/2000/svg"},role:{type:String,default:"img"},spin:{type:Boolean,default:!1}};const gq=e=>e.charAt(0).toUpperCase()+e.slice(1),yq=e=>e.split("-").map(gq).join(""),vq=(e,t,n)=>{const r=e[`mdi${yq(t.name)}`]||pU,s=Je({role:t.role,"aria-label":t.ariaLabel},n),o={fill:"currentColor",width:t.width||t.size,height:t.height||t.size,viewBox:t.viewBox,xmlns:t.xmlns};return{spanAttrs:s,svgAttrs:o,pathAttrs:{d:r}}},bq=(e,t)=>({[t.staticClass||""]:!0,[t.class||""]:!0,[`mdi mdi-${e.name}`]:!0,"mdi-spin":e.spin===!0}),wq=(e,t={})=>({install(n,{icons:r}){if(r===void 0)throw new Error("Icons must be provided separately");n.component("mdicon",Ln(Je({name:"MDIcon",props:_q},t),{render:e(r)}))}}),Cq=e=>function(){const{spanAttrs:n,svgAttrs:r,pathAttrs:s}=vq(e,this,this.$attrs);return Cn("span",Ln(Je({},n),{class:bq(this,this)}),[Cn("svg",r,[this.title?Cn("title",[this.title]):void 0,Cn("path",s)])])};var xq=wq(Cq);class Ds extends Error{}class kq extends Ds{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class Sq extends Ds{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class Eq extends Ds{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class Zo extends Ds{}class jv extends Ds{constructor(t){super(`Invalid unit ${t}`)}}class Bn extends Ds{}class Nr extends Ds{constructor(){super("Zone is an abstract class")}}const Te="numeric",sr="short",Fn="long",ad={year:Te,month:Te,day:Te},Bv={year:Te,month:sr,day:Te},$q={year:Te,month:sr,day:Te,weekday:sr},Hv={year:Te,month:Fn,day:Te},Uv={year:Te,month:Fn,day:Te,weekday:Fn},qv={hour:Te,minute:Te},Wv={hour:Te,minute:Te,second:Te},Gv={hour:Te,minute:Te,second:Te,timeZoneName:sr},Kv={hour:Te,minute:Te,second:Te,timeZoneName:Fn},Yv={hour:Te,minute:Te,hourCycle:"h23"},Zv={hour:Te,minute:Te,second:Te,hourCycle:"h23"},Jv={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:sr},Xv={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:Fn},Qv={year:Te,month:Te,day:Te,hour:Te,minute:Te},e1={year:Te,month:Te,day:Te,hour:Te,minute:Te,second:Te},t1={year:Te,month:sr,day:Te,hour:Te,minute:Te},n1={year:Te,month:sr,day:Te,hour:Te,minute:Te,second:Te},zq={year:Te,month:sr,day:Te,weekday:sr,hour:Te,minute:Te},r1={year:Te,month:Fn,day:Te,hour:Te,minute:Te,timeZoneName:sr},s1={year:Te,month:Fn,day:Te,hour:Te,minute:Te,second:Te,timeZoneName:sr},o1={year:Te,month:Fn,day:Te,weekday:Fn,hour:Te,minute:Te,timeZoneName:Fn},i1={year:Te,month:Fn,day:Te,weekday:Fn,hour:Te,minute:Te,second:Te,timeZoneName:Fn};function dt(e){return typeof e=="undefined"}function ks(e){return typeof e=="number"}function mu(e){return typeof e=="number"&&e%1===0}function Aq(e){return typeof e=="string"}function Oq(e){return Object.prototype.toString.call(e)==="[object Date]"}function a1(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function Tq(e){return Array.isArray(e)?e:[e]}function hh(e,t,n){if(e.length!==0)return e.reduce((r,s)=>{const o=[t(s),s];return r&&n(r[0],o[0])===r[0]?r:o},null)[1]}function Pq(e,t){return t.reduce((n,r)=>(n[r]=e[r],n),{})}function wo(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function xr(e,t,n){return mu(e)&&e>=t&&e<=n}function Dq(e,t){return e-t*Math.floor(e/t)}function qt(e,t=2){const n=e<0;let r;return n?r="-"+(""+-e).padStart(t,"0"):r=(""+e).padStart(t,"0"),r}function Ur(e){if(!(dt(e)||e===null||e===""))return parseInt(e,10)}function fs(e){if(!(dt(e)||e===null||e===""))return parseFloat(e)}function Tf(e){if(!(dt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Pf(e,t,n=!1){const r=10**t;return(n?Math.trunc:Math.round)(e*r)/r}function Vi(e){return e%4===0&&(e%100!==0||e%400===0)}function gi(e){return Vi(e)?366:365}function Sl(e,t){const n=Dq(t-1,12)+1,r=e+(t-n)/12;return n===2?Vi(r)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Df(e){let t=Date.UTC(e.year,e.month-1,e.day,e.hour,e.minute,e.second,e.millisecond);return e.year<100&&e.year>=0&&(t=new Date(t),t.setUTCFullYear(t.getUTCFullYear()-1900)),+t}function El(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,r=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||r===3?53:52}function ld(e){return e>99?e:e>60?1900+e:2e3+e}function l1(e,t,n,r=null){const s=new Date(e),o={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};r&&(o.timeZone=r);const i=Je({timeZoneName:t},o),a=new Intl.DateTimeFormat(n,i).formatToParts(s).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function pu(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const r=parseInt(t,10)||0,s=n<0||Object.is(n,-0)?-r:r;return n*60+s}function u1(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Bn(`Invalid unit value ${e}`);return t}function $l(e,t){const n={};for(const r in e)if(wo(e,r)){const s=e[r];if(s==null)continue;n[t(r)]=u1(s)}return n}function zl(e,t){const n=Math.trunc(Math.abs(e/60)),r=Math.trunc(Math.abs(e%60)),s=e>=0?"+":"-";switch(t){case"short":return`${s}${qt(n,2)}:${qt(r,2)}`;case"narrow":return`${s}${n}${r>0?`:${r}`:""}`;case"techie":return`${s}${qt(n,2)}${qt(r,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function hu(e){return Pq(e,["hour","minute","second","millisecond"])}const Fq=/[A-Za-z_+-]{1,256}(:?\/[A-Za-z0-9_+-]{1,256}(\/[A-Za-z0-9_+-]{1,256})?)?/,Iq=["January","February","March","April","May","June","July","August","September","October","November","December"],c1=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],Mq=["J","F","M","A","M","J","J","A","S","O","N","D"];function d1(e){switch(e){case"narrow":return[...Mq];case"short":return[...c1];case"long":return[...Iq];case"numeric":return["1","2","3","4","5","6","7","8","9","10","11","12"];case"2-digit":return["01","02","03","04","05","06","07","08","09","10","11","12"];default:return null}}const f1=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],m1=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],Rq=["M","T","W","T","F","S","S"];function p1(e){switch(e){case"narrow":return[...Rq];case"short":return[...m1];case"long":return[...f1];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const h1=["AM","PM"],Lq=["Before Christ","Anno Domini"],Nq=["BC","AD"],Vq=["B","A"];function _1(e){switch(e){case"narrow":return[...Vq];case"short":return[...Nq];case"long":return[...Lq];default:return null}}function jq(e){return h1[e.hour<12?0:1]}function Bq(e,t){return p1(t)[e.weekday-1]}function Hq(e,t){return d1(t)[e.month-1]}function Uq(e,t){return _1(t)[e.year<0?0:1]}function qq(e,t,n="always",r=!1){const s={years:["year","yr."],quarters:["quarter","qtr."],months:["month","mo."],weeks:["week","wk."],days:["day","day","days"],hours:["hour","hr."],minutes:["minute","min."],seconds:["second","sec."]},o=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&o){const m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${s[e][0]}`;case-1:return m?"yesterday":`last ${s[e][0]}`;case 0:return m?"today":`this ${s[e][0]}`}}const i=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,u=s[e],d=r?l?u[1]:u[2]||u[1]:l?s[e][0]:e;return i?`${a} ${d} ago`:`in ${a} ${d}`}function _h(e,t){let n="";for(const r of e)r.literal?n+=r.val:n+=t(r.val);return n}const Wq={D:ad,DD:Bv,DDD:Hv,DDDD:Uv,t:qv,tt:Wv,ttt:Gv,tttt:Kv,T:Yv,TT:Zv,TTT:Jv,TTTT:Xv,f:Qv,ff:t1,fff:r1,ffff:o1,F:e1,FF:n1,FFF:s1,FFFF:i1};class xn{static create(t,n={}){return new xn(t,n)}static parseFormat(t){let n=null,r="",s=!1;const o=[];for(let i=0;i<t.length;i++){const a=t.charAt(i);a==="'"?(r.length>0&&o.push({literal:s,val:r}),n=null,r="",s=!s):s||a===n?r+=a:(r.length>0&&o.push({literal:!1,val:r}),r=a,n=a)}return r.length>0&&o.push({literal:s,val:r}),o}static macroTokenToFormatOpts(t){return Wq[t]}constructor(t,n){this.opts=n,this.loc=t,this.systemLoc=null}formatWithSystemDefault(t,n){return this.systemLoc===null&&(this.systemLoc=this.loc.redefaultToSystem()),this.systemLoc.dtFormatter(t,Je(Je({},this.opts),n)).format()}formatDateTime(t,n={}){return this.loc.dtFormatter(t,Je(Je({},this.opts),n)).format()}formatDateTimeParts(t,n={}){return this.loc.dtFormatter(t,Je(Je({},this.opts),n)).formatToParts()}resolvedOptions(t,n={}){return this.loc.dtFormatter(t,Je(Je({},this.opts),n)).resolvedOptions()}num(t,n=0){if(this.opts.forceSimple)return qt(t,n);const r=Je({},this.opts);return n>0&&(r.padTo=n),this.loc.numberFormatter(r).format(t)}formatDateTimeFromString(t,n){const r=this.loc.listingMode()==="en",s=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",o=(p,h)=>this.loc.extract(t,p,h),i=p=>t.isOffsetFixed&&t.offset===0&&p.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,p.format):"",a=()=>r?jq(t):o({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(p,h)=>r?Hq(t,p):o(h?{month:p}:{month:p,day:"numeric"},"month"),u=(p,h)=>r?Bq(t,p):o(h?{weekday:p}:{weekday:p,month:"long",day:"numeric"},"weekday"),d=p=>{const h=xn.macroTokenToFormatOpts(p);return h?this.formatWithSystemDefault(t,h):p},m=p=>r?Uq(t,p):o({era:p},"era"),f=p=>{switch(p){case"S":return this.num(t.millisecond);case"u":case"SSS":return this.num(t.millisecond,3);case"s":return this.num(t.second);case"ss":return this.num(t.second,2);case"uu":return this.num(Math.floor(t.millisecond/10),2);case"uuu":return this.num(Math.floor(t.millisecond/100));case"m":return this.num(t.minute);case"mm":return this.num(t.minute,2);case"h":return this.num(t.hour%12===0?12:t.hour%12);case"hh":return this.num(t.hour%12===0?12:t.hour%12,2);case"H":return this.num(t.hour);case"HH":return this.num(t.hour,2);case"Z":return i({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return i({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return i({format:"techie",allowZ:this.opts.allowZ});case"ZZZZ":return t.zone.offsetName(t.ts,{format:"short",locale:this.loc.locale});case"ZZZZZ":return t.zone.offsetName(t.ts,{format:"long",locale:this.loc.locale});case"z":return t.zoneName;case"a":return a();case"d":return s?o({day:"numeric"},"day"):this.num(t.day);case"dd":return s?o({day:"2-digit"},"day"):this.num(t.day,2);case"c":return this.num(t.weekday);case"ccc":return u("short",!0);case"cccc":return u("long",!0);case"ccccc":return u("narrow",!0);case"E":return this.num(t.weekday);case"EEE":return u("short",!1);case"EEEE":return u("long",!1);case"EEEEE":return u("narrow",!1);case"L":return s?o({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return s?o({month:"2-digit",day:"numeric"},"month"):this.num(t.month,2);case"LLL":return l("short",!0);case"LLLL":return l("long",!0);case"LLLLL":return l("narrow",!0);case"M":return s?o({month:"numeric"},"month"):this.num(t.month);case"MM":return s?o({month:"2-digit"},"month"):this.num(t.month,2);case"MMM":return l("short",!1);case"MMMM":return l("long",!1);case"MMMMM":return l("narrow",!1);case"y":return s?o({year:"numeric"},"year"):this.num(t.year);case"yy":return s?o({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return s?o({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return s?o({year:"numeric"},"year"):this.num(t.year,6);case"G":return m("short");case"GG":return m("long");case"GGGGG":return m("narrow");case"kk":return this.num(t.weekYear.toString().slice(-2),2);case"kkkk":return this.num(t.weekYear,4);case"W":return this.num(t.weekNumber);case"WW":return this.num(t.weekNumber,2);case"o":return this.num(t.ordinal);case"ooo":return this.num(t.ordinal,3);case"q":return this.num(t.quarter);case"qq":return this.num(t.quarter,2);case"X":return this.num(Math.floor(t.ts/1e3));case"x":return this.num(t.ts);default:return d(p)}};return _h(xn.parseFormat(n),f)}formatDurationFromString(t,n){const r=l=>{switch(l[0]){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":return"hour";case"d":return"day";case"w":return"week";case"M":return"month";case"y":return"year";default:return null}},s=l=>u=>{const d=r(u);return d?this.num(l.get(d),u.length):u},o=xn.parseFormat(n),i=o.reduce((l,{literal:u,val:d})=>u?l:l.concat(d),[]),a=t.shiftTo(...i.map(r).filter(l=>l));return _h(o,s(a))}}class tr{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class ji{get type(){throw new Nr}get name(){throw new Nr}get isUniversal(){throw new Nr}offsetName(t,n){throw new Nr}formatOffset(t,n){throw new Nr}offset(t){throw new Nr}equals(t){throw new Nr}get isValid(){throw new Nr}}let sc=null;class Ff extends ji{static get instance(){return sc===null&&(sc=new Ff),sc}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return l1(t,n,r)}formatOffset(t,n){return zl(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let rl={};function Gq(e){return rl[e]||(rl[e]=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:e,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",era:"short"})),rl[e]}const Kq={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function Yq(e,t){const n=e.format(t).replace(/\u200E/g,""),r=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,s,o,i,a,l,u,d]=r;return[i,s,o,a,l,u,d]}function Zq(e,t){const n=e.formatToParts(t),r=[];for(let s=0;s<n.length;s++){const{type:o,value:i}=n[s],a=Kq[o];o==="era"?r[a]=i:dt(a)||(r[a]=parseInt(i,10))}return r}let Ba={};class zr extends ji{static create(t){return Ba[t]||(Ba[t]=new zr(t)),Ba[t]}static resetCache(){Ba={},rl={}}static isValidSpecifier(t){return this.isValidZone(t)}static isValidZone(t){if(!t)return!1;try{return new Intl.DateTimeFormat("en-US",{timeZone:t}).format(),!0}catch{return!1}}constructor(t){super(),this.zoneName=t,this.valid=zr.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:r}){return l1(t,n,r,this.name)}formatOffset(t,n){return zl(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const r=Gq(this.name);let[s,o,i,a,l,u,d]=r.formatToParts?Zq(r,n):Yq(r,n);a==="BC"&&(s=-Math.abs(s)+1);const f=Df({year:s,month:o,day:i,hour:l===24?0:l,minute:u,second:d,millisecond:0});let p=+n;const h=p%1e3;return p-=h>=0?h:1e3+h,(f-p)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let oc=null;class mn extends ji{static get utcInstance(){return oc===null&&(oc=new mn(0)),oc}static instance(t){return t===0?mn.utcInstance:new mn(t)}static parseSpecifier(t){if(t){const n=t.match(/^utc(?:([+-]\d{1,2})(?::(\d{2}))?)?$/i);if(n)return new mn(pu(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${zl(this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return zl(this.fixed,n)}get isUniversal(){return!0}offset(){return this.fixed}equals(t){return t.type==="fixed"&&t.fixed===this.fixed}get isValid(){return!0}}class Jq extends ji{constructor(t){super(),this.zoneName=t}get type(){return"invalid"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(){return null}formatOffset(){return""}offset(){return NaN}equals(){return!1}get isValid(){return!1}}function Wr(e,t){if(dt(e)||e===null)return t;if(e instanceof ji)return e;if(Aq(e)){const n=e.toLowerCase();return n==="local"||n==="system"?t:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||zr.create(e)}else return ks(e)?mn.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new Jq(e)}let gh=()=>Date.now(),yh="system",vh=null,bh=null,wh=null,Ch;class Kt{static get now(){return gh}static set now(t){gh=t}static set defaultZone(t){yh=t}static get defaultZone(){return Wr(yh,Ff.instance)}static get defaultLocale(){return vh}static set defaultLocale(t){vh=t}static get defaultNumberingSystem(){return bh}static set defaultNumberingSystem(t){bh=t}static get defaultOutputCalendar(){return wh}static set defaultOutputCalendar(t){wh=t}static get throwOnInvalid(){return Ch}static set throwOnInvalid(t){Ch=t}static resetCaches(){zt.resetCache(),zr.resetCache()}}let xh={};function Xq(e,t={}){const n=JSON.stringify([e,t]);let r=xh[n];return r||(r=new Intl.ListFormat(e,t),xh[n]=r),r}let ud={};function cd(e,t={}){const n=JSON.stringify([e,t]);let r=ud[n];return r||(r=new Intl.DateTimeFormat(e,t),ud[n]=r),r}let dd={};function Qq(e,t={}){const n=JSON.stringify([e,t]);let r=dd[n];return r||(r=new Intl.NumberFormat(e,t),dd[n]=r),r}let fd={};function eW(e,t={}){const i=t,{base:n}=i,r=$u(i,["base"]),s=JSON.stringify([e,r]);let o=fd[s];return o||(o=new Intl.RelativeTimeFormat(e,t),fd[s]=o),o}let Jo=null;function tW(){return Jo||(Jo=new Intl.DateTimeFormat().resolvedOptions().locale,Jo)}function nW(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const r=e.substring(0,t);try{n=cd(e).resolvedOptions()}catch{n=cd(r).resolvedOptions()}const{numberingSystem:s,calendar:o}=n;return[r,s,o]}}function rW(e,t,n){return(n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function sW(e){const t=[];for(let n=1;n<=12;n++){const r=Qe.utc(2016,n,1);t.push(e(r))}return t}function oW(e){const t=[];for(let n=1;n<=7;n++){const r=Qe.utc(2016,11,13+n);t.push(e(r))}return t}function Ha(e,t,n,r,s){const o=e.listingMode(n);return o==="error"?null:o==="en"?r(t):s(t)}function iW(e){return e.numberingSystem&&e.numberingSystem!=="latn"?!1:e.numberingSystem==="latn"||!e.locale||e.locale.startsWith("en")||new Intl.DateTimeFormat(e.intl).resolvedOptions().numberingSystem==="latn"}class aW{constructor(t,n,r){this.padTo=r.padTo||0,this.floor=r.floor||!1;const a=r,{padTo:s,floor:o}=a,i=$u(a,["padTo","floor"]);if(!n||Object.keys(i).length>0){const l=Je({useGrouping:!1},r);r.padTo>0&&(l.minimumIntegerDigits=r.padTo),this.inf=Qq(t,l)}}format(t){if(this.inf){const n=this.floor?Math.floor(t):t;return this.inf.format(n)}else{const n=this.floor?Math.floor(t):Pf(t,3);return qt(n,this.padTo)}}}class lW{constructor(t,n,r){this.opts=r;let s;if(t.zone.isUniversal){const i=-1*(t.offset/60),a=i>=0?`Etc/GMT+${i}`:`Etc/GMT${i}`;t.offset!==0&&zr.create(a).valid?(s=a,this.dt=t):(s="UTC",r.timeZoneName?this.dt=t:this.dt=t.offset===0?t:Qe.fromMillis(t.ts+t.offset*60*1e3))}else t.zone.type==="system"?this.dt=t:(this.dt=t,s=t.zone.name);const o=Je({},this.opts);s&&(o.timeZone=s),this.dtf=cd(n,o)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class uW{constructor(t,n,r){this.opts=Je({style:"long"},r),!n&&a1()&&(this.rtf=eW(t,r))}format(t,n){return this.rtf?this.rtf.format(t,n):qq(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class zt{static fromOpts(t){return zt.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,r,s=!1){const o=t||Kt.defaultLocale,i=o||(s?"en-US":tW()),a=n||Kt.defaultNumberingSystem,l=r||Kt.defaultOutputCalendar;return new zt(i,a,l,o)}static resetCache(){Jo=null,ud={},dd={},fd={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:r}={}){return zt.create(t,n,r)}constructor(t,n,r,s){const[o,i,a]=nW(t);this.locale=o,this.numberingSystem=n||i||null,this.outputCalendar=r||a||null,this.intl=rW(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=s,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=iW(this)),this.fastNumbersCached}listingMode(){const t=this.isEnglish(),n=(this.numberingSystem===null||this.numberingSystem==="latn")&&(this.outputCalendar===null||this.outputCalendar==="gregory");return t&&n?"en":"intl"}clone(t){return!t||Object.getOwnPropertyNames(t).length===0?this:zt.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(Ln(Je({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(Ln(Je({},t),{defaultToEN:!1}))}months(t,n=!1,r=!0){return Ha(this,t,r,d1,()=>{const s=n?{month:t,day:"numeric"}:{month:t},o=n?"format":"standalone";return this.monthsCache[o][t]||(this.monthsCache[o][t]=sW(i=>this.extract(i,s,"month"))),this.monthsCache[o][t]})}weekdays(t,n=!1,r=!0){return Ha(this,t,r,p1,()=>{const s=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},o=n?"format":"standalone";return this.weekdaysCache[o][t]||(this.weekdaysCache[o][t]=oW(i=>this.extract(i,s,"weekday"))),this.weekdaysCache[o][t]})}meridiems(t=!0){return Ha(this,void 0,t,()=>h1,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Qe.utc(2016,11,13,9),Qe.utc(2016,11,13,19)].map(r=>this.extract(r,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return Ha(this,t,n,_1,()=>{const r={era:t};return this.eraCache[t]||(this.eraCache[t]=[Qe.utc(-40,1,1),Qe.utc(2017,1,1)].map(s=>this.extract(s,r,"era"))),this.eraCache[t]})}extract(t,n,r){const s=this.dtFormatter(t,n),o=s.formatToParts(),i=o.find(a=>a.type.toLowerCase()===r);return i?i.value:null}numberFormatter(t={}){return new aW(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new lW(t,this.intl,n)}relFormatter(t={}){return new uW(this.intl,this.isEnglish(),t)}listFormatter(t={}){return Xq(this.intl,t)}isEnglish(){return this.locale==="en"||this.locale.toLowerCase()==="en-us"||new Intl.DateTimeFormat(this.intl).resolvedOptions().locale.startsWith("en-us")}equals(t){return this.locale===t.locale&&this.numberingSystem===t.numberingSystem&&this.outputCalendar===t.outputCalendar}}function Eo(...e){const t=e.reduce((n,r)=>n+r.source,"");return RegExp(`^${t}$`)}function Fs(...e){return t=>e.reduce(([n,r,s],o)=>{const[i,a,l]=o(t,s);return[Je(Je({},n),i),r||a,l]},[{},null,1]).slice(0,2)}function $o(e,...t){if(e==null)return[null,null];for(const[n,r]of t){const s=n.exec(e);if(s)return r(s)}return[null,null]}function g1(...e){return(t,n)=>{const r={};let s;for(s=0;s<e.length;s++)r[e[s]]=Ur(t[n+s]);return[r,null,n+s]}}const y1=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,If=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,v1=RegExp(`${If.source}${y1.source}?`),Mf=RegExp(`(?:T${v1.source})?`),cW=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,dW=/(\d{4})-?W(\d\d)(?:-?(\d))?/,fW=/(\d{4})-?(\d{3})/,mW=g1("weekYear","weekNumber","weekDay"),pW=g1("year","ordinal"),hW=/(\d{4})-(\d\d)-(\d\d)/,b1=RegExp(`${If.source} ?(?:${y1.source}|(${Fq.source}))?`),_W=RegExp(`(?: ${b1.source})?`);function io(e,t,n){const r=e[t];return dt(r)?n:Ur(r)}function w1(e,t){return[{year:io(e,t),month:io(e,t+1,1),day:io(e,t+2,1)},null,t+3]}function Is(e,t){return[{hours:io(e,t,0),minutes:io(e,t+1,0),seconds:io(e,t+2,0),milliseconds:Tf(e[t+3])},null,t+4]}function zo(e,t){const n=!e[t]&&!e[t+1],r=pu(e[t+1],e[t+2]),s=n?null:mn.instance(r);return[{},s,t+3]}function C1(e,t){const n=e[t]?zr.create(e[t]):null;return[{},n,t+1]}const gW=RegExp(`^T?${If.source}$`),yW=/^-?P(?:(?:(-?\d{1,9}(?:\.\d{1,9})?)Y)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,9}(?:\.\d{1,9})?)W)?(?:(-?\d{1,9}(?:\.\d{1,9})?)D)?(?:T(?:(-?\d{1,9}(?:\.\d{1,9})?)H)?(?:(-?\d{1,9}(?:\.\d{1,9})?)M)?(?:(-?\d{1,20})(?:[.,](-?\d{1,9}))?S)?)?)$/;function vW(e){const[t,n,r,s,o,i,a,l,u]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(p,h=!1)=>p!==void 0&&(h||p&&d)?-p:p;return[{years:f(fs(n)),months:f(fs(r)),weeks:f(fs(s)),days:f(fs(o)),hours:f(fs(i)),minutes:f(fs(a)),seconds:f(fs(l),l==="-0"),milliseconds:f(Tf(u),m)}]}const bW={GMT:0,EDT:-4*60,EST:-5*60,CDT:-5*60,CST:-6*60,MDT:-6*60,MST:-7*60,PDT:-7*60,PST:-8*60};function Rf(e,t,n,r,s,o,i){const a={year:t.length===2?ld(Ur(t)):Ur(t),month:c1.indexOf(n)+1,day:Ur(r),hour:Ur(s),minute:Ur(o)};return i&&(a.second=Ur(i)),e&&(a.weekday=e.length>3?f1.indexOf(e)+1:m1.indexOf(e)+1),a}const wW=/^(?:(Mon|Tue|Wed|Thu|Fri|Sat|Sun),\s)?(\d{1,2})\s(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)\s(\d{2,4})\s(\d\d):(\d\d)(?::(\d\d))?\s(?:(UT|GMT|[ECMP][SD]T)|([Zz])|(?:([+-]\d\d)(\d\d)))$/;function CW(e){const[,t,n,r,s,o,i,a,l,u,d,m]=e,f=Rf(t,s,r,n,o,i,a);let p;return l?p=bW[l]:u?p=0:p=pu(d,m),[f,new mn(p)]}function xW(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const kW=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun), (\d\d) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) (\d{4}) (\d\d):(\d\d):(\d\d) GMT$/,SW=/^(Monday|Tuesday|Wedsday|Thursday|Friday|Saturday|Sunday), (\d\d)-(Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec)-(\d\d) (\d\d):(\d\d):(\d\d) GMT$/,EW=/^(Mon|Tue|Wed|Thu|Fri|Sat|Sun) (Jan|Feb|Mar|Apr|May|Jun|Jul|Aug|Sep|Oct|Nov|Dec) ( \d|\d\d) (\d\d):(\d\d):(\d\d) (\d{4})$/;function kh(e){const[,t,n,r,s,o,i,a]=e;return[Rf(t,s,r,n,o,i,a),mn.utcInstance]}function $W(e){const[,t,n,r,s,o,i,a]=e;return[Rf(t,a,n,r,s,o,i),mn.utcInstance]}const zW=Eo(cW,Mf),AW=Eo(dW,Mf),OW=Eo(fW,Mf),TW=Eo(v1),PW=Fs(w1,Is,zo),DW=Fs(mW,Is,zo),FW=Fs(pW,Is,zo),IW=Fs(Is,zo);function MW(e){return $o(e,[zW,PW],[AW,DW],[OW,FW],[TW,IW])}function RW(e){return $o(xW(e),[wW,CW])}function LW(e){return $o(e,[kW,kh],[SW,kh],[EW,$W])}function NW(e){return $o(e,[yW,vW])}const VW=Fs(Is);function jW(e){return $o(e,[gW,VW])}const BW=Eo(hW,_W),HW=Eo(b1),UW=Fs(w1,Is,zo,C1),qW=Fs(Is,zo,C1);function WW(e){return $o(e,[BW,UW],[HW,qW])}const GW="Invalid Duration",x1={weeks:{days:7,hours:7*24,minutes:7*24*60,seconds:7*24*60*60,milliseconds:7*24*60*60*1e3},days:{hours:24,minutes:24*60,seconds:24*60*60,milliseconds:24*60*60*1e3},hours:{minutes:60,seconds:60*60,milliseconds:60*60*1e3},minutes:{seconds:60,milliseconds:60*1e3},seconds:{milliseconds:1e3}},KW=Je({years:{quarters:4,months:12,weeks:52,days:365,hours:365*24,minutes:365*24*60,seconds:365*24*60*60,milliseconds:365*24*60*60*1e3},quarters:{months:3,weeks:13,days:91,hours:91*24,minutes:91*24*60,seconds:91*24*60*60,milliseconds:91*24*60*60*1e3},months:{weeks:4,days:30,hours:30*24,minutes:30*24*60,seconds:30*24*60*60,milliseconds:30*24*60*60*1e3}},x1),jn=146097/400,Ws=146097/4800,YW=Je({years:{quarters:4,months:12,weeks:jn/7,days:jn,hours:jn*24,minutes:jn*24*60,seconds:jn*24*60*60,milliseconds:jn*24*60*60*1e3},quarters:{months:3,weeks:jn/28,days:jn/4,hours:jn*24/4,minutes:jn*24*60/4,seconds:jn*24*60*60/4,milliseconds:jn*24*60*60*1e3/4},months:{weeks:Ws/7,days:Ws,hours:Ws*24,minutes:Ws*24*60,seconds:Ws*24*60*60,milliseconds:Ws*24*60*60*1e3}},x1),gs=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],ZW=gs.slice(0).reverse();function ms(e,t,n=!1){const r={values:n?t.values:Je(Je({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new it(r)}function JW(e){return e<0?Math.floor(e):Math.ceil(e)}function k1(e,t,n,r,s){const o=e[s][n],i=t[n]/o,a=Math.sign(i)===Math.sign(r[s]),l=!a&&r[s]!==0&&Math.abs(i)<=1?JW(i):Math.trunc(i);r[s]+=l,t[n]-=l*o}function XW(e,t){ZW.reduce((n,r)=>dt(t[r])?n:(n&&k1(e,t,n,t,r),r),null)}class it{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||zt.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?YW:KW,this.isLuxonDuration=!0}static fromMillis(t,n){return it.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Bn(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new it({values:$l(t,it.normalizeUnit),loc:zt.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(t){if(ks(t))return it.fromMillis(t);if(it.isDuration(t))return t;if(typeof t=="object")return it.fromObject(t);throw new Bn(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[r]=NW(t);return r?it.fromObject(r,n):it.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[r]=jW(t);return r?it.fromObject(r,n):it.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Bn("need to specify a reason the Duration is invalid");const r=t instanceof tr?t:new tr(t,n);if(Kt.throwOnInvalid)throw new Eq(r);return new it({invalid:r})}static normalizeUnit(t){const n={year:"years",years:"years",quarter:"quarters",quarters:"quarters",month:"months",months:"months",week:"weeks",weeks:"weeks",day:"days",days:"days",hour:"hours",hours:"hours",minute:"minutes",minutes:"minutes",second:"seconds",seconds:"seconds",millisecond:"milliseconds",milliseconds:"milliseconds"}[t&&t.toLowerCase()];if(!n)throw new jv(t);return n}static isDuration(t){return t&&t.isLuxonDuration||!1}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}toFormat(t,n={}){const r=Ln(Je({},n),{floor:n.round!==!1&&n.floor!==!1});return this.isValid?xn.create(this.loc,r).formatDurationFromString(this,t):GW}toHuman(t={}){const n=gs.map(r=>{const s=this.values[r];return dt(s)?null:this.loc.numberFormatter(Ln(Je({style:"unit",unitDisplay:"long"},t),{unit:r.slice(0,-1)})).format(s)}).filter(r=>r);return this.loc.listFormatter(Je({type:"conjunction",style:t.listStyle||"narrow"},t)).format(n)}toObject(){return this.isValid?Je({},this.values):{}}toISO(){if(!this.isValid)return null;let t="P";return this.years!==0&&(t+=this.years+"Y"),(this.months!==0||this.quarters!==0)&&(t+=this.months+this.quarters*3+"M"),this.weeks!==0&&(t+=this.weeks+"W"),this.days!==0&&(t+=this.days+"D"),(this.hours!==0||this.minutes!==0||this.seconds!==0||this.milliseconds!==0)&&(t+="T"),this.hours!==0&&(t+=this.hours+"H"),this.minutes!==0&&(t+=this.minutes+"M"),(this.seconds!==0||this.milliseconds!==0)&&(t+=Pf(this.seconds+this.milliseconds/1e3,3)+"S"),t==="P"&&(t+="T0S"),t}toISOTime(t={}){if(!this.isValid)return null;const n=this.toMillis();if(n<0||n>=864e5)return null;t=Je({suppressMilliseconds:!1,suppressSeconds:!1,includePrefix:!1,format:"extended"},t);const r=this.shiftTo("hours","minutes","seconds","milliseconds");let s=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||r.seconds!==0||r.milliseconds!==0)&&(s+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||r.milliseconds!==0)&&(s+=".SSS"));let o=r.toFormat(s);return t.includePrefix&&(o="T"+o),o}toJSON(){return this.toISO()}toString(){return this.toISO()}toMillis(){return this.as("milliseconds")}valueOf(){return this.toMillis()}plus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t),r={};for(const s of gs)(wo(n.values,s)||wo(this.values,s))&&(r[s]=n.get(s)+this.get(s));return ms(this,{values:r},!0)}minus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const r of Object.keys(this.values))n[r]=u1(t(this.values[r],r));return ms(this,{values:n},!0)}get(t){return this[it.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n=Je(Je({},this.values),$l(t,it.normalizeUnit));return ms(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:r}={}){const s=this.loc.clone({locale:t,numberingSystem:n}),o={loc:s};return r&&(o.conversionAccuracy=r),ms(this,o)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return XW(this.matrix,t),ms(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(i=>it.normalizeUnit(i));const n={},r={},s=this.toObject();let o;for(const i of gs)if(t.indexOf(i)>=0){o=i;let a=0;for(const u in r)a+=this.matrix[u][i]*r[u],r[u]=0;ks(s[i])&&(a+=s[i]);const l=Math.trunc(a);n[i]=l,r[i]=(a*1e3-l*1e3)/1e3;for(const u in s)gs.indexOf(u)>gs.indexOf(i)&&k1(this.matrix,s,u,n,i)}else ks(s[i])&&(r[i]=s[i]);for(const i in r)r[i]!==0&&(n[o]+=i===o?r[i]:r[i]/this.matrix[o][i]);return ms(this,{values:n},!0).normalize()}negate(){if(!this.isValid)return this;const t={};for(const n of Object.keys(this.values))t[n]=this.values[n]===0?0:-this.values[n];return ms(this,{values:t},!0)}get years(){return this.isValid?this.values.years||0:NaN}get quarters(){return this.isValid?this.values.quarters||0:NaN}get months(){return this.isValid?this.values.months||0:NaN}get weeks(){return this.isValid?this.values.weeks||0:NaN}get days(){return this.isValid?this.values.days||0:NaN}get hours(){return this.isValid?this.values.hours||0:NaN}get minutes(){return this.isValid?this.values.minutes||0:NaN}get seconds(){return this.isValid?this.values.seconds||0:NaN}get milliseconds(){return this.isValid?this.values.milliseconds||0:NaN}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}equals(t){if(!this.isValid||!t.isValid||!this.loc.equals(t.loc))return!1;function n(r,s){return r===void 0||r===0?s===void 0||s===0:r===s}for(const r of gs)if(!n(this.values[r],t.values[r]))return!1;return!0}}const Lo="Invalid Interval";function QW(e,t){return!e||!e.isValid?It.invalid("missing or invalid start"):!t||!t.isValid?It.invalid("missing or invalid end"):t<e?It.invalid("end before start",`The end of an interval must be after its start, but you had start=${e.toISO()} and end=${t.toISO()}`):null}class It{constructor(t){this.s=t.start,this.e=t.end,this.invalid=t.invalid||null,this.isLuxonInterval=!0}static invalid(t,n=null){if(!t)throw new Bn("need to specify a reason the Interval is invalid");const r=t instanceof tr?t:new tr(t,n);if(Kt.throwOnInvalid)throw new Sq(r);return new It({invalid:r})}static fromDateTimes(t,n){const r=jo(t),s=jo(n),o=QW(r,s);return o==null?new It({start:r,end:s}):o}static after(t,n){const r=it.fromDurationLike(n),s=jo(t);return It.fromDateTimes(s,s.plus(r))}static before(t,n){const r=it.fromDurationLike(n),s=jo(t);return It.fromDateTimes(s.minus(r),s)}static fromISO(t,n){const[r,s]=(t||"").split("/",2);if(r&&s){let o,i;try{o=Qe.fromISO(r,n),i=o.isValid}catch{i=!1}let a,l;try{a=Qe.fromISO(s,n),l=a.isValid}catch{l=!1}if(i&&l)return It.fromDateTimes(o,a);if(i){const u=it.fromISO(s,n);if(u.isValid)return It.after(o,u)}else if(l){const u=it.fromISO(r,n);if(u.isValid)return It.before(a,u)}}return It.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static isInterval(t){return t&&t.isLuxonInterval||!1}get start(){return this.isValid?this.s:null}get end(){return this.isValid?this.e:null}get isValid(){return this.invalidReason===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}length(t="milliseconds"){return this.isValid?this.toDuration(t).get(t):NaN}count(t="milliseconds"){if(!this.isValid)return NaN;const n=this.start.startOf(t),r=this.end.startOf(t);return Math.floor(r.diff(n,t).get(t))+1}hasSame(t){return this.isValid?this.isEmpty()||this.e.minus(1).hasSame(this.s,t):!1}isEmpty(){return this.s.valueOf()===this.e.valueOf()}isAfter(t){return this.isValid?this.s>t:!1}isBefore(t){return this.isValid?this.e<=t:!1}contains(t){return this.isValid?this.s<=t&&this.e>t:!1}set({start:t,end:n}={}){return this.isValid?It.fromDateTimes(t||this.s,n||this.e):this}splitAt(...t){if(!this.isValid)return[];const n=t.map(jo).filter(i=>this.contains(i)).sort(),r=[];let{s}=this,o=0;for(;s<this.e;){const i=n[o]||this.e,a=+i>+this.e?this.e:i;r.push(It.fromDateTimes(s,a)),s=a,o+=1}return r}splitBy(t){const n=it.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:r}=this,s=1,o;const i=[];for(;r<this.e;){const a=this.start.plus(n.mapUnits(l=>l*s));o=+a>+this.e?this.e:a,i.push(It.fromDateTimes(r,o)),r=o,s+=1}return i}divideEqually(t){return this.isValid?this.splitBy(this.length()/t).slice(0,t):[]}overlaps(t){return this.e>t.s&&this.s<t.e}abutsStart(t){return this.isValid?+this.e==+t.s:!1}abutsEnd(t){return this.isValid?+t.e==+this.s:!1}engulfs(t){return this.isValid?this.s<=t.s&&this.e>=t.e:!1}equals(t){return!this.isValid||!t.isValid?!1:this.s.equals(t.s)&&this.e.equals(t.e)}intersection(t){if(!this.isValid)return this;const n=this.s>t.s?this.s:t.s,r=this.e<t.e?this.e:t.e;return n>=r?null:It.fromDateTimes(n,r)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,r=this.e>t.e?this.e:t.e;return It.fromDateTimes(n,r)}static merge(t){const[n,r]=t.sort((s,o)=>s.s-o.s).reduce(([s,o],i)=>o?o.overlaps(i)||o.abutsStart(i)?[s,o.union(i)]:[s.concat([o]),i]:[s,i],[[],null]);return r&&n.push(r),n}static xor(t){let n=null,r=0;const s=[],o=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),i=Array.prototype.concat(...o),a=i.sort((l,u)=>l.time-u.time);for(const l of a)r+=l.type==="s"?1:-1,r===1?n=l.time:(n&&+n!=+l.time&&s.push(It.fromDateTimes(n,l.time)),n=null);return It.merge(s)}difference(...t){return It.xor([this].concat(t)).map(n=>this.intersection(n)).filter(n=>n&&!n.isEmpty())}toString(){return this.isValid?`[${this.s.toISO()} \u2013 ${this.e.toISO()})`:Lo}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Lo}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Lo}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Lo}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Lo}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):it.invalid(this.invalidReason)}mapEndpoints(t){return It.fromDateTimes(t(this.s),t(this.e))}}class Ua{static hasDST(t=Kt.defaultZone){const n=Qe.now().setZone(t).set({month:12});return!t.isUniversal&&n.offset!==n.set({month:6}).offset}static isValidIANAZone(t){return zr.isValidZone(t)}static normalizeZone(t){return Wr(t,Kt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||zt.create(n,r,o)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null,outputCalendar:o="gregory"}={}){return(s||zt.create(n,r,o)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||zt.create(n,r,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:r=null,locObj:s=null}={}){return(s||zt.create(n,r,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return zt.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return zt.create(n,null,"gregory").eras(t)}static features(){return{relative:a1()}}}function Sh(e,t){const n=s=>s.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),r=n(t)-n(e);return Math.floor(it.fromMillis(r).as("days"))}function eG(e,t,n){const r=[["years",(a,l)=>l.year-a.year],["quarters",(a,l)=>l.quarter-a.quarter],["months",(a,l)=>l.month-a.month+(l.year-a.year)*12],["weeks",(a,l)=>{const u=Sh(a,l);return(u-u%7)/7}],["days",Sh]],s={};let o,i;for(const[a,l]of r)if(n.indexOf(a)>=0){o=a;let u=l(e,t);i=e.plus({[a]:u}),i>t?(e=e.plus({[a]:u-1}),u-=1):e=i,s[a]=u}return[e,s,i,o]}function tG(e,t,n,r){let[s,o,i,a]=eG(e,t,n);const l=t-s,u=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);u.length===0&&(i<t&&(i=s.plus({[a]:1})),i!==s&&(o[a]=(o[a]||0)+l/(i-s)));const d=it.fromObject(o,r);return u.length>0?it.fromMillis(l,r).shiftTo(...u).plus(d):d}const Lf={arab:"[\u0660-\u0669]",arabext:"[\u06F0-\u06F9]",bali:"[\u1B50-\u1B59]",beng:"[\u09E6-\u09EF]",deva:"[\u0966-\u096F]",fullwide:"[\uFF10-\uFF19]",gujr:"[\u0AE6-\u0AEF]",hanidec:"[\u3007|\u4E00|\u4E8C|\u4E09|\u56DB|\u4E94|\u516D|\u4E03|\u516B|\u4E5D]",khmr:"[\u17E0-\u17E9]",knda:"[\u0CE6-\u0CEF]",laoo:"[\u0ED0-\u0ED9]",limb:"[\u1946-\u194F]",mlym:"[\u0D66-\u0D6F]",mong:"[\u1810-\u1819]",mymr:"[\u1040-\u1049]",orya:"[\u0B66-\u0B6F]",tamldec:"[\u0BE6-\u0BEF]",telu:"[\u0C66-\u0C6F]",thai:"[\u0E50-\u0E59]",tibt:"[\u0F20-\u0F29]",latn:"\\d"},Eh={arab:[1632,1641],arabext:[1776,1785],bali:[6992,7001],beng:[2534,2543],deva:[2406,2415],fullwide:[65296,65303],gujr:[2790,2799],khmr:[6112,6121],knda:[3302,3311],laoo:[3792,3801],limb:[6470,6479],mlym:[3430,3439],mong:[6160,6169],mymr:[4160,4169],orya:[2918,2927],tamldec:[3046,3055],telu:[3174,3183],thai:[3664,3673],tibt:[3872,3881]},nG=Lf.hanidec.replace(/[\[|\]]/g,"").split("");function rG(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const r=e.charCodeAt(n);if(e[n].search(Lf.hanidec)!==-1)t+=nG.indexOf(e[n]);else for(const s in Eh){const[o,i]=Eh[s];r>=o&&r<=i&&(t+=r-o)}}return parseInt(t,10)}else return t}function Zn({numberingSystem:e},t=""){return new RegExp(`${Lf[e||"latn"]}${t}`)}const sG="missing Intl.DateTimeFormat.formatToParts support";function gt(e,t=n=>n){return{regex:e,deser:([n])=>t(rG(n))}}const oG=String.fromCharCode(160),S1=`( |${oG})`,E1=new RegExp(S1,"g");function iG(e){return e.replace(/\./g,"\\.?").replace(E1,S1)}function $h(e){return e.replace(/\./g,"").replace(E1," ").toLowerCase()}function Jn(e,t){return e===null?null:{regex:RegExp(e.map(iG).join("|")),deser:([n])=>e.findIndex(r=>$h(n)===$h(r))+t}}function zh(e,t){return{regex:e,deser:([,n,r])=>pu(n,r),groups:t}}function ic(e){return{regex:e,deser:([t])=>t}}function aG(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function lG(e,t){const n=Zn(t),r=Zn(t,"{2}"),s=Zn(t,"{3}"),o=Zn(t,"{4}"),i=Zn(t,"{6}"),a=Zn(t,"{1,2}"),l=Zn(t,"{1,3}"),u=Zn(t,"{1,6}"),d=Zn(t,"{1,9}"),m=Zn(t,"{2,4}"),f=Zn(t,"{4,6}"),p=g=>({regex:RegExp(aG(g.val)),deser:([b])=>b,literal:!0}),_=(g=>{if(e.literal)return p(g);switch(g.val){case"G":return Jn(t.eras("short",!1),0);case"GG":return Jn(t.eras("long",!1),0);case"y":return gt(u);case"yy":return gt(m,ld);case"yyyy":return gt(o);case"yyyyy":return gt(f);case"yyyyyy":return gt(i);case"M":return gt(a);case"MM":return gt(r);case"MMM":return Jn(t.months("short",!0,!1),1);case"MMMM":return Jn(t.months("long",!0,!1),1);case"L":return gt(a);case"LL":return gt(r);case"LLL":return Jn(t.months("short",!1,!1),1);case"LLLL":return Jn(t.months("long",!1,!1),1);case"d":return gt(a);case"dd":return gt(r);case"o":return gt(l);case"ooo":return gt(s);case"HH":return gt(r);case"H":return gt(a);case"hh":return gt(r);case"h":return gt(a);case"mm":return gt(r);case"m":return gt(a);case"q":return gt(a);case"qq":return gt(r);case"s":return gt(a);case"ss":return gt(r);case"S":return gt(l);case"SSS":return gt(s);case"u":return ic(d);case"uu":return ic(a);case"uuu":return gt(n);case"a":return Jn(t.meridiems(),0);case"kkkk":return gt(o);case"kk":return gt(m,ld);case"W":return gt(a);case"WW":return gt(r);case"E":case"c":return gt(n);case"EEE":return Jn(t.weekdays("short",!1,!1),1);case"EEEE":return Jn(t.weekdays("long",!1,!1),1);case"ccc":return Jn(t.weekdays("short",!0,!1),1);case"cccc":return Jn(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return zh(new RegExp(`([+-]${a.source})(?::(${r.source}))?`),2);case"ZZZ":return zh(new RegExp(`([+-]${a.source})(${r.source})?`),2);case"z":return ic(/[a-z_+-/]{1,256}?/i);default:return p(g)}})(e)||{invalidReason:sG};return _.token=e,_}const uG={year:{"2-digit":"yy",numeric:"yyyyy"},month:{numeric:"M","2-digit":"MM",short:"MMM",long:"MMMM"},day:{numeric:"d","2-digit":"dd"},weekday:{short:"EEE",long:"EEEE"},dayperiod:"a",dayPeriod:"a",hour:{numeric:"h","2-digit":"hh"},minute:{numeric:"m","2-digit":"mm"},second:{numeric:"s","2-digit":"ss"}};function cG(e,t,n){const{type:r,value:s}=e;if(r==="literal")return{literal:!0,val:s};const o=n[r];let i=uG[r];if(typeof i=="object"&&(i=i[o]),i)return{literal:!1,val:i}}function dG(e){return[`^${e.map(n=>n.regex).reduce((n,r)=>`${n}(${r.source})`,"")}$`,e]}function fG(e,t,n){const r=e.match(t);if(r){const s={};let o=1;for(const i in n)if(wo(n,i)){const a=n[i],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(s[a.token.val[0]]=a.deser(r.slice(o,o+l))),o+=l}return[r,s]}else return[r,{}]}function mG(e){const t=o=>{switch(o){case"S":return"millisecond";case"s":return"second";case"m":return"minute";case"h":case"H":return"hour";case"d":return"day";case"o":return"ordinal";case"L":case"M":return"month";case"y":return"year";case"E":case"c":return"weekday";case"W":return"weekNumber";case"k":return"weekYear";case"q":return"quarter";default:return null}};let n=null,r;return dt(e.z)||(n=zr.create(e.z)),dt(e.Z)||(n||(n=new mn(e.Z)),r=e.Z),dt(e.q)||(e.M=(e.q-1)*3+1),dt(e.h)||(e.h<12&&e.a===1?e.h+=12:e.h===12&&e.a===0&&(e.h=0)),e.G===0&&e.y&&(e.y=-e.y),dt(e.u)||(e.S=Tf(e.u)),[Object.keys(e).reduce((o,i)=>{const a=t(i);return a&&(o[a]=e[i]),o},{}),n,r]}let ac=null;function pG(){return ac||(ac=Qe.fromMillis(1555555555555)),ac}function hG(e,t){if(e.literal)return e;const n=xn.macroTokenToFormatOpts(e.val);if(!n)return e;const o=xn.create(t,n).formatDateTimeParts(pG()).map(i=>cG(i,t,n));return o.includes(void 0)?e:o}function _G(e,t){return Array.prototype.concat(...e.map(n=>hG(n,t)))}function $1(e,t,n){const r=_G(xn.parseFormat(n),e),s=r.map(i=>lG(i,e)),o=s.find(i=>i.invalidReason);if(o)return{input:t,tokens:r,invalidReason:o.invalidReason};{const[i,a]=dG(s),l=RegExp(i,"i"),[u,d]=fG(t,l,a),[m,f,p]=d?mG(d):[null,null,void 0];if(wo(d,"a")&&wo(d,"H"))throw new Zo("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:r,regex:l,rawMatches:u,matches:d,result:m,zone:f,specificOffset:p}}}function gG(e,t,n){const{result:r,zone:s,specificOffset:o,invalidReason:i}=$1(e,t,n);return[r,s,o,i]}const z1=[0,31,59,90,120,151,181,212,243,273,304,334],A1=[0,31,60,91,121,152,182,213,244,274,305,335];function Un(e,t){return new tr("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function O1(e,t,n){const r=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&r.setUTCFullYear(r.getUTCFullYear()-1900);const s=r.getUTCDay();return s===0?7:s}function T1(e,t,n){return n+(Vi(e)?A1:z1)[t-1]}function P1(e,t){const n=Vi(e)?A1:z1,r=n.findIndex(o=>o<t),s=t-n[r];return{month:r+1,day:s}}function md(e){const{year:t,month:n,day:r}=e,s=T1(t,n,r),o=O1(t,n,r);let i=Math.floor((s-o+10)/7),a;return i<1?(a=t-1,i=El(a)):i>El(t)?(a=t+1,i=1):a=t,Je({weekYear:a,weekNumber:i,weekday:o},hu(e))}function Ah(e){const{weekYear:t,weekNumber:n,weekday:r}=e,s=O1(t,1,4),o=gi(t);let i=n*7+r-s-3,a;i<1?(a=t-1,i+=gi(a)):i>o?(a=t+1,i-=gi(t)):a=t;const{month:l,day:u}=P1(a,i);return Je({year:a,month:l,day:u},hu(e))}function lc(e){const{year:t,month:n,day:r}=e,s=T1(t,n,r);return Je({year:t,ordinal:s},hu(e))}function Oh(e){const{year:t,ordinal:n}=e,{month:r,day:s}=P1(t,n);return Je({year:t,month:r,day:s},hu(e))}function yG(e){const t=mu(e.weekYear),n=xr(e.weekNumber,1,El(e.weekYear)),r=xr(e.weekday,1,7);return t?n?r?!1:Un("weekday",e.weekday):Un("week",e.week):Un("weekYear",e.weekYear)}function vG(e){const t=mu(e.year),n=xr(e.ordinal,1,gi(e.year));return t?n?!1:Un("ordinal",e.ordinal):Un("year",e.year)}function D1(e){const t=mu(e.year),n=xr(e.month,1,12),r=xr(e.day,1,Sl(e.year,e.month));return t?n?r?!1:Un("day",e.day):Un("month",e.month):Un("year",e.year)}function F1(e){const{hour:t,minute:n,second:r,millisecond:s}=e,o=xr(t,0,23)||t===24&&n===0&&r===0&&s===0,i=xr(n,0,59),a=xr(r,0,59),l=xr(s,0,999);return o?i?a?l?!1:Un("millisecond",s):Un("second",r):Un("minute",n):Un("hour",t)}const uc="Invalid DateTime",Th=864e13;function qa(e){return new tr("unsupported zone",`the zone "${e.name}" is not supported`)}function cc(e){return e.weekData===null&&(e.weekData=md(e.c)),e.weekData}function No(e,t){const n={ts:e.ts,zone:e.zone,c:e.c,o:e.o,loc:e.loc,invalid:e.invalid};return new Qe(Ln(Je(Je({},n),t),{old:n}))}function I1(e,t,n){let r=e-t*60*1e3;const s=n.offset(r);if(t===s)return[r,t];r-=(s-t)*60*1e3;const o=n.offset(r);return s===o?[r,s]:[e-Math.min(s,o)*60*1e3,Math.max(s,o)]}function Ph(e,t){e+=t*60*1e3;const n=new Date(e);return{year:n.getUTCFullYear(),month:n.getUTCMonth()+1,day:n.getUTCDate(),hour:n.getUTCHours(),minute:n.getUTCMinutes(),second:n.getUTCSeconds(),millisecond:n.getUTCMilliseconds()}}function sl(e,t,n){return I1(Df(e),t,n)}function Dh(e,t){const n=e.o,r=e.c.year+Math.trunc(t.years),s=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,o=Ln(Je({},e.c),{year:r,month:s,day:Math.min(e.c.day,Sl(r,s))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),i=it.fromObject({years:t.years-Math.trunc(t.years),quarters:t.quarters-Math.trunc(t.quarters),months:t.months-Math.trunc(t.months),weeks:t.weeks-Math.trunc(t.weeks),days:t.days-Math.trunc(t.days),hours:t.hours,minutes:t.minutes,seconds:t.seconds,milliseconds:t.milliseconds}).as("milliseconds"),a=Df(o);let[l,u]=I1(a,n,e.zone);return i!==0&&(l+=i,u=e.zone.offset(l)),{ts:l,o:u}}function Vo(e,t,n,r,s,o){const{setZone:i,zone:a}=n;if(e&&Object.keys(e).length!==0){const l=t||a,u=Qe.fromObject(e,Ln(Je({},n),{zone:l,specificOffset:o}));return i?u:u.setZone(a)}else return Qe.invalid(new tr("unparsable",`the input "${s}" can't be parsed as ${r}`))}function Wa(e,t,n=!0){return e.isValid?xn.create(zt.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function dc(e,t){const n=e.c.year>9999||e.c.year<0;let r="";return n&&e.c.year>=0&&(r+="+"),r+=qt(e.c.year,n?6:4),t?(r+="-",r+=qt(e.c.month),r+="-",r+=qt(e.c.day)):(r+=qt(e.c.month),r+=qt(e.c.day)),r}function Fh(e,t,n,r,s){let o=qt(e.c.hour);return t?(o+=":",o+=qt(e.c.minute),(e.c.second!==0||!n)&&(o+=":")):o+=qt(e.c.minute),(e.c.second!==0||!n)&&(o+=qt(e.c.second),(e.c.millisecond!==0||!r)&&(o+=".",o+=qt(e.c.millisecond,3))),s&&(e.isOffsetFixed&&e.offset===0?o+="Z":e.o<0?(o+="-",o+=qt(Math.trunc(-e.o/60)),o+=":",o+=qt(Math.trunc(-e.o%60))):(o+="+",o+=qt(Math.trunc(e.o/60)),o+=":",o+=qt(Math.trunc(e.o%60)))),o}const M1={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},bG={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},wG={ordinal:1,hour:0,minute:0,second:0,millisecond:0},R1=["year","month","day","hour","minute","second","millisecond"],CG=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],xG=["year","ordinal","hour","minute","second","millisecond"];function Ih(e){const t={year:"year",years:"year",month:"month",months:"month",day:"day",days:"day",hour:"hour",hours:"hour",minute:"minute",minutes:"minute",quarter:"quarter",quarters:"quarter",second:"second",seconds:"second",millisecond:"millisecond",milliseconds:"millisecond",weekday:"weekday",weekdays:"weekday",weeknumber:"weekNumber",weeksnumber:"weekNumber",weeknumbers:"weekNumber",weekyear:"weekYear",weekyears:"weekYear",ordinal:"ordinal"}[e.toLowerCase()];if(!t)throw new jv(e);return t}function Mh(e,t){const n=Wr(t.zone,Kt.defaultZone),r=zt.fromObject(t),s=Kt.now();let o,i;if(dt(e.year))o=s;else{for(const u of R1)dt(e[u])&&(e[u]=M1[u]);const a=D1(e)||F1(e);if(a)return Qe.invalid(a);const l=n.offset(s);[o,i]=sl(e,l,n)}return new Qe({ts:o,zone:n,loc:r,o:i})}function Rh(e,t,n){const r=dt(n.round)?!0:n.round,s=(i,a)=>(i=Pf(i,r||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(i,a)),o=i=>n.calendary?t.hasSame(e,i)?0:t.startOf(i).diff(e.startOf(i),i).get(i):t.diff(e,i).get(i);if(n.unit)return s(o(n.unit),n.unit);for(const i of n.units){const a=o(i);if(Math.abs(a)>=1)return s(a,i)}return s(e>t?-0:0,n.units[n.units.length-1])}function Lh(e){let t={},n;return e.length>0&&typeof e[e.length-1]=="object"?(t=e[e.length-1],n=Array.from(e).slice(0,e.length-1)):n=Array.from(e),[t,n]}class Qe{constructor(t){const n=t.zone||Kt.defaultZone;let r=t.invalid||(Number.isNaN(t.ts)?new tr("invalid input"):null)||(n.isValid?null:qa(n));this.ts=dt(t.ts)?Kt.now():t.ts;let s=null,o=null;if(!r)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[s,o]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);s=Ph(this.ts,a),r=Number.isNaN(s.year)?new tr("invalid input"):null,s=r?null:s,o=r?null:a}this._zone=n,this.loc=t.loc||zt.create(),this.invalid=r,this.weekData=null,this.c=s,this.o=o,this.isLuxonDateTime=!0}static now(){return new Qe({})}static local(){const[t,n]=Lh(arguments),[r,s,o,i,a,l,u]=n;return Mh({year:r,month:s,day:o,hour:i,minute:a,second:l,millisecond:u},t)}static utc(){const[t,n]=Lh(arguments),[r,s,o,i,a,l,u]=n;return t.zone=mn.utcInstance,Mh({year:r,month:s,day:o,hour:i,minute:a,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const r=Oq(t)?t.valueOf():NaN;if(Number.isNaN(r))return Qe.invalid("invalid input");const s=Wr(n.zone,Kt.defaultZone);return s.isValid?new Qe({ts:r,zone:s,loc:zt.fromObject(n)}):Qe.invalid(qa(s))}static fromMillis(t,n={}){if(ks(t))return t<-Th||t>Th?Qe.invalid("Timestamp out of range"):new Qe({ts:t,zone:Wr(n.zone,Kt.defaultZone),loc:zt.fromObject(n)});throw new Bn(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(ks(t))return new Qe({ts:t*1e3,zone:Wr(n.zone,Kt.defaultZone),loc:zt.fromObject(n)});throw new Bn("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const r=Wr(n.zone,Kt.defaultZone);if(!r.isValid)return Qe.invalid(qa(r));const s=Kt.now(),o=dt(n.specificOffset)?r.offset(s):n.specificOffset,i=$l(t,Ih),a=!dt(i.ordinal),l=!dt(i.year),u=!dt(i.month)||!dt(i.day),d=l||u,m=i.weekYear||i.weekNumber,f=zt.fromObject(n);if((d||a)&&m)throw new Zo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new Zo("Can't mix ordinal dates with month/day");const p=m||i.weekday&&!d;let h,_,g=Ph(s,o);p?(h=CG,_=bG,g=md(g)):a?(h=xG,_=wG,g=lc(g)):(h=R1,_=M1);let b=!1;for(const V of h){const O=i[V];dt(O)?b?i[V]=_[V]:i[V]=g[V]:b=!0}const w=p?yG(i):a?vG(i):D1(i),S=w||F1(i);if(S)return Qe.invalid(S);const x=p?Ah(i):a?Oh(i):i,[$,A]=sl(x,o,r),I=new Qe({ts:$,zone:r,o:A,loc:f});return i.weekday&&d&&t.weekday!==I.weekday?Qe.invalid("mismatched weekday",`you can't specify both a weekday of ${i.weekday} and a date of ${I.toISO()}`):I}static fromISO(t,n={}){const[r,s]=MW(t);return Vo(r,s,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[r,s]=RW(t);return Vo(r,s,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[r,s]=LW(t);return Vo(r,s,n,"HTTP",n)}static fromFormat(t,n,r={}){if(dt(t)||dt(n))throw new Bn("fromFormat requires an input string and a format");const{locale:s=null,numberingSystem:o=null}=r,i=zt.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0}),[a,l,u,d]=gG(i,t,n);return d?Qe.invalid(d):Vo(a,l,r,`format ${n}`,t,u)}static fromString(t,n,r={}){return Qe.fromFormat(t,n,r)}static fromSQL(t,n={}){const[r,s]=WW(t);return Vo(r,s,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Bn("need to specify a reason the DateTime is invalid");const r=t instanceof tr?t:new tr(t,n);if(Kt.throwOnInvalid)throw new kq(r);return new Qe({invalid:r})}static isDateTime(t){return t&&t.isLuxonDateTime||!1}get(t){return this[t]}get isValid(){return this.invalid===null}get invalidReason(){return this.invalid?this.invalid.reason:null}get invalidExplanation(){return this.invalid?this.invalid.explanation:null}get locale(){return this.isValid?this.loc.locale:null}get numberingSystem(){return this.isValid?this.loc.numberingSystem:null}get outputCalendar(){return this.isValid?this.loc.outputCalendar:null}get zone(){return this._zone}get zoneName(){return this.isValid?this.zone.name:null}get year(){return this.isValid?this.c.year:NaN}get quarter(){return this.isValid?Math.ceil(this.c.month/3):NaN}get month(){return this.isValid?this.c.month:NaN}get day(){return this.isValid?this.c.day:NaN}get hour(){return this.isValid?this.c.hour:NaN}get minute(){return this.isValid?this.c.minute:NaN}get second(){return this.isValid?this.c.second:NaN}get millisecond(){return this.isValid?this.c.millisecond:NaN}get weekYear(){return this.isValid?cc(this).weekYear:NaN}get weekNumber(){return this.isValid?cc(this).weekNumber:NaN}get weekday(){return this.isValid?cc(this).weekday:NaN}get ordinal(){return this.isValid?lc(this.c).ordinal:NaN}get monthShort(){return this.isValid?Ua.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?Ua.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?Ua.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?Ua.weekdays("long",{locObj:this.loc})[this.weekday-1]:null}get offset(){return this.isValid?+this.o:NaN}get offsetNameShort(){return this.isValid?this.zone.offsetName(this.ts,{format:"short",locale:this.locale}):null}get offsetNameLong(){return this.isValid?this.zone.offsetName(this.ts,{format:"long",locale:this.locale}):null}get isOffsetFixed(){return this.isValid?this.zone.isUniversal:null}get isInDST(){return this.isOffsetFixed?!1:this.offset>this.set({month:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Vi(this.year)}get daysInMonth(){return Sl(this.year,this.month)}get daysInYear(){return this.isValid?gi(this.year):NaN}get weeksInWeekYear(){return this.isValid?El(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:r,calendar:s}=xn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:r,outputCalendar:s}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(Kt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:r=!1}={}){if(t=Wr(t,Kt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let s=this.ts;if(n||r){const o=t.offset(this.ts),i=this.toObject();[s]=sl(i,o,t)}return No(this,{ts:s,zone:t})}else return Qe.invalid(qa(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:r}={}){const s=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:r});return No(this,{loc:s})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=$l(t,Ih),r=!dt(n.weekYear)||!dt(n.weekNumber)||!dt(n.weekday),s=!dt(n.ordinal),o=!dt(n.year),i=!dt(n.month)||!dt(n.day),a=o||i,l=n.weekYear||n.weekNumber;if((a||s)&&l)throw new Zo("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(i&&s)throw new Zo("Can't mix ordinal dates with month/day");let u;r?u=Ah(Je(Je({},md(this.c)),n)):dt(n.ordinal)?(u=Je(Je({},this.toObject()),n),dt(n.day)&&(u.day=Math.min(Sl(u.year,u.month),u.day))):u=Oh(Je(Je({},lc(this.c)),n));const[d,m]=sl(u,this.o,this.zone);return No(this,{ts:d,o:m})}plus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t);return No(this,Dh(this,n))}minus(t){if(!this.isValid)return this;const n=it.fromDurationLike(t).negate();return No(this,Dh(this,n))}startOf(t){if(!this.isValid)return this;const n={},r=it.normalizeUnit(t);switch(r){case"years":n.month=1;case"quarters":case"months":n.day=1;case"weeks":case"days":n.hour=0;case"hours":n.minute=0;case"minutes":n.second=0;case"seconds":n.millisecond=0;break}if(r==="weeks"&&(n.weekday=1),r==="quarters"){const s=Math.ceil(this.month/3);n.month=(s-1)*3+1}return this.set(n)}endOf(t){return this.isValid?this.plus({[t]:1}).startOf(t).minus(1):this}toFormat(t,n={}){return this.isValid?xn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):uc}toLocaleString(t=ad,n={}){return this.isValid?xn.create(this.loc.clone(n),t).formatDateTime(this):uc}toLocaleParts(t={}){return this.isValid?xn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:r=!1,includeOffset:s=!0}={}){if(!this.isValid)return null;const o=t==="extended";let i=dc(this,o);return i+="T",i+=Fh(this,o,n,r,s),i}toISODate({format:t="extended"}={}){return this.isValid?dc(this,t==="extended"):null}toISOWeekDate(){return Wa(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:r=!0,includePrefix:s=!1,format:o="extended"}={}){return this.isValid?(s?"T":"")+Fh(this,o==="extended",n,t,r):null}toRFC2822(){return Wa(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return Wa(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?dc(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:r=!0}={}){let s="HH:mm:ss.SSS";return(n||t)&&(r&&(s+=" "),n?s+="z":t&&(s+="ZZ")),Wa(this,s,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():uc}valueOf(){return this.toMillis()}toMillis(){return this.isValid?this.ts:NaN}toSeconds(){return this.isValid?this.ts/1e3:NaN}toUnixInteger(){return this.isValid?Math.floor(this.ts/1e3):NaN}toJSON(){return this.toISO()}toBSON(){return this.toJSDate()}toObject(t={}){if(!this.isValid)return{};const n=Je({},this.c);return t.includeConfig&&(n.outputCalendar=this.outputCalendar,n.numberingSystem=this.loc.numberingSystem,n.locale=this.loc.locale),n}toJSDate(){return new Date(this.isValid?this.ts:NaN)}diff(t,n="milliseconds",r={}){if(!this.isValid||!t.isValid)return it.invalid("created by diffing an invalid DateTime");const s=Je({locale:this.locale,numberingSystem:this.numberingSystem},r),o=Tq(n).map(it.normalizeUnit),i=t.valueOf()>this.valueOf(),a=i?this:t,l=i?t:this,u=tG(a,l,o,s);return i?u.negate():u}diffNow(t="milliseconds",n={}){return this.diff(Qe.now(),t,n)}until(t){return this.isValid?It.fromDateTimes(this,t):this}hasSame(t,n){if(!this.isValid)return!1;const r=t.valueOf(),s=this.setZone(t.zone,{keepLocalTime:!0});return s.startOf(n)<=r&&r<=s.endOf(n)}equals(t){return this.isValid&&t.isValid&&this.valueOf()===t.valueOf()&&this.zone.equals(t.zone)&&this.loc.equals(t.loc)}toRelative(t={}){if(!this.isValid)return null;const n=t.base||Qe.fromObject({},{zone:this.zone}),r=t.padding?this<n?-t.padding:t.padding:0;let s=["years","months","days","hours","minutes","seconds"],o=t.unit;return Array.isArray(t.unit)&&(s=t.unit,o=void 0),Rh(n,this.plus(r),Ln(Je({},t),{numeric:"always",units:s,unit:o}))}toRelativeCalendar(t={}){return this.isValid?Rh(t.base||Qe.fromObject({},{zone:this.zone}),this,Ln(Je({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(Qe.isDateTime))throw new Bn("min requires all arguments be DateTimes");return hh(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Qe.isDateTime))throw new Bn("max requires all arguments be DateTimes");return hh(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,r={}){const{locale:s=null,numberingSystem:o=null}=r,i=zt.fromOpts({locale:s,numberingSystem:o,defaultToEN:!0});return $1(i,t,n)}static fromStringExplain(t,n,r={}){return Qe.fromFormatExplain(t,n,r)}static get DATE_SHORT(){return ad}static get DATE_MED(){return Bv}static get DATE_MED_WITH_WEEKDAY(){return $q}static get DATE_FULL(){return Hv}static get DATE_HUGE(){return Uv}static get TIME_SIMPLE(){return qv}static get TIME_WITH_SECONDS(){return Wv}static get TIME_WITH_SHORT_OFFSET(){return Gv}static get TIME_WITH_LONG_OFFSET(){return Kv}static get TIME_24_SIMPLE(){return Yv}static get TIME_24_WITH_SECONDS(){return Zv}static get TIME_24_WITH_SHORT_OFFSET(){return Jv}static get TIME_24_WITH_LONG_OFFSET(){return Xv}static get DATETIME_SHORT(){return Qv}static get DATETIME_SHORT_WITH_SECONDS(){return e1}static get DATETIME_MED(){return t1}static get DATETIME_MED_WITH_SECONDS(){return n1}static get DATETIME_MED_WITH_WEEKDAY(){return zq}static get DATETIME_FULL(){return r1}static get DATETIME_FULL_WITH_SECONDS(){return s1}static get DATETIME_HUGE(){return o1}static get DATETIME_HUGE_WITH_SECONDS(){return i1}}function jo(e){if(Qe.isDateTime(e))return e;if(e&&e.valueOf&&ks(e.valueOf()))return Qe.fromJSDate(e);if(e&&typeof e=="object")return Qe.fromObject(e);throw new Bn(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const kG={durationInHours:function(e){const t=Math.floor(e/1e3);return t>3600?it.fromObject({seconds:t}).shiftTo("hours","minutes","seconds").toFormat("hh:mm:ss"):it.fromObject({seconds:t}).shiftTo("minutes","seconds").toFormat("mm:ss")},durationInDays:function(e){const t=Math.floor(e/6e4);return t>1440?it.fromObject({minutes:t}).shiftTo("days","hours","minutes").toHuman():t>60?it.fromObject({minutes:t}).shiftTo("hours","minutes").toHuman():it.fromObject({minutes:t}).shiftTo("minutes").toHuman()},date:function(e){return Qe.fromISO(e).toLocaleString(Qe.DATE_FULL)},datetime:function(e){return Qe.fromISO(e).toLocaleString(Qe.DATETIME_MED)},timeFromNow:function(e){var t=Qe.now().diff(Qe.fromISO(e));return this.durationInDays(t.as("milliseconds"))},number:function(e){return e.toLocaleString()},channels:function(e){return e===1?"mono":e===2?"stereo":e?e+" channels":""}},SG={mdiAccountMusic:fU,mdiAlbum:mU,mdiArrowCollapseDown:hU,mdiBookOpenPageVariant:_U,mdiBookOpenVariant:gU,mdiBookshelf:yU,mdiCancel:bU,mdiCast:wU,mdiCastVariant:CU,mdiCellphone:xU,mdiCheck:kU,mdiChevronDown:SU,mdiChevronUp:EU,mdiContentSave:$U,mdiDelete:zU,mdiDeleteEmpty:AU,mdiDotsHorizontal:OU,mdiDotsVertical:TU,mdiDragHorizontal:PU,mdiFastForward:DU,mdiFileMusic:FU,mdiFileOutline:IU,mdiFire:MU,mdiFolder:RU,mdiFolderOpen:LU,mdiOpenInNew:HU,mdiMagnify:NU,mdiMenu:VU,mdiPodcast:ZU,mdiMusic:jU,mdiMusicBoxMultiple:BU,mdiPause:UU,mdiPencil:qU,mdiPipe:WU,mdiPlay:GU,mdiPlaylistPlay:KU,mdiPlaylistPlus:YU,mdiBroadcast:vU,mdiRadioTower:JU,mdiRefresh:XU,mdiRepeat:QU,mdiRepeatOff:eq,mdiRepeatOnce:tq,mdiRewind:nq,mdiRss:rq,mdiServer:sq,mdiShuffle:oq,mdiShuffleDisabled:iq,mdiSkipBackward:aq,mdiSkipForward:lq,mdiSpeaker:uq,mdiSpotify:cq,mdiStop:dq,mdiSubdirectoryArrowLeft:fq,mdiVolumeHigh:mq,mdiVolumeOff:pq,mdiWeb:hq},EG={name:"NavbarItemLink",props:{to:String,exact:Boolean},computed:{is_active(){return this.exact?this.$route.path===this.to:this.$route.path.startsWith(this.to)},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(_o,e)}},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(ho,e)}}},methods:{open_link:function(){this.show_burger_menu&&this.$store.commit(ho,!1),this.show_player_menu&&this.$store.commit(_o,!1),this.$router.push({path:this.to})},full_path:function(){return this.$router.resolve(this.to).href}}},$G=["href"];function zG(e,t,n,r,s,o){return E(),D("a",{class:Ye(["navbar-item",{"is-active":o.is_active}]),href:o.full_path(),onClick:t[0]||(t[0]=_t(i=>o.open_link(),["stop","prevent"]))},[kt(e.$slots,"default")],10,$G)}var L1=ve(EG,[["render",zG]]);const AG={name:"NavbarTop",components:{NavbarItemLink:L1},data(){return{show_settings_menu:!1}},computed:{is_visible_playlists(){return this.$store.getters.settings_option("webinterface","show_menu_item_playlists").value},is_visible_music(){return this.$store.getters.settings_option("webinterface","show_menu_item_music").value},is_visible_podcasts(){return this.$store.getters.settings_option("webinterface","show_menu_item_podcasts").value},is_visible_audiobooks(){return this.$store.getters.settings_option("webinterface","show_menu_item_audiobooks").value},is_visible_radio(){return this.$store.getters.settings_option("webinterface","show_menu_item_radio").value},is_visible_files(){return this.$store.getters.settings_option("webinterface","show_menu_item_files").value},is_visible_search(){return this.$store.getters.settings_option("webinterface","show_menu_item_search").value},player(){return this.$store.state.player},config(){return this.$store.state.config},library(){return this.$store.state.library},audiobooks(){return this.$store.state.audiobooks_count},podcasts(){return this.$store.state.podcasts_count},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(ho,e)}},show_player_menu(){return this.$store.state.show_player_menu},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(Ii,e)}},zindex(){return this.show_player_menu?"z-index: 20":""}},watch:{$route(e,t){this.show_settings_menu=!1}},methods:{on_click_outside_settings(){this.show_settings_menu=!this.show_settings_menu},open_update_dialog(){this.show_update_dialog=!0,this.show_settings_menu=!1,this.show_burger_menu=!1}}},OG={class:"navbar-brand"},TG=c("span",null,null,-1),PG=c("span",null,null,-1),DG=c("span",null,null,-1),FG=[TG,PG,DG],IG=c("div",{class:"navbar-start"},null,-1),MG={class:"navbar-end"},RG={class:"navbar-link is-arrowless"},LG=["textContent"],NG={class:"navbar-dropdown is-right"},VG=["textContent"],jG=["textContent"],BG=["textContent"],HG=["textContent"],UG=["textContent"],qG=["textContent"],WG=["textContent"],GG=["textContent"],KG=["textContent"],YG=["textContent"],ZG=["textContent"],JG=c("hr",{class:"fd-navbar-divider"},null,-1),XG=["textContent"],QG=c("div",{class:"navbar-item is-hidden-desktop",style:{"margin-bottom":"2.5rem"}},null,-1);function eK(e,t,n,r,s,o){const i=T("mdicon"),a=T("navbar-item-link");return E(),D("nav",{class:"fd-top-navbar navbar is-light is-fixed-top",style:rs(o.zindex),role:"navigation","aria-label":"main navigation"},[c("div",OG,[o.is_visible_playlists?(E(),ke(a,{key:0,to:"/playlists"},{default:P(()=>[C(i,{class:"icon",name:"music-box-multiple",size:"16"})]),_:1})):J("",!0),o.is_visible_music?(E(),ke(a,{key:1,to:"/music"},{default:P(()=>[C(i,{class:"icon",name:"music",size:"16"})]),_:1})):J("",!0),o.is_visible_podcasts?(E(),ke(a,{key:2,to:"/podcasts"},{default:P(()=>[C(i,{class:"icon",name:"podcast",size:"16"})]),_:1})):J("",!0),o.is_visible_audiobooks?(E(),ke(a,{key:3,to:"/audiobooks"},{default:P(()=>[C(i,{class:"icon",name:"book-open-variant",size:"16"})]),_:1})):J("",!0),o.is_visible_radio?(E(),ke(a,{key:4,to:"/radio"},{default:P(()=>[C(i,{class:"icon",name:"radio-tower",size:"16"})]),_:1})):J("",!0),o.is_visible_files?(E(),ke(a,{key:5,to:"/files"},{default:P(()=>[C(i,{class:"icon",name:"folder-open",size:"16"})]),_:1})):J("",!0),o.is_visible_search?(E(),ke(a,{key:6,to:"/search"},{default:P(()=>[C(i,{class:"icon",name:"magnify",size:"16"})]),_:1})):J("",!0),c("div",{class:Ye(["navbar-burger",{"is-active":o.show_burger_menu}]),onClick:t[0]||(t[0]=l=>o.show_burger_menu=!o.show_burger_menu)},FG,2)]),c("div",{class:Ye(["navbar-menu",{"is-active":o.show_burger_menu}])},[IG,c("div",MG,[c("div",{class:Ye(["navbar-item has-dropdown is-hoverable",{"is-active":s.show_settings_menu}]),onClick:t[2]||(t[2]=(...l)=>o.on_click_outside_settings&&o.on_click_outside_settings(...l))},[c("a",RG,[C(i,{class:"icon is-hidden-touch",name:"menu",size:"24"}),c("span",{class:"is-hidden-desktop has-text-weight-bold",textContent:v(e.$t("navigation.title"))},null,8,LG)]),c("div",NG,[C(a,{to:"/playlists"},{default:P(()=>[C(i,{class:"icon",name:"music-box-multiple",size:"16"}),c("b",{textContent:v(e.$t("navigation.playlists"))},null,8,VG)]),_:1}),C(a,{to:"/music",exact:""},{default:P(()=>[C(i,{class:"icon",name:"music",size:"16"}),c("b",{textContent:v(e.$t("navigation.music"))},null,8,jG)]),_:1}),C(a,{to:"/music/artists"},{default:P(()=>[c("span",{class:"fd-navbar-item-level2",textContent:v(e.$t("navigation.artists"))},null,8,BG)]),_:1}),C(a,{to:"/music/albums"},{default:P(()=>[c("span",{class:"fd-navbar-item-level2",textContent:v(e.$t("navigation.albums"))},null,8,HG)]),_:1}),C(a,{to:"/music/genres"},{default:P(()=>[c("span",{class:"fd-navbar-item-level2",textContent:v(e.$t("navigation.genres"))},null,8,UG)]),_:1}),o.spotify_enabled?(E(),ke(a,{key:0,to:"/music/spotify"},{default:P(()=>[c("span",{class:"fd-navbar-item-level2",textContent:v(e.$t("navigation.spotify"))},null,8,qG)]),_:1})):J("",!0),C(a,{to:"/podcasts"},{default:P(()=>[C(i,{class:"icon",name:"podcast",size:"16"}),c("b",{textContent:v(e.$t("navigation.podcasts"))},null,8,WG)]),_:1}),C(a,{to:"/audiobooks"},{default:P(()=>[C(i,{class:"icon",name:"book-open-variant",size:"16"}),c("b",{textContent:v(e.$t("navigation.audiobooks"))},null,8,GG)]),_:1}),C(a,{to:"/radio"},{default:P(()=>[C(i,{class:"icon",name:"radio-tower",size:"16"}),c("b",{textContent:v(e.$t("navigation.radio"))},null,8,KG)]),_:1}),C(a,{to:"/files"},{default:P(()=>[C(i,{class:"icon",name:"folder-open",size:"16"}),c("b",{textContent:v(e.$t("navigation.files"))},null,8,YG)]),_:1}),C(a,{to:"/search"},{default:P(()=>[C(i,{class:"icon",name:"magnify",size:"16"}),c("b",{textContent:v(e.$t("navigation.search"))},null,8,ZG)]),_:1}),JG,C(a,{to:"/settings/webinterface",textContent:v(e.$t("navigation.settings"))},null,8,["textContent"]),c("a",{class:"navbar-item",onClick:t[1]||(t[1]=_t(l=>o.open_update_dialog(),["stop","prevent"])),textContent:v(e.$t("navigation.update-library"))},null,8,XG),C(a,{to:"/about",textContent:v(e.$t("navigation.about"))},null,8,["textContent"]),QG])],2)])],2),Ct(c("div",{class:"is-overlay",style:{"z-index":"10",width:"100vw",height:"100vh"},onClick:t[3]||(t[3]=l=>s.show_settings_menu=!1)},null,512),[[po,s.show_settings_menu]])],4)}var tK=ve(AG,[["render",eK]]),Bo={_audio:new Audio,_context:null,_source:null,_gain:null,setupAudio(){const e=window.AudioContext||window.webkitAudioContext;return this._context=new e,this._source=this._context.createMediaElementSource(this._audio),this._gain=this._context.createGain(),this._source.connect(this._gain),this._gain.connect(this._context.destination),this._audio.addEventListener("canplaythrough",t=>{this._audio.play()}),this._audio.addEventListener("canplay",t=>{this._audio.play()}),this._audio},setVolume(e){!this._gain||(e=parseFloat(e)||0,e=e<0?0:e,e=e>1?1:e,this._gain.gain.value=e)},playSource(e){this.stopAudio(),this._context.resume().then(()=>{this._audio.src=String(e||"")+"?x="+Date.now(),this._audio.crossOrigin="anonymous",this._audio.load()})},stopAudio(){try{this._audio.pause()}catch{}try{this._audio.stop()}catch{}try{this._audio.close()}catch{}}};const nK={name:"NavbarItemOutput",components:{Slider:Si},props:["output"],computed:{type_class(){return this.output.type.startsWith("AirPlay")?"cast-variant":this.output.type==="Chromecast"?"cast":this.output.type==="fifo"?"pipe":"server"},volume(){return this.output.selected?this.output.volume:0}},methods:{play_next:function(){K.player_next()},set_volume:function(e){K.player_output_volume(this.output.id,e)},set_enabled:function(){const e={selected:!this.output.selected};K.output_update(this.output.id,e)}}},rK={class:"navbar-item"},sK={class:"level is-mobile"},oK={class:"level-left fd-expanded"},iK={class:"level-item",style:{"flex-grow":"0"}},aK={class:"button is-white is-small"},lK={class:"level-item fd-expanded"},uK={class:"fd-expanded"},cK=["textContent"];function dK(e,t,n,r,s,o){const i=T("mdicon"),a=T("Slider");return E(),D("div",rK,[c("div",sK,[c("div",oK,[c("div",iK,[c("a",aK,[c("span",{class:Ye(["icon fd-has-action",{"has-text-grey-light":!n.output.selected}]),onClick:t[0]||(t[0]=(...l)=>o.set_enabled&&o.set_enabled(...l))},[C(i,{name:o.type_class,size:"18",title:n.output.type},null,8,["name","title"])],2)])]),c("div",lK,[c("div",uK,[c("p",{class:Ye(["heading",{"has-text-grey-light":!n.output.selected}]),textContent:v(n.output.name)},null,10,cK),C(a,{modelValue:o.volume,"onUpdate:modelValue":t[1]||(t[1]=l=>o.volume=l),min:0,max:100,step:1,tooltips:!1,disabled:!n.output.selected,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","disabled","onChange"])])])])])])}var fK=ve(nK,[["render",dK]]);const mK={name:"PlayerButtonPlayPause",props:{icon_size:{type:Number,default:16},show_disabled_message:Boolean},computed:{is_playing(){return this.$store.state.player.state==="play"},is_pause_allowed(){return this.$store.getters.now_playing&&this.$store.getters.now_playing.data_kind!=="pipe"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0},icon_name(){if(this.is_playing){if(this.is_pause_allowed)return"pause"}else return"play";return"stop"}},methods:{toggle_play_pause:function(){if(this.disabled){this.show_disabled_message&&this.$store.dispatch("add_notification",{text:this.$t("server.empty-queue"),type:"info",topic:"connection",timeout:2e3});return}this.is_playing&&this.is_pause_allowed?K.player_pause():this.is_playing&&!this.is_pause_allowed?K.player_stop():K.player_play()}}},pK=["disabled"];function hK(e,t,n,r,s,o){const i=T("mdicon");return E(),D("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.toggle_play_pause&&o.toggle_play_pause(...a))},[C(i,{class:"icon",name:o.icon_name,size:n.icon_size},null,8,["name","size"])],8,pK)}var _K=ve(mK,[["render",hK]]);const gK={name:"PlayerButtonNext",props:{icon_size:{type:Number,default:16}},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_next:function(){this.disabled||K.player_next()}}},yK=["disabled"];function vK(e,t,n,r,s,o){const i=T("mdicon");return E(),D("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_next&&o.play_next(...a))},[C(i,{class:"icon",name:"skip-forward",size:n.icon_size},null,8,["size"])],8,yK)}var bK=ve(gK,[["render",vK]]);const wK={name:"PlayerButtonPrevious",props:{icon_size:{type:Number,default:16}},computed:{disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0}},methods:{play_previous:function(){this.disabled||K.player_previous()}}},CK=["disabled"];function xK(e,t,n,r,s,o){const i=T("mdicon");return E(),D("a",{disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.play_previous&&o.play_previous(...a))},[C(i,{class:"icon",name:"skip-backward",size:n.icon_size},null,8,["size"])],8,CK)}var kK=ve(wK,[["render",xK]]);const SK={name:"PlayerButtonShuffle",props:{icon_size:{type:Number,default:16}},computed:{is_shuffle(){return this.$store.state.player.shuffle},icon_name(){return this.is_shuffle?"shuffle":"shuffle-disabled"}},methods:{toggle_shuffle_mode:function(){K.player_shuffle(!this.is_shuffle)}}};function EK(e,t,n,r,s,o){const i=T("mdicon");return E(),D("a",{class:Ye({"is-warning":o.is_shuffle}),onClick:t[0]||(t[0]=(...a)=>o.toggle_shuffle_mode&&o.toggle_shuffle_mode(...a))},[C(i,{class:"icon",name:o.icon_name,size:n.icon_size},null,8,["name","size"])],2)}var $K=ve(SK,[["render",EK]]);const zK={name:"PlayerButtonConsume",props:{icon_size:{type:Number,default:16}},computed:{is_consume(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){K.player_consume(!this.is_consume)}}};function AK(e,t,n,r,s,o){const i=T("mdicon");return E(),D("a",{class:Ye({"is-warning":o.is_consume}),onClick:t[0]||(t[0]=(...a)=>o.toggle_consume_mode&&o.toggle_consume_mode(...a))},[C(i,{class:"icon",name:"fire",size:n.icon_size},null,8,["size"])],2)}var OK=ve(zK,[["render",AK]]);const TK={name:"PlayerButtonRepeat",props:{icon_size:{type:Number,default:16}},computed:{is_repeat_all(){return this.$store.state.player.repeat==="all"},is_repeat_single(){return this.$store.state.player.repeat==="single"},is_repeat_off(){return!this.is_repeat_all&&!this.is_repeat_single},icon_name(){return this.is_repeat_all?"repeat":this.is_repeat_single?"repeat-once":"repeat-off"}},methods:{toggle_repeat_mode:function(){this.is_repeat_all?K.player_repeat("single"):this.is_repeat_single?K.player_repeat("off"):K.player_repeat("all")}}};function PK(e,t,n,r,s,o){const i=T("mdicon");return E(),D("a",{class:Ye({"is-warning":!o.is_repeat_off}),onClick:t[0]||(t[0]=(...a)=>o.toggle_repeat_mode&&o.toggle_repeat_mode(...a))},[C(i,{class:"icon",name:o.icon_name,size:n.icon_size},null,8,["name","size"])],2)}var DK=ve(TK,[["render",PK]]);const FK={name:"PlayerButtonSeekBack",props:{seek_ms:Number,icon_size:{type:Number,default:16}},computed:{now_playing(){return this.$store.getters.now_playing},is_stopped(){return this.$store.state.player.state==="stop"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0||this.is_stopped||this.now_playing.data_kind==="pipe"},visible(){return["podcast","audiobook"].includes(this.now_playing.media_kind)}},methods:{seek:function(){this.disabled||K.player_seek(this.seek_ms*-1)}}},IK=["disabled"];function MK(e,t,n,r,s,o){const i=T("mdicon");return o.visible?(E(),D("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[C(i,{class:"icon",name:"rewind",size:n.icon_size},null,8,["size"])],8,IK)):J("",!0)}var RK=ve(FK,[["render",MK]]);const LK={name:"PlayerButtonSeekForward",props:{seek_ms:Number,icon_size:{type:Number,default:16}},computed:{now_playing(){return this.$store.getters.now_playing},is_stopped(){return this.$store.state.player.state==="stop"},disabled(){return!this.$store.state.queue||this.$store.state.queue.count<=0||this.is_stopped||this.now_playing.data_kind==="pipe"},visible(){return["podcast","audiobook"].includes(this.now_playing.media_kind)}},methods:{seek:function(){this.disabled||K.player_seek(this.seek_ms)}}},NK=["disabled"];function VK(e,t,n,r,s,o){const i=T("mdicon");return o.visible?(E(),D("a",{key:0,disabled:o.disabled,onClick:t[0]||(t[0]=(...a)=>o.seek&&o.seek(...a))},[C(i,{class:"icon",name:"fast-forward",size:n.icon_size},null,8,["size"])],8,NK)):J("",!0)}var jK=ve(LK,[["render",VK]]);const BK={name:"NavbarBottom",components:{NavbarItemLink:L1,NavbarItemOutput:fK,Slider:Si,PlayerButtonPlayPause:_K,PlayerButtonNext:bK,PlayerButtonPrevious:kK,PlayerButtonShuffle:$K,PlayerButtonConsume:OK,PlayerButtonRepeat:DK,PlayerButtonSeekForward:jK,PlayerButtonSeekBack:RK},data(){return{old_volume:0,playing:!1,loading:!1,stream_volume:10,show_outputs_menu:!1,show_desktop_outputs_menu:!1}},computed:{show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(_o,e)}},show_burger_menu(){return this.$store.state.show_burger_menu},zindex(){return this.show_burger_menu?"z-index: 20":""},state(){return this.$store.state.player},now_playing(){return this.$store.getters.now_playing},is_now_playing_page(){return this.$route.path==="/now-playing"},outputs(){return this.$store.state.outputs},player(){return this.$store.state.player},config(){return this.$store.state.config}},watch:{"$store.state.player.volume"(){this.player.volume>0&&(this.old_volume=this.player.volume)}},mounted(){this.setupAudio()},unmounted(){this.closeAudio()},methods:{on_click_outside_outputs(){this.show_outputs_menu=!1},set_volume:function(e){K.player_volume(e)},toggle_mute_volume:function(){this.player.volume>0?this.set_volume(0):this.set_volume(this.old_volume)},setupAudio:function(){const e=Bo.setupAudio();e.addEventListener("waiting",t=>{this.playing=!1,this.loading=!0}),e.addEventListener("playing",t=>{this.playing=!0,this.loading=!1}),e.addEventListener("ended",t=>{this.playing=!1,this.loading=!1}),e.addEventListener("error",t=>{this.closeAudio(),this.$store.dispatch("add_notification",{text:this.$t("navigation.stream-error"),type:"danger"}),this.playing=!1,this.loading=!1})},closeAudio:function(){Bo.stopAudio(),this.playing=!1},playChannel:function(){if(this.playing)return;const e="/stream.mp3";this.loading=!0,Bo.playSource(e),Bo.setVolume(this.stream_volume/100)},togglePlay:function(){if(!this.loading)return this.playing?this.closeAudio():this.playChannel()},set_stream_volume:function(e){this.stream_volume=e,Bo.setVolume(this.stream_volume/100)}}},HK={class:"navbar-brand fd-expanded"},UK={class:"is-clipped"},qK={class:"is-size-7 fd-is-text-clipped"},WK=["textContent"],GK=c("br",null,null,-1),KK=["textContent"],YK=["textContent"],ZK={class:"navbar-dropdown is-right is-boxed",style:{"margin-right":"6px","margin-bottom":"6px","border-radius":"6px"}},JK={class:"navbar-item"},XK={class:"level is-mobile"},QK={class:"level-left fd-expanded"},eY={class:"level-item",style:{"flex-grow":"0"}},tY={class:"level-item fd-expanded"},nY={class:"fd-expanded"},rY=["textContent"],sY=c("hr",{class:"fd-navbar-divider"},null,-1),oY=c("hr",{class:"fd-navbar-divider"},null,-1),iY={class:"navbar-item"},aY={class:"level is-mobile"},lY={class:"level-left fd-expanded"},uY={class:"level-item",style:{"flex-grow":"0"}},cY={class:"level-item fd-expanded"},dY={class:"fd-expanded"},fY=["textContent"],mY=["textContent"],pY=c("hr",{class:"fd-navbar-divider"},null,-1),hY={class:"navbar-item"},_Y={class:"level is-mobile fd-expanded"},gY={class:"level-item"},yY={class:"buttons has-addons"},vY=c("div",{class:"navbar-start"},null,-1),bY={class:"navbar-end"},wY={class:"navbar-item"},CY={class:"buttons is-centered"},xY=c("hr",{class:"fd-navbar-divider"},null,-1),kY={class:"navbar-item"},SY={class:"level is-mobile"},EY={class:"level-left fd-expanded"},$Y={class:"level-item",style:{"flex-grow":"0"}},zY={class:"level-item fd-expanded"},AY={class:"fd-expanded"},OY=["textContent"],TY=c("hr",{class:"fd-navbar-divider"},null,-1),PY={class:"navbar-item fd-has-margin-bottom"},DY={class:"level is-mobile"},FY={class:"level-left fd-expanded"},IY={class:"level-item",style:{"flex-grow":"0"}},MY={class:"level-item fd-expanded"},RY={class:"fd-expanded"},LY=["textContent"],NY=["textContent"];function VY(e,t,n,r,s,o){const i=T("mdicon"),a=T("navbar-item-link"),l=T("router-link"),u=T("player-button-previous"),d=T("player-button-seek-back"),m=T("player-button-play-pause"),f=T("player-button-seek-forward"),p=T("player-button-next"),h=T("Slider"),_=T("navbar-item-output"),g=T("player-button-repeat"),b=T("player-button-shuffle"),w=T("player-button-consume");return E(),D("nav",{class:Ye(["fd-bottom-navbar navbar is-white is-fixed-bottom",{"is-transparent":o.is_now_playing_page,"is-dark":!o.is_now_playing_page}]),style:rs(o.zindex),role:"navigation","aria-label":"player controls"},[c("div",HK,[C(a,{to:"/",exact:""},{default:P(()=>[C(i,{class:"icon",name:"playlist-play",size:"24"})]),_:1}),o.is_now_playing_page?J("",!0):(E(),ke(l,{key:0,to:"/now-playing",class:"navbar-item is-expanded is-clipped","active-class":"is-active",exact:""},{default:P(()=>[c("div",UK,[c("p",qK,[c("strong",{textContent:v(o.now_playing.title)},null,8,WK),GK,c("span",{textContent:v(o.now_playing.artist)},null,8,KK),o.now_playing.data_kind==="url"?(E(),D("span",{key:0,textContent:v(e.$t("navigation.now-playing",{album:o.now_playing.album}))},null,8,YK)):J("",!0)])])]),_:1})),o.is_now_playing_page?(E(),ke(u,{key:1,class:"navbar-item fd-margin-left-auto",icon_size:24})):J("",!0),o.is_now_playing_page?(E(),ke(d,{key:2,seek_ms:1e4,class:"navbar-item",icon_size:24})):J("",!0),C(m,{class:"navbar-item",icon_size:36,show_disabled_message:""}),o.is_now_playing_page?(E(),ke(f,{key:3,seek_ms:3e4,class:"navbar-item",icon_size:24})):J("",!0),o.is_now_playing_page?(E(),ke(p,{key:4,class:"navbar-item",icon_size:24})):J("",!0),c("a",{class:"navbar-item fd-margin-left-auto is-hidden-desktop",onClick:t[0]||(t[0]=S=>o.show_player_menu=!o.show_player_menu)},[C(i,{class:"icon",name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])]),c("div",{class:Ye(["navbar-item has-dropdown has-dropdown-up fd-margin-left-auto is-hidden-touch",{"is-active":o.show_player_menu}])},[c("a",{class:"navbar-link is-arrowless",onClick:t[1]||(t[1]=S=>o.show_player_menu=!o.show_player_menu)},[C(i,{class:"icon",name:o.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])]),c("div",ZK,[c("div",JK,[c("div",XK,[c("div",QK,[c("div",eY,[c("a",{class:"button is-white is-small",onClick:t[2]||(t[2]=(...S)=>o.toggle_mute_volume&&o.toggle_mute_volume(...S))},[C(i,{class:"icon",name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])]),c("div",tY,[c("div",nY,[c("p",{class:"heading",textContent:v(e.$t("navigation.volume"))},null,8,rY),C(h,{modelValue:o.player.volume,"onUpdate:modelValue":t[3]||(t[3]=S=>o.player.volume=S),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","onChange"])])])])])]),sY,(E(!0),D(We,null,wt(o.outputs,S=>(E(),ke(_,{key:S.id,output:S},null,8,["output"]))),128)),oY,c("div",iY,[c("div",aY,[c("div",lY,[c("div",uY,[c("a",{class:Ye(["button is-white is-small",{"is-loading":s.loading}])},[c("span",{class:Ye(["icon fd-has-action",{"has-text-grey-light":!s.playing&&!s.loading,"is-loading":s.loading}]),onClick:t[4]||(t[4]=(...S)=>o.togglePlay&&o.togglePlay(...S))},[C(i,{name:"broadcast",size:"18"})],2)],2)]),c("div",cY,[c("div",dY,[c("p",{class:Ye(["heading",{"has-text-grey-light":!s.playing}])},[c("span",{textContent:v(e.$t("navigation.stream"))},null,8,fY),c("a",{href:"stream.mp3",class:"is-lowercase",textContent:v(e.$t("navigation.stream-name"))},null,8,mY)],2),C(h,{modelValue:s.stream_volume,"onUpdate:modelValue":t[5]||(t[5]=S=>s.stream_volume=S),min:0,max:100,step:1,tooltips:!1,disabled:!s.playing,classes:{target:"slider"},onChange:o.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])]),pY,c("div",hY,[c("div",_Y,[c("div",gY,[c("div",yY,[C(g,{class:"button"}),C(b,{class:"button"}),C(w,{class:"button"})])])])])])],2)]),c("div",{class:Ye(["navbar-menu is-hidden-desktop",{"is-active":o.show_player_menu}])},[vY,c("div",bY,[c("div",wY,[c("div",CY,[C(g,{class:"button",icon_size:18}),C(b,{class:"button",icon_size:18}),C(w,{class:"button",icon_size:18})])]),xY,c("div",kY,[c("div",SY,[c("div",EY,[c("div",$Y,[c("a",{class:"button is-white is-small",onClick:t[6]||(t[6]=(...S)=>o.toggle_mute_volume&&o.toggle_mute_volume(...S))},[C(i,{class:"icon",name:o.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])]),c("div",zY,[c("div",AY,[c("p",{class:"heading",textContent:v(e.$t("navigation.volume"))},null,8,OY),C(h,{modelValue:o.player.volume,"onUpdate:modelValue":t[7]||(t[7]=S=>o.player.volume=S),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:o.set_volume},null,8,["modelValue","onChange"])])])])])]),(E(!0),D(We,null,wt(o.outputs,S=>(E(),ke(_,{key:S.id,output:S},null,8,["output"]))),128)),TY,c("div",PY,[c("div",DY,[c("div",FY,[c("div",IY,[c("a",{class:Ye(["button is-white is-small",{"is-loading":s.loading}])},[c("span",{class:Ye(["icon fd-has-action",{"has-text-grey-light":!s.playing&&!s.loading,"is-loading":s.loading}]),onClick:t[8]||(t[8]=(...S)=>o.togglePlay&&o.togglePlay(...S))},[C(i,{name:"broadcast",size:"16"})],2)],2)]),c("div",MY,[c("div",RY,[c("p",{class:Ye(["heading",{"has-text-grey-light":!s.playing}])},[c("span",{textContent:v(e.$t("navigation.stream"))},null,8,LY),c("a",{href:"stream.mp3",class:"is-lowercase",textContent:v(e.$t("navigation.stream-name"))},null,8,NY)],2),C(h,{modelValue:s.stream_volume,"onUpdate:modelValue":t[9]||(t[9]=S=>s.stream_volume=S),min:0,max:100,step:1,tooltips:!1,disabled:!s.playing,classes:{target:"slider"},onChange:o.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])])])],2)],6)}var jY=ve(BK,[["render",VY]]);const BY={name:"NotificationList",components:{},data(){return{showNav:!1}},computed:{notifications(){return this.$store.state.notifications.list}},methods:{remove:function(e){this.$store.commit(Vc,e)}}},HY={key:0,class:"fd-notifications"},UY={class:"columns is-centered"},qY={class:"column is-half"},WY=["onClick"],GY=["textContent"];function KY(e,t,n,r,s,o){return o.notifications.length>0?(E(),D("section",HY,[c("div",UY,[c("div",qY,[(E(!0),D(We,null,wt(o.notifications,i=>(E(),D("div",{key:i.id,class:Ye(["notification has-shadow",["notification",i.type?`is-${i.type}`:""]])},[c("button",{class:"delete",onClick:a=>o.remove(i)},null,8,WY),c("span",{textContent:v(i.text)},null,8,GY)],2))),128))])])])):J("",!0)}var YY=ve(BY,[["render",KY]]);const ZY={name:"ModalDialogRemotePairing",props:["show"],emits:["close"],data(){return{pairing_req:{pin:""}}},computed:{pairing(){return this.$store.state.pairing}},watch:{show(){this.show&&(this.loading=!1,setTimeout(()=>{this.$refs.pin_field.focus()},10))}},methods:{kickoff_pairing(){K.pairing_kickoff(this.pairing_req).then(()=>{this.pairing_req.pin=""})}}},JY={key:0,class:"modal is-active"},XY={class:"modal-content fd-modal-card"},QY={class:"card"},eZ={class:"card-content"},tZ=["textContent"],nZ=["textContent"],rZ={class:"field"},sZ={class:"control"},oZ={class:"card-footer"},iZ=["textContent"],aZ=["textContent"];function lZ(e,t,n,r,s,o){const i=T("mdicon");return E(),D("div",null,[C(Wt,{name:"fade"},{default:P(()=>[n.show?(E(),D("div",JY,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",XY,[c("div",QY,[c("div",eZ,[c("p",{class:"title is-4",textContent:v(e.$t("dialog.remote-pairing.title"))},null,8,tZ),c("form",{onSubmit:t[2]||(t[2]=_t((...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a),["prevent"]))},[c("label",{class:"label",textContent:v(o.pairing.remote)},null,8,nZ),c("div",rZ,[c("div",sZ,[Ct(c("input",{ref:"pin_field","onUpdate:modelValue":t[1]||(t[1]=a=>s.pairing_req.pin=a),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[sn,s.pairing_req.pin]])])])],32)]),c("footer",oZ,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[C(i,{class:"icon",name:"cancel",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.remote-pairing.cancel"))},null,8,iZ)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>o.kickoff_pairing&&o.kickoff_pairing(...a))},[C(i,{class:"icon",name:"cellphone",size:"16"}),c("span",{class:"is-size-7",textContent:v(e.$t("dialog.remote-pairing.pair"))},null,8,aZ)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):J("",!0)]),_:1})])}var uZ=ve(ZY,[["render",lZ]]);const cZ={name:"ModalDialogUpdate",components:{ModalDialog:Cf},props:["show"],emits:["close"],data(){return{rescan_metadata:!1}},computed:{library(){return this.$store.state.library},rss(){return this.$store.state.rss_count},spotify_enabled(){return this.$store.state.spotify.webapi_token_valid},update_dialog_scan_kind:{get(){return this.$store.state.update_dialog_scan_kind},set(e){this.$store.commit(sf,e)}}},methods:{update_library(){this.rescan_metadata?K.library_rescan(this.update_dialog_scan_kind):K.library_update(this.update_dialog_scan_kind)},close(){this.update_dialog_scan_kind="",this.$emit("close")}}},dZ={key:0},fZ=["textContent"],mZ={key:0,class:"field"},pZ={class:"control"},hZ={class:"select is-small"},_Z=["textContent"],gZ=["textContent"],yZ=["textContent"],vZ=["textContent"],bZ={class:"field"},wZ={class:"checkbox is-size-7 is-small"},CZ=["textContent"],xZ={key:1},kZ=["textContent"];function SZ(e,t,n,r,s,o){const i=T("modal-dialog");return E(),ke(i,{show:n.show,title:e.$t("dialog.update.title"),ok_action:o.library.updating?"":"Rescan",close_action:"Close",onOk:o.update_library,onClose:t[2]||(t[2]=a=>o.close())},{"modal-content":P(()=>[o.library.updating?(E(),D("div",xZ,[c("p",{class:"mb-3",textContent:v(e.$t("dialog.update.progress"))},null,8,kZ)])):(E(),D("div",dZ,[c("p",{class:"mb-3",textContent:v(e.$t("dialog.update.info"))},null,8,fZ),o.spotify_enabled||o.rss.tracks>0?(E(),D("div",mZ,[c("div",pZ,[c("div",hZ,[Ct(c("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>o.update_dialog_scan_kind=a)},[c("option",{value:"",textContent:v(e.$t("dialog.update.all"))},null,8,_Z),c("option",{value:"files",textContent:v(e.$t("dialog.update.local"))},null,8,gZ),o.spotify_enabled?(E(),D("option",{key:0,value:"spotify",textContent:v(e.$t("dialog.update.spotify"))},null,8,yZ)):J("",!0),o.rss.tracks>0?(E(),D("option",{key:1,value:"rss",textContent:v(e.$t("dialog.update.feeds"))},null,8,vZ)):J("",!0)],512),[[Ud,o.update_dialog_scan_kind]])])])])):J("",!0),c("div",bZ,[c("label",wZ,[Ct(c("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>s.rescan_metadata=a),type:"checkbox"},null,512),[[$r,s.rescan_metadata]]),c("span",{textContent:v(e.$t("dialog.update.rescan-metadata"))},null,8,CZ)])])]))]),_:1},8,["show","title","ok_action","onOk"])}var EZ=ve(cZ,[["render",SZ]]),N1={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(an,function(){if(!("WebSocket"in window))return;function t(n,r,s){var o={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};s||(s={});for(var i in o)typeof s[i]!="undefined"?this[i]=s[i]:this[i]=o[i];this.url=n,this.reconnectAttempts=0,this.readyState=WebSocket.CONNECTING,this.protocol=null;var a=this,l,u=!1,d=!1,m=document.createElement("div");m.addEventListener("open",function(p){a.onopen(p)}),m.addEventListener("close",function(p){a.onclose(p)}),m.addEventListener("connecting",function(p){a.onconnecting(p)}),m.addEventListener("message",function(p){a.onmessage(p)}),m.addEventListener("error",function(p){a.onerror(p)}),this.addEventListener=m.addEventListener.bind(m),this.removeEventListener=m.removeEventListener.bind(m),this.dispatchEvent=m.dispatchEvent.bind(m);function f(p,h){var _=document.createEvent("CustomEvent");return _.initCustomEvent(p,!1,!1,h),_}this.open=function(p){if(l=new WebSocket(a.url,r||[]),p){if(this.maxReconnectAttempts&&this.reconnectAttempts>this.maxReconnectAttempts)return}else m.dispatchEvent(f("connecting")),this.reconnectAttempts=0;(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","attempt-connect",a.url);var h=l,_=setTimeout(function(){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",a.url),d=!0,h.close(),d=!1},a.timeoutInterval);l.onopen=function(g){clearTimeout(_),(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",a.url),a.protocol=l.protocol,a.readyState=WebSocket.OPEN,a.reconnectAttempts=0;var b=f("open");b.isReconnect=p,p=!1,m.dispatchEvent(b)},l.onclose=function(g){if(clearTimeout(w),l=null,u)a.readyState=WebSocket.CLOSED,m.dispatchEvent(f("close"));else{a.readyState=WebSocket.CONNECTING;var b=f("connecting");b.code=g.code,b.reason=g.reason,b.wasClean=g.wasClean,m.dispatchEvent(b),!p&&!d&&((a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onclose",a.url),m.dispatchEvent(f("close")));var w=a.reconnectInterval*Math.pow(a.reconnectDecay,a.reconnectAttempts);setTimeout(function(){a.reconnectAttempts++,a.open(!0)},w>a.maxReconnectInterval?a.maxReconnectInterval:w)}},l.onmessage=function(g){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onmessage",a.url,g.data);var b=f("message");b.data=g.data,m.dispatchEvent(b)},l.onerror=function(g){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onerror",a.url,g),m.dispatchEvent(f("error"))}},this.automaticOpen==!0&&this.open(!1),this.send=function(p){if(l)return(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",a.url,p),l.send(p);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(p,h){typeof p=="undefined"&&(p=1e3),u=!0,l&&l.close(p,h)},this.refresh=function(){l&&l.close()}}return t.prototype.onopen=function(n){},t.prototype.onclose=function(n){},t.prototype.onconnecting=function(n){},t.prototype.onmessage=function(n){},t.prototype.onerror=function(n){},t.debugAll=!1,t.CONNECTING=WebSocket.CONNECTING,t.OPEN=WebSocket.OPEN,t.CLOSING=WebSocket.CLOSING,t.CLOSED=WebSocket.CLOSED,t})})(N1);var $Z=N1.exports;const zZ={name:"App",components:{NavbarTop:tK,NavbarBottom:jY,NotificationList:YY,ModalDialogRemotePairing:uZ,ModalDialogUpdate:EZ},data(){return{token_timer_id:0,reconnect_attempts:0,pairing_active:!1}},computed:{show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(ho,e)}},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(_o,e)}},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(Ii,e)}}},watch:{show_burger_menu(){this.update_is_clipped()},show_player_menu(){this.update_is_clipped()}},created:function(){this.connect(),this.$Progress.start(),this.$router.beforeEach((e,t,n)=>{if(e.meta.show_progress){if(e.meta.progress!==void 0){const r=e.meta.progress;this.$Progress.parseMeta(r)}this.$Progress.start()}n()}),this.$router.afterEach((e,t)=>{e.meta.show_progress&&this.$Progress.finish()})},methods:{connect:function(){K.config().then(({data:e})=>{this.$store.commit(Mg,e),this.$store.commit(Ql,e.hide_singles),document.title=e.library_name,this.open_ws(),this.$Progress.finish()}).catch(()=>{this.$store.dispatch("add_notification",{text:this.$t("server.connection.failed"),type:"danger",topic:"connection"})})},open_ws:function(){if(this.$store.state.config.websocket_port<=0){this.$store.dispatch("add_notification",{text:this.$t("server.missing-port"),type:"danger"});return}const e=this;let t="ws://";window.location.protocol==="https:"&&(t="wss://");let n=t+window.location.hostname+":"+e.$store.state.config.websocket_port;const r=new $Z(n,"notify",{reconnectInterval:1e3,maxReconnectInterval:2e3});r.onopen=function(){e.reconnect_attempts=0,r.send(JSON.stringify({notify:["update","database","player","options","outputs","volume","queue","spotify","lastfm","pairing"]})),e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing()},r.onclose=function(){};var s=!1;function o(){s||(e.update_outputs(),e.update_player_status(),e.update_library_stats(),e.update_settings(),e.update_queue(),e.update_spotify(),e.update_lastfm(),e.update_pairing(),s=!0,setTimeout(function(){s=!1},500))}window.addEventListener("focus",o),document.addEventListener("visibilitychange",function(){document.visibilityState==="visible"&&o()}),r.onmessage=function(i){const a=JSON.parse(i.data);(a.notify.includes("update")||a.notify.includes("database"))&&e.update_library_stats(),(a.notify.includes("player")||a.notify.includes("options")||a.notify.includes("volume"))&&e.update_player_status(),(a.notify.includes("outputs")||a.notify.includes("volume"))&&e.update_outputs(),a.notify.includes("queue")&&e.update_queue(),a.notify.includes("spotify")&&e.update_spotify(),a.notify.includes("lastfm")&&e.update_lastfm(),a.notify.includes("pairing")&&e.update_pairing()}},update_library_stats:function(){K.library_stats().then(({data:e})=>{this.$store.commit(Lg,e)}),K.library_count("media_kind is audiobook").then(({data:e})=>{this.$store.commit(Ng,e)}),K.library_count("media_kind is podcast").then(({data:e})=>{this.$store.commit(Vg,e)}),K.library_count("scan_kind is rss").then(({data:e})=>{this.$store.commit(jg,e)})},update_outputs:function(){K.outputs().then(({data:e})=>{this.$store.commit(Bg,e.outputs)})},update_player_status:function(){K.player_status().then(({data:e})=>{this.$store.commit(Qd,e)})},update_queue:function(){K.queue().then(({data:e})=>{this.$store.commit(Hg,e)})},update_settings:function(){K.settings().then(({data:e})=>{this.$store.commit(Rg,e)})},update_lastfm:function(){K.lastfm().then(({data:e})=>{this.$store.commit(Ug,e)})},update_spotify:function(){K.spotify().then(({data:e})=>{this.$store.commit(qg,e),this.token_timer_id>0&&(window.clearTimeout(this.token_timer_id),this.token_timer_id=0),e.webapi_token_expires_in>0&&e.webapi_token&&(this.token_timer_id=window.setTimeout(this.update_spotify,1e3*e.webapi_token_expires_in))})},update_pairing:function(){K.pairing().then(({data:e})=>{this.$store.commit(Wg,e),this.pairing_active=e.active})},update_is_clipped:function(){this.show_burger_menu||this.show_player_menu?document.querySelector("html").classList.add("is-clipped"):document.querySelector("html").classList.remove("is-clipped")}},template:"<App/>"},AZ={id:"app"};function OZ(e,t,n,r,s,o){const i=T("navbar-top"),a=T("vue-progress-bar"),l=T("router-view"),u=T("modal-dialog-remote-pairing"),d=T("modal-dialog-update"),m=T("notification-list"),f=T("navbar-bottom");return E(),D("div",AZ,[C(i),C(a,{class:"fd-progress-bar"}),C(l,null,{default:P(({Component:p})=>[(E(),ke(N_(p),{class:"fd-page"}))]),_:1}),C(u,{show:s.pairing_active,onClose:t[0]||(t[0]=p=>s.pairing_active=!1)},null,8,["show"]),C(d,{show:o.show_update_dialog,onClose:t[1]||(t[1]=p=>o.show_update_dialog=!1)},null,8,["show"]),Ct(C(m,null,null,512),[[po,!o.show_burger_menu]]),C(f),Ct(c("div",{class:"fd-overlay-fullscreen",onClick:t[2]||(t[2]=p=>o.show_burger_menu=o.show_player_menu=!1)},null,512),[[po,o.show_burger_menu||o.show_player_menu]])])}var TZ=ve(zZ,[["render",OZ]]);const V1=pg(TZ).use(at).use(Fv).use(ZH,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"}).use(XH).use(cU,{log:!1}).use(dU).use(xq,{icons:SG}).use(Ux);V1.config.globalProperties.$filters=kG;V1.mount("#app");