owntone-server/htdocs/assets/index.js
2022-06-16 06:45:26 +02:00

62 lines
795 KiB
JavaScript

var P0=Object.defineProperty,D0=Object.defineProperties;var F0=Object.getOwnPropertyDescriptors;var ia=Object.getOwnPropertySymbols;var mm=Object.prototype.hasOwnProperty,hm=Object.prototype.propertyIsEnumerable;var fm=(e,t,n)=>t in e?P0(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Je=(e,t)=>{for(var n in t||(t={}))mm.call(t,n)&&fm(e,n,t[n]);if(ia)for(var n of ia(t))hm.call(t,n)&&fm(e,n,t[n]);return e},jn=(e,t)=>D0(e,F0(t));var Nc=(e,t)=>{var n={};for(var o in e)mm.call(e,o)&&t.indexOf(o)<0&&(n[o]=e[o]);if(e!=null&&ia)for(var o of ia(e))t.indexOf(o)<0&&hm.call(e,o)&&(n[o]=e[o]);return n};const I0=function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const i of document.querySelectorAll('link[rel="modulepreload"]'))o(i);new MutationObserver(i=>{for(const r of i)if(r.type==="childList")for(const s of r.addedNodes)s.tagName==="LINK"&&s.rel==="modulepreload"&&o(s)}).observe(document,{childList:!0,subtree:!0});function n(i){const r={};return i.integrity&&(r.integrity=i.integrity),i.referrerpolicy&&(r.referrerPolicy=i.referrerpolicy),i.crossorigin==="use-credentials"?r.credentials="include":i.crossorigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function o(i){if(i.ep)return;i.ep=!0;const r=n(i);fetch(i.href,r)}};I0();function Vl(e,t){const n=Object.create(null),o=e.split(",");for(let i=0;i<o.length;i++)n[o[i]]=!0;return t?i=>!!n[i.toLowerCase()]:i=>!!n[i]}const M0="Infinity,undefined,NaN,isFinite,isNaN,parseFloat,parseInt,decodeURI,decodeURIComponent,encodeURI,encodeURIComponent,Math,Number,Date,Array,Object,Boolean,String,RegExp,Map,Set,JSON,Intl,BigInt",L0=Vl(M0),R0="itemscope,allowfullscreen,formnovalidate,ismap,nomodule,novalidate,readonly",N0=Vl(R0);function Xp(e){return!!e||e===""}function li(e){if(He(e)){const t={};for(let n=0;n<e.length;n++){const o=e[n],i=Tt(o)?B0(o):li(o);if(i)for(const r in i)t[r]=i[r]}return t}else{if(Tt(e))return e;if(Nt(e))return e}}const j0=/;(?![^(]*\))/g,V0=/:(.+)/;function B0(e){const t={};return e.split(j0).forEach(n=>{if(n){const o=n.split(V0);o.length>1&&(t[o[0].trim()]=o[1].trim())}}),t}function Ye(e){let t="";if(Tt(e))t=e;else if(He(e))for(let n=0;n<e.length;n++){const o=Ye(e[n]);o&&(t+=o+" ")}else if(Nt(e))for(const n in e)e[n]&&(t+=n+" ");return t.trim()}function U0(e){if(!e)return null;let{class:t,style:n}=e;return t&&!Tt(t)&&(e.class=Ye(t)),n&&(e.style=li(n)),e}function H0(e,t){if(e.length!==t.length)return!1;let n=!0;for(let o=0;n&&o<e.length;o++)n=ti(e[o],t[o]);return n}function ti(e,t){if(e===t)return!0;let n=pm(e),o=pm(t);if(n||o)return n&&o?e.getTime()===t.getTime():!1;if(n=$s(e),o=$s(t),n||o)return e===t;if(n=He(e),o=He(t),n||o)return n&&o?H0(e,t):!1;if(n=Nt(e),o=Nt(t),n||o){if(!n||!o)return!1;const i=Object.keys(e).length,r=Object.keys(t).length;if(i!==r)return!1;for(const s in e){const a=e.hasOwnProperty(s),l=t.hasOwnProperty(s);if(a&&!l||!a&&l||!ti(e[s],t[s]))return!1}}return String(e)===String(t)}function Bl(e,t){return e.findIndex(n=>ti(n,t))}const _=e=>Tt(e)?e:e==null?"":He(e)||Nt(e)&&(e.toString===eb||!et(e.toString))?JSON.stringify(e,Qp,2):String(e),Qp=(e,t)=>t&&t.__v_isRef?Qp(e,t.value):ar(t)?{[`Map(${t.size})`]:[...t.entries()].reduce((n,[o,i])=>(n[`${o} =>`]=i,n),{})}:Ti(t)?{[`Set(${t.size})`]:[...t.values()]}:Nt(t)&&!He(t)&&!tb(t)?String(t):t,vt={},sr=[],io=()=>{},q0=()=>!1,G0=/^on[^a-z]/,Ms=e=>G0.test(e),zd=e=>e.startsWith("onUpdate:"),Rt=Object.assign,Sd=(e,t)=>{const n=e.indexOf(t);n>-1&&e.splice(n,1)},W0=Object.prototype.hasOwnProperty,ft=(e,t)=>W0.call(e,t),He=Array.isArray,ar=e=>Ls(e)==="[object Map]",Ti=e=>Ls(e)==="[object Set]",pm=e=>Ls(e)==="[object Date]",et=e=>typeof e=="function",Tt=e=>typeof e=="string",$s=e=>typeof e=="symbol",Nt=e=>e!==null&&typeof e=="object",$d=e=>Nt(e)&&et(e.then)&&et(e.catch),eb=Object.prototype.toString,Ls=e=>eb.call(e),K0=e=>Ls(e).slice(8,-1),tb=e=>Ls(e)==="[object Object]",Ed=e=>Tt(e)&&e!=="NaN"&&e[0]!=="-"&&""+parseInt(e,10)===e,ss=Vl(",key,ref,ref_for,ref_key,onVnodeBeforeMount,onVnodeMounted,onVnodeBeforeUpdate,onVnodeUpdated,onVnodeBeforeUnmount,onVnodeUnmounted"),Ul=e=>{const t=Object.create(null);return n=>t[n]||(t[n]=e(n))},Y0=/-(\w)/g,Ln=Ul(e=>e.replace(Y0,(t,n)=>n?n.toUpperCase():"")),Z0=/\B([A-Z])/g,po=Ul(e=>e.replace(Z0,"-$1").toLowerCase()),Rs=Ul(e=>e.charAt(0).toUpperCase()+e.slice(1)),as=Ul(e=>e?`on${Rs(e)}`:""),fr=(e,t)=>!Object.is(e,t),lr=(e,t)=>{for(let n=0;n<e.length;n++)e[n](t)},bl=(e,t,n)=>{Object.defineProperty(e,t,{configurable:!0,enumerable:!1,value:n})},ni=e=>{const t=parseFloat(e);return isNaN(t)?e:t};let bm;const J0=()=>bm||(bm=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});let Tn;class Ad{constructor(t=!1){this.active=!0,this.effects=[],this.cleanups=[],!t&&Tn&&(this.parent=Tn,this.index=(Tn.scopes||(Tn.scopes=[])).push(this)-1)}run(t){if(this.active){const n=Tn;try{return Tn=this,t()}finally{Tn=n}}}on(){Tn=this}off(){Tn=this.parent}stop(t){if(this.active){let n,o;for(n=0,o=this.effects.length;n<o;n++)this.effects[n].stop();for(n=0,o=this.cleanups.length;n<o;n++)this.cleanups[n]();if(this.scopes)for(n=0,o=this.scopes.length;n<o;n++)this.scopes[n].stop(!0);if(this.parent&&!t){const i=this.parent.scopes.pop();i&&i!==this&&(this.parent.scopes[this.index]=i,i.index=this.index)}this.active=!1}}}function X0(e){return new Ad(e)}function nb(e,t=Tn){t&&t.active&&t.effects.push(e)}function Q0(){return Tn}function e1(e){Tn&&Tn.cleanups.push(e)}const Od=e=>{const t=new Set(e);return t.w=0,t.n=0,t},ob=e=>(e.w&oi)>0,ib=e=>(e.n&oi)>0,t1=({deps:e})=>{if(e.length)for(let t=0;t<e.length;t++)e[t].w|=oi},n1=e=>{const{deps:t}=e;if(t.length){let n=0;for(let o=0;o<t.length;o++){const i=t[o];ob(i)&&!ib(i)?i.delete(e):t[n++]=i,i.w&=~oi,i.n&=~oi}t.length=n}},ku=new WeakMap;let Jr=0,oi=1;const Cu=30;let no;const ki=Symbol(""),zu=Symbol("");class Ns{constructor(t,n=null,o){this.fn=t,this.scheduler=n,this.active=!0,this.deps=[],this.parent=void 0,nb(this,o)}run(){if(!this.active)return this.fn();let t=no,n=Qo;for(;t;){if(t===this)return;t=t.parent}try{return this.parent=no,no=this,Qo=!0,oi=1<<++Jr,Jr<=Cu?t1(this):gm(this),this.fn()}finally{Jr<=Cu&&n1(this),oi=1<<--Jr,no=this.parent,Qo=n,this.parent=void 0,this.deferStop&&this.stop()}}stop(){no===this?this.deferStop=!0:this.active&&(gm(this),this.onStop&&this.onStop(),this.active=!1)}}function gm(e){const{deps:t}=e;if(t.length){for(let n=0;n<t.length;n++)t[n].delete(e);t.length=0}}function o1(e,t){e.effect&&(e=e.effect.fn);const n=new Ns(e);t&&(Rt(n,t),t.scope&&nb(n,t.scope)),(!t||!t.lazy)&&n.run();const o=n.run.bind(n);return o.effect=n,o}function i1(e){e.effect.stop()}let Qo=!0;const rb=[];function Pi(){rb.push(Qo),Qo=!1}function Di(){const e=rb.pop();Qo=e===void 0?!0:e}function Rn(e,t,n){if(Qo&&no){let o=ku.get(e);o||ku.set(e,o=new Map);let i=o.get(n);i||o.set(n,i=Od()),sb(i)}}function sb(e,t){let n=!1;Jr<=Cu?ib(e)||(e.n|=oi,n=!ob(e)):n=!e.has(no),n&&(e.add(no),no.deps.push(e))}function Ao(e,t,n,o,i,r){const s=ku.get(e);if(!s)return;let a=[];if(t==="clear")a=[...s.values()];else if(n==="length"&&He(e))s.forEach((l,u)=>{(u==="length"||u>=o)&&a.push(l)});else switch(n!==void 0&&a.push(s.get(n)),t){case"add":He(e)?Ed(n)&&a.push(s.get("length")):(a.push(s.get(ki)),ar(e)&&a.push(s.get(zu)));break;case"delete":He(e)||(a.push(s.get(ki)),ar(e)&&a.push(s.get(zu)));break;case"set":ar(e)&&a.push(s.get(ki));break}if(a.length===1)a[0]&&Su(a[0]);else{const l=[];for(const u of a)u&&l.push(...u);Su(Od(l))}}function Su(e,t){const n=He(e)?e:[...e];for(const o of n)o.computed&&vm(o);for(const o of n)o.computed||vm(o)}function vm(e,t){(e!==no||e.allowRecurse)&&(e.scheduler?e.scheduler():e.run())}const r1=Vl("__proto__,__v_isRef,__isVue"),ab=new Set(Object.getOwnPropertyNames(Symbol).filter(e=>e!=="arguments"&&e!=="caller").map(e=>Symbol[e]).filter($s)),s1=Hl(),a1=Hl(!1,!0),l1=Hl(!0),c1=Hl(!0,!0),_m=u1();function u1(){const e={};return["includes","indexOf","lastIndexOf"].forEach(t=>{e[t]=function(...n){const o=ct(this);for(let r=0,s=this.length;r<s;r++)Rn(o,"get",r+"");const i=o[t](...n);return i===-1||i===!1?o[t](...n.map(ct)):i}}),["push","pop","shift","unshift","splice"].forEach(t=>{e[t]=function(...n){Pi();const o=ct(this)[t].apply(this,n);return Di(),o}}),e}function Hl(e=!1,t=!1){return function(o,i,r){if(i==="__v_isReactive")return!e;if(i==="__v_isReadonly")return e;if(i==="__v_isShallow")return t;if(i==="__v_raw"&&r===(e?t?hb:mb:t?fb:db).get(o))return o;const s=He(o);if(!e&&s&&ft(_m,i))return Reflect.get(_m,i,r);const a=Reflect.get(o,i,r);return($s(i)?ab.has(i):r1(i))||(e||Rn(o,"get",i),t)?a:qt(a)?s&&Ed(i)?a:a.value:Nt(a)?e?Pd(a):Fi(a):a}}const d1=lb(),f1=lb(!0);function lb(e=!1){return function(n,o,i,r){let s=n[o];if(mr(s)&&qt(s)&&!qt(i))return!1;if(!e&&!mr(i)&&(gl(i)||(i=ct(i),s=ct(s)),!He(n)&&qt(s)&&!qt(i)))return s.value=i,!0;const a=He(n)&&Ed(o)?Number(o)<n.length:ft(n,o),l=Reflect.set(n,o,i,r);return n===ct(r)&&(a?fr(i,s)&&Ao(n,"set",o,i):Ao(n,"add",o,i)),l}}function m1(e,t){const n=ft(e,t);e[t];const o=Reflect.deleteProperty(e,t);return o&&n&&Ao(e,"delete",t,void 0),o}function h1(e,t){const n=Reflect.has(e,t);return(!$s(t)||!ab.has(t))&&Rn(e,"has",t),n}function p1(e){return Rn(e,"iterate",He(e)?"length":ki),Reflect.ownKeys(e)}const cb={get:s1,set:d1,deleteProperty:m1,has:h1,ownKeys:p1},ub={get:l1,set(e,t){return!0},deleteProperty(e,t){return!0}},b1=Rt({},cb,{get:a1,set:f1}),g1=Rt({},ub,{get:c1}),Td=e=>e,ql=e=>Reflect.getPrototypeOf(e);function ra(e,t,n=!1,o=!1){e=e.__v_raw;const i=ct(e),r=ct(t);n||(t!==r&&Rn(i,"get",t),Rn(i,"get",r));const{has:s}=ql(i),a=o?Td:n?Id:Es;if(s.call(i,t))return a(e.get(t));if(s.call(i,r))return a(e.get(r));e!==i&&e.get(t)}function sa(e,t=!1){const n=this.__v_raw,o=ct(n),i=ct(e);return t||(e!==i&&Rn(o,"has",e),Rn(o,"has",i)),e===i?n.has(e):n.has(e)||n.has(i)}function aa(e,t=!1){return e=e.__v_raw,!t&&Rn(ct(e),"iterate",ki),Reflect.get(e,"size",e)}function ym(e){e=ct(e);const t=ct(this);return ql(t).has.call(t,e)||(t.add(e),Ao(t,"add",e,e)),this}function wm(e,t){t=ct(t);const n=ct(this),{has:o,get:i}=ql(n);let r=o.call(n,e);r||(e=ct(e),r=o.call(n,e));const s=i.call(n,e);return n.set(e,t),r?fr(t,s)&&Ao(n,"set",e,t):Ao(n,"add",e,t),this}function xm(e){const t=ct(this),{has:n,get:o}=ql(t);let i=n.call(t,e);i||(e=ct(e),i=n.call(t,e)),o&&o.call(t,e);const r=t.delete(e);return i&&Ao(t,"delete",e,void 0),r}function km(){const e=ct(this),t=e.size!==0,n=e.clear();return t&&Ao(e,"clear",void 0,void 0),n}function la(e,t){return function(o,i){const r=this,s=r.__v_raw,a=ct(s),l=t?Td:e?Id:Es;return!e&&Rn(a,"iterate",ki),s.forEach((u,d)=>o.call(i,l(u),l(d),r))}}function ca(e,t,n){return function(...o){const i=this.__v_raw,r=ct(i),s=ar(r),a=e==="entries"||e===Symbol.iterator&&s,l=e==="keys"&&s,u=i[e](...o),d=n?Td:t?Id:Es;return!t&&Rn(r,"iterate",l?zu:ki),{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 Lo(e){return function(...t){return e==="delete"?!1:this}}function v1(){const e={get(r){return ra(this,r)},get size(){return aa(this)},has:sa,add:ym,set:wm,delete:xm,clear:km,forEach:la(!1,!1)},t={get(r){return ra(this,r,!1,!0)},get size(){return aa(this)},has:sa,add:ym,set:wm,delete:xm,clear:km,forEach:la(!1,!0)},n={get(r){return ra(this,r,!0)},get size(){return aa(this,!0)},has(r){return sa.call(this,r,!0)},add:Lo("add"),set:Lo("set"),delete:Lo("delete"),clear:Lo("clear"),forEach:la(!0,!1)},o={get(r){return ra(this,r,!0,!0)},get size(){return aa(this,!0)},has(r){return sa.call(this,r,!0)},add:Lo("add"),set:Lo("set"),delete:Lo("delete"),clear:Lo("clear"),forEach:la(!0,!0)};return["keys","values","entries",Symbol.iterator].forEach(r=>{e[r]=ca(r,!1,!1),n[r]=ca(r,!0,!1),t[r]=ca(r,!1,!0),o[r]=ca(r,!0,!0)}),[e,n,t,o]}const[_1,y1,w1,x1]=v1();function Gl(e,t){const n=t?e?x1:w1:e?y1:_1;return(o,i,r)=>i==="__v_isReactive"?!e:i==="__v_isReadonly"?e:i==="__v_raw"?o:Reflect.get(ft(n,i)&&i in o?n:o,i,r)}const k1={get:Gl(!1,!1)},C1={get:Gl(!1,!0)},z1={get:Gl(!0,!1)},S1={get:Gl(!0,!0)},db=new WeakMap,fb=new WeakMap,mb=new WeakMap,hb=new WeakMap;function $1(e){switch(e){case"Object":case"Array":return 1;case"Map":case"Set":case"WeakMap":case"WeakSet":return 2;default:return 0}}function E1(e){return e.__v_skip||!Object.isExtensible(e)?0:$1(K0(e))}function Fi(e){return mr(e)?e:Wl(e,!1,cb,k1,db)}function pb(e){return Wl(e,!1,b1,C1,fb)}function Pd(e){return Wl(e,!0,ub,z1,mb)}function A1(e){return Wl(e,!0,g1,S1,hb)}function Wl(e,t,n,o,i){if(!Nt(e)||e.__v_raw&&!(t&&e.__v_isReactive))return e;const r=i.get(e);if(r)return r;const s=E1(e);if(s===0)return e;const a=new Proxy(e,s===2?o:n);return i.set(e,a),a}function Ci(e){return mr(e)?Ci(e.__v_raw):!!(e&&e.__v_isReactive)}function mr(e){return!!(e&&e.__v_isReadonly)}function gl(e){return!!(e&&e.__v_isShallow)}function Dd(e){return Ci(e)||mr(e)}function ct(e){const t=e&&e.__v_raw;return t?ct(t):e}function Fd(e){return bl(e,"__v_skip",!0),e}const Es=e=>Nt(e)?Fi(e):e,Id=e=>Nt(e)?Pd(e):e;function Md(e){Qo&&no&&(e=ct(e),sb(e.dep||(e.dep=Od())))}function Kl(e,t){e=ct(e),e.dep&&Su(e.dep)}function qt(e){return!!(e&&e.__v_isRef===!0)}function wn(e){return gb(e,!1)}function bb(e){return gb(e,!0)}function gb(e,t){return qt(e)?e:new O1(e,t)}class O1{constructor(t,n){this.__v_isShallow=n,this.dep=void 0,this.__v_isRef=!0,this._rawValue=n?t:ct(t),this._value=n?t:Es(t)}get value(){return Md(this),this._value}set value(t){t=this.__v_isShallow?t:ct(t),fr(t,this._rawValue)&&(this._rawValue=t,this._value=this.__v_isShallow?t:Es(t),Kl(this))}}function T1(e){Kl(e)}function cr(e){return qt(e)?e.value:e}const P1={get:(e,t,n)=>cr(Reflect.get(e,t,n)),set:(e,t,n,o)=>{const i=e[t];return qt(i)&&!qt(n)?(i.value=n,!0):Reflect.set(e,t,n,o)}};function Ld(e){return Ci(e)?e:new Proxy(e,P1)}class D1{constructor(t){this.dep=void 0,this.__v_isRef=!0;const{get:n,set:o}=t(()=>Md(this),()=>Kl(this));this._get=n,this._set=o}get value(){return this._get()}set value(t){this._set(t)}}function F1(e){return new D1(e)}function ls(e){const t=He(e)?new Array(e.length):{};for(const n in e)t[n]=vb(e,n);return t}class I1{constructor(t,n,o){this._object=t,this._key=n,this._defaultValue=o,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 vb(e,t,n){const o=e[t];return qt(o)?o:new I1(e,t,n)}class M1{constructor(t,n,o,i){this._setter=n,this.dep=void 0,this.__v_isRef=!0,this._dirty=!0,this.effect=new Ns(t,()=>{this._dirty||(this._dirty=!0,Kl(this))}),this.effect.computed=this,this.effect.active=this._cacheable=!i,this.__v_isReadonly=o}get value(){const t=ct(this);return Md(t),(t._dirty||!t._cacheable)&&(t._dirty=!1,t._value=t.effect.run()),t._value}set value(t){this._setter(t)}}function L1(e,t,n=!1){let o,i;const r=et(e);return r?(o=e,i=io):(o=e.get,i=e.set),new M1(o,i,r||!i,n)}const cs=[];function _b(e,...t){Pi();const n=cs.length?cs[cs.length-1].component:null,o=n&&n.appContext.config.warnHandler,i=R1();if(o)bo(o,n,11,[e+t.join(""),n&&n.proxy,i.map(({vnode:r})=>`at <${ug(n,r.type)}>`).join(`
`),i]);else{const r=[`[Vue warn]: ${e}`,...t];i.length&&r.push(`
`,...N1(i)),console.warn(...r)}Di()}function R1(){let e=cs[cs.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 o=e.component&&e.component.parent;e=o&&o.vnode}return t}function N1(e){const t=[];return e.forEach((n,o)=>{t.push(...o===0?[]:[`
`],...j1(n))}),t}function j1({vnode:e,recurseCount:t}){const n=t>0?`... (${t} recursive calls)`:"",o=e.component?e.component.parent==null:!1,i=` at <${ug(e.component,e.type,o)}`,r=">"+n;return e.props?[i,...V1(e.props),r]:[i+r]}function V1(e){const t=[],n=Object.keys(e);return n.slice(0,3).forEach(o=>{t.push(...yb(o,e[o]))}),n.length>3&&t.push(" ..."),t}function yb(e,t,n){return Tt(t)?(t=JSON.stringify(t),n?t:[`${e}=${t}`]):typeof t=="number"||typeof t=="boolean"||t==null?n?t:[`${e}=${t}`]:qt(t)?(t=yb(e,ct(t.value),!0),n?t:[`${e}=Ref<`,t,">"]):et(t)?[`${e}=fn${t.name?`<${t.name}>`:""}`]:(t=ct(t),n?t:[`${e}=`,t])}function bo(e,t,n,o){let i;try{i=o?e(...o):e()}catch(r){Ii(r,t,n)}return i}function In(e,t,n,o){if(et(e)){const r=bo(e,t,n,o);return r&&$d(r)&&r.catch(s=>{Ii(s,t,n)}),r}const i=[];for(let r=0;r<e.length;r++)i.push(In(e[r],t,n,o));return i}function Ii(e,t,n,o=!0){const i=t?t.vnode:null;if(t){let r=t.parent;const s=t.proxy,a=n;for(;r;){const u=r.ec;if(u){for(let d=0;d<u.length;d++)if(u[d](e,s,a)===!1)return}r=r.parent}const l=t.appContext.config.errorHandler;if(l){bo(l,null,10,[e,s,a]);return}}B1(e,n,i,o)}function B1(e,t,n,o=!0){console.error(e)}let vl=!1,$u=!1;const Fn=[];let zo=0;const us=[];let Xr=null,Xi=0;const ds=[];let Uo=null,Qi=0;const wb=Promise.resolve();let Rd=null,Eu=null;function Yl(e){const t=Rd||wb;return e?t.then(this?e.bind(this):e):t}function U1(e){let t=zo+1,n=Fn.length;for(;t<n;){const o=t+n>>>1;As(Fn[o])<e?t=o+1:n=o}return t}function Nd(e){(!Fn.length||!Fn.includes(e,vl&&e.allowRecurse?zo+1:zo))&&e!==Eu&&(e.id==null?Fn.push(e):Fn.splice(U1(e.id),0,e),xb())}function xb(){!vl&&!$u&&($u=!0,Rd=wb.then(Cb))}function H1(e){const t=Fn.indexOf(e);t>zo&&Fn.splice(t,1)}function kb(e,t,n,o){He(e)?n.push(...e):(!t||!t.includes(e,e.allowRecurse?o+1:o))&&n.push(e),xb()}function q1(e){kb(e,Xr,us,Xi)}function jd(e){kb(e,Uo,ds,Qi)}function Zl(e,t=null){if(us.length){for(Eu=t,Xr=[...new Set(us)],us.length=0,Xi=0;Xi<Xr.length;Xi++)Xr[Xi]();Xr=null,Xi=0,Eu=null,Zl(e,t)}}function _l(e){if(Zl(),ds.length){const t=[...new Set(ds)];if(ds.length=0,Uo){Uo.push(...t);return}for(Uo=t,Uo.sort((n,o)=>As(n)-As(o)),Qi=0;Qi<Uo.length;Qi++)Uo[Qi]();Uo=null,Qi=0}}const As=e=>e.id==null?1/0:e.id;function Cb(e){$u=!1,vl=!0,Zl(e),Fn.sort((n,o)=>As(n)-As(o));const t=io;try{for(zo=0;zo<Fn.length;zo++){const n=Fn[zo];n&&n.active!==!1&&bo(n,null,14)}}finally{zo=0,Fn.length=0,_l(),vl=!1,Rd=null,(Fn.length||us.length||ds.length)&&Cb(e)}}let er,ua=[];function zb(e,t){var n,o;er=e,er?(er.enabled=!0,ua.forEach(({event:i,args:r})=>er.emit(i,...r)),ua=[]):typeof window!="undefined"&&window.HTMLElement&&!(!((o=(n=window.navigator)===null||n===void 0?void 0:n.userAgent)===null||o===void 0)&&o.includes("jsdom"))?((t.__VUE_DEVTOOLS_HOOK_REPLAY__=t.__VUE_DEVTOOLS_HOOK_REPLAY__||[]).push(r=>{zb(r,t)}),setTimeout(()=>{er||(t.__VUE_DEVTOOLS_HOOK_REPLAY__=null,ua=[])},3e3)):ua=[]}function G1(e,t,...n){if(e.isUnmounted)return;const o=e.vnode.props||vt;let i=n;const r=t.startsWith("update:"),s=r&&t.slice(7);if(s&&s in o){const d=`${s==="modelValue"?"model":s}Modifiers`,{number:m,trim:f}=o[d]||vt;f&&(i=n.map(h=>h.trim())),m&&(i=n.map(ni))}let a,l=o[a=as(t)]||o[a=as(Ln(t))];!l&&r&&(l=o[a=as(po(t))]),l&&In(l,e,6,i);const u=o[a+"Once"];if(u){if(!e.emitted)e.emitted={};else if(e.emitted[a])return;e.emitted[a]=!0,In(u,e,6,i)}}function Sb(e,t,n=!1){const o=t.emitsCache,i=o.get(e);if(i!==void 0)return i;const r=e.emits;let s={},a=!1;if(!et(e)){const l=u=>{const d=Sb(u,t,!0);d&&(a=!0,Rt(s,d))};!n&&t.mixins.length&&t.mixins.forEach(l),e.extends&&l(e.extends),e.mixins&&e.mixins.forEach(l)}return!r&&!a?(o.set(e,null),null):(He(r)?r.forEach(l=>s[l]=null):Rt(s,r),o.set(e,s),s)}function Jl(e,t){return!e||!Ms(t)?!1:(t=t.slice(2).replace(/Once$/,""),ft(e,t[0].toLowerCase()+t.slice(1))||ft(e,po(t))||ft(e,t))}let rn=null,Xl=null;function Os(e){const t=rn;return rn=e,Xl=e&&e.type.__scopeId||null,t}function W1(e){Xl=e}function K1(){Xl=null}const Y1=e=>T;function T(e,t=rn,n){if(!t||e._n)return e;const o=(...i)=>{o._d&&Iu(-1);const r=Os(t),s=e(...i);return Os(r),o._d&&Iu(1),s};return o._n=!0,o._c=!0,o._d=!0,o}function il(e){const{type:t,vnode:n,proxy:o,withProxy:i,props:r,propsOptions:[s],slots:a,attrs:l,emit:u,render:d,renderCache:m,data:f,setupState:h,ctx:p,inheritAttrs:b}=e;let g,y;const w=Os(e);try{if(n.shapeFlag&4){const k=i||o;g=Pn(d.call(k,k,m,r,h,f,p)),y=l}else{const k=t;g=Pn(k.length>1?k(r,{attrs:l,slots:a,emit:u}):k(r,null)),y=t.props?l:J1(l)}}catch(k){hs.length=0,Ii(k,e,1),g=x(ln)}let C=g;if(y&&b!==!1){const k=Object.keys(y),{shapeFlag:$}=C;k.length&&$&7&&(s&&k.some(zd)&&(y=X1(y,s)),C=vo(C,y))}return n.dirs&&(C=vo(C),C.dirs=C.dirs?C.dirs.concat(n.dirs):n.dirs),n.transition&&(C.transition=n.transition),g=C,Os(w),g}function Z1(e){let t;for(let n=0;n<e.length;n++){const o=e[n];if(ri(o)){if(o.type!==ln||o.children==="v-if"){if(t)return;t=o}}else return}return t}const J1=e=>{let t;for(const n in e)(n==="class"||n==="style"||Ms(n))&&((t||(t={}))[n]=e[n]);return t},X1=(e,t)=>{const n={};for(const o in e)(!zd(o)||!(o.slice(9)in t))&&(n[o]=e[o]);return n};function Q1(e,t,n){const{props:o,children:i,component:r}=e,{props:s,children:a,patchFlag:l}=t,u=r.emitsOptions;if(t.dirs||t.transition)return!0;if(n&&l>=0){if(l&1024)return!0;if(l&16)return o?Cm(o,s,u):!!s;if(l&8){const d=t.dynamicProps;for(let m=0;m<d.length;m++){const f=d[m];if(s[f]!==o[f]&&!Jl(u,f))return!0}}}else return(i||a)&&(!a||!a.$stable)?!0:o===s?!1:o?s?Cm(o,s,u):!0:!!s;return!1}function Cm(e,t,n){const o=Object.keys(t);if(o.length!==Object.keys(e).length)return!0;for(let i=0;i<o.length;i++){const r=o[i];if(t[r]!==e[r]&&!Jl(n,r))return!0}return!1}function Vd({vnode:e,parent:t},n){for(;t&&t.subTree===e;)(e=t.vnode).el=n,t=t.parent}const $b=e=>e.__isSuspense,ew={name:"Suspense",__isSuspense:!0,process(e,t,n,o,i,r,s,a,l,u){e==null?nw(t,n,o,i,r,s,a,l,u):ow(e,t,n,o,i,s,a,l,u)},hydrate:iw,create:Bd,normalize:rw},tw=ew;function Ts(e,t){const n=e.props&&e.props[t];et(n)&&n()}function nw(e,t,n,o,i,r,s,a,l){const{p:u,o:{createElement:d}}=l,m=d("div"),f=e.suspense=Bd(e,i,o,t,m,n,r,s,a,l);u(null,f.pendingBranch=e.ssContent,m,null,o,f,r,s),f.deps>0?(Ts(e,"onPending"),Ts(e,"onFallback"),u(null,e.ssFallback,t,n,o,null,r,s),ur(f,e.ssFallback)):f.resolve()}function ow(e,t,n,o,i,r,s,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,h=t.ssFallback,{activeBranch:p,pendingBranch:b,isInFallback:g,isHydrating:y}=m;if(b)m.pendingBranch=f,ho(f,b)?(l(b,f,m.hiddenContainer,null,i,m,r,s,a),m.deps<=0?m.resolve():g&&(l(p,h,n,o,i,null,r,s,a),ur(m,h))):(m.pendingId++,y?(m.isHydrating=!1,m.activeBranch=b):u(b,i,m),m.deps=0,m.effects.length=0,m.hiddenContainer=d("div"),g?(l(null,f,m.hiddenContainer,null,i,m,r,s,a),m.deps<=0?m.resolve():(l(p,h,n,o,i,null,r,s,a),ur(m,h))):p&&ho(f,p)?(l(p,f,n,o,i,m,r,s,a),m.resolve(!0)):(l(null,f,m.hiddenContainer,null,i,m,r,s,a),m.deps<=0&&m.resolve()));else if(p&&ho(f,p))l(p,f,n,o,i,m,r,s,a),ur(m,f);else if(Ts(t,"onPending"),m.pendingBranch=f,m.pendingId++,l(null,f,m.hiddenContainer,null,i,m,r,s,a),m.deps<=0)m.resolve();else{const{timeout:w,pendingId:C}=m;w>0?setTimeout(()=>{m.pendingId===C&&m.fallback(h)},w):w===0&&m.fallback(h)}}function Bd(e,t,n,o,i,r,s,a,l,u,d=!1){const{p:m,m:f,um:h,n:p,o:{parentNode:b,remove:g}}=u,y=ni(e.props&&e.props.timeout),w={vnode:e,parent:t,parentComponent:n,isSVG:s,container:o,hiddenContainer:i,anchor:r,deps:0,pendingId:0,timeout:typeof y=="number"?y:-1,activeBranch:null,pendingBranch:null,isInFallback:!0,isHydrating:d,isUnmounted:!1,effects:[],resolve(C=!1){const{vnode:k,activeBranch:$,pendingBranch:O,pendingId:j,effects:F,parentComponent:A,container:M}=w;if(w.isHydrating)w.isHydrating=!1;else if(!C){const q=$&&O.transition&&O.transition.mode==="out-in";q&&($.transition.afterLeave=()=>{j===w.pendingId&&f(O,M,B,0)});let{anchor:B}=w;$&&(B=p($),h($,A,w,!0)),q||f(O,M,B,0)}ur(w,O),w.pendingBranch=null,w.isInFallback=!1;let G=w.parent,R=!1;for(;G;){if(G.pendingBranch){G.effects.push(...F),R=!0;break}G=G.parent}R||jd(F),w.effects=[],Ts(k,"onResolve")},fallback(C){if(!w.pendingBranch)return;const{vnode:k,activeBranch:$,parentComponent:O,container:j,isSVG:F}=w;Ts(k,"onFallback");const A=p($),M=()=>{!w.isInFallback||(m(null,C,j,A,O,null,F,a,l),ur(w,C))},G=C.transition&&C.transition.mode==="out-in";G&&($.transition.afterLeave=M),w.isInFallback=!0,h($,O,null,!0),G||M()},move(C,k,$){w.activeBranch&&f(w.activeBranch,C,k,$),w.container=C},next(){return w.activeBranch&&p(w.activeBranch)},registerDep(C,k){const $=!!w.pendingBranch;$&&w.deps++;const O=C.vnode.el;C.asyncDep.catch(j=>{Ii(j,C,0)}).then(j=>{if(C.isUnmounted||w.isUnmounted||w.pendingId!==C.suspenseId)return;C.asyncResolved=!0;const{vnode:F}=C;Mu(C,j,!1),O&&(F.el=O);const A=!O&&C.subTree.el;k(C,F,b(O||C.subTree.el),O?null:p(C.subTree),w,s,l),A&&g(A),Vd(C,F.el),$&&--w.deps===0&&w.resolve()})},unmount(C,k){w.isUnmounted=!0,w.activeBranch&&h(w.activeBranch,n,C,k),w.pendingBranch&&h(w.pendingBranch,n,C,k)}};return w}function iw(e,t,n,o,i,r,s,a,l){const u=t.suspense=Bd(t,o,n,e.parentNode,document.createElement("div"),null,i,r,s,a,!0),d=l(e,u.pendingBranch=t.ssContent,n,u,r,s);return u.deps===0&&u.resolve(),d}function rw(e){const{shapeFlag:t,children:n}=e,o=t&32;e.ssContent=zm(o?n.default:n),e.ssFallback=o?zm(n.fallback):x(ln)}function zm(e){let t;if(et(e)){const n=Oi&&e._c;n&&(e._d=!1,S()),e=e(),n&&(e._d=!0,t=xn,tg())}return He(e)&&(e=Z1(e)),e=Pn(e),t&&!e.dynamicChildren&&(e.dynamicChildren=t.filter(n=>n!==e)),e}function Eb(e,t){t&&t.pendingBranch?He(e)?t.effects.push(...e):t.effects.push(e):jd(e)}function ur(e,t){e.activeBranch=t;const{vnode:n,parentComponent:o}=e,i=n.el=t.el;o&&o.subTree===n&&(o.vnode.el=i,Vd(o,i))}function fs(e,t){if(Yt){let n=Yt.provides;const o=Yt.parent&&Yt.parent.provides;o===n&&(n=Yt.provides=Object.create(o)),n[e]=t}}function ro(e,t,n=!1){const o=Yt||rn;if(o){const i=o.parent==null?o.vnode.appContext&&o.vnode.appContext.provides:o.parent.provides;if(i&&e in i)return i[e];if(arguments.length>1)return n&&et(t)?t.call(o.proxy):t}}function sw(e,t){return js(e,null,t)}function Ab(e,t){return js(e,null,{flush:"post"})}function aw(e,t){return js(e,null,{flush:"sync"})}const Sm={};function Mt(e,t,n){return js(e,t,n)}function js(e,t,{immediate:n,deep:o,flush:i,onTrack:r,onTrigger:s}=vt){const a=Yt;let l,u=!1,d=!1;if(qt(e)?(l=()=>e.value,u=gl(e)):Ci(e)?(l=()=>e,o=!0):He(e)?(d=!0,u=e.some(y=>Ci(y)||gl(y)),l=()=>e.map(y=>{if(qt(y))return y.value;if(Ci(y))return xi(y);if(et(y))return bo(y,a,2)})):et(e)?t?l=()=>bo(e,a,2):l=()=>{if(!(a&&a.isUnmounted))return m&&m(),In(e,a,3,[f])}:l=io,t&&o){const y=l;l=()=>xi(y())}let m,f=y=>{m=g.onStop=()=>{bo(y,a,4)}};if(pr)return f=io,t?n&&In(t,a,3,[l(),d?[]:void 0,f]):l(),io;let h=d?[]:Sm;const p=()=>{if(!!g.active)if(t){const y=g.run();(o||u||(d?y.some((w,C)=>fr(w,h[C])):fr(y,h)))&&(m&&m(),In(t,a,3,[y,h===Sm?void 0:h,f]),h=y)}else g.run()};p.allowRecurse=!!t;let b;i==="sync"?b=p:i==="post"?b=()=>Qt(p,a&&a.suspense):b=()=>q1(p);const g=new Ns(l,b);return t?n?p():h=g.run():i==="post"?Qt(g.run.bind(g),a&&a.suspense):g.run(),()=>{g.stop(),a&&a.scope&&Sd(a.scope.effects,g)}}function lw(e,t,n){const o=this.proxy,i=Tt(e)?e.includes(".")?Ob(o,e):()=>o[e]:e.bind(o,o);let r;et(t)?r=t:(r=t.handler,n=t);const s=Yt;si(this);const a=js(i,r.bind(o),n);return s?si(s):ei(),a}function Ob(e,t){const n=t.split(".");return()=>{let o=e;for(let i=0;i<n.length&&o;i++)o=o[n[i]];return o}}function xi(e,t){if(!Nt(e)||e.__v_skip||(t=t||new Set,t.has(e)))return e;if(t.add(e),qt(e))xi(e.value,t);else if(He(e))for(let n=0;n<e.length;n++)xi(e[n],t);else if(Ti(e)||ar(e))e.forEach(n=>{xi(n,t)});else if(tb(e))for(const n in e)xi(e[n],t);return e}function Ud(){const e={isMounted:!1,isLeaving:!1,isUnmounting:!1,leavingVNodes:new Map};return Mi(()=>{e.isMounted=!0}),nc(()=>{e.isUnmounting=!0}),e}const Vn=[Function,Array],cw={name:"BaseTransition",props:{mode:String,appear:Boolean,persisted:Boolean,onBeforeEnter:Vn,onEnter:Vn,onAfterEnter:Vn,onEnterCancelled:Vn,onBeforeLeave:Vn,onLeave:Vn,onAfterLeave:Vn,onLeaveCancelled:Vn,onBeforeAppear:Vn,onAppear:Vn,onAfterAppear:Vn,onAppearCancelled:Vn},setup(e,{slots:t}){const n=ao(),o=Ud();let i;return()=>{const r=t.default&&Ql(t.default(),!0);if(!r||!r.length)return;let s=r[0];if(r.length>1){for(const b of r)if(b.type!==ln){s=b;break}}const a=ct(e),{mode:l}=a;if(o.isLeaving)return jc(s);const u=$m(s);if(!u)return jc(s);const d=hr(u,a,o,n);Ai(u,d);const m=n.subTree,f=m&&$m(m);let h=!1;const{getTransitionKey:p}=u.type;if(p){const b=p();i===void 0?i=b:b!==i&&(i=b,h=!0)}if(f&&f.type!==ln&&(!ho(u,f)||h)){const b=hr(f,a,o,n);if(Ai(f,b),l==="out-in")return o.isLeaving=!0,b.afterLeave=()=>{o.isLeaving=!1,n.update()},jc(s);l==="in-out"&&u.type!==ln&&(b.delayLeave=(g,y,w)=>{const C=Tb(o,f);C[String(f.key)]=f,g._leaveCb=()=>{y(),g._leaveCb=void 0,delete d.delayedLeave},d.delayedLeave=w})}return s}}},Hd=cw;function Tb(e,t){const{leavingVNodes:n}=e;let o=n.get(t.type);return o||(o=Object.create(null),n.set(t.type,o)),o}function hr(e,t,n,o){const{appear:i,mode:r,persisted:s=!1,onBeforeEnter:a,onEnter:l,onAfterEnter:u,onEnterCancelled:d,onBeforeLeave:m,onLeave:f,onAfterLeave:h,onLeaveCancelled:p,onBeforeAppear:b,onAppear:g,onAfterAppear:y,onAppearCancelled:w}=t,C=String(e.key),k=Tb(n,e),$=(F,A)=>{F&&In(F,o,9,A)},O=(F,A)=>{const M=A[1];$(F,A),He(F)?F.every(G=>G.length<=1)&&M():F.length<=1&&M()},j={mode:r,persisted:s,beforeEnter(F){let A=a;if(!n.isMounted)if(i)A=b||a;else return;F._leaveCb&&F._leaveCb(!0);const M=k[C];M&&ho(e,M)&&M.el._leaveCb&&M.el._leaveCb(),$(A,[F])},enter(F){let A=l,M=u,G=d;if(!n.isMounted)if(i)A=g||l,M=y||u,G=w||d;else return;let R=!1;const q=F._enterCb=B=>{R||(R=!0,B?$(G,[F]):$(M,[F]),j.delayedLeave&&j.delayedLeave(),F._enterCb=void 0)};A?O(A,[F,q]):q()},leave(F,A){const M=String(e.key);if(F._enterCb&&F._enterCb(!0),n.isUnmounting)return A();$(m,[F]);let G=!1;const R=F._leaveCb=q=>{G||(G=!0,A(),q?$(p,[F]):$(h,[F]),F._leaveCb=void 0,k[M]===e&&delete k[M])};k[M]=e,f?O(f,[F,R]):R()},clone(F){return hr(F,t,n,o)}};return j}function jc(e){if(Bs(e))return e=vo(e),e.children=null,e}function $m(e){return Bs(e)?e.children?e.children[0]:void 0:e}function Ai(e,t){e.shapeFlag&6&&e.component?Ai(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 Ql(e,t=!1,n){let o=[],i=0;for(let r=0;r<e.length;r++){let s=e[r];const a=n==null?s.key:String(n)+String(s.key!=null?s.key:r);s.type===Ge?(s.patchFlag&128&&i++,o=o.concat(Ql(s.children,t,a))):(t||s.type!==ln)&&o.push(a!=null?vo(s,{key:a}):s)}if(i>1)for(let r=0;r<o.length;r++)o[r].patchFlag=-2;return o}function Vs(e){return et(e)?{setup:e,name:e.name}:e}const zi=e=>!!e.type.__asyncLoader;function uw(e){et(e)&&(e={loader:e});const{loader:t,loadingComponent:n,errorComponent:o,delay:i=200,timeout:r,suspensible:s=!0,onError:a}=e;let l=null,u,d=0;const m=()=>(d++,l=null,f()),f=()=>{let h;return l||(h=l=t().catch(p=>{if(p=p instanceof Error?p:new Error(String(p)),a)return new Promise((b,g)=>{a(p,()=>b(m()),()=>g(p),d+1)});throw p}).then(p=>h!==l&&l?l:(p&&(p.__esModule||p[Symbol.toStringTag]==="Module")&&(p=p.default),u=p,p)))};return Vs({name:"AsyncComponentWrapper",__asyncLoader:f,get __asyncResolved(){return u},setup(){const h=Yt;if(u)return()=>Vc(u,h);const p=w=>{l=null,Ii(w,h,13,!o)};if(s&&h.suspense||pr)return f().then(w=>()=>Vc(w,h)).catch(w=>(p(w),()=>o?x(o,{error:w}):null));const b=wn(!1),g=wn(),y=wn(!!i);return i&&setTimeout(()=>{y.value=!1},i),r!=null&&setTimeout(()=>{if(!b.value&&!g.value){const w=new Error(`Async component timed out after ${r}ms.`);p(w),g.value=w}},r),f().then(()=>{b.value=!0,h.parent&&Bs(h.parent.vnode)&&Nd(h.parent.update)}).catch(w=>{p(w),g.value=w}),()=>{if(b.value&&u)return Vc(u,h);if(g.value&&o)return x(o,{error:g.value});if(n&&!y.value)return x(n)}}})}function Vc(e,{vnode:{ref:t,props:n,children:o,shapeFlag:i},parent:r}){const s=x(e,n,o);return s.ref=t,s}const Bs=e=>e.type.__isKeepAlive,dw={name:"KeepAlive",__isKeepAlive:!0,props:{include:[String,RegExp,Array],exclude:[String,RegExp,Array],max:[String,Number]},setup(e,{slots:t}){const n=ao(),o=n.ctx;if(!o.renderer)return()=>{const w=t.default&&t.default();return w&&w.length===1?w[0]:w};const i=new Map,r=new Set;let s=null;const a=n.suspense,{renderer:{p:l,m:u,um:d,o:{createElement:m}}}=o,f=m("div");o.activate=(w,C,k,$,O)=>{const j=w.component;u(w,C,k,0,a),l(j.vnode,w,C,k,j,a,$,w.slotScopeIds,O),Qt(()=>{j.isDeactivated=!1,j.a&&lr(j.a);const F=w.props&&w.props.onVnodeMounted;F&&yn(F,j.parent,w)},a)},o.deactivate=w=>{const C=w.component;u(w,f,null,1,a),Qt(()=>{C.da&&lr(C.da);const k=w.props&&w.props.onVnodeUnmounted;k&&yn(k,C.parent,w),C.isDeactivated=!0},a)};function h(w){Bc(w),d(w,n,a,!0)}function p(w){i.forEach((C,k)=>{const $=Cl(C.type);$&&(!w||!w($))&&b(k)})}function b(w){const C=i.get(w);!s||C.type!==s.type?h(C):s&&Bc(s),i.delete(w),r.delete(w)}Mt(()=>[e.include,e.exclude],([w,C])=>{w&&p(k=>Qr(w,k)),C&&p(k=>!Qr(C,k))},{flush:"post",deep:!0});let g=null;const y=()=>{g!=null&&i.set(g,Uc(n.subTree))};return Mi(y),tc(y),nc(()=>{i.forEach(w=>{const{subTree:C,suspense:k}=n,$=Uc(C);if(w.type===$.type){Bc($);const O=$.component.da;O&&Qt(O,k);return}h(w)})}),()=>{if(g=null,!t.default)return null;const w=t.default(),C=w[0];if(w.length>1)return s=null,w;if(!ri(C)||!(C.shapeFlag&4)&&!(C.shapeFlag&128))return s=null,C;let k=Uc(C);const $=k.type,O=Cl(zi(k)?k.type.__asyncResolved||{}:$),{include:j,exclude:F,max:A}=e;if(j&&(!O||!Qr(j,O))||F&&O&&Qr(F,O))return s=k,C;const M=k.key==null?$:k.key,G=i.get(M);return k.el&&(k=vo(k),C.shapeFlag&128&&(C.ssContent=k)),g=M,G?(k.el=G.el,k.component=G.component,k.transition&&Ai(k,k.transition),k.shapeFlag|=512,r.delete(M),r.add(M)):(r.add(M),A&&r.size>parseInt(A,10)&&b(r.values().next().value)),k.shapeFlag|=256,s=k,$b(C.type)?C:k}}},fw=dw;function Qr(e,t){return He(e)?e.some(n=>Qr(n,t)):Tt(e)?e.split(",").includes(t):e.test?e.test(t):!1}function Pb(e,t){Fb(e,"a",t)}function Db(e,t){Fb(e,"da",t)}function Fb(e,t,n=Yt){const o=e.__wdc||(e.__wdc=()=>{let i=n;for(;i;){if(i.isDeactivated)return;i=i.parent}return e()});if(ec(t,o,n),n){let i=n.parent;for(;i&&i.parent;)Bs(i.parent.vnode)&&mw(o,t,n,i),i=i.parent}}function mw(e,t,n,o){const i=ec(t,e,o,!0);$r(()=>{Sd(o[t],i)},n)}function Bc(e){let t=e.shapeFlag;t&256&&(t-=256),t&512&&(t-=512),e.shapeFlag=t}function Uc(e){return e.shapeFlag&128?e.ssContent:e}function ec(e,t,n=Yt,o=!1){if(n){const i=n[e]||(n[e]=[]),r=t.__weh||(t.__weh=(...s)=>{if(n.isUnmounted)return;Pi(),si(n);const a=In(t,n,e,s);return ei(),Di(),a});return o?i.unshift(r):i.push(r),r}}const Po=e=>(t,n=Yt)=>(!pr||e==="sp")&&ec(e,t,n),Ib=Po("bm"),Mi=Po("m"),Mb=Po("bu"),tc=Po("u"),nc=Po("bum"),$r=Po("um"),Lb=Po("sp"),Rb=Po("rtg"),Nb=Po("rtc");function jb(e,t=Yt){ec("ec",e,t)}function zt(e,t){const n=rn;if(n===null)return e;const o=rc(n)||n.proxy,i=e.dirs||(e.dirs=[]);for(let r=0;r<t.length;r++){let[s,a,l,u=vt]=t[r];et(s)&&(s={mounted:s,updated:s}),s.deep&&xi(a),i.push({dir:s,instance:o,value:a,oldValue:void 0,arg:l,modifiers:u})}return e}function fo(e,t,n,o){const i=e.dirs,r=t&&t.dirs;for(let s=0;s<i.length;s++){const a=i[s];r&&(a.oldValue=r[s].value);let l=a.dir[o];l&&(Pi(),In(l,n,8,[e.el,a,e,t]),Di())}}const qd="components",hw="directives";function P(e,t){return Gd(qd,e,!0,t)||e}const Vb=Symbol();function Bb(e){return Tt(e)?Gd(qd,e,!1)||e:e||Vb}function oc(e){return Gd(hw,e)}function Gd(e,t,n=!0,o=!1){const i=rn||Yt;if(i){const r=i.type;if(e===qd){const a=Cl(r,!1);if(a&&(a===t||a===Ln(t)||a===Rs(Ln(t))))return r}const s=Em(i[e]||r[e],t)||Em(i.appContext[e],t);return!s&&o?r:s}}function Em(e,t){return e&&(e[t]||e[Ln(t)]||e[Rs(Ln(t))])}function xt(e,t,n,o){let i;const r=n&&n[o];if(He(e)||Tt(e)){i=new Array(e.length);for(let s=0,a=e.length;s<a;s++)i[s]=t(e[s],s,void 0,r&&r[s])}else if(typeof e=="number"){i=new Array(e);for(let s=0;s<e;s++)i[s]=t(s+1,s,void 0,r&&r[s])}else if(Nt(e))if(e[Symbol.iterator])i=Array.from(e,(s,a)=>t(s,a,void 0,r&&r[a]));else{const s=Object.keys(e);i=new Array(s.length);for(let a=0,l=s.length;a<l;a++){const u=s[a];i[a]=t(e[u],u,a,r&&r[a])}}else i=[];return n&&(n[o]=i),i}function Us(e,t){for(let n=0;n<t.length;n++){const o=t[n];if(He(o))for(let i=0;i<o.length;i++)e[o[i].name]=o[i].fn;else o&&(e[o.name]=o.fn)}return e}function Ct(e,t,n={},o,i){if(rn.isCE||rn.parent&&zi(rn.parent)&&rn.parent.isCE)return x("slot",t==="default"?null:{name:t},o&&o());let r=e[t];r&&r._c&&(r._d=!1),S();const s=r&&Ub(r(n)),a=Ce(Ge,{key:n.key||`_${t}`},s||(o?o():[]),s&&e._===1?64:-2);return!i&&a.scopeId&&(a.slotScopeIds=[a.scopeId+"-s"]),r&&r._c&&(r._d=!0),a}function Ub(e){return e.some(t=>ri(t)?!(t.type===ln||t.type===Ge&&!Ub(t.children)):!0)?e:null}function pw(e){const t={};for(const n in e)t[as(n)]=e[n];return t}const Au=e=>e?sg(e)?rc(e)||e.proxy:Au(e.parent):null,yl=Rt(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=>Au(e.parent),$root:e=>Au(e.root),$emit:e=>e.emit,$options:e=>qb(e),$forceUpdate:e=>e.f||(e.f=()=>Nd(e.update)),$nextTick:e=>e.n||(e.n=Yl.bind(e.proxy)),$watch:e=>lw.bind(e)}),Ou={get({_:e},t){const{ctx:n,setupState:o,data:i,props:r,accessCache:s,type:a,appContext:l}=e;let u;if(t[0]!=="$"){const h=s[t];if(h!==void 0)switch(h){case 1:return o[t];case 2:return i[t];case 4:return n[t];case 3:return r[t]}else{if(o!==vt&&ft(o,t))return s[t]=1,o[t];if(i!==vt&&ft(i,t))return s[t]=2,i[t];if((u=e.propsOptions[0])&&ft(u,t))return s[t]=3,r[t];if(n!==vt&&ft(n,t))return s[t]=4,n[t];Tu&&(s[t]=0)}}const d=yl[t];let m,f;if(d)return t==="$attrs"&&Rn(e,"get",t),d(e);if((m=a.__cssModules)&&(m=m[t]))return m;if(n!==vt&&ft(n,t))return s[t]=4,n[t];if(f=l.config.globalProperties,ft(f,t))return f[t]},set({_:e},t,n){const{data:o,setupState:i,ctx:r}=e;return i!==vt&&ft(i,t)?(i[t]=n,!0):o!==vt&&ft(o,t)?(o[t]=n,!0):ft(e.props,t)||t[0]==="$"&&t.slice(1)in e?!1:(r[t]=n,!0)},has({_:{data:e,setupState:t,accessCache:n,ctx:o,appContext:i,propsOptions:r}},s){let a;return!!n[s]||e!==vt&&ft(e,s)||t!==vt&&ft(t,s)||(a=r[0])&&ft(a,s)||ft(o,s)||ft(yl,s)||ft(i.config.globalProperties,s)},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)}},bw=Rt({},Ou,{get(e,t){if(t!==Symbol.unscopables)return Ou.get(e,t,e)},has(e,t){return t[0]!=="_"&&!L0(t)}});let Tu=!0;function gw(e){const t=qb(e),n=e.proxy,o=e.ctx;Tu=!1,t.beforeCreate&&Am(t.beforeCreate,e,"bc");const{data:i,computed:r,methods:s,watch:a,provide:l,inject:u,created:d,beforeMount:m,mounted:f,beforeUpdate:h,updated:p,activated:b,deactivated:g,beforeDestroy:y,beforeUnmount:w,destroyed:C,unmounted:k,render:$,renderTracked:O,renderTriggered:j,errorCaptured:F,serverPrefetch:A,expose:M,inheritAttrs:G,components:R,directives:q,filters:B}=t;if(u&&vw(u,o,null,e.appContext.config.unwrapInjectedRef),s)for(const ce in s){const ge=s[ce];et(ge)&&(o[ce]=ge.bind(n))}if(i){const ce=i.call(n,n);Nt(ce)&&(e.data=Fi(ce))}if(Tu=!0,r)for(const ce in r){const ge=r[ce],Le=et(ge)?ge.bind(n,n):et(ge.get)?ge.get.bind(n,n):io,Be=!et(ge)&&et(ge.set)?ge.set.bind(n):io,pe=Ot({get:Le,set:Be});Object.defineProperty(o,ce,{enumerable:!0,configurable:!0,get:()=>pe.value,set:J=>pe.value=J})}if(a)for(const ce in a)Hb(a[ce],o,n,ce);if(l){const ce=et(l)?l.call(n):l;Reflect.ownKeys(ce).forEach(ge=>{fs(ge,ce[ge])})}d&&Am(d,e,"c");function X(ce,ge){He(ge)?ge.forEach(Le=>ce(Le.bind(n))):ge&&ce(ge.bind(n))}if(X(Ib,m),X(Mi,f),X(Mb,h),X(tc,p),X(Pb,b),X(Db,g),X(jb,F),X(Nb,O),X(Rb,j),X(nc,w),X($r,k),X(Lb,A),He(M))if(M.length){const ce=e.exposed||(e.exposed={});M.forEach(ge=>{Object.defineProperty(ce,ge,{get:()=>n[ge],set:Le=>n[ge]=Le})})}else e.exposed||(e.exposed={});$&&e.render===io&&(e.render=$),G!=null&&(e.inheritAttrs=G),R&&(e.components=R),q&&(e.directives=q)}function vw(e,t,n=io,o=!1){He(e)&&(e=Pu(e));for(const i in e){const r=e[i];let s;Nt(r)?"default"in r?s=ro(r.from||i,r.default,!0):s=ro(r.from||i):s=ro(r),qt(s)&&o?Object.defineProperty(t,i,{enumerable:!0,configurable:!0,get:()=>s.value,set:a=>s.value=a}):t[i]=s}}function Am(e,t,n){In(He(e)?e.map(o=>o.bind(t.proxy)):e.bind(t.proxy),t,n)}function Hb(e,t,n,o){const i=o.includes(".")?Ob(n,o):()=>n[o];if(Tt(e)){const r=t[e];et(r)&&Mt(i,r)}else if(et(e))Mt(i,e.bind(n));else if(Nt(e))if(He(e))e.forEach(r=>Hb(r,t,n,o));else{const r=et(e.handler)?e.handler.bind(n):t[e.handler];et(r)&&Mt(i,r,e)}}function qb(e){const t=e.type,{mixins:n,extends:o}=t,{mixins:i,optionsCache:r,config:{optionMergeStrategies:s}}=e.appContext,a=r.get(t);let l;return a?l=a:!i.length&&!n&&!o?l=t:(l={},i.length&&i.forEach(u=>wl(l,u,s,!0)),wl(l,t,s)),r.set(t,l),l}function wl(e,t,n,o=!1){const{mixins:i,extends:r}=t;r&&wl(e,r,n,!0),i&&i.forEach(s=>wl(e,s,n,!0));for(const s in t)if(!(o&&s==="expose")){const a=_w[s]||n&&n[s];e[s]=a?a(e[s],t[s]):t[s]}return e}const _w={data:Om,props:vi,emits:vi,methods:vi,computed:vi,beforeCreate:un,created:un,beforeMount:un,mounted:un,beforeUpdate:un,updated:un,beforeDestroy:un,beforeUnmount:un,destroyed:un,unmounted:un,activated:un,deactivated:un,errorCaptured:un,serverPrefetch:un,components:vi,directives:vi,watch:ww,provide:Om,inject:yw};function Om(e,t){return t?e?function(){return Rt(et(e)?e.call(this,this):e,et(t)?t.call(this,this):t)}:t:e}function yw(e,t){return vi(Pu(e),Pu(t))}function Pu(e){if(He(e)){const t={};for(let n=0;n<e.length;n++)t[e[n]]=e[n];return t}return e}function un(e,t){return e?[...new Set([].concat(e,t))]:t}function vi(e,t){return e?Rt(Rt(Object.create(null),e),t):t}function ww(e,t){if(!e)return t;if(!t)return e;const n=Rt(Object.create(null),e);for(const o in t)n[o]=un(e[o],t[o]);return n}function xw(e,t,n,o=!1){const i={},r={};bl(r,ic,1),e.propsDefaults=Object.create(null),Gb(e,t,i,r);for(const s in e.propsOptions[0])s in i||(i[s]=void 0);n?e.props=o?i:pb(i):e.type.props?e.props=i:e.props=r,e.attrs=r}function kw(e,t,n,o){const{props:i,attrs:r,vnode:{patchFlag:s}}=e,a=ct(i),[l]=e.propsOptions;let u=!1;if((o||s>0)&&!(s&16)){if(s&8){const d=e.vnode.dynamicProps;for(let m=0;m<d.length;m++){let f=d[m];if(Jl(e.emitsOptions,f))continue;const h=t[f];if(l)if(ft(r,f))h!==r[f]&&(r[f]=h,u=!0);else{const p=Ln(f);i[p]=Du(l,a,p,h,e,!1)}else h!==r[f]&&(r[f]=h,u=!0)}}}else{Gb(e,t,i,r)&&(u=!0);let d;for(const m in a)(!t||!ft(t,m)&&((d=po(m))===m||!ft(t,d)))&&(l?n&&(n[m]!==void 0||n[d]!==void 0)&&(i[m]=Du(l,a,m,void 0,e,!0)):delete i[m]);if(r!==a)for(const m in r)(!t||!ft(t,m)&&!0)&&(delete r[m],u=!0)}u&&Ao(e,"set","$attrs")}function Gb(e,t,n,o){const[i,r]=e.propsOptions;let s=!1,a;if(t)for(let l in t){if(ss(l))continue;const u=t[l];let d;i&&ft(i,d=Ln(l))?!r||!r.includes(d)?n[d]=u:(a||(a={}))[d]=u:Jl(e.emitsOptions,l)||(!(l in o)||u!==o[l])&&(o[l]=u,s=!0)}if(r){const l=ct(n),u=a||vt;for(let d=0;d<r.length;d++){const m=r[d];n[m]=Du(i,l,m,u[m],e,!ft(u,m))}}return s}function Du(e,t,n,o,i,r){const s=e[n];if(s!=null){const a=ft(s,"default");if(a&&o===void 0){const l=s.default;if(s.type!==Function&&et(l)){const{propsDefaults:u}=i;n in u?o=u[n]:(si(i),o=u[n]=l.call(null,t),ei())}else o=l}s[0]&&(r&&!a?o=!1:s[1]&&(o===""||o===po(n))&&(o=!0))}return o}function Wb(e,t,n=!1){const o=t.propsCache,i=o.get(e);if(i)return i;const r=e.props,s={},a=[];let l=!1;if(!et(e)){const d=m=>{l=!0;const[f,h]=Wb(m,t,!0);Rt(s,f),h&&a.push(...h)};!n&&t.mixins.length&&t.mixins.forEach(d),e.extends&&d(e.extends),e.mixins&&e.mixins.forEach(d)}if(!r&&!l)return o.set(e,sr),sr;if(He(r))for(let d=0;d<r.length;d++){const m=Ln(r[d]);Tm(m)&&(s[m]=vt)}else if(r)for(const d in r){const m=Ln(d);if(Tm(m)){const f=r[d],h=s[m]=He(f)||et(f)?{type:f}:f;if(h){const p=Fm(Boolean,h.type),b=Fm(String,h.type);h[0]=p>-1,h[1]=b<0||p<b,(p>-1||ft(h,"default"))&&a.push(m)}}}const u=[s,a];return o.set(e,u),u}function Tm(e){return e[0]!=="$"}function Pm(e){const t=e&&e.toString().match(/^\s*function (\w+)/);return t?t[1]:e===null?"null":""}function Dm(e,t){return Pm(e)===Pm(t)}function Fm(e,t){return He(t)?t.findIndex(n=>Dm(n,e)):et(t)&&Dm(t,e)?0:-1}const Kb=e=>e[0]==="_"||e==="$stable",Wd=e=>He(e)?e.map(Pn):[Pn(e)],Cw=(e,t,n)=>{if(t._n)return t;const o=T((...i)=>Wd(t(...i)),n);return o._c=!1,o},Yb=(e,t,n)=>{const o=e._ctx;for(const i in e){if(Kb(i))continue;const r=e[i];if(et(r))t[i]=Cw(i,r,o);else if(r!=null){const s=Wd(r);t[i]=()=>s}}},Zb=(e,t)=>{const n=Wd(t);e.slots.default=()=>n},zw=(e,t)=>{if(e.vnode.shapeFlag&32){const n=t._;n?(e.slots=ct(t),bl(t,"_",n)):Yb(t,e.slots={})}else e.slots={},t&&Zb(e,t);bl(e.slots,ic,1)},Sw=(e,t,n)=>{const{vnode:o,slots:i}=e;let r=!0,s=vt;if(o.shapeFlag&32){const a=t._;a?n&&a===1?r=!1:(Rt(i,t),!n&&a===1&&delete i._):(r=!t.$stable,Yb(t,i)),s=t}else t&&(Zb(e,t),s={default:1});if(r)for(const a in i)!Kb(a)&&!(a in s)&&delete i[a]};function Jb(){return{app:null,config:{isNativeTag:q0,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 $w=0;function Ew(e,t){return function(o,i=null){et(o)||(o=Object.assign({},o)),i!=null&&!Nt(i)&&(i=null);const r=Jb(),s=new Set;let a=!1;const l=r.app={_uid:$w++,_component:o,_props:i,_container:null,_context:r,_instance:null,version:hg,get config(){return r.config},set config(u){},use(u,...d){return s.has(u)||(u&&et(u.install)?(s.add(u),u.install(l,...d)):et(u)&&(s.add(u),u(l,...d))),l},mixin(u){return r.mixins.includes(u)||r.mixins.push(u),l},component(u,d){return d?(r.components[u]=d,l):r.components[u]},directive(u,d){return d?(r.directives[u]=d,l):r.directives[u]},mount(u,d,m){if(!a){const f=x(o,i);return f.appContext=r,d&&t?t(f,u):e(f,u,m),a=!0,l._container=u,u.__vue_app__=l,rc(f.component)||f.component.proxy}},unmount(){a&&(e(null,l._container),delete l._container.__vue_app__)},provide(u,d){return r.provides[u]=d,l}};return l}}function xl(e,t,n,o,i=!1){if(He(e)){e.forEach((f,h)=>xl(f,t&&(He(t)?t[h]:t),n,o,i));return}if(zi(o)&&!i)return;const r=o.shapeFlag&4?rc(o.component)||o.component.proxy:o.el,s=i?null:r,{i:a,r:l}=e,u=t&&t.r,d=a.refs===vt?a.refs={}:a.refs,m=a.setupState;if(u!=null&&u!==l&&(Tt(u)?(d[u]=null,ft(m,u)&&(m[u]=null)):qt(u)&&(u.value=null)),et(l))bo(l,a,12,[s,d]);else{const f=Tt(l),h=qt(l);if(f||h){const p=()=>{if(e.f){const b=f?d[l]:l.value;i?He(b)&&Sd(b,r):He(b)?b.includes(r)||b.push(r):f?(d[l]=[r],ft(m,l)&&(m[l]=d[l])):(l.value=[r],e.k&&(d[e.k]=l.value))}else f?(d[l]=s,ft(m,l)&&(m[l]=s)):h&&(l.value=s,e.k&&(d[e.k]=s))};s?(p.id=-1,Qt(p,n)):p()}}}let Ro=!1;const da=e=>/svg/.test(e.namespaceURI)&&e.tagName!=="foreignObject",fa=e=>e.nodeType===8;function Aw(e){const{mt:t,p:n,o:{patchProp:o,createText:i,nextSibling:r,parentNode:s,remove:a,insert:l,createComment:u}}=e,d=(y,w)=>{if(!w.hasChildNodes()){n(null,y,w),_l(),w._vnode=y;return}Ro=!1,m(w.firstChild,y,null,null,null),_l(),w._vnode=y,Ro&&console.error("Hydration completed but contains mismatches.")},m=(y,w,C,k,$,O=!1)=>{const j=fa(y)&&y.data==="[",F=()=>b(y,w,C,k,$,j),{type:A,ref:M,shapeFlag:G,patchFlag:R}=w,q=y.nodeType;w.el=y,R===-2&&(O=!1,w.dynamicChildren=null);let B=null;switch(A){case ii:q!==3?w.children===""?(l(w.el=i(""),s(y),y),B=y):B=F():(y.data!==w.children&&(Ro=!0,y.data=w.children),B=r(y));break;case ln:q!==8||j?B=F():B=r(y);break;case Si:if(q!==1&&q!==3)B=F();else{B=y;const re=!w.children.length;for(let X=0;X<w.staticCount;X++)re&&(w.children+=B.nodeType===1?B.outerHTML:B.data),X===w.staticCount-1&&(w.anchor=B),B=r(B);return B}break;case Ge:j?B=p(y,w,C,k,$,O):B=F();break;default:if(G&1)q!==1||w.type.toLowerCase()!==y.tagName.toLowerCase()?B=F():B=f(y,w,C,k,$,O);else if(G&6){w.slotScopeIds=$;const re=s(y);if(t(w,re,null,C,k,da(re),O),B=j?g(y):r(y),B&&fa(B)&&B.data==="teleport end"&&(B=r(B)),zi(w)){let X;j?(X=x(Ge),X.anchor=B?B.previousSibling:re.lastChild):X=y.nodeType===3?_t(""):x("div"),X.el=y,w.component.subTree=X}}else G&64?q!==8?B=F():B=w.type.hydrate(y,w,C,k,$,O,e,h):G&128&&(B=w.type.hydrate(y,w,C,k,da(s(y)),$,O,e,m))}return M!=null&&xl(M,null,k,w),B},f=(y,w,C,k,$,O)=>{O=O||!!w.dynamicChildren;const{type:j,props:F,patchFlag:A,shapeFlag:M,dirs:G}=w,R=j==="input"&&G||j==="option";if(R||A!==-1){if(G&&fo(w,null,C,"created"),F)if(R||!O||A&48)for(const B in F)(R&&B.endsWith("value")||Ms(B)&&!ss(B))&&o(y,B,null,F[B],!1,void 0,C);else F.onClick&&o(y,"onClick",null,F.onClick,!1,void 0,C);let q;if((q=F&&F.onVnodeBeforeMount)&&yn(q,C,w),G&&fo(w,null,C,"beforeMount"),((q=F&&F.onVnodeMounted)||G)&&Eb(()=>{q&&yn(q,C,w),G&&fo(w,null,C,"mounted")},k),M&16&&!(F&&(F.innerHTML||F.textContent))){let B=h(y.firstChild,w,y,C,k,$,O);for(;B;){Ro=!0;const re=B;B=B.nextSibling,a(re)}}else M&8&&y.textContent!==w.children&&(Ro=!0,y.textContent=w.children)}return y.nextSibling},h=(y,w,C,k,$,O,j)=>{j=j||!!w.dynamicChildren;const F=w.children,A=F.length;for(let M=0;M<A;M++){const G=j?F[M]:F[M]=Pn(F[M]);if(y)y=m(y,G,k,$,O,j);else{if(G.type===ii&&!G.children)continue;Ro=!0,n(null,G,C,null,k,$,da(C),O)}}return y},p=(y,w,C,k,$,O)=>{const{slotScopeIds:j}=w;j&&($=$?$.concat(j):j);const F=s(y),A=h(r(y),w,F,C,k,$,O);return A&&fa(A)&&A.data==="]"?r(w.anchor=A):(Ro=!0,l(w.anchor=u("]"),F,A),A)},b=(y,w,C,k,$,O)=>{if(Ro=!0,w.el=null,O){const A=g(y);for(;;){const M=r(y);if(M&&M!==A)a(M);else break}}const j=r(y),F=s(y);return a(y),n(null,w,F,j,C,k,da(F),$),j},g=y=>{let w=0;for(;y;)if(y=r(y),y&&fa(y)&&(y.data==="["&&w++,y.data==="]")){if(w===0)return r(y);w--}return y};return[d,m]}const Qt=Eb;function Xb(e){return eg(e)}function Qb(e){return eg(e,Aw)}function eg(e,t){const n=J0();n.__VUE__=!0;const{insert:o,remove:i,patchProp:r,createElement:s,createText:a,createComment:l,setText:u,setElementText:d,parentNode:m,nextSibling:f,setScopeId:h=io,cloneNode:p,insertStaticContent:b}=e,g=(E,L,Z,le=null,ue=null,ve=null,xe=!1,he=null,V=!!L.dynamicChildren)=>{if(E===L)return;E&&!ho(E,L)&&(le=ye(E),fe(E,ue,ve,!0),E=null),L.patchFlag===-2&&(V=!1,L.dynamicChildren=null);const{type:H,ref:Ee,shapeFlag:ke}=L;switch(H){case ii:y(E,L,Z,le);break;case ln:w(E,L,Z,le);break;case Si:E==null&&C(L,Z,le,xe);break;case Ge:q(E,L,Z,le,ue,ve,xe,he,V);break;default:ke&1?O(E,L,Z,le,ue,ve,xe,he,V):ke&6?B(E,L,Z,le,ue,ve,xe,he,V):(ke&64||ke&128)&&H.process(E,L,Z,le,ue,ve,xe,he,V,Ie)}Ee!=null&&ue&&xl(Ee,E&&E.ref,ve,L||E,!L)},y=(E,L,Z,le)=>{if(E==null)o(L.el=a(L.children),Z,le);else{const ue=L.el=E.el;L.children!==E.children&&u(ue,L.children)}},w=(E,L,Z,le)=>{E==null?o(L.el=l(L.children||""),Z,le):L.el=E.el},C=(E,L,Z,le)=>{[E.el,E.anchor]=b(E.children,L,Z,le,E.el,E.anchor)},k=({el:E,anchor:L},Z,le)=>{let ue;for(;E&&E!==L;)ue=f(E),o(E,Z,le),E=ue;o(L,Z,le)},$=({el:E,anchor:L})=>{let Z;for(;E&&E!==L;)Z=f(E),i(E),E=Z;i(L)},O=(E,L,Z,le,ue,ve,xe,he,V)=>{xe=xe||L.type==="svg",E==null?j(L,Z,le,ue,ve,xe,he,V):M(E,L,ue,ve,xe,he,V)},j=(E,L,Z,le,ue,ve,xe,he)=>{let V,H;const{type:Ee,props:ke,shapeFlag:De,transition:Re,patchFlag:qe,dirs:tt}=E;if(E.el&&p!==void 0&&qe===-1)V=E.el=p(E.el);else{if(V=E.el=s(E.type,ve,ke&&ke.is,ke),De&8?d(V,E.children):De&16&&A(E.children,V,null,le,ue,ve&&Ee!=="foreignObject",xe,he),tt&&fo(E,null,le,"created"),ke){for(const v in ke)v!=="value"&&!ss(v)&&r(V,v,null,ke[v],ve,E.children,le,ue,ie);"value"in ke&&r(V,"value",null,ke.value),(H=ke.onVnodeBeforeMount)&&yn(H,le,E)}F(V,E,E.scopeId,xe,le)}tt&&fo(E,null,le,"beforeMount");const z=(!ue||ue&&!ue.pendingBranch)&&Re&&!Re.persisted;z&&Re.beforeEnter(V),o(V,L,Z),((H=ke&&ke.onVnodeMounted)||z||tt)&&Qt(()=>{H&&yn(H,le,E),z&&Re.enter(V),tt&&fo(E,null,le,"mounted")},ue)},F=(E,L,Z,le,ue)=>{if(Z&&h(E,Z),le)for(let ve=0;ve<le.length;ve++)h(E,le[ve]);if(ue){let ve=ue.subTree;if(L===ve){const xe=ue.vnode;F(E,xe,xe.scopeId,xe.slotScopeIds,ue.parent)}}},A=(E,L,Z,le,ue,ve,xe,he,V=0)=>{for(let H=V;H<E.length;H++){const Ee=E[H]=he?qo(E[H]):Pn(E[H]);g(null,Ee,L,Z,le,ue,ve,xe,he)}},M=(E,L,Z,le,ue,ve,xe)=>{const he=L.el=E.el;let{patchFlag:V,dynamicChildren:H,dirs:Ee}=L;V|=E.patchFlag&16;const ke=E.props||vt,De=L.props||vt;let Re;Z&&fi(Z,!1),(Re=De.onVnodeBeforeUpdate)&&yn(Re,Z,L,E),Ee&&fo(L,E,Z,"beforeUpdate"),Z&&fi(Z,!0);const qe=ue&&L.type!=="foreignObject";if(H?G(E.dynamicChildren,H,he,Z,le,qe,ve):xe||Le(E,L,he,null,Z,le,qe,ve,!1),V>0){if(V&16)R(he,L,ke,De,Z,le,ue);else if(V&2&&ke.class!==De.class&&r(he,"class",null,De.class,ue),V&4&&r(he,"style",ke.style,De.style,ue),V&8){const tt=L.dynamicProps;for(let z=0;z<tt.length;z++){const v=tt[z],I=ke[v],K=De[v];(K!==I||v==="value")&&r(he,v,I,K,ue,E.children,Z,le,ie)}}V&1&&E.children!==L.children&&d(he,L.children)}else!xe&&H==null&&R(he,L,ke,De,Z,le,ue);((Re=De.onVnodeUpdated)||Ee)&&Qt(()=>{Re&&yn(Re,Z,L,E),Ee&&fo(L,E,Z,"updated")},le)},G=(E,L,Z,le,ue,ve,xe)=>{for(let he=0;he<L.length;he++){const V=E[he],H=L[he],Ee=V.el&&(V.type===Ge||!ho(V,H)||V.shapeFlag&70)?m(V.el):Z;g(V,H,Ee,null,le,ue,ve,xe,!0)}},R=(E,L,Z,le,ue,ve,xe)=>{if(Z!==le){for(const he in le){if(ss(he))continue;const V=le[he],H=Z[he];V!==H&&he!=="value"&&r(E,he,H,V,xe,L.children,ue,ve,ie)}if(Z!==vt)for(const he in Z)!ss(he)&&!(he in le)&&r(E,he,Z[he],null,xe,L.children,ue,ve,ie);"value"in le&&r(E,"value",Z.value,le.value)}},q=(E,L,Z,le,ue,ve,xe,he,V)=>{const H=L.el=E?E.el:a(""),Ee=L.anchor=E?E.anchor:a("");let{patchFlag:ke,dynamicChildren:De,slotScopeIds:Re}=L;Re&&(he=he?he.concat(Re):Re),E==null?(o(H,Z,le),o(Ee,Z,le),A(L.children,Z,Ee,ue,ve,xe,he,V)):ke>0&&ke&64&&De&&E.dynamicChildren?(G(E.dynamicChildren,De,Z,ue,ve,xe,he),(L.key!=null||ue&&L===ue.subTree)&&Kd(E,L,!0)):Le(E,L,Z,Ee,ue,ve,xe,he,V)},B=(E,L,Z,le,ue,ve,xe,he,V)=>{L.slotScopeIds=he,E==null?L.shapeFlag&512?ue.ctx.activate(L,Z,le,xe,V):re(L,Z,le,ue,ve,xe,V):X(E,L,V)},re=(E,L,Z,le,ue,ve,xe)=>{const he=E.component=rg(E,le,ue);if(Bs(E)&&(he.ctx.renderer=Ie),ag(he),he.asyncDep){if(ue&&ue.registerDep(he,ce),!E.el){const V=he.subTree=x(ln);w(null,V,L,Z)}return}ce(he,E,L,Z,ue,ve,xe)},X=(E,L,Z)=>{const le=L.component=E.component;if(Q1(E,L,Z))if(le.asyncDep&&!le.asyncResolved){ge(le,L,Z);return}else le.next=L,H1(le.update),le.update();else L.el=E.el,le.vnode=L},ce=(E,L,Z,le,ue,ve,xe)=>{const he=()=>{if(E.isMounted){let{next:Ee,bu:ke,u:De,parent:Re,vnode:qe}=E,tt=Ee,z;fi(E,!1),Ee?(Ee.el=qe.el,ge(E,Ee,xe)):Ee=qe,ke&&lr(ke),(z=Ee.props&&Ee.props.onVnodeBeforeUpdate)&&yn(z,Re,Ee,qe),fi(E,!0);const v=il(E),I=E.subTree;E.subTree=v,g(I,v,m(I.el),ye(I),E,ue,ve),Ee.el=v.el,tt===null&&Vd(E,v.el),De&&Qt(De,ue),(z=Ee.props&&Ee.props.onVnodeUpdated)&&Qt(()=>yn(z,Re,Ee,qe),ue)}else{let Ee;const{el:ke,props:De}=L,{bm:Re,m:qe,parent:tt}=E,z=zi(L);if(fi(E,!1),Re&&lr(Re),!z&&(Ee=De&&De.onVnodeBeforeMount)&&yn(Ee,tt,L),fi(E,!0),ke&&Ae){const v=()=>{E.subTree=il(E),Ae(ke,E.subTree,E,ue,null)};z?L.type.__asyncLoader().then(()=>!E.isUnmounted&&v()):v()}else{const v=E.subTree=il(E);g(null,v,Z,le,E,ue,ve),L.el=v.el}if(qe&&Qt(qe,ue),!z&&(Ee=De&&De.onVnodeMounted)){const v=L;Qt(()=>yn(Ee,tt,v),ue)}(L.shapeFlag&256||tt&&zi(tt.vnode)&&tt.vnode.shapeFlag&256)&&E.a&&Qt(E.a,ue),E.isMounted=!0,L=Z=le=null}},V=E.effect=new Ns(he,()=>Nd(H),E.scope),H=E.update=()=>V.run();H.id=E.uid,fi(E,!0),H()},ge=(E,L,Z)=>{L.component=E;const le=E.vnode.props;E.vnode=L,E.next=null,kw(E,L.props,le,Z),Sw(E,L.children,Z),Pi(),Zl(void 0,E.update),Di()},Le=(E,L,Z,le,ue,ve,xe,he,V=!1)=>{const H=E&&E.children,Ee=E?E.shapeFlag:0,ke=L.children,{patchFlag:De,shapeFlag:Re}=L;if(De>0){if(De&128){pe(H,ke,Z,le,ue,ve,xe,he,V);return}else if(De&256){Be(H,ke,Z,le,ue,ve,xe,he,V);return}}Re&8?(Ee&16&&ie(H,ue,ve),ke!==H&&d(Z,ke)):Ee&16?Re&16?pe(H,ke,Z,le,ue,ve,xe,he,V):ie(H,ue,ve,!0):(Ee&8&&d(Z,""),Re&16&&A(ke,Z,le,ue,ve,xe,he,V))},Be=(E,L,Z,le,ue,ve,xe,he,V)=>{E=E||sr,L=L||sr;const H=E.length,Ee=L.length,ke=Math.min(H,Ee);let De;for(De=0;De<ke;De++){const Re=L[De]=V?qo(L[De]):Pn(L[De]);g(E[De],Re,Z,null,ue,ve,xe,he,V)}H>Ee?ie(E,ue,ve,!0,!1,ke):A(L,Z,le,ue,ve,xe,he,V,ke)},pe=(E,L,Z,le,ue,ve,xe,he,V)=>{let H=0;const Ee=L.length;let ke=E.length-1,De=Ee-1;for(;H<=ke&&H<=De;){const Re=E[H],qe=L[H]=V?qo(L[H]):Pn(L[H]);if(ho(Re,qe))g(Re,qe,Z,null,ue,ve,xe,he,V);else break;H++}for(;H<=ke&&H<=De;){const Re=E[ke],qe=L[De]=V?qo(L[De]):Pn(L[De]);if(ho(Re,qe))g(Re,qe,Z,null,ue,ve,xe,he,V);else break;ke--,De--}if(H>ke){if(H<=De){const Re=De+1,qe=Re<Ee?L[Re].el:le;for(;H<=De;)g(null,L[H]=V?qo(L[H]):Pn(L[H]),Z,qe,ue,ve,xe,he,V),H++}}else if(H>De)for(;H<=ke;)fe(E[H],ue,ve,!0),H++;else{const Re=H,qe=H,tt=new Map;for(H=qe;H<=De;H++){const Me=L[H]=V?qo(L[H]):Pn(L[H]);Me.key!=null&&tt.set(Me.key,H)}let z,v=0;const I=De-qe+1;let K=!1,ee=0;const me=new Array(I);for(H=0;H<I;H++)me[H]=0;for(H=Re;H<=ke;H++){const Me=E[H];if(v>=I){fe(Me,ue,ve,!0);continue}let oe;if(Me.key!=null)oe=tt.get(Me.key);else for(z=qe;z<=De;z++)if(me[z-qe]===0&&ho(Me,L[z])){oe=z;break}oe===void 0?fe(Me,ue,ve,!0):(me[oe-qe]=H+1,oe>=ee?ee=oe:K=!0,g(Me,L[oe],Z,null,ue,ve,xe,he,V),v++)}const Se=K?Ow(me):sr;for(z=Se.length-1,H=I-1;H>=0;H--){const Me=qe+H,oe=L[Me],de=Me+1<Ee?L[Me+1].el:le;me[H]===0?g(null,oe,Z,de,ue,ve,xe,he,V):K&&(z<0||H!==Se[z]?J(oe,Z,de,2):z--)}}},J=(E,L,Z,le,ue=null)=>{const{el:ve,type:xe,transition:he,children:V,shapeFlag:H}=E;if(H&6){J(E.component.subTree,L,Z,le);return}if(H&128){E.suspense.move(L,Z,le);return}if(H&64){xe.move(E,L,Z,Ie);return}if(xe===Ge){o(ve,L,Z);for(let ke=0;ke<V.length;ke++)J(V[ke],L,Z,le);o(E.anchor,L,Z);return}if(xe===Si){k(E,L,Z);return}if(le!==2&&H&1&&he)if(le===0)he.beforeEnter(ve),o(ve,L,Z),Qt(()=>he.enter(ve),ue);else{const{leave:ke,delayLeave:De,afterLeave:Re}=he,qe=()=>o(ve,L,Z),tt=()=>{ke(ve,()=>{qe(),Re&&Re()})};De?De(ve,qe,tt):tt()}else o(ve,L,Z)},fe=(E,L,Z,le=!1,ue=!1)=>{const{type:ve,props:xe,ref:he,children:V,dynamicChildren:H,shapeFlag:Ee,patchFlag:ke,dirs:De}=E;if(he!=null&&xl(he,null,Z,E,!0),Ee&256){L.ctx.deactivate(E);return}const Re=Ee&1&&De,qe=!zi(E);let tt;if(qe&&(tt=xe&&xe.onVnodeBeforeUnmount)&&yn(tt,L,E),Ee&6)se(E.component,Z,le);else{if(Ee&128){E.suspense.unmount(Z,le);return}Re&&fo(E,null,L,"beforeUnmount"),Ee&64?E.type.remove(E,L,Z,ue,Ie,le):H&&(ve!==Ge||ke>0&&ke&64)?ie(H,L,Z,!1,!0):(ve===Ge&&ke&384||!ue&&Ee&16)&&ie(V,L,Z),le&&we(E)}(qe&&(tt=xe&&xe.onVnodeUnmounted)||Re)&&Qt(()=>{tt&&yn(tt,L,E),Re&&fo(E,null,L,"unmounted")},Z)},we=E=>{const{type:L,el:Z,anchor:le,transition:ue}=E;if(L===Ge){U(Z,le);return}if(L===Si){$(E);return}const ve=()=>{i(Z),ue&&!ue.persisted&&ue.afterLeave&&ue.afterLeave()};if(E.shapeFlag&1&&ue&&!ue.persisted){const{leave:xe,delayLeave:he}=ue,V=()=>xe(Z,ve);he?he(E.el,ve,V):V()}else ve()},U=(E,L)=>{let Z;for(;E!==L;)Z=f(E),i(E),E=Z;i(L)},se=(E,L,Z)=>{const{bum:le,scope:ue,update:ve,subTree:xe,um:he}=E;le&&lr(le),ue.stop(),ve&&(ve.active=!1,fe(xe,E,L,Z)),he&&Qt(he,L),Qt(()=>{E.isUnmounted=!0},L),L&&L.pendingBranch&&!L.isUnmounted&&E.asyncDep&&!E.asyncResolved&&E.suspenseId===L.pendingId&&(L.deps--,L.deps===0&&L.resolve())},ie=(E,L,Z,le=!1,ue=!1,ve=0)=>{for(let xe=ve;xe<E.length;xe++)fe(E[xe],L,Z,le,ue)},ye=E=>E.shapeFlag&6?ye(E.component.subTree):E.shapeFlag&128?E.suspense.next():f(E.anchor||E.el),je=(E,L,Z)=>{E==null?L._vnode&&fe(L._vnode,null,null,!0):g(L._vnode||null,E,L,null,null,null,Z),_l(),L._vnode=E},Ie={p:g,um:fe,m:J,r:we,mt:re,mc:A,pc:Le,pbc:G,n:ye,o:e};let $e,Ae;return t&&([$e,Ae]=t(Ie)),{render:je,hydrate:$e,createApp:Ew(je,$e)}}function fi({effect:e,update:t},n){e.allowRecurse=t.allowRecurse=n}function Kd(e,t,n=!1){const o=e.children,i=t.children;if(He(o)&&He(i))for(let r=0;r<o.length;r++){const s=o[r];let a=i[r];a.shapeFlag&1&&!a.dynamicChildren&&((a.patchFlag<=0||a.patchFlag===32)&&(a=i[r]=qo(i[r]),a.el=s.el),n||Kd(s,a))}}function Ow(e){const t=e.slice(),n=[0];let o,i,r,s,a;const l=e.length;for(o=0;o<l;o++){const u=e[o];if(u!==0){if(i=n[n.length-1],e[i]<u){t[o]=i,n.push(o);continue}for(r=0,s=n.length-1;r<s;)a=r+s>>1,e[n[a]]<u?r=a+1:s=a;u<e[n[r]]&&(r>0&&(t[o]=n[r-1]),n[r]=o)}}for(r=n.length,s=n[r-1];r-- >0;)n[r]=s,s=t[s];return n}const Tw=e=>e.__isTeleport,ms=e=>e&&(e.disabled||e.disabled===""),Im=e=>typeof SVGElement!="undefined"&&e instanceof SVGElement,Fu=(e,t)=>{const n=e&&e.to;return Tt(n)?t?t(n):null:n},Pw={__isTeleport:!0,process(e,t,n,o,i,r,s,a,l,u){const{mc:d,pc:m,pbc:f,o:{insert:h,querySelector:p,createText:b,createComment:g}}=u,y=ms(t.props);let{shapeFlag:w,children:C,dynamicChildren:k}=t;if(e==null){const $=t.el=b(""),O=t.anchor=b("");h($,n,o),h(O,n,o);const j=t.target=Fu(t.props,p),F=t.targetAnchor=b("");j&&(h(F,j),s=s||Im(j));const A=(M,G)=>{w&16&&d(C,M,G,i,r,s,a,l)};y?A(n,O):j&&A(j,F)}else{t.el=e.el;const $=t.anchor=e.anchor,O=t.target=e.target,j=t.targetAnchor=e.targetAnchor,F=ms(e.props),A=F?n:O,M=F?$:j;if(s=s||Im(O),k?(f(e.dynamicChildren,k,A,i,r,s,a),Kd(e,t,!0)):l||m(e,t,A,M,i,r,s,a,!1),y)F||ma(t,n,$,u,1);else if((t.props&&t.props.to)!==(e.props&&e.props.to)){const G=t.target=Fu(t.props,p);G&&ma(t,G,null,u,0)}else F&&ma(t,O,j,u,1)}},remove(e,t,n,o,{um:i,o:{remove:r}},s){const{shapeFlag:a,children:l,anchor:u,targetAnchor:d,target:m,props:f}=e;if(m&&r(d),(s||!ms(f))&&(r(u),a&16))for(let h=0;h<l.length;h++){const p=l[h];i(p,t,n,!0,!!p.dynamicChildren)}},move:ma,hydrate:Dw};function ma(e,t,n,{o:{insert:o},m:i},r=2){r===0&&o(e.targetAnchor,t,n);const{el:s,anchor:a,shapeFlag:l,children:u,props:d}=e,m=r===2;if(m&&o(s,t,n),(!m||ms(d))&&l&16)for(let f=0;f<u.length;f++)i(u[f],t,n,2);m&&o(a,t,n)}function Dw(e,t,n,o,i,r,{o:{nextSibling:s,parentNode:a,querySelector:l}},u){const d=t.target=Fu(t.props,l);if(d){const m=d._lpa||d.firstChild;if(t.shapeFlag&16)if(ms(t.props))t.anchor=u(s(e),t,a(e),n,o,i,r),t.targetAnchor=m;else{t.anchor=s(e);let f=m;for(;f;)if(f=s(f),f&&f.nodeType===8&&f.data==="teleport anchor"){t.targetAnchor=f,d._lpa=t.targetAnchor&&s(t.targetAnchor);break}u(m,t,d,n,o,i,r)}}return t.anchor&&s(t.anchor)}const ci=Pw,Ge=Symbol(void 0),ii=Symbol(void 0),ln=Symbol(void 0),Si=Symbol(void 0),hs=[];let xn=null;function S(e=!1){hs.push(xn=e?null:[])}function tg(){hs.pop(),xn=hs[hs.length-1]||null}let Oi=1;function Iu(e){Oi+=e}function ng(e){return e.dynamicChildren=Oi>0?xn||sr:null,tg(),Oi>0&&xn&&xn.push(e),e}function D(e,t,n,o,i,r){return ng(c(e,t,n,o,i,r,!0))}function Ce(e,t,n,o,i){return ng(x(e,t,n,o,i,!0))}function ri(e){return e?e.__v_isVNode===!0:!1}function ho(e,t){return e.type===t.type&&e.key===t.key}function Fw(e){}const ic="__vInternal",og=({key:e})=>e!=null?e:null,rl=({ref:e,ref_key:t,ref_for:n})=>e!=null?Tt(e)||qt(e)||et(e)?{i:rn,r:e,k:t,f:!!n}:e:null;function c(e,t=null,n=null,o=0,i=null,r=e===Ge?0:1,s=!1,a=!1){const l={__v_isVNode:!0,__v_skip:!0,type:e,props:t,key:t&&og(t),ref:t&&rl(t),scopeId:Xl,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:r,patchFlag:o,dynamicProps:i,dynamicChildren:null,appContext:null};return a?(Yd(l,n),r&128&&e.normalize(l)):n&&(l.shapeFlag|=Tt(n)?8:16),Oi>0&&!s&&xn&&(l.patchFlag>0||r&6)&&l.patchFlag!==32&&xn.push(l),l}const x=Iw;function Iw(e,t=null,n=null,o=0,i=null,r=!1){if((!e||e===Vb)&&(e=ln),ri(e)){const a=vo(e,t,!0);return n&&Yd(a,n),Oi>0&&!r&&xn&&(a.shapeFlag&6?xn[xn.indexOf(e)]=a:xn.push(a)),a.patchFlag|=-2,a}if(qw(e)&&(e=e.__vccOpts),t){t=ig(t);let{class:a,style:l}=t;a&&!Tt(a)&&(t.class=Ye(a)),Nt(l)&&(Dd(l)&&!He(l)&&(l=Rt({},l)),t.style=li(l))}const s=Tt(e)?1:$b(e)?128:Tw(e)?64:Nt(e)?4:et(e)?2:0;return c(e,t,n,o,i,s,r,!0)}function ig(e){return e?Dd(e)||ic in e?Rt({},e):e:null}function vo(e,t,n=!1){const{props:o,ref:i,patchFlag:r,children:s}=e,a=t?Zd(o||{},t):o;return{__v_isVNode:!0,__v_skip:!0,type:e.type,props:a,key:a&&og(a),ref:t&&t.ref?n&&i?He(i)?i.concat(rl(t)):[i,rl(t)]:rl(t):i,scopeId:e.scopeId,slotScopeIds:e.slotScopeIds,children:s,target:e.target,targetAnchor:e.targetAnchor,staticCount:e.staticCount,shapeFlag:e.shapeFlag,patchFlag:t&&e.type!==Ge?r===-1?16:r|16:r,dynamicProps:e.dynamicProps,dynamicChildren:e.dynamicChildren,appContext:e.appContext,dirs:e.dirs,transition:e.transition,component:e.component,suspense:e.suspense,ssContent:e.ssContent&&vo(e.ssContent),ssFallback:e.ssFallback&&vo(e.ssFallback),el:e.el,anchor:e.anchor}}function _t(e=" ",t=0){return x(ii,null,e,t)}function Mw(e,t){const n=x(Si,null,e);return n.staticCount=t,n}function Q(e="",t=!1){return t?(S(),Ce(ln,null,e)):x(ln,null,e)}function Pn(e){return e==null||typeof e=="boolean"?x(ln):He(e)?x(Ge,null,e.slice()):typeof e=="object"?qo(e):x(ii,null,String(e))}function qo(e){return e.el===null||e.memo?e:vo(e)}function Yd(e,t){let n=0;const{shapeFlag:o}=e;if(t==null)t=null;else if(He(t))n=16;else if(typeof t=="object")if(o&65){const i=t.default;i&&(i._c&&(i._d=!1),Yd(e,i()),i._c&&(i._d=!0));return}else{n=32;const i=t._;!i&&!(ic in t)?t._ctx=rn:i===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),o&64?(n=16,t=[_t(t)]):n=8);e.children=t,e.shapeFlag|=n}function Zd(...e){const t={};for(let n=0;n<e.length;n++){const o=e[n];for(const i in o)if(i==="class")t.class!==o.class&&(t.class=Ye([t.class,o.class]));else if(i==="style")t.style=li([t.style,o.style]);else if(Ms(i)){const r=t[i],s=o[i];s&&r!==s&&!(He(r)&&r.includes(s))&&(t[i]=r?[].concat(r,s):s)}else i!==""&&(t[i]=o[i])}return t}function yn(e,t,n,o=null){In(e,t,7,[n,o])}const Lw=Jb();let Rw=0;function rg(e,t,n){const o=e.type,i=(t?t.appContext:e.appContext)||Lw,r={uid:Rw++,vnode:e,type:o,parent:t,appContext:i,root:null,next:null,subTree:null,effect:null,update:null,scope:new Ad(!0),render:null,proxy:null,exposed:null,exposeProxy:null,withProxy:null,provides:t?t.provides:Object.create(i.provides),accessCache:null,renderCache:[],components:null,directives:null,propsOptions:Wb(o,i),emitsOptions:Sb(o,i),emit:null,emitted:null,propsDefaults:vt,inheritAttrs:o.inheritAttrs,ctx:vt,data:vt,props:vt,attrs:vt,slots:vt,refs:vt,setupState:vt,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 r.ctx={_:r},r.root=t?t.root:r,r.emit=G1.bind(null,r),e.ce&&e.ce(r),r}let Yt=null;const ao=()=>Yt||rn,si=e=>{Yt=e,e.scope.on()},ei=()=>{Yt&&Yt.scope.off(),Yt=null};function sg(e){return e.vnode.shapeFlag&4}let pr=!1;function ag(e,t=!1){pr=t;const{props:n,children:o}=e.vnode,i=sg(e);xw(e,n,i,t),zw(e,o);const r=i?Nw(e,t):void 0;return pr=!1,r}function Nw(e,t){const n=e.type;e.accessCache=Object.create(null),e.proxy=Fd(new Proxy(e.ctx,Ou));const{setup:o}=n;if(o){const i=e.setupContext=o.length>1?cg(e):null;si(e),Pi();const r=bo(o,e,0,[e.props,i]);if(Di(),ei(),$d(r)){if(r.then(ei,ei),t)return r.then(s=>{Mu(e,s,t)}).catch(s=>{Ii(s,e,0)});e.asyncDep=r}else Mu(e,r,t)}else lg(e,t)}function Mu(e,t,n){et(t)?e.type.__ssrInlineRender?e.ssrRender=t:e.render=t:Nt(t)&&(e.setupState=Ld(t)),lg(e,n)}let kl,Lu;function jw(e){kl=e,Lu=t=>{t.render._rc&&(t.withProxy=new Proxy(t.ctx,bw))}}const Vw=()=>!kl;function lg(e,t,n){const o=e.type;if(!e.render){if(!t&&kl&&!o.render){const i=o.template;if(i){const{isCustomElement:r,compilerOptions:s}=e.appContext.config,{delimiters:a,compilerOptions:l}=o,u=Rt(Rt({isCustomElement:r,delimiters:a},s),l);o.render=kl(i,u)}}e.render=o.render||io,Lu&&Lu(e)}si(e),Pi(),gw(e),Di(),ei()}function Bw(e){return new Proxy(e.attrs,{get(t,n){return Rn(e,"get","$attrs"),t[n]}})}function cg(e){const t=o=>{e.exposed=o||{}};let n;return{get attrs(){return n||(n=Bw(e))},slots:e.slots,emit:e.emit,expose:t}}function rc(e){if(e.exposed)return e.exposeProxy||(e.exposeProxy=new Proxy(Ld(Fd(e.exposed)),{get(t,n){if(n in t)return t[n];if(n in yl)return yl[n](e)}}))}const Uw=/(?:^|[-_])(\w)/g,Hw=e=>e.replace(Uw,t=>t.toUpperCase()).replace(/[-_]/g,"");function Cl(e,t=!0){return et(e)?e.displayName||e.name:e.name||t&&e.__name}function ug(e,t,n=!1){let o=Cl(t);if(!o&&t.__file){const i=t.__file.match(/([^/\\]+)\.\w+$/);i&&(o=i[1])}if(!o&&e&&e.parent){const i=r=>{for(const s in r)if(r[s]===t)return s};o=i(e.components||e.parent.type.components)||i(e.appContext.components)}return o?Hw(o):n?"App":"Anonymous"}function qw(e){return et(e)&&"__vccOpts"in e}const Ot=(e,t)=>L1(e,t,pr);function Gw(){return null}function Ww(){return null}function Kw(e){}function Yw(e,t){return null}function Zw(){return dg().slots}function Jw(){return dg().attrs}function dg(){const e=ao();return e.setupContext||(e.setupContext=cg(e))}function Xw(e,t){const n=He(e)?e.reduce((o,i)=>(o[i]={},o),{}):e;for(const o in t){const i=n[o];i?He(i)||et(i)?n[o]={type:i,default:t[o]}:i.default=t[o]:i===null&&(n[o]={default:t[o]})}return n}function Qw(e,t){const n={};for(const o in e)t.includes(o)||Object.defineProperty(n,o,{enumerable:!0,get:()=>e[o]});return n}function ex(e){const t=ao();let n=e();return ei(),$d(n)&&(n=n.catch(o=>{throw si(t),o})),[n,()=>si(t)]}function kn(e,t,n){const o=arguments.length;return o===2?Nt(t)&&!He(t)?ri(t)?x(e,null,[t]):x(e,t):x(e,null,t):(o>3?n=Array.prototype.slice.call(arguments,2):o===3&&ri(n)&&(n=[n]),x(e,t,n))}const fg=Symbol(""),tx=()=>{{const e=ro(fg);return e||_b("Server rendering context not provided. Make sure to only call useSSRContext() conditionally in the server build."),e}};function nx(){}function ox(e,t,n,o){const i=n[o];if(i&&mg(i,e))return i;const r=t();return r.memo=e.slice(),n[o]=r}function mg(e,t){const n=e.memo;if(n.length!=t.length)return!1;for(let o=0;o<n.length;o++)if(fr(n[o],t[o]))return!1;return Oi>0&&xn&&xn.push(e),!0}const hg="3.2.37",ix={createComponentInstance:rg,setupComponent:ag,renderComponentRoot:il,setCurrentRenderingInstance:Os,isVNode:ri,normalizeVNode:Pn},rx=ix,sx=null,ax=null,lx="http://www.w3.org/2000/svg",wi=typeof document!="undefined"?document:null,Mm=wi&&wi.createElement("template"),cx={insert:(e,t,n)=>{t.insertBefore(e,n||null)},remove:e=>{const t=e.parentNode;t&&t.removeChild(e)},createElement:(e,t,n,o)=>{const i=t?wi.createElementNS(lx,e):wi.createElement(e,n?{is:n}:void 0);return e==="select"&&o&&o.multiple!=null&&i.setAttribute("multiple",o.multiple),i},createText:e=>wi.createTextNode(e),createComment:e=>wi.createComment(e),setText:(e,t)=>{e.nodeValue=t},setElementText:(e,t)=>{e.textContent=t},parentNode:e=>e.parentNode,nextSibling:e=>e.nextSibling,querySelector:e=>wi.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,o,i,r){const s=n?n.previousSibling:t.lastChild;if(i&&(i===r||i.nextSibling))for(;t.insertBefore(i.cloneNode(!0),n),!(i===r||!(i=i.nextSibling)););else{Mm.innerHTML=o?`<svg>${e}</svg>`:e;const a=Mm.content;if(o){const l=a.firstChild;for(;l.firstChild;)a.appendChild(l.firstChild);a.removeChild(l)}t.insertBefore(a,n)}return[s?s.nextSibling:t.firstChild,n?n.previousSibling:t.lastChild]}};function ux(e,t,n){const o=e._vtc;o&&(t=(t?[t,...o]:[...o]).join(" ")),t==null?e.removeAttribute("class"):n?e.setAttribute("class",t):e.className=t}function dx(e,t,n){const o=e.style,i=Tt(n);if(n&&!i){for(const r in n)Ru(o,r,n[r]);if(t&&!Tt(t))for(const r in t)n[r]==null&&Ru(o,r,"")}else{const r=o.display;i?t!==n&&(o.cssText=n):t&&e.removeAttribute("style"),"_vod"in e&&(o.display=r)}}const Lm=/\s*!important$/;function Ru(e,t,n){if(He(n))n.forEach(o=>Ru(e,t,o));else if(n==null&&(n=""),t.startsWith("--"))e.setProperty(t,n);else{const o=fx(e,t);Lm.test(n)?e.setProperty(po(o),n.replace(Lm,""),"important"):e[o]=n}}const Rm=["Webkit","Moz","ms"],Hc={};function fx(e,t){const n=Hc[t];if(n)return n;let o=Ln(t);if(o!=="filter"&&o in e)return Hc[t]=o;o=Rs(o);for(let i=0;i<Rm.length;i++){const r=Rm[i]+o;if(r in e)return Hc[t]=r}return t}const Nm="http://www.w3.org/1999/xlink";function mx(e,t,n,o,i){if(o&&t.startsWith("xlink:"))n==null?e.removeAttributeNS(Nm,t.slice(6,t.length)):e.setAttributeNS(Nm,t,n);else{const r=N0(t);n==null||r&&!Xp(n)?e.removeAttribute(t):e.setAttribute(t,r?"":n)}}function hx(e,t,n,o,i,r,s){if(t==="innerHTML"||t==="textContent"){o&&s(o,i,r),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=Xp(n):n==null&&l==="string"?(n="",a=!0):l==="number"&&(n=0,a=!0)}try{e[t]=n}catch{}a&&e.removeAttribute(t)}const[pg,px]=(()=>{let e=Date.now,t=!1;if(typeof window!="undefined"){Date.now()>document.createEvent("Event").timeStamp&&(e=performance.now.bind(performance));const n=navigator.userAgent.match(/firefox\/(\d+)/i);t=!!(n&&Number(n[1])<=53)}return[e,t]})();let Nu=0;const bx=Promise.resolve(),gx=()=>{Nu=0},vx=()=>Nu||(bx.then(gx),Nu=pg());function So(e,t,n,o){e.addEventListener(t,n,o)}function _x(e,t,n,o){e.removeEventListener(t,n,o)}function yx(e,t,n,o,i=null){const r=e._vei||(e._vei={}),s=r[t];if(o&&s)s.value=o;else{const[a,l]=wx(t);if(o){const u=r[t]=xx(o,i);So(e,a,u,l)}else s&&(_x(e,a,s,l),r[t]=void 0)}}const jm=/(?:Once|Passive|Capture)$/;function wx(e){let t;if(jm.test(e)){t={};let n;for(;n=e.match(jm);)e=e.slice(0,e.length-n[0].length),t[n[0].toLowerCase()]=!0}return[po(e.slice(2)),t]}function xx(e,t){const n=o=>{const i=o.timeStamp||pg();(px||i>=n.attached-1)&&In(kx(o,n.value),t,5,[o])};return n.value=e,n.attached=vx(),n}function kx(e,t){if(He(t)){const n=e.stopImmediatePropagation;return e.stopImmediatePropagation=()=>{n.call(e),e._stopped=!0},t.map(o=>i=>!i._stopped&&o&&o(i))}else return t}const Vm=/^on[a-z]/,Cx=(e,t,n,o,i=!1,r,s,a,l)=>{t==="class"?ux(e,o,i):t==="style"?dx(e,n,o):Ms(t)?zd(t)||yx(e,t,n,o,s):(t[0]==="."?(t=t.slice(1),!0):t[0]==="^"?(t=t.slice(1),!1):zx(e,t,o,i))?hx(e,t,o,r,s,a,l):(t==="true-value"?e._trueValue=o:t==="false-value"&&(e._falseValue=o),mx(e,t,o,i))};function zx(e,t,n,o){return o?!!(t==="innerHTML"||t==="textContent"||t in e&&Vm.test(t)&&et(n)):t==="spellcheck"||t==="draggable"||t==="translate"||t==="form"||t==="list"&&e.tagName==="INPUT"||t==="type"&&e.tagName==="TEXTAREA"||Vm.test(t)&&Tt(n)?!1:t in e}function bg(e,t){const n=Vs(e);class o extends sc{constructor(r){super(n,r,t)}}return o.def=n,o}const Sx=e=>bg(e,Ag),$x=typeof HTMLElement!="undefined"?HTMLElement:class{};class sc extends $x{constructor(t,n={},o){super(),this._def=t,this._props=n,this._instance=null,this._connected=!1,this._resolved=!1,this._numberProps=null,this.shadowRoot&&o?o(this._createVNode(),this.shadowRoot):this.attachShadow({mode:"open"})}connectedCallback(){this._connected=!0,this._instance||this._resolveDef()}disconnectedCallback(){this._connected=!1,Yl(()=>{this._connected||(Vu(null,this.shadowRoot),this._instance=null)})}_resolveDef(){if(this._resolved)return;this._resolved=!0;for(let o=0;o<this.attributes.length;o++)this._setAttr(this.attributes[o].name);new MutationObserver(o=>{for(const i of o)this._setAttr(i.attributeName)}).observe(this,{attributes:!0});const t=o=>{const{props:i,styles:r}=o,s=!He(i),a=i?s?Object.keys(i):i:[];let l;if(s)for(const u in this._props){const d=i[u];(d===Number||d&&d.type===Number)&&(this._props[u]=ni(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(Ln))Object.defineProperty(this,u,{get(){return this._getProp(u)},set(d){this._setProp(u,d)}});this._applyStyles(r),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=ni(n)),this._setProp(Ln(t),n,!1)}_getProp(t){return this._props[t]}_setProp(t,n,o=!0,i=!0){n!==this._props[t]&&(this._props[t]=n,i&&this._instance&&this._update(),o&&(n===!0?this.setAttribute(po(t),""):typeof n=="string"||typeof n=="number"?this.setAttribute(po(t),n+""):n||this.removeAttribute(po(t))))}_update(){Vu(this._createVNode(),this.shadowRoot)}_createVNode(){const t=x(this._def,Rt({},this._props));return this._instance||(t.ce=n=>{this._instance=n,n.isCE=!0,n.emit=(i,...r)=>{this.dispatchEvent(new CustomEvent(i,{detail:r}))};let o=this;for(;o=o&&(o.parentNode||o.host);)if(o instanceof sc){n.parent=o._instance;break}}),t}_applyStyles(t){t&&t.forEach(n=>{const o=document.createElement("style");o.textContent=n,this.shadowRoot.appendChild(o)})}}function Ex(e="$style"){{const t=ao();if(!t)return vt;const n=t.type.__cssModules;if(!n)return vt;const o=n[e];return o||vt}}function Ax(e){const t=ao();if(!t)return;const n=()=>ju(t.subTree,e(t.proxy));Ab(n),Mi(()=>{const o=new MutationObserver(n);o.observe(t.subTree.el.parentNode,{childList:!0}),$r(()=>o.disconnect())})}function ju(e,t){if(e.shapeFlag&128){const n=e.suspense;e=n.activeBranch,n.pendingBranch&&!n.isHydrating&&n.effects.push(()=>{ju(n.activeBranch,t)})}for(;e.component;)e=e.component.subTree;if(e.shapeFlag&1&&e.el)Bm(e.el,t);else if(e.type===Ge)e.children.forEach(n=>ju(n,t));else if(e.type===Si){let{el:n,anchor:o}=e;for(;n&&(Bm(n,t),n!==o);)n=n.nextSibling}}function Bm(e,t){if(e.nodeType===1){const n=e.style;for(const o in t)n.setProperty(`--${o}`,t[o])}}const No="transition",Lr="animation",Gt=(e,{slots:t})=>kn(Hd,vg(e),t);Gt.displayName="Transition";const gg={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},Ox=Gt.props=Rt({},Hd.props,gg),mi=(e,t=[])=>{He(e)?e.forEach(n=>n(...t)):e&&e(...t)},Um=e=>e?He(e)?e.some(t=>t.length>1):e.length>1:!1;function vg(e){const t={};for(const R in e)R in gg||(t[R]=e[R]);if(e.css===!1)return t;const{name:n="v",type:o,duration:i,enterFromClass:r=`${n}-enter-from`,enterActiveClass:s=`${n}-enter-active`,enterToClass:a=`${n}-enter-to`,appearFromClass:l=r,appearActiveClass:u=s,appearToClass:d=a,leaveFromClass:m=`${n}-leave-from`,leaveActiveClass:f=`${n}-leave-active`,leaveToClass:h=`${n}-leave-to`}=e,p=Tx(i),b=p&&p[0],g=p&&p[1],{onBeforeEnter:y,onEnter:w,onEnterCancelled:C,onLeave:k,onLeaveCancelled:$,onBeforeAppear:O=y,onAppear:j=w,onAppearCancelled:F=C}=t,A=(R,q,B)=>{Ho(R,q?d:a),Ho(R,q?u:s),B&&B()},M=(R,q)=>{R._isLeaving=!1,Ho(R,m),Ho(R,h),Ho(R,f),q&&q()},G=R=>(q,B)=>{const re=R?j:w,X=()=>A(q,R,B);mi(re,[q,X]),Hm(()=>{Ho(q,R?l:r),Co(q,R?d:a),Um(re)||qm(q,o,b,X)})};return Rt(t,{onBeforeEnter(R){mi(y,[R]),Co(R,r),Co(R,s)},onBeforeAppear(R){mi(O,[R]),Co(R,l),Co(R,u)},onEnter:G(!1),onAppear:G(!0),onLeave(R,q){R._isLeaving=!0;const B=()=>M(R,q);Co(R,m),yg(),Co(R,f),Hm(()=>{!R._isLeaving||(Ho(R,m),Co(R,h),Um(k)||qm(R,o,g,B))}),mi(k,[R,B])},onEnterCancelled(R){A(R,!1),mi(C,[R])},onAppearCancelled(R){A(R,!0),mi(F,[R])},onLeaveCancelled(R){M(R),mi($,[R])}})}function Tx(e){if(e==null)return null;if(Nt(e))return[qc(e.enter),qc(e.leave)];{const t=qc(e);return[t,t]}}function qc(e){return ni(e)}function Co(e,t){t.split(/\s+/).forEach(n=>n&&e.classList.add(n)),(e._vtc||(e._vtc=new Set)).add(t)}function Ho(e,t){t.split(/\s+/).forEach(o=>o&&e.classList.remove(o));const{_vtc:n}=e;n&&(n.delete(t),n.size||(e._vtc=void 0))}function Hm(e){requestAnimationFrame(()=>{requestAnimationFrame(e)})}let Px=0;function qm(e,t,n,o){const i=e._endId=++Px,r=()=>{i===e._endId&&o()};if(n)return setTimeout(r,n);const{type:s,timeout:a,propCount:l}=_g(e,t);if(!s)return o();const u=s+"end";let d=0;const m=()=>{e.removeEventListener(u,f),r()},f=h=>{h.target===e&&++d>=l&&m()};setTimeout(()=>{d<l&&m()},a+1),e.addEventListener(u,f)}function _g(e,t){const n=window.getComputedStyle(e),o=p=>(n[p]||"").split(", "),i=o(No+"Delay"),r=o(No+"Duration"),s=Gm(i,r),a=o(Lr+"Delay"),l=o(Lr+"Duration"),u=Gm(a,l);let d=null,m=0,f=0;t===No?s>0&&(d=No,m=s,f=r.length):t===Lr?u>0&&(d=Lr,m=u,f=l.length):(m=Math.max(s,u),d=m>0?s>u?No:Lr:null,f=d?d===No?r.length:l.length:0);const h=d===No&&/\b(transform|all)(,|$)/.test(n[No+"Property"]);return{type:d,timeout:m,propCount:f,hasTransform:h}}function Gm(e,t){for(;e.length<t.length;)e=e.concat(e);return Math.max(...t.map((n,o)=>Wm(n)+Wm(e[o])))}function Wm(e){return Number(e.slice(0,-1).replace(",","."))*1e3}function yg(){return document.body.offsetHeight}const wg=new WeakMap,xg=new WeakMap,Dx={name:"TransitionGroup",props:Rt({},Ox,{tag:String,moveClass:String}),setup(e,{slots:t}){const n=ao(),o=Ud();let i,r;return tc(()=>{if(!i.length)return;const s=e.moveClass||`${e.name||"v"}-move`;if(!Rx(i[0].el,n.vnode.el,s))return;i.forEach(Ix),i.forEach(Mx);const a=i.filter(Lx);yg(),a.forEach(l=>{const u=l.el,d=u.style;Co(u,s),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,Ho(u,s))};u.addEventListener("transitionend",m)})}),()=>{const s=ct(e),a=vg(s);let l=s.tag||Ge;i=r,r=t.default?Ql(t.default()):[];for(let u=0;u<r.length;u++){const d=r[u];d.key!=null&&Ai(d,hr(d,a,o,n))}if(i)for(let u=0;u<i.length;u++){const d=i[u];Ai(d,hr(d,a,o,n)),wg.set(d,d.el.getBoundingClientRect())}return x(l,null,r)}}},Fx=Dx;function Ix(e){const t=e.el;t._moveCb&&t._moveCb(),t._enterCb&&t._enterCb()}function Mx(e){xg.set(e,e.el.getBoundingClientRect())}function Lx(e){const t=wg.get(e),n=xg.get(e),o=t.left-n.left,i=t.top-n.top;if(o||i){const r=e.el.style;return r.transform=r.webkitTransform=`translate(${o}px,${i}px)`,r.transitionDuration="0s",e}}function Rx(e,t,n){const o=e.cloneNode();e._vtc&&e._vtc.forEach(s=>{s.split(/\s+/).forEach(a=>a&&o.classList.remove(a))}),n.split(/\s+/).forEach(s=>s&&o.classList.add(s)),o.style.display="none";const i=t.nodeType===1?t:t.parentNode;i.appendChild(o);const{hasTransform:r}=_g(o);return i.removeChild(o),r}const ai=e=>{const t=e.props["onUpdate:modelValue"]||!1;return He(t)?n=>lr(t,n):t};function Nx(e){e.target.composing=!0}function Km(e){const t=e.target;t.composing&&(t.composing=!1,t.dispatchEvent(new Event("input")))}const zn={created(e,{modifiers:{lazy:t,trim:n,number:o}},i){e._assign=ai(i);const r=o||i.props&&i.props.type==="number";So(e,t?"change":"input",s=>{if(s.target.composing)return;let a=e.value;n&&(a=a.trim()),r&&(a=ni(a)),e._assign(a)}),n&&So(e,"change",()=>{e.value=e.value.trim()}),t||(So(e,"compositionstart",Nx),So(e,"compositionend",Km),So(e,"change",Km))},mounted(e,{value:t}){e.value=t==null?"":t},beforeUpdate(e,{value:t,modifiers:{lazy:n,trim:o,number:i}},r){if(e._assign=ai(r),e.composing||document.activeElement===e&&e.type!=="range"&&(n||o&&e.value.trim()===t||(i||e.type==="number")&&ni(e.value)===t))return;const s=t==null?"":t;e.value!==s&&(e.value=s)}},Oo={deep:!0,created(e,t,n){e._assign=ai(n),So(e,"change",()=>{const o=e._modelValue,i=br(e),r=e.checked,s=e._assign;if(He(o)){const a=Bl(o,i),l=a!==-1;if(r&&!l)s(o.concat(i));else if(!r&&l){const u=[...o];u.splice(a,1),s(u)}}else if(Ti(o)){const a=new Set(o);r?a.add(i):a.delete(i),s(a)}else s(kg(e,r))})},mounted:Ym,beforeUpdate(e,t,n){e._assign=ai(n),Ym(e,t,n)}};function Ym(e,{value:t,oldValue:n},o){e._modelValue=t,He(t)?e.checked=Bl(t,o.props.value)>-1:Ti(t)?e.checked=t.has(o.props.value):t!==n&&(e.checked=ti(t,kg(e,!0)))}const Jd={created(e,{value:t},n){e.checked=ti(t,n.props.value),e._assign=ai(n),So(e,"change",()=>{e._assign(br(e))})},beforeUpdate(e,{value:t,oldValue:n},o){e._assign=ai(o),t!==n&&(e.checked=ti(t,o.props.value))}},Xd={deep:!0,created(e,{value:t,modifiers:{number:n}},o){const i=Ti(t);So(e,"change",()=>{const r=Array.prototype.filter.call(e.options,s=>s.selected).map(s=>n?ni(br(s)):br(s));e._assign(e.multiple?i?new Set(r):r:r[0])}),e._assign=ai(o)},mounted(e,{value:t}){Zm(e,t)},beforeUpdate(e,t,n){e._assign=ai(n)},updated(e,{value:t}){Zm(e,t)}};function Zm(e,t){const n=e.multiple;if(!(n&&!He(t)&&!Ti(t))){for(let o=0,i=e.options.length;o<i;o++){const r=e.options[o],s=br(r);if(n)He(t)?r.selected=Bl(t,s)>-1:r.selected=t.has(s);else if(ti(br(r),t)){e.selectedIndex!==o&&(e.selectedIndex=o);return}}!n&&e.selectedIndex!==-1&&(e.selectedIndex=-1)}}function br(e){return"_value"in e?e._value:e.value}function kg(e,t){const n=t?"_trueValue":"_falseValue";return n in e?e[n]:t}const Cg={created(e,t,n){ha(e,t,n,null,"created")},mounted(e,t,n){ha(e,t,n,null,"mounted")},beforeUpdate(e,t,n,o){ha(e,t,n,o,"beforeUpdate")},updated(e,t,n,o){ha(e,t,n,o,"updated")}};function zg(e,t){switch(e){case"SELECT":return Xd;case"TEXTAREA":return zn;default:switch(t){case"checkbox":return Oo;case"radio":return Jd;default:return zn}}}function ha(e,t,n,o,i){const s=zg(e.tagName,n.props&&n.props.type)[i];s&&s(e,t,n,o)}function jx(){zn.getSSRProps=({value:e})=>({value:e}),Jd.getSSRProps=({value:e},t)=>{if(t.props&&ti(t.props.value,e))return{checked:!0}},Oo.getSSRProps=({value:e},t)=>{if(He(e)){if(t.props&&Bl(e,t.props.value)>-1)return{checked:!0}}else if(Ti(e)){if(t.props&&e.has(t.props.value))return{checked:!0}}else if(e)return{checked:!0}},Cg.getSSRProps=(e,t)=>{if(typeof t.type!="string")return;const n=zg(t.type.toUpperCase(),t.props&&t.props.type);if(n.getSSRProps)return n.getSSRProps(e,t)}}const Vx=["ctrl","shift","alt","meta"],Bx={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)=>Vx.some(n=>e[`${n}Key`]&&!t.includes(n))},bt=(e,t)=>(n,...o)=>{for(let i=0;i<t.length;i++){const r=Bx[t[i]];if(r&&r(n,t))return}return e(n,...o)},Ux={esc:"escape",space:" ",up:"arrow-up",left:"arrow-left",right:"arrow-right",down:"arrow-down",delete:"backspace"},Dn=(e,t)=>n=>{if(!("key"in n))return;const o=po(n.key);if(t.some(i=>i===o||Ux[i]===o))return e(n)},gr={beforeMount(e,{value:t},{transition:n}){e._vod=e.style.display==="none"?"":e.style.display,n&&t?n.beforeEnter(e):Rr(e,t)},mounted(e,{value:t},{transition:n}){n&&t&&n.enter(e)},updated(e,{value:t,oldValue:n},{transition:o}){!t!=!n&&(o?t?(o.beforeEnter(e),Rr(e,!0),o.enter(e)):o.leave(e,()=>{Rr(e,!1)}):Rr(e,t))},beforeUnmount(e,{value:t}){Rr(e,t)}};function Rr(e,t){e.style.display=t?e._vod:"none"}function Hx(){gr.getSSRProps=({value:e})=>{if(!e)return{style:{display:"none"}}}}const Sg=Rt({patchProp:Cx},cx);let ps,Jm=!1;function $g(){return ps||(ps=Xb(Sg))}function Eg(){return ps=Jm?ps:Qb(Sg),Jm=!0,ps}const Vu=(...e)=>{$g().render(...e)},Ag=(...e)=>{Eg().hydrate(...e)},Og=(...e)=>{const t=$g().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=Tg(o);if(!i)return;const r=t._component;!et(r)&&!r.render&&!r.template&&(r.template=i.innerHTML),i.innerHTML="";const s=n(i,!1,i instanceof SVGElement);return i instanceof Element&&(i.removeAttribute("v-cloak"),i.setAttribute("data-v-app","")),s},t},qx=(...e)=>{const t=Eg().createApp(...e),{mount:n}=t;return t.mount=o=>{const i=Tg(o);if(i)return n(i,!0,i instanceof SVGElement)},t};function Tg(e){return Tt(e)?document.querySelector(e):e}let Xm=!1;const Gx=()=>{Xm||(Xm=!0,jx(),Hx())},Wx=()=>{};var Kx=Object.freeze(Object.defineProperty({__proto__:null,compile:Wx,EffectScope:Ad,ReactiveEffect:Ns,customRef:F1,effect:o1,effectScope:X0,getCurrentScope:Q0,isProxy:Dd,isReactive:Ci,isReadonly:mr,isRef:qt,isShallow:gl,markRaw:Fd,onScopeDispose:e1,proxyRefs:Ld,reactive:Fi,readonly:Pd,ref:wn,shallowReactive:pb,shallowReadonly:A1,shallowRef:bb,stop:i1,toRaw:ct,toRef:vb,toRefs:ls,triggerRef:T1,unref:cr,camelize:Ln,capitalize:Rs,normalizeClass:Ye,normalizeProps:U0,normalizeStyle:li,toDisplayString:_,toHandlerKey:as,BaseTransition:Hd,Comment:ln,Fragment:Ge,KeepAlive:fw,Static:Si,Suspense:tw,Teleport:ci,Text:ii,callWithAsyncErrorHandling:In,callWithErrorHandling:bo,cloneVNode:vo,compatUtils:ax,computed:Ot,createBlock:Ce,createCommentVNode:Q,createElementBlock:D,createElementVNode:c,createHydrationRenderer:Qb,createPropsRestProxy:Qw,createRenderer:Xb,createSlots:Us,createStaticVNode:Mw,createTextVNode:_t,createVNode:x,defineAsyncComponent:uw,defineComponent:Vs,defineEmits:Ww,defineExpose:Kw,defineProps:Gw,get devtools(){return er},getCurrentInstance:ao,getTransitionRawChildren:Ql,guardReactiveProps:ig,h:kn,handleError:Ii,initCustomFormatter:nx,inject:ro,isMemoSame:mg,isRuntimeOnly:Vw,isVNode:ri,mergeDefaults:Xw,mergeProps:Zd,nextTick:Yl,onActivated:Pb,onBeforeMount:Ib,onBeforeUnmount:nc,onBeforeUpdate:Mb,onDeactivated:Db,onErrorCaptured:jb,onMounted:Mi,onRenderTracked:Nb,onRenderTriggered:Rb,onServerPrefetch:Lb,onUnmounted:$r,onUpdated:tc,openBlock:S,popScopeId:K1,provide:fs,pushScopeId:W1,queuePostFlushCb:jd,registerRuntimeCompiler:jw,renderList:xt,renderSlot:Ct,resolveComponent:P,resolveDirective:oc,resolveDynamicComponent:Bb,resolveFilter:sx,resolveTransitionHooks:hr,setBlockTracking:Iu,setDevtoolsHook:zb,setTransitionHooks:Ai,ssrContextKey:fg,ssrUtils:rx,toHandlers:pw,transformVNodeArgs:Fw,useAttrs:Jw,useSSRContext:tx,useSlots:Zw,useTransitionState:Ud,version:hg,warn:_b,watch:Mt,watchEffect:sw,watchPostEffect:Ab,watchSyncEffect:aw,withAsyncContext:ex,withCtx:T,withDefaults:Yw,withDirectives:zt,withMemo:ox,withScopeId:Y1,Transition:Gt,TransitionGroup:Fx,VueElement:sc,createApp:Og,createSSRApp:qx,defineCustomElement:bg,defineSSRCustomElement:Sx,hydrate:Ag,initDirectivesForSSR:Gx,render:Vu,useCssModule:Ex,useCssVars:Ax,vModelCheckbox:Oo,vModelDynamic:Cg,vModelRadio:Jd,vModelSelect:Xd,vModelText:zn,vShow:gr,withKeys:Dn,withModifiers:bt},Symbol.toStringTag,{value:"Module"}));/*!
* @intlify/shared v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Yx=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Do=e=>Yx?Symbol(e):e,Zx=(e,t,n)=>Jx({l:e,k:t,s:n}),Jx=e=>JSON.stringify(e).replace(/\u2028/g,"\\u2028").replace(/\u2029/g,"\\u2029").replace(/\u0027/g,"\\u0027"),en=e=>typeof e=="number"&&isFinite(e),Xx=e=>ef(e)==="[object Date]",zl=e=>ef(e)==="[object RegExp]",ac=e=>mt(e)&&Object.keys(e).length===0;function Qx(e,t){typeof console!="undefined"&&(console.warn("[intlify] "+e),t&&console.warn(t.stack))}const hn=Object.assign;let Qm;const Qd=()=>Qm||(Qm=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function eh(e){return e.replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/"/g,"&quot;").replace(/'/g,"&apos;")}const ek=Object.prototype.hasOwnProperty;function Pg(e,t){return ek.call(e,t)}const sn=Array.isArray,fn=e=>typeof e=="function",We=e=>typeof e=="string",Zt=e=>typeof e=="boolean",pn=e=>e!==null&&typeof e=="object",Dg=Object.prototype.toString,ef=e=>Dg.call(e),mt=e=>ef(e)==="[object Object]",tk=e=>e==null?"":sn(e)||mt(e)&&e.toString===Dg?JSON.stringify(e,null,2):String(e);/*!
* @intlify/message-resolver v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const nk=Object.prototype.hasOwnProperty;function ok(e,t){return nk.call(e,t)}const sl=e=>e!==null&&typeof e=="object",ui=[];ui[0]={w:[0],i:[3,0],["["]:[4],o:[7]};ui[1]={w:[1],["."]:[2],["["]:[4],o:[7]};ui[2]={w:[2],i:[3,0],["0"]:[3,0]};ui[3]={i:[3,0],["0"]:[3,0],w:[1,1],["."]:[2,1],["["]:[4,1],o:[7,1]};ui[4]={["'"]:[5,0],['"']:[6,0],["["]:[4,2],["]"]:[1,3],o:8,l:[4,0]};ui[5]={["'"]:[4,0],o:8,l:[5,0]};ui[6]={['"']:[4,0],o:8,l:[6,0]};const ik=/^\s?(?:true|false|-?[\d.]+|'[^']*'|"[^"]*")\s?$/;function rk(e){return ik.test(e)}function sk(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 ak(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 lk(e){const t=e.trim();return e.charAt(0)==="0"&&isNaN(parseInt(e))?!1:rk(t)?sk(t):"*"+t}function ck(e){const t=[];let n=-1,o=0,i=0,r,s,a,l,u,d,m;const f=[];f[0]=()=>{s===void 0?s=a:s+=a},f[1]=()=>{s!==void 0&&(t.push(s),s=void 0)},f[2]=()=>{f[0](),i++},f[3]=()=>{if(i>0)i--,o=4,f[0]();else{if(i=0,s===void 0||(s=lk(s),s===!1))return!1;f[1]()}};function h(){const p=e[n+1];if(o===5&&p==="'"||o===6&&p==='"')return n++,a="\\"+p,f[0](),!0}for(;o!==null;)if(n++,r=e[n],!(r==="\\"&&h())){if(l=ak(r),m=ui[o],u=m[l]||m.l||8,u===8||(o=u[0],u[1]!==void 0&&(d=f[u[1]],d&&(a=r,d()===!1))))return;if(o===7)return t}}const th=new Map;function Sl(e,t){if(!sl(e))return null;let n=th.get(t);if(n||(n=ck(t),n&&th.set(t,n)),!n)return null;const o=n.length;let i=e,r=0;for(;r<o;){const s=i[n[r]];if(s===void 0)return null;i=s,r++}return i}function Bu(e){if(!sl(e))return e;for(const t in e)if(!!ok(e,t))if(!t.includes("."))sl(e[t])&&Bu(e[t]);else{const n=t.split("."),o=n.length-1;let i=e;for(let r=0;r<o;r++)n[r]in i||(i[n[r]]={}),i=i[n[r]];i[n[o]]=e[t],delete e[t],sl(i[n[o]])&&Bu(i[n[o]])}return e}/*!
* @intlify/runtime v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const uk=e=>e,dk=e=>"",fk="text",mk=e=>e.length===0?"":e.join(""),hk=tk;function nh(e,t){return e=Math.abs(e),t===2?e?e>1?1:0:1:e?Math.min(e,2):0}function pk(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 bk(e,t){t.count||(t.count=e),t.n||(t.n=e)}function gk(e={}){const t=e.locale,n=pk(e),o=pn(e.pluralRules)&&We(t)&&fn(e.pluralRules[t])?e.pluralRules[t]:nh,i=pn(e.pluralRules)&&We(t)&&fn(e.pluralRules[t])?nh:void 0,r=g=>g[o(n,g.length,i)],s=e.list||[],a=g=>s[g],l=e.named||{};en(e.pluralIndex)&&bk(n,l);const u=g=>l[g];function d(g){const y=fn(e.messages)?e.messages(g):pn(e.messages)?e.messages[g]:!1;return y||(e.parent?e.parent.message(g):dk)}const m=g=>e.modifiers?e.modifiers[g]:uk,f=mt(e.processor)&&fn(e.processor.normalize)?e.processor.normalize:mk,h=mt(e.processor)&&fn(e.processor.interpolate)?e.processor.interpolate:hk,p=mt(e.processor)&&We(e.processor.type)?e.processor.type:fk,b={list:a,named:u,plural:r,linked:(g,y)=>{const w=d(g)(b);return We(y)?m(y)(w):w},message:d,type:p,interpolate:h,normalize:f};return b}/*!
* @intlify/message-compiler v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/function Fg(e,t,n={}){const{domain:o,messages:i,args:r}=n,s=e,a=new SyntaxError(String(s));return a.code=e,t&&(a.location=t),a.domain=o,a}/*!
* @intlify/devtools-if v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Ig={I18nInit:"i18n:init",FunctionTranslate:"function:translate"};/*!
* @intlify/core-base v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/let Ps=null;function vk(e){Ps=e}function _k(e,t,n){Ps&&Ps.emit(Ig.I18nInit,{timestamp:Date.now(),i18n:e,version:t,meta:n})}const yk=wk(Ig.FunctionTranslate);function wk(e){return t=>Ps&&Ps.emit(e,t)}const xk="9.1.10",lc=-1,oh="";function kk(){return{upper:e=>We(e)?e.toUpperCase():e,lower:e=>We(e)?e.toLowerCase():e,capitalize:e=>We(e)?`${e.charAt(0).toLocaleUpperCase()}${e.substr(1)}`:e}}let Ck,Mg=null;const ih=e=>{Mg=e},zk=()=>Mg;let rh=0;function Sk(e={}){const t=We(e.version)?e.version:xk,n=We(e.locale)?e.locale:"en-US",o=sn(e.fallbackLocale)||mt(e.fallbackLocale)||We(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:n,i=mt(e.messages)?e.messages:{[n]:{}},r=mt(e.datetimeFormats)?e.datetimeFormats:{[n]:{}},s=mt(e.numberFormats)?e.numberFormats:{[n]:{}},a=hn({},e.modifiers||{},kk()),l=e.pluralRules||{},u=fn(e.missing)?e.missing:null,d=Zt(e.missingWarn)||zl(e.missingWarn)?e.missingWarn:!0,m=Zt(e.fallbackWarn)||zl(e.fallbackWarn)?e.fallbackWarn:!0,f=!!e.fallbackFormat,h=!!e.unresolving,p=fn(e.postTranslation)?e.postTranslation:null,b=mt(e.processor)?e.processor:null,g=Zt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter,w=fn(e.messageCompiler)?e.messageCompiler:Ck,C=fn(e.onWarn)?e.onWarn:Qx,k=e,$=pn(k.__datetimeFormatters)?k.__datetimeFormatters:new Map,O=pn(k.__numberFormatters)?k.__numberFormatters:new Map,j=pn(k.__meta)?k.__meta:{};rh++;const F={version:t,cid:rh,locale:n,fallbackLocale:o,messages:i,datetimeFormats:r,numberFormats:s,modifiers:a,pluralRules:l,missing:u,missingWarn:d,fallbackWarn:m,fallbackFormat:f,unresolving:h,postTranslation:p,processor:b,warnHtmlMessage:g,escapeParameter:y,messageCompiler:w,onWarn:C,__datetimeFormatters:$,__numberFormatters:O,__meta:j};return __INTLIFY_PROD_DEVTOOLS__&&_k(F,t,j),F}function tf(e,t,n,o,i){const{missing:r,onWarn:s}=e;if(r!==null){const a=r(e,n,t,i);return We(a)?a:t}else return t}function Hs(e,t,n){const o=e;o.__localeChainCache||(o.__localeChainCache=new Map);let i=o.__localeChainCache.get(n);if(!i){i=[];let r=[n];for(;sn(r);)r=sh(i,r,t);const s=sn(t)?t:mt(t)?t.default?t.default:null:t;r=We(s)?[s]:s,sn(r)&&sh(i,r,!1),o.__localeChainCache.set(n,i)}return i}function sh(e,t,n){let o=!0;for(let i=0;i<t.length&&Zt(o);i++){const r=t[i];We(r)&&(o=$k(e,t[i],n))}return o}function $k(e,t,n){let o;const i=t.split("-");do{const r=i.join("-");o=Ek(e,r,n),i.splice(-1,1)}while(i.length&&o===!0);return o}function Ek(e,t,n){let o=!1;if(!e.includes(t)&&(o=!0,t)){o=t[t.length-1]!=="!";const i=t.replace(/!/g,"");e.push(i),(sn(n)||mt(n))&&n[i]&&(o=n[i])}return o}function Nr(e,t,n){const o=e;o.__localeChainCache=new Map,Hs(e,n,t)}function ir(e){return Fg(e,null,void 0)}const ah=()=>"",mo=e=>fn(e);function lh(e,...t){const{fallbackFormat:n,postTranslation:o,unresolving:i,fallbackLocale:r,messages:s}=e,[a,l]=Uu(...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,h=We(l.default)||Zt(l.default)?Zt(l.default)?a:l.default:n?a:"",p=n||h!=="",b=We(l.locale)?l.locale:e.locale;m&&Ak(l);let[g,y,w]=f?[a,b,s[b]||{}]:Ok(e,a,b,r,d,u),C=a;if(!f&&!(We(g)||mo(g))&&p&&(g=h,C=g),!f&&(!(We(g)||mo(g))||!We(y)))return i?lc:a;let k=!1;const $=()=>{k=!0},O=mo(g)?g:Lg(e,a,y,g,C,$);if(k)return g;const j=Dk(e,y,w,l),F=gk(j),A=Tk(e,O,F),M=o?o(A):A;if(__INTLIFY_PROD_DEVTOOLS__){const G={timestamp:Date.now(),key:We(a)?a:mo(g)?g.key:"",locale:y||(mo(g)?g.locale:""),format:We(g)?g:mo(g)?g.source:"",message:M};G.meta=hn({},e.__meta,zk()||{}),yk(G)}return M}function Ak(e){sn(e.list)?e.list=e.list.map(t=>We(t)?eh(t):t):pn(e.named)&&Object.keys(e.named).forEach(t=>{We(e.named[t])&&(e.named[t]=eh(e.named[t]))})}function Ok(e,t,n,o,i,r){const{messages:s,onWarn:a}=e,l=Hs(e,o,n);let u={},d,m=null;const f="translate";for(let h=0;h<l.length&&(d=l[h],u=s[d]||{},(m=Sl(u,t))===null&&(m=u[t]),!(We(m)||fn(m)));h++){const p=tf(e,t,d,r,f);p!==t&&(m=p)}return[m,d,u]}function Lg(e,t,n,o,i,r){const{messageCompiler:s,warnHtmlMessage:a}=e;if(mo(o)){const u=o;return u.locale=u.locale||n,u.key=u.key||t,u}const l=s(o,Pk(e,n,i,o,a,r));return l.locale=n,l.key=t,l.source=o,l}function Tk(e,t,n){return t(n)}function Uu(...e){const[t,n,o]=e,i={};if(!We(t)&&!en(t)&&!mo(t))throw ir(14);const r=en(t)?String(t):(mo(t),t);return en(n)?i.plural=n:We(n)?i.default=n:mt(n)&&!ac(n)?i.named=n:sn(n)&&(i.list=n),en(o)?i.plural=o:We(o)?i.default=o:mt(o)&&hn(i,o),[r,i]}function Pk(e,t,n,o,i,r){return{warnHtmlMessage:i,onError:s=>{throw r&&r(s),s},onCacheKey:s=>Zx(t,n,s)}}function Dk(e,t,n,o){const{modifiers:i,pluralRules:r}=e,a={locale:t,modifiers:i,pluralRules:r,messages:l=>{const u=Sl(n,l);if(We(u)){let d=!1;const f=Lg(e,l,t,u,l,()=>{d=!0});return d?ah:f}else return mo(u)?u:ah}};return e.processor&&(a.processor=e.processor),o.list&&(a.list=o.list),o.named&&(a.named=o.named),en(o.plural)&&(a.pluralIndex=o.plural),a}function ch(e,...t){const{datetimeFormats:n,unresolving:o,fallbackLocale:i,onWarn:r}=e,{__datetimeFormatters:s}=e,[a,l,u,d]=Hu(...t),m=Zt(u.missingWarn)?u.missingWarn:e.missingWarn;Zt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,h=We(u.locale)?u.locale:e.locale,p=Hs(e,i,h);if(!We(a)||a==="")return new Intl.DateTimeFormat(h).format(l);let b={},g,y=null;const w="datetime format";for(let $=0;$<p.length&&(g=p[$],b=n[g]||{},y=b[a],!mt(y));$++)tf(e,a,g,m,w);if(!mt(y)||!We(g))return o?lc:a;let C=`${g}__${a}`;ac(d)||(C=`${C}__${JSON.stringify(d)}`);let k=s.get(C);return k||(k=new Intl.DateTimeFormat(g,hn({},y,d)),s.set(C,k)),f?k.formatToParts(l):k.format(l)}function Hu(...e){const[t,n,o,i]=e;let r={},s={},a;if(We(t)){if(!/\d{4}-\d{2}-\d{2}(T.*)?/.test(t))throw ir(16);a=new Date(t);try{a.toISOString()}catch{throw ir(16)}}else if(Xx(t)){if(isNaN(t.getTime()))throw ir(15);a=t}else if(en(t))a=t;else throw ir(14);return We(n)?r.key=n:mt(n)&&(r=n),We(o)?r.locale=o:mt(o)&&(s=o),mt(i)&&(s=i),[r.key||"",a,r,s]}function uh(e,t,n){const o=e;for(const i in n){const r=`${t}__${i}`;!o.__datetimeFormatters.has(r)||o.__datetimeFormatters.delete(r)}}function dh(e,...t){const{numberFormats:n,unresolving:o,fallbackLocale:i,onWarn:r}=e,{__numberFormatters:s}=e,[a,l,u,d]=qu(...t),m=Zt(u.missingWarn)?u.missingWarn:e.missingWarn;Zt(u.fallbackWarn)?u.fallbackWarn:e.fallbackWarn;const f=!!u.part,h=We(u.locale)?u.locale:e.locale,p=Hs(e,i,h);if(!We(a)||a==="")return new Intl.NumberFormat(h).format(l);let b={},g,y=null;const w="number format";for(let $=0;$<p.length&&(g=p[$],b=n[g]||{},y=b[a],!mt(y));$++)tf(e,a,g,m,w);if(!mt(y)||!We(g))return o?lc:a;let C=`${g}__${a}`;ac(d)||(C=`${C}__${JSON.stringify(d)}`);let k=s.get(C);return k||(k=new Intl.NumberFormat(g,hn({},y,d)),s.set(C,k)),f?k.formatToParts(l):k.format(l)}function qu(...e){const[t,n,o,i]=e;let r={},s={};if(!en(t))throw ir(14);const a=t;return We(n)?r.key=n:mt(n)&&(r=n),We(o)?r.locale=o:mt(o)&&(s=o),mt(i)&&(s=i),[r.key||"",a,r,s]}function fh(e,t,n){const o=e;for(const i in n){const r=`${t}__${i}`;!o.__numberFormatters.has(r)||o.__numberFormatters.delete(r)}}typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qd().__INTLIFY_PROD_DEVTOOLS__=!1);function Fk(){return Rg().__VUE_DEVTOOLS_GLOBAL_HOOK__}function Rg(){return typeof navigator!="undefined"&&typeof window!="undefined"?window:typeof global!="undefined"?global:{}}const Ik=typeof Proxy=="function",Mk="devtools-plugin:setup",Lk="plugin:settings:set";let Bi,Gu;function Rk(){var e;return Bi!==void 0||(typeof window!="undefined"&&window.performance?(Bi=!0,Gu=window.performance):typeof global!="undefined"&&((e=global.perf_hooks)===null||e===void 0?void 0:e.performance)?(Bi=!0,Gu=global.perf_hooks.performance):Bi=!1),Bi}function Nk(){return Rk()?Gu.now():Date.now()}class jk{constructor(t,n){this.target=null,this.targetQueue=[],this.onQueue=[],this.plugin=t,this.hook=n;const o={};if(t.settings)for(const s in t.settings){const a=t.settings[s];o[s]=a.defaultValue}const i=`__vue-devtools-plugin-settings__${t.id}`;let r=Object.assign({},o);try{const s=localStorage.getItem(i),a=JSON.parse(s);Object.assign(r,a)}catch{}this.fallbacks={getSettings(){return r},setSettings(s){try{localStorage.setItem(i,JSON.stringify(s))}catch{}r=s},now(){return Nk()}},n&&n.on(Lk,(s,a)=>{s===this.plugin.id&&this.fallbacks.setSettings(a)}),this.proxiedOn=new Proxy({},{get:(s,a)=>this.target?this.target.on[a]:(...l)=>{this.onQueue.push({method:a,args:l})}}),this.proxiedTarget=new Proxy({},{get:(s,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 Vk(e,t){const n=e,o=Rg(),i=Fk(),r=Ik&&n.enableEarlyProxy;if(i&&(o.__VUE_DEVTOOLS_PLUGIN_API_AVAILABLE__||!r))i.emit(Mk,e,t);else{const s=r?new jk(n,i):null;(o.__VUE_DEVTOOLS_PLUGINS__=o.__VUE_DEVTOOLS_PLUGINS__||[]).push({pluginDescriptor:n,setupFn:t,proxy:s}),s&&t(s.proxiedTarget)}}/*!
* vue-i18n v9.1.10
* (c) 2022 kazuya kawaguchi
* Released under the MIT License.
*/const Bk="9.1.10";function Uk(){typeof __INTLIFY_PROD_DEVTOOLS__!="boolean"&&(Qd().__INTLIFY_PROD_DEVTOOLS__=!1)}function qn(e,...t){return Fg(e,null,void 0)}const Gc="__INTLIFY_META__",Wu=Do("__transrateVNode"),Ku=Do("__datetimeParts"),Yu=Do("__numberParts");Do("__enableEmitter");Do("__disableEmitter");const Hk=Do("__setPluralRules");Do("__intlifyMeta");const Ng=Do("__injectWithOption");let mh=0;function hh(e){return(t,n,o,i)=>e(n,o,ao()||void 0,i)}function jg(e,t){const{messages:n,__i18n:o}=t,i=mt(n)?n:sn(o)?{}:{[e]:{}};if(sn(o)&&o.forEach(({locale:r,resource:s})=>{r?(i[r]=i[r]||{},$l(s,i[r])):$l(s,i)}),t.flatJson)for(const r in i)Pg(i,r)&&Bu(i[r]);return i}const pa=e=>!pn(e)||sn(e);function $l(e,t){if(pa(e)||pa(t))throw qn(20);for(const n in e)Pg(e,n)&&(pa(e[n])||pa(t[n])?t[n]=e[n]:$l(e[n],t[n]))}const qk=()=>{const e=ao();return e&&e.type[Gc]?{[Gc]:e.type[Gc]}:null};function Vg(e={}){const{__root:t}=e,n=t===void 0;let o=Zt(e.inheritLocale)?e.inheritLocale:!0;const i=wn(t&&o?t.locale.value:We(e.locale)?e.locale:"en-US"),r=wn(t&&o?t.fallbackLocale.value:We(e.fallbackLocale)||sn(e.fallbackLocale)||mt(e.fallbackLocale)||e.fallbackLocale===!1?e.fallbackLocale:i.value),s=wn(jg(i.value,e)),a=wn(mt(e.datetimeFormats)?e.datetimeFormats:{[i.value]:{}}),l=wn(mt(e.numberFormats)?e.numberFormats:{[i.value]:{}});let u=t?t.missingWarn:Zt(e.missingWarn)||zl(e.missingWarn)?e.missingWarn:!0,d=t?t.fallbackWarn:Zt(e.fallbackWarn)||zl(e.fallbackWarn)?e.fallbackWarn:!0,m=t?t.fallbackRoot:Zt(e.fallbackRoot)?e.fallbackRoot:!0,f=!!e.fallbackFormat,h=fn(e.missing)?e.missing:null,p=fn(e.missing)?hh(e.missing):null,b=fn(e.postTranslation)?e.postTranslation:null,g=Zt(e.warnHtmlMessage)?e.warnHtmlMessage:!0,y=!!e.escapeParameter;const w=t?t.modifiers:mt(e.modifiers)?e.modifiers:{};let C=e.pluralRules||t&&t.pluralRules,k;function $(){return Sk({version:Bk,locale:i.value,fallbackLocale:r.value,messages:s.value,datetimeFormats:a.value,numberFormats:l.value,modifiers:w,pluralRules:C,missing:p===null?void 0:p,missingWarn:u,fallbackWarn:d,fallbackFormat:f,unresolving:!0,postTranslation:b===null?void 0:b,warnHtmlMessage:g,escapeParameter:y,__datetimeFormatters:mt(k)?k.__datetimeFormatters:void 0,__numberFormatters:mt(k)?k.__numberFormatters:void 0,__v_emitter:mt(k)?k.__v_emitter:void 0,__meta:{framework:"vue"}})}k=$(),Nr(k,i.value,r.value);function O(){return[i.value,r.value,s.value,a.value,l.value]}const j=Ot({get:()=>i.value,set:V=>{i.value=V,k.locale=i.value}}),F=Ot({get:()=>r.value,set:V=>{r.value=V,k.fallbackLocale=r.value,Nr(k,i.value,V)}}),A=Ot(()=>s.value),M=Ot(()=>a.value),G=Ot(()=>l.value);function R(){return fn(b)?b:null}function q(V){b=V,k.postTranslation=V}function B(){return h}function re(V){V!==null&&(p=hh(V)),h=V,k.missing=p}function X(V,H,Ee,ke,De,Re){O();let qe;if(__INTLIFY_PROD_DEVTOOLS__)try{ih(qk()),qe=V(k)}finally{ih(null)}else qe=V(k);if(en(qe)&&qe===lc){const[tt,z]=H();return t&&m?ke(t):De(tt)}else{if(Re(qe))return qe;throw qn(14)}}function ce(...V){return X(H=>lh(H,...V),()=>Uu(...V),"translate",H=>H.t(...V),H=>H,H=>We(H))}function ge(...V){const[H,Ee,ke]=V;if(ke&&!pn(ke))throw qn(15);return ce(H,Ee,hn({resolvedMessage:!0},ke||{}))}function Le(...V){return X(H=>ch(H,...V),()=>Hu(...V),"datetime format",H=>H.d(...V),()=>oh,H=>We(H))}function Be(...V){return X(H=>dh(H,...V),()=>qu(...V),"number format",H=>H.n(...V),()=>oh,H=>We(H))}function pe(V){return V.map(H=>We(H)?x(ii,null,H,0):H)}const fe={normalize:pe,interpolate:V=>V,type:"vnode"};function we(...V){return X(H=>{let Ee;const ke=H;try{ke.processor=fe,Ee=lh(ke,...V)}finally{ke.processor=null}return Ee},()=>Uu(...V),"translate",H=>H[Wu](...V),H=>[x(ii,null,H,0)],H=>sn(H))}function U(...V){return X(H=>dh(H,...V),()=>qu(...V),"number format",H=>H[Yu](...V),()=>[],H=>We(H)||sn(H))}function se(...V){return X(H=>ch(H,...V),()=>Hu(...V),"datetime format",H=>H[Ku](...V),()=>[],H=>We(H)||sn(H))}function ie(V){C=V,k.pluralRules=C}function ye(V,H){const Ee=We(H)?H:i.value,ke=$e(Ee);return Sl(ke,V)!==null}function je(V){let H=null;const Ee=Hs(k,r.value,i.value);for(let ke=0;ke<Ee.length;ke++){const De=s.value[Ee[ke]]||{},Re=Sl(De,V);if(Re!=null){H=Re;break}}return H}function Ie(V){const H=je(V);return H!=null?H:t?t.tm(V)||{}:{}}function $e(V){return s.value[V]||{}}function Ae(V,H){s.value[V]=H,k.messages=s.value}function E(V,H){s.value[V]=s.value[V]||{},$l(H,s.value[V]),k.messages=s.value}function L(V){return a.value[V]||{}}function Z(V,H){a.value[V]=H,k.datetimeFormats=a.value,uh(k,V,H)}function le(V,H){a.value[V]=hn(a.value[V]||{},H),k.datetimeFormats=a.value,uh(k,V,H)}function ue(V){return l.value[V]||{}}function ve(V,H){l.value[V]=H,k.numberFormats=l.value,fh(k,V,H)}function xe(V,H){l.value[V]=hn(l.value[V]||{},H),k.numberFormats=l.value,fh(k,V,H)}return mh++,t&&(Mt(t.locale,V=>{o&&(i.value=V,k.locale=V,Nr(k,i.value,r.value))}),Mt(t.fallbackLocale,V=>{o&&(r.value=V,k.fallbackLocale=V,Nr(k,i.value,r.value))})),{id:mh,locale:j,fallbackLocale:F,get inheritLocale(){return o},set inheritLocale(V){o=V,V&&t&&(i.value=t.locale.value,r.value=t.fallbackLocale.value,Nr(k,i.value,r.value))},get availableLocales(){return Object.keys(s.value).sort()},messages:A,datetimeFormats:M,numberFormats:G,get modifiers(){return w},get pluralRules(){return C||{}},get isGlobal(){return n},get missingWarn(){return u},set missingWarn(V){u=V,k.missingWarn=u},get fallbackWarn(){return d},set fallbackWarn(V){d=V,k.fallbackWarn=d},get fallbackRoot(){return m},set fallbackRoot(V){m=V},get fallbackFormat(){return f},set fallbackFormat(V){f=V,k.fallbackFormat=f},get warnHtmlMessage(){return g},set warnHtmlMessage(V){g=V,k.warnHtmlMessage=V},get escapeParameter(){return y},set escapeParameter(V){y=V,k.escapeParameter=V},t:ce,rt:ge,d:Le,n:Be,te:ye,tm:Ie,getLocaleMessage:$e,setLocaleMessage:Ae,mergeLocaleMessage:E,getDateTimeFormat:L,setDateTimeFormat:Z,mergeDateTimeFormat:le,getNumberFormat:ue,setNumberFormat:ve,mergeNumberFormat:xe,getPostTranslationHandler:R,setPostTranslationHandler:q,getMissingHandler:B,setMissingHandler:re,[Wu]:we,[Yu]:U,[Ku]:se,[Hk]:ie,[Ng]:e.__injectWithOption}}const nf={tag:{type:[String,Object]},locale:{type:String},scope:{type:String,validator:e=>e==="parent"||e==="global",default:"parent"},i18n:{type:Object}},ph={name:"i18n-t",props:hn({keypath:{type:String,required:!0},plural:{type:[Number,String],validator:e=>en(e)||!isNaN(e)}},nf),setup(e,t){const{slots:n,attrs:o}=t,i=e.i18n||of({useScope:e.scope,__useComponent:!0}),r=Object.keys(n).filter(s=>s!=="_");return()=>{const s={};e.locale&&(s.locale=e.locale),e.plural!==void 0&&(s.plural=We(e.plural)?+e.plural:e.plural);const a=Gk(t,r),l=i[Wu](e.keypath,a,s),u=hn({},o);return We(e.tag)||pn(e.tag)?kn(e.tag,u,l):kn(Ge,u,l)}}};function Gk({slots:e},t){return t.length===1&&t[0]==="default"?e.default?e.default():[]:t.reduce((n,o)=>{const i=e[o];return i&&(n[o]=i()),n},{})}function Bg(e,t,n,o){const{slots:i,attrs:r}=t;return()=>{const s={part:!0};let a={};e.locale&&(s.locale=e.locale),We(e.format)?s.key=e.format:pn(e.format)&&(We(e.format.key)&&(s.key=e.format.key),a=Object.keys(e.format).reduce((m,f)=>n.includes(f)?hn({},m,{[f]:e.format[f]}):m,{}));const l=o(e.value,s,a);let u=[s.key];sn(l)?u=l.map((m,f)=>{const h=i[m.type];return h?h({[m.type]:m.value,index:f,parts:l}):[m.value]}):We(l)&&(u=[l]);const d=hn({},r);return We(e.tag)||pn(e.tag)?kn(e.tag,d,u):kn(Ge,d,u)}}const Wk=["localeMatcher","style","unit","unitDisplay","currency","currencyDisplay","useGrouping","numberingSystem","minimumIntegerDigits","minimumFractionDigits","maximumFractionDigits","minimumSignificantDigits","maximumSignificantDigits","notation","formatMatcher"],bh={name:"i18n-n",props:hn({value:{type:Number,required:!0},format:{type:[String,Object]}},nf),setup(e,t){const n=e.i18n||of({useScope:"parent",__useComponent:!0});return Bg(e,t,Wk,(...o)=>n[Yu](...o))}},Kk=["dateStyle","timeStyle","fractionalSecondDigits","calendar","dayPeriod","numberingSystem","localeMatcher","timeZone","hour12","hourCycle","formatMatcher","weekday","era","year","month","day","hour","minute","second","timeZoneName"],gh={name:"i18n-d",props:hn({value:{type:[Number,Date],required:!0},format:{type:[String,Object]}},nf),setup(e,t){const n=e.i18n||of({useScope:"parent",__useComponent:!0});return Bg(e,t,Kk,(...o)=>n[Ku](...o))}};function Yk(e,t){const n=e;if(e.mode==="composition")return n.__getInstance(t)||e.global;{const o=n.__getInstance(t);return o!=null?o.__composer:e.global.__composer}}function Zk(e){const t=(n,{instance:o,value:i,modifiers:r})=>{if(!o||!o.$)throw qn(22);const s=Yk(e,o.$),a=Jk(i);n.textContent=s.t(...Xk(a))};return{beforeMount:t,beforeUpdate:t}}function Jk(e){if(We(e))return{path:e};if(mt(e)){if(!("path"in e))throw qn(19,"path");return e}else throw qn(20)}function Xk(e){const{path:t,locale:n,args:o,choice:i,plural:r}=e,s={},a=o||{};return We(n)&&(s.locale=n),en(i)&&(s.plural=i),en(r)&&(s.plural=r),[t,a,s]}function Qk(e,t,...n){const o=mt(n[0])?n[0]:{},i=!!o.useI18nComponentName;(Zt(o.globalInstall)?o.globalInstall:!0)&&(e.component(i?"i18n":ph.name,ph),e.component(bh.name,bh),e.component(gh.name,gh)),e.directive("t",Zk(t))}function e2(e={}){const t=!!e.globalInjection,n=new Map,o=Vg(e),i=Do(""),r={get mode(){return"composition"},async install(s,...a){s.__VUE_I18N_SYMBOL__=i,s.provide(s.__VUE_I18N_SYMBOL__,r),t&&r2(s,r.global),Qk(s,r,...a)},get global(){return o},__instances:n,__getInstance(s){return n.get(s)||null},__setInstance(s,a){n.set(s,a)},__deleteInstance(s){n.delete(s)}};return r}function of(e={}){const t=ao();if(t==null)throw qn(16);if(!t.appContext.app.__VUE_I18N_SYMBOL__)throw qn(17);const n=ro(t.appContext.app.__VUE_I18N_SYMBOL__);if(!n)throw qn(22);const o=n.mode==="composition"?n.global:n.global.__composer,i=ac(e)?"__i18n"in t.type?"local":"global":e.useScope?e.useScope:"local";if(i==="global"){let a=pn(e.messages)?e.messages:{};"__i18nGlobal"in t.type&&(a=jg(o.locale.value,{messages:a,__i18n:t.type.__i18nGlobal}));const l=Object.keys(a);if(l.length&&l.forEach(u=>{o.mergeLocaleMessage(u,a[u])}),pn(e.datetimeFormats)){const u=Object.keys(e.datetimeFormats);u.length&&u.forEach(d=>{o.mergeDateTimeFormat(d,e.datetimeFormats[d])})}if(pn(e.numberFormats)){const u=Object.keys(e.numberFormats);u.length&&u.forEach(d=>{o.mergeNumberFormat(d,e.numberFormats[d])})}return o}if(i==="parent"){let a=t2(n,t,e.__useComponent);return a==null&&(a=o),a}if(n.mode==="legacy")throw qn(18);const r=n;let s=r.__getInstance(t);if(s==null){const a=t.type,l=hn({},e);a.__i18n&&(l.__i18n=a.__i18n),o&&(l.__root=o),s=Vg(l),n2(r,t),r.__setInstance(t,s)}return s}function t2(e,t,n=!1){let o=null;const i=t.root;let r=t.parent;for(;r!=null;){const s=e;if(e.mode==="composition")o=s.__getInstance(r);else{const a=s.__getInstance(r);a!=null&&(o=a.__composer),n&&o&&!o[Ng]&&(o=null)}if(o!=null||i===r)break;r=r.parent}return o}function n2(e,t,n){Mi(()=>{},t),$r(()=>{e.__deleteInstance(t)},t)}const o2=["locale","fallbackLocale","availableLocales"],i2=["t","rt","d","n","tm"];function r2(e,t){const n=Object.create(null);o2.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i)throw qn(22);const r=qt(i.value)?{get(){return i.value.value},set(s){i.value.value=s}}:{get(){return i.get&&i.get()}};Object.defineProperty(n,o,r)}),e.config.globalProperties.$i18n=n,i2.forEach(o=>{const i=Object.getOwnPropertyDescriptor(t,o);if(!i||!i.value)throw qn(22);Object.defineProperty(e.config.globalProperties,`$${o}`,i)})}Uk();if(__INTLIFY_PROD_DEVTOOLS__){const e=Qd();e.__INTLIFY__=!0,vk(e.__INTLIFY_DEVTOOLS_GLOBAL_HOOK__)}var s2={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:o}=e;return t(["|"," ",n(o("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["|"," ",n(o("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:o}=e;return t(["|"," ",n(o("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:o}=e;return t([" ","|"," ",n(o("rate"))," Kb/s"])},channels:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([" ","|"," ",n(o("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:o}=e;return t([n(o("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:o}=e;return t([" ","|"," ",n(o("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"])},cancel:e=>{const{normalize:t}=e;return t(["Cancel"])},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"])},rescan:e=>{const{normalize:t}=e;return t(["Rescan"])},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}=e;return t(["This will also remove the RSS playlist "])},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:o}=e;return t([", restriction reason: ",n(o("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:o}=e;return t([" - ",n(o("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: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:o}=e;return t(["Compiled with support for ",n(o("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:o}=e;return t([n(o("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:o}=e;return t(["Version ",n(o("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},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"])},title:e=>{const{normalize:t}=e;return t(["Albums"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},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:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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:o}=e;return t([n(o("count"))," artists"])},filter:e=>{const{normalize:t}=e;return t(["Filter"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Sort by"])},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"])},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:o}=e;return t([n(o("count"))," tracks"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," audiobooks"])},title:e=>{const{normalize:t}=e;return t(["Audiobooks"])}},artist:{"albums-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," authors"])},title:e=>{const{normalize:t}=e;return t(["Authors"])}},tabs:{authors:e=>{const{normalize:t}=e;return t(["Authors"])},audiobooks:e=>{const{normalize:t}=e;return t(["Audiobooks"])}}},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"])}},tabs:{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"])}}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," tracks"])}},composers:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," tracks"])}},genres:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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:o}=e;return t([n(o("length"))," tracks"])},shuffle:e=>{const{normalize:t}=e;return t(["Shuffle"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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:o}=e;return t([n(o("count"))," tracks"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Add"])},count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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:o}=e;return t([n(o("count"))," tracks"])},edit:e=>{const{normalize:t}=e;return t(["Edit"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Hide previous"])},title:e=>{const{normalize:t}=e;return t(["Queue"])},save:e=>{const{normalize:t}=e;return t(["Save"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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://owntone.github.io/owntone-server/smart-playlists/" 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:o}=e;return t(["Show all ",n(o("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," artists"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," audiobooks"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," composers"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," playlists"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," tracks"])},tracks:e=>{const{normalize:t}=e;return t(["Tracks"])},tabs:{library:e=>{const{normalize:t}=e;return t(["Library"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},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}=e;return t(["Remote pairing request from "])},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:{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:o}=e;return t([n(o("count"))," tracks"])}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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:o}=e;return t([n(o("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:o}=e;return t(["Show all ",n(o("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," artists"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("count"))," playlists"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Show all ",n(o("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:o}=e;return t(["Request failed (status: ",n(o("status"))," ",n(o("cause"))," ",n(o("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Queue saved to playlist ",n(o("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," tracks appended to the queue"])},"empty-queue":e=>{const{normalize:t}=e;return t(["Queue is empty"])}},"group-by-list":{today:e=>{const{normalize:t}=e;return t(["Today"])},"last-week":e=>{const{normalize:t}=e;return t(["Last week"])},"last-month":e=>{const{normalize:t}=e;return t(["Last month"])}}},fr:{data:{kind:{file:e=>{const{normalize:t}=e;return t(["Fichier"])},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(["Flux"])}}},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(["Annuler"])},help:e=>{const{normalize:t}=e;return t(["L\u2019ajout d\u2019un podcast inclut la cr\xE9ation d\u2019une liste de lecture RSS, qui permettra \xE0 OwnTone de g\xE9rer l\u2019abonnement au podcast."])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-du-flux-rss"])},processing:e=>{const{normalize:t}=e;return t(["Traitement en cours\u2026"])},title:e=>{const{normalize:t}=e;return t(["Ajouter l\u2019URL du flux RSS du podcast"])}},stream:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},loading:e=>{const{normalize:t}=e;return t(["Chargement\u2026"])},placeholder:e=>{const{normalize:t}=e;return t(["https://url-du-flux"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},title:e=>{const{normalize:t}=e;return t(["Ajouter l\u2019URL du flux"])}}},album:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Ajout\xE9 le"])},artiste:e=>{const{normalize:t}=e;return t(["Album artist"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Marquer comme lu"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])},"remove-podcast":e=>{const{normalize:t}=e;return t(["Supprimer le podcast"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Ann\xE9e"])}},artiste:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Ajout\xE9 le"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},composer:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},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(["Dur\xE9e"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}},directory:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},play:e=>{const{normalize:t}=e;return t(["Lire"])}},genre:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},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(["Dur\xE9e"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},"track-count":e=>{const{normalize:t}=e;return t(["Pistes"])},type:e=>{const{normalize:t}=e;return t(["Type"])},save:{cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},save:e=>{const{normalize:t}=e;return t(["Enregistrer"])},saving:e=>{const{normalize:t}=e;return t(["Enregistrement en cours\u2026"])},title:e=>{const{normalize:t}=e;return t(["Enregister la file d\u2019attente dans une liste de lecture"])}}},"queue-item":{"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["|"," ",n(o("rate"))," kbit/s"])},channels:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["|"," ",n(o("channels"))])},composer:e=>{const{normalize:t}=e;return t(["Compositeur"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},position:e=>{const{normalize:t}=e;return t(["Disque / Piste"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE9"])},remove:e=>{const{normalize:t}=e;return t(["Supprimer"])},samplerate:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["|"," ",n(o("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artiste"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Ann\xE9e"])}},"remote-pairing":{cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},pair:e=>{const{normalize:t}=e;return t(["Jumeler la t\xE9l\xE9commande"])},title:e=>{const{normalize:t}=e;return t(["Demande de jumelage de t\xE9l\xE9commande"])}},spotify:{album:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])},type:e=>{const{normalize:t}=e;return t(["Type"])}},artiste:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},popularity:e=>{const{normalize:t}=e;return t(["Popularit\xE9s / Followers"])}},playlist:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},owner:e=>{const{normalize:t}=e;return t(["Propri\xE9ataire"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},album:e=>{const{normalize:t}=e;return t(["Album"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},position:e=>{const{normalize:t}=e;return t(["Disque / Piste"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])}}},track:{"add-next":e=>{const{normalize:t}=e;return t(["Ajouter ensuite"])},add:e=>{const{normalize:t}=e;return t(["Ajouter"])},"added-on":e=>{const{normalize:t}=e;return t(["Ajout\xE9 le"])},"album-artist":e=>{const{normalize:t}=e;return t(["Artiste de l\u2019album"])},album:e=>{const{normalize:t}=e;return t(["Album"])},bitrate:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([" ","|"," ",n(o("rate"))," Kb/s"])},channels:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([" ","|"," ",n(o("channels"))])},comment:e=>{const{normalize:t}=e;return t(["Commentaire"])},composer:e=>{const{normalize:t}=e;return t(["Compositeur"])},duration:e=>{const{normalize:t}=e;return t(["Dur\xE9e"])},genre:e=>{const{normalize:t}=e;return t(["Genre"])},"mark-as-new":e=>{const{normalize:t}=e;return t(["Marquer comme nouveau"])},"mark-as-played":e=>{const{normalize:t}=e;return t(["Marquer comme lu"])},path:e=>{const{normalize:t}=e;return t(["Emplacement"])},play:e=>{const{normalize:t}=e;return t(["Lire"])},position:e=>{const{normalize:t}=e;return t(["Disque / Piste"])},quality:e=>{const{normalize:t}=e;return t(["Qualit\xE9"])},"rating-value":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("rating"))," / 10"])},rating:e=>{const{normalize:t}=e;return t(["Classement"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])},samplerate:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([" ","|"," ",n(o("rate"))," Hz"])},"spotify-album":e=>{const{normalize:t}=e;return t(["album"])},"spotify-artist":e=>{const{normalize:t}=e;return t(["artiste"])},type:e=>{const{normalize:t}=e;return t(["Type"])},year:e=>{const{normalize:t}=e;return t(["Ann\xE9e"])}},update:{all:e=>{const{normalize:t}=e;return t(["Tout actualiser"])},cancel:e=>{const{normalize:t}=e;return t(["Annuler"])},feeds:e=>{const{normalize:t}=e;return t(["Actualiser uniquement les flux RSS"])},info:e=>{const{normalize:t}=e;return t(["Recherche les fichiers ajout\xE9s, supprim\xE9s et modifi\xE9s"])},local:e=>{const{normalize:t}=e;return t(["Actualiser uniquement la biblioth\xE8que locale"])},progress:e=>{const{normalize:t}=e;return t(["Actualisation de la biblioth\xE8que en cours\u2026"])},"rescan-metadata":e=>{const{normalize:t}=e;return t(["Analyser les m\xE9tadonn\xE9es des fichiers non modifi\xE9s"])},rescan:e=>{const{normalize:t}=e;return t(["Analyser"])},spotify:e=>{const{normalize:t}=e;return t(["Actualiser uniquement Spotify"])},title:e=>{const{normalize:t}=e;return t(["Actualisation de la biblioth\xE8que"])}}},language:{en:e=>{const{normalize:t}=e;return t(["Anglais (English)"])},fr:e=>{const{normalize:t}=e;return t(["Fran\xE7ais"])}},list:{albums:{"info-1":e=>{const{normalize:t}=e;return t(["Supprimer d\xE9finitivement ce podcast de votre biblioth\xE8que ?"])},"info-2":e=>{const{normalize:t}=e;return t(["Cela supprimera \xE9galement la liste de lecture RSS "])},notification:e=>{const{normalize:t}=e;return t(["Le podcast ne peut \xEAtre supprim\xE9. Il n\u2019avait probablement pas \xE9t\xE9 ajout\xE9 comme une liste de lecture RSS."])}},spotify:{"not-playable-track":e=>{const{normalize:t}=e;return t(["La piste ne peut pas \xEAtre lue"])},"restriction-reason":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([", raison de la restriction : ",n(o("reason"))])}}},media:{kind:{album:e=>{const{normalize:t}=e;return t(["Album"])},audiobook:e=>{const{normalize:t}=e;return t(["Livre audio"])},music:e=>{const{normalize:t}=e;return t(["Musique"])},podcast:e=>{const{normalize:t}=e;return t(["Podcast"])}}},navigation:{about:e=>{const{normalize:t}=e;return t(["\xC0 propos"])},albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])},"now-playing":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([" - ",n(o("album"))])},"stream-error":e=>{const{normalize:t}=e;return t(["Erreur du flux HTTP : \xE9chec du chargement du flux ou arr\xEAt du chargement en raison d\u2019un probl\xE8me r\xE9seau"])},stream:e=>{const{normalize:t}=e;return t(["Flux HTTP"])},volume:e=>{const{normalize:t}=e;return t(["Volume"])},files:e=>{const{normalize:t}=e;return t(["Fichiers"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},music:e=>{const{normalize:t}=e;return t(["Musique"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},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(["Recherche"])},settings:e=>{const{normalize:t}=e;return t(["R\xE9glages"])},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(["Actualiser la biblioth\xE8que"])}},page:{about:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},"built-with":e=>{const{normalize:t}=e;return t(['Interface utilisateur construite avec <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> et <a href="https://github.com/owntone/owntone-server/network/dependencies">plus</a>.'])},"compiled-with":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Compil\xE9 avec les options ",n(o("options")),"."])},library:e=>{const{normalize:t}=e;return t(["Biblioth\xE8que"])},"total-playtime":e=>{const{normalize:t}=e;return t(["Dur\xE9e totale de lecture"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},update:e=>{const{normalize:t}=e;return t(["Actualiser"])},"updated-on":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["il y a ",n(o("time"))])},updated:e=>{const{normalize:t}=e;return t(["Mis \xE0 jour"])},uptime:e=>{const{normalize:t}=e;return t(["Temps de fonctionnement"])},name:e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Version ",n(o("version"))])}},album:{shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},filter:e=>{const{normalize:t}=e;return t(["Filtre"])},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les singles et les albums dont les pistes n\u2019apparaissent que dans les listes de lecture."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Masquer les singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les albums qui n\u2019apparaissent que dans votre biblioth\xE8que Spotify."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Masquer les albums de Spotify"])},title:e=>{const{normalize:t}=e;return t(["Albums"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},"recently-added":e=>{const{normalize:t}=e;return t(["Ajouts r\xE9cents"])},"recently-released":e=>{const{normalize:t}=e;return t(["Sorties r\xE9centes"])}}},artist:{"album-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},"release-date":e=>{const{normalize:t}=e;return t(["Date de sortie"])}}},artists:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," artists"])},filter:e=>{const{normalize:t}=e;return t(["Filtre"])},"sort-by":{title:e=>{const{normalize:t}=e;return t(["Trier par"])},name:e=>{const{normalize:t}=e;return t(["Nom"])},"recently-added":e=>{const{normalize:t}=e;return t(["Ajouts r\xE9cents"])}},"hide-singles-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les artistes qui n\u2019apparaissent que dans des singles ou des listes de lecture."])},"hide-singles":e=>{const{normalize:t}=e;return t(["Masquer les singles"])},"hide-spotify-help":e=>{const{normalize:t}=e;return t(["Si actif, masque les artistes qui n\u2019apparaissent que dans votre biblioth\xE8que Spotify."])},"hide-spotify":e=>{const{normalize:t}=e;return t(["Masquer les artistes de Spotify"])},title:e=>{const{normalize:t}=e;return t(["Artistes"])}},audiobooks:{album:{play:e=>{const{normalize:t}=e;return t(["Lire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])}},albums:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," livres audio"])},title:e=>{const{normalize:t}=e;return t(["Livres audio"])}},artiste:{"albums-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])}},artists:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," auteurs"])},title:e=>{const{normalize:t}=e;return t(["Auteurs"])}},tabs:{authors:e=>{const{normalize:t}=e;return t(["Auteurs"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])}}},browse:{albums:e=>{const{normalize:t}=e;return t(["albums"])},"show-more":e=>{const{normalize:t}=e;return t(["Afficher plus"])},tracks:e=>{const{normalize:t}=e;return t(["pistes"])},"recently-added":{albums:e=>{const{normalize:t}=e;return t(["albums"])},title:e=>{const{normalize:t}=e;return t(["Ajouts r\xE9cents"])}},"recently-played":{title:e=>{const{normalize:t}=e;return t(["Lectures r\xE9centes"])},tracks:e=>{const{normalize:t}=e;return t(["pistes"])}},tabs:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},browse:e=>{const{normalize:t}=e;return t(["Parcourir"])},composers:e=>{const{normalize:t}=e;return t(["Compositeurs"])},genres:e=>{const{normalize:t}=e;return t(["Genres"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},composer:{"album-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])}},composers:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," compositeurs"])},title:e=>{const{normalize:t}=e;return t(["Compositeurs"])}},files:{play:e=>{const{normalize:t}=e;return t(["Lire"])},title:e=>{const{normalize:t}=e;return t(["Fichiers"])}},genre:{"album-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])}},genres:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," genres"])},title:e=>{const{normalize:t}=e;return t(["Genres"])}},"now-playing":{info:e=>{const{normalize:t}=e;return t(["Ajoutez des pistes en parcourant votre biblioth\xE8que"])},title:e=>{const{normalize:t}=e;return t(["La file d\u2019attente est vide"])}},playlist:{length:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("length"))," pistes"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])}},playlists:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," listes de lecture"])}},podcast:{play:e=>{const{normalize:t}=e;return t(["Lire"])},"remove-error":e=>{const{normalize:t}=e;return t(["Le podcast ne peut pas \xEAtre supprim\xE9. Il n\u2019a probablement pas \xE9t\xE9 ajout\xE9 en tant que liste de lecture RSS."])},"remove-info-1":e=>{const{normalize:t}=e;return t(["Supprimer ce podcast de mani\xE8re permanente de la biblioth\xE8que ?"])},"remove-info-2":e=>{const{normalize:t}=e;return t(["Cela supprimera \xE9galement la liste de lecture RSS "])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])}},podcasts:{add:e=>{const{normalize:t}=e;return t(["Ajouter"])},count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," podcasts"])},"mark-all-played":e=>{const{normalize:t}=e;return t(["Marquer comme lus"])},"new-episodes":e=>{const{normalize:t}=e;return t(["Nouveaux \xE9pisodes"])},title:e=>{const{normalize:t}=e;return t(["Podcasts"])},update:e=>{const{normalize:t}=e;return t(["Actualiser"])}},queue:{"add-stream":e=>{const{normalize:t}=e;return t(["Ajouter un flux"])},clear:e=>{const{normalize:t}=e;return t(["Effacer"])},count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])},edit:e=>{const{normalize:t}=e;return t(["\xC9diter"])},"hide-previous":e=>{const{normalize:t}=e;return t(["Masquer l\u2019historique"])},queue:e=>{const{normalize:t}=e;return t(["File d\u2019attente"])},save:e=>{const{normalize:t}=e;return t(["Enregistrer"])}},radio:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("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(["Artistes"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])},composers:e=>{const{normalize:t}=e;return t(["Compositeurs"])},help:e=>{const{normalize:t}=e;return t(['Astuce : en pr\xE9fixant votre requ\xEAte avec <code>query:</code>, vous pouvez effectuer une recherche avec une <a href="https://owntone.github.io/owntone-server/smart-playlists/" target="_blank">expression</a> du langage de requ\xEAte de liste de lecture intelligente.'])},"no-albums":e=>{const{normalize:t}=e;return t(["Aucun album trouv\xE9"])},"no-artists":e=>{const{normalize:t}=e;return t(["Aucun artiste trouv\xE9"])},"no-audiobooks":e=>{const{normalize:t}=e;return t(["Aucun livre audio trouv\xE9"])},"no-composers":e=>{const{normalize:t}=e;return t(["Aucun compositeur trouv\xE9"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Aucune liste de lecture trouv\xE9e"])},"no-podcasts":e=>{const{normalize:t}=e;return t(["Aucune podcast trouv\xE9"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Aucune piste trouv\xE9e"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},podcasts:e=>{const{normalize:t}=e;return t(["Podcasts"])},"show-albums":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," albums"])},"show-artists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," artistes"])},"show-audiobooks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," livres audio"])},"show-composers":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," compositeurs"])},"show-playlists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," listes de lecture"])},"show-podcasts":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," podcasts"])},"show-tracks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," pistes"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])},tabs:{library:e=>{const{normalize:t}=e;return t(["Biblioth\xE8que"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}}},settings:{artwork:{artwork:e=>{const{normalize:t}=e;return t(["Illustrations"])},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(["Prend en charge les illustrations au format PNG et JPEG qui sont soit plac\xE9es dans la biblioth\xE8que en tant que fichiers image s\xE9par\xE9s, soit int\xE9gr\xE9es dans les fichiers m\xE9dia, soit mises \xE0 disposition en ligne par les stations de radio."])},"explanation-2":e=>{const{normalize:t}=e;return t(["En outre, vous pouvez activer la r\xE9cup\xE9ration des illustrations \xE0 partir des fournisseurs d\u2019illustrations suivants :"])},spotify:e=>{const{normalize:t}=e;return t(["Spotify"])}},devices:{"no-active-pairing":e=>{const{normalize:t}=e;return t(["Aucune demande de jumelage active."])},"pairing-request":e=>{const{normalize:t}=e;return t(["Demande de jumelage de t\xE9l\xE9commande "])},pairing:e=>{const{normalize:t}=e;return t(["Jumelage de t\xE9l\xE9commande"])},send:e=>{const{normalize:t}=e;return t(["Envoyer"])},"speaker-pairing-info":e=>{const{normalize:t}=e;return t(["Si votre enceinte n\xE9cessite un jumelage, activez-la ci-dessous et entrez le code PIN qu\u2019elle affiche."])},"speaker-pairing":e=>{const{normalize:t}=e;return t(["Jumelage d\u2019enceinte et v\xE9rification d\u2019appareil"])},"verification-code":e=>{const{normalize:t}=e;return t(["Code de v\xE9rification"])},verify:e=>{const{normalize:t}=e;return t(["V\xE9rifier"])}},general:{"album-lists":e=>{const{normalize:t}=e;return t(["Listes d\u2019album"])},audiobooks:e=>{const{normalize:t}=e;return t(["Livres audio"])},files:e=>{const{normalize:t}=e;return t(["Fichiers audio"])},language:e=>{const{normalize:t}=e;return t(["Langue"])},music:e=>{const{normalize:t}=e;return t(["Musique"])},"navigation-item-selection-info":e=>{const{normalize:t}=e;return t(["Si vous s\xE9lectionnez plus d\u2019\xE9l\xE9ments que ce qui peut \xEAtre affich\xE9 sur votre \xE9cran, le menu dispara\xEEtra."])},"navigation-item-selection":e=>{const{normalize:t}=e;return t(["S\xE9lectionnez les \xE9l\xE9ments de la barre de navigation sup\xE9rieure"])},"navigation-items":e=>{const{normalize:t}=e;return t(["Barre de navigation"])},"now-playing-page":e=>{const{normalize:t}=e;return t(["Now playing page"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},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(['Limiter le nombre d\u2019album affich\xE9s dans la section "Ajouts r\xE9cents"'])},"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(['Liste des genres, s\xE9par\xE9s par des virgules, que le compositeur doit afficher sur la page "Lecture en cours".'])},"show-composer-genres-info-2":e=>{const{normalize:t}=e;return t(["Laissez vide pour toujours afficher le compositeur."])},"show-composer-genres-info-3":e=>{const{normalize:t}=e;return t(['L\u2019\xE9tiquette de genre de la piste actuelle est compar\xE9e en v\xE9rifiant si l\u2019un des genres d\xE9finis est inclus. Par exemple, en choisissant "classique, bande sonore", le compositeur pour les pistes dont l\u2019\xE9tiquette de genre est "classique contemporain" sera affich\xE9.'])},"show-composer-genres":e=>{const{normalize:t}=e;return t(["Afficher le compositeur uniquement pour les genres list\xE9s"])},"show-composer-info":e=>{const{normalize:t}=e;return t(['Si actif, le compositeur de la piste en cours de lecture est affich\xE9 sur la page "lecture en cours"'])},"show-composer":e=>{const{normalize:t}=e;return t(["Afficher le compositeur"])},"show-coverart":e=>{const{normalize:t}=e;return t(["Afficher les illustration dans la liste d\u2019albums"])}},services:{lastfm:{"grant-access":e=>{const{normalize:t}=e;return t(["<b>Last.fm</b> - Connectez-vous avec votre nom d\u2019utilisateur et votre mot de passe Last.fm pour activer le scrobbling."])},info:e=>{const{normalize:t}=e;return t(["Le nom d\u2019utilisateur et le mot de passe Last.fm ne sont pas enregistr\xE9s, uniquement la cl\xE9 de session. La cl\xE9 de session n\u2019expire pas."])},title:e=>{const{normalize:t}=e;return t(["Last.fm"])},"no-support":e=>{const{normalize:t}=e;return t(["L\u2019option Last.fm n\u2019est pas pr\xE9sente."])},"stop-scrobbling":e=>{const{normalize:t}=e;return t(["Arr\xEAter le scrobbling"])}},spotify:{"no-support":e=>{const{normalize:t}=e;return t(["L\u2019option Spotify n\u2019est pas pr\xE9sente."])},help:e=>{const{normalize:t}=e;return t(["Si vous vous connectez habituellement \xE0 Spotify avec votre compte Facebook, vous devez d\u2019abord vous rendre sur le site de Spotify pour obtenir le nom d\u2019utilisateur et le mot de passe correspondant \xE0 votre compte."])},"logged-as":e=>{const{normalize:t}=e;return t(["Connect\xE9 en tant que "])},requirements:e=>{const{normalize:t}=e;return t(["Vous devez poss\xE9der un compte Spotify Premium."])},scopes:e=>{const{normalize:t}=e;return t(["L\u2019acc\xE8s \xE0 l\u2019API de Spotify permet l\u2019analyse de votre biblioth\xE8que Spotify. Les champs d\u2019application requis sont les suivants :"])},user:e=>{const{normalize:t}=e;return t(["Acc\xE8s autoris\xE9 pour "])},authorize:e=>{const{normalize:t}=e;return t(["Autoriser l\u2019acc\xE8s \xE0 l\u2019API"])},credentials:e=>{const{normalize:t}=e;return t([" - Connectez-vous avec votre nom d\u2019utilisateur et mot de passe Spotify"])},"grant-access":e=>{const{normalize:t}=e;return t(["<b>Spotify</b> - Accordez l\u2019acc\xE8s \xE0 l\u2019API de Spotify"])},"help-1":e=>{const{normalize:t}=e;return t(["La biblioth\xE8que libspotify permet de lire les pistes de Spotify."])},"help-2":e=>{const{normalize:t}=e;return t(["Votre nom d\u2019utilisateur et votre mot de passe Spotify ne sont pas enregistr\xE9s, uniquement le jeton de connexion."])},reauthorize:e=>{const{normalize:t}=e;return t(["Veuillez autoriser \xE0 nouveau l\u2019acc\xE8s \xE0 l\u2019API pour accorder \xE0 OwnTone les droits d\u2019acc\xE8s suppl\xE9mentaires suivants :"])},title:e=>{const{normalize:t}=e;return t(["Spotify"])}},login:e=>{const{normalize:t}=e;return t(["Se connecter"])},logout:e=>{const{normalize:t}=e;return t(["Se d\xE9connecter"])}},tabs:{artwork:e=>{const{normalize:t}=e;return t(["Illustrations"])},general:e=>{const{normalize:t}=e;return t(["G\xE9n\xE9ral"])},"online-services":e=>{const{normalize:t}=e;return t(["Services en ligne"])},"remotes-and-outputs":e=>{const{normalize:t}=e;return t(["T\xE9l\xE9commandes et sorties"])}}},spotify:{album:{shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])},"track-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])}},artiste:{"album-count":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," albums"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])}},browse:{"featured-playlists":e=>{const{normalize:t}=e;return t(["Listes de lecture en vedette"])},"new-releases":e=>{const{normalize:t}=e;return t(["Nouvelle sorties"])},"show-more":e=>{const{normalize:t}=e;return t(["Afficher plus"])}},playlist:{count:e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes"])},shuffle:e=>{const{normalize:t}=e;return t(["Lecture al\xE9atoire"])}},search:{albums:e=>{const{normalize:t}=e;return t(["Albums"])},artists:e=>{const{normalize:t}=e;return t(["Artistes"])},"no-albums":e=>{const{normalize:t}=e;return t(["Aucun album trouv\xE9"])},"no-artists":e=>{const{normalize:t}=e;return t(["Aucun artiste trouv\xE9"])},"no-playlists":e=>{const{normalize:t}=e;return t(["Aucune liste de lecture trouv\xE9e"])},"no-tracks":e=>{const{normalize:t}=e;return t(["Aucune piste trouv\xE9e"])},playlists:e=>{const{normalize:t}=e;return t(["Listes de lecture"])},"show-all-albums":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," albums"])},"show-all-artists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," artistes"])},"show-all-playlists":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," listes de lecture"])},"show-all-tracks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["Afficher les ",n(o("count"))," pistes"])},tracks:e=>{const{normalize:t}=e;return t(["Pistes"])}}}},setting:{"not-saved":e=>{const{normalize:t}=e;return t([" (erreur \xE0 l\u2019enregistrement du r\xE9glage)"])},saved:e=>{const{normalize:t}=e;return t([" (r\xE9glage enregistr\xE9)"])}},server:{"connection-failed":e=>{const{normalize:t}=e;return t(["\xC9chec de connexion au serveur"])},"missing-port":e=>{const{normalize:t}=e;return t(["Port websocket manquant"])},"request-failed":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["La requ\xEAte a \xE9chou\xE9 (status: ",n(o("status"))," ",n(o("cause"))," ",n(o("url")),")"])},"queue-saved":e=>{const{normalize:t,interpolate:n,named:o}=e;return t(["La file d\u2019attente enregistr\xE9e dans la liste de lecture ",n(o("name"))])},"appended-tracks":e=>{const{normalize:t,interpolate:n,named:o}=e;return t([n(o("count"))," pistes ajout\xE9es \xE0 la file d\u2019attente"])},"empty-queue":e=>{const{normalize:t}=e;return t(["La file d\u2019attente est vide"])}},"group-by-list":{today:e=>{const{normalize:t}=e;return t(["Aujourd\u2019hui"])},"last-week":e=>{const{normalize:t}=e;return t(["La semaine derni\xE8re"])},"last-month":e=>{const{normalize:t}=e;return t(["Le mois dernier"])}}}},a2=e2({legacy:!1,globalInjection:!0,locale:navigator.language,fallbackLocale:"en",fallbackWarn:!1,missingWarn:!1,messages:s2});/*!
* vuex v4.0.2
* (c) 2021 Evan You
* @license MIT
*/var l2="store";function Er(e,t){Object.keys(e).forEach(function(n){return t(e[n],n)})}function c2(e){return e!==null&&typeof e=="object"}function u2(e){return e&&typeof e.then=="function"}function d2(e,t){return function(){return e(t)}}function Ug(e,t,n){return t.indexOf(e)<0&&(n&&n.prepend?t.unshift(e):t.push(e)),function(){var o=t.indexOf(e);o>-1&&t.splice(o,1)}}function Hg(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;cc(e,n,[],e._modules.root,!0),rf(e,n,t)}function rf(e,t,n){var o=e._state;e.getters={},e._makeLocalGettersCache=Object.create(null);var i=e._wrappedGetters,r={};Er(i,function(s,a){r[a]=d2(s,e),Object.defineProperty(e.getters,a,{get:function(){return r[a]()},enumerable:!0})}),e._state=Fi({data:t}),e.strict&&b2(e),o&&n&&e._withCommit(function(){o.data=null})}function cc(e,t,n,o,i){var r=!n.length,s=e._modules.getNamespace(n);if(o.namespaced&&(e._modulesNamespaceMap[s],e._modulesNamespaceMap[s]=o),!r&&!i){var a=sf(t,n.slice(0,-1)),l=n[n.length-1];e._withCommit(function(){a[l]=o.state})}var u=o.context=f2(e,s,n);o.forEachMutation(function(d,m){var f=s+m;m2(e,f,d,u)}),o.forEachAction(function(d,m){var f=d.root?m:s+m,h=d.handler||d;h2(e,f,h,u)}),o.forEachGetter(function(d,m){var f=s+m;p2(e,f,d,u)}),o.forEachChild(function(d,m){cc(e,t,n.concat(m),d,i)})}function f2(e,t,n){var o=t==="",i={dispatch:o?e.dispatch:function(r,s,a){var l=El(r,s,a),u=l.payload,d=l.options,m=l.type;return(!d||!d.root)&&(m=t+m),e.dispatch(m,u)},commit:o?e.commit:function(r,s,a){var l=El(r,s,a),u=l.payload,d=l.options,m=l.type;(!d||!d.root)&&(m=t+m),e.commit(m,u,d)}};return Object.defineProperties(i,{getters:{get:o?function(){return e.getters}:function(){return qg(e,t)}},state:{get:function(){return sf(e.state,n)}}}),i}function qg(e,t){if(!e._makeLocalGettersCache[t]){var n={},o=t.length;Object.keys(e.getters).forEach(function(i){if(i.slice(0,o)===t){var r=i.slice(o);Object.defineProperty(n,r,{get:function(){return e.getters[i]},enumerable:!0})}}),e._makeLocalGettersCache[t]=n}return e._makeLocalGettersCache[t]}function m2(e,t,n,o){var i=e._mutations[t]||(e._mutations[t]=[]);i.push(function(s){n.call(e,o.state,s)})}function h2(e,t,n,o){var i=e._actions[t]||(e._actions[t]=[]);i.push(function(s){var a=n.call(e,{dispatch:o.dispatch,commit:o.commit,getters:o.getters,state:o.state,rootGetters:e.getters,rootState:e.state},s);return u2(a)||(a=Promise.resolve(a)),e._devtoolHook?a.catch(function(l){throw e._devtoolHook.emit("vuex:error",l),l}):a})}function p2(e,t,n,o){e._wrappedGetters[t]||(e._wrappedGetters[t]=function(r){return n(o.state,o.getters,r.state,r.getters)})}function b2(e){Mt(function(){return e._state.data},function(){},{deep:!0,flush:"sync"})}function sf(e,t){return t.reduce(function(n,o){return n[o]},e)}function El(e,t,n){return c2(e)&&e.type&&(n=t,t=e,e=e.type),{type:e,payload:t,options:n}}var g2="vuex bindings",vh="vuex:mutations",Wc="vuex:actions",Ui="vuex",v2=0;function _2(e,t){Vk({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:[g2]},function(n){n.addTimelineLayer({id:vh,label:"Vuex Mutations",color:_h}),n.addTimelineLayer({id:Wc,label:"Vuex Actions",color:_h}),n.addInspector({id:Ui,label:"Vuex",icon:"storage",treeFilterPlaceholder:"Filter stores..."}),n.on.getInspectorTree(function(o){if(o.app===e&&o.inspectorId===Ui)if(o.filter){var i=[];Yg(i,t._modules.root,o.filter,""),o.rootNodes=i}else o.rootNodes=[Kg(t._modules.root,"")]}),n.on.getInspectorState(function(o){if(o.app===e&&o.inspectorId===Ui){var i=o.nodeId;qg(t,i),o.state=x2(C2(t._modules,i),i==="root"?t.getters:t._makeLocalGettersCache,i)}}),n.on.editInspectorState(function(o){if(o.app===e&&o.inspectorId===Ui){var i=o.nodeId,r=o.path;i!=="root"&&(r=i.split("/").filter(Boolean).concat(r)),t._withCommit(function(){o.set(t._state.data,r,o.state.value)})}}),t.subscribe(function(o,i){var r={};o.payload&&(r.payload=o.payload),r.state=i,n.notifyComponentUpdate(),n.sendInspectorTree(Ui),n.sendInspectorState(Ui),n.addTimelineEvent({layerId:vh,event:{time:Date.now(),title:o.type,data:r}})}),t.subscribeAction({before:function(o,i){var r={};o.payload&&(r.payload=o.payload),o._id=v2++,o._time=Date.now(),r.state=i,n.addTimelineEvent({layerId:Wc,event:{time:o._time,title:o.type,groupId:o._id,subtitle:"start",data:r}})},after:function(o,i){var r={},s=Date.now()-o._time;r.duration={_custom:{type:"duration",display:s+"ms",tooltip:"Action duration",value:s}},o.payload&&(r.payload=o.payload),r.state=i,n.addTimelineEvent({layerId:Wc,event:{time:Date.now(),title:o.type,groupId:o._id,subtitle:"end",data:r}})}})})}var _h=8702998,y2=6710886,w2=16777215,Gg={label:"namespaced",textColor:w2,backgroundColor:y2};function Wg(e){return e&&e!=="root"?e.split("/").slice(-2,-1)[0]:"Root"}function Kg(e,t){return{id:t||"root",label:Wg(t),tags:e.namespaced?[Gg]:[],children:Object.keys(e._children).map(function(n){return Kg(e._children[n],t+n+"/")})}}function Yg(e,t,n,o){o.includes(n)&&e.push({id:o||"root",label:o.endsWith("/")?o.slice(0,o.length-1):o||"Root",tags:t.namespaced?[Gg]:[]}),Object.keys(t._children).forEach(function(i){Yg(e,t._children[i],n,o+i+"/")})}function x2(e,t,n){t=n==="root"?t:t[n];var o=Object.keys(t),i={state:Object.keys(e.state).map(function(s){return{key:s,editable:!0,value:e.state[s]}})};if(o.length){var r=k2(t);i.getters=Object.keys(r).map(function(s){return{key:s.endsWith("/")?Wg(s):s,editable:!1,value:Zu(function(){return r[s]})}})}return i}function k2(e){var t={};return Object.keys(e).forEach(function(n){var o=n.split("/");if(o.length>1){var i=t,r=o.pop();o.forEach(function(s){i[s]||(i[s]={_custom:{value:{},display:s,tooltip:"Module",abstract:!0}}),i=i[s]._custom.value}),i[r]=Zu(function(){return e[n]})}else t[n]=Zu(function(){return e[n]})}),t}function C2(e,t){var n=t.split("/").filter(function(o){return o});return n.reduce(function(o,i,r){var s=o[i];if(!s)throw new Error('Missing module "'+i+'" for path "'+t+'".');return r===n.length-1?s:s._children},t==="root"?e:e.root._children)}function Zu(e){try{return e()}catch(t){return t}}var lo=function(t,n){this.runtime=n,this._children=Object.create(null),this._rawModule=t;var o=t.state;this.state=(typeof o=="function"?o():o)||{}},Zg={namespaced:{configurable:!0}};Zg.namespaced.get=function(){return!!this._rawModule.namespaced};lo.prototype.addChild=function(t,n){this._children[t]=n};lo.prototype.removeChild=function(t){delete this._children[t]};lo.prototype.getChild=function(t){return this._children[t]};lo.prototype.hasChild=function(t){return t in this._children};lo.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)};lo.prototype.forEachChild=function(t){Er(this._children,t)};lo.prototype.forEachGetter=function(t){this._rawModule.getters&&Er(this._rawModule.getters,t)};lo.prototype.forEachAction=function(t){this._rawModule.actions&&Er(this._rawModule.actions,t)};lo.prototype.forEachMutation=function(t){this._rawModule.mutations&&Er(this._rawModule.mutations,t)};Object.defineProperties(lo.prototype,Zg);var Li=function(t){this.register([],t,!1)};Li.prototype.get=function(t){return t.reduce(function(n,o){return n.getChild(o)},this.root)};Li.prototype.getNamespace=function(t){var n=this.root;return t.reduce(function(o,i){return n=n.getChild(i),o+(n.namespaced?i+"/":"")},"")};Li.prototype.update=function(t){Jg([],this.root,t)};Li.prototype.register=function(t,n,o){var i=this;o===void 0&&(o=!0);var r=new lo(n,o);if(t.length===0)this.root=r;else{var s=this.get(t.slice(0,-1));s.addChild(t[t.length-1],r)}n.modules&&Er(n.modules,function(a,l){i.register(t.concat(l),a,o)})};Li.prototype.unregister=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1],i=n.getChild(o);!i||!i.runtime||n.removeChild(o)};Li.prototype.isRegistered=function(t){var n=this.get(t.slice(0,-1)),o=t[t.length-1];return n?n.hasChild(o):!1};function Jg(e,t,n){if(t.update(n),n.modules)for(var o in n.modules){if(!t.getChild(o))return;Jg(e.concat(o),t.getChild(o),n.modules[o])}}function z2(e){return new $n(e)}var $n=function(t){var n=this;t===void 0&&(t={});var o=t.plugins;o===void 0&&(o=[]);var i=t.strict;i===void 0&&(i=!1);var r=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 Li(t),this._modulesNamespaceMap=Object.create(null),this._subscribers=[],this._makeLocalGettersCache=Object.create(null),this._devtools=r;var s=this,a=this,l=a.dispatch,u=a.commit;this.dispatch=function(f,h){return l.call(s,f,h)},this.commit=function(f,h,p){return u.call(s,f,h,p)},this.strict=i;var d=this._modules.root.state;cc(this,d,[],this._modules.root),rf(this,d),o.forEach(function(m){return m(n)})},af={state:{configurable:!0}};$n.prototype.install=function(t,n){t.provide(n||l2,this),t.config.globalProperties.$store=this;var o=this._devtools!==void 0?this._devtools:!1;o&&_2(t,this)};af.state.get=function(){return this._state.data};af.state.set=function(e){};$n.prototype.commit=function(t,n,o){var i=this,r=El(t,n,o),s=r.type,a=r.payload,l={type:s,payload:a},u=this._mutations[s];!u||(this._withCommit(function(){u.forEach(function(m){m(a)})}),this._subscribers.slice().forEach(function(d){return d(l,i.state)}))};$n.prototype.dispatch=function(t,n){var o=this,i=El(t,n),r=i.type,s=i.payload,a={type:r,payload:s},l=this._actions[r];if(!!l){try{this._actionSubscribers.slice().filter(function(d){return d.before}).forEach(function(d){return d.before(a,o.state)})}catch{}var u=l.length>1?Promise.all(l.map(function(d){return d(s)})):l[0](s);return new Promise(function(d,m){u.then(function(f){try{o._actionSubscribers.filter(function(h){return h.after}).forEach(function(h){return h.after(a,o.state)})}catch{}d(f)},function(f){try{o._actionSubscribers.filter(function(h){return h.error}).forEach(function(h){return h.error(a,o.state,f)})}catch{}m(f)})})}};$n.prototype.subscribe=function(t,n){return Ug(t,this._subscribers,n)};$n.prototype.subscribeAction=function(t,n){var o=typeof t=="function"?{before:t}:t;return Ug(o,this._actionSubscribers,n)};$n.prototype.watch=function(t,n,o){var i=this;return Mt(function(){return t(i.state,i.getters)},n,Object.assign({},o))};$n.prototype.replaceState=function(t){var n=this;this._withCommit(function(){n._state.data=t})};$n.prototype.registerModule=function(t,n,o){o===void 0&&(o={}),typeof t=="string"&&(t=[t]),this._modules.register(t,n),cc(this,this.state,t,this._modules.get(t),o.preserveState),rf(this,this.state)};$n.prototype.unregisterModule=function(t){var n=this;typeof t=="string"&&(t=[t]),this._modules.unregister(t),this._withCommit(function(){var o=sf(n.state,t.slice(0,-1));delete o[t[t.length-1]]}),Hg(this)};$n.prototype.hasModule=function(t){return typeof t=="string"&&(t=[t]),this._modules.isRegistered(t)};$n.prototype.hotUpdate=function(t){this._modules.update(t),Hg(this,!0)};$n.prototype._withCommit=function(t){var n=this._committing;this._committing=!0,t(),this._committing=n};Object.defineProperties($n.prototype,af);const Xg="UPDATE_CONFIG",Qg="UPDATE_SETTINGS",uc="UPDATE_SETTINGS_OPTION",ev="UPDATE_LIBRARY_STATS",tv="UPDATE_LIBRARY_AUDIOBOOKS_COUNT",nv="UPDATE_LIBRARY_PODCASTS_COUNT",ov="UPDATE_LIBRARY_RSS_COUNT",iv="UPDATE_OUTPUTS",lf="UPDATE_PLAYER_STATUS",rv="UPDATE_QUEUE",sv="UPDATE_LASTFM",av="UPDATE_SPOTIFY",lv="UPDATE_PAIRING",cf="SPOTIFY_NEW_RELEASES",uf="SPOTIFY_FEATURED_PLAYLISTS",yh="ADD_NOTIFICATION",Ju="DELETE_NOTIFICATION",Xu="SEARCH_PATH",df="ADD_RECENT_SEARCH",dc="HIDE_SINGLES",ff="HIDE_SPOTIFY",cv="ARTISTS_SORT",uv="ARTIST_ALBUMS_SORT",dv="ALBUMS_SORT",fv="SHOW_ONLY_NEXT_ITEMS",vr="SHOW_BURGER_MENU",_r="SHOW_PLAYER_MENU",qs="SHOW_UPDATE_DIALOG",mf="UPDATE_DIALOG_SCAN_KIND";var at=z2({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(o=>o.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(o=>o.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(o=>o.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 o=e.settings.categories.find(i=>i.name===t);return o?o.options.find(i=>i.name===n):{}}},mutations:{[Xg](e,t){e.config=t},[Qg](e,t){e.settings=t},[uc](e,t){const o=e.settings.categories.find(i=>i.name===t.category).options.find(i=>i.name===t.name);o.value=t.value},[ev](e,t){e.library=t},[tv](e,t){e.audiobooks_count=t},[nv](e,t){e.podcasts_count=t},[ov](e,t){e.rss_count=t},[iv](e,t){e.outputs=t},[lf](e,t){e.player=t},[rv](e,t){e.queue=t},[sv](e,t){e.lastfm=t},[av](e,t){e.spotify=t},[lv](e,t){e.pairing=t},[cf](e,t){e.spotify_new_releases=t},[uf](e,t){e.spotify_featured_playlists=t},[yh](e,t){if(t.topic){const n=e.notifications.list.findIndex(o=>o.topic===t.topic);if(n>=0){e.notifications.list.splice(n,1,t);return}}e.notifications.list.push(t)},[Ju](e,t){const n=e.notifications.list.indexOf(t);n!==-1&&e.notifications.list.splice(n,1)},[Xu](e,t){e.search_path=t},[df](e,t){const n=e.recent_searches.findIndex(o=>o===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()},[dc](e,t){e.hide_singles=t},[ff](e,t){e.hide_spotify=t},[cv](e,t){e.artists_sort=t},[uv](e,t){e.artist_albums_sort=t},[dv](e,t){e.albums_sort=t},[fv](e,t){e.show_only_next_items=t},[vr](e,t){e.show_burger_menu=t},[_r](e,t){e.show_player_menu=t},[qs](e,t){e.show_update_dialog=t},[mf](e,t){e.update_dialog_scan_kind=t}},actions:{add_notification({commit:e,state:t},n){const o={id:t.notifications.next_id++,type:n.type,text:n.text,topic:n.topic,timeout:n.timeout};e(yh,o),n.timeout>0&&setTimeout(()=>{e(Ju,o)},n.timeout)}}});/*!
* vue-router v4.0.16
* (c) 2022 Eduardo San Martin Morote
* @license MIT
*/const mv=typeof Symbol=="function"&&typeof Symbol.toStringTag=="symbol",Ar=e=>mv?Symbol(e):"_vr_"+e,S2=Ar("rvlm"),wh=Ar("rvd"),hf=Ar("r"),hv=Ar("rl"),Qu=Ar("rvl"),tr=typeof window!="undefined";function $2(e){return e.__esModule||mv&&e[Symbol.toStringTag]==="Module"}const wt=Object.assign;function Kc(e,t){const n={};for(const o in t){const i=t[o];n[o]=Array.isArray(i)?i.map(e):e(i)}return n}const bs=()=>{},E2=/\/$/,A2=e=>e.replace(E2,"");function Yc(e,t,n="/"){let o,i={},r="",s="";const a=t.indexOf("?"),l=t.indexOf("#",a>-1?a:0);return a>-1&&(o=t.slice(0,a),r=t.slice(a+1,l>-1?l:t.length),i=e(r)),l>-1&&(o=o||t.slice(0,l),s=t.slice(l,t.length)),o=D2(o!=null?o:t,n),{fullPath:o+(r&&"?")+r+s,path:o,query:i,hash:s}}function O2(e,t){const n=t.query?e(t.query):"";return t.path+(n&&"?")+n+(t.hash||"")}function xh(e,t){return!t||!e.toLowerCase().startsWith(t.toLowerCase())?e:e.slice(t.length)||"/"}function T2(e,t,n){const o=t.matched.length-1,i=n.matched.length-1;return o>-1&&o===i&&yr(t.matched[o],n.matched[i])&&pv(t.params,n.params)&&e(t.query)===e(n.query)&&t.hash===n.hash}function yr(e,t){return(e.aliasOf||e)===(t.aliasOf||t)}function pv(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(const n in e)if(!P2(e[n],t[n]))return!1;return!0}function P2(e,t){return Array.isArray(e)?kh(e,t):Array.isArray(t)?kh(t,e):e===t}function kh(e,t){return Array.isArray(t)?e.length===t.length&&e.every((n,o)=>n===t[o]):e.length===1&&e[0]===t}function D2(e,t){if(e.startsWith("/"))return e;if(!e)return t;const n=t.split("/"),o=e.split("/");let i=n.length-1,r,s;for(r=0;r<o.length;r++)if(s=o[r],!(i===1||s==="."))if(s==="..")i--;else break;return n.slice(0,i).join("/")+"/"+o.slice(r-(r===o.length?1:0)).join("/")}var Ds;(function(e){e.pop="pop",e.push="push"})(Ds||(Ds={}));var gs;(function(e){e.back="back",e.forward="forward",e.unknown=""})(gs||(gs={}));function F2(e){if(!e)if(tr){const t=document.querySelector("base");e=t&&t.getAttribute("href")||"/",e=e.replace(/^\w+:\/\/[^\/]+/,"")}else e="/";return e[0]!=="/"&&e[0]!=="#"&&(e="/"+e),A2(e)}const I2=/^[^#]+#/;function M2(e,t){return e.replace(I2,"#")+t}function L2(e,t){const n=document.documentElement.getBoundingClientRect(),o=e.getBoundingClientRect();return{behavior:t.behavior,left:o.left-n.left-(t.left||0),top:o.top-n.top-(t.top||0)}}const fc=()=>({left:window.pageXOffset,top:window.pageYOffset});function R2(e){let t;if("el"in e){const n=e.el,o=typeof n=="string"&&n.startsWith("#"),i=typeof n=="string"?o?document.getElementById(n.slice(1)):document.querySelector(n):n;if(!i)return;t=L2(i,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 Ch(e,t){return(history.state?history.state.position-t:-1)+e}const ed=new Map;function N2(e,t){ed.set(e,t)}function j2(e){const t=ed.get(e);return ed.delete(e),t}let V2=()=>location.protocol+"//"+location.host;function bv(e,t){const{pathname:n,search:o,hash:i}=t,r=e.indexOf("#");if(r>-1){let a=i.includes(e.slice(r))?e.slice(r).length:1,l=i.slice(a);return l[0]!=="/"&&(l="/"+l),xh(l,"")}return xh(n,e)+o+i}function B2(e,t,n,o){let i=[],r=[],s=null;const a=({state:f})=>{const h=bv(e,location),p=n.value,b=t.value;let g=0;if(f){if(n.value=h,t.value=f,s&&s===p){s=null;return}g=b?f.position-b.position:0}else o(h);i.forEach(y=>{y(n.value,p,{delta:g,type:Ds.pop,direction:g?g>0?gs.forward:gs.back:gs.unknown})})};function l(){s=n.value}function u(f){i.push(f);const h=()=>{const p=i.indexOf(f);p>-1&&i.splice(p,1)};return r.push(h),h}function d(){const{history:f}=window;!f.state||f.replaceState(wt({},f.state,{scroll:fc()}),"")}function m(){for(const f of r)f();r=[],window.removeEventListener("popstate",a),window.removeEventListener("beforeunload",d)}return window.addEventListener("popstate",a),window.addEventListener("beforeunload",d),{pauseListeners:l,listen:u,destroy:m}}function zh(e,t,n,o=!1,i=!1){return{back:e,current:t,forward:n,replaced:o,position:window.history.length,scroll:i?fc():null}}function U2(e){const{history:t,location:n}=window,o={value:bv(e,n)},i={value:t.state};i.value||r(o.value,{back:null,current:o.value,forward:null,position:t.length-1,replaced:!0,scroll:null},!0);function r(l,u,d){const m=e.indexOf("#"),f=m>-1?(n.host&&document.querySelector("base")?e:e.slice(m))+l:V2()+e+l;try{t[d?"replaceState":"pushState"](u,"",f),i.value=u}catch(h){console.error(h),n[d?"replace":"assign"](f)}}function s(l,u){const d=wt({},t.state,zh(i.value.back,l,i.value.forward,!0),u,{position:i.value.position});r(l,d,!0),o.value=l}function a(l,u){const d=wt({},i.value,t.state,{forward:l,scroll:fc()});r(d.current,d,!0);const m=wt({},zh(o.value,l,null),{position:d.position+1},u);r(l,m,!1),o.value=l}return{location:o,state:i,push:a,replace:s}}function H2(e){e=F2(e);const t=U2(e),n=B2(e,t.state,t.location,t.replace);function o(r,s=!0){s||n.pauseListeners(),history.go(r)}const i=wt({location:"",base:e,go:o,createHref:M2.bind(null,e)},t,n);return Object.defineProperty(i,"location",{enumerable:!0,get:()=>t.location.value}),Object.defineProperty(i,"state",{enumerable:!0,get:()=>t.state.value}),i}function q2(e){return e=location.host?e||location.pathname+location.search:"",e.includes("#")||(e+="#"),H2(e)}function G2(e){return typeof e=="string"||e&&typeof e=="object"}function gv(e){return typeof e=="string"||typeof e=="symbol"}const jo={path:"/",name:void 0,params:{},query:{},hash:"",fullPath:"/",matched:[],meta:{},redirectedFrom:void 0},vv=Ar("nf");var Sh;(function(e){e[e.aborted=4]="aborted",e[e.cancelled=8]="cancelled",e[e.duplicated=16]="duplicated"})(Sh||(Sh={}));function wr(e,t){return wt(new Error,{type:e,[vv]:!0},t)}function Vo(e,t){return e instanceof Error&&vv in e&&(t==null||!!(e.type&t))}const $h="[^/]+?",W2={sensitive:!1,strict:!1,start:!0,end:!0},K2=/[.+*?^${}()[\]/\\]/g;function Y2(e,t){const n=wt({},W2,t),o=[];let i=n.start?"^":"";const r=[];for(const u of e){const d=u.length?[]:[90];n.strict&&!u.length&&(i+="/");for(let m=0;m<u.length;m++){const f=u[m];let h=40+(n.sensitive?.25:0);if(f.type===0)m||(i+="/"),i+=f.value.replace(K2,"\\$&"),h+=40;else if(f.type===1){const{value:p,repeatable:b,optional:g,regexp:y}=f;r.push({name:p,repeatable:b,optional:g});const w=y||$h;if(w!==$h){h+=10;try{new RegExp(`(${w})`)}catch(k){throw new Error(`Invalid custom RegExp for param "${p}" (${w}): `+k.message)}}let C=b?`((?:${w})(?:/(?:${w}))*)`:`(${w})`;m||(C=g&&u.length<2?`(?:/${C})`:"/"+C),g&&(C+="?"),i+=C,h+=20,g&&(h+=-8),b&&(h+=-20),w===".*"&&(h+=-50)}d.push(h)}o.push(d)}if(n.strict&&n.end){const u=o.length-1;o[u][o[u].length-1]+=.7000000000000001}n.strict||(i+="/?"),n.end?i+="$":n.strict&&(i+="(?:/|$)");const s=new RegExp(i,n.sensitive?"":"i");function a(u){const d=u.match(s),m={};if(!d)return null;for(let f=1;f<d.length;f++){const h=d[f]||"",p=r[f-1];m[p.name]=h&&p.repeatable?h.split("/"):h}return m}function l(u){let d="",m=!1;for(const f of e){(!m||!d.endsWith("/"))&&(d+="/"),m=!1;for(const h of f)if(h.type===0)d+=h.value;else if(h.type===1){const{value:p,repeatable:b,optional:g}=h,y=p in u?u[p]:"";if(Array.isArray(y)&&!b)throw new Error(`Provided param "${p}" is an array but it is not repeatable (* or + modifiers)`);const w=Array.isArray(y)?y.join("/"):y;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 "${p}"`);d+=w}}return d}return{re:s,score:o,keys:r,parse:a,stringify:l}}function Z2(e,t){let n=0;for(;n<e.length&&n<t.length;){const o=t[n]-e[n];if(o)return o;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 J2(e,t){let n=0;const o=e.score,i=t.score;for(;n<o.length&&n<i.length;){const r=Z2(o[n],i[n]);if(r)return r;n++}if(Math.abs(i.length-o.length)===1){if(Eh(o))return 1;if(Eh(i))return-1}return i.length-o.length}function Eh(e){const t=e[e.length-1];return e.length>0&&t[t.length-1]<0}const X2={type:0,value:""},Q2=/[a-zA-Z0-9_]/;function eC(e){if(!e)return[[]];if(e==="/")return[[X2]];if(!e.startsWith("/"))throw new Error(`Invalid path "${e}"`);function t(h){throw new Error(`ERR (${n})/"${u}": ${h}`)}let n=0,o=n;const i=[];let r;function s(){r&&i.push(r),r=[]}let a=0,l,u="",d="";function m(){!u||(n===0?r.push({type:0,value:u}):n===1||n===2||n===3?(r.length>1&&(l==="*"||l==="+")&&t(`A repeatable param (${u}) must be alone in its segment. eg: '/:ids+.`),r.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){o=n,n=4;continue}switch(n){case 0:l==="/"?(u&&m(),s()):l===":"?(m(),n=1):f();break;case 4:f(),n=o;break;case 1:l==="("?n=2:Q2.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(),s(),i}function tC(e,t,n){const o=Y2(eC(e.path),n),i=wt(o,{record:e,parent:t,children:[],alias:[]});return t&&!i.record.aliasOf==!t.record.aliasOf&&t.children.push(i),i}function nC(e,t){const n=[],o=new Map;t=Oh({strict:!1,end:!0,sensitive:!1},t);function i(d){return o.get(d)}function r(d,m,f){const h=!f,p=iC(d);p.aliasOf=f&&f.record;const b=Oh(t,d),g=[p];if("alias"in d){const C=typeof d.alias=="string"?[d.alias]:d.alias;for(const k of C)g.push(wt({},p,{components:f?f.record.components:p.components,path:k,aliasOf:f?f.record:p}))}let y,w;for(const C of g){const{path:k}=C;if(m&&k[0]!=="/"){const $=m.record.path,O=$[$.length-1]==="/"?"":"/";C.path=m.record.path+(k&&O+k)}if(y=tC(C,m,b),f?f.alias.push(y):(w=w||y,w!==y&&w.alias.push(y),h&&d.name&&!Ah(y)&&s(d.name)),"children"in p){const $=p.children;for(let O=0;O<$.length;O++)r($[O],y,f&&f.children[O])}f=f||y,l(y)}return w?()=>{s(w)}:bs}function s(d){if(gv(d)){const m=o.get(d);m&&(o.delete(d),n.splice(n.indexOf(m),1),m.children.forEach(s),m.alias.forEach(s))}else{const m=n.indexOf(d);m>-1&&(n.splice(m,1),d.record.name&&o.delete(d.record.name),d.children.forEach(s),d.alias.forEach(s))}}function a(){return n}function l(d){let m=0;for(;m<n.length&&J2(d,n[m])>=0&&(d.record.path!==n[m].record.path||!_v(d,n[m]));)m++;n.splice(m,0,d),d.record.name&&!Ah(d)&&o.set(d.record.name,d)}function u(d,m){let f,h={},p,b;if("name"in d&&d.name){if(f=o.get(d.name),!f)throw wr(1,{location:d});b=f.record.name,h=wt(oC(m.params,f.keys.filter(w=>!w.optional).map(w=>w.name)),d.params),p=f.stringify(h)}else if("path"in d)p=d.path,f=n.find(w=>w.re.test(p)),f&&(h=f.parse(p),b=f.record.name);else{if(f=m.name?o.get(m.name):n.find(w=>w.re.test(m.path)),!f)throw wr(1,{location:d,currentLocation:m});b=f.record.name,h=wt({},m.params,d.params),p=f.stringify(h)}const g=[];let y=f;for(;y;)g.unshift(y.record),y=y.parent;return{name:b,path:p,params:h,matched:g,meta:sC(g)}}return e.forEach(d=>r(d)),{addRoute:r,resolve:u,removeRoute:s,getRoutes:a,getRecordMatcher:i}}function oC(e,t){const n={};for(const o of t)o in e&&(n[o]=e[o]);return n}function iC(e){return{path:e.path,redirect:e.redirect,name:e.name,meta:e.meta||{},aliasOf:void 0,beforeEnter:e.beforeEnter,props:rC(e),children:e.children||[],instances:{},leaveGuards:new Set,updateGuards:new Set,enterCallbacks:{},components:"components"in e?e.components||{}:{default:e.component}}}function rC(e){const t={},n=e.props||!1;if("component"in e)t.default=n;else for(const o in e.components)t[o]=typeof n=="boolean"?n:n[o];return t}function Ah(e){for(;e;){if(e.record.aliasOf)return!0;e=e.parent}return!1}function sC(e){return e.reduce((t,n)=>wt(t,n.meta),{})}function Oh(e,t){const n={};for(const o in e)n[o]=o in t?t[o]:e[o];return n}function _v(e,t){return t.children.some(n=>n===e||_v(e,n))}const yv=/#/g,aC=/&/g,lC=/\//g,cC=/=/g,uC=/\?/g,wv=/\+/g,dC=/%5B/g,fC=/%5D/g,xv=/%5E/g,mC=/%60/g,kv=/%7B/g,hC=/%7C/g,Cv=/%7D/g,pC=/%20/g;function pf(e){return encodeURI(""+e).replace(hC,"|").replace(dC,"[").replace(fC,"]")}function bC(e){return pf(e).replace(kv,"{").replace(Cv,"}").replace(xv,"^")}function td(e){return pf(e).replace(wv,"%2B").replace(pC,"+").replace(yv,"%23").replace(aC,"%26").replace(mC,"`").replace(kv,"{").replace(Cv,"}").replace(xv,"^")}function gC(e){return td(e).replace(cC,"%3D")}function vC(e){return pf(e).replace(yv,"%23").replace(uC,"%3F")}function _C(e){return e==null?"":vC(e).replace(lC,"%2F")}function Al(e){try{return decodeURIComponent(""+e)}catch{}return""+e}function yC(e){const t={};if(e===""||e==="?")return t;const o=(e[0]==="?"?e.slice(1):e).split("&");for(let i=0;i<o.length;++i){const r=o[i].replace(wv," "),s=r.indexOf("="),a=Al(s<0?r:r.slice(0,s)),l=s<0?null:Al(r.slice(s+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 Th(e){let t="";for(let n in e){const o=e[n];if(n=gC(n),o==null){o!==void 0&&(t+=(t.length?"&":"")+n);continue}(Array.isArray(o)?o.map(r=>r&&td(r)):[o&&td(o)]).forEach(r=>{r!==void 0&&(t+=(t.length?"&":"")+n,r!=null&&(t+="="+r))})}return t}function wC(e){const t={};for(const n in e){const o=e[n];o!==void 0&&(t[n]=Array.isArray(o)?o.map(i=>i==null?null:""+i):o==null?o:""+o)}return t}function jr(){let e=[];function t(o){return e.push(o),()=>{const i=e.indexOf(o);i>-1&&e.splice(i,1)}}function n(){e=[]}return{add:t,list:()=>e,reset:n}}function Go(e,t,n,o,i){const r=o&&(o.enterCallbacks[i]=o.enterCallbacks[i]||[]);return()=>new Promise((s,a)=>{const l=m=>{m===!1?a(wr(4,{from:n,to:t})):m instanceof Error?a(m):G2(m)?a(wr(2,{from:t,to:m})):(r&&o.enterCallbacks[i]===r&&typeof m=="function"&&r.push(m),s())},u=e.call(o&&o.instances[i],t,n,l);let d=Promise.resolve(u);e.length<3&&(d=d.then(l)),d.catch(m=>a(m))})}function Zc(e,t,n,o){const i=[];for(const r of e)for(const s in r.components){let a=r.components[s];if(!(t!=="beforeRouteEnter"&&!r.instances[s]))if(xC(a)){const u=(a.__vccOpts||a)[t];u&&i.push(Go(u,n,o,r,s))}else{let l=a();i.push(()=>l.then(u=>{if(!u)return Promise.reject(new Error(`Couldn't resolve component "${s}" at "${r.path}"`));const d=$2(u)?u.default:u;r.components[s]=d;const f=(d.__vccOpts||d)[t];return f&&Go(f,n,o,r,s)()}))}}return i}function xC(e){return typeof e=="object"||"displayName"in e||"props"in e||"__vccOpts"in e}function Ph(e){const t=ro(hf),n=ro(hv),o=Ot(()=>t.resolve(cr(e.to))),i=Ot(()=>{const{matched:l}=o.value,{length:u}=l,d=l[u-1],m=n.matched;if(!d||!m.length)return-1;const f=m.findIndex(yr.bind(null,d));if(f>-1)return f;const h=Dh(l[u-2]);return u>1&&Dh(d)===h&&m[m.length-1].path!==h?m.findIndex(yr.bind(null,l[u-2])):f}),r=Ot(()=>i.value>-1&&SC(n.params,o.value.params)),s=Ot(()=>i.value>-1&&i.value===n.matched.length-1&&pv(n.params,o.value.params));function a(l={}){return zC(l)?t[cr(e.replace)?"replace":"push"](cr(e.to)).catch(bs):Promise.resolve()}return{route:o,href:Ot(()=>o.value.href),isActive:r,isExactActive:s,navigate:a}}const kC=Vs({name:"RouterLink",compatConfig:{MODE:3},props:{to:{type:[String,Object],required:!0},replace:Boolean,activeClass:String,exactActiveClass:String,custom:Boolean,ariaCurrentValue:{type:String,default:"page"}},useLink:Ph,setup(e,{slots:t}){const n=Fi(Ph(e)),{options:o}=ro(hf),i=Ot(()=>({[Fh(e.activeClass,o.linkActiveClass,"router-link-active")]:n.isActive,[Fh(e.exactActiveClass,o.linkExactActiveClass,"router-link-exact-active")]:n.isExactActive}));return()=>{const r=t.default&&t.default(n);return e.custom?r:kn("a",{"aria-current":n.isExactActive?e.ariaCurrentValue:null,href:n.href,onClick:n.navigate,class:i.value},r)}}}),CC=kC;function zC(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 SC(e,t){for(const n in t){const o=t[n],i=e[n];if(typeof o=="string"){if(o!==i)return!1}else if(!Array.isArray(i)||i.length!==o.length||o.some((r,s)=>r!==i[s]))return!1}return!0}function Dh(e){return e?e.aliasOf?e.aliasOf.path:e.path:""}const Fh=(e,t,n)=>e!=null?e:t!=null?t:n,$C=Vs({name:"RouterView",inheritAttrs:!1,props:{name:{type:String,default:"default"},route:Object},compatConfig:{MODE:3},setup(e,{attrs:t,slots:n}){const o=ro(Qu),i=Ot(()=>e.route||o.value),r=ro(wh,0),s=Ot(()=>i.value.matched[r]);fs(wh,r+1),fs(S2,s),fs(Qu,i);const a=wn();return Mt(()=>[a.value,s.value,e.name],([l,u,d],[m,f,h])=>{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||!yr(u,f)||!m)&&(u.enterCallbacks[d]||[]).forEach(p=>p(l))},{flush:"post"}),()=>{const l=i.value,u=s.value,d=u&&u.components[e.name],m=e.name;if(!d)return Ih(n.default,{Component:d,route:l});const f=u.props[e.name],h=f?f===!0?l.params:typeof f=="function"?f(l):f:null,b=kn(d,wt({},h,t,{onVnodeUnmounted:g=>{g.component.isUnmounted&&(u.instances[m]=null)},ref:a}));return Ih(n.default,{Component:b,route:l})||b}}});function Ih(e,t){if(!e)return null;const n=e(t);return n.length===1?n[0]:n}const EC=$C;function AC(e){const t=nC(e.routes,e),n=e.parseQuery||yC,o=e.stringifyQuery||Th,i=e.history,r=jr(),s=jr(),a=jr(),l=bb(jo);let u=jo;tr&&e.scrollBehavior&&"scrollRestoration"in history&&(history.scrollRestoration="manual");const d=Kc.bind(null,U=>""+U),m=Kc.bind(null,_C),f=Kc.bind(null,Al);function h(U,se){let ie,ye;return gv(U)?(ie=t.getRecordMatcher(U),ye=se):ye=U,t.addRoute(ye,ie)}function p(U){const se=t.getRecordMatcher(U);se&&t.removeRoute(se)}function b(){return t.getRoutes().map(U=>U.record)}function g(U){return!!t.getRecordMatcher(U)}function y(U,se){if(se=wt({},se||l.value),typeof U=="string"){const Ae=Yc(n,U,se.path),E=t.resolve({path:Ae.path},se),L=i.createHref(Ae.fullPath);return wt(Ae,E,{params:f(E.params),hash:Al(Ae.hash),redirectedFrom:void 0,href:L})}let ie;if("path"in U)ie=wt({},U,{path:Yc(n,U.path,se.path).path});else{const Ae=wt({},U.params);for(const E in Ae)Ae[E]==null&&delete Ae[E];ie=wt({},U,{params:m(U.params)}),se.params=m(se.params)}const ye=t.resolve(ie,se),je=U.hash||"";ye.params=d(f(ye.params));const Ie=O2(o,wt({},U,{hash:bC(je),path:ye.path})),$e=i.createHref(Ie);return wt({fullPath:Ie,hash:je,query:o===Th?wC(U.query):U.query||{}},ye,{redirectedFrom:void 0,href:$e})}function w(U){return typeof U=="string"?Yc(n,U,l.value.path):wt({},U)}function C(U,se){if(u!==U)return wr(8,{from:se,to:U})}function k(U){return j(U)}function $(U){return k(wt(w(U),{replace:!0}))}function O(U){const se=U.matched[U.matched.length-1];if(se&&se.redirect){const{redirect:ie}=se;let ye=typeof ie=="function"?ie(U):ie;return typeof ye=="string"&&(ye=ye.includes("?")||ye.includes("#")?ye=w(ye):{path:ye},ye.params={}),wt({query:U.query,hash:U.hash,params:U.params},ye)}}function j(U,se){const ie=u=y(U),ye=l.value,je=U.state,Ie=U.force,$e=U.replace===!0,Ae=O(ie);if(Ae)return j(wt(w(Ae),{state:je,force:Ie,replace:$e}),se||ie);const E=ie;E.redirectedFrom=se;let L;return!Ie&&T2(o,ye,ie)&&(L=wr(16,{to:E,from:ye}),Be(ye,ye,!0,!1)),(L?Promise.resolve(L):A(E,ye)).catch(Z=>Vo(Z)?Vo(Z,2)?Z:Le(Z):ce(Z,E,ye)).then(Z=>{if(Z){if(Vo(Z,2))return j(wt(w(Z.to),{state:je,force:Ie,replace:$e}),se||E)}else Z=G(E,ye,!0,$e,je);return M(E,ye,Z),Z})}function F(U,se){const ie=C(U,se);return ie?Promise.reject(ie):Promise.resolve()}function A(U,se){let ie;const[ye,je,Ie]=OC(U,se);ie=Zc(ye.reverse(),"beforeRouteLeave",U,se);for(const Ae of ye)Ae.leaveGuards.forEach(E=>{ie.push(Go(E,U,se))});const $e=F.bind(null,U,se);return ie.push($e),Hi(ie).then(()=>{ie=[];for(const Ae of r.list())ie.push(Go(Ae,U,se));return ie.push($e),Hi(ie)}).then(()=>{ie=Zc(je,"beforeRouteUpdate",U,se);for(const Ae of je)Ae.updateGuards.forEach(E=>{ie.push(Go(E,U,se))});return ie.push($e),Hi(ie)}).then(()=>{ie=[];for(const Ae of U.matched)if(Ae.beforeEnter&&!se.matched.includes(Ae))if(Array.isArray(Ae.beforeEnter))for(const E of Ae.beforeEnter)ie.push(Go(E,U,se));else ie.push(Go(Ae.beforeEnter,U,se));return ie.push($e),Hi(ie)}).then(()=>(U.matched.forEach(Ae=>Ae.enterCallbacks={}),ie=Zc(Ie,"beforeRouteEnter",U,se),ie.push($e),Hi(ie))).then(()=>{ie=[];for(const Ae of s.list())ie.push(Go(Ae,U,se));return ie.push($e),Hi(ie)}).catch(Ae=>Vo(Ae,8)?Ae:Promise.reject(Ae))}function M(U,se,ie){for(const ye of a.list())ye(U,se,ie)}function G(U,se,ie,ye,je){const Ie=C(U,se);if(Ie)return Ie;const $e=se===jo,Ae=tr?history.state:{};ie&&(ye||$e?i.replace(U.fullPath,wt({scroll:$e&&Ae&&Ae.scroll},je)):i.push(U.fullPath,je)),l.value=U,Be(U,se,ie,$e),Le()}let R;function q(){R||(R=i.listen((U,se,ie)=>{const ye=y(U),je=O(ye);if(je){j(wt(je,{replace:!0}),ye).catch(bs);return}u=ye;const Ie=l.value;tr&&N2(Ch(Ie.fullPath,ie.delta),fc()),A(ye,Ie).catch($e=>Vo($e,12)?$e:Vo($e,2)?(j($e.to,ye).then(Ae=>{Vo(Ae,20)&&!ie.delta&&ie.type===Ds.pop&&i.go(-1,!1)}).catch(bs),Promise.reject()):(ie.delta&&i.go(-ie.delta,!1),ce($e,ye,Ie))).then($e=>{$e=$e||G(ye,Ie,!1),$e&&(ie.delta?i.go(-ie.delta,!1):ie.type===Ds.pop&&Vo($e,20)&&i.go(-1,!1)),M(ye,Ie,$e)}).catch(bs)}))}let B=jr(),re=jr(),X;function ce(U,se,ie){Le(U);const ye=re.list();return ye.length?ye.forEach(je=>je(U,se,ie)):console.error(U),Promise.reject(U)}function ge(){return X&&l.value!==jo?Promise.resolve():new Promise((U,se)=>{B.add([U,se])})}function Le(U){return X||(X=!U,q(),B.list().forEach(([se,ie])=>U?ie(U):se()),B.reset()),U}function Be(U,se,ie,ye){const{scrollBehavior:je}=e;if(!tr||!je)return Promise.resolve();const Ie=!ie&&j2(Ch(U.fullPath,0))||(ye||!ie)&&history.state&&history.state.scroll||null;return Yl().then(()=>je(U,se,Ie)).then($e=>$e&&R2($e)).catch($e=>ce($e,U,se))}const pe=U=>i.go(U);let J;const fe=new Set;return{currentRoute:l,addRoute:h,removeRoute:p,hasRoute:g,getRoutes:b,resolve:y,options:e,push:k,replace:$,go:pe,back:()=>pe(-1),forward:()=>pe(1),beforeEach:r.add,beforeResolve:s.add,afterEach:a.add,onError:re.add,isReady:ge,install(U){const se=this;U.component("RouterLink",CC),U.component("RouterView",EC),U.config.globalProperties.$router=se,Object.defineProperty(U.config.globalProperties,"$route",{enumerable:!0,get:()=>cr(l)}),tr&&!J&&l.value===jo&&(J=!0,k(i.location).catch(je=>{}));const ie={};for(const je in jo)ie[je]=Ot(()=>l.value[je]);U.provide(hf,se),U.provide(hv,Fi(ie)),U.provide(Qu,l);const ye=U.unmount;fe.add(U),U.unmount=function(){fe.delete(U),fe.size<1&&(u=jo,R&&R(),R=null,l.value=jo,J=!1,X=!1),ye()}}}}function Hi(e){return e.reduce((t,n)=>t.then(()=>n()),Promise.resolve())}function OC(e,t){const n=[],o=[],i=[],r=Math.max(t.matched.length,e.matched.length);for(let s=0;s<r;s++){const a=t.matched[s];a&&(e.matched.find(u=>yr(u,a))?o.push(a):n.push(a));const l=e.matched[s];l&&(t.matched.find(u=>yr(u,l))||i.push(l))}return[n,o,i]}var _e=(e,t)=>{const n=e.__vccOpts||e;for(const[o,i]of t)n[o]=i;return n};const TC={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}}},PC={class:"section fd-content"},DC={class:"container"},FC={class:"columns is-centered"},IC={class:"column is-four-fifths"},MC={key:0},LC={ref:"options_ref",style:{height:"1px"}},RC={class:"buttons is-centered",style:{"margin-bottom":"6px","margin-top":"16px"}},NC={class:"icon is-small"},jC={class:"icon is-small"},VC={id:"top",class:"level"},BC={class:"level-left"},UC={class:"level-item has-text-centered-mobile"},HC={class:"level-right has-text-centered-mobile"},qC={style:{"margin-top":"16px"}};function GC(e,t,n,o,i,r){const s=P("mdicon");return S(),D("section",PC,[c("div",DC,[c("div",FC,[c("div",IC,[e.$slots.options?(S(),D("section",MC,[c("div",LC,null,512),Ct(e.$slots,"options"),c("nav",RC,[i.options_visible?(S(),D("a",{key:1,class:"button is-small is-white",onClick:t[1]||(t[1]=(...a)=>r.scroll_to_content&&r.scroll_to_content(...a))},[c("span",jC,[x(s,{name:"chevron-up",size:"16"})])])):(S(),D("a",{key:0,class:"button is-small is-white",onClick:t[0]||(t[0]=(...a)=>r.scroll_to_top&&r.scroll_to_top(...a))},[c("span",NC,[x(s,{name:"chevron-down",size:"16"})])]))])])):Q("",!0),c("div",{class:Ye({"fd-content-with-option":e.$slots.options})},[c("nav",VC,[c("div",BC,[c("div",UC,[c("div",null,[Ct(e.$slots,"heading-left")])])]),c("div",HC,[Ct(e.$slots,"heading-right")])]),Ct(e.$slots,"content"),c("div",qC,[Ct(e.$slots,"footer")])],2)])])])])}var ht=_e(TC,[["render",GC]]),an=typeof globalThis!="undefined"?globalThis:typeof window!="undefined"?window:typeof global!="undefined"?global:typeof self!="undefined"?self:{};function zv(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function Sv(e){if(e.__esModule)return e;var t=Object.defineProperty({},"__esModule",{value:!0});return Object.keys(e).forEach(function(n){var o=Object.getOwnPropertyDescriptor(e,n);Object.defineProperty(t,n,o.get?o:{enumerable:!0,get:function(){return e[n]}})}),t}var bf={exports:{}},$v=function(t,n){return function(){for(var i=new Array(arguments.length),r=0;r<i.length;r++)i[r]=arguments[r];return t.apply(n,i)}},WC=$v,gf=Object.prototype.toString,vf=function(e){return function(t){var n=gf.call(t);return e[n]||(e[n]=n.slice(8,-1).toLowerCase())}}(Object.create(null));function Ri(e){return e=e.toLowerCase(),function(n){return vf(n)===e}}function _f(e){return Array.isArray(e)}function Ol(e){return typeof e=="undefined"}function KC(e){return e!==null&&!Ol(e)&&e.constructor!==null&&!Ol(e.constructor)&&typeof e.constructor.isBuffer=="function"&&e.constructor.isBuffer(e)}var Ev=Ri("ArrayBuffer");function YC(e){var t;return typeof ArrayBuffer!="undefined"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&Ev(e.buffer),t}function ZC(e){return typeof e=="string"}function JC(e){return typeof e=="number"}function Av(e){return e!==null&&typeof e=="object"}function al(e){if(vf(e)!=="object")return!1;var t=Object.getPrototypeOf(e);return t===null||t===Object.prototype}var XC=Ri("Date"),QC=Ri("File"),e3=Ri("Blob"),t3=Ri("FileList");function yf(e){return gf.call(e)==="[object Function]"}function n3(e){return Av(e)&&yf(e.pipe)}function o3(e){var t="[object FormData]";return e&&(typeof FormData=="function"&&e instanceof FormData||gf.call(e)===t||yf(e.toString)&&e.toString()===t)}var i3=Ri("URLSearchParams");function r3(e){return e.trim?e.trim():e.replace(/^\s+|\s+$/g,"")}function s3(){return typeof navigator!="undefined"&&(navigator.product==="ReactNative"||navigator.product==="NativeScript"||navigator.product==="NS")?!1:typeof window!="undefined"&&typeof document!="undefined"}function wf(e,t){if(!(e===null||typeof e=="undefined"))if(typeof e!="object"&&(e=[e]),_f(e))for(var n=0,o=e.length;n<o;n++)t.call(null,e[n],n,e);else for(var i in e)Object.prototype.hasOwnProperty.call(e,i)&&t.call(null,e[i],i,e)}function nd(){var e={};function t(i,r){al(e[r])&&al(i)?e[r]=nd(e[r],i):al(i)?e[r]=nd({},i):_f(i)?e[r]=i.slice():e[r]=i}for(var n=0,o=arguments.length;n<o;n++)wf(arguments[n],t);return e}function a3(e,t,n){return wf(t,function(i,r){n&&typeof i=="function"?e[r]=WC(i,n):e[r]=i}),e}function l3(e){return e.charCodeAt(0)===65279&&(e=e.slice(1)),e}function c3(e,t,n,o){e.prototype=Object.create(t.prototype,o),e.prototype.constructor=e,n&&Object.assign(e.prototype,n)}function u3(e,t,n){var o,i,r,s={};t=t||{};do{for(o=Object.getOwnPropertyNames(e),i=o.length;i-- >0;)r=o[i],s[r]||(t[r]=e[r],s[r]=!0);e=Object.getPrototypeOf(e)}while(e&&(!n||n(e,t))&&e!==Object.prototype);return t}function d3(e,t,n){e=String(e),(n===void 0||n>e.length)&&(n=e.length),n-=t.length;var o=e.indexOf(t,n);return o!==-1&&o===n}function f3(e){if(!e)return null;var t=e.length;if(Ol(t))return null;for(var n=new Array(t);t-- >0;)n[t]=e[t];return n}var m3=function(e){return function(t){return e&&t instanceof e}}(typeof Uint8Array!="undefined"&&Object.getPrototypeOf(Uint8Array)),tn={isArray:_f,isArrayBuffer:Ev,isBuffer:KC,isFormData:o3,isArrayBufferView:YC,isString:ZC,isNumber:JC,isObject:Av,isPlainObject:al,isUndefined:Ol,isDate:XC,isFile:QC,isBlob:e3,isFunction:yf,isStream:n3,isURLSearchParams:i3,isStandardBrowserEnv:s3,forEach:wf,merge:nd,extend:a3,trim:r3,stripBOM:l3,inherits:c3,toFlatObject:u3,kindOf:vf,kindOfTest:Ri,endsWith:d3,toArray:f3,isTypedArray:m3,isFileList:t3},qi=tn;function Mh(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}var Ov=function(t,n,o){if(!n)return t;var i;if(o)i=o(n);else if(qi.isURLSearchParams(n))i=n.toString();else{var r=[];qi.forEach(n,function(l,u){l===null||typeof l=="undefined"||(qi.isArray(l)?u=u+"[]":l=[l],qi.forEach(l,function(m){qi.isDate(m)?m=m.toISOString():qi.isObject(m)&&(m=JSON.stringify(m)),r.push(Mh(u)+"="+Mh(m))}))}),i=r.join("&")}if(i){var s=t.indexOf("#");s!==-1&&(t=t.slice(0,s)),t+=(t.indexOf("?")===-1?"?":"&")+i}return t},h3=tn;function mc(){this.handlers=[]}mc.prototype.use=function(t,n,o){return this.handlers.push({fulfilled:t,rejected:n,synchronous:o?o.synchronous:!1,runWhen:o?o.runWhen:null}),this.handlers.length-1};mc.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)};mc.prototype.forEach=function(t){h3.forEach(this.handlers,function(o){o!==null&&t(o)})};var p3=mc,b3=tn,g3=function(t,n){b3.forEach(t,function(i,r){r!==n&&r.toUpperCase()===n.toUpperCase()&&(t[n]=i,delete t[r])})},Tv=tn;function xr(e,t,n,o,i){Error.call(this),this.message=e,this.name="AxiosError",t&&(this.code=t),n&&(this.config=n),o&&(this.request=o),i&&(this.response=i)}Tv.inherits(xr,Error,{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}}});var Pv=xr.prototype,Dv={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED"].forEach(function(e){Dv[e]={value:e}});Object.defineProperties(xr,Dv);Object.defineProperty(Pv,"isAxiosError",{value:!0});xr.from=function(e,t,n,o,i,r){var s=Object.create(Pv);return Tv.toFlatObject(e,s,function(l){return l!==Error.prototype}),xr.call(s,e.message,t,n,o,i),s.name=e.name,r&&Object.assign(s,r),s};var Or=xr,Fv={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Zn=tn;function v3(e,t){t=t||new FormData;var n=[];function o(r){return r===null?"":Zn.isDate(r)?r.toISOString():Zn.isArrayBuffer(r)||Zn.isTypedArray(r)?typeof Blob=="function"?new Blob([r]):Buffer.from(r):r}function i(r,s){if(Zn.isPlainObject(r)||Zn.isArray(r)){if(n.indexOf(r)!==-1)throw Error("Circular reference detected in "+s);n.push(r),Zn.forEach(r,function(l,u){if(!Zn.isUndefined(l)){var d=s?s+"."+u:u,m;if(l&&!s&&typeof l=="object"){if(Zn.endsWith(u,"{}"))l=JSON.stringify(l);else if(Zn.endsWith(u,"[]")&&(m=Zn.toArray(l))){m.forEach(function(f){!Zn.isUndefined(f)&&t.append(d,o(f))});return}}i(l,d)}}),n.pop()}else t.append(s,o(r))}return i(e),t}var Iv=v3,Jc=Or,_3=function(t,n,o){var i=o.config.validateStatus;!o.status||!i||i(o.status)?t(o):n(new Jc("Request failed with status code "+o.status,[Jc.ERR_BAD_REQUEST,Jc.ERR_BAD_RESPONSE][Math.floor(o.status/100)-4],o.config,o.request,o))},ba=tn,y3=ba.isStandardBrowserEnv()?function(){return{write:function(n,o,i,r,s,a){var l=[];l.push(n+"="+encodeURIComponent(o)),ba.isNumber(i)&&l.push("expires="+new Date(i).toGMTString()),ba.isString(r)&&l.push("path="+r),ba.isString(s)&&l.push("domain="+s),a===!0&&l.push("secure"),document.cookie=l.join("; ")},read:function(n){var o=document.cookie.match(new RegExp("(^|;\\s*)("+n+")=([^;]*)"));return o?decodeURIComponent(o[3]):null},remove:function(n){this.write(n,"",Date.now()-864e5)}}}():function(){return{write:function(){},read:function(){return null},remove:function(){}}}(),w3=function(t){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(t)},x3=function(t,n){return n?t.replace(/\/+$/,"")+"/"+n.replace(/^\/+/,""):t},k3=w3,C3=x3,Mv=function(t,n){return t&&!k3(n)?C3(t,n):n},Xc=tn,z3=["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"],S3=function(t){var n={},o,i,r;return t&&Xc.forEach(t.split(`
`),function(a){if(r=a.indexOf(":"),o=Xc.trim(a.substr(0,r)).toLowerCase(),i=Xc.trim(a.substr(r+1)),o){if(n[o]&&z3.indexOf(o)>=0)return;o==="set-cookie"?n[o]=(n[o]?n[o]:[]).concat([i]):n[o]=n[o]?n[o]+", "+i:i}}),n},Lh=tn,$3=Lh.isStandardBrowserEnv()?function(){var t=/(msie|trident)/i.test(navigator.userAgent),n=document.createElement("a"),o;function i(r){var s=r;return t&&(n.setAttribute("href",s),s=n.href),n.setAttribute("href",s),{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 o=i(window.location.href),function(s){var a=Lh.isString(s)?i(s):s;return a.protocol===o.protocol&&a.host===o.host}}():function(){return function(){return!0}}(),od=Or,E3=tn;function Lv(e){od.call(this,e==null?"canceled":e,od.ERR_CANCELED),this.name="CanceledError"}E3.inherits(Lv,od,{__CANCEL__:!0});var hc=Lv,A3=function(t){var n=/^([-+\w]{1,25})(:?\/\/|:)/.exec(t);return n&&n[1]||""},Vr=tn,O3=_3,T3=y3,P3=Ov,D3=Mv,F3=S3,I3=$3,M3=Fv,ko=Or,L3=hc,R3=A3,Rh=function(t){return new Promise(function(o,i){var r=t.data,s=t.headers,a=t.responseType,l;function u(){t.cancelToken&&t.cancelToken.unsubscribe(l),t.signal&&t.signal.removeEventListener("abort",l)}Vr.isFormData(r)&&Vr.isStandardBrowserEnv()&&delete s["Content-Type"];var d=new XMLHttpRequest;if(t.auth){var m=t.auth.username||"",f=t.auth.password?unescape(encodeURIComponent(t.auth.password)):"";s.Authorization="Basic "+btoa(m+":"+f)}var h=D3(t.baseURL,t.url);d.open(t.method.toUpperCase(),P3(h,t.params,t.paramsSerializer),!0),d.timeout=t.timeout;function p(){if(!!d){var y="getAllResponseHeaders"in d?F3(d.getAllResponseHeaders()):null,w=!a||a==="text"||a==="json"?d.responseText:d.response,C={data:w,status:d.status,statusText:d.statusText,headers:y,config:t,request:d};O3(function($){o($),u()},function($){i($),u()},C),d=null}}if("onloadend"in d?d.onloadend=p:d.onreadystatechange=function(){!d||d.readyState!==4||d.status===0&&!(d.responseURL&&d.responseURL.indexOf("file:")===0)||setTimeout(p)},d.onabort=function(){!d||(i(new ko("Request aborted",ko.ECONNABORTED,t,d)),d=null)},d.onerror=function(){i(new ko("Network Error",ko.ERR_NETWORK,t,d,d)),d=null},d.ontimeout=function(){var w=t.timeout?"timeout of "+t.timeout+"ms exceeded":"timeout exceeded",C=t.transitional||M3;t.timeoutErrorMessage&&(w=t.timeoutErrorMessage),i(new ko(w,C.clarifyTimeoutError?ko.ETIMEDOUT:ko.ECONNABORTED,t,d)),d=null},Vr.isStandardBrowserEnv()){var b=(t.withCredentials||I3(h))&&t.xsrfCookieName?T3.read(t.xsrfCookieName):void 0;b&&(s[t.xsrfHeaderName]=b)}"setRequestHeader"in d&&Vr.forEach(s,function(w,C){typeof r=="undefined"&&C.toLowerCase()==="content-type"?delete s[C]:d.setRequestHeader(C,w)}),Vr.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(y){!d||(i(!y||y&&y.type?new L3:y),d.abort(),d=null)},t.cancelToken&&t.cancelToken.subscribe(l),t.signal&&(t.signal.aborted?l():t.signal.addEventListener("abort",l))),r||(r=null);var g=R3(h);if(g&&["http","https","file"].indexOf(g)===-1){i(new ko("Unsupported protocol "+g+":",ko.ERR_BAD_REQUEST,t));return}d.send(r)})},N3=null,Jt=tn,Nh=g3,jh=Or,j3=Fv,V3=Iv,B3={"Content-Type":"application/x-www-form-urlencoded"};function Vh(e,t){!Jt.isUndefined(e)&&Jt.isUndefined(e["Content-Type"])&&(e["Content-Type"]=t)}function U3(){var e;return(typeof XMLHttpRequest!="undefined"||typeof process!="undefined"&&Object.prototype.toString.call(process)==="[object process]")&&(e=Rh),e}function H3(e,t,n){if(Jt.isString(e))try{return(t||JSON.parse)(e),Jt.trim(e)}catch(o){if(o.name!=="SyntaxError")throw o}return(n||JSON.stringify)(e)}var pc={transitional:j3,adapter:U3(),transformRequest:[function(t,n){if(Nh(n,"Accept"),Nh(n,"Content-Type"),Jt.isFormData(t)||Jt.isArrayBuffer(t)||Jt.isBuffer(t)||Jt.isStream(t)||Jt.isFile(t)||Jt.isBlob(t))return t;if(Jt.isArrayBufferView(t))return t.buffer;if(Jt.isURLSearchParams(t))return Vh(n,"application/x-www-form-urlencoded;charset=utf-8"),t.toString();var o=Jt.isObject(t),i=n&&n["Content-Type"],r;if((r=Jt.isFileList(t))||o&&i==="multipart/form-data"){var s=this.env&&this.env.FormData;return V3(r?{"files[]":t}:t,s&&new s)}else if(o||i==="application/json")return Vh(n,"application/json"),H3(t);return t}],transformResponse:[function(t){var n=this.transitional||pc.transitional,o=n&&n.silentJSONParsing,i=n&&n.forcedJSONParsing,r=!o&&this.responseType==="json";if(r||i&&Jt.isString(t)&&t.length)try{return JSON.parse(t)}catch(s){if(r)throw s.name==="SyntaxError"?jh.from(s,jh.ERR_BAD_RESPONSE,this,null,this.response):s}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:N3},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};Jt.forEach(["delete","get","head"],function(t){pc.headers[t]={}});Jt.forEach(["post","put","patch"],function(t){pc.headers[t]=Jt.merge(B3)});var xf=pc,q3=tn,G3=xf,W3=function(t,n,o){var i=this||G3;return q3.forEach(o,function(s){t=s.call(i,t,n)}),t},Rv=function(t){return!!(t&&t.__CANCEL__)},Bh=tn,Qc=W3,K3=Rv,Y3=xf,Z3=hc;function eu(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new Z3}var J3=function(t){eu(t),t.headers=t.headers||{},t.data=Qc.call(t,t.data,t.headers,t.transformRequest),t.headers=Bh.merge(t.headers.common||{},t.headers[t.method]||{},t.headers),Bh.forEach(["delete","get","head","post","put","patch","common"],function(i){delete t.headers[i]});var n=t.adapter||Y3.adapter;return n(t).then(function(i){return eu(t),i.data=Qc.call(t,i.data,i.headers,t.transformResponse),i},function(i){return K3(i)||(eu(t),i&&i.response&&(i.response.data=Qc.call(t,i.response.data,i.response.headers,t.transformResponse))),Promise.reject(i)})},En=tn,Nv=function(t,n){n=n||{};var o={};function i(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 r(d){if(En.isUndefined(n[d])){if(!En.isUndefined(t[d]))return i(void 0,t[d])}else return i(t[d],n[d])}function s(d){if(!En.isUndefined(n[d]))return i(void 0,n[d])}function a(d){if(En.isUndefined(n[d])){if(!En.isUndefined(t[d]))return i(void 0,t[d])}else return i(void 0,n[d])}function l(d){if(d in n)return i(t[d],n[d]);if(d in t)return i(void 0,t[d])}var u={url:s,method:s,data:s,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,beforeRedirect: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]||r,h=f(m);En.isUndefined(h)&&f!==l||(o[m]=h)}),o},jv={version:"0.27.2"},X3=jv.version,Wo=Or,kf={};["object","boolean","number","function","string","symbol"].forEach(function(e,t){kf[e]=function(o){return typeof o===e||"a"+(t<1?"n ":" ")+e}});var Uh={};kf.transitional=function(t,n,o){function i(r,s){return"[Axios v"+X3+"] Transitional option '"+r+"'"+s+(o?". "+o:"")}return function(r,s,a){if(t===!1)throw new Wo(i(s," has been removed"+(n?" in "+n:"")),Wo.ERR_DEPRECATED);return n&&!Uh[s]&&(Uh[s]=!0,console.warn(i(s," has been deprecated since v"+n+" and will be removed in the near future"))),t?t(r,s,a):!0}};function Q3(e,t,n){if(typeof e!="object")throw new Wo("options must be an object",Wo.ERR_BAD_OPTION_VALUE);for(var o=Object.keys(e),i=o.length;i-- >0;){var r=o[i],s=t[r];if(s){var a=e[r],l=a===void 0||s(a,r,e);if(l!==!0)throw new Wo("option "+r+" must be "+l,Wo.ERR_BAD_OPTION_VALUE);continue}if(n!==!0)throw new Wo("Unknown option "+r,Wo.ERR_BAD_OPTION)}}var e5={assertOptions:Q3,validators:kf},Vv=tn,t5=Ov,Hh=p3,qh=J3,bc=Nv,n5=Mv,Bv=e5,Gi=Bv.validators;function kr(e){this.defaults=e,this.interceptors={request:new Hh,response:new Hh}}kr.prototype.request=function(t,n){typeof t=="string"?(n=n||{},n.url=t):n=t||{},n=bc(this.defaults,n),n.method?n.method=n.method.toLowerCase():this.defaults.method?n.method=this.defaults.method.toLowerCase():n.method="get";var o=n.transitional;o!==void 0&&Bv.assertOptions(o,{silentJSONParsing:Gi.transitional(Gi.boolean),forcedJSONParsing:Gi.transitional(Gi.boolean),clarifyTimeoutError:Gi.transitional(Gi.boolean)},!1);var i=[],r=!0;this.interceptors.request.forEach(function(h){typeof h.runWhen=="function"&&h.runWhen(n)===!1||(r=r&&h.synchronous,i.unshift(h.fulfilled,h.rejected))});var s=[];this.interceptors.response.forEach(function(h){s.push(h.fulfilled,h.rejected)});var a;if(!r){var l=[qh,void 0];for(Array.prototype.unshift.apply(l,i),l=l.concat(s),a=Promise.resolve(n);l.length;)a=a.then(l.shift(),l.shift());return a}for(var u=n;i.length;){var d=i.shift(),m=i.shift();try{u=d(u)}catch(f){m(f);break}}try{a=qh(u)}catch(f){return Promise.reject(f)}for(;s.length;)a=a.then(s.shift(),s.shift());return a};kr.prototype.getUri=function(t){t=bc(this.defaults,t);var n=n5(t.baseURL,t.url);return t5(n,t.params,t.paramsSerializer)};Vv.forEach(["delete","get","head","options"],function(t){kr.prototype[t]=function(n,o){return this.request(bc(o||{},{method:t,url:n,data:(o||{}).data}))}});Vv.forEach(["post","put","patch"],function(t){function n(o){return function(r,s,a){return this.request(bc(a||{},{method:t,headers:o?{"Content-Type":"multipart/form-data"}:{},url:r,data:s}))}}kr.prototype[t]=n(),kr.prototype[t+"Form"]=n(!0)});var o5=kr,i5=hc;function Cr(e){if(typeof e!="function")throw new TypeError("executor must be a function.");var t;this.promise=new Promise(function(i){t=i});var n=this;this.promise.then(function(o){if(!!n._listeners){var i,r=n._listeners.length;for(i=0;i<r;i++)n._listeners[i](o);n._listeners=null}}),this.promise.then=function(o){var i,r=new Promise(function(s){n.subscribe(s),i=s}).then(o);return r.cancel=function(){n.unsubscribe(i)},r},e(function(i){n.reason||(n.reason=new i5(i),t(n.reason))})}Cr.prototype.throwIfRequested=function(){if(this.reason)throw this.reason};Cr.prototype.subscribe=function(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]};Cr.prototype.unsubscribe=function(t){if(!!this._listeners){var n=this._listeners.indexOf(t);n!==-1&&this._listeners.splice(n,1)}};Cr.source=function(){var t,n=new Cr(function(i){t=i});return{token:n,cancel:t}};var r5=Cr,s5=function(t){return function(o){return t.apply(null,o)}},a5=tn,l5=function(t){return a5.isObject(t)&&t.isAxiosError===!0},Gh=tn,c5=$v,ll=o5,u5=Nv,d5=xf;function Uv(e){var t=new ll(e),n=c5(ll.prototype.request,t);return Gh.extend(n,ll.prototype,t),Gh.extend(n,t),n.create=function(i){return Uv(u5(e,i))},n}var Sn=Uv(d5);Sn.Axios=ll;Sn.CanceledError=hc;Sn.CancelToken=r5;Sn.isCancel=Rv;Sn.VERSION=jv.version;Sn.toFormData=Iv;Sn.AxiosError=Or;Sn.Cancel=Sn.CanceledError;Sn.all=function(t){return Promise.all(t)};Sn.spread=s5;Sn.isAxiosError=l5;bf.exports=Sn;bf.exports.default=Sn;var Oe=bf.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 Y={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 o={};return o.uris=e,o.shuffle=t?"true":"false",o.clear="true",o.playback="start",o.playback_from_position=n,Oe.post("./api/queue/items/add",void 0,{params:o})},player_play_expression(e,t,n=void 0){const o={};return o.expression=e,o.shuffle=t?"true":"false",o.clear="true",o.playback="start",o.playback_from_position=n,Oe.post("./api/queue/items/add",void 0,{params:o})},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 f5={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(){Y.player_play({item_id:this.item.id})}}},m5={key:0,class:"media"},h5={key:0,class:"media-left"},p5={class:"icon has-text-grey fd-is-movable handle"},b5=["textContent"],g5=["textContent"],v5=["textContent"],_5={class:"media-right"};function y5(e,t,n,o,i,r){const s=P("mdicon");return r.is_next||!n.show_only_next_items?(S(),D("div",m5,[n.edit_mode?(S(),D("div",h5,[c("span",p5,[x(s,{name:"drag-horizontal",size:"16"})])])):Q("",!0),c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...a)=>r.play&&r.play(...a))},[c("h1",{class:Ye(["title is-6",{"has-text-primary":n.item.id===r.state.item_id,"has-text-grey-light":!r.is_next}]),textContent:_(n.item.title)},null,10,b5),c("h2",{class:Ye(["subtitle is-7",{"has-text-primary":n.item.id===r.state.item_id,"has-text-grey-light":!r.is_next,"has-text-grey":r.is_next&&n.item.id!==r.state.item_id}])},[c("b",{textContent:_(n.item.artist)},null,8,g5)],2),c("h2",{class:Ye(["subtitle is-7",{"has-text-primary":n.item.id===r.state.item_id,"has-text-grey-light":!r.is_next,"has-text-grey":r.is_next&&n.item.id!==r.state.item_id}]),textContent:_(n.item.album)},null,10,v5)]),c("div",_5,[Ct(e.$slots,"actions")])])):Q("",!0)}var w5=_e(f5,[["render",y5]]),Hv={exports:{}};(function(e){var t=function(){var n="https://api.spotify.com/v1",o=null,i=null,r=function(f,h){return f.abort=h,f},s=function(f,h){var p;if(i!==null){var b=i.defer();f(function(g){b.resolve(g)},function(g){b.reject(g)}),p=b.promise}else window.Promise&&(p=new window.Promise(f));return p?new r(p,h):null},a=function(){var f=Array.prototype.slice.call(arguments),h=f[0],p=f.slice(1);return h=h||{},p.forEach(function(b){for(var g in b)b.hasOwnProperty(g)&&(h[g]=b[g])}),h},l=function(f,h){var p="";for(var b in h)if(h.hasOwnProperty(b)){var g=h[b];p+=encodeURIComponent(b)+"="+encodeURIComponent(g)+"&"}return p.length>0&&(p=p.substring(0,p.length-1),f=f+"?"+p),f},u=function(f,h){var p=new XMLHttpRequest,b=function(g,y){function w(O){g&&g(O),h&&h(null,O)}function C(){y&&y(p),h&&h(p,null)}var k=f.type||"GET";if(p.open(k,l(f.url,f.params)),o&&p.setRequestHeader("Authorization","Bearer "+o),p.onreadystatechange=function(){if(p.readyState===4){var O=null;try{O=p.responseText?JSON.parse(p.responseText):""}catch(j){console.error(j)}p.status>=200&&p.status<300?w(O):C()}},k==="GET")p.send(null);else{var $=null;f.postData&&(f.contentType==="image/jpeg"?($=f.postData,p.setRequestHeader("Content-Type",f.contentType)):($=JSON.stringify(f.postData),p.setRequestHeader("Content-Type","application/json"))),p.send($)}};return h?(b(),null):s(b,function(){p.abort()})},d=function(f,h,p,b){var g={},y=null;typeof h=="object"?(g=h,y=p):typeof h=="function"&&(y=h);var w=f.type||"GET";return w!=="GET"&&f.postData&&!b?f.postData=a(f.postData,g):f.params=a(f.params,g),u(f,y)},m=function(){};return m.prototype={constructor:t},m.prototype.getGeneric=function(f,h){var p={url:f};return d(p,h)},m.prototype.getMe=function(f,h){var p={url:n+"/me"};return d(p,f,h)},m.prototype.getMySavedTracks=function(f,h){var p={url:n+"/me/tracks"};return d(p,f,h)},m.prototype.addToMySavedTracks=function(f,h,p){var b={url:n+"/me/tracks",type:"PUT",postData:f};return d(b,h,p)},m.prototype.removeFromMySavedTracks=function(f,h,p){var b={url:n+"/me/tracks",type:"DELETE",postData:f};return d(b,h,p)},m.prototype.containsMySavedTracks=function(f,h,p){var b={url:n+"/me/tracks/contains",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getMySavedAlbums=function(f,h){var p={url:n+"/me/albums"};return d(p,f,h)},m.prototype.addToMySavedAlbums=function(f,h,p){var b={url:n+"/me/albums",type:"PUT",postData:f};return d(b,h,p)},m.prototype.removeFromMySavedAlbums=function(f,h,p){var b={url:n+"/me/albums",type:"DELETE",postData:f};return d(b,h,p)},m.prototype.containsMySavedAlbums=function(f,h,p){var b={url:n+"/me/albums/contains",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getMyTopArtists=function(f,h){var p={url:n+"/me/top/artists"};return d(p,f,h)},m.prototype.getMyTopTracks=function(f,h){var p={url:n+"/me/top/tracks"};return d(p,f,h)},m.prototype.getMyRecentlyPlayedTracks=function(f,h){var p={url:n+"/me/player/recently-played"};return d(p,f,h)},m.prototype.followUsers=function(f,h){var p={url:n+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"user"}};return d(p,h)},m.prototype.followArtists=function(f,h){var p={url:n+"/me/following/",type:"PUT",params:{ids:f.join(","),type:"artist"}};return d(p,h)},m.prototype.followPlaylist=function(f,h,p){var b={url:n+"/playlists/"+f+"/followers",type:"PUT",postData:{}};return d(b,h,p)},m.prototype.unfollowUsers=function(f,h){var p={url:n+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"user"}};return d(p,h)},m.prototype.unfollowArtists=function(f,h){var p={url:n+"/me/following/",type:"DELETE",params:{ids:f.join(","),type:"artist"}};return d(p,h)},m.prototype.unfollowPlaylist=function(f,h){var p={url:n+"/playlists/"+f+"/followers",type:"DELETE"};return d(p,h)},m.prototype.isFollowingUsers=function(f,h){var p={url:n+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"user"}};return d(p,h)},m.prototype.isFollowingArtists=function(f,h){var p={url:n+"/me/following/contains",type:"GET",params:{ids:f.join(","),type:"artist"}};return d(p,h)},m.prototype.areFollowingPlaylist=function(f,h,p){var b={url:n+"/playlists/"+f+"/followers/contains",type:"GET",params:{ids:h.join(",")}};return d(b,p)},m.prototype.getFollowedArtists=function(f,h){var p={url:n+"/me/following",type:"GET",params:{type:"artist"}};return d(p,f,h)},m.prototype.getUser=function(f,h,p){var b={url:n+"/users/"+encodeURIComponent(f)};return d(b,h,p)},m.prototype.getUserPlaylists=function(f,h,p){var b;return typeof f=="string"?b={url:n+"/users/"+encodeURIComponent(f)+"/playlists"}:(b={url:n+"/me/playlists"},p=h,h=f),d(b,h,p)},m.prototype.getPlaylist=function(f,h,p){var b={url:n+"/playlists/"+f};return d(b,h,p)},m.prototype.getPlaylistTracks=function(f,h,p){var b={url:n+"/playlists/"+f+"/tracks"};return d(b,h,p)},m.prototype.getPlaylistCoverImage=function(f,h){var p={url:n+"/playlists/"+f+"/images"};return d(p,h)},m.prototype.createPlaylist=function(f,h,p){var b={url:n+"/users/"+encodeURIComponent(f)+"/playlists",type:"POST",postData:h};return d(b,h,p)},m.prototype.changePlaylistDetails=function(f,h,p){var b={url:n+"/playlists/"+f,type:"PUT",postData:h};return d(b,h,p)},m.prototype.addTracksToPlaylist=function(f,h,p,b){var g={url:n+"/playlists/"+f+"/tracks",type:"POST",postData:{uris:h}};return d(g,p,b,!0)},m.prototype.replaceTracksInPlaylist=function(f,h,p){var b={url:n+"/playlists/"+f+"/tracks",type:"PUT",postData:{uris:h}};return d(b,{},p)},m.prototype.reorderTracksInPlaylist=function(f,h,p,b,g){var y={url:n+"/playlists/"+f+"/tracks",type:"PUT",postData:{range_start:h,insert_before:p}};return d(y,b,g)},m.prototype.removeTracksFromPlaylist=function(f,h,p){var b=h.map(function(y){return typeof y=="string"?{uri:y}:y}),g={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:b}};return d(g,{},p)},m.prototype.removeTracksFromPlaylistWithSnapshotId=function(f,h,p,b){var g=h.map(function(w){return typeof w=="string"?{uri:w}:w}),y={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{tracks:g,snapshot_id:p}};return d(y,{},b)},m.prototype.removeTracksFromPlaylistInPositions=function(f,h,p,b){var g={url:n+"/playlists/"+f+"/tracks",type:"DELETE",postData:{positions:h,snapshot_id:p}};return d(g,{},b)},m.prototype.uploadCustomPlaylistCoverImage=function(f,h,p){var b={url:n+"/playlists/"+f+"/images",type:"PUT",postData:h.replace(/^data:image\/jpeg;base64,/,""),contentType:"image/jpeg"};return d(b,{},p)},m.prototype.getAlbum=function(f,h,p){var b={url:n+"/albums/"+f};return d(b,h,p)},m.prototype.getAlbumTracks=function(f,h,p){var b={url:n+"/albums/"+f+"/tracks"};return d(b,h,p)},m.prototype.getAlbums=function(f,h,p){var b={url:n+"/albums/",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getTrack=function(f,h,p){var b={};return b.url=n+"/tracks/"+f,d(b,h,p)},m.prototype.getTracks=function(f,h,p){var b={url:n+"/tracks/",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getArtist=function(f,h,p){var b={url:n+"/artists/"+f};return d(b,h,p)},m.prototype.getArtists=function(f,h,p){var b={url:n+"/artists/",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getArtistAlbums=function(f,h,p){var b={url:n+"/artists/"+f+"/albums"};return d(b,h,p)},m.prototype.getArtistTopTracks=function(f,h,p,b){var g={url:n+"/artists/"+f+"/top-tracks",params:{country:h}};return d(g,p,b)},m.prototype.getArtistRelatedArtists=function(f,h,p){var b={url:n+"/artists/"+f+"/related-artists"};return d(b,h,p)},m.prototype.getFeaturedPlaylists=function(f,h){var p={url:n+"/browse/featured-playlists"};return d(p,f,h)},m.prototype.getNewReleases=function(f,h){var p={url:n+"/browse/new-releases"};return d(p,f,h)},m.prototype.getCategories=function(f,h){var p={url:n+"/browse/categories"};return d(p,f,h)},m.prototype.getCategory=function(f,h,p){var b={url:n+"/browse/categories/"+f};return d(b,h,p)},m.prototype.getCategoryPlaylists=function(f,h,p){var b={url:n+"/browse/categories/"+f+"/playlists"};return d(b,h,p)},m.prototype.search=function(f,h,p,b){var g={url:n+"/search/",params:{q:f,type:h.join(",")}};return d(g,p,b)},m.prototype.searchAlbums=function(f,h,p){return this.search(f,["album"],h,p)},m.prototype.searchArtists=function(f,h,p){return this.search(f,["artist"],h,p)},m.prototype.searchTracks=function(f,h,p){return this.search(f,["track"],h,p)},m.prototype.searchPlaylists=function(f,h,p){return this.search(f,["playlist"],h,p)},m.prototype.searchShows=function(f,h,p){return this.search(f,["show"],h,p)},m.prototype.searchEpisodes=function(f,h,p){return this.search(f,["episode"],h,p)},m.prototype.getAudioFeaturesForTrack=function(f,h){var p={};return p.url=n+"/audio-features/"+f,d(p,{},h)},m.prototype.getAudioFeaturesForTracks=function(f,h){var p={url:n+"/audio-features",params:{ids:f}};return d(p,{},h)},m.prototype.getAudioAnalysisForTrack=function(f,h){var p={};return p.url=n+"/audio-analysis/"+f,d(p,{},h)},m.prototype.getRecommendations=function(f,h){var p={url:n+"/recommendations"};return d(p,f,h)},m.prototype.getAvailableGenreSeeds=function(f){var h={url:n+"/recommendations/available-genre-seeds"};return d(h,{},f)},m.prototype.getMyDevices=function(f){var h={url:n+"/me/player/devices"};return d(h,{},f)},m.prototype.getMyCurrentPlaybackState=function(f,h){var p={url:n+"/me/player"};return d(p,f,h)},m.prototype.getMyCurrentPlayingTrack=function(f,h){var p={url:n+"/me/player/currently-playing"};return d(p,f,h)},m.prototype.transferMyPlayback=function(f,h,p){var b=h||{};b.device_ids=f;var g={type:"PUT",url:n+"/me/player",postData:b};return d(g,h,p)},m.prototype.play=function(f,h){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,b={};["context_uri","uris","offset","position_ms"].forEach(function(w){w in f&&(b[w]=f[w])});var g={type:"PUT",url:n+"/me/player/play",params:p,postData:b},y=typeof f=="function"?f:{};return d(g,y,h)},m.prototype.queue=function(f,h,p){h=h||{};var b="device_id"in h?{uri:f,device_id:h.device_id}:{uri:f},g={type:"POST",url:n+"/me/player/queue",params:b};return d(g,h,p)},m.prototype.pause=function(f,h){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,b={type:"PUT",url:n+"/me/player/pause",params:p};return d(b,f,h)},m.prototype.skipToNext=function(f,h){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,b={type:"POST",url:n+"/me/player/next",params:p};return d(b,f,h)},m.prototype.skipToPrevious=function(f,h){f=f||{};var p="device_id"in f?{device_id:f.device_id}:null,b={type:"POST",url:n+"/me/player/previous",params:p};return d(b,f,h)},m.prototype.seek=function(f,h,p){h=h||{};var b={position_ms:f};"device_id"in h&&(b.device_id=h.device_id);var g={type:"PUT",url:n+"/me/player/seek",params:b};return d(g,h,p)},m.prototype.setRepeat=function(f,h,p){h=h||{};var b={state:f};"device_id"in h&&(b.device_id=h.device_id);var g={type:"PUT",url:n+"/me/player/repeat",params:b};return d(g,h,p)},m.prototype.setVolume=function(f,h,p){h=h||{};var b={volume_percent:f};"device_id"in h&&(b.device_id=h.device_id);var g={type:"PUT",url:n+"/me/player/volume",params:b};return d(g,h,p)},m.prototype.setShuffle=function(f,h,p){h=h||{};var b={state:f};"device_id"in h&&(b.device_id=h.device_id);var g={type:"PUT",url:n+"/me/player/shuffle",params:b};return d(g,h,p)},m.prototype.getShow=function(f,h,p){var b={};return b.url=n+"/shows/"+f,d(b,h,p)},m.prototype.getShows=function(f,h,p){var b={url:n+"/shows/",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getMySavedShows=function(f,h){var p={url:n+"/me/shows"};return d(p,f,h)},m.prototype.addToMySavedShows=function(f,h,p){var b={url:n+"/me/shows",type:"PUT",postData:f};return d(b,h,p)},m.prototype.removeFromMySavedShows=function(f,h,p){var b={url:n+"/me/shows",type:"DELETE",postData:f};return d(b,h,p)},m.prototype.containsMySavedShows=function(f,h,p){var b={url:n+"/me/shows/contains",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getShowEpisodes=function(f,h,p){var b={url:n+"/shows/"+f+"/episodes"};return d(b,h,p)},m.prototype.getEpisode=function(f,h,p){var b={};return b.url=n+"/episodes/"+f,d(b,h,p)},m.prototype.getEpisodes=function(f,h,p){var b={url:n+"/episodes/",params:{ids:f.join(",")}};return d(b,h,p)},m.prototype.getAccessToken=function(){return o},m.prototype.setAccessToken=function(f){o=f},m.prototype.setPromiseImplementation=function(f){var h=!1;try{var p=new f(function(b){b()});typeof p.then=="function"&&typeof p.catch=="function"&&(h=!0)}catch(b){console.error(b)}if(h)i=f;else throw new Error("Unsupported implementation of Promises/A+")},m}();e.exports=t})(Hv);var co=Hv.exports;const x5={name:"ModalDialogQueueItem",props:["show","item"],emits:["close"],data(){return{spotify_track:{}}},watch:{item(){if(this.item&&this.item.data_kind==="spotify"){const e=new co;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"),Y.queue_remove(this.item.id)},play:function(){this.$emit("close"),Y.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})}}},k5={key:0,class:"modal is-active"},C5={class:"modal-content fd-modal-card"},z5={class:"card"},S5={class:"card-content"},$5=["textContent"],E5=["textContent"],A5={class:"content is-small"},O5=["textContent"],T5=["textContent"],P5=["textContent"],D5={key:0},F5=["textContent"],I5=["textContent"],M5=["textContent"],L5={key:1},R5=["textContent"],N5=["textContent"],j5={key:2},V5=["textContent"],B5=["textContent"],U5={key:3},H5=["textContent"],q5=["textContent"],G5=["textContent"],W5=["textContent"],K5=["textContent"],Y5=["textContent"],Z5=["textContent"],J5=["textContent"],X5=["textContent"],Q5={class:"title is-6"},e6=["textContent"],t6={key:0,class:"has-text-weight-normal"},n6=_t(" ("),o6=["textContent"],i6=_t(", "),r6=["textContent"],s6=_t(") "),a6=["textContent"],l6={class:"title is-6"},c6=["textContent"],u6=["textContent"],d6=["textContent"],f6=["textContent"],m6={class:"card-footer"},h6={class:"icon"},p6=["textContent"],b6={class:"icon"},g6=["textContent"];function v6(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",k5,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",C5,[c("div",z5,[c("div",S5,[c("p",{class:"title is-4",textContent:_(n.item.title)},null,8,$5),c("p",{class:"subtitle",textContent:_(n.item.artist)},null,8,E5),c("div",A5,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.album"))},null,8,O5),n.item.album_id?(S(),D("a",{key:0,class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_album&&r.open_album(...a)),textContent:_(n.item.album)},null,8,T5)):(S(),D("span",{key:1,class:"title is-6",textContent:_(n.item.album)},null,8,P5))]),n.item.album_artist?(S(),D("p",D5,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.album-artist"))},null,8,F5),n.item.album_artist_id?(S(),D("a",{key:0,class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>r.open_album_artist&&r.open_album_artist(...a)),textContent:_(n.item.album_artist)},null,8,I5)):(S(),D("span",{key:1,class:"title is-6",textContent:_(n.item.album_artist)},null,8,M5))])):Q("",!0),n.item.composer?(S(),D("p",L5,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.composer"))},null,8,R5),c("span",{class:"title is-6",textContent:_(n.item.composer)},null,8,N5)])):Q("",!0),n.item.year>0?(S(),D("p",j5,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.year"))},null,8,V5),c("span",{class:"title is-6",textContent:_(n.item.year)},null,8,B5)])):Q("",!0),n.item.genre?(S(),D("p",U5,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.genre"))},null,8,H5),c("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>r.open_genre&&r.open_genre(...a)),textContent:_(n.item.genre)},null,8,q5)])):Q("",!0),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.position"))},null,8,G5),c("span",{class:"title is-6",textContent:_([n.item.disc_number,n.item.track_number].join(" / "))},null,8,W5)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.duration"))},null,8,K5),c("span",{class:"title is-6",textContent:_(e.$filters.durationInHours(n.item.length_ms))},null,8,Y5)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.path"))},null,8,Z5),c("span",{class:"title is-6",textContent:_(n.item.path)},null,8,J5)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.type"))},null,8,X5),c("span",Q5,[c("span",{textContent:_([n.item.media_kind,n.item.data_kind].join(" - "))},null,8,e6),n.item.data_kind==="spotify"?(S(),D("span",t6,[n6,c("a",{onClick:t[4]||(t[4]=(...a)=>r.open_spotify_artist&&r.open_spotify_artist(...a)),textContent:_(e.$t("dialog.queue-item.spotify-artist"))},null,8,o6),i6,c("a",{onClick:t[5]||(t[5]=(...a)=>r.open_spotify_album&&r.open_spotify_album(...a)),textContent:_(e.$t("dialog.queue-item.spotify-album"))},null,8,r6),s6])):Q("",!0)])]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.queue-item.quality"))},null,8,a6),c("span",l6,[c("span",{textContent:_(n.item.type)},null,8,c6),n.item.samplerate?(S(),D("span",{key:0,textContent:_(e.$t("dialog.queue-item.samplerate",{rate:n.item.samplerate}))},null,8,u6)):Q("",!0),n.item.channels?(S(),D("span",{key:1,textContent:_(e.$t("dialog.queue-item.channels",{channels:e.$filters.channels(n.item.channels)}))},null,8,d6)):Q("",!0),n.item.bitrate?(S(),D("span",{key:2,textContent:_(e.$t("dialog.queue-item.bitrate",{rate:n.item.bitrate}))},null,8,f6)):Q("",!0)])])])]),c("footer",m6,[c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>r.remove&&r.remove(...a))},[c("span",h6,[x(s,{name:"delete",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.queue-item.remove"))},null,8,p6)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>r.play&&r.play(...a))},[c("span",b6,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.queue-item.play"))},null,8,g6)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var qv=_e(x5,[["render",v6]]);const _6={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,Y.queue_add(this.url).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})},play:function(){this.loading=!0,Y.player_play_uri(this.url,!1).then(()=>{this.$emit("close"),this.url=""}).catch(()=>{this.loading=!1})}}},y6={key:0,class:"modal is-active"},w6={class:"modal-content fd-modal-card"},x6={class:"card"},k6={class:"card-content"},C6=["textContent"],z6={class:"field"},S6={class:"control is-expanded has-icons-left"},$6=["placeholder","disabled"],E6={class:"icon is-left"},A6={key:0,class:"card-footer"},O6={class:"card-footer-item has-text-dark"},T6={class:"icon"},P6=["textContent"],D6={key:1,class:"card-footer"},F6={class:"icon"},I6=["textContent"],M6={class:"icon"},L6=["textContent"],R6={class:"icon"},N6=["textContent"];function j6(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",y6,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",w6,[c("div",x6,[c("div",k6,[c("p",{class:"title is-4",textContent:_(e.$t("dialog.add.stream.title"))},null,8,C6),c("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=bt((...a)=>r.play&&r.play(...a),["prevent"]))},[c("div",z6,[c("p",S6,[zt(c("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>i.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.stream.placeholder"),disabled:i.loading},null,8,$6),[[zn,i.url]]),c("span",E6,[x(s,{name:"web",size:"16"})])])])],32)]),i.loading?(S(),D("footer",A6,[c("a",O6,[c("span",T6,[x(s,{name:"web",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.stream.loading"))},null,8,P6)])])):(S(),D("footer",D6,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[c("span",F6,[x(s,{name:"cancel",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.stream.cancel"))},null,8,I6)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.add_stream&&r.add_stream(...a))},[c("span",M6,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.stream.add"))},null,8,L6)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[5]||(t[5]=(...a)=>r.play&&r.play(...a))},[c("span",R6,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.stream.play"))},null,8,N6)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var V6=_e(_6,[["render",j6]]);const B6={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,Y.queue_save_playlist(this.playlist_name).then(()=>{this.$emit("close"),this.playlist_name=""}).catch(()=>{this.loading=!1}))}}},U6={key:0,class:"modal is-active"},H6={class:"modal-content fd-modal-card"},q6={class:"card"},G6={class:"card-content"},W6=["textContent"],K6={class:"field"},Y6={class:"control is-expanded has-icons-left"},Z6=["disabled"],J6={class:"icon is-left"},X6={key:0,class:"card-footer"},Q6={class:"card-footer-item has-text-dark"},e8={class:"icon"},t8=["textContent"],n8={key:1,class:"card-footer"},o8={class:"icon"},i8=["textContent"],r8={class:"icon"},s8=["textContent"];function a8(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",U6,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",H6,[c("div",q6,[c("div",G6,[c("p",{class:"title is-4",textContent:_(e.$t("dialog.playlist.save.title"))},null,8,W6),c("form",{class:"fd-has-margin-bottom",onSubmit:t[2]||(t[2]=bt((...a)=>r.save&&r.save(...a),["prevent"]))},[c("div",K6,[c("p",Y6,[zt(c("input",{ref:"playlist_name_field","onUpdate:modelValue":t[1]||(t[1]=a=>i.playlist_name=a),class:"input is-shadowless",type:"text",placeholder:"Playlist name",disabled:i.loading},null,8,Z6),[[zn,i.playlist_name]]),c("span",J6,[x(s,{name:"file-music",size:"16"})])])])],32)]),i.loading?(S(),D("footer",X6,[c("a",Q6,[c("span",e8,[x(s,{name:"web",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.playlist.save.saving"))},null,8,t8)])])):(S(),D("footer",n8,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[c("span",o8,[x(s,{name:"cancel",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.playlist.save.cancel"))},null,8,i8)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>r.save&&r.save(...a))},[c("span",r8,[x(s,{name:"content-save",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.playlist.save.save"))},null,8,s8)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var l8=_e(B6,[["render",a8]]),Gv={exports:{}},Cf=Sv(Kx);/**!
* Sortable 1.14.0
* @author RubaXa <trash@rubaxa.org>
* @author owenm <owen23355@gmail.com>
* @license MIT
*/function Wh(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function _o(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?Wh(Object(n),!0).forEach(function(o){c8(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wh(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function cl(e){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?cl=function(t){return typeof t}:cl=function(t){return t&&typeof Symbol=="function"&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},cl(e)}function c8(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Wn(){return Wn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},Wn.apply(this,arguments)}function u8(e,t){if(e==null)return{};var n={},o=Object.keys(e),i,r;for(r=0;r<o.length;r++)i=o[r],!(t.indexOf(i)>=0)&&(n[i]=e[i]);return n}function d8(e,t){if(e==null)return{};var n=u8(e,t),o,i;if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(i=0;i<r.length;i++)o=r[i],!(t.indexOf(o)>=0)&&(!Object.prototype.propertyIsEnumerable.call(e,o)||(n[o]=e[o]))}return n}function f8(e){return m8(e)||h8(e)||p8(e)||b8()}function m8(e){if(Array.isArray(e))return id(e)}function h8(e){if(typeof Symbol!="undefined"&&e[Symbol.iterator]!=null||e["@@iterator"]!=null)return Array.from(e)}function p8(e,t){if(!!e){if(typeof e=="string")return id(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 id(e,t)}}function id(e,t){(t==null||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function b8(){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 g8="1.14.0";function Eo(e){if(typeof window!="undefined"&&window.navigator)return!!navigator.userAgent.match(e)}var Fo=Eo(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),Gs=Eo(/Edge/i),Kh=Eo(/firefox/i),vs=Eo(/safari/i)&&!Eo(/chrome/i)&&!Eo(/android/i),Wv=Eo(/iP(ad|od|hone)/i),v8=Eo(/chrome/i)&&Eo(/android/i),Kv={capture:!1,passive:!1};function lt(e,t,n){e.addEventListener(t,n,!Fo&&Kv)}function rt(e,t,n){e.removeEventListener(t,n,!Fo&&Kv)}function Tl(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 _8(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function to(e,t,n,o){if(e){n=n||document;do{if(t!=null&&(t[0]===">"?e.parentNode===n&&Tl(e,t):Tl(e,t))||o&&e===n)return e;if(e===n)break}while(e=_8(e))}return null}var Yh=/\s+/g;function Et(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{var o=(" "+e.className+" ").replace(Yh," ").replace(" "+t+" "," ");e.className=(o+(n?" "+t:"")).replace(Yh," ")}}function Ve(e,t,n){var o=e&&e.style;if(o){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 o)&&t.indexOf("webkit")===-1&&(t="-webkit-"+t),o[t]=n+(typeof n=="string"?"":"px")}}function $i(e,t){var n="";if(typeof e=="string")n=e;else do{var o=Ve(e,"transform");o&&o!=="none"&&(n=o+" "+n)}while(!t&&(e=e.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Yv(e,t,n){if(e){var o=e.getElementsByTagName(t),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function go(){var e=document.scrollingElement;return e||document.documentElement}function $t(e,t,n,o,i){if(!(!e.getBoundingClientRect&&e!==window)){var r,s,a,l,u,d,m;if(e!==window&&e.parentNode&&e!==go()?(r=e.getBoundingClientRect(),s=r.top,a=r.left,l=r.bottom,u=r.right,d=r.height,m=r.width):(s=0,a=0,l=window.innerHeight,u=window.innerWidth,d=window.innerHeight,m=window.innerWidth),(t||n)&&e!==window&&(i=i||e.parentNode,!Fo))do if(i&&i.getBoundingClientRect&&(Ve(i,"transform")!=="none"||n&&Ve(i,"position")!=="static")){var f=i.getBoundingClientRect();s-=f.top+parseInt(Ve(i,"border-top-width")),a-=f.left+parseInt(Ve(i,"border-left-width")),l=s+r.height,u=a+r.width;break}while(i=i.parentNode);if(o&&e!==window){var h=$i(i||e),p=h&&h.a,b=h&&h.d;h&&(s/=b,a/=p,m/=p,d/=b,l=s+d,u=a+m)}return{top:s,left:a,bottom:l,right:u,width:m,height:d}}}function Zh(e,t,n){for(var o=Xo(e,!0),i=$t(e)[t];o;){var r=$t(o)[n],s=void 0;if(n==="top"||n==="left"?s=i>=r:s=i<=r,!s)return o;if(o===go())break;o=Xo(o,!1)}return!1}function zr(e,t,n,o){for(var i=0,r=0,s=e.children;r<s.length;){if(s[r].style.display!=="none"&&s[r]!==Xe.ghost&&(o||s[r]!==Xe.dragged)&&to(s[r],n.draggable,e,!1)){if(i===t)return s[r];i++}r++}return null}function zf(e,t){for(var n=e.lastElementChild;n&&(n===Xe.ghost||Ve(n,"display")==="none"||t&&!Tl(n,t));)n=n.previousElementSibling;return n||null}function Lt(e,t){var n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)e.nodeName.toUpperCase()!=="TEMPLATE"&&e!==Xe.clone&&(!t||Tl(e,t))&&n++;return n}function Jh(e){var t=0,n=0,o=go();if(e)do{var i=$i(e),r=i.a,s=i.d;t+=e.scrollLeft*r,n+=e.scrollTop*s}while(e!==o&&(e=e.parentNode));return[t,n]}function y8(e,t){for(var n in e)if(!!e.hasOwnProperty(n)){for(var o in t)if(t.hasOwnProperty(o)&&t[o]===e[n][o])return Number(n)}return-1}function Xo(e,t){if(!e||!e.getBoundingClientRect)return go();var n=e,o=!1;do if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Ve(n);if(n.clientWidth<n.scrollWidth&&(i.overflowX=="auto"||i.overflowX=="scroll")||n.clientHeight<n.scrollHeight&&(i.overflowY=="auto"||i.overflowY=="scroll")){if(!n.getBoundingClientRect||n===document.body)return go();if(o||t)return n;o=!0}}while(n=n.parentNode);return go()}function w8(e,t){if(e&&t)for(var n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function tu(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 _s;function Zv(e,t){return function(){if(!_s){var n=arguments,o=this;n.length===1?e.call(o,n[0]):e.apply(o,n),_s=setTimeout(function(){_s=void 0},t)}}}function x8(){clearTimeout(_s),_s=void 0}function Jv(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function Sf(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 Xh(e,t){Ve(e,"position","absolute"),Ve(e,"top",t.top),Ve(e,"left",t.left),Ve(e,"width",t.width),Ve(e,"height",t.height)}function nu(e){Ve(e,"position",""),Ve(e,"top",""),Ve(e,"left",""),Ve(e,"width",""),Ve(e,"height","")}var on="Sortable"+new Date().getTime();function k8(){var e=[],t;return{captureAnimationState:function(){if(e=[],!!this.options.animation){var o=[].slice.call(this.el.children);o.forEach(function(i){if(!(Ve(i,"display")==="none"||i===Xe.ghost)){e.push({target:i,rect:$t(i)});var r=_o({},e[e.length-1].rect);if(i.thisAnimationDuration){var s=$i(i,!0);s&&(r.top-=s.f,r.left-=s.e)}i.fromRect=r}})}},addAnimationState:function(o){e.push(o)},removeAnimationState:function(o){e.splice(y8(e,{target:o}),1)},animateAll:function(o){var i=this;if(!this.options.animation){clearTimeout(t),typeof o=="function"&&o();return}var r=!1,s=0;e.forEach(function(a){var l=0,u=a.target,d=u.fromRect,m=$t(u),f=u.prevFromRect,h=u.prevToRect,p=a.rect,b=$i(u,!0);b&&(m.top-=b.f,m.left-=b.e),u.toRect=m,u.thisAnimationDuration&&tu(f,m)&&!tu(d,m)&&(p.top-m.top)/(p.left-m.left)===(d.top-m.top)/(d.left-m.left)&&(l=z8(p,f,h,i.options)),tu(m,d)||(u.prevFromRect=d,u.prevToRect=m,l||(l=i.options.animation),i.animate(u,p,m,l)),l&&(r=!0,s=Math.max(s,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),r?t=setTimeout(function(){typeof o=="function"&&o()},s):typeof o=="function"&&o(),e=[]},animate:function(o,i,r,s){if(s){Ve(o,"transition",""),Ve(o,"transform","");var a=$i(this.el),l=a&&a.a,u=a&&a.d,d=(i.left-r.left)/(l||1),m=(i.top-r.top)/(u||1);o.animatingX=!!d,o.animatingY=!!m,Ve(o,"transform","translate3d("+d+"px,"+m+"px,0)"),this.forRepaintDummy=C8(o),Ve(o,"transition","transform "+s+"ms"+(this.options.easing?" "+this.options.easing:"")),Ve(o,"transform","translate3d(0,0,0)"),typeof o.animated=="number"&&clearTimeout(o.animated),o.animated=setTimeout(function(){Ve(o,"transition",""),Ve(o,"transform",""),o.animated=!1,o.animatingX=!1,o.animatingY=!1},s)}}}}function C8(e){return e.offsetWidth}function z8(e,t,n,o){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))*o.animation}var Wi=[],ou={initializeByDefault:!0},Ws={mount:function(t){for(var n in ou)ou.hasOwnProperty(n)&&!(n in t)&&(t[n]=ou[n]);Wi.forEach(function(o){if(o.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),Wi.push(t)},pluginEvent:function(t,n,o){var i=this;this.eventCanceled=!1,o.cancel=function(){i.eventCanceled=!0};var r=t+"Global";Wi.forEach(function(s){!n[s.pluginName]||(n[s.pluginName][r]&&n[s.pluginName][r](_o({sortable:n},o)),n.options[s.pluginName]&&n[s.pluginName][t]&&n[s.pluginName][t](_o({sortable:n},o)))})},initializePlugins:function(t,n,o,i){Wi.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,Wn(o,u.defaults)}});for(var r in t.options)if(!!t.options.hasOwnProperty(r)){var s=this.modifyOption(t,r,t.options[r]);typeof s!="undefined"&&(t.options[r]=s)}},getEventProperties:function(t,n){var o={};return Wi.forEach(function(i){typeof i.eventProperties=="function"&&Wn(o,i.eventProperties.call(n[i.pluginName],t))}),o},modifyOption:function(t,n,o){var i;return Wi.forEach(function(r){!t[r.pluginName]||r.optionListeners&&typeof r.optionListeners[n]=="function"&&(i=r.optionListeners[n].call(t[r.pluginName],o))}),i}};function es(e){var t=e.sortable,n=e.rootEl,o=e.name,i=e.targetEl,r=e.cloneEl,s=e.toEl,a=e.fromEl,l=e.oldIndex,u=e.newIndex,d=e.oldDraggableIndex,m=e.newDraggableIndex,f=e.originalEvent,h=e.putSortable,p=e.extraEventProperties;if(t=t||n&&n[on],!!t){var b,g=t.options,y="on"+o.charAt(0).toUpperCase()+o.substr(1);window.CustomEvent&&!Fo&&!Gs?b=new CustomEvent(o,{bubbles:!0,cancelable:!0}):(b=document.createEvent("Event"),b.initEvent(o,!0,!0)),b.to=s||n,b.from=a||n,b.item=i||n,b.clone=r,b.oldIndex=l,b.newIndex=u,b.oldDraggableIndex=d,b.newDraggableIndex=m,b.originalEvent=f,b.pullMode=h?h.lastPutMode:void 0;var w=_o(_o({},p),Ws.getEventProperties(o,t));for(var C in w)b[C]=w[C];n&&n.dispatchEvent(b),g[y]&&g[y].call(t,b)}}var S8=["evt"],vn=function(t,n){var o=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{},i=o.evt,r=d8(o,S8);Ws.pluginEvent.bind(Xe)(t,n,_o({dragEl:ze,parentEl:Dt,ghostEl:ot,rootEl:St,nextEl:_i,lastDownEl:ul,cloneEl:Ft,cloneHidden:Zo,dragStarted:ts,putSortable:Xt,activeSortable:Xe.active,originalEvent:i,oldIndex:rr,oldDraggableIndex:ys,newIndex:On,newDraggableIndex:Ko,hideGhostForTarget:t_,unhideGhostForTarget:n_,cloneNowHidden:function(){Zo=!0},cloneNowShown:function(){Zo=!1},dispatchSortableEvent:function(a){dn({sortable:n,name:a,originalEvent:i})}},r))};function dn(e){es(_o({putSortable:Xt,cloneEl:Ft,targetEl:ze,rootEl:St,oldIndex:rr,oldDraggableIndex:ys,newIndex:On,newDraggableIndex:Ko},e))}var ze,Dt,ot,St,_i,ul,Ft,Zo,rr,On,ys,Ko,ga,Xt,nr=!1,Pl=!1,Dl=[],hi,Jn,iu,ru,Qh,ep,ts,Ki,ws,xs=!1,va=!1,dl,nn,su=[],rd=!1,Fl=[],gc=typeof document!="undefined",_a=Wv,tp=Gs||Fo?"cssFloat":"float",$8=gc&&!v8&&!Wv&&"draggable"in document.createElement("div"),Xv=function(){if(!!gc){if(Fo)return!1;var e=document.createElement("x");return e.style.cssText="pointer-events:auto",e.style.pointerEvents==="auto"}}(),Qv=function(t,n){var o=Ve(t),i=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),r=zr(t,0,n),s=zr(t,1,n),a=r&&Ve(r),l=s&&Ve(s),u=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+$t(r).width,d=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+$t(s).width;if(o.display==="flex")return o.flexDirection==="column"||o.flexDirection==="column-reverse"?"vertical":"horizontal";if(o.display==="grid")return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(r&&a.float&&a.float!=="none"){var m=a.float==="left"?"left":"right";return s&&(l.clear==="both"||l.clear===m)?"vertical":"horizontal"}return r&&(a.display==="block"||a.display==="flex"||a.display==="table"||a.display==="grid"||u>=i&&o[tp]==="none"||s&&o[tp]==="none"&&u+d>i)?"vertical":"horizontal"},E8=function(t,n,o){var i=o?t.left:t.top,r=o?t.right:t.bottom,s=o?t.width:t.height,a=o?n.left:n.top,l=o?n.right:n.bottom,u=o?n.width:n.height;return i===a||r===l||i+s/2===a+u/2},A8=function(t,n){var o;return Dl.some(function(i){var r=i[on].options.emptyInsertThreshold;if(!(!r||zf(i))){var s=$t(i),a=t>=s.left-r&&t<=s.right+r,l=n>=s.top-r&&n<=s.bottom+r;if(a&&l)return o=i}}),o},e_=function(t){function n(r,s){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(r==null&&(s||m))return!0;if(r==null||r===!1)return!1;if(s&&r==="clone")return r;if(typeof r=="function")return n(r(a,l,u,d),s)(a,l,u,d);var f=(s?a:l).options.group.name;return r===!0||typeof r=="string"&&r===f||r.join&&r.indexOf(f)>-1}}var o={},i=t.group;(!i||cl(i)!="object")&&(i={name:i}),o.name=i.name,o.checkPull=n(i.pull,!0),o.checkPut=n(i.put),o.revertClone=i.revertClone,t.group=o},t_=function(){!Xv&&ot&&Ve(ot,"display","none")},n_=function(){!Xv&&ot&&Ve(ot,"display","")};gc&&document.addEventListener("click",function(e){if(Pl)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),Pl=!1,!1},!0);var pi=function(t){if(ze){t=t.touches?t.touches[0]:t;var n=A8(t.clientX,t.clientY);if(n){var o={};for(var i in t)t.hasOwnProperty(i)&&(o[i]=t[i]);o.target=o.rootEl=n,o.preventDefault=void 0,o.stopPropagation=void 0,n[on]._onDragOver(o)}}},O8=function(t){ze&&ze.parentNode[on]._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=Wn({},t),e[on]=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 Qv(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(s,a){s.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&&!vs,emptyInsertThreshold:5};Ws.initializePlugins(this,e,n);for(var o in n)!(o in t)&&(t[o]=n[o]);e_(t);for(var i in this)i.charAt(0)==="_"&&typeof this[i]=="function"&&(this[i]=this[i].bind(this));this.nativeDraggable=t.forceFallback?!1:$8,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)),Dl.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Wn(this,k8())}Xe.prototype={constructor:Xe,_isOutsideThisEl:function(t){!this.el.contains(t)&&t!==this.el&&(Ki=null)},_getDirection:function(t,n){return typeof this.options.direction=="function"?this.options.direction.call(this,t,n,ze):this.options.direction},_onTapStart:function(t){if(!!t.cancelable){var n=this,o=this.el,i=this.options,r=i.preventOnFilter,s=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=i.filter;if(R8(o),!ze&&!(/mousedown|pointerdown/.test(s)&&t.button!==0||i.disabled)&&!u.isContentEditable&&!(!this.nativeDraggable&&vs&&l&&l.tagName.toUpperCase()==="SELECT")&&(l=to(l,i.draggable,o,!1),!(l&&l.animated)&&ul!==l)){if(rr=Lt(l),ys=Lt(l,i.draggable),typeof d=="function"){if(d.call(this,t,l,this)){dn({sortable:n,rootEl:u,name:"filter",targetEl:l,toEl:o,fromEl:o}),vn("filter",n,{evt:t}),r&&t.cancelable&&t.preventDefault();return}}else if(d&&(d=d.split(",").some(function(m){if(m=to(u,m.trim(),o,!1),m)return dn({sortable:n,rootEl:m,name:"filter",targetEl:l,fromEl:o,toEl:o}),vn("filter",n,{evt:t}),!0}),d)){r&&t.cancelable&&t.preventDefault();return}i.handle&&!to(u,i.handle,o,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,n,o){var i=this,r=i.el,s=i.options,a=r.ownerDocument,l;if(o&&!ze&&o.parentNode===r){var u=$t(o);if(St=r,ze=o,Dt=ze.parentNode,_i=ze.nextSibling,ul=o,ga=s.group,Xe.dragged=ze,hi={target:ze,clientX:(n||t).clientX,clientY:(n||t).clientY},Qh=hi.clientX-u.left,ep=hi.clientY-u.top,this._lastX=(n||t).clientX,this._lastY=(n||t).clientY,ze.style["will-change"]="all",l=function(){if(vn("delayEnded",i,{evt:t}),Xe.eventCanceled){i._onDrop();return}i._disableDelayedDragEvents(),!Kh&&i.nativeDraggable&&(ze.draggable=!0),i._triggerDragStart(t,n),dn({sortable:i,name:"choose",originalEvent:t}),Et(ze,s.chosenClass,!0)},s.ignore.split(",").forEach(function(d){Yv(ze,d.trim(),au)}),lt(a,"dragover",pi),lt(a,"mousemove",pi),lt(a,"touchmove",pi),lt(a,"mouseup",i._onDrop),lt(a,"touchend",i._onDrop),lt(a,"touchcancel",i._onDrop),Kh&&this.nativeDraggable&&(this.options.touchStartThreshold=4,ze.draggable=!0),vn("delayStart",this,{evt:t}),s.delay&&(!s.delayOnTouchOnly||n)&&(!this.nativeDraggable||!(Gs||Fo))){if(Xe.eventCanceled){this._onDrop();return}lt(a,"mouseup",i._disableDelayedDrag),lt(a,"touchend",i._disableDelayedDrag),lt(a,"touchcancel",i._disableDelayedDrag),lt(a,"mousemove",i._delayedDragTouchMoveHandler),lt(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&lt(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(l,s.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(){ze&&au(ze),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._disableDelayedDrag),rt(t,"touchend",this._disableDelayedDrag),rt(t,"touchcancel",this._disableDelayedDrag),rt(t,"mousemove",this._delayedDragTouchMoveHandler),rt(t,"touchmove",this._delayedDragTouchMoveHandler),rt(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(ze,"dragend",this),lt(St,"dragstart",this._onDragStart));try{document.selection?fl(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch{}},_dragStarted:function(t,n){if(nr=!1,St&&ze){vn("dragStarted",this,{evt:n}),this.nativeDraggable&&lt(document,"dragover",O8);var o=this.options;!t&&Et(ze,o.dragClass,!1),Et(ze,o.ghostClass,!0),Xe.active=this,t&&this._appendGhost(),dn({sortable:this,name:"start",originalEvent:n})}else this._nulling()},_emulateDragOver:function(){if(Jn){this._lastX=Jn.clientX,this._lastY=Jn.clientY,t_();for(var t=document.elementFromPoint(Jn.clientX,Jn.clientY),n=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(Jn.clientX,Jn.clientY),t!==n);)n=t;if(ze.parentNode[on]._isOutsideThisEl(t),n)do{if(n[on]){var o=void 0;if(o=n[on]._onDragOver({clientX:Jn.clientX,clientY:Jn.clientY,target:t,rootEl:n}),o&&!this.options.dragoverBubble)break}t=n}while(n=n.parentNode);n_()}},_onTouchMove:function(t){if(hi){var n=this.options,o=n.fallbackTolerance,i=n.fallbackOffset,r=t.touches?t.touches[0]:t,s=ot&&$i(ot,!0),a=ot&&s&&s.a,l=ot&&s&&s.d,u=_a&&nn&&Jh(nn),d=(r.clientX-hi.clientX+i.x)/(a||1)+(u?u[0]-su[0]:0)/(a||1),m=(r.clientY-hi.clientY+i.y)/(l||1)+(u?u[1]-su[1]:0)/(l||1);if(!Xe.active&&!nr){if(o&&Math.max(Math.abs(r.clientX-this._lastX),Math.abs(r.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(ot){s?(s.e+=d-(iu||0),s.f+=m-(ru||0)):s={a:1,b:0,c:0,d:1,e:d,f:m};var f="matrix(".concat(s.a,",").concat(s.b,",").concat(s.c,",").concat(s.d,",").concat(s.e,",").concat(s.f,")");Ve(ot,"webkitTransform",f),Ve(ot,"mozTransform",f),Ve(ot,"msTransform",f),Ve(ot,"transform",f),iu=d,ru=m,Jn=r}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!ot){var t=this.options.fallbackOnBody?document.body:St,n=$t(ze,!0,_a,!0,t),o=this.options;if(_a){for(nn=t;Ve(nn,"position")==="static"&&Ve(nn,"transform")==="none"&&nn!==document;)nn=nn.parentNode;nn!==document.body&&nn!==document.documentElement?(nn===document&&(nn=go()),n.top+=nn.scrollTop,n.left+=nn.scrollLeft):nn=go(),su=Jh(nn)}ot=ze.cloneNode(!0),Et(ot,o.ghostClass,!1),Et(ot,o.fallbackClass,!0),Et(ot,o.dragClass,!0),Ve(ot,"transition",""),Ve(ot,"transform",""),Ve(ot,"box-sizing","border-box"),Ve(ot,"margin",0),Ve(ot,"top",n.top),Ve(ot,"left",n.left),Ve(ot,"width",n.width),Ve(ot,"height",n.height),Ve(ot,"opacity","0.8"),Ve(ot,"position",_a?"absolute":"fixed"),Ve(ot,"zIndex","100000"),Ve(ot,"pointerEvents","none"),Xe.ghost=ot,t.appendChild(ot),Ve(ot,"transform-origin",Qh/parseInt(ot.style.width)*100+"% "+ep/parseInt(ot.style.height)*100+"%")}},_onDragStart:function(t,n){var o=this,i=t.dataTransfer,r=o.options;if(vn("dragStart",this,{evt:t}),Xe.eventCanceled){this._onDrop();return}vn("setupClone",this),Xe.eventCanceled||(Ft=Sf(ze),Ft.draggable=!1,Ft.style["will-change"]="",this._hideClone(),Et(Ft,this.options.chosenClass,!1),Xe.clone=Ft),o.cloneId=fl(function(){vn("clone",o),!Xe.eventCanceled&&(o.options.removeCloneOnHide||St.insertBefore(Ft,ze),o._hideClone(),dn({sortable:o,name:"clone"}))}),!n&&Et(ze,r.dragClass,!0),n?(Pl=!0,o._loopId=setInterval(o._emulateDragOver,50)):(rt(document,"mouseup",o._onDrop),rt(document,"touchend",o._onDrop),rt(document,"touchcancel",o._onDrop),i&&(i.effectAllowed="move",r.setData&&r.setData.call(o,i,ze)),lt(document,"drop",o),Ve(ze,"transform","translateZ(0)")),nr=!0,o._dragStartId=fl(o._dragStarted.bind(o,n,t)),lt(document,"selectstart",o),ts=!0,vs&&Ve(document.body,"user-select","none")},_onDragOver:function(t){var n=this.el,o=t.target,i,r,s,a=this.options,l=a.group,u=Xe.active,d=ga===l,m=a.sort,f=Xt||u,h,p=this,b=!1;if(rd)return;function g(ge,Le){vn(ge,p,_o({evt:t,isOwner:d,axis:h?"vertical":"horizontal",revert:s,dragRect:i,targetRect:r,canSort:m,fromSortable:f,target:o,completed:w,onMove:function(pe,J){return ya(St,n,ze,i,pe,$t(pe),t,J)},changed:C},Le))}function y(){g("dragOverAnimationCapture"),p.captureAnimationState(),p!==f&&f.captureAnimationState()}function w(ge){return g("dragOverCompleted",{insertion:ge}),ge&&(d?u._hideClone():u._showClone(p),p!==f&&(Et(ze,Xt?Xt.options.ghostClass:u.options.ghostClass,!1),Et(ze,a.ghostClass,!0)),Xt!==p&&p!==Xe.active?Xt=p:p===Xe.active&&Xt&&(Xt=null),f===p&&(p._ignoreWhileAnimating=o),p.animateAll(function(){g("dragOverAnimationComplete"),p._ignoreWhileAnimating=null}),p!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(o===ze&&!ze.animated||o===n&&!o.animated)&&(Ki=null),!a.dragoverBubble&&!t.rootEl&&o!==document&&(ze.parentNode[on]._isOutsideThisEl(t.target),!ge&&pi(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),b=!0}function C(){On=Lt(ze),Ko=Lt(ze,a.draggable),dn({sortable:p,name:"change",toEl:n,newIndex:On,newDraggableIndex:Ko,originalEvent:t})}if(t.preventDefault!==void 0&&t.cancelable&&t.preventDefault(),o=to(o,a.draggable,n,!0),g("dragOver"),Xe.eventCanceled)return b;if(ze.contains(t.target)||o.animated&&o.animatingX&&o.animatingY||p._ignoreWhileAnimating===o)return w(!1);if(Pl=!1,u&&!a.disabled&&(d?m||(s=Dt!==St):Xt===this||(this.lastPutMode=ga.checkPull(this,u,ze,t))&&l.checkPut(this,u,ze,t))){if(h=this._getDirection(t,o)==="vertical",i=$t(ze),g("dragOverValid"),Xe.eventCanceled)return b;if(s)return Dt=St,y(),this._hideClone(),g("revert"),Xe.eventCanceled||(_i?St.insertBefore(ze,_i):St.appendChild(ze)),w(!0);var k=zf(n,a.draggable);if(!k||F8(t,h,this)&&!k.animated){if(k===ze)return w(!1);if(k&&n===t.target&&(o=k),o&&(r=$t(o)),ya(St,n,ze,i,o,r,t,!!o)!==!1)return y(),n.appendChild(ze),Dt=n,C(),w(!0)}else if(k&&D8(t,h,this)){var $=zr(n,0,a,!0);if($===ze)return w(!1);if(o=$,r=$t(o),ya(St,n,ze,i,o,r,t,!1)!==!1)return y(),n.insertBefore(ze,$),Dt=n,C(),w(!0)}else if(o.parentNode===n){r=$t(o);var O=0,j,F=ze.parentNode!==n,A=!E8(ze.animated&&ze.toRect||i,o.animated&&o.toRect||r,h),M=h?"top":"left",G=Zh(o,"top","top")||Zh(ze,"top","top"),R=G?G.scrollTop:void 0;Ki!==o&&(j=r[M],xs=!1,va=!A&&a.invertSwap||F),O=I8(t,o,r,h,A?1:a.swapThreshold,a.invertedSwapThreshold==null?a.swapThreshold:a.invertedSwapThreshold,va,Ki===o);var q;if(O!==0){var B=Lt(ze);do B-=O,q=Dt.children[B];while(q&&(Ve(q,"display")==="none"||q===ot))}if(O===0||q===o)return w(!1);Ki=o,ws=O;var re=o.nextElementSibling,X=!1;X=O===1;var ce=ya(St,n,ze,i,o,r,t,X);if(ce!==!1)return(ce===1||ce===-1)&&(X=ce===1),rd=!0,setTimeout(P8,30),y(),X&&!re?n.appendChild(ze):o.parentNode.insertBefore(ze,X?re:o),G&&Jv(G,0,R-G.scrollTop),Dt=ze.parentNode,j!==void 0&&!va&&(dl=Math.abs(j-$t(o)[M])),C(),w(!0)}if(n.contains(ze))return w(!1)}return!1},_ignoreWhileAnimating:null,_offMoveEvents:function(){rt(document,"mousemove",this._onTouchMove),rt(document,"touchmove",this._onTouchMove),rt(document,"pointermove",this._onTouchMove),rt(document,"dragover",pi),rt(document,"mousemove",pi),rt(document,"touchmove",pi)},_offUpEvents:function(){var t=this.el.ownerDocument;rt(t,"mouseup",this._onDrop),rt(t,"touchend",this._onDrop),rt(t,"pointerup",this._onDrop),rt(t,"touchcancel",this._onDrop),rt(document,"selectstart",this)},_onDrop:function(t){var n=this.el,o=this.options;if(On=Lt(ze),Ko=Lt(ze,o.draggable),vn("drop",this,{evt:t}),Dt=ze&&ze.parentNode,On=Lt(ze),Ko=Lt(ze,o.draggable),Xe.eventCanceled){this._nulling();return}nr=!1,va=!1,xs=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),sd(this.cloneId),sd(this._dragStartId),this.nativeDraggable&&(rt(document,"drop",this),rt(n,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),vs&&Ve(document.body,"user-select",""),Ve(ze,"transform",""),t&&(ts&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),ot&&ot.parentNode&&ot.parentNode.removeChild(ot),(St===Dt||Xt&&Xt.lastPutMode!=="clone")&&Ft&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),ze&&(this.nativeDraggable&&rt(ze,"dragend",this),au(ze),ze.style["will-change"]="",ts&&!nr&&Et(ze,Xt?Xt.options.ghostClass:this.options.ghostClass,!1),Et(ze,this.options.chosenClass,!1),dn({sortable:this,name:"unchoose",toEl:Dt,newIndex:null,newDraggableIndex:null,originalEvent:t}),St!==Dt?(On>=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})),Xt&&Xt.save()):On!==rr&&On>=0&&(dn({sortable:this,name:"update",toEl:Dt,originalEvent:t}),dn({sortable:this,name:"sort",toEl:Dt,originalEvent:t})),Xe.active&&((On==null||On===-1)&&(On=rr,Ko=ys),dn({sortable:this,name:"end",toEl:Dt,originalEvent:t}),this.save()))),this._nulling()},_nulling:function(){vn("nulling",this),St=ze=Dt=ot=_i=Ft=ul=Zo=hi=Jn=ts=On=Ko=rr=ys=Ki=ws=Xt=ga=Xe.dragged=Xe.ghost=Xe.clone=Xe.active=null,Fl.forEach(function(t){t.checked=!0}),Fl.length=iu=ru=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":ze&&(this._onDragOver(t),T8(t));break;case"selectstart":t.preventDefault();break}},toArray:function(){for(var t=[],n,o=this.el.children,i=0,r=o.length,s=this.options;i<r;i++)n=o[i],to(n,s.draggable,this.el,!1)&&t.push(n.getAttribute(s.dataIdAttr)||L8(n));return t},sort:function(t,n){var o={},i=this.el;this.toArray().forEach(function(r,s){var a=i.children[s];to(a,this.options.draggable,i,!1)&&(o[r]=a)},this),n&&this.captureAnimationState(),t.forEach(function(r){o[r]&&(i.removeChild(o[r]),i.appendChild(o[r]))}),n&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,n){return to(t,n||this.options.draggable,this.el,!1)},option:function(t,n){var o=this.options;if(n===void 0)return o[t];var i=Ws.modifyOption(this,t,n);typeof i!="undefined"?o[t]=i:o[t]=n,t==="group"&&e_(o)},destroy:function(){vn("destroy",this);var t=this.el;t[on]=null,rt(t,"mousedown",this._onTapStart),rt(t,"touchstart",this._onTapStart),rt(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(rt(t,"dragover",this),rt(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(n){n.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),Dl.splice(Dl.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!Zo){if(vn("hideClone",this),Xe.eventCanceled)return;Ve(Ft,"display","none"),this.options.removeCloneOnHide&&Ft.parentNode&&Ft.parentNode.removeChild(Ft),Zo=!0}},_showClone:function(t){if(t.lastPutMode!=="clone"){this._hideClone();return}if(Zo){if(vn("showClone",this),Xe.eventCanceled)return;ze.parentNode==St&&!this.options.group.revertClone?St.insertBefore(Ft,ze):_i?St.insertBefore(Ft,_i):St.appendChild(Ft),this.options.group.revertClone&&this.animate(ze,Ft),Ve(Ft,"display",""),Zo=!1}}};function T8(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function ya(e,t,n,o,i,r,s,a){var l,u=e[on],d=u.options.onMove,m;return window.CustomEvent&&!Fo&&!Gs?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=o,l.related=i||t,l.relatedRect=r||$t(t),l.willInsertAfter=a,l.originalEvent=s,e.dispatchEvent(l),d&&(m=d.call(u,l,s)),m}function au(e){e.draggable=!1}function P8(){rd=!1}function D8(e,t,n){var o=$t(zr(n.el,0,n.options,!0)),i=10;return t?e.clientX<o.left-i||e.clientY<o.top&&e.clientX<o.right:e.clientY<o.top-i||e.clientY<o.bottom&&e.clientX<o.left}function F8(e,t,n){var o=$t(zf(n.el,n.options.draggable)),i=10;return t?e.clientX>o.right+i||e.clientX<=o.right&&e.clientY>o.bottom&&e.clientX>=o.left:e.clientX>o.right&&e.clientY>o.top||e.clientX<=o.right&&e.clientY>o.bottom+i}function I8(e,t,n,o,i,r,s,a){var l=o?e.clientY:e.clientX,u=o?n.height:n.width,d=o?n.top:n.left,m=o?n.bottom:n.right,f=!1;if(!s){if(a&&dl<u*i){if(!xs&&(ws===1?l>d+u*r/2:l<m-u*r/2)&&(xs=!0),xs)f=!0;else if(ws===1?l<d+dl:l>m-dl)return-ws}else if(l>d+u*(1-i)/2&&l<m-u*(1-i)/2)return M8(t)}return f=f||s,f&&(l<d+u*r/2||l>m-u*r/2)?l>d+u/2?1:-1:0}function M8(e){return Lt(ze)<Lt(e)?1:-1}function L8(e){for(var t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,o=0;n--;)o+=t.charCodeAt(n);return o.toString(36)}function R8(e){Fl.length=0;for(var t=e.getElementsByTagName("input"),n=t.length;n--;){var o=t[n];o.checked&&Fl.push(o)}}function fl(e){return setTimeout(e,0)}function sd(e){return clearTimeout(e)}gc&&lt(document,"touchmove",function(e){(Xe.active||nr)&&e.cancelable&&e.preventDefault()});Xe.utils={on:lt,off:rt,css:Ve,find:Yv,is:function(t,n){return!!to(t,n,t,!1)},extend:w8,throttle:Zv,closest:to,toggleClass:Et,clone:Sf,index:Lt,nextTick:fl,cancelNextTick:sd,detectDirection:Qv,getChild:zr};Xe.get=function(e){return e[on]};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(o){if(!o.prototype||!o.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(o));o.utils&&(Xe.utils=_o(_o({},Xe.utils),o.utils)),Ws.mount(o)})};Xe.create=function(e,t){return new Xe(e,t)};Xe.version=g8;var Ut=[],ns,ad,ld=!1,lu,cu,Il,os;function N8(){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 o=n.originalEvent;this.sortable.nativeDraggable?lt(document,"dragover",this._handleAutoScroll):this.options.supportPointer?lt(document,"pointermove",this._handleFallbackAutoScroll):o.touches?lt(document,"touchmove",this._handleFallbackAutoScroll):lt(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(n){var o=n.originalEvent;!this.options.dragOverBubble&&!o.rootEl&&this._handleAutoScroll(o)},drop:function(){this.sortable.nativeDraggable?rt(document,"dragover",this._handleAutoScroll):(rt(document,"pointermove",this._handleFallbackAutoScroll),rt(document,"touchmove",this._handleFallbackAutoScroll),rt(document,"mousemove",this._handleFallbackAutoScroll)),np(),ml(),x8()},nulling:function(){Il=ad=ns=ld=os=lu=cu=null,Ut.length=0},_handleFallbackAutoScroll:function(n){this._handleAutoScroll(n,!0)},_handleAutoScroll:function(n,o){var i=this,r=(n.touches?n.touches[0]:n).clientX,s=(n.touches?n.touches[0]:n).clientY,a=document.elementFromPoint(r,s);if(Il=n,o||this.options.forceAutoScrollFallback||Gs||Fo||vs){uu(n,this.options,a,o);var l=Xo(a,!0);ld&&(!os||r!==lu||s!==cu)&&(os&&np(),os=setInterval(function(){var u=Xo(document.elementFromPoint(r,s),!0);u!==l&&(l=u,ml()),uu(n,i.options,u,o)},10),lu=r,cu=s)}else{if(!this.options.bubbleScroll||Xo(a,!0)===go()){ml();return}uu(n,this.options,Xo(a,!1),!1)}}},Wn(e,{pluginName:"scroll",initializeByDefault:!0})}function ml(){Ut.forEach(function(e){clearInterval(e.pid)}),Ut=[]}function np(){clearInterval(os)}var uu=Zv(function(e,t,n,o){if(!!t.scroll){var i=(e.touches?e.touches[0]:e).clientX,r=(e.touches?e.touches[0]:e).clientY,s=t.scrollSensitivity,a=t.scrollSpeed,l=go(),u=!1,d;ad!==n&&(ad=n,ml(),ns=t.scroll,d=t.scrollFn,ns===!0&&(ns=Xo(n,!0)));var m=0,f=ns;do{var h=f,p=$t(h),b=p.top,g=p.bottom,y=p.left,w=p.right,C=p.width,k=p.height,$=void 0,O=void 0,j=h.scrollWidth,F=h.scrollHeight,A=Ve(h),M=h.scrollLeft,G=h.scrollTop;h===l?($=C<j&&(A.overflowX==="auto"||A.overflowX==="scroll"||A.overflowX==="visible"),O=k<F&&(A.overflowY==="auto"||A.overflowY==="scroll"||A.overflowY==="visible")):($=C<j&&(A.overflowX==="auto"||A.overflowX==="scroll"),O=k<F&&(A.overflowY==="auto"||A.overflowY==="scroll"));var R=$&&(Math.abs(w-i)<=s&&M+C<j)-(Math.abs(y-i)<=s&&!!M),q=O&&(Math.abs(g-r)<=s&&G+k<F)-(Math.abs(b-r)<=s&&!!G);if(!Ut[m])for(var B=0;B<=m;B++)Ut[B]||(Ut[B]={});(Ut[m].vx!=R||Ut[m].vy!=q||Ut[m].el!==h)&&(Ut[m].el=h,Ut[m].vx=R,Ut[m].vy=q,clearInterval(Ut[m].pid),(R!=0||q!=0)&&(u=!0,Ut[m].pid=setInterval(function(){o&&this.layer===0&&Xe.active._onTouchMove(Il);var re=Ut[this.layer].vy?Ut[this.layer].vy*a:0,X=Ut[this.layer].vx?Ut[this.layer].vx*a:0;typeof d=="function"&&d.call(Xe.dragged.parentNode[on],X,re,e,Il,Ut[this.layer].el)!=="continue"||Jv(Ut[this.layer].el,X,re)}.bind({layer:m}),24))),m++}while(t.bubbleScroll&&f!==l&&(f=Xo(f,!1)));ld=u}},30),o_=function(t){var n=t.originalEvent,o=t.putSortable,i=t.dragEl,r=t.activeSortable,s=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(!!n){var u=o||r;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)&&(s("spill"),this.onSpill({dragEl:i,putSortable:o}))}};function $f(){}$f.prototype={startIndex:null,dragStart:function(t){var n=t.oldDraggableIndex;this.startIndex=n},onSpill:function(t){var n=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var i=zr(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(n,i):this.sortable.el.appendChild(n),this.sortable.animateAll(),o&&o.animateAll()},drop:o_};Wn($f,{pluginName:"revertOnSpill"});function Ef(){}Ef.prototype={onSpill:function(t){var n=t.dragEl,o=t.putSortable,i=o||this.sortable;i.captureAnimationState(),n.parentNode&&n.parentNode.removeChild(n),i.animateAll()},drop:o_};Wn(Ef,{pluginName:"removeOnSpill"});var Bn;function j8(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart:function(n){var o=n.dragEl;Bn=o},dragOverValid:function(n){var o=n.completed,i=n.target,r=n.onMove,s=n.activeSortable,a=n.changed,l=n.cancel;if(!!s.options.swap){var u=this.sortable.el,d=this.options;if(i&&i!==u){var m=Bn;r(i)!==!1?(Et(i,d.swapClass,!0),Bn=i):Bn=null,m&&m!==Bn&&Et(m,d.swapClass,!1)}a(),o(!0),l()}},drop:function(n){var o=n.activeSortable,i=n.putSortable,r=n.dragEl,s=i||this.sortable,a=this.options;Bn&&Et(Bn,a.swapClass,!1),Bn&&(a.swap||i&&i.options.swap)&&r!==Bn&&(s.captureAnimationState(),s!==o&&o.captureAnimationState(),V8(r,Bn),s.animateAll(),s!==o&&o.animateAll())},nulling:function(){Bn=null}},Wn(e,{pluginName:"swap",eventProperties:function(){return{swapItem:Bn}}})}function V8(e,t){var n=e.parentNode,o=t.parentNode,i,r;!n||!o||n.isEqualNode(t)||o.isEqualNode(e)||(i=Lt(e),r=Lt(t),n.isEqualNode(o)&&i<r&&r++,n.insertBefore(t,n.children[i]),o.insertBefore(e,o.children[r]))}var nt=[],An=[],Br,Xn,Ur=!1,_n=!1,Yi=!1,kt,Hr,wa;function B8(){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(i,r){var s="";nt.length&&Xn===t?nt.forEach(function(a,l){s+=(l?", ":"")+a.textContent}):s=r.textContent,i.setData("Text",s)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(n){var o=n.dragEl;kt=o},delayEnded:function(){this.isMultiDrag=~nt.indexOf(kt)},setupClone:function(n){var o=n.sortable,i=n.cancel;if(!!this.isMultiDrag){for(var r=0;r<nt.length;r++)An.push(Sf(nt[r])),An[r].sortableIndex=nt[r].sortableIndex,An[r].draggable=!1,An[r].style["will-change"]="",Et(An[r],this.options.selectedClass,!1),nt[r]===kt&&Et(An[r],this.options.chosenClass,!1);o._hideClone(),i()}},clone:function(n){var o=n.sortable,i=n.rootEl,r=n.dispatchSortableEvent,s=n.cancel;!this.isMultiDrag||this.options.removeCloneOnHide||nt.length&&Xn===o&&(op(!0,i),r("clone"),s())},showClone:function(n){var o=n.cloneNowShown,i=n.rootEl,r=n.cancel;!this.isMultiDrag||(op(!1,i),An.forEach(function(s){Ve(s,"display","")}),o(),wa=!1,r())},hideClone:function(n){var o=this;n.sortable;var i=n.cloneNowHidden,r=n.cancel;!this.isMultiDrag||(An.forEach(function(s){Ve(s,"display","none"),o.options.removeCloneOnHide&&s.parentNode&&s.parentNode.removeChild(s)}),i(),wa=!0,r())},dragStartGlobal:function(n){n.sortable,!this.isMultiDrag&&Xn&&Xn.multiDrag._deselectMultiDrag(),nt.forEach(function(o){o.sortableIndex=Lt(o)}),nt=nt.sort(function(o,i){return o.sortableIndex-i.sortableIndex}),Yi=!0},dragStarted:function(n){var o=this,i=n.sortable;if(!!this.isMultiDrag){if(this.options.sort&&(i.captureAnimationState(),this.options.animation)){nt.forEach(function(s){s!==kt&&Ve(s,"position","absolute")});var r=$t(kt,!1,!0,!0);nt.forEach(function(s){s!==kt&&Xh(s,r)}),_n=!0,Ur=!0}i.animateAll(function(){_n=!1,Ur=!1,o.options.animation&&nt.forEach(function(s){nu(s)}),o.options.sort&&xa()})}},dragOver:function(n){var o=n.target,i=n.completed,r=n.cancel;_n&&~nt.indexOf(o)&&(i(!1),r())},revert:function(n){var o=n.fromSortable,i=n.rootEl,r=n.sortable,s=n.dragRect;nt.length>1&&(nt.forEach(function(a){r.addAnimationState({target:a,rect:_n?$t(a):s}),nu(a),a.fromRect=s,o.removeAnimationState(a)}),_n=!1,U8(!this.options.removeCloneOnHide,i))},dragOverCompleted:function(n){var o=n.sortable,i=n.isOwner,r=n.insertion,s=n.activeSortable,a=n.parentEl,l=n.putSortable,u=this.options;if(r){if(i&&s._hideClone(),Ur=!1,u.animation&&nt.length>1&&(_n||!i&&!s.options.sort&&!l)){var d=$t(kt,!1,!0,!0);nt.forEach(function(f){f!==kt&&(Xh(f,d),a.appendChild(f))}),_n=!0}if(!i)if(_n||xa(),nt.length>1){var m=wa;s._showClone(o),s.options.animation&&!wa&&m&&An.forEach(function(f){s.addAnimationState({target:f,rect:Hr}),f.fromRect=Hr,f.thisAnimationDuration=null})}else s._showClone(o)}},dragOverAnimationCapture:function(n){var o=n.dragRect,i=n.isOwner,r=n.activeSortable;if(nt.forEach(function(a){a.thisAnimationDuration=null}),r.options.animation&&!i&&r.multiDrag.isMultiDrag){Hr=Wn({},o);var s=$i(kt,!0);Hr.top-=s.f,Hr.left-=s.e}},dragOverAnimationComplete:function(){_n&&(_n=!1,xa())},drop:function(n){var o=n.originalEvent,i=n.rootEl,r=n.parentEl,s=n.sortable,a=n.dispatchSortableEvent,l=n.oldIndex,u=n.putSortable,d=u||this.sortable;if(!!o){var m=this.options,f=r.children;if(!Yi)if(m.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),Et(kt,m.selectedClass,!~nt.indexOf(kt)),~nt.indexOf(kt))nt.splice(nt.indexOf(kt),1),Br=null,es({sortable:s,rootEl:i,name:"deselect",targetEl:kt,originalEvt:o});else{if(nt.push(kt),es({sortable:s,rootEl:i,name:"select",targetEl:kt,originalEvt:o}),o.shiftKey&&Br&&s.el.contains(Br)){var h=Lt(Br),p=Lt(kt);if(~h&&~p&&h!==p){var b,g;for(p>h?(g=h,b=p):(g=p,b=h+1);g<b;g++)~nt.indexOf(f[g])||(Et(f[g],m.selectedClass,!0),nt.push(f[g]),es({sortable:s,rootEl:i,name:"select",targetEl:f[g],originalEvt:o}))}}else Br=kt;Xn=d}if(Yi&&this.isMultiDrag){if(_n=!1,(r[on].options.sort||r!==i)&&nt.length>1){var y=$t(kt),w=Lt(kt,":not(."+this.options.selectedClass+")");if(!Ur&&m.animation&&(kt.thisAnimationDuration=null),d.captureAnimationState(),!Ur&&(m.animation&&(kt.fromRect=y,nt.forEach(function(k){if(k.thisAnimationDuration=null,k!==kt){var $=_n?$t(k):y;k.fromRect=$,d.addAnimationState({target:k,rect:$})}})),xa(),nt.forEach(function(k){f[w]?r.insertBefore(k,f[w]):r.appendChild(k),w++}),l===Lt(kt))){var C=!1;nt.forEach(function(k){if(k.sortableIndex!==Lt(k)){C=!0;return}}),C&&a("update")}nt.forEach(function(k){nu(k)}),d.animateAll()}Xn=d}(i===r||u&&u.lastPutMode!=="clone")&&An.forEach(function(k){k.parentNode&&k.parentNode.removeChild(k)})}},nullingGlobal:function(){this.isMultiDrag=Yi=!1,An.length=0},destroyGlobal:function(){this._deselectMultiDrag(),rt(document,"pointerup",this._deselectMultiDrag),rt(document,"mouseup",this._deselectMultiDrag),rt(document,"touchend",this._deselectMultiDrag),rt(document,"keydown",this._checkKeyDown),rt(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(n){if(!(typeof Yi!="undefined"&&Yi)&&Xn===this.sortable&&!(n&&to(n.target,this.options.draggable,this.sortable.el,!1))&&!(n&&n.button!==0))for(;nt.length;){var o=nt[0];Et(o,this.options.selectedClass,!1),nt.shift(),es({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:o,originalEvt:n})}},_checkKeyDown:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(n){n.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Wn(e,{pluginName:"multiDrag",utils:{select:function(n){var o=n.parentNode[on];!o||!o.options.multiDrag||~nt.indexOf(n)||(Xn&&Xn!==o&&(Xn.multiDrag._deselectMultiDrag(),Xn=o),Et(n,o.options.selectedClass,!0),nt.push(n))},deselect:function(n){var o=n.parentNode[on],i=nt.indexOf(n);!o||!o.options.multiDrag||!~i||(Et(n,o.options.selectedClass,!1),nt.splice(i,1))}},eventProperties:function(){var n=this,o=[],i=[];return nt.forEach(function(r){o.push({multiDragElement:r,index:r.sortableIndex});var s;_n&&r!==kt?s=-1:_n?s=Lt(r,":not(."+n.options.selectedClass+")"):s=Lt(r),i.push({multiDragElement:r,index:s})}),{items:f8(nt),clones:[].concat(An),oldIndicies:o,newIndicies:i}},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 U8(e,t){nt.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function op(e,t){An.forEach(function(n,o){var i=t.children[n.sortableIndex+(e?Number(o):0)];i?t.insertBefore(n,i):t.appendChild(n)})}function xa(){nt.forEach(function(e){e!==kt&&e.parentNode&&e.parentNode.removeChild(e)})}Xe.mount(new N8);Xe.mount(Ef,$f);var H8=Object.freeze(Object.defineProperty({__proto__:null,default:Xe,MultiDrag:B8,Sortable:Xe,Swap:j8},Symbol.toStringTag,{value:"Module"})),q8=Sv(H8);(function(e,t){(function(o,i){e.exports=i(Cf,q8)})(typeof self!="undefined"?self:an,function(n,o){return function(i){var r={};function s(a){if(r[a])return r[a].exports;var l=r[a]={i:a,l:!1,exports:{}};return i[a].call(l.exports,l,l.exports,s),l.l=!0,l.exports}return s.m=i,s.c=r,s.d=function(a,l,u){s.o(a,l)||Object.defineProperty(a,l,{enumerable:!0,get:u})},s.r=function(a){typeof Symbol!="undefined"&&Symbol.toStringTag&&Object.defineProperty(a,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(a,"__esModule",{value:!0})},s.t=function(a,l){if(l&1&&(a=s(a)),l&8||l&4&&typeof a=="object"&&a&&a.__esModule)return a;var u=Object.create(null);if(s.r(u),Object.defineProperty(u,"default",{enumerable:!0,value:a}),l&2&&typeof a!="string")for(var d in a)s.d(u,d,function(m){return a[m]}.bind(null,d));return u},s.n=function(a){var l=a&&a.__esModule?function(){return a.default}:function(){return a};return s.d(l,"a",l),l},s.o=function(a,l){return Object.prototype.hasOwnProperty.call(a,l)},s.p="",s(s.s="fb15")}({"00ee":function(i,r,s){var a=s("b622"),l=a("toStringTag"),u={};u[l]="z",i.exports=String(u)==="[object z]"},"0366":function(i,r,s){var a=s("1c0b");i.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,h){return l.call(u,m,f,h)}}return function(){return l.apply(u,arguments)}}},"057f":function(i,r,s){var a=s("fc6a"),l=s("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()}};i.exports.f=function(h){return d&&u.call(h)=="[object Window]"?m(h):l(a(h))}},"06cf":function(i,r,s){var a=s("83ab"),l=s("d1e7"),u=s("5c6c"),d=s("fc6a"),m=s("c04e"),f=s("5135"),h=s("0cfb"),p=Object.getOwnPropertyDescriptor;r.f=a?p:function(g,y){if(g=d(g),y=m(y,!0),h)try{return p(g,y)}catch{}if(f(g,y))return u(!l.f.call(g,y),g[y])}},"0cfb":function(i,r,s){var a=s("83ab"),l=s("d039"),u=s("cc12");i.exports=!a&&!l(function(){return Object.defineProperty(u("div"),"a",{get:function(){return 7}}).a!=7})},"13d5":function(i,r,s){var a=s("23e7"),l=s("d58f").left,u=s("a640"),d=s("ae40"),m=u("reduce"),f=d("reduce",{1:0});a({target:"Array",proto:!0,forced:!m||!f},{reduce:function(p){return l(this,p,arguments.length,arguments.length>1?arguments[1]:void 0)}})},"14c3":function(i,r,s){var a=s("c6b6"),l=s("9263");i.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(i,r,s){var a=s("da84"),l=s("fdbc"),u=s("17c2"),d=s("9112");for(var m in l){var f=a[m],h=f&&f.prototype;if(h&&h.forEach!==u)try{d(h,"forEach",u)}catch{h.forEach=u}}},"17c2":function(i,r,s){var a=s("b727").forEach,l=s("a640"),u=s("ae40"),d=l("forEach"),m=u("forEach");i.exports=!d||!m?function(h){return a(this,h,arguments.length>1?arguments[1]:void 0)}:[].forEach},"1be4":function(i,r,s){var a=s("d066");i.exports=a("document","documentElement")},"1c0b":function(i,r){i.exports=function(s){if(typeof s!="function")throw TypeError(String(s)+" is not a function");return s}},"1c7e":function(i,r,s){var a=s("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{}i.exports=function(f,h){if(!h&&!u)return!1;var p=!1;try{var b={};b[l]=function(){return{next:function(){return{done:p=!0}}}},f(b)}catch{}return p}},"1d80":function(i,r){i.exports=function(s){if(s==null)throw TypeError("Can't call method on "+s);return s}},"1dde":function(i,r,s){var a=s("d039"),l=s("b622"),u=s("2d00"),d=l("species");i.exports=function(m){return u>=51||!a(function(){var f=[],h=f.constructor={};return h[d]=function(){return{foo:1}},f[m](Boolean).foo!==1})}},"23cb":function(i,r,s){var a=s("a691"),l=Math.max,u=Math.min;i.exports=function(d,m){var f=a(d);return f<0?l(f+m,0):u(f,m)}},"23e7":function(i,r,s){var a=s("da84"),l=s("06cf").f,u=s("9112"),d=s("6eeb"),m=s("ce4e"),f=s("e893"),h=s("94ca");i.exports=function(p,b){var g=p.target,y=p.global,w=p.stat,C,k,$,O,j,F;if(y?k=a:w?k=a[g]||m(g,{}):k=(a[g]||{}).prototype,k)for($ in b){if(j=b[$],p.noTargetGet?(F=l(k,$),O=F&&F.value):O=k[$],C=h(y?$:g+(w?".":"#")+$,p.forced),!C&&O!==void 0){if(typeof j==typeof O)continue;f(j,O)}(p.sham||O&&O.sham)&&u(j,"sham",!0),d(k,$,j,p)}}},"241c":function(i,r,s){var a=s("ca84"),l=s("7839"),u=l.concat("length","prototype");r.f=Object.getOwnPropertyNames||function(m){return a(m,u)}},"25f0":function(i,r,s){var a=s("6eeb"),l=s("825a"),u=s("d039"),d=s("ad6d"),m="toString",f=RegExp.prototype,h=f[m],p=u(function(){return h.call({source:"a",flags:"b"})!="/a/b"}),b=h.name!=m;(p||b)&&a(RegExp.prototype,m,function(){var y=l(this),w=String(y.source),C=y.flags,k=String(C===void 0&&y instanceof RegExp&&!("flags"in f)?d.call(y):C);return"/"+w+"/"+k},{unsafe:!0})},"2ca0":function(i,r,s){var a=s("23e7"),l=s("06cf").f,u=s("50c4"),d=s("5a34"),m=s("1d80"),f=s("ab13"),h=s("c430"),p="".startsWith,b=Math.min,g=f("startsWith"),y=!h&&!g&&!!function(){var w=l(String.prototype,"startsWith");return w&&!w.writable}();a({target:"String",proto:!0,forced:!y&&!g},{startsWith:function(C){var k=String(m(this));d(C);var $=u(b(arguments.length>1?arguments[1]:void 0,k.length)),O=String(C);return p?p.call(k,O,$):k.slice($,$+O.length)===O}})},"2d00":function(i,r,s){var a=s("da84"),l=s("342f"),u=a.process,d=u&&u.versions,m=d&&d.v8,f,h;m?(f=m.split("."),h=f[0]+f[1]):l&&(f=l.match(/Edge\/(\d+)/),(!f||f[1]>=74)&&(f=l.match(/Chrome\/(\d+)/),f&&(h=f[1]))),i.exports=h&&+h},"342f":function(i,r,s){var a=s("d066");i.exports=a("navigator","userAgent")||""},"35a1":function(i,r,s){var a=s("f5df"),l=s("3f8c"),u=s("b622"),d=u("iterator");i.exports=function(m){if(m!=null)return m[d]||m["@@iterator"]||l[a(m)]}},"37e8":function(i,r,s){var a=s("83ab"),l=s("9bf2"),u=s("825a"),d=s("df75");i.exports=a?Object.defineProperties:function(f,h){u(f);for(var p=d(h),b=p.length,g=0,y;b>g;)l.f(f,y=p[g++],h[y]);return f}},"3bbe":function(i,r,s){var a=s("861d");i.exports=function(l){if(!a(l)&&l!==null)throw TypeError("Can't set "+String(l)+" as a prototype");return l}},"3ca3":function(i,r,s){var a=s("6547").charAt,l=s("69f3"),u=s("7dd0"),d="String Iterator",m=l.set,f=l.getterFor(d);u(String,"String",function(h){m(this,{type:d,string:String(h),index:0})},function(){var p=f(this),b=p.string,g=p.index,y;return g>=b.length?{value:void 0,done:!0}:(y=a(b,g),p.index+=y.length,{value:y,done:!1})})},"3f8c":function(i,r){i.exports={}},"4160":function(i,r,s){var a=s("23e7"),l=s("17c2");a({target:"Array",proto:!0,forced:[].forEach!=l},{forEach:l})},"428f":function(i,r,s){var a=s("da84");i.exports=a},"44ad":function(i,r,s){var a=s("d039"),l=s("c6b6"),u="".split;i.exports=a(function(){return!Object("z").propertyIsEnumerable(0)})?function(d){return l(d)=="String"?u.call(d,""):Object(d)}:Object},"44d2":function(i,r,s){var a=s("b622"),l=s("7c73"),u=s("9bf2"),d=a("unscopables"),m=Array.prototype;m[d]==null&&u.f(m,d,{configurable:!0,value:l(null)}),i.exports=function(f){m[d][f]=!0}},"44e7":function(i,r,s){var a=s("861d"),l=s("c6b6"),u=s("b622"),d=u("match");i.exports=function(m){var f;return a(m)&&((f=m[d])!==void 0?!!f:l(m)=="RegExp")}},"4930":function(i,r,s){var a=s("d039");i.exports=!!Object.getOwnPropertySymbols&&!a(function(){return!String(Symbol())})},"4d64":function(i,r,s){var a=s("fc6a"),l=s("50c4"),u=s("23cb"),d=function(m){return function(f,h,p){var b=a(f),g=l(b.length),y=u(p,g),w;if(m&&h!=h){for(;g>y;)if(w=b[y++],w!=w)return!0}else for(;g>y;y++)if((m||y in b)&&b[y]===h)return m||y||0;return!m&&-1}};i.exports={includes:d(!0),indexOf:d(!1)}},"4de4":function(i,r,s){var a=s("23e7"),l=s("b727").filter,u=s("1dde"),d=s("ae40"),m=u("filter"),f=d("filter");a({target:"Array",proto:!0,forced:!m||!f},{filter:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},"4df4":function(i,r,s){var a=s("0366"),l=s("7b0b"),u=s("9bdd"),d=s("e95a"),m=s("50c4"),f=s("8418"),h=s("35a1");i.exports=function(b){var g=l(b),y=typeof this=="function"?this:Array,w=arguments.length,C=w>1?arguments[1]:void 0,k=C!==void 0,$=h(g),O=0,j,F,A,M,G,R;if(k&&(C=a(C,w>2?arguments[2]:void 0,2)),$!=null&&!(y==Array&&d($)))for(M=$.call(g),G=M.next,F=new y;!(A=G.call(M)).done;O++)R=k?u(M,C,[A.value,O],!0):A.value,f(F,O,R);else for(j=m(g.length),F=new y(j);j>O;O++)R=k?C(g[O],O):g[O],f(F,O,R);return F.length=O,F}},"4fad":function(i,r,s){var a=s("23e7"),l=s("6f53").entries;a({target:"Object",stat:!0},{entries:function(d){return l(d)}})},"50c4":function(i,r,s){var a=s("a691"),l=Math.min;i.exports=function(u){return u>0?l(a(u),9007199254740991):0}},"5135":function(i,r){var s={}.hasOwnProperty;i.exports=function(a,l){return s.call(a,l)}},"5319":function(i,r,s){var a=s("d784"),l=s("825a"),u=s("7b0b"),d=s("50c4"),m=s("a691"),f=s("1d80"),h=s("8aa5"),p=s("14c3"),b=Math.max,g=Math.min,y=Math.floor,w=/\$([$&'`]|\d\d?|<[^>]*>)/g,C=/\$([$&'`]|\d\d?)/g,k=function($){return $===void 0?$:String($)};a("replace",2,function($,O,j,F){var A=F.REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE,M=F.REPLACE_KEEPS_$0,G=A?"$":"$0";return[function(B,re){var X=f(this),ce=B==null?void 0:B[$];return ce!==void 0?ce.call(B,X,re):O.call(String(X),B,re)},function(q,B){if(!A&&M||typeof B=="string"&&B.indexOf(G)===-1){var re=j(O,q,this,B);if(re.done)return re.value}var X=l(q),ce=String(this),ge=typeof B=="function";ge||(B=String(B));var Le=X.global;if(Le){var Be=X.unicode;X.lastIndex=0}for(var pe=[];;){var J=p(X,ce);if(J===null||(pe.push(J),!Le))break;var fe=String(J[0]);fe===""&&(X.lastIndex=h(ce,d(X.lastIndex),Be))}for(var we="",U=0,se=0;se<pe.length;se++){J=pe[se];for(var ie=String(J[0]),ye=b(g(m(J.index),ce.length),0),je=[],Ie=1;Ie<J.length;Ie++)je.push(k(J[Ie]));var $e=J.groups;if(ge){var Ae=[ie].concat(je,ye,ce);$e!==void 0&&Ae.push($e);var E=String(B.apply(void 0,Ae))}else E=R(ie,ce,ye,je,$e,B);ye>=U&&(we+=ce.slice(U,ye)+E,U=ye+ie.length)}return we+ce.slice(U)}];function R(q,B,re,X,ce,ge){var Le=re+q.length,Be=X.length,pe=C;return ce!==void 0&&(ce=u(ce),pe=w),O.call(ge,pe,function(J,fe){var we;switch(fe.charAt(0)){case"$":return"$";case"&":return q;case"`":return B.slice(0,re);case"'":return B.slice(Le);case"<":we=ce[fe.slice(1,-1)];break;default:var U=+fe;if(U===0)return J;if(U>Be){var se=y(U/10);return se===0?J:se<=Be?X[se-1]===void 0?fe.charAt(1):X[se-1]+fe.charAt(1):J}we=X[U-1]}return we===void 0?"":we})}})},"5692":function(i,r,s){var a=s("c430"),l=s("c6cd");(i.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(i,r,s){var a=s("d066"),l=s("241c"),u=s("7418"),d=s("825a");i.exports=a("Reflect","ownKeys")||function(f){var h=l.f(d(f)),p=u.f;return p?h.concat(p(f)):h}},"5a34":function(i,r,s){var a=s("44e7");i.exports=function(l){if(a(l))throw TypeError("The method doesn't accept regular expressions");return l}},"5c6c":function(i,r){i.exports=function(s,a){return{enumerable:!(s&1),configurable:!(s&2),writable:!(s&4),value:a}}},"5db7":function(i,r,s){var a=s("23e7"),l=s("a2bf"),u=s("7b0b"),d=s("50c4"),m=s("1c0b"),f=s("65f0");a({target:"Array",proto:!0},{flatMap:function(p){var b=u(this),g=d(b.length),y;return m(p),y=f(b,0),y.length=l(y,b,b,g,0,1,p,arguments.length>1?arguments[1]:void 0),y}})},"6547":function(i,r,s){var a=s("a691"),l=s("1d80"),u=function(d){return function(m,f){var h=String(l(m)),p=a(f),b=h.length,g,y;return p<0||p>=b?d?"":void 0:(g=h.charCodeAt(p),g<55296||g>56319||p+1===b||(y=h.charCodeAt(p+1))<56320||y>57343?d?h.charAt(p):g:d?h.slice(p,p+2):(g-55296<<10)+(y-56320)+65536)}};i.exports={codeAt:u(!1),charAt:u(!0)}},"65f0":function(i,r,s){var a=s("861d"),l=s("e8b5"),u=s("b622"),d=u("species");i.exports=function(m,f){var h;return l(m)&&(h=m.constructor,typeof h=="function"&&(h===Array||l(h.prototype))?h=void 0:a(h)&&(h=h[d],h===null&&(h=void 0))),new(h===void 0?Array:h)(f===0?0:f)}},"69f3":function(i,r,s){var a=s("7f9a"),l=s("da84"),u=s("861d"),d=s("9112"),m=s("5135"),f=s("f772"),h=s("d012"),p=l.WeakMap,b,g,y,w=function(A){return y(A)?g(A):b(A,{})},C=function(A){return function(M){var G;if(!u(M)||(G=g(M)).type!==A)throw TypeError("Incompatible receiver, "+A+" required");return G}};if(a){var k=new p,$=k.get,O=k.has,j=k.set;b=function(A,M){return j.call(k,A,M),M},g=function(A){return $.call(k,A)||{}},y=function(A){return O.call(k,A)}}else{var F=f("state");h[F]=!0,b=function(A,M){return d(A,F,M),M},g=function(A){return m(A,F)?A[F]:{}},y=function(A){return m(A,F)}}i.exports={set:b,get:g,has:y,enforce:w,getterFor:C}},"6eeb":function(i,r,s){var a=s("da84"),l=s("9112"),u=s("5135"),d=s("ce4e"),m=s("8925"),f=s("69f3"),h=f.get,p=f.enforce,b=String(String).split("String");(i.exports=function(g,y,w,C){var k=C?!!C.unsafe:!1,$=C?!!C.enumerable:!1,O=C?!!C.noTargetGet:!1;if(typeof w=="function"&&(typeof y=="string"&&!u(w,"name")&&l(w,"name",y),p(w).source=b.join(typeof y=="string"?y:"")),g===a){$?g[y]=w:d(y,w);return}else k?!O&&g[y]&&($=!0):delete g[y];$?g[y]=w:l(g,y,w)})(Function.prototype,"toString",function(){return typeof this=="function"&&h(this).source||m(this)})},"6f53":function(i,r,s){var a=s("83ab"),l=s("df75"),u=s("fc6a"),d=s("d1e7").f,m=function(f){return function(h){for(var p=u(h),b=l(p),g=b.length,y=0,w=[],C;g>y;)C=b[y++],(!a||d.call(p,C))&&w.push(f?[C,p[C]]:p[C]);return w}};i.exports={entries:m(!0),values:m(!1)}},"73d9":function(i,r,s){var a=s("44d2");a("flatMap")},"7418":function(i,r){r.f=Object.getOwnPropertySymbols},"746f":function(i,r,s){var a=s("428f"),l=s("5135"),u=s("e538"),d=s("9bf2").f;i.exports=function(m){var f=a.Symbol||(a.Symbol={});l(f,m)||d(f,m,{value:u.f(m)})}},"7839":function(i,r){i.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(i,r,s){var a=s("1d80");i.exports=function(l){return Object(a(l))}},"7c73":function(i,r,s){var a=s("825a"),l=s("37e8"),u=s("7839"),d=s("d012"),m=s("1be4"),f=s("cc12"),h=s("f772"),p=">",b="<",g="prototype",y="script",w=h("IE_PROTO"),C=function(){},k=function(A){return b+y+p+A+b+"/"+y+p},$=function(A){A.write(k("")),A.close();var M=A.parentWindow.Object;return A=null,M},O=function(){var A=f("iframe"),M="java"+y+":",G;return A.style.display="none",m.appendChild(A),A.src=String(M),G=A.contentWindow.document,G.open(),G.write(k("document.F=Object")),G.close(),G.F},j,F=function(){try{j=document.domain&&new ActiveXObject("htmlfile")}catch{}F=j?$(j):O();for(var A=u.length;A--;)delete F[g][u[A]];return F()};d[w]=!0,i.exports=Object.create||function(M,G){var R;return M!==null?(C[g]=a(M),R=new C,C[g]=null,R[w]=M):R=F(),G===void 0?R:l(R,G)}},"7dd0":function(i,r,s){var a=s("23e7"),l=s("9ed3"),u=s("e163"),d=s("d2bb"),m=s("d44e"),f=s("9112"),h=s("6eeb"),p=s("b622"),b=s("c430"),g=s("3f8c"),y=s("ae93"),w=y.IteratorPrototype,C=y.BUGGY_SAFARI_ITERATORS,k=p("iterator"),$="keys",O="values",j="entries",F=function(){return this};i.exports=function(A,M,G,R,q,B,re){l(G,M,R);var X=function(se){if(se===q&&pe)return pe;if(!C&&se in Le)return Le[se];switch(se){case $:return function(){return new G(this,se)};case O:return function(){return new G(this,se)};case j:return function(){return new G(this,se)}}return function(){return new G(this)}},ce=M+" Iterator",ge=!1,Le=A.prototype,Be=Le[k]||Le["@@iterator"]||q&&Le[q],pe=!C&&Be||X(q),J=M=="Array"&&Le.entries||Be,fe,we,U;if(J&&(fe=u(J.call(new A)),w!==Object.prototype&&fe.next&&(!b&&u(fe)!==w&&(d?d(fe,w):typeof fe[k]!="function"&&f(fe,k,F)),m(fe,ce,!0,!0),b&&(g[ce]=F))),q==O&&Be&&Be.name!==O&&(ge=!0,pe=function(){return Be.call(this)}),(!b||re)&&Le[k]!==pe&&f(Le,k,pe),g[M]=pe,q)if(we={values:X(O),keys:B?pe:X($),entries:X(j)},re)for(U in we)(C||ge||!(U in Le))&&h(Le,U,we[U]);else a({target:M,proto:!0,forced:C||ge},we);return we}},"7f9a":function(i,r,s){var a=s("da84"),l=s("8925"),u=a.WeakMap;i.exports=typeof u=="function"&&/native code/.test(l(u))},"825a":function(i,r,s){var a=s("861d");i.exports=function(l){if(!a(l))throw TypeError(String(l)+" is not an object");return l}},"83ab":function(i,r,s){var a=s("d039");i.exports=!a(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},"8418":function(i,r,s){var a=s("c04e"),l=s("9bf2"),u=s("5c6c");i.exports=function(d,m,f){var h=a(m);h in d?l.f(d,h,u(0,f)):d[h]=f}},"861d":function(i,r){i.exports=function(s){return typeof s=="object"?s!==null:typeof s=="function"}},"8875":function(i,r,s){var a,l,u;(function(d,m){l=[],a=m,u=typeof a=="function"?a.apply(r,l):a,u!==void 0&&(i.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(j){var f=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,h=/@([^@]*):(\d+):(\d+)\s*$/ig,p=f.exec(j.stack)||h.exec(j.stack),b=p&&p[1]||!1,g=p&&p[2]||!1,y=document.location.href.replace(document.location.hash,""),w,C,k,$=document.getElementsByTagName("script");b===y&&(w=document.documentElement.outerHTML,C=new RegExp("(?:[^\\n]+?\\n){0,"+(g-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),k=w.replace(C,"$1").trim());for(var O=0;O<$.length;O++)if($[O].readyState==="interactive"||$[O].src===b||b===y&&$[O].innerHTML&&$[O].innerHTML.trim()===k)return $[O];return null}}return d})},"8925":function(i,r,s){var a=s("c6cd"),l=Function.toString;typeof a.inspectSource!="function"&&(a.inspectSource=function(u){return l.call(u)}),i.exports=a.inspectSource},"8aa5":function(i,r,s){var a=s("6547").charAt;i.exports=function(l,u,d){return u+(d?a(l,u).length:1)}},"8bbf":function(i,r){i.exports=n},"90e3":function(i,r){var s=0,a=Math.random();i.exports=function(l){return"Symbol("+String(l===void 0?"":l)+")_"+(++s+a).toString(36)}},"9112":function(i,r,s){var a=s("83ab"),l=s("9bf2"),u=s("5c6c");i.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(i,r,s){var a=s("ad6d"),l=s("9f7f"),u=RegExp.prototype.exec,d=String.prototype.replace,m=u,f=function(){var g=/a/,y=/b*/g;return u.call(g,"a"),u.call(y,"a"),g.lastIndex!==0||y.lastIndex!==0}(),h=l.UNSUPPORTED_Y||l.BROKEN_CARET,p=/()??/.exec("")[1]!==void 0,b=f||p||h;b&&(m=function(y){var w=this,C,k,$,O,j=h&&w.sticky,F=a.call(w),A=w.source,M=0,G=y;return j&&(F=F.replace("y",""),F.indexOf("g")===-1&&(F+="g"),G=String(y).slice(w.lastIndex),w.lastIndex>0&&(!w.multiline||w.multiline&&y[w.lastIndex-1]!==`
`)&&(A="(?: "+A+")",G=" "+G,M++),k=new RegExp("^(?:"+A+")",F)),p&&(k=new RegExp("^"+A+"$(?!\\s)",F)),f&&(C=w.lastIndex),$=u.call(j?k:w,G),j?$?($.input=$.input.slice(M),$[0]=$[0].slice(M),$.index=w.lastIndex,w.lastIndex+=$[0].length):w.lastIndex=0:f&&$&&(w.lastIndex=w.global?$.index+$[0].length:C),p&&$&&$.length>1&&d.call($[0],k,function(){for(O=1;O<arguments.length-2;O++)arguments[O]===void 0&&($[O]=void 0)}),$}),i.exports=m},"94ca":function(i,r,s){var a=s("d039"),l=/#|\.prototype\./,u=function(p,b){var g=m[d(p)];return g==h?!0:g==f?!1:typeof b=="function"?a(b):!!b},d=u.normalize=function(p){return String(p).replace(l,".").toLowerCase()},m=u.data={},f=u.NATIVE="N",h=u.POLYFILL="P";i.exports=u},"99af":function(i,r,s){var a=s("23e7"),l=s("d039"),u=s("e8b5"),d=s("861d"),m=s("7b0b"),f=s("50c4"),h=s("8418"),p=s("65f0"),b=s("1dde"),g=s("b622"),y=s("2d00"),w=g("isConcatSpreadable"),C=9007199254740991,k="Maximum allowed index exceeded",$=y>=51||!l(function(){var A=[];return A[w]=!1,A.concat()[0]!==A}),O=b("concat"),j=function(A){if(!d(A))return!1;var M=A[w];return M!==void 0?!!M:u(A)},F=!$||!O;a({target:"Array",proto:!0,forced:F},{concat:function(M){var G=m(this),R=p(G,0),q=0,B,re,X,ce,ge;for(B=-1,X=arguments.length;B<X;B++)if(ge=B===-1?G:arguments[B],j(ge)){if(ce=f(ge.length),q+ce>C)throw TypeError(k);for(re=0;re<ce;re++,q++)re in ge&&h(R,q,ge[re])}else{if(q>=C)throw TypeError(k);h(R,q++,ge)}return R.length=q,R}})},"9bdd":function(i,r,s){var a=s("825a");i.exports=function(l,u,d,m){try{return m?u(a(d)[0],d[1]):u(d)}catch(h){var f=l.return;throw f!==void 0&&a(f.call(l)),h}}},"9bf2":function(i,r,s){var a=s("83ab"),l=s("0cfb"),u=s("825a"),d=s("c04e"),m=Object.defineProperty;r.f=a?m:function(h,p,b){if(u(h),p=d(p,!0),u(b),l)try{return m(h,p,b)}catch{}if("get"in b||"set"in b)throw TypeError("Accessors not supported");return"value"in b&&(h[p]=b.value),h}},"9ed3":function(i,r,s){var a=s("ae93").IteratorPrototype,l=s("7c73"),u=s("5c6c"),d=s("d44e"),m=s("3f8c"),f=function(){return this};i.exports=function(h,p,b){var g=p+" Iterator";return h.prototype=l(a,{next:u(1,b)}),d(h,g,!1,!0),m[g]=f,h}},"9f7f":function(i,r,s){var a=s("d039");function l(u,d){return RegExp(u,d)}r.UNSUPPORTED_Y=a(function(){var u=l("a","y");return u.lastIndex=2,u.exec("abcd")!=null}),r.BROKEN_CARET=a(function(){var u=l("^r","gy");return u.lastIndex=2,u.exec("str")!=null})},a2bf:function(i,r,s){var a=s("e8b5"),l=s("50c4"),u=s("0366"),d=function(m,f,h,p,b,g,y,w){for(var C=b,k=0,$=y?u(y,w,3):!1,O;k<p;){if(k in h){if(O=$?$(h[k],k,f):h[k],g>0&&a(O))C=d(m,f,O,l(O.length),C,g-1)-1;else{if(C>=9007199254740991)throw TypeError("Exceed the acceptable array length");m[C]=O}C++}k++}return C};i.exports=d},a352:function(i,r){i.exports=o},a434:function(i,r,s){var a=s("23e7"),l=s("23cb"),u=s("a691"),d=s("50c4"),m=s("7b0b"),f=s("65f0"),h=s("8418"),p=s("1dde"),b=s("ae40"),g=p("splice"),y=b("splice",{ACCESSORS:!0,0:0,1:2}),w=Math.max,C=Math.min,k=9007199254740991,$="Maximum allowed length exceeded";a({target:"Array",proto:!0,forced:!g||!y},{splice:function(j,F){var A=m(this),M=d(A.length),G=l(j,M),R=arguments.length,q,B,re,X,ce,ge;if(R===0?q=B=0:R===1?(q=0,B=M-G):(q=R-2,B=C(w(u(F),0),M-G)),M+q-B>k)throw TypeError($);for(re=f(A,B),X=0;X<B;X++)ce=G+X,ce in A&&h(re,X,A[ce]);if(re.length=B,q<B){for(X=G;X<M-B;X++)ce=X+B,ge=X+q,ce in A?A[ge]=A[ce]:delete A[ge];for(X=M;X>M-B+q;X--)delete A[X-1]}else if(q>B)for(X=M-B;X>G;X--)ce=X+B-1,ge=X+q-1,ce in A?A[ge]=A[ce]:delete A[ge];for(X=0;X<q;X++)A[X+G]=arguments[X+2];return A.length=M-B+q,re}})},a4d3:function(i,r,s){var a=s("23e7"),l=s("da84"),u=s("d066"),d=s("c430"),m=s("83ab"),f=s("4930"),h=s("fdbf"),p=s("d039"),b=s("5135"),g=s("e8b5"),y=s("861d"),w=s("825a"),C=s("7b0b"),k=s("fc6a"),$=s("c04e"),O=s("5c6c"),j=s("7c73"),F=s("df75"),A=s("241c"),M=s("057f"),G=s("7418"),R=s("06cf"),q=s("9bf2"),B=s("d1e7"),re=s("9112"),X=s("6eeb"),ce=s("5692"),ge=s("f772"),Le=s("d012"),Be=s("90e3"),pe=s("b622"),J=s("e538"),fe=s("746f"),we=s("d44e"),U=s("69f3"),se=s("b727").forEach,ie=ge("hidden"),ye="Symbol",je="prototype",Ie=pe("toPrimitive"),$e=U.set,Ae=U.getterFor(ye),E=Object[je],L=l.Symbol,Z=u("JSON","stringify"),le=R.f,ue=q.f,ve=M.f,xe=B.f,he=ce("symbols"),V=ce("op-symbols"),H=ce("string-to-symbol-registry"),Ee=ce("symbol-to-string-registry"),ke=ce("wks"),De=l.QObject,Re=!De||!De[je]||!De[je].findChild,qe=m&&p(function(){return j(ue({},"a",{get:function(){return ue(this,"a",{value:7}).a}})).a!=7})?function(de,te,ae){var Ne=le(E,te);Ne&&delete E[te],ue(de,te,ae),Ne&&de!==E&&ue(E,te,Ne)}:ue,tt=function(de,te){var ae=he[de]=j(L[je]);return $e(ae,{type:ye,tag:de,description:te}),m||(ae.description=te),ae},z=h?function(de){return typeof de=="symbol"}:function(de){return Object(de)instanceof L},v=function(te,ae,Ne){te===E&&v(V,ae,Ne),w(te);var Ue=$(ae,!0);return w(Ne),b(he,Ue)?(Ne.enumerable?(b(te,ie)&&te[ie][Ue]&&(te[ie][Ue]=!1),Ne=j(Ne,{enumerable:O(0,!1)})):(b(te,ie)||ue(te,ie,O(1,{})),te[ie][Ue]=!0),qe(te,Ue,Ne)):ue(te,Ue,Ne)},I=function(te,ae){w(te);var Ne=k(ae),Ue=F(Ne).concat(Me(Ne));return se(Ue,function(ut){(!m||ee.call(Ne,ut))&&v(te,ut,Ne[ut])}),te},K=function(te,ae){return ae===void 0?j(te):I(j(te),ae)},ee=function(te){var ae=$(te,!0),Ne=xe.call(this,ae);return this===E&&b(he,ae)&&!b(V,ae)?!1:Ne||!b(this,ae)||!b(he,ae)||b(this,ie)&&this[ie][ae]?Ne:!0},me=function(te,ae){var Ne=k(te),Ue=$(ae,!0);if(!(Ne===E&&b(he,Ue)&&!b(V,Ue))){var ut=le(Ne,Ue);return ut&&b(he,Ue)&&!(b(Ne,ie)&&Ne[ie][Ue])&&(ut.enumerable=!0),ut}},Se=function(te){var ae=ve(k(te)),Ne=[];return se(ae,function(Ue){!b(he,Ue)&&!b(Le,Ue)&&Ne.push(Ue)}),Ne},Me=function(te){var ae=te===E,Ne=ve(ae?V:k(te)),Ue=[];return se(Ne,function(ut){b(he,ut)&&(!ae||b(E,ut))&&Ue.push(he[ut])}),Ue};if(f||(L=function(){if(this instanceof L)throw TypeError("Symbol is not a constructor");var te=!arguments.length||arguments[0]===void 0?void 0:String(arguments[0]),ae=Be(te),Ne=function(Ue){this===E&&Ne.call(V,Ue),b(this,ie)&&b(this[ie],ae)&&(this[ie][ae]=!1),qe(this,ae,O(1,Ue))};return m&&Re&&qe(E,ae,{configurable:!0,set:Ne}),tt(ae,te)},X(L[je],"toString",function(){return Ae(this).tag}),X(L,"withoutSetter",function(de){return tt(Be(de),de)}),B.f=ee,q.f=v,R.f=me,A.f=M.f=Se,G.f=Me,J.f=function(de){return tt(pe(de),de)},m&&(ue(L[je],"description",{configurable:!0,get:function(){return Ae(this).description}}),d||X(E,"propertyIsEnumerable",ee,{unsafe:!0}))),a({global:!0,wrap:!0,forced:!f,sham:!f},{Symbol:L}),se(F(ke),function(de){fe(de)}),a({target:ye,stat:!0,forced:!f},{for:function(de){var te=String(de);if(b(H,te))return H[te];var ae=L(te);return H[te]=ae,Ee[ae]=te,ae},keyFor:function(te){if(!z(te))throw TypeError(te+" is not a symbol");if(b(Ee,te))return Ee[te]},useSetter:function(){Re=!0},useSimple:function(){Re=!1}}),a({target:"Object",stat:!0,forced:!f,sham:!m},{create:K,defineProperty:v,defineProperties:I,getOwnPropertyDescriptor:me}),a({target:"Object",stat:!0,forced:!f},{getOwnPropertyNames:Se,getOwnPropertySymbols:Me}),a({target:"Object",stat:!0,forced:p(function(){G.f(1)})},{getOwnPropertySymbols:function(te){return G.f(C(te))}}),Z){var oe=!f||p(function(){var de=L();return Z([de])!="[null]"||Z({a:de})!="{}"||Z(Object(de))!="{}"});a({target:"JSON",stat:!0,forced:oe},{stringify:function(te,ae,Ne){for(var Ue=[te],ut=1,bn;arguments.length>ut;)Ue.push(arguments[ut++]);if(bn=ae,!(!y(ae)&&te===void 0||z(te)))return g(ae)||(ae=function(Kn,Yn){if(typeof bn=="function"&&(Yn=bn.call(this,Kn,Yn)),!z(Yn))return Yn}),Ue[1]=ae,Z.apply(null,Ue)}})}L[je][Ie]||re(L[je],Ie,L[je].valueOf),we(L,ye),Le[ie]=!0},a630:function(i,r,s){var a=s("23e7"),l=s("4df4"),u=s("1c7e"),d=!u(function(m){Array.from(m)});a({target:"Array",stat:!0,forced:d},{from:l})},a640:function(i,r,s){var a=s("d039");i.exports=function(l,u){var d=[][l];return!!d&&a(function(){d.call(null,u||function(){throw 1},1)})}},a691:function(i,r){var s=Math.ceil,a=Math.floor;i.exports=function(l){return isNaN(l=+l)?0:(l>0?a:s)(l)}},ab13:function(i,r,s){var a=s("b622"),l=a("match");i.exports=function(u){var d=/./;try{"/./"[u](d)}catch{try{return d[l]=!1,"/./"[u](d)}catch{}}return!1}},ac1f:function(i,r,s){var a=s("23e7"),l=s("9263");a({target:"RegExp",proto:!0,forced:/./.exec!==l},{exec:l})},ad6d:function(i,r,s){var a=s("825a");i.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(i,r,s){var a=s("83ab"),l=s("d039"),u=s("5135"),d=Object.defineProperty,m={},f=function(h){throw h};i.exports=function(h,p){if(u(m,h))return m[h];p||(p={});var b=[][h],g=u(p,"ACCESSORS")?p.ACCESSORS:!1,y=u(p,0)?p[0]:f,w=u(p,1)?p[1]:void 0;return m[h]=!!b&&!l(function(){if(g&&!a)return!0;var C={length:-1};g?d(C,1,{enumerable:!0,get:f}):C[1]=1,b.call(C,y,w)})}},ae93:function(i,r,s){var a=s("e163"),l=s("9112"),u=s("5135"),d=s("b622"),m=s("c430"),f=d("iterator"),h=!1,p=function(){return this},b,g,y;[].keys&&(y=[].keys(),"next"in y?(g=a(a(y)),g!==Object.prototype&&(b=g)):h=!0),b==null&&(b={}),!m&&!u(b,f)&&l(b,f,p),i.exports={IteratorPrototype:b,BUGGY_SAFARI_ITERATORS:h}},b041:function(i,r,s){var a=s("00ee"),l=s("f5df");i.exports=a?{}.toString:function(){return"[object "+l(this)+"]"}},b0c0:function(i,r,s){var a=s("83ab"),l=s("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(i,r,s){var a=s("da84"),l=s("5692"),u=s("5135"),d=s("90e3"),m=s("4930"),f=s("fdbf"),h=l("wks"),p=a.Symbol,b=f?p:p&&p.withoutSetter||d;i.exports=function(g){return u(h,g)||(m&&u(p,g)?h[g]=p[g]:h[g]=b("Symbol."+g)),h[g]}},b64b:function(i,r,s){var a=s("23e7"),l=s("7b0b"),u=s("df75"),d=s("d039"),m=d(function(){u(1)});a({target:"Object",stat:!0,forced:m},{keys:function(h){return u(l(h))}})},b727:function(i,r,s){var a=s("0366"),l=s("44ad"),u=s("7b0b"),d=s("50c4"),m=s("65f0"),f=[].push,h=function(p){var b=p==1,g=p==2,y=p==3,w=p==4,C=p==6,k=p==5||C;return function($,O,j,F){for(var A=u($),M=l(A),G=a(O,j,3),R=d(M.length),q=0,B=F||m,re=b?B($,R):g?B($,0):void 0,X,ce;R>q;q++)if((k||q in M)&&(X=M[q],ce=G(X,q,A),p)){if(b)re[q]=ce;else if(ce)switch(p){case 3:return!0;case 5:return X;case 6:return q;case 2:f.call(re,X)}else if(w)return!1}return C?-1:y||w?w:re}};i.exports={forEach:h(0),map:h(1),filter:h(2),some:h(3),every:h(4),find:h(5),findIndex:h(6)}},c04e:function(i,r,s){var a=s("861d");i.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(i,r){i.exports=!1},c6b6:function(i,r){var s={}.toString;i.exports=function(a){return s.call(a).slice(8,-1)}},c6cd:function(i,r,s){var a=s("da84"),l=s("ce4e"),u="__core-js_shared__",d=a[u]||l(u,{});i.exports=d},c740:function(i,r,s){var a=s("23e7"),l=s("b727").findIndex,u=s("44d2"),d=s("ae40"),m="findIndex",f=!0,h=d(m);m in[]&&Array(1)[m](function(){f=!1}),a({target:"Array",proto:!0,forced:f||!h},{findIndex:function(b){return l(this,b,arguments.length>1?arguments[1]:void 0)}}),u(m)},c8ba:function(i,r){var s;s=function(){return this}();try{s=s||new Function("return this")()}catch{typeof window=="object"&&(s=window)}i.exports=s},c975:function(i,r,s){var a=s("23e7"),l=s("4d64").indexOf,u=s("a640"),d=s("ae40"),m=[].indexOf,f=!!m&&1/[1].indexOf(1,-0)<0,h=u("indexOf"),p=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:f||!h||!p},{indexOf:function(g){return f?m.apply(this,arguments)||0:l(this,g,arguments.length>1?arguments[1]:void 0)}})},ca84:function(i,r,s){var a=s("5135"),l=s("fc6a"),u=s("4d64").indexOf,d=s("d012");i.exports=function(m,f){var h=l(m),p=0,b=[],g;for(g in h)!a(d,g)&&a(h,g)&&b.push(g);for(;f.length>p;)a(h,g=f[p++])&&(~u(b,g)||b.push(g));return b}},caad:function(i,r,s){var a=s("23e7"),l=s("4d64").includes,u=s("44d2"),d=s("ae40"),m=d("indexOf",{ACCESSORS:!0,1:0});a({target:"Array",proto:!0,forced:!m},{includes:function(h){return l(this,h,arguments.length>1?arguments[1]:void 0)}}),u("includes")},cc12:function(i,r,s){var a=s("da84"),l=s("861d"),u=a.document,d=l(u)&&l(u.createElement);i.exports=function(m){return d?u.createElement(m):{}}},ce4e:function(i,r,s){var a=s("da84"),l=s("9112");i.exports=function(u,d){try{l(a,u,d)}catch{a[u]=d}return d}},d012:function(i,r){i.exports={}},d039:function(i,r){i.exports=function(s){try{return!!s()}catch{return!0}}},d066:function(i,r,s){var a=s("428f"),l=s("da84"),u=function(d){return typeof d=="function"?d:void 0};i.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(i,r,s){var a={}.propertyIsEnumerable,l=Object.getOwnPropertyDescriptor,u=l&&!a.call({1:2},1);r.f=u?function(m){var f=l(this,m);return!!f&&f.enumerable}:a},d28b:function(i,r,s){var a=s("746f");a("iterator")},d2bb:function(i,r,s){var a=s("825a"),l=s("3bbe");i.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(h,p){return a(h),l(p),u?m.call(h,p):h.__proto__=p,h}}():void 0)},d3b7:function(i,r,s){var a=s("00ee"),l=s("6eeb"),u=s("b041");a||l(Object.prototype,"toString",u,{unsafe:!0})},d44e:function(i,r,s){var a=s("9bf2").f,l=s("5135"),u=s("b622"),d=u("toStringTag");i.exports=function(m,f,h){m&&!l(m=h?m:m.prototype,d)&&a(m,d,{configurable:!0,value:f})}},d58f:function(i,r,s){var a=s("1c0b"),l=s("7b0b"),u=s("44ad"),d=s("50c4"),m=function(f){return function(h,p,b,g){a(p);var y=l(h),w=u(y),C=d(y.length),k=f?C-1:0,$=f?-1:1;if(b<2)for(;;){if(k in w){g=w[k],k+=$;break}if(k+=$,f?k<0:C<=k)throw TypeError("Reduce of empty array with no initial value")}for(;f?k>=0:C>k;k+=$)k in w&&(g=p(g,w[k],k,y));return g}};i.exports={left:m(!1),right:m(!0)}},d784:function(i,r,s){s("ac1f");var a=s("6eeb"),l=s("d039"),u=s("b622"),d=s("9263"),m=s("9112"),f=u("species"),h=!l(function(){var w=/./;return w.exec=function(){var C=[];return C.groups={a:"7"},C},"".replace(w,"$<a>")!=="7"}),p=function(){return"a".replace(/./,"$0")==="$0"}(),b=u("replace"),g=function(){return/./[b]?/./[b]("a","$0")==="":!1}(),y=!l(function(){var w=/(?:)/,C=w.exec;w.exec=function(){return C.apply(this,arguments)};var k="ab".split(w);return k.length!==2||k[0]!=="a"||k[1]!=="b"});i.exports=function(w,C,k,$){var O=u(w),j=!l(function(){var q={};return q[O]=function(){return 7},""[w](q)!=7}),F=j&&!l(function(){var q=!1,B=/a/;return w==="split"&&(B={},B.constructor={},B.constructor[f]=function(){return B},B.flags="",B[O]=/./[O]),B.exec=function(){return q=!0,null},B[O](""),!q});if(!j||!F||w==="replace"&&!(h&&p&&!g)||w==="split"&&!y){var A=/./[O],M=k(O,""[w],function(q,B,re,X,ce){return B.exec===d?j&&!ce?{done:!0,value:A.call(B,re,X)}:{done:!0,value:q.call(re,B,X)}:{done:!1}},{REPLACE_KEEPS_$0:p,REGEXP_REPLACE_SUBSTITUTES_UNDEFINED_CAPTURE:g}),G=M[0],R=M[1];a(String.prototype,w,G),a(RegExp.prototype,O,C==2?function(q,B){return R.call(q,this,B)}:function(q){return R.call(q,this)})}$&&m(RegExp.prototype[O],"sham",!0)}},d81d:function(i,r,s){var a=s("23e7"),l=s("b727").map,u=s("1dde"),d=s("ae40"),m=u("map"),f=d("map");a({target:"Array",proto:!0,forced:!m||!f},{map:function(p){return l(this,p,arguments.length>1?arguments[1]:void 0)}})},da84:function(i,r,s){(function(a){var l=function(u){return u&&u.Math==Math&&u};i.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,s("c8ba"))},dbb4:function(i,r,s){var a=s("23e7"),l=s("83ab"),u=s("56ef"),d=s("fc6a"),m=s("06cf"),f=s("8418");a({target:"Object",stat:!0,sham:!l},{getOwnPropertyDescriptors:function(p){for(var b=d(p),g=m.f,y=u(b),w={},C=0,k,$;y.length>C;)$=g(b,k=y[C++]),$!==void 0&&f(w,k,$);return w}})},dbf1:function(i,r,s){(function(a){s.d(r,"a",function(){return u});function l(){return typeof window!="undefined"?window.console:a.console}var u=l()}).call(this,s("c8ba"))},ddb0:function(i,r,s){var a=s("da84"),l=s("fdbc"),u=s("e260"),d=s("9112"),m=s("b622"),f=m("iterator"),h=m("toStringTag"),p=u.values;for(var b in l){var g=a[b],y=g&&g.prototype;if(y){if(y[f]!==p)try{d(y,f,p)}catch{y[f]=p}if(y[h]||d(y,h,b),l[b]){for(var w in u)if(y[w]!==u[w])try{d(y,w,u[w])}catch{y[w]=u[w]}}}}},df75:function(i,r,s){var a=s("ca84"),l=s("7839");i.exports=Object.keys||function(d){return a(d,l)}},e01a:function(i,r,s){var a=s("23e7"),l=s("83ab"),u=s("da84"),d=s("5135"),m=s("861d"),f=s("9bf2").f,h=s("e893"),p=u.Symbol;if(l&&typeof p=="function"&&(!("description"in p.prototype)||p().description!==void 0)){var b={},g=function(){var O=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),j=this instanceof g?new p(O):O===void 0?p():p(O);return O===""&&(b[j]=!0),j};h(g,p);var y=g.prototype=p.prototype;y.constructor=g;var w=y.toString,C=String(p("test"))=="Symbol(test)",k=/^Symbol\((.*)\)[^)]+$/;f(y,"description",{configurable:!0,get:function(){var O=m(this)?this.valueOf():this,j=w.call(O);if(d(b,O))return"";var F=C?j.slice(7,-1):j.replace(k,"$1");return F===""?void 0:F}}),a({global:!0,forced:!0},{Symbol:g})}},e163:function(i,r,s){var a=s("5135"),l=s("7b0b"),u=s("f772"),d=s("e177"),m=u("IE_PROTO"),f=Object.prototype;i.exports=d?Object.getPrototypeOf:function(h){return h=l(h),a(h,m)?h[m]:typeof h.constructor=="function"&&h instanceof h.constructor?h.constructor.prototype:h instanceof Object?f:null}},e177:function(i,r,s){var a=s("d039");i.exports=!a(function(){function l(){}return l.prototype.constructor=null,Object.getPrototypeOf(new l)!==l.prototype})},e260:function(i,r,s){var a=s("fc6a"),l=s("44d2"),u=s("3f8c"),d=s("69f3"),m=s("7dd0"),f="Array Iterator",h=d.set,p=d.getterFor(f);i.exports=m(Array,"Array",function(b,g){h(this,{type:f,target:a(b),index:0,kind:g})},function(){var b=p(this),g=b.target,y=b.kind,w=b.index++;return!g||w>=g.length?(b.target=void 0,{value:void 0,done:!0}):y=="keys"?{value:w,done:!1}:y=="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(i,r,s){var a=s("23e7"),l=s("d039"),u=s("fc6a"),d=s("06cf").f,m=s("83ab"),f=l(function(){d(1)}),h=!m||f;a({target:"Object",stat:!0,forced:h,sham:!m},{getOwnPropertyDescriptor:function(b,g){return d(u(b),g)}})},e538:function(i,r,s){var a=s("b622");r.f=a},e893:function(i,r,s){var a=s("5135"),l=s("56ef"),u=s("06cf"),d=s("9bf2");i.exports=function(m,f){for(var h=l(f),p=d.f,b=u.f,g=0;g<h.length;g++){var y=h[g];a(m,y)||p(m,y,b(f,y))}}},e8b5:function(i,r,s){var a=s("c6b6");i.exports=Array.isArray||function(u){return a(u)=="Array"}},e95a:function(i,r,s){var a=s("b622"),l=s("3f8c"),u=a("iterator"),d=Array.prototype;i.exports=function(m){return m!==void 0&&(l.Array===m||d[u]===m)}},f5df:function(i,r,s){var a=s("00ee"),l=s("c6b6"),u=s("b622"),d=u("toStringTag"),m=l(function(){return arguments}())=="Arguments",f=function(h,p){try{return h[p]}catch{}};i.exports=a?l:function(h){var p,b,g;return h===void 0?"Undefined":h===null?"Null":typeof(b=f(p=Object(h),d))=="string"?b:m?l(p):(g=l(p))=="Object"&&typeof p.callee=="function"?"Arguments":g}},f772:function(i,r,s){var a=s("5692"),l=s("90e3"),u=a("keys");i.exports=function(d){return u[d]||(u[d]=l(d))}},fb15:function(i,r,s){if(s.r(r),typeof window!="undefined"){var a=window.document.currentScript;{var l=s("8875");a=l(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:l})}var u=a&&a.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);u&&(s.p=u[1])}s("99af"),s("4de4"),s("4160"),s("c975"),s("d81d"),s("a434"),s("159b"),s("a4d3"),s("e439"),s("dbb4"),s("b64b");function d(z,v,I){return v in z?Object.defineProperty(z,v,{value:I,enumerable:!0,configurable:!0,writable:!0}):z[v]=I,z}function m(z,v){var I=Object.keys(z);if(Object.getOwnPropertySymbols){var K=Object.getOwnPropertySymbols(z);v&&(K=K.filter(function(ee){return Object.getOwnPropertyDescriptor(z,ee).enumerable})),I.push.apply(I,K)}return I}function f(z){for(var v=1;v<arguments.length;v++){var I=arguments[v]!=null?arguments[v]:{};v%2?m(Object(I),!0).forEach(function(K){d(z,K,I[K])}):Object.getOwnPropertyDescriptors?Object.defineProperties(z,Object.getOwnPropertyDescriptors(I)):m(Object(I)).forEach(function(K){Object.defineProperty(z,K,Object.getOwnPropertyDescriptor(I,K))})}return z}function h(z){if(Array.isArray(z))return z}s("e01a"),s("d28b"),s("e260"),s("d3b7"),s("3ca3"),s("ddb0");function p(z,v){if(!(typeof Symbol=="undefined"||!(Symbol.iterator in Object(z)))){var I=[],K=!0,ee=!1,me=void 0;try{for(var Se=z[Symbol.iterator](),Me;!(K=(Me=Se.next()).done)&&(I.push(Me.value),!(v&&I.length===v));K=!0);}catch(oe){ee=!0,me=oe}finally{try{!K&&Se.return!=null&&Se.return()}finally{if(ee)throw me}}return I}}s("a630"),s("fb6a"),s("b0c0"),s("25f0");function b(z,v){(v==null||v>z.length)&&(v=z.length);for(var I=0,K=new Array(v);I<v;I++)K[I]=z[I];return K}function g(z,v){if(!!z){if(typeof z=="string")return b(z,v);var I=Object.prototype.toString.call(z).slice(8,-1);if(I==="Object"&&z.constructor&&(I=z.constructor.name),I==="Map"||I==="Set")return Array.from(z);if(I==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(I))return b(z,v)}}function y(){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(z,v){return h(z)||p(z,v)||g(z,v)||y()}function C(z){if(Array.isArray(z))return b(z)}function k(z){if(typeof Symbol!="undefined"&&Symbol.iterator in Object(z))return Array.from(z)}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 O(z){return C(z)||k(z)||g(z)||$()}var j=s("a352"),F=s.n(j);function A(z){z.parentElement!==null&&z.parentElement.removeChild(z)}function M(z,v,I){var K=I===0?z.children[0]:z.children[I-1].nextSibling;z.insertBefore(v,K)}var G=s("dbf1");s("13d5"),s("4fad"),s("ac1f"),s("5319");function R(z){var v=Object.create(null);return function(K){var ee=v[K];return ee||(v[K]=z(K))}}var q=/-(\w)/g,B=R(function(z){return z.replace(q,function(v,I){return I.toUpperCase()})});s("5db7"),s("73d9");var re=["Start","Add","Remove","Update","End"],X=["Choose","Unchoose","Sort","Filter","Clone"],ce=["Move"],ge=[ce,re,X].flatMap(function(z){return z}).map(function(z){return"on".concat(z)}),Le={manage:ce,manageAndEmit:re,emit:X};function Be(z){return ge.indexOf(z)!==-1}s("caad"),s("2ca0");var pe=["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 J(z){return pe.includes(z)}function fe(z){return["transition-group","TransitionGroup"].includes(z)}function we(z){return["id","class","role","style"].includes(z)||z.startsWith("data-")||z.startsWith("aria-")||z.startsWith("on")}function U(z){return z.reduce(function(v,I){var K=w(I,2),ee=K[0],me=K[1];return v[ee]=me,v},{})}function se(z){var v=z.$attrs,I=z.componentData,K=I===void 0?{}:I,ee=U(Object.entries(v).filter(function(me){var Se=w(me,2),Me=Se[0];return Se[1],we(Me)}));return f(f({},ee),K)}function ie(z){var v=z.$attrs,I=z.callBackBuilder,K=U(ye(v));Object.entries(I).forEach(function(me){var Se=w(me,2),Me=Se[0],oe=Se[1];Le[Me].forEach(function(de){K["on".concat(de)]=oe(de)})});var ee="[data-draggable]".concat(K.draggable||"");return f(f({},K),{},{draggable:ee})}function ye(z){return Object.entries(z).filter(function(v){var I=w(v,2),K=I[0];return I[1],!we(K)}).map(function(v){var I=w(v,2),K=I[0],ee=I[1];return[B(K),ee]}).filter(function(v){var I=w(v,2),K=I[0];return I[1],!Be(K)})}s("c740");function je(z,v){if(!(z instanceof v))throw new TypeError("Cannot call a class as a function")}function Ie(z,v){for(var I=0;I<v.length;I++){var K=v[I];K.enumerable=K.enumerable||!1,K.configurable=!0,"value"in K&&(K.writable=!0),Object.defineProperty(z,K.key,K)}}function $e(z,v,I){return v&&Ie(z.prototype,v),I&&Ie(z,I),z}var Ae=function(v){var I=v.el;return I},E=function(v,I){return v.__draggable_context=I},L=function(v){return v.__draggable_context},Z=function(){function z(v){var I=v.nodes,K=I.header,ee=I.default,me=I.footer,Se=v.root,Me=v.realList;je(this,z),this.defaultNodes=ee,this.children=[].concat(O(K),O(ee),O(me)),this.externalComponent=Se.externalComponent,this.rootTransition=Se.transition,this.tag=Se.tag,this.realList=Me}return $e(z,[{key:"render",value:function(I,K){var ee=this.tag,me=this.children,Se=this._isRootComponent,Me=Se?{default:function(){return me}}:me;return I(ee,K,Me)}},{key:"updated",value:function(){var I=this.defaultNodes,K=this.realList;I.forEach(function(ee,me){E(Ae(ee),{element:K[me],index:me})})}},{key:"getUnderlyingVm",value:function(I){return L(I)}},{key:"getVmIndexFromDomIndex",value:function(I,K){var ee=this.defaultNodes,me=ee.length,Se=K.children,Me=Se.item(I);if(Me===null)return me;var oe=L(Me);if(oe)return oe.index;if(me===0)return 0;var de=Ae(ee[0]),te=O(Se).findIndex(function(ae){return ae===de});return I<te?0:me}},{key:"_isRootComponent",get:function(){return this.externalComponent||this.rootTransition}}]),z}(),le=s("8bbf");function ue(z,v){var I=z[v];return I?I():[]}function ve(z){var v=z.$slots,I=z.realList,K=z.getKey,ee=I||[],me=["header","footer"].map(function(ae){return ue(v,ae)}),Se=w(me,2),Me=Se[0],oe=Se[1],de=v.item;if(!de)throw new Error("draggable element must have an item slot");var te=ee.flatMap(function(ae,Ne){return de({element:ae,index:Ne}).map(function(Ue){return Ue.key=K(ae),Ue.props=f(f({},Ue.props||{}),{},{"data-draggable":!0}),Ue})});if(te.length!==ee.length)throw new Error("Item slot must have only one child");return{header:Me,footer:oe,default:te}}function xe(z){var v=fe(z),I=!J(z)&&!v;return{transition:v,externalComponent:I,tag:I?Object(le.resolveComponent)(z):v?le.TransitionGroup:z}}function he(z){var v=z.$slots,I=z.tag,K=z.realList,ee=z.getKey,me=ve({$slots:v,realList:K,getKey:ee}),Se=xe(I);return new Z({nodes:me,root:Se,realList:K})}function V(z,v){var I=this;Object(le.nextTick)(function(){return I.$emit(z.toLowerCase(),v)})}function H(z){var v=this;return function(I,K){if(v.realList!==null)return v["onDrag".concat(z)](I,K)}}function Ee(z){var v=this,I=H.call(this,z);return function(K,ee){I.call(v,K,ee),V.call(v,z,K)}}var ke=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(v){return v}},tag:{type:String,default:"div"},move:{type:Function,default:null},componentData:{type:Object,required:!1,default:null}},Re=["update:modelValue","change"].concat(O([].concat(O(Le.manageAndEmit),O(Le.emit)).map(function(z){return z.toLowerCase()}))),qe=Object(le.defineComponent)({name:"draggable",inheritAttrs:!1,props:De,emits:Re,data:function(){return{error:!1}},render:function(){try{this.error=!1;var v=this.$slots,I=this.$attrs,K=this.tag,ee=this.componentData,me=this.realList,Se=this.getKey,Me=he({$slots:v,tag:K,realList:me,getKey:Se});this.componentStructure=Me;var oe=se({$attrs:I,componentData:ee});return Me.render(le.h,oe)}catch(de){return this.error=!0,Object(le.h)("pre",{style:{color:"red"}},de.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 v=this;if(!this.error){var I=this.$attrs,K=this.$el,ee=this.componentStructure;ee.updated();var me=ie({$attrs:I,callBackBuilder:{manageAndEmit:function(oe){return Ee.call(v,oe)},emit:function(oe){return V.bind(v,oe)},manage:function(oe){return H.call(v,oe)}}}),Se=K.nodeType===1?K:K.parentElement;this._sortable=new F.a(Se,me),this.targetDomElement=Se,Se.__draggable_component__=this}},updated:function(){this.componentStructure.updated()},beforeUnmount:function(){this._sortable!==void 0&&this._sortable.destroy()},computed:{realList:function(){var v=this.list;return v||this.modelValue},getKey:function(){var v=this.itemKey;return typeof v=="function"?v:function(I){return I[v]}}},watch:{$attrs:{handler:function(v){var I=this._sortable;!I||ye(v).forEach(function(K){var ee=w(K,2),me=ee[0],Se=ee[1];I.option(me,Se)})},deep:!0}},methods:{getUnderlyingVm:function(v){return this.componentStructure.getUnderlyingVm(v)||null},getUnderlyingPotencialDraggableComponent:function(v){return v.__draggable_component__},emitChanges:function(v){var I=this;Object(le.nextTick)(function(){return I.$emit("change",v)})},alterList:function(v){if(this.list){v(this.list);return}var I=O(this.modelValue);v(I),this.$emit("update:modelValue",I)},spliceList:function(){var v=arguments,I=function(ee){return ee.splice.apply(ee,O(v))};this.alterList(I)},updatePosition:function(v,I){var K=function(me){return me.splice(I,0,me.splice(v,1)[0])};this.alterList(K)},getRelatedContextFromMoveEvent:function(v){var I=v.to,K=v.related,ee=this.getUnderlyingPotencialDraggableComponent(I);if(!ee)return{component:ee};var me=ee.realList,Se={list:me,component:ee};if(I!==K&&me){var Me=ee.getUnderlyingVm(K)||{};return f(f({},Me),Se)}return Se},getVmIndexFromDomIndex:function(v){return this.componentStructure.getVmIndexFromDomIndex(v,this.targetDomElement)},onDragStart:function(v){this.context=this.getUnderlyingVm(v.item),v.item._underlying_vm_=this.clone(this.context.element),ke=v.item},onDragAdd:function(v){var I=v.item._underlying_vm_;if(I!==void 0){A(v.item);var K=this.getVmIndexFromDomIndex(v.newIndex);this.spliceList(K,0,I);var ee={element:I,newIndex:K};this.emitChanges({added:ee})}},onDragRemove:function(v){if(M(this.$el,v.item,v.oldIndex),v.pullMode==="clone"){A(v.clone);return}var I=this.context,K=I.index,ee=I.element;this.spliceList(K,1);var me={element:ee,oldIndex:K};this.emitChanges({removed:me})},onDragUpdate:function(v){A(v.item),M(v.from,v.item,v.oldIndex);var I=this.context.index,K=this.getVmIndexFromDomIndex(v.newIndex);this.updatePosition(I,K);var ee={element:this.context.element,oldIndex:I,newIndex:K};this.emitChanges({moved:ee})},computeFutureIndex:function(v,I){if(!v.element)return 0;var K=O(I.to.children).filter(function(Me){return Me.style.display!=="none"}),ee=K.indexOf(I.related),me=v.component.getVmIndexFromDomIndex(ee),Se=K.indexOf(ke)!==-1;return Se||!I.willInsertAfter?me:me+1},onDragMove:function(v,I){var K=this.move,ee=this.realList;if(!K||!ee)return!0;var me=this.getRelatedContextFromMoveEvent(v),Se=this.computeFutureIndex(me,v),Me=f(f({},this.context),{},{futureIndex:Se}),oe=f(f({},v),{},{relatedContext:me,draggedContext:Me});return K(oe,I)},onDragEnd:function(){ke=null}}}),tt=qe;r.default=tt},fb6a:function(i,r,s){var a=s("23e7"),l=s("861d"),u=s("e8b5"),d=s("23cb"),m=s("50c4"),f=s("fc6a"),h=s("8418"),p=s("b622"),b=s("1dde"),g=s("ae40"),y=b("slice"),w=g("slice",{ACCESSORS:!0,0:0,1:2}),C=p("species"),k=[].slice,$=Math.max;a({target:"Array",proto:!0,forced:!y||!w},{slice:function(j,F){var A=f(this),M=m(A.length),G=d(j,M),R=d(F===void 0?M:F,M),q,B,re;if(u(A)&&(q=A.constructor,typeof q=="function"&&(q===Array||u(q.prototype))?q=void 0:l(q)&&(q=q[C],q===null&&(q=void 0)),q===Array||q===void 0))return k.call(A,G,R);for(B=new(q===void 0?Array:q)($(R-G,0)),re=0;G<R;G++,re++)G in A&&h(B,re,A[G]);return B.length=re,B}})},fc6a:function(i,r,s){var a=s("44ad"),l=s("1d80");i.exports=function(u){return a(l(u))}},fdbc:function(i,r){i.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(i,r,s){var a=s("4930");i.exports=a&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}}).default})})(Gv);var G8=zv(Gv.exports);const W8={name:"PageQueue",components:{ContentWithHeading:ht,ListItemQueueItem:w5,draggable:G8,ModalDialogQueueItem:qv,ModalDialogAddUrlStream:V6,ModalDialogPlaylistSave:l8},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(){Y.queue_clear()},update_show_next_items:function(e){this.$store.commit(fv,!this.show_only_next_items)},remove:function(e){Y.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],o=n.position+(e.newIndex-e.oldIndex);o!==t&&Y.queue_move(n.id,o)},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)}}},K8=["textContent"],Y8=["textContent"],Z8={class:"buttons is-centered"},J8={class:"icon"},X8=["textContent"],Q8={class:"icon"},ez=["textContent"],tz={class:"icon"},nz=["textContent"],oz={class:"icon"},iz=["textContent"],rz=["disabled"],sz={class:"icon"},az=["textContent"],lz=["onClick"],cz={class:"icon has-text-dark"},uz=["onClick"],dz={class:"icon has-text-grey"};function fz(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-item-queue-item"),l=P("draggable"),u=P("modal-dialog-queue-item"),d=P("modal-dialog-add-url-stream"),m=P("modal-dialog-playlist-save"),f=P("content-with-heading");return S(),Ce(f,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.queue.title"))},null,8,K8),c("p",{class:"heading",textContent:_(e.$t("page.queue.count",{count:r.queue.count}))},null,8,Y8)]),"heading-right":T(()=>[c("div",Z8,[c("a",{class:Ye(["button is-small",{"is-info":r.show_only_next_items}]),onClick:t[0]||(t[0]=(...h)=>r.update_show_next_items&&r.update_show_next_items(...h))},[c("span",J8,[x(s,{name:"arrow-collapse-down",size:"16"})]),c("span",{textContent:_(e.$t("page.queue.hide-previous"))},null,8,X8)],2),c("a",{class:"button is-small",onClick:t[1]||(t[1]=(...h)=>r.open_add_stream_dialog&&r.open_add_stream_dialog(...h))},[c("span",Q8,[x(s,{name:"web",size:"16"})]),c("span",{textContent:_(e.$t("page.queue.add-stream"))},null,8,ez)]),c("a",{class:Ye(["button is-small",{"is-info":i.edit_mode}]),onClick:t[2]||(t[2]=h=>i.edit_mode=!i.edit_mode)},[c("span",tz,[x(s,{name:"pencil",size:"16"})]),c("span",{textContent:_(e.$t("page.queue.edit"))},null,8,nz)],2),c("a",{class:"button is-small",onClick:t[3]||(t[3]=(...h)=>r.queue_clear&&r.queue_clear(...h))},[c("span",oz,[x(s,{name:"delete-empty",size:"16"})]),c("span",{textContent:_(e.$t("page.queue.clear"))},null,8,iz)]),r.is_queue_save_allowed?(S(),D("a",{key:0,class:"button is-small",disabled:r.queue_items.length===0,onClick:t[4]||(t[4]=(...h)=>r.save_dialog&&r.save_dialog(...h))},[c("span",sz,[x(s,{name:"content-save",size:"16"})]),c("span",{textContent:_(e.$t("page.queue.save"))},null,8,az)],8,rz)):Q("",!0)])]),content:T(()=>[x(l,{modelValue:r.queue_items,"onUpdate:modelValue":t[5]||(t[5]=h=>r.queue_items=h),handle:".handle","item-key":"id",onEnd:r.move_item},{item:T(({element:h,index:p})=>[x(a,{item:h,position:p,current_position:r.current_position,show_only_next_items:r.show_only_next_items,edit_mode:i.edit_mode},{actions:T(()=>[i.edit_mode?Q("",!0):(S(),D("a",{key:0,onClick:bt(b=>r.open_dialog(h),["prevent","stop"])},[c("span",cz,[x(s,{name:"dots-vertical",size:"16"})])],8,lz)),h.id!==r.state.item_id&&i.edit_mode?(S(),D("a",{key:1,onClick:bt(b=>r.remove(h),["prevent","stop"])},[c("span",dz,[x(s,{name:"delete",size:"18"})])],8,uz)):Q("",!0)]),_:2},1032,["item","position","current_position","show_only_next_items","edit_mode"])]),_:1},8,["modelValue","onEnd"]),x(u,{show:i.show_details_modal,item:i.selected_item,onClose:t[6]||(t[6]=h=>i.show_details_modal=!1)},null,8,["show","item"]),x(d,{show:i.show_url_modal,onClose:t[7]||(t[7]=h=>i.show_url_modal=!1)},null,8,["show"]),r.is_queue_save_allowed?(S(),Ce(m,{key:0,show:i.show_pls_save_modal,onClose:t[8]||(t[8]=h=>i.show_pls_save_modal=!1)},null,8,["show"])):Q("",!0)]),_:1})}var mz=_e(W8,[["render",fz]]);function du(e){return[null,void 0,!1].indexOf(e)!==-1}function ip(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function rp(e){for(var t=1;t<arguments.length;t++){var n=arguments[t]!=null?arguments[t]:{};t%2?ip(Object(n),!0).forEach(function(o){hz(e,o,n[o])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ip(Object(n)).forEach(function(o){Object.defineProperty(e,o,Object.getOwnPropertyDescriptor(n,o))})}return e}function hz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function pz(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}function i_(e){var t={exports:{}};return e(t,t.exports),t.exports}function cd(e){return cd=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},cd(e)}var sp=i_(function(e,t){e.exports=function(){var n=["decimals","thousand","mark","prefix","suffix","encoder","decoder","negativeBefore","negative","edit","undo"];function o(p){return p.split("").reverse().join("")}function i(p,b){return p.substring(0,b.length)===b}function r(p,b){return p.slice(-1*b.length)===b}function s(p,b,g){if((p[b]||p[g])&&p[b]===p[g])throw new Error(b)}function a(p){return typeof p=="number"&&isFinite(p)}function l(p,b){return p=p.toString().split("e"),(+((p=(p=Math.round(+(p[0]+"e"+(p[1]?+p[1]+b:b)))).toString().split("e"))[0]+"e"+(p[1]?+p[1]-b:-b))).toFixed(b)}function u(p,b,g,y,w,C,k,$,O,j,F,A){var M,G,R,q=A,B="",re="";return C&&(A=C(A)),!!a(A)&&(p!==!1&&parseFloat(A.toFixed(p))===0&&(A=0),A<0&&(M=!0,A=Math.abs(A)),p!==!1&&(A=l(A,p)),(A=A.toString()).indexOf(".")!==-1?(R=(G=A.split("."))[0],g&&(B=g+G[1])):R=A,b&&(R=o(R).match(/.{1,3}/g),R=o(R.join(o(b)))),M&&$&&(re+=$),y&&(re+=y),M&&O&&(re+=O),re+=R,re+=B,w&&(re+=w),j&&(re=j(re,q)),re)}function d(p,b,g,y,w,C,k,$,O,j,F,A){var M,G="";return F&&(A=F(A)),!(!A||typeof A!="string")&&($&&i(A,$)&&(A=A.replace($,""),M=!0),y&&i(A,y)&&(A=A.replace(y,"")),O&&i(A,O)&&(A=A.replace(O,""),M=!0),w&&r(A,w)&&(A=A.slice(0,-1*w.length)),b&&(A=A.split(b).join("")),g&&(A=A.replace(g,".")),M&&(G+="-"),(G=(G+=A).replace(/[^0-9\.\-.]/g,""))!==""&&(G=Number(G),k&&(G=k(G)),!!a(G)&&G))}function m(p){var b,g,y,w={};for(p.suffix===void 0&&(p.suffix=p.postfix),b=0;b<n.length;b+=1)if((y=p[g=n[b]])===void 0)g!=="negative"||w.negativeBefore?g==="mark"&&w.thousand!=="."?w[g]=".":w[g]=!1:w[g]="-";else if(g==="decimals"){if(!(y>=0&&y<8))throw new Error(g);w[g]=y}else if(g==="encoder"||g==="decoder"||g==="edit"||g==="undo"){if(typeof y!="function")throw new Error(g);w[g]=y}else{if(typeof y!="string")throw new Error(g);w[g]=y}return s(w,"mark","thousand"),s(w,"prefix","negative"),s(w,"prefix","negativeBefore"),w}function f(p,b,g){var y,w=[];for(y=0;y<n.length;y+=1)w.push(p[n[y]]);return w.push(g),b.apply("",w)}function h(p){if(!(this instanceof h))return new h(p);cd(p)==="object"&&(p=m(p),this.to=function(b){return f(p,u,b)},this.from=function(b){return f(p,d,b)})}return h}()});function ap(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter(function(i){return Object.getOwnPropertyDescriptor(e,i).enumerable})),n.push.apply(n,o)}return n}function bz(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function gz(e,t,n){var o=ls(e),i=o.format,r=o.step,s=n.value,a=n.classList,l=Ot(function(){return i&&i.value?typeof i.value=="function"?{to:i.value}:sp(function(u){for(var d=1;d<arguments.length;d++){var m=arguments[d]!=null?arguments[d]:{};d%2?ap(Object(m),!0).forEach(function(f){bz(u,f,m[f])}):Object.getOwnPropertyDescriptors?Object.defineProperties(u,Object.getOwnPropertyDescriptors(m)):ap(Object(m)).forEach(function(f){Object.defineProperty(u,f,Object.getOwnPropertyDescriptor(m,f))})}return u}({},i.value)):sp({decimals:r.value>=0?0:2})});return{tooltipsFormat:Ot(function(){return Array.isArray(s.value)?s.value.map(function(u){return l.value}):l.value}),tooltipsMerge:function(u,d,m){var f=getComputedStyle(u).direction==="rtl",h=u.noUiSlider.options.direction==="rtl",p=u.noUiSlider.options.orientation==="vertical",b=u.noUiSlider.getTooltips(),g=u.noUiSlider.getOrigins();b.forEach(function(y,w){y&&g[w].appendChild(y)}),u.noUiSlider.on("update",function(y,w,C,k,$){var O=[[]],j=[[]],F=[[]],A=0;b[0]&&(O[0][0]=0,j[0][0]=$[0],F[0][0]=l.value.to(parseFloat(y[0])));for(var M=1;M<y.length;M++)(!b[M]||y[M]-y[M-1]>d)&&(O[++A]=[],F[A]=[],j[A]=[]),b[M]&&(O[A].push(M),F[A].push(l.value.to(parseFloat(y[M]))),j[A].push($[M]));O.forEach(function(G,R){for(var q=G.length,B=0;B<q;B++){var re=G[B];if(B===q-1){var X=0;j[R].forEach(function(Be){X+=1e3-Be});var ce=p?"bottom":"right",ge=h?0:q-1,Le=1e3-j[R][ge];X=(f&&!p?100:0)+X/q-Le,b[re].innerHTML=F[R].join(m),b[re].style.display="block",b[re].style[ce]=X+"%",a.value.tooltipHidden.split(" ").forEach(function(Be){b[re].classList.contains(Be)&&b[re].classList.remove(Be)})}else b[re].style.display="none",a.value.tooltipHidden.split(" ").forEach(function(Be){b[re].classList.add(Be)})}})})}}}function ks(e){return ks=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},ks(e)}var vz=pz(i_(function(e,t){(function(n){function o(z){return i(z)&&typeof z.from=="function"}function i(z){return ks(z)==="object"&&typeof z.to=="function"}function r(z){z.parentElement.removeChild(z)}function s(z){return z!=null}function a(z){z.preventDefault()}function l(z){return z.filter(function(v){return!this[v]&&(this[v]=!0)},{})}function u(z,v){return Math.round(z/v)*v}function d(z,v){var I=z.getBoundingClientRect(),K=z.ownerDocument,ee=K.documentElement,me=C(K);return/webkit.*Chrome.*Mobile/i.test(navigator.userAgent)&&(me.x=0),v?I.top+me.y-ee.clientTop:I.left+me.x-ee.clientLeft}function m(z){return typeof z=="number"&&!isNaN(z)&&isFinite(z)}function f(z,v,I){I>0&&(g(z,v),setTimeout(function(){y(z,v)},I))}function h(z){return Math.max(Math.min(z,100),0)}function p(z){return Array.isArray(z)?z:[z]}function b(z){var v=(z=String(z)).split(".");return v.length>1?v[1].length:0}function g(z,v){z.classList&&!/\s/.test(v)?z.classList.add(v):z.className+=" "+v}function y(z,v){z.classList&&!/\s/.test(v)?z.classList.remove(v):z.className=z.className.replace(new RegExp("(^|\\b)"+v.split(" ").join("|")+"(\\b|$)","gi")," ")}function w(z,v){return z.classList?z.classList.contains(v):new RegExp("\\b"+v+"\\b").test(z.className)}function C(z){var v=window.pageXOffset!==void 0,I=(z.compatMode||"")==="CSS1Compat";return{x:v?window.pageXOffset:I?z.documentElement.scrollLeft:z.body.scrollLeft,y:v?window.pageYOffset:I?z.documentElement.scrollTop:z.body.scrollTop}}function k(){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 z=!1;try{var v=Object.defineProperty({},"passive",{get:function(){z=!0}});window.addEventListener("test",null,v)}catch{}return z}function O(){return window.CSS&&CSS.supports&&CSS.supports("touch-action","none")}function j(z,v){return 100/(v-z)}function F(z,v,I){return 100*v/(z[I+1]-z[I])}function A(z,v){return F(z,z[0]<0?v+Math.abs(z[0]):v-z[0],0)}function M(z,v){return v*(z[1]-z[0])/100+z[0]}function G(z,v){for(var I=1;z>=v[I];)I+=1;return I}function R(z,v,I){if(I>=z.slice(-1)[0])return 100;var K=G(I,z),ee=z[K-1],me=z[K],Se=v[K-1],Me=v[K];return Se+A([ee,me],I)/j(Se,Me)}function q(z,v,I){if(I>=100)return z.slice(-1)[0];var K=G(I,v),ee=z[K-1],me=z[K],Se=v[K-1];return M([ee,me],(I-Se)*j(Se,v[K]))}function B(z,v,I,K){if(K===100)return K;var ee=G(K,z),me=z[ee-1],Se=z[ee];return I?K-me>(Se-me)/2?Se:me:v[ee-1]?z[ee-1]+u(K-z[ee-1],v[ee-1]):K}var re,X;n.PipsMode=void 0,(X=n.PipsMode||(n.PipsMode={})).Range="range",X.Steps="steps",X.Positions="positions",X.Count="count",X.Values="values",n.PipsType=void 0,(re=n.PipsType||(n.PipsType={}))[re.None=-1]="None",re[re.NoValue=0]="NoValue",re[re.LargeValue=1]="LargeValue",re[re.SmallValue=2]="SmallValue";var ce=function(){function z(v,I,K){var ee;this.xPct=[],this.xVal=[],this.xSteps=[],this.xNumSteps=[],this.xHighestCompleteStep=[],this.xSteps=[K||!1],this.xNumSteps=[!1],this.snap=I;var me=[];for(Object.keys(v).forEach(function(Se){me.push([p(v[Se]),Se])}),me.sort(function(Se,Me){return Se[0][0]-Me[0][0]}),ee=0;ee<me.length;ee++)this.handleEntryPoint(me[ee][1],me[ee][0]);for(this.xNumSteps=this.xSteps.slice(0),ee=0;ee<this.xNumSteps.length;ee++)this.handleStepPoint(ee,this.xNumSteps[ee])}return z.prototype.getDistance=function(v){for(var I=[],K=0;K<this.xNumSteps.length-1;K++)I[K]=F(this.xVal,v,K);return I},z.prototype.getAbsoluteDistance=function(v,I,K){var ee,me=0;if(v<this.xPct[this.xPct.length-1])for(;v>this.xPct[me+1];)me++;else v===this.xPct[this.xPct.length-1]&&(me=this.xPct.length-2);K||v!==this.xPct[me+1]||me++,I===null&&(I=[]);var Se=1,Me=I[me],oe=0,de=0,te=0,ae=0;for(ee=K?(v-this.xPct[me])/(this.xPct[me+1]-this.xPct[me]):(this.xPct[me+1]-v)/(this.xPct[me+1]-this.xPct[me]);Me>0;)oe=this.xPct[me+1+ae]-this.xPct[me+ae],I[me+ae]*Se+100-100*ee>100?(de=oe*ee,Se=(Me-100*ee)/I[me+ae],ee=1):(de=I[me+ae]*oe/100*Se,Se=0),K?(te-=de,this.xPct.length+ae>=1&&ae--):(te+=de,this.xPct.length-ae>=1&&ae++),Me=I[me+ae]*Se;return v+te},z.prototype.toStepping=function(v){return v=R(this.xVal,this.xPct,v)},z.prototype.fromStepping=function(v){return q(this.xVal,this.xPct,v)},z.prototype.getStep=function(v){return v=B(this.xPct,this.xSteps,this.snap,v)},z.prototype.getDefaultStep=function(v,I,K){var ee=G(v,this.xPct);return(v===100||I&&v===this.xPct[ee-1])&&(ee=Math.max(ee-1,1)),(this.xVal[ee]-this.xVal[ee-1])/K},z.prototype.getNearbySteps=function(v){var I=G(v,this.xPct);return{stepBefore:{startValue:this.xVal[I-2],step:this.xNumSteps[I-2],highestStep:this.xHighestCompleteStep[I-2]},thisStep:{startValue:this.xVal[I-1],step:this.xNumSteps[I-1],highestStep:this.xHighestCompleteStep[I-1]},stepAfter:{startValue:this.xVal[I],step:this.xNumSteps[I],highestStep:this.xHighestCompleteStep[I]}}},z.prototype.countStepDecimals=function(){var v=this.xNumSteps.map(b);return Math.max.apply(null,v)},z.prototype.hasNoSize=function(){return this.xVal[0]===this.xVal[this.xVal.length-1]},z.prototype.convert=function(v){return this.getStep(this.toStepping(v))},z.prototype.handleEntryPoint=function(v,I){var K;if(!m(K=v==="min"?0:v==="max"?100:parseFloat(v))||!m(I[0]))throw new Error("noUiSlider: 'range' value isn't numeric.");this.xPct.push(K),this.xVal.push(I[0]);var ee=Number(I[1]);K?this.xSteps.push(!isNaN(ee)&&ee):isNaN(ee)||(this.xSteps[0]=ee),this.xHighestCompleteStep.push(0)},z.prototype.handleStepPoint=function(v,I){if(I)if(this.xVal[v]!==this.xVal[v+1]){this.xSteps[v]=F([this.xVal[v],this.xVal[v+1]],I,0)/j(this.xPct[v],this.xPct[v+1]);var K=(this.xVal[v+1]-this.xVal[v])/this.xNumSteps[v],ee=Math.ceil(Number(K.toFixed(3))-1),me=this.xVal[v]+this.xNumSteps[v]*ee;this.xHighestCompleteStep[v]=me}else this.xSteps[v]=this.xHighestCompleteStep[v]=this.xVal[v]},z}(),ge={to:function(z){return z===void 0?"":z.toFixed(2)},from:Number},Le={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 pe(z,v){if(!m(v))throw new Error("noUiSlider: 'step' is not numeric.");z.singleStep=v}function J(z,v){if(!m(v))throw new Error("noUiSlider: 'keyboardPageMultiplier' is not numeric.");z.keyboardPageMultiplier=v}function fe(z,v){if(!m(v))throw new Error("noUiSlider: 'keyboardMultiplier' is not numeric.");z.keyboardMultiplier=v}function we(z,v){if(!m(v))throw new Error("noUiSlider: 'keyboardDefaultStep' is not numeric.");z.keyboardDefaultStep=v}function U(z,v){if(ks(v)!=="object"||Array.isArray(v))throw new Error("noUiSlider: 'range' is not an object.");if(v.min===void 0||v.max===void 0)throw new Error("noUiSlider: Missing 'min' or 'max' in 'range'.");z.spectrum=new ce(v,z.snap||!1,z.singleStep)}function se(z,v){if(v=p(v),!Array.isArray(v)||!v.length)throw new Error("noUiSlider: 'start' option is incorrect.");z.handles=v.length,z.start=v}function ie(z,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'snap' option must be a boolean.");z.snap=v}function ye(z,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'animate' option must be a boolean.");z.animate=v}function je(z,v){if(typeof v!="number")throw new Error("noUiSlider: 'animationDuration' option must be a number.");z.animationDuration=v}function Ie(z,v){var I,K=[!1];if(v==="lower"?v=[!0,!1]:v==="upper"&&(v=[!1,!0]),v===!0||v===!1){for(I=1;I<z.handles;I++)K.push(v);K.push(!1)}else{if(!Array.isArray(v)||!v.length||v.length!==z.handles+1)throw new Error("noUiSlider: 'connect' option doesn't match handle count.");K=v}z.connect=K}function $e(z,v){switch(v){case"horizontal":z.ort=0;break;case"vertical":z.ort=1;break;default:throw new Error("noUiSlider: 'orientation' option is invalid.")}}function Ae(z,v){if(!m(v))throw new Error("noUiSlider: 'margin' option must be numeric.");v!==0&&(z.margin=z.spectrum.getDistance(v))}function E(z,v){if(!m(v))throw new Error("noUiSlider: 'limit' option must be numeric.");if(z.limit=z.spectrum.getDistance(v),!z.limit||z.handles<2)throw new Error("noUiSlider: 'limit' option is only supported on linear sliders with 2 or more handles.")}function L(z,v){var I;if(!m(v)&&!Array.isArray(v))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(Array.isArray(v)&&v.length!==2&&!m(v[0])&&!m(v[1]))throw new Error("noUiSlider: 'padding' option must be numeric or array of exactly 2 numbers.");if(v!==0){for(Array.isArray(v)||(v=[v,v]),z.padding=[z.spectrum.getDistance(v[0]),z.spectrum.getDistance(v[1])],I=0;I<z.spectrum.xNumSteps.length-1;I++)if(z.padding[0][I]<0||z.padding[1][I]<0)throw new Error("noUiSlider: 'padding' option must be a positive number(s).");var K=v[0]+v[1],ee=z.spectrum.xVal[0];if(K/(z.spectrum.xVal[z.spectrum.xVal.length-1]-ee)>1)throw new Error("noUiSlider: 'padding' option must not exceed 100% of the range.")}}function Z(z,v){switch(v){case"ltr":z.dir=0;break;case"rtl":z.dir=1;break;default:throw new Error("noUiSlider: 'direction' option was not recognized.")}}function le(z,v){if(typeof v!="string")throw new Error("noUiSlider: 'behaviour' must be a string containing options.");var I=v.indexOf("tap")>=0,K=v.indexOf("drag")>=0,ee=v.indexOf("fixed")>=0,me=v.indexOf("snap")>=0,Se=v.indexOf("hover")>=0,Me=v.indexOf("unconstrained")>=0,oe=v.indexOf("drag-all")>=0;if(ee){if(z.handles!==2)throw new Error("noUiSlider: 'fixed' behaviour must be used with 2 handles");Ae(z,z.start[1]-z.start[0])}if(Me&&(z.margin||z.limit))throw new Error("noUiSlider: 'unconstrained' behaviour cannot be used with margin or limit");z.events={tap:I||me,drag:K,dragAll:oe,fixed:ee,snap:me,hover:Se,unconstrained:Me}}function ue(z,v){if(v!==!1)if(v===!0||i(v)){z.tooltips=[];for(var I=0;I<z.handles;I++)z.tooltips.push(v)}else{if((v=p(v)).length!==z.handles)throw new Error("noUiSlider: must pass a formatter for all handles.");v.forEach(function(K){if(typeof K!="boolean"&&!i(K))throw new Error("noUiSlider: 'tooltips' must be passed a formatter or 'false'.")}),z.tooltips=v}}function ve(z,v){if(v.length!==z.handles)throw new Error("noUiSlider: must pass a attributes for all handles.");z.handleAttributes=v}function xe(z,v){if(!i(v))throw new Error("noUiSlider: 'ariaFormat' requires 'to' method.");z.ariaFormat=v}function he(z,v){if(!o(v))throw new Error("noUiSlider: 'format' requires 'to' and 'from' methods.");z.format=v}function V(z,v){if(typeof v!="boolean")throw new Error("noUiSlider: 'keyboardSupport' option must be a boolean.");z.keyboardSupport=v}function H(z,v){z.documentElement=v}function Ee(z,v){if(typeof v!="string"&&v!==!1)throw new Error("noUiSlider: 'cssPrefix' must be a string or `false`.");z.cssPrefix=v}function ke(z,v){if(ks(v)!=="object")throw new Error("noUiSlider: 'cssClasses' must be an object.");typeof z.cssPrefix=="string"?(z.cssClasses={},Object.keys(v).forEach(function(I){z.cssClasses[I]=z.cssPrefix+v[I]})):z.cssClasses=v}function De(z){var v={margin:null,limit:null,padding:null,animate:!0,animationDuration:300,ariaFormat:ge,format:ge},I={step:{r:!1,t:pe},keyboardPageMultiplier:{r:!1,t:J},keyboardMultiplier:{r:!1,t:fe},keyboardDefaultStep:{r:!1,t:we},start:{r:!0,t:se},connect:{r:!0,t:Ie},direction:{r:!0,t:Z},snap:{r:!1,t:ie},animate:{r:!1,t:ye},animationDuration:{r:!1,t:je},range:{r:!0,t:U},orientation:{r:!1,t:$e},margin:{r:!1,t:Ae},limit:{r:!1,t:E},padding:{r:!1,t:L},behaviour:{r:!0,t:le},ariaFormat:{r:!1,t:xe},format:{r:!1,t:he},tooltips:{r:!1,t:ue},keyboardSupport:{r:!0,t:V},documentElement:{r:!1,t:H},cssPrefix:{r:!0,t:Ee},cssClasses:{r:!0,t:ke},handleAttributes:{r:!1,t:ve}},K={connect:!1,direction:"ltr",behaviour:"tap",orientation:"horizontal",keyboardSupport:!0,cssPrefix:"noUi-",cssClasses:Le,keyboardPageMultiplier:5,keyboardMultiplier:1,keyboardDefaultStep:10};z.format&&!z.ariaFormat&&(z.ariaFormat=z.format),Object.keys(I).forEach(function(oe){if(s(z[oe])||K[oe]!==void 0)I[oe].t(v,s(z[oe])?z[oe]:K[oe]);else if(I[oe].r)throw new Error("noUiSlider: '"+oe+"' is required.")}),v.pips=z.pips;var ee=document.createElement("div"),me=ee.style.msTransform!==void 0,Se=ee.style.transform!==void 0;v.transformRule=Se?"transform":me?"msTransform":"webkitTransform";var Me=[["left","top"],["right","bottom"]];return v.style=Me[v.dir][v.ort],v}function Re(z,v,I){var K,ee,me,Se,Me,oe=k(),de=O()&&$(),te=z,ae=v.spectrum,Ne=[],Ue=[],ut=[],bn=0,Kn={},Yn=z.ownerDocument,Qs=v.documentElement||Yn.documentElement,ea=Yn.body,a0=Yn.dir==="rtl"||v.ort===1?0:100;function xo(N,W){var ne=Yn.createElement("div");return W&&g(ne,W),N.appendChild(ne),ne}function l0(N,W){var ne=xo(N,v.cssClasses.origin),be=xo(ne,v.cssClasses.handle);if(xo(be,v.cssClasses.touchArea),be.setAttribute("data-handle",String(W)),v.keyboardSupport&&(be.setAttribute("tabindex","0"),be.addEventListener("keydown",function(Pe){return x0(Pe,W)})),v.handleAttributes!==void 0){var Fe=v.handleAttributes[W];Object.keys(Fe).forEach(function(Pe){be.setAttribute(Pe,Fe[Pe])})}return be.setAttribute("role","slider"),be.setAttribute("aria-orientation",v.ort?"vertical":"horizontal"),W===0?g(be,v.cssClasses.handleLower):W===v.handles-1&&g(be,v.cssClasses.handleUpper),ne}function Yf(N,W){return!!W&&xo(N,v.cssClasses.connect)}function c0(N,W){var ne=xo(W,v.cssClasses.connects);ee=[],(me=[]).push(Yf(ne,N[0]));for(var be=0;be<v.handles;be++)ee.push(l0(W,be)),ut[be]=be,me.push(Yf(ne,N[be+1]))}function u0(N){return g(N,v.cssClasses.target),v.dir===0?g(N,v.cssClasses.ltr):g(N,v.cssClasses.rtl),v.ort===0?g(N,v.cssClasses.horizontal):g(N,v.cssClasses.vertical),g(N,getComputedStyle(N).direction==="rtl"?v.cssClasses.textDirectionRtl:v.cssClasses.textDirectionLtr),xo(N,v.cssClasses.base)}function d0(N,W){return!(!v.tooltips||!v.tooltips[W])&&xo(N.firstChild,v.cssClasses.tooltip)}function Zf(){return te.hasAttribute("disabled")}function Ec(N){return ee[N].hasAttribute("disabled")}function Ac(){Me&&(Mr("update"+Be.tooltips),Me.forEach(function(N){N&&r(N)}),Me=null)}function Jf(){Ac(),Me=ee.map(d0),Fc("update"+Be.tooltips,function(N,W,ne){if(Me&&v.tooltips&&Me[W]!==!1){var be=N[W];v.tooltips[W]!==!0&&(be=v.tooltips[W].to(ne[W])),Me[W].innerHTML=be}})}function f0(){Mr("update"+Be.aria),Fc("update"+Be.aria,function(N,W,ne,be,Fe){ut.forEach(function(Pe){var Ze=ee[Pe],Ke=ta(Ue,Pe,0,!0,!0,!0),jt=ta(Ue,Pe,100,!0,!0,!0),Pt=Fe[Pe],pt=String(v.ariaFormat.to(ne[Pe]));Ke=ae.fromStepping(Ke).toFixed(1),jt=ae.fromStepping(jt).toFixed(1),Pt=ae.fromStepping(Pt).toFixed(1),Ze.children[0].setAttribute("aria-valuemin",Ke),Ze.children[0].setAttribute("aria-valuemax",jt),Ze.children[0].setAttribute("aria-valuenow",Pt),Ze.children[0].setAttribute("aria-valuetext",pt)})})}function m0(N){if(N.mode===n.PipsMode.Range||N.mode===n.PipsMode.Steps)return ae.xVal;if(N.mode===n.PipsMode.Count){if(N.values<2)throw new Error("noUiSlider: 'values' (>= 2) required for mode 'count'.");for(var W=N.values-1,ne=100/W,be=[];W--;)be[W]=W*ne;return be.push(100),Xf(be,N.stepped)}return N.mode===n.PipsMode.Positions?Xf(N.values,N.stepped):N.mode===n.PipsMode.Values?N.stepped?N.values.map(function(Fe){return ae.fromStepping(ae.getStep(ae.toStepping(Fe)))}):N.values:[]}function Xf(N,W){return N.map(function(ne){return ae.fromStepping(W?ae.getStep(ne):ne)})}function h0(N){function W(Pt,pt){return Number((Pt+pt).toFixed(7))}var ne=m0(N),be={},Fe=ae.xVal[0],Pe=ae.xVal[ae.xVal.length-1],Ze=!1,Ke=!1,jt=0;return(ne=l(ne.slice().sort(function(Pt,pt){return Pt-pt})))[0]!==Fe&&(ne.unshift(Fe),Ze=!0),ne[ne.length-1]!==Pe&&(ne.push(Pe),Ke=!0),ne.forEach(function(Pt,pt){var Wt,yt,gn,cn,Bt,am,Lc,lm,cm,um,Rc=Pt,Vi=ne[pt+1],dm=N.mode===n.PipsMode.Steps;for(dm&&(Wt=ae.xNumSteps[pt]),Wt||(Wt=Vi-Rc),Vi===void 0&&(Vi=Rc),Wt=Math.max(Wt,1e-7),yt=Rc;yt<=Vi;yt=W(yt,Wt)){for(lm=(Bt=(cn=ae.toStepping(yt))-jt)/(N.density||1),um=Bt/(cm=Math.round(lm)),gn=1;gn<=cm;gn+=1)be[(am=jt+gn*um).toFixed(5)]=[ae.fromStepping(am),0];Lc=ne.indexOf(yt)>-1?n.PipsType.LargeValue:dm?n.PipsType.SmallValue:n.PipsType.NoValue,!pt&&Ze&&yt!==Vi&&(Lc=0),yt===Vi&&Ke||(be[cn.toFixed(5)]=[yt,Lc]),jt=cn}}),be}function p0(N,W,ne){var be,Fe,Pe=Yn.createElement("div"),Ze=((be={})[n.PipsType.None]="",be[n.PipsType.NoValue]=v.cssClasses.valueNormal,be[n.PipsType.LargeValue]=v.cssClasses.valueLarge,be[n.PipsType.SmallValue]=v.cssClasses.valueSub,be),Ke=((Fe={})[n.PipsType.None]="",Fe[n.PipsType.NoValue]=v.cssClasses.markerNormal,Fe[n.PipsType.LargeValue]=v.cssClasses.markerLarge,Fe[n.PipsType.SmallValue]=v.cssClasses.markerSub,Fe),jt=[v.cssClasses.valueHorizontal,v.cssClasses.valueVertical],Pt=[v.cssClasses.markerHorizontal,v.cssClasses.markerVertical];function pt(yt,gn){var cn=gn===v.cssClasses.value,Bt=cn?Ze:Ke;return gn+" "+(cn?jt:Pt)[v.ort]+" "+Bt[yt]}function Wt(yt,gn,cn){if((cn=W?W(gn,cn):cn)!==n.PipsType.None){var Bt=xo(Pe,!1);Bt.className=pt(cn,v.cssClasses.marker),Bt.style[v.style]=yt+"%",cn>n.PipsType.NoValue&&((Bt=xo(Pe,!1)).className=pt(cn,v.cssClasses.value),Bt.setAttribute("data-value",String(gn)),Bt.style[v.style]=yt+"%",Bt.innerHTML=String(ne.to(gn)))}}return g(Pe,v.cssClasses.pips),g(Pe,v.ort===0?v.cssClasses.pipsHorizontal:v.cssClasses.pipsVertical),Object.keys(N).forEach(function(yt){Wt(yt,N[yt][0],N[yt][1])}),Pe}function Oc(){Se&&(r(Se),Se=null)}function Tc(N){Oc();var W=h0(N),ne=N.filter,be=N.format||{to:function(Fe){return String(Math.round(Fe))}};return Se=te.appendChild(p0(W,ne,be))}function Qf(){var N=K.getBoundingClientRect(),W="offset"+["Width","Height"][v.ort];return v.ort===0?N.width||K[W]:N.height||K[W]}function di(N,W,ne,be){var Fe=function(Ze){var Ke=b0(Ze,be.pageOffset,be.target||W);return!!Ke&&!(Zf()&&!be.doNotReject)&&!(w(te,v.cssClasses.tap)&&!be.doNotReject)&&!(N===oe.start&&Ke.buttons!==void 0&&Ke.buttons>1)&&(!be.hover||!Ke.buttons)&&(de||Ke.preventDefault(),Ke.calcPoint=Ke.points[v.ort],void ne(Ke,be))},Pe=[];return N.split(" ").forEach(function(Ze){W.addEventListener(Ze,Fe,!!de&&{passive:!0}),Pe.push([Ze,Fe])}),Pe}function b0(N,W,ne){var be=N.type.indexOf("touch")===0,Fe=N.type.indexOf("mouse")===0,Pe=N.type.indexOf("pointer")===0,Ze=0,Ke=0;if(N.type.indexOf("MSPointer")===0&&(Pe=!0),N.type==="mousedown"&&!N.buttons&&!N.touches)return!1;if(be){var jt=function(Wt){var yt=Wt.target;return yt===ne||ne.contains(yt)||N.composed&&N.composedPath().shift()===ne};if(N.type==="touchstart"){var Pt=Array.prototype.filter.call(N.touches,jt);if(Pt.length>1)return!1;Ze=Pt[0].pageX,Ke=Pt[0].pageY}else{var pt=Array.prototype.find.call(N.changedTouches,jt);if(!pt)return!1;Ze=pt.pageX,Ke=pt.pageY}}return W=W||C(Yn),(Fe||Pe)&&(Ze=N.clientX+W.x,Ke=N.clientY+W.y),N.pageOffset=W,N.points=[Ze,Ke],N.cursor=Fe||Pe,N}function em(N){var W=100*(N-d(K,v.ort))/Qf();return W=h(W),v.dir?100-W:W}function g0(N){var W=100,ne=!1;return ee.forEach(function(be,Fe){if(!Ec(Fe)){var Pe=Ue[Fe],Ze=Math.abs(Pe-N);(Ze<W||Ze<=W&&N>Pe||Ze===100&&W===100)&&(ne=Fe,W=Ze)}}),ne}function v0(N,W){N.type==="mouseout"&&N.target.nodeName==="HTML"&&N.relatedTarget===null&&Pc(N,W)}function _0(N,W){if(navigator.appVersion.indexOf("MSIE 9")===-1&&N.buttons===0&&W.buttonsProperty!==0)return Pc(N,W);var ne=(v.dir?-1:1)*(N.calcPoint-W.startCalcPoint);tm(ne>0,100*ne/W.baseSize,W.locations,W.handleNumbers,W.connect)}function Pc(N,W){W.handle&&(y(W.handle,v.cssClasses.active),bn-=1),W.listeners.forEach(function(ne){Qs.removeEventListener(ne[0],ne[1])}),bn===0&&(y(te,v.cssClasses.drag),Mc(),N.cursor&&(ea.style.cursor="",ea.removeEventListener("selectstart",a))),W.handleNumbers.forEach(function(ne){Vt("change",ne),Vt("set",ne),Vt("end",ne)})}function Dc(N,W){if(!W.handleNumbers.some(Ec)){var ne;W.handleNumbers.length===1&&(ne=ee[W.handleNumbers[0]].children[0],bn+=1,g(ne,v.cssClasses.active)),N.stopPropagation();var be=[],Fe=di(oe.move,Qs,_0,{target:N.target,handle:ne,connect:W.connect,listeners:be,startCalcPoint:N.calcPoint,baseSize:Qf(),pageOffset:N.pageOffset,handleNumbers:W.handleNumbers,buttonsProperty:N.buttons,locations:Ue.slice()}),Pe=di(oe.end,Qs,Pc,{target:N.target,handle:ne,listeners:be,doNotReject:!0,handleNumbers:W.handleNumbers}),Ze=di("mouseout",Qs,v0,{target:N.target,handle:ne,listeners:be,doNotReject:!0,handleNumbers:W.handleNumbers});be.push.apply(be,Fe.concat(Pe,Ze)),N.cursor&&(ea.style.cursor=getComputedStyle(N.target).cursor,ee.length>1&&g(te,v.cssClasses.drag),ea.addEventListener("selectstart",a,!1)),W.handleNumbers.forEach(function(Ke){Vt("start",Ke)})}}function y0(N){N.stopPropagation();var W=em(N.calcPoint),ne=g0(W);ne!==!1&&(v.events.snap||f(te,v.cssClasses.tap,v.animationDuration),ji(ne,W,!0,!0),Mc(),Vt("slide",ne,!0),Vt("update",ne,!0),v.events.snap?Dc(N,{handleNumbers:[ne]}):(Vt("change",ne,!0),Vt("set",ne,!0)))}function w0(N){var W=em(N.calcPoint),ne=ae.getStep(W),be=ae.fromStepping(ne);Object.keys(Kn).forEach(function(Fe){Fe.split(".")[0]==="hover"&&Kn[Fe].forEach(function(Pe){Pe.call(oa,be)})})}function x0(N,W){if(Zf()||Ec(W))return!1;var ne=["Left","Right"],be=["Down","Up"],Fe=["PageDown","PageUp"],Pe=["Home","End"];v.dir&&!v.ort?ne.reverse():v.ort&&!v.dir&&(be.reverse(),Fe.reverse());var Ze,Ke=N.key.replace("Arrow",""),jt=Ke===Fe[0],Pt=Ke===Fe[1],pt=Ke===be[0]||Ke===ne[0]||jt,Wt=Ke===be[1]||Ke===ne[1]||Pt,yt=Ke===Pe[0],gn=Ke===Pe[1];if(!(pt||Wt||yt||gn))return!0;if(N.preventDefault(),Wt||pt){var cn=pt?0:1,Bt=sm(W)[cn];if(Bt===null)return!1;Bt===!1&&(Bt=ae.getDefaultStep(Ue[W],pt,v.keyboardDefaultStep)),Bt*=Pt||jt?v.keyboardPageMultiplier:v.keyboardMultiplier,Bt=Math.max(Bt,1e-7),Bt*=pt?-1:1,Ze=Ne[W]+Bt}else Ze=gn?v.spectrum.xVal[v.spectrum.xVal.length-1]:v.spectrum.xVal[0];return ji(W,ae.toStepping(Ze),!0,!0),Vt("slide",W),Vt("update",W),Vt("change",W),Vt("set",W),!1}function k0(N){N.fixed||ee.forEach(function(W,ne){di(oe.start,W.children[0],Dc,{handleNumbers:[ne]})}),N.tap&&di(oe.start,K,y0,{}),N.hover&&di(oe.move,K,w0,{hover:!0}),N.drag&&me.forEach(function(W,ne){if(W!==!1&&ne!==0&&ne!==me.length-1){var be=ee[ne-1],Fe=ee[ne],Pe=[W],Ze=[be,Fe],Ke=[ne-1,ne];g(W,v.cssClasses.draggable),N.fixed&&(Pe.push(be.children[0]),Pe.push(Fe.children[0])),N.dragAll&&(Ze=ee,Ke=ut),Pe.forEach(function(jt){di(oe.start,jt,Dc,{handles:Ze,handleNumbers:Ke,connect:W})})}})}function Fc(N,W){Kn[N]=Kn[N]||[],Kn[N].push(W),N.split(".")[0]==="update"&&ee.forEach(function(ne,be){Vt("update",be)})}function C0(N){return N===Be.aria||N===Be.tooltips}function Mr(N){var W=N&&N.split(".")[0],ne=W?N.substring(W.length):N;Object.keys(Kn).forEach(function(be){var Fe=be.split(".")[0],Pe=be.substring(Fe.length);W&&W!==Fe||ne&&ne!==Pe||C0(Pe)&&ne!==Pe||delete Kn[be]})}function Vt(N,W,ne){Object.keys(Kn).forEach(function(be){var Fe=be.split(".")[0];N===Fe&&Kn[be].forEach(function(Pe){Pe.call(oa,Ne.map(v.format.to),W,Ne.slice(),ne||!1,Ue.slice(),oa)})})}function ta(N,W,ne,be,Fe,Pe){var Ze;return ee.length>1&&!v.events.unconstrained&&(be&&W>0&&(Ze=ae.getAbsoluteDistance(N[W-1],v.margin,!1),ne=Math.max(ne,Ze)),Fe&&W<ee.length-1&&(Ze=ae.getAbsoluteDistance(N[W+1],v.margin,!0),ne=Math.min(ne,Ze))),ee.length>1&&v.limit&&(be&&W>0&&(Ze=ae.getAbsoluteDistance(N[W-1],v.limit,!1),ne=Math.min(ne,Ze)),Fe&&W<ee.length-1&&(Ze=ae.getAbsoluteDistance(N[W+1],v.limit,!0),ne=Math.max(ne,Ze))),v.padding&&(W===0&&(Ze=ae.getAbsoluteDistance(0,v.padding[0],!1),ne=Math.max(ne,Ze)),W===ee.length-1&&(Ze=ae.getAbsoluteDistance(100,v.padding[1],!0),ne=Math.min(ne,Ze))),!((ne=h(ne=ae.getStep(ne)))===N[W]&&!Pe)&&ne}function Ic(N,W){var ne=v.ort;return(ne?W:N)+", "+(ne?N:W)}function tm(N,W,ne,be,Fe){var Pe=ne.slice(),Ze=be[0],Ke=[!N,N],jt=[N,!N];be=be.slice(),N&&be.reverse(),be.length>1?be.forEach(function(pt,Wt){var yt=ta(Pe,pt,Pe[pt]+W,Ke[Wt],jt[Wt],!1);yt===!1?W=0:(W=yt-Pe[pt],Pe[pt]=yt)}):Ke=jt=[!0];var Pt=!1;be.forEach(function(pt,Wt){Pt=ji(pt,ne[pt]+W,Ke[Wt],jt[Wt])||Pt}),Pt&&(be.forEach(function(pt){Vt("update",pt),Vt("slide",pt)}),Fe!=null&&Vt("drag",Ze))}function nm(N,W){return v.dir?100-N-W:N}function z0(N,W){Ue[N]=W,Ne[N]=ae.fromStepping(W);var ne="translate("+Ic(nm(W,0)-a0+"%","0")+")";ee[N].style[v.transformRule]=ne,om(N),om(N+1)}function Mc(){ut.forEach(function(N){var W=Ue[N]>50?-1:1,ne=3+(ee.length+W*N);ee[N].style.zIndex=String(ne)})}function ji(N,W,ne,be,Fe){return Fe||(W=ta(Ue,N,W,ne,be,!1)),W!==!1&&(z0(N,W),!0)}function om(N){if(me[N]){var W=0,ne=100;N!==0&&(W=Ue[N-1]),N!==me.length-1&&(ne=Ue[N]);var be=ne-W,Fe="translate("+Ic(nm(W,be)+"%","0")+")",Pe="scale("+Ic(be/100,"1")+")";me[N].style[v.transformRule]=Fe+" "+Pe}}function im(N,W){return N===null||N===!1||N===void 0?Ue[W]:(typeof N=="number"&&(N=String(N)),(N=v.format.from(N))!==!1&&(N=ae.toStepping(N)),N===!1||isNaN(N)?Ue[W]:N)}function na(N,W,ne){var be=p(N),Fe=Ue[0]===void 0;W=W===void 0||W,v.animate&&!Fe&&f(te,v.cssClasses.tap,v.animationDuration),ut.forEach(function(Ke){ji(Ke,im(be[Ke],Ke),!0,!1,ne)});var Pe=ut.length===1?0:1;if(Fe&&ae.hasNoSize()&&(ne=!0,Ue[0]=0,ut.length>1)){var Ze=100/(ut.length-1);ut.forEach(function(Ke){Ue[Ke]=Ke*Ze})}for(;Pe<ut.length;++Pe)ut.forEach(function(Ke){ji(Ke,Ue[Ke],!0,!0,ne)});Mc(),ut.forEach(function(Ke){Vt("update",Ke),be[Ke]!==null&&W&&Vt("set",Ke)})}function S0(N){na(v.start,N)}function $0(N,W,ne,be){if(!((N=Number(N))>=0&&N<ut.length))throw new Error("noUiSlider: invalid handle number, got: "+N);ji(N,im(W,N),!0,!0,be),Vt("update",N),ne&&Vt("set",N)}function rm(N){if(N===void 0&&(N=!1),N)return Ne.length===1?Ne[0]:Ne.slice(0);var W=Ne.map(v.format.to);return W.length===1?W[0]:W}function E0(){for(Mr(Be.aria),Mr(Be.tooltips),Object.keys(v.cssClasses).forEach(function(N){y(te,v.cssClasses[N])});te.firstChild;)te.removeChild(te.firstChild);delete te.noUiSlider}function sm(N){var W=Ue[N],ne=ae.getNearbySteps(W),be=Ne[N],Fe=ne.thisStep.step,Pe=null;if(v.snap)return[be-ne.stepBefore.startValue||null,ne.stepAfter.startValue-be||null];Fe!==!1&&be+Fe>ne.stepAfter.startValue&&(Fe=ne.stepAfter.startValue-be),Pe=be>ne.thisStep.startValue?ne.thisStep.step:ne.stepBefore.step!==!1&&be-ne.stepBefore.highestStep,W===100?Fe=null:W===0&&(Pe=null);var Ze=ae.countStepDecimals();return Fe!==null&&Fe!==!1&&(Fe=Number(Fe.toFixed(Ze))),Pe!==null&&Pe!==!1&&(Pe=Number(Pe.toFixed(Ze))),[Pe,Fe]}function A0(){return ut.map(sm)}function O0(N,W){var ne=rm(),be=["margin","limit","padding","range","animate","snap","step","format","pips","tooltips"];be.forEach(function(Pe){N[Pe]!==void 0&&(I[Pe]=N[Pe])});var Fe=De(I);be.forEach(function(Pe){N[Pe]!==void 0&&(v[Pe]=Fe[Pe])}),ae=Fe.spectrum,v.margin=Fe.margin,v.limit=Fe.limit,v.padding=Fe.padding,v.pips?Tc(v.pips):Oc(),v.tooltips?Jf():Ac(),Ue=[],na(s(N.start)?N.start:ne,W)}function T0(){K=u0(te),c0(v.connect,K),k0(v.events),na(v.start),v.pips&&Tc(v.pips),v.tooltips&&Jf(),f0()}T0();var oa={destroy:E0,steps:A0,on:Fc,off:Mr,get:rm,set:na,setHandle:$0,reset:S0,__moveHandles:function(N,W,ne){tm(N,W,Ue,ne)},options:I,updateOptions:O0,target:te,removePips:Oc,removeTooltips:Ac,getPositions:function(){return Ue.slice()},getTooltips:function(){return Me},getOrigins:function(){return ee},pips:Tc};return oa}function qe(z,v){if(!z||!z.nodeName)throw new Error("noUiSlider: create requires a single element, got: "+z);if(z.noUiSlider)throw new Error("noUiSlider: Slider was already initialized.");var I=Re(z,De(v),v);return z.noUiSlider=I,I}var tt={__spectrum:ce,cssClasses:Le,create:qe};n.create=qe,n.cssClasses=Le,n.default=tt,Object.defineProperty(n,"__esModule",{value:!0})})(t)}));function lp(e,t){var n=t.slice().sort();return e.length===t.length&&e.slice().sort().every(function(o,i){return o===n[i]})}var Fs={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(s,a,l){var u=ls(s),d=u.value,m=u.modelValue,f=a.expose!==void 0?m:d,h=wn(f.value);if(du(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:h}}(e,t),o=function(s,a,l){var u=ls(s),d=u.classes,m=u.showTooltip,f=u.tooltipPosition,h=u.orientation,p=Ot(function(){return rp({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:Ot(function(){var b=rp({},p.value);return Object.keys(b).forEach(function(g){b[g]=Array.isArray(b[g])?b[g].filter(function(y){return y!==null}).join(" "):b[g]}),m.value!=="always"&&(b.target+=" ".concat(m.value==="drag"?b.tooltipDrag:b.tooltipFocus)),h.value==="horizontal"&&(b.tooltip+=f.value==="bottom"?" ".concat(b.tooltipBottom):" ".concat(b.tooltipTop)),h.value==="vertical"&&(b.tooltip+=f.value==="right"?" ".concat(b.tooltipRight):" ".concat(b.tooltipLeft)),b})}}(e),i=gz(e,0,{value:n.value,classList:o.classList}),r=function(s,a,l){var u=ls(s),d=u.orientation,m=u.direction,f=u.tooltips,h=u.step,p=u.min,b=u.max,g=u.merge,y=u.id,w=u.disabled,C=u.options,k=u.classes,$=u.format,O=u.lazy,j=l.value,F=l.initialValue,A=l.tooltipsFormat,M=l.tooltipsMerge,G=l.classList,R=wn(null),q=wn(null),B=wn(!1),re=Ot(function(){var we={cssPrefix:"",cssClasses:G.value,orientation:d.value,direction:m.value,tooltips:!!f.value&&A.value,connect:"lower",start:du(j.value)?p.value:j.value,range:{min:p.value,max:b.value}};return h.value>0&&(we.step=h.value),Array.isArray(j.value)&&(we.connect=!0),we}),X=Ot(function(){var we={id:y&&y.value?y.value:void 0};return w.value&&(we.disabled=!0),we}),ce=Ot(function(){return Array.isArray(j.value)}),ge=function(){var we=q.value.get();return Array.isArray(we)?we.map(function(U){return parseFloat(U)}):parseFloat(we)},Le=function(we){var U=!(arguments.length>1&&arguments[1]!==void 0)||arguments[1];q.value.set(we,U)},Be=function(we){a.emit("input",we),a.emit("update:modelValue",we),a.emit("update",we)},pe=function(){q.value=vz.create(R.value,Object.assign({},re.value,C.value)),f.value&&ce.value&&g.value>=0&&M(R.value,g.value," - "),q.value.on("set",function(we){var U=ge();a.emit("change",U),O.value&&Be(U)}),q.value.on("update",function(we){if(B.value){var U=ge();ce.value&&lp(j.value,U)||!ce.value&&j.value==U?a.emit("update",U):O.value||Be(U)}}),q.value.on("start",function(we){var U=ge();a.emit("start",U)}),q.value.on("end",function(we){var U=ge();a.emit("end",U)}),R.value.querySelectorAll("[data-handle]").forEach(function(we){we.onblur=function(){G.value.focused.split(" ").forEach(function(U){R.value.classList.remove(U)})},we.onfocus=function(){G.value.focused.split(" ").forEach(function(U){R.value.classList.add(U)})}}),B.value=!0},J=function(){q.value.off(),q.value.destroy(),q.value=null},fe=function(we,U){B.value=!1,J(),pe()};return Mi(pe),$r(J),Mt(ce,fe,{immediate:!1}),Mt(p,fe,{immediate:!1}),Mt(b,fe,{immediate:!1}),Mt(h,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(C,fe,{immediate:!1,deep:!0}),Mt(k,fe,{immediate:!1,deep:!0}),Mt(j,function(we){du(we)?Le(p.value,!1):(ce.value&&!lp(we,ge())||!ce.value&&we!=ge())&&Le(we,!1)},{deep:!0}),{slider:R,slider$:q,isRange:ce,sliderProps:X,init:pe,destroy:J,refresh:fe,update:Le,reset:function(){Be(F.value)}}}(e,t,{value:n.value,initialValue:n.initialValue,tooltipsFormat:i.tooltipsFormat,tooltipsMerge:i.tooltipsMerge,classList:o.classList});return Je(Je(Je({},o),i),r)}};Fs.render=function(e,t,n,o,i,r){return S(),D("div",Zd(e.sliderProps,{ref:"slider"}),null,16)},Fs.__file="src/Slider.vue";var r_={exports:{}},_z=[{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=_z,n=t.filter(function(i){return!!i.css}),o=t.filter(function(i){return!!i.vga});e.exports=function(i){var r=e.exports.get(i);return r&&r.value},e.exports.get=function(i){return i=i||"",i=i.trim().toLowerCase(),t.filter(function(r){return r.name.toLowerCase()===i}).pop()},e.exports.all=e.exports.get.all=function(){return t},e.exports.get.css=function(i){return i?(i=i||"",i=i.trim().toLowerCase(),n.filter(function(r){return r.name.toLowerCase()===i}).pop()):n},e.exports.get.vga=function(i){return i?(i=i||"",i=i.trim().toLowerCase(),o.filter(function(r){return r.name.toLowerCase()===i}).pop()):o}})(r_);var yz=1/0,wz="[object Symbol]",xz=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,s_="\\ud800-\\udfff",kz="\\u0300-\\u036f\\ufe20-\\ufe23",Cz="\\u20d0-\\u20f0",a_="\\u2700-\\u27bf",l_="a-z\\xdf-\\xf6\\xf8-\\xff",zz="\\xac\\xb1\\xd7\\xf7",Sz="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",$z="\\u2000-\\u206f",Ez=" \\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",c_="A-Z\\xc0-\\xd6\\xd8-\\xde",Az="\\ufe0e\\ufe0f",u_=zz+Sz+$z+Ez,d_="['\u2019]",cp="["+u_+"]",Oz="["+kz+Cz+"]",f_="\\d+",Tz="["+a_+"]",m_="["+l_+"]",h_="[^"+s_+u_+f_+a_+l_+c_+"]",Pz="\\ud83c[\\udffb-\\udfff]",Dz="(?:"+Oz+"|"+Pz+")",Fz="[^"+s_+"]",p_="(?:\\ud83c[\\udde6-\\uddff]){2}",b_="[\\ud800-\\udbff][\\udc00-\\udfff]",or="["+c_+"]",Iz="\\u200d",up="(?:"+m_+"|"+h_+")",Mz="(?:"+or+"|"+h_+")",dp="(?:"+d_+"(?:d|ll|m|re|s|t|ve))?",fp="(?:"+d_+"(?:D|LL|M|RE|S|T|VE))?",g_=Dz+"?",v_="["+Az+"]?",Lz="(?:"+Iz+"(?:"+[Fz,p_,b_].join("|")+")"+v_+g_+")*",Rz=v_+g_+Lz,Nz="(?:"+[Tz,p_,b_].join("|")+")"+Rz,jz=RegExp([or+"?"+m_+"+"+dp+"(?="+[cp,or,"$"].join("|")+")",Mz+"+"+fp+"(?="+[cp,or+up,"$"].join("|")+")",or+"?"+up+"+"+dp,or+"+"+fp,f_,Nz].join("|"),"g"),Vz=/[a-z][A-Z]|[A-Z]{2,}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Bz=typeof an=="object"&&an&&an.Object===Object&&an,Uz=typeof self=="object"&&self&&self.Object===Object&&self,Hz=Bz||Uz||Function("return this")();function qz(e){return e.match(xz)||[]}function Gz(e){return Vz.test(e)}function Wz(e){return e.match(jz)||[]}var Kz=Object.prototype,Yz=Kz.toString,mp=Hz.Symbol,hp=mp?mp.prototype:void 0,pp=hp?hp.toString:void 0;function Zz(e){if(typeof e=="string")return e;if(Xz(e))return pp?pp.call(e):"";var t=e+"";return t=="0"&&1/e==-yz?"-0":t}function Jz(e){return!!e&&typeof e=="object"}function Xz(e){return typeof e=="symbol"||Jz(e)&&Yz.call(e)==wz}function Qz(e){return e==null?"":Zz(e)}function e4(e,t,n){return e=Qz(e),t=n?void 0:t,t===void 0?Gz(e)?Wz(e):qz(e):e.match(t)||[]}var t4=e4,n4=1/0,o4="[object Symbol]",i4=/^\s+/,Af="\\ud800-\\udfff",__="\\u0300-\\u036f\\ufe20-\\ufe23",y_="\\u20d0-\\u20f0",w_="\\ufe0e\\ufe0f",r4="["+Af+"]",ud="["+__+y_+"]",dd="\\ud83c[\\udffb-\\udfff]",s4="(?:"+ud+"|"+dd+")",x_="[^"+Af+"]",k_="(?:\\ud83c[\\udde6-\\uddff]){2}",C_="[\\ud800-\\udbff][\\udc00-\\udfff]",z_="\\u200d",S_=s4+"?",$_="["+w_+"]?",a4="(?:"+z_+"(?:"+[x_,k_,C_].join("|")+")"+$_+S_+")*",l4=$_+S_+a4,c4="(?:"+[x_+ud+"?",ud,k_,C_,r4].join("|")+")",u4=RegExp(dd+"(?="+dd+")|"+c4+l4,"g"),d4=RegExp("["+z_+Af+__+y_+w_+"]"),f4=typeof an=="object"&&an&&an.Object===Object&&an,m4=typeof self=="object"&&self&&self.Object===Object&&self,h4=f4||m4||Function("return this")();function p4(e){return e.split("")}function b4(e,t,n,o){for(var i=e.length,r=n+(o?1:-1);o?r--:++r<i;)if(t(e[r],r,e))return r;return-1}function g4(e,t,n){if(t!==t)return b4(e,v4,n);for(var o=n-1,i=e.length;++o<i;)if(e[o]===t)return o;return-1}function v4(e){return e!==e}function _4(e,t){for(var n=-1,o=e.length;++n<o&&g4(t,e[n],0)>-1;);return n}function y4(e){return d4.test(e)}function bp(e){return y4(e)?w4(e):p4(e)}function w4(e){return e.match(u4)||[]}var x4=Object.prototype,k4=x4.toString,gp=h4.Symbol,vp=gp?gp.prototype:void 0,_p=vp?vp.toString:void 0;function C4(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(i);++o<i;)r[o]=e[o+t];return r}function E_(e){if(typeof e=="string")return e;if($4(e))return _p?_p.call(e):"";var t=e+"";return t=="0"&&1/e==-n4?"-0":t}function z4(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:C4(e,t,n)}function S4(e){return!!e&&typeof e=="object"}function $4(e){return typeof e=="symbol"||S4(e)&&k4.call(e)==o4}function E4(e){return e==null?"":E_(e)}function A4(e,t,n){if(e=E4(e),e&&(n||t===void 0))return e.replace(i4,"");if(!e||!(t=E_(t)))return e;var o=bp(e),i=_4(o,bp(t));return z4(o,i).join("")}var O4=A4,fd=1/0,T4=9007199254740991,P4=17976931348623157e292,yp=0/0,D4="[object Symbol]",F4=/^\s+|\s+$/g,I4=/^[-+]0x[0-9a-f]+$/i,M4=/^0b[01]+$/i,L4=/^0o[0-7]+$/i,Of="\\ud800-\\udfff",A_="\\u0300-\\u036f\\ufe20-\\ufe23",O_="\\u20d0-\\u20f0",T_="\\ufe0e\\ufe0f",R4="["+Of+"]",md="["+A_+O_+"]",hd="\\ud83c[\\udffb-\\udfff]",N4="(?:"+md+"|"+hd+")",P_="[^"+Of+"]",D_="(?:\\ud83c[\\udde6-\\uddff]){2}",F_="[\\ud800-\\udbff][\\udc00-\\udfff]",I_="\\u200d",M_=N4+"?",L_="["+T_+"]?",j4="(?:"+I_+"(?:"+[P_,D_,F_].join("|")+")"+L_+M_+")*",V4=L_+M_+j4,B4="(?:"+[P_+md+"?",md,D_,F_,R4].join("|")+")",pd=RegExp(hd+"(?="+hd+")|"+B4+V4,"g"),U4=RegExp("["+I_+Of+A_+O_+T_+"]"),H4=parseInt,q4=typeof an=="object"&&an&&an.Object===Object&&an,G4=typeof self=="object"&&self&&self.Object===Object&&self,W4=q4||G4||Function("return this")(),K4=Z4("length");function Y4(e){return e.split("")}function Z4(e){return function(t){return t==null?void 0:t[e]}}function Tf(e){return U4.test(e)}function R_(e){return Tf(e)?X4(e):K4(e)}function J4(e){return Tf(e)?Q4(e):Y4(e)}function X4(e){for(var t=pd.lastIndex=0;pd.test(e);)t++;return t}function Q4(e){return e.match(pd)||[]}var eS=Object.prototype,tS=eS.toString,wp=W4.Symbol,nS=Math.ceil,oS=Math.floor,xp=wp?wp.prototype:void 0,kp=xp?xp.toString:void 0;function Cp(e,t){var n="";if(!e||t<1||t>T4)return n;do t%2&&(n+=e),t=oS(t/2),t&&(e+=e);while(t);return n}function iS(e,t,n){var o=-1,i=e.length;t<0&&(t=-t>i?0:i+t),n=n>i?i:n,n<0&&(n+=i),i=t>n?0:n-t>>>0,t>>>=0;for(var r=Array(i);++o<i;)r[o]=e[o+t];return r}function N_(e){if(typeof e=="string")return e;if(j_(e))return kp?kp.call(e):"";var t=e+"";return t=="0"&&1/e==-fd?"-0":t}function rS(e,t,n){var o=e.length;return n=n===void 0?o:n,!t&&n>=o?e:iS(e,t,n)}function sS(e,t){t=t===void 0?" ":N_(t);var n=t.length;if(n<2)return n?Cp(t,e):t;var o=Cp(t,nS(e/R_(t)));return Tf(t)?rS(J4(o),0,e).join(""):o.slice(0,e)}function zp(e){var t=typeof e;return!!e&&(t=="object"||t=="function")}function aS(e){return!!e&&typeof e=="object"}function j_(e){return typeof e=="symbol"||aS(e)&&tS.call(e)==D4}function lS(e){if(!e)return e===0?e:0;if(e=uS(e),e===fd||e===-fd){var t=e<0?-1:1;return t*P4}return e===e?e:0}function cS(e){var t=lS(e),n=t%1;return t===t?n?t-n:t:0}function uS(e){if(typeof e=="number")return e;if(j_(e))return yp;if(zp(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=zp(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=e.replace(F4,"");var n=M4.test(e);return n||L4.test(e)?H4(e.slice(2),n?2:8):I4.test(e)?yp:+e}function dS(e){return e==null?"":N_(e)}function fS(e,t,n){e=dS(e),t=cS(t);var o=t?R_(e):0;return t&&o<t?e+sS(t-o,n):e}var mS=fS,hS=(e,t,n,o)=>{const i=(e+(o||"")).toString().includes("%");if(typeof e=="string"?[e,t,n,o]=e.match(/(0?\.?\d{1,3})%?\b/g).map(Number):o!==void 0&&(o=parseFloat(o)),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 o=="number"){if(!i&&o>=0&&o<=1)o=Math.round(255*o);else if(i&&o>=0&&o<=100)o=Math.round(255*o/100);else throw new TypeError(`Expected alpha value (${o}) as a fraction or percentage`);o=(o|1<<8).toString(16).slice(1)}else o="";return(n|t<<8|e<<16|1<<24).toString(16).slice(1)+o};const Is="a-f\\d",pS=`#?[${Is}]{3}[${Is}]?`,bS=`#?[${Is}]{6}([${Is}]{2})?`,gS=new RegExp(`[^#${Is}]`,"gi"),vS=new RegExp(`^${pS}$|^${bS}$`,"i");var _S=(e,t={})=>{if(typeof e!="string"||gS.test(e)||!vS.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 o=Number.parseInt(e,16),i=o>>16,r=o>>8&255,s=o&255,a=typeof t.alpha=="number"?t.alpha:n;if(t.format==="array")return[i,r,s,a];if(t.format==="css"){const l=a===1?"":` / ${Number((a*100).toFixed(2))}%`;return`rgb(${i} ${r} ${s}${l})`}return{red:i,green:r,blue:s,alpha:a}},yS=r_.exports,wS=t4,xS=O4,kS=mS,CS=hS,V_=_S;const fu=.75,mu=.25,hu=16777215,zS=49979693;var SS=function(e){return"#"+AS(String(JSON.stringify(e)))};function $S(e){var t=wS(e),n=[];return t.forEach(function(o){var i=yS(o);i&&n.push(V_(xS(i,"#"),{format:"array"}))}),n}function ES(e){var t=[0,0,0];return e.forEach(function(n){for(var o=0;o<3;o++)t[o]+=n[o]}),[t[0]/e.length,t[1]/e.length,t[2]/e.length]}function AS(e){var t,n=$S(e);n.length>0&&(t=ES(n));var o=1,i=0,r=1;if(e.length>0)for(var s=0;s<e.length;s++)e[s].charCodeAt(0)>i&&(i=e[s].charCodeAt(0)),r=parseInt(hu/i),o=(o+e[s].charCodeAt(0)*r*zS)%hu;var a=(o*e.length%hu).toString(16);a=kS(a,6,a);var l=V_(a,{format:"array"});return t?CS(mu*l[0]+fu*t[0],mu*l[1]+fu*t[1],mu*l[2]+fu*t[2]):a}function OS(e){const t=e.replace(/#/,""),n=parseInt(t.substr(0,2),16),o=parseInt(t.substr(2,2),16),i=parseInt(t.substr(4,2),16);return[.299*n,.587*o,.114*i].reduce((s,a)=>s+a)/255>.5}function TS(e){return OS(e)?"#000000":"#ffffff"}function PS(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 B_(e,t,n){const o=SS(t),i=TS(o),r={width:n.width,height:n.height,textColor:i,backgroundColor:o,caption:e,fontFamily:n.font_family,fontSize:n.font_size,fontWeight:n.font_weight};return PS(r)}const DS={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?Y.artwork_url_append_size_params(this.artwork_url,this.maxwidth,this.maxheight):Y.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 B_(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 FS(e,t,n,o,i,r){const s=oc("lazy");return S(),D("figure",null,[zt(c("img",{onClick:t[0]||(t[0]=a=>e.$emit("click"))},null,512),[[s,{src:r.artwork_url_with_size,lifecycle:i.lazy_lifecycle}]])])}var Io=_e(DS,[["render",FS]]);const IS={name:"PageNowPlaying",components:{ModalDialogQueueItem:qv,Slider:Fs,CoverArtwork:Io},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,Y.player_status().then(({data:e})=>{this.$store.commit(lf,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){Y.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}}},MS={key:0,class:"fd-is-fullheight"},LS={class:"fd-is-expanded"},RS={class:"fd-has-padding-left-right"},NS={class:"container has-text-centered"},jS={class:"control has-text-centered fd-progress-now-playing"},VS={class:"content"},BS=["textContent"],US={class:"fd-has-padding-left-right"},HS={class:"container has-text-centered fd-has-margin-top"},qS=["textContent"],GS=["textContent"],WS=["textContent"],KS=["textContent"],YS={key:1,class:"fd-is-fullheight"},ZS={class:"fd-is-expanded fd-has-padding-left-right",style:{"flex-direction":"column"}},JS={class:"content has-text-centered"},XS=["textContent"],QS=["textContent"];function e$(e,t,n,o,i,r){const s=P("cover-artwork"),a=P("Slider"),l=P("modal-dialog-queue-item");return S(),D("section",null,[r.now_playing.id>0?(S(),D("div",MS,[c("div",LS,[x(s,{artwork_url:r.now_playing.artwork_url,artist:r.now_playing.artist,album:r.now_playing.album,class:"fd-cover-image fd-has-action",onClick:t[0]||(t[0]=u=>r.open_dialog(r.now_playing))},null,8,["artwork_url","artist","album"])]),c("div",RS,[c("div",NS,[c("p",jS,[x(a,{ref:"slider",modelValue:i.item_progress_ms,"onUpdate:modelValue":t[1]||(t[1]=u=>i.item_progress_ms=u),min:0,max:r.state.item_length_ms,step:1e3,tooltips:!1,disabled:r.state.state==="stop",classes:{target:"seek-slider"},onChange:r.seek,onStart:r.start_dragging,onEnd:r.end_dragging},null,8,["modelValue","max","disabled","onChange","onStart","onEnd"])]),c("p",VS,[c("span",{textContent:_([e.$filters.durationInHours(i.item_progress_ms),e.$filters.durationInHours(r.now_playing.length_ms)].join(" / "))},null,8,BS)])])]),c("div",US,[c("div",HS,[c("h1",{class:"title is-5",textContent:_(r.now_playing.title)},null,8,qS),c("h2",{class:"title is-6",textContent:_(r.now_playing.artist)},null,8,GS),r.composer?(S(),D("h2",{key:0,class:"subtitle is-6 has-text-grey has-text-weight-bold",textContent:_(r.composer)},null,8,WS)):Q("",!0),c("h3",{class:"subtitle is-6",textContent:_(r.now_playing.album)},null,8,KS)])])])):(S(),D("div",YS,[c("div",ZS,[c("div",JS,[c("h1",{class:"title is-5",textContent:_(e.$("page.now-playing.title"))},null,8,XS),c("p",{textContent:_(e.$("page.now-playing.info"))},null,8,QS)])])])),x(l,{show:i.show_details_modal,item:i.selected_item,onClose:t[2]||(t[2]=u=>i.show_details_modal=!1)},null,8,["show","item"])])}var t$=_e(IS,[["render",e$]]);const n$={name:"TabsMusic",computed:{spotify_enabled(){return this.$store.state.spotify.webapi_token_valid}}},o$={class:"section fd-tabs-section"},i$={class:"container"},r$={class:"columns is-centered"},s$={class:"column is-four-fifths"},a$={class:"tabs is-centered is-small"},l$=["onClick","onKeypress"],c$={class:"icon is-small"},u$=["textContent"],d$=["onClick","onKeypress"],f$={class:"icon is-small"},m$=["textContent"],h$=["onClick","onKeypress"],p$={class:"icon is-small"},b$=["textContent"],g$=["onClick","onKeypress"],v$={class:"icon is-small"},_$=["textContent"],y$=["onClick","onKeypress"],w$={class:"icon is-small"},x$=["textContent"],k$=["onClick","onKeypress"],C$={class:"icon is-small"},z$=["textContent"];function S$(e,t,n,o,i,r){const s=P("mdicon"),a=P("router-link");return S(),D("section",o$,[c("div",i$,[c("div",r$,[c("div",s$,[c("div",a$,[c("ul",null,[x(a,{to:"/music/browse",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",c$,[x(s,{name:"web",size:"16"})]),c("span",{textContent:_(e.$t("page.browse.tabs.browse"))},null,8,u$)],40,l$)],2)]),_:1}),x(a,{to:"/music/artists",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",f$,[x(s,{name:"account-music",size:"16"})]),c("span",{textContent:_(e.$t("page.browse.tabs.artists"))},null,8,m$)],40,d$)],2)]),_:1}),x(a,{to:"/music/albums",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",p$,[x(s,{name:"album",size:"16"})]),c("span",{textContent:_(e.$t("page.browse.tabs.albums"))},null,8,b$)],40,h$)],2)]),_:1}),x(a,{to:"/music/genres",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",v$,[x(s,{name:"speaker",size:"16"})]),c("span",{textContent:_(e.$t("page.browse.tabs.genres"))},null,8,_$)],40,g$)],2)]),_:1}),x(a,{to:"/music/composers",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",w$,[x(s,{name:"book-open-page-variant",size:"16"})]),c("span",{textContent:_(e.$t("page.browse.tabs.composers"))},null,8,x$)],40,y$)],2)]),_:1}),r.spotify_enabled?(S(),Ce(a,{key:0,to:"/music/spotify",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",C$,[x(s,{name:"spotify",size:"16"})]),c("span",{textContent:_(e.$t("page.browse.tabs.spotify"))},null,8,z$)],40,k$)],2)]),_:1})):Q("",!0)])])])])])])}var yo=_e(n$,[["render",S$]]);const $$={name:"ModalDialogAlbum",components:{CoverArtwork:Io},props:["show","album","media_kind","new_tracks"],emits:["close","remove-podcast","play-count-changed"],data(){return{artwork_visible:!1}},computed:{artwork_url:function(){return Y.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"),Y.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),Y.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(){Y.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}}},E$={key:0,class:"modal is-active"},A$={class:"modal-content fd-modal-card"},O$={class:"card"},T$={class:"card-content"},P$={class:"title is-4"},D$=["textContent"],F$={key:0,class:"buttons"},I$=["textContent"],M$=["textContent"],L$={class:"content is-small"},R$={key:0},N$=["textContent"],j$=["textContent"],V$={key:1},B$=["textContent"],U$=["textContent"],H$={key:2},q$=["textContent"],G$=["textContent"],W$=["textContent"],K$=["textContent"],Y$=["textContent"],Z$=["textContent"],J$=["textContent"],X$=["textContent"],Q$=["textContent"],eE=["textContent"],tE={class:"card-footer"},nE={class:"icon"},oE=["textContent"],iE={class:"icon"},rE=["textContent"],sE={class:"icon"},aE=["textContent"];function lE(e,t,n,o,i,r){const s=P("cover-artwork"),a=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",E$,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=l=>e.$emit("close"))}),c("div",A$,[c("div",O$,[c("div",T$,[x(s,{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",P$,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...l)=>r.open_album&&r.open_album(...l)),textContent:_(n.album.name)},null,8,D$)]),r.media_kind_resolved==="podcast"?(S(),D("div",F$,[c("a",{class:"button is-small",onClick:t[2]||(t[2]=(...l)=>r.mark_played&&r.mark_played(...l)),textContent:_(e.$t("dialog.album.mark-as-played"))},null,8,I$),c("a",{class:"button is-small",onClick:t[3]||(t[3]=l=>e.$emit("remove-podcast")),textContent:_(e.$t("dialog.album.remove-podcast"))},null,8,M$)])):Q("",!0),c("div",L$,[n.album.artist?(S(),D("p",R$,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.artist"))},null,8,N$),c("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...l)=>r.open_artist&&r.open_artist(...l)),textContent:_(n.album.artist)},null,8,j$)])):Q("",!0),n.album.date_released?(S(),D("p",V$,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.release-date"))},null,8,B$),c("span",{class:"title is-6",textContent:_(e.$filters.date(n.album.date_released))},null,8,U$)])):n.album.year>0?(S(),D("p",H$,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.year"))},null,8,q$),c("span",{class:"title is-6",textContent:_(n.album.year)},null,8,G$)])):Q("",!0),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.tracks"))},null,8,W$),c("span",{class:"title is-6",textContent:_(n.album.track_count)},null,8,K$)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.duration"))},null,8,Y$),c("span",{class:"title is-6",textContent:_(e.$filters.durationInHours(n.album.length_ms))},null,8,Z$)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.type"))},null,8,J$),c("span",{class:"title is-6",textContent:_([e.$t("media.kind."+n.album.media_kind),e.$t("data.kind."+n.album.data_kind)].join(" - "))},null,8,X$)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.album.added-on"))},null,8,Q$),c("span",{class:"title is-6",textContent:_(e.$filters.datetime(n.album.time_added))},null,8,eE)])])]),c("footer",tE,[c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...l)=>r.queue_add&&r.queue_add(...l))},[c("span",nE,[x(a,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.album.add"))},null,8,oE)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...l)=>r.queue_add_next&&r.queue_add_next(...l))},[c("span",iE,[x(a,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.album.add-next"))},null,8,rE)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...l)=>r.play&&r.play(...l))},[c("span",sE,[x(a,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.album.play"))},null,8,aE)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=l=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var vc=_e($$,[["render",lE]]);const cE={name:"ModalDialog",props:["show","title","ok_action","delete_action","close_action"],emits:["delete","close","ok"]},uE={key:0,class:"modal is-active"},dE={class:"modal-content fd-modal-card"},fE={class:"card"},mE={class:"card-content"},hE=["textContent"],pE={class:"card-footer"},bE={class:"icon"},gE=["textContent"],vE={class:"icon"},_E=["textContent"],yE={class:"icon"},wE=["textContent"];function xE(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",uE,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",dE,[c("div",fE,[c("div",mE,[n.title?(S(),D("p",{key:0,class:"title is-4",textContent:_(n.title)},null,8,hE)):Q("",!0),Ct(e.$slots,"modal-content")]),c("footer",pE,[c("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=a=>e.$emit("close"))},[c("span",bE,[x(s,{name:"cancel",size:"16"})]),c("span",{class:"is-size-7",textContent:_(n.close_action?n.close_action:e.t("dialog.cancel"))},null,8,gE)]),n.delete_action?(S(),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("span",vE,[x(s,{name:"delete",size:"16"})]),c("span",{class:"is-size-7",textContent:_(n.delete_action)},null,8,_E)])):Q("",!0),n.ok_action?(S(),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("span",yE,[x(s,{name:"check",size:"16"})]),c("span",{class:"is-size-7",textContent:_(n.ok_action)},null,8,wE)])):Q("",!0)])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):Q("",!0)]),_:3})])}var Pf=_e(cE,[["render",xE]]);const kE={name:"ListAlbums",components:{ModalDialogAlbum:vc,ModalDialog:Pf},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(){Y.library_album_tracks(this.selected_album.id,{limit:1}).then(({data:e})=>{Y.library_track_playlists(e.items[0].id).then(({data:t})=>{const n=t.items.filter(o=>o.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,Y.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?Y.artwork_url_append_size_params(e,this.artwork_options.width,this.artwork_options.height):Y.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),o=this.alt_text(e,t);return B_(n,o,{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})}}},CE={key:0,class:"mt-6 mb-5 py-2"},zE=["id","textContent"],SE=["onClick"],$E={key:0,class:"media-left fd-has-action"},EE={class:"image is-64x64 fd-has-shadow fd-has-action"},AE=["album","artist"],OE={class:"media-content fd-has-action is-clipped"},TE={style:{"margin-top":"0.7rem"}},PE=["textContent"],DE={class:"subtitle is-7 has-text-grey"},FE=["textContent"],IE=["textContent"],ME={class:"media-right",style:{"padding-top":"0.7rem"}},LE=["onClick"],RE={class:"icon has-text-dark"},NE=["textContent"],jE={class:"is-size-7"},VE=_t(" ("),BE=["textContent"],UE=["textContent"],HE=_t(") ");function qE(e,t,n,o,i,r){const s=P("mdicon"),a=P("modal-dialog-album"),l=P("modal-dialog"),u=oc("lazy");return S(),D(Ge,null,[(S(!0),D(Ge,null,xt(n.albums,d=>(S(),D(Ge,{key:d.itemId},[!d.isItem&&!n.hide_group_title?(S(),D("div",CE,[c("span",{id:"index_"+d.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:_(d.groupKey)},null,8,zE)])):d.isItem?(S(),D("div",{key:1,class:"media",onClick:m=>r.open_album(d.item)},[r.is_visible_artwork?(S(),D("div",$E,[c("div",EE,[c("figure",null,[zt(c("img",{album:d.item.name,artist:d.item.artist},null,8,AE),[[u,{src:r.artwork_url_with_size(d.item.artwork_url),lifecycle:i.artwork_options.lazy_lifecycle,delay:500}]])])])])):Q("",!0),c("div",OE,[c("div",TE,[c("h1",{class:"title is-6",textContent:_(d.item.name)},null,8,PE),c("h2",DE,[c("b",{textContent:_(d.item.artist)},null,8,FE)]),d.item.date_released&&d.item.media_kind==="music"?(S(),D("h2",{key:0,class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:_(e.$filters.date(d.item.date_released))},null,8,IE)):Q("",!0)])]),c("div",ME,[c("a",{onClick:bt(m=>r.open_dialog(d.item),["prevent","stop"])},[c("span",RE,[x(s,{name:"dots-vertical",size:"16"})])],8,LE)])],8,SE)):Q("",!0)],64))),128)),(S(),Ce(ci,{to:"#app"},[x(a,{show:i.show_details_modal,album:i.selected_album,media_kind:n.media_kind,onRemovePodcast:t[0]||(t[0]=d=>r.open_remove_podcast_dialog()),onPlayCountChanged:t[1]||(t[1]=d=>r.play_count_changed()),onClose:t[2]||(t[2]=d=>i.show_details_modal=!1)},null,8,["show","album","media_kind"]),x(l,{show:i.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=d=>i.show_remove_podcast_modal=!1),onDelete:r.remove_podcast},{"modal-content":T(()=>[c("p",{textContent:_(e.$t("list.albums.info-1"))},null,8,NE),c("p",jE,[VE,c("span",{textContent:_(e.$t("list.albums.info-2"))},null,8,BE),c("b",{textContent:_(i.rss_playlist_to_remove.name)},null,8,UE),HE])]),_:1},8,["show","onDelete"])]))],64)}var wo=_e(kE,[["render",qE]]);const GE={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 co;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"),Y.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),Y.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(){Y.library_track_update(this.track.id,{play_count:"reset"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})},mark_played:function(){Y.library_track_update(this.track.id,{play_count:"increment"}).then(()=>{this.$emit("play-count-changed"),this.$emit("close")})}}},WE={key:0,class:"modal is-active"},KE={class:"modal-content fd-modal-card"},YE={class:"card"},ZE={class:"card-content"},JE=["textContent"],XE=["textContent"],QE={key:0,class:"buttons"},e7=["textContent"],t7=["textContent"],n7={class:"content is-small"},o7=["textContent"],i7=["textContent"],r7={key:0},s7=["textContent"],a7=["textContent"],l7={key:1},c7=["textContent"],u7=["textContent"],d7={key:2},f7=["textContent"],m7=["textContent"],h7={key:3},p7=["textContent"],b7=["textContent"],g7={key:4},v7=["textContent"],_7=["textContent"],y7=["textContent"],w7=["textContent"],x7=["textContent"],k7=["textContent"],C7=["textContent"],z7=["textContent"],S7=["textContent"],$7={class:"title is-6"},E7=["textContent"],A7={key:0,class:"has-text-weight-normal"},O7=_t(" ("),T7=["textContent"],P7=_t(", "),D7=["textContent"],F7=_t(") "),I7=["textContent"],M7={class:"title is-6"},L7=["textContent"],R7=["textContent"],N7=["textContent"],j7=["textContent"],V7=["textContent"],B7=["textContent"],U7=["textContent"],H7=["textContent"],q7={key:5},G7=["textContent"],W7=["textContent"],K7={class:"card-footer"},Y7={class:"icon"},Z7=["textContent"],J7={class:"icon"},X7=["textContent"],Q7={class:"icon"},eA=["textContent"];function tA(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",WE,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",KE,[c("div",YE,[c("div",ZE,[c("p",{class:"title is-4",textContent:_(n.track.title)},null,8,JE),c("p",{class:"subtitle",textContent:_(n.track.artist)},null,8,XE),n.track.media_kind==="podcast"?(S(),D("div",QE,[n.track.play_count>0?(S(),D("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...a)=>r.mark_new&&r.mark_new(...a)),textContent:_(e.$t("dialog.track.mark-as-new"))},null,8,e7)):Q("",!0),n.track.play_count===0?(S(),D("a",{key:1,class:"button is-small",onClick:t[2]||(t[2]=(...a)=>r.mark_played&&r.mark_played(...a)),textContent:_(e.$t("dialog.track.mark-as-played"))},null,8,t7)):Q("",!0)])):Q("",!0),c("div",n7,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.album"))},null,8,o7),c("a",{class:"title is-6 has-text-link",onClick:t[3]||(t[3]=(...a)=>r.open_album&&r.open_album(...a)),textContent:_(n.track.album)},null,8,i7)]),n.track.album_artist&&n.track.media_kind!=="audiobook"?(S(),D("p",r7,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.album-artist"))},null,8,s7),c("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>r.open_artist&&r.open_artist(...a)),textContent:_(n.track.album_artist)},null,8,a7)])):Q("",!0),n.track.composer?(S(),D("p",l7,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.composer"))},null,8,c7),c("span",{class:"title is-6",textContent:_(n.track.composer)},null,8,u7)])):Q("",!0),n.track.date_released?(S(),D("p",d7,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.release-date"))},null,8,f7),c("span",{class:"title is-6",textContent:_(e.$filters.date(n.track.date_released))},null,8,m7)])):n.track.year>0?(S(),D("p",h7,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.year"))},null,8,p7),c("span",{class:"title is-6",textContent:_(n.track.year)},null,8,b7)])):Q("",!0),n.track.genre?(S(),D("p",g7,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.genre"))},null,8,v7),c("a",{class:"title is-6 has-text-link",onClick:t[5]||(t[5]=(...a)=>r.open_genre&&r.open_genre(...a)),textContent:_(n.track.genre)},null,8,_7)])):Q("",!0),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.position"))},null,8,y7),c("span",{class:"title is-6",textContent:_([n.track.disc_number,n.track.track_number].join(" / "))},null,8,w7)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.duration"))},null,8,x7),c("span",{class:"title is-6",textContent:_(e.$filters.durationInHours(n.track.length_ms))},null,8,k7)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.path"))},null,8,C7),c("span",{class:"title is-6",textContent:_(n.track.path)},null,8,z7)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.type"))},null,8,S7),c("span",$7,[c("span",{textContent:_([e.$t("media.kind."+n.track.media_kind),e.$t("data.kind."+n.track.data_kind)].join(" - "))},null,8,E7),n.track.data_kind==="spotify"?(S(),D("span",A7,[O7,c("a",{onClick:t[6]||(t[6]=(...a)=>r.open_spotify_artist&&r.open_spotify_artist(...a)),textContent:_(e.$t("dialog.track.spotify-artist"))},null,8,T7),P7,c("a",{onClick:t[7]||(t[7]=(...a)=>r.open_spotify_album&&r.open_spotify_album(...a)),textContent:_(e.$t("dialog.track.spotify-album"))},null,8,D7),F7])):Q("",!0)])]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.quality"))},null,8,I7),c("span",M7,[c("span",{textContent:_(n.track.type)},null,8,L7),n.track.samplerate?(S(),D("span",{key:0,textContent:_(e.$t("dialog.track.samplerate",{rate:n.track.samplerate}))},null,8,R7)):Q("",!0),n.track.channels?(S(),D("span",{key:1,textContent:_(e.$t("dialog.track.channels",{channels:e.$filters.channels(n.track.channels)}))},null,8,N7)):Q("",!0),n.track.bitrate?(S(),D("span",{key:2,textContent:_(e.$t("dialog.track.bitrate",{rate:n.track.bitrate}))},null,8,j7)):Q("",!0)])]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.added-on"))},null,8,V7),c("span",{class:"title is-6",textContent:_(e.$filters.datetime(n.track.time_added))},null,8,B7)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.rating"))},null,8,U7),c("span",{class:"title is-6",textContent:_(e.$t("dialog.track.rating-value",{rating:Math.floor(n.track.rating/10)}))},null,8,H7)]),n.track.comment?(S(),D("p",q7,[c("span",{class:"heading",textContent:_(e.$t("dialog.track.comment"))},null,8,G7),c("span",{class:"title is-6",textContent:_(n.track.comment)},null,8,W7)])):Q("",!0)])]),c("footer",K7,[c("a",{class:"card-footer-item has-text-dark",onClick:t[8]||(t[8]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",Y7,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.track.add"))},null,8,Z7)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[9]||(t[9]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",J7,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.track.add-next"))},null,8,X7)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[10]||(t[10]=(...a)=>r.play_track&&r.play_track(...a))},[c("span",Q7,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.track.play"))},null,8,eA)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[11]||(t[11]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var nA=_e(GE,[["render",tA]]);const oA={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 iA(e,t,n,o,i,r){return r.width>0?(S(),D("div",{key:0,class:"progress-bar mt-2",style:li({width:r.width_percent})},null,4)):Q("",!0)}var rA=_e(oA,[["render",iA]]);const sA={name:"ListTracks",components:{ModalDialogTrack:nA,ProgressBar:rA},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?Y.player_play_uri(this.uris,!1,e):this.expression?Y.player_play_expression(this.expression,!1,e):Y.player_play_uri(t.uri,!1)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},aA=["id","onClick"],lA={key:0,class:"media-left fd-has-action"},cA={class:"icon"},uA={class:"media-content fd-has-action is-clipped"},dA=["textContent"],fA=["textContent"],mA=["textContent"],hA={class:"media-right"},pA=["onClick"],bA={class:"icon has-text-dark"};function gA(e,t,n,o,i,r){const s=P("mdicon"),a=P("progress-bar"),l=P("modal-dialog-track");return S(),D(Ge,null,[(S(!0),D(Ge,null,xt(n.tracks,(u,d)=>(S(),D("div",{id:"index_"+u.title_sort.charAt(0).toUpperCase(),key:u.id,class:Ye(["media",{"with-progress":n.show_progress}]),onClick:m=>r.play_track(d,u)},[n.show_icon?(S(),D("figure",lA,[c("span",cA,[x(s,{name:"file-outline",size:"16"})])])):Q("",!0),c("div",uA,[c("h1",{class:Ye(["title is-6",{"has-text-grey":u.media_kind==="podcast"&&u.play_count>0}]),textContent:_(u.title)},null,10,dA),c("h2",{class:"subtitle is-7 has-text-grey",textContent:_(u.artist)},null,8,fA),c("h2",{class:"subtitle is-7 has-text-grey",textContent:_(u.album)},null,8,mA),n.show_progress?(S(),Ce(a,{key:0,max:u.length_ms,value:u.seek_ms},null,8,["max","value"])):Q("",!0)]),c("div",hA,[c("a",{onClick:bt(m=>r.open_dialog(u),["prevent","stop"])},[c("span",bA,[x(s,{name:"dots-vertical",size:"16"})])],8,pA)])],10,aA))),128)),(S(),Ce(ci,{to:"#app"},[x(l,{show:i.show_details_modal,track:i.selected_track,onClose:t[0]||(t[0]=u=>i.show_details_modal=!1),onPlayCountChanged:t[1]||(t[1]=u=>e.$emit("play-count-changed"))},null,8,["show","track"])]))],64)}var Nn=_e(sA,[["render",gA]]);const U_="GROUP_KEY_NONE";function H_(){return{compareFn:null,groupKeyFn:e=>U_}}function Tr(e,t="_"){return{compareFn:null,groupKeyFn:n=>(n[e]||t).charAt(0).toUpperCase()}}function q_(e,t="_"){return{compareFn:(n,o)=>{const i=n[e]||t,r=o[e]||t;return i.localeCompare(r)},groupKeyFn:n=>(n[e]||t).charAt(0).toUpperCase()}}function Ml(e,{direction:t="asc",defaultValue:n="0000"}){return{compareFn:(o,i)=>{const r=o[e]||n,s=i[e]||n,a=r.localeCompare(s);return t==="asc"?a:a*-1},groupKeyFn:o=>(o[e]||n).substring(0,4)}}function vA(e,t="0000"){return{compareFn:(n,o)=>{const i=n[e]||t;return(o[e]||t).localeCompare(i)},groupKeyFn:n=>{const o=n[e];if(!o)return t;const i=new Date().getTime()-new Date(o).getTime();return i<864e5?"Today":i<6048e5?"Last week":i<2592e6?"Last month":o.substring(0,4)}}}class it{constructor({items:t=[],total:n=0,offset:o=0,limit:i=-1}={}){this.items=t,this.total=n,this.offset=o,this.limit=i,this.count=t.length,this.indexList=[],this.group(H_())}get(){return this.itemsByGroup}isEmpty(){return!this.items||this.items.length<=0}group(t,n=[]){const o=n?this.items.filter(r=>n.every(s=>s(r))):this.items;this.count=o.length;let i=t.compareFn?[...o].sort(t.compareFn):o;this.indexList=[...new Set(i.map(t.groupKeyFn))],this.itemsByGroup=i.reduce((r,s)=>{const a=t.groupKeyFn(s);return r[a]=[...r[a]||[],s],r},{})}[Symbol.iterator](){let t=-1,n=-1;return{next:()=>{if(this.isEmpty())return{done:!0};if(t>=this.indexList.length)return{done:!0};if(t<0&&(++t,n=0,this.indexList[t]!==U_))return{value:{groupKey:this.indexList[t],itemId:this.indexList[t],isItem:!1,item:{}},done:!1};let o=this.indexList[t],i=this.itemsByGroup[o];if(n<i.length){const r=this.itemsByGroup[o][n++];return{value:{groupKey:o,itemId:r.id,isItem:!0,item:r},done:!1}}else return++t,n=0,t<this.indexList.length?(o=this.indexList[t],{value:{groupKey:o,itemId:o,isItem:!1,item:{}},done:!1}):{done:!0}}}}}const ka={load:function(e){return Promise.all([Y.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}),Y.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 it(t[0].data.albums),e.recently_played=t[1].data.tracks}},_A={name:"PageBrowse",components:{ContentWithHeading:ht,TabsMusic:yo,ListAlbums:wo,ListTracks:Nn},beforeRouteEnter(e,t,n){ka.load(e).then(o=>{n(i=>ka.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;ka.load(e).then(i=>{ka.set(o,i),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})}}},yA={class:"fd-page-with-tabs"},wA=["textContent"],xA=["textContent"],kA={class:"level"},CA={class:"level-item"},zA=["textContent"],SA=["textContent"],$A=["textContent"],EA={class:"level"},AA={class:"level-item"},OA=["textContent"];function TA(e,t,n,o,i,r){const s=P("tabs-music"),a=P("list-albums"),l=P("content-with-heading"),u=P("list-tracks");return S(),D("div",yA,[x(s),x(l,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.browse.recently-added.title"))},null,8,wA),c("p",{class:"heading",textContent:_(e.$t("page.browse.albums"))},null,8,xA)]),content:T(()=>[x(a,{albums:i.recently_added},null,8,["albums"])]),footer:T(()=>[c("nav",kA,[c("p",CA,[c("a",{class:"button is-light is-small is-rounded",onClick:t[0]||(t[0]=d=>r.open_browse("recently_added")),textContent:_(e.$t("page.browse.show-more"))},null,8,zA)])])]),_:1}),x(l,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.browse.recently-played.title"))},null,8,SA),c("p",{class:"heading",textContent:_(e.$t("page.browse.tracks"))},null,8,$A)]),content:T(()=>[x(u,{tracks:i.recently_played.items},null,8,["tracks"])]),footer:T(()=>[c("nav",EA,[c("p",AA,[c("a",{class:"button is-light is-small is-rounded",onClick:t[1]||(t[1]=d=>r.open_browse("recently_played")),textContent:_(e.$t("page.browse.show-more"))},null,8,OA)])])]),_:1})])}var PA=_e(_A,[["render",TA]]);const Ca={load:function(e){const t=at.getters.settings_option_recently_added_limit;return Y.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 it(t.data.albums),e.recently_added.group(vA("time_added",{direction:"desc",defaultValue:"0000"}))}},DA={name:"PageBrowseType",components:{ContentWithHeading:ht,TabsMusic:yo,ListAlbums:wo},beforeRouteEnter(e,t,n){Ca.load(e).then(o=>{n(i=>Ca.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.recently_added.isEmpty()){n();return}const o=this;Ca.load(e).then(i=>{Ca.set(o,i),n()})},data(){return{recently_added:new it}}},FA={class:"fd-page-with-tabs"},IA=["textContent"],MA=["textContent"];function LA(e,t,n,o,i,r){const s=P("tabs-music"),a=P("list-albums"),l=P("content-with-heading");return S(),D("div",FA,[x(s),x(l,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.browse.recently-added.title"))},null,8,IA),c("p",{class:"heading",textContent:_(e.$t("page.browse.recently-added.albums"))},null,8,MA)]),content:T(()=>[x(a,{albums:i.recently_added},null,8,["albums"])]),_:1})])}var RA=_e(DA,[["render",LA]]);const za={load:function(e){return Y.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}},NA={name:"PageBrowseType",components:{ContentWithHeading:ht,TabsMusic:yo,ListTracks:Nn},beforeRouteEnter(e,t,n){za.load(e).then(o=>{n(i=>za.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;za.load(e).then(i=>{za.set(o,i),n()})},data(){return{recently_played:{}}}},jA={class:"fd-page-with-tabs"},VA=["textContent"],BA=["textContent"];function UA(e,t,n,o,i,r){const s=P("tabs-music"),a=P("list-tracks"),l=P("content-with-heading");return S(),D("div",jA,[x(s),x(l,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.browse.recently-played.title"))},null,8,VA),c("p",{class:"heading",textContent:_(e.$t("page.browse.recently-played.tracks"))},null,8,BA)]),content:T(()=>[x(a,{tracks:i.recently_played.items},null,8,["tracks"])]),_:1})])}var HA=_e(NA,[["render",UA]]);const qA={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"})}}},GA={class:"buttons is-centered fd-is-square",style:{"margin-bottom":"16px"}},WA=["onClick","textContent"];function KA(e,t,n,o,i,r){return S(),D("section",null,[c("nav",GA,[(S(!0),D(Ge,null,xt(r.filtered_index,s=>(S(),D("a",{key:s,class:"button is-small",onClick:a=>r.nav(s),textContent:_(s)},null,8,WA))),128))])])}var Mo=_e(qA,[["render",KA]]);const YA={name:"ModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),Y.queue_add_next(this.artist.uri)},open_artist:function(){this.$emit("close"),this.$router.push({path:"/music/artists/"+this.artist.id})}}},ZA={key:0,class:"modal is-active"},JA={class:"modal-content fd-modal-card"},XA={class:"card"},QA={class:"card-content"},eO={class:"title is-4"},tO=["textContent"],nO={class:"content is-small"},oO=["textContent"],iO=["textContent"],rO=["textContent"],sO=["textContent"],aO=["textContent"],lO=["textContent"],cO=["textContent"],uO=["textContent"],dO={class:"card-footer"},fO={class:"icon"},mO=["textContent"],hO={class:"icon"},pO=["textContent"],bO={class:"icon"},gO=["textContent"];function vO(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",ZA,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",JA,[c("div",XA,[c("div",QA,[c("p",eO,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_artist&&r.open_artist(...a)),textContent:_(n.artist.name)},null,8,tO)]),c("div",nO,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.artist.albums"))},null,8,oO),c("span",{class:"title is-6",textContent:_(n.artist.album_count)},null,8,iO)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.artist.tracks"))},null,8,rO),c("span",{class:"title is-6",textContent:_(n.artist.track_count)},null,8,sO)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.artist.type"))},null,8,aO),c("span",{class:"title is-6",textContent:_(e.$t("data.kind."+n.artist.data_kind))},null,8,lO)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.artist.added-on"))},null,8,cO),c("span",{class:"title is-6",textContent:_(e.$filters.datetime(n.artist.time_added))},null,8,uO)])])]),c("footer",dO,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",fO,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.artist.add"))},null,8,mO)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",hO,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.artist.add-next"))},null,8,pO)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.play&&r.play(...a))},[c("span",bO,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.artist.play"))},null,8,gO)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var _c=_e(YA,[["render",vO]]);const _O={name:"ListArtists",components:{ModalDialogArtist:_c},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}}},yO={key:0,class:"mt-6 mb-5 py-2"},wO={class:"media-content is-clipped"},xO=["id","textContent"],kO=["onClick"],CO={class:"media-content fd-has-action is-clipped"},zO=["textContent"],SO={class:"media-right"},$O=["onClick"],EO={class:"icon has-text-dark"};function AO(e,t,n,o,i,r){const s=P("mdicon"),a=P("modal-dialog-artist");return S(),D(Ge,null,[(S(!0),D(Ge,null,xt(n.artists,l=>(S(),D(Ge,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(S(),D("div",yO,[c("div",wO,[c("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:_(l.groupKey)},null,8,xO)])])):l.isItem?(S(),D("div",{key:1,class:"media",onClick:u=>r.open_artist(l.item)},[c("div",CO,[c("h1",{class:"title is-6",textContent:_(l.item.name)},null,8,zO)]),c("div",SO,[c("a",{onClick:bt(u=>r.open_dialog(l.item),["prevent","stop"])},[c("span",EO,[x(s,{name:"dots-vertical",size:"16"})])],8,$O)])],8,kO)):Q("",!0)],64))),128)),(S(),Ce(ci,{to:"#app"},[x(a,{show:i.show_details_modal,artist:i.selected_artist,media_kind:n.media_kind,onClose:t[0]||(t[0]=l=>i.show_details_modal=!1)},null,8,["show","artist","media_kind"])]))],64)}var Df=_e(_O,[["render",AO]]);const OO={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)}}},TO={class:"dropdown-trigger"},PO=["textContent"],DO={class:"icon"},FO={id:"dropdown-menu",class:"dropdown-menu",role:"menu"},IO={class:"dropdown-content"},MO=["onClick","textContent"];function LO(e,t,n,o,i,r){const s=P("mdicon"),a=oc("click-away");return zt((S(),D("div",{class:Ye(["dropdown",{"is-active":i.is_active}])},[c("div",TO,[c("button",{class:"button","aria-haspopup":"true","aria-controls":"dropdown-menu",onClick:t[0]||(t[0]=l=>i.is_active=!i.is_active)},[c("span",{textContent:_(r.option.name)},null,8,PO),c("span",DO,[x(s,{name:"chevron-down",size:"16"})])])]),c("div",FO,[c("div",IO,[(S(!0),D(Ge,null,xt(n.options,l=>(S(),D("a",{key:l.id,class:Ye(["dropdown-item",{"is-active":n.modelValue===l.id}]),onClick:u=>r.select(l),textContent:_(l.name)},null,10,MO))),128))])])],2)),[[a,r.onClickOutside]])}var yc=_e(OO,[["render",LO]]);const Sa={load:function(e){return Y.library_artists("music")},set:function(e,t){e.artists_list=new it(t.data)}},RO={name:"PageArtists",components:{ContentWithHeading:ht,TabsMusic:yo,IndexButtonList:Mo,ListArtists:Df,DropdownMenu:yc},beforeRouteEnter(e,t,n){Sa.load(e).then(o=>{n(i=>Sa.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const o=this;Sa.load(e).then(i=>{Sa.set(o,i),n()})},data(){return{artists_list:new it,groupby_options:[{id:1,name:this.$t("page.artists.sort-by.name"),options:Tr("name_sort")},{id:2,name:this.$t("page.artists.sort-by.recently-added"),options:Ml("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(cv,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(dc,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(ff,e)}}},methods:{}},NO={class:"fd-page-with-tabs"},jO={class:"columns"},VO={class:"column"},BO=["textContent"],UO={class:"field"},HO={class:"control"},qO=["textContent"],GO=["textContent"],WO={key:0,class:"field"},KO={class:"control"},YO=["textContent"],ZO=["textContent"],JO={class:"column"},XO=["textContent"],QO=["textContent"],eT=["textContent"];function tT(e,t,n,o,i,r){const s=P("tabs-music"),a=P("index-button-list"),l=P("dropdown-menu"),u=P("list-artists"),d=P("content-with-heading");return S(),D("div",NO,[x(s),x(d,null,{options:T(()=>[x(a,{index:r.artists.indexList},null,8,["index"]),c("div",jO,[c("div",VO,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:_(e.$t("page.artists.filter"))},null,8,BO),c("div",UO,[c("div",HO,[zt(c("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=m=>r.hide_singles=m),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[Oo,r.hide_singles]]),c("label",{for:"switchHideSingles",textContent:_(e.$t("page.artists.hide-singles"))},null,8,qO)]),c("p",{class:"help",textContent:_(e.$t("page.artists.hide-singles-help"))},null,8,GO)]),r.spotify_enabled?(S(),D("div",WO,[c("div",KO,[zt(c("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=m=>r.hide_spotify=m),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[Oo,r.hide_spotify]]),c("label",{for:"switchHideSpotify",textContent:_(e.$t("page.artists.hide-spotify"))},null,8,YO)]),c("p",{class:"help",textContent:_(e.$t("page.artists.hide-spotify-help"))},null,8,ZO)])):Q("",!0)]),c("div",JO,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:_(e.$t("page.artists.sort-by.title"))},null,8,XO),x(l,{modelValue:r.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=m=>r.selected_groupby_option_id=m),options:i.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.artists.title"))},null,8,QO),c("p",{class:"heading",textContent:_(e.$t("page.artists.count",{count:r.artists.count}))},null,8,eT)]),"heading-right":T(()=>[]),content:T(()=>[x(u,{artists:r.artists},null,8,["artists"])]),_:1})])}var nT=_e(RO,[["render",tT]]);const $a={load:function(e){return Promise.all([Y.library_artist(e.params.artist_id),Y.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums_list=new it(t[1].data)}},oT={name:"PageArtist",components:{ContentWithHeading:ht,ListAlbums:wo,ModalDialogArtist:_c,DropdownMenu:yc},beforeRouteEnter(e,t,n){$a.load(e).then(o=>{n(i=>$a.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;$a.load(e).then(i=>{$a.set(o,i),n()})},data(){return{artist:{},albums_list:new it,groupby_options:[{id:1,name:this.$t("page.artist.sort-by.name"),options:Tr("name_sort")},{id:2,name:this.$t("page.artist.sort-by.release-date"),options:Ml("date_released",{direction:"asc",defaultValue:"0000"})}],show_artist_details_modal:!1}},computed:{albums(){const e=this.groupby_options.find(t=>t.id===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(uv,e)}}},methods:{open_tracks:function(){this.$router.push({path:"/music/artists/"+this.artist.id+"/tracks"})},play:function(){Y.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!0)}}},iT={class:"columns"},rT={class:"column"},sT=["textContent"],aT=["textContent"],lT={class:"buttons is-centered"},cT={class:"icon"},uT={class:"icon"},dT=["textContent"],fT={class:"heading has-text-centered-mobile"},mT=["textContent"],hT=c("span",null,"\xA0|\xA0",-1),pT=["textContent"];function bT(e,t,n,o,i,r){const s=P("dropdown-menu"),a=P("mdicon"),l=P("list-albums"),u=P("modal-dialog-artist"),d=P("content-with-heading");return S(),Ce(d,null,{options:T(()=>[c("div",iT,[c("div",rT,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:_(e.$t("page.artist.sort-by.title"))},null,8,sT),x(s,{modelValue:r.selected_groupby_option_id,"onUpdate:modelValue":t[0]||(t[0]=m=>r.selected_groupby_option_id=m),options:i.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.artist.name)},null,8,aT)]),"heading-right":T(()=>[c("div",lT,[c("a",{class:"button is-small is-light is-rounded",onClick:t[1]||(t[1]=m=>i.show_artist_details_modal=!0)},[c("span",cT,[x(a,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[2]||(t[2]=(...m)=>r.play&&r.play(...m))},[c("span",uT,[x(a,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.artist.shuffle"))},null,8,dT)])])]),content:T(()=>[c("p",fT,[c("span",{textContent:_(e.$t("page.artist.album-count",{count:i.artist.album_count}))},null,8,mT),hT,c("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...m)=>r.open_tracks&&r.open_tracks(...m)),textContent:_(e.$t("page.artist.track-count",{count:i.artist.track_count}))},null,8,pT)]),x(l,{albums:r.albums,hide_group_title:!0},null,8,["albums"]),x(u,{show:i.show_artist_details_modal,artist:i.artist,onClose:t[4]||(t[4]=m=>i.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var gT=_e(oT,[["render",bT]]);const Ea={load:function(e){return Y.library_albums("music")},set:function(e,t){e.albums_list=new it(t.data)}},vT={name:"PageAlbums",components:{ContentWithHeading:ht,TabsMusic:yo,IndexButtonList:Mo,ListAlbums:wo,DropdownMenu:yc},beforeRouteEnter(e,t,n){Ea.load(e).then(o=>{n(i=>Ea.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const o=this;Ea.load(e).then(i=>{Ea.set(o,i),n()})},data(){return{albums_list:new it,groupby_options:[{id:1,name:this.$t("page.albums.sort-by.name"),options:Tr("name_sort")},{id:2,name:this.$t("page.albums.sort-by.recently-added"),options:Ml("time_added",{direction:"desc",defaultValue:"0000"})},{id:3,name:this.$t("page.albums.sort-by.recently-released"),options:Ml("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(dv,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(dc,e)}},hide_spotify:{get(){return this.$store.state.hide_spotify},set(e){this.$store.commit(ff,e)}}},methods:{scrollToTop:function(){window.scrollTo({top:0,behavior:"smooth"})}}},_T={class:"fd-page-with-tabs"},yT={class:"columns"},wT={class:"column"},xT=["textContent"],kT={class:"field"},CT={class:"control"},zT=["textContent"],ST=["textContent"],$T={key:0,class:"field"},ET={class:"control"},AT=["textContent"],OT=["textContent"],TT={class:"column"},PT=["textContent"],DT=["textContent"],FT=["textContent"];function IT(e,t,n,o,i,r){const s=P("tabs-music"),a=P("index-button-list"),l=P("dropdown-menu"),u=P("list-albums"),d=P("content-with-heading");return S(),D("div",_T,[x(s),x(d,null,{options:T(()=>[x(a,{index:r.albums.indexList},null,8,["index"]),c("div",yT,[c("div",wT,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:_(e.$t("page.albums.filter"))},null,8,xT),c("div",kT,[c("div",CT,[zt(c("input",{id:"switchHideSingles","onUpdate:modelValue":t[0]||(t[0]=m=>r.hide_singles=m),type:"checkbox",name:"switchHideSingles",class:"switch"},null,512),[[Oo,r.hide_singles]]),c("label",{for:"switchHideSingles",textContent:_(e.$t("page.albums.hide-singles"))},null,8,zT)]),c("p",{class:"help",textContent:_(e.$t("page.albums.hide-singles-help"))},null,8,ST)]),r.spotify_enabled?(S(),D("div",$T,[c("div",ET,[zt(c("input",{id:"switchHideSpotify","onUpdate:modelValue":t[1]||(t[1]=m=>r.hide_spotify=m),type:"checkbox",name:"switchHideSpotify",class:"switch"},null,512),[[Oo,r.hide_spotify]]),c("label",{for:"switchHideSpotify",textContent:_(e.$t("page.albums.hide-spotify"))},null,8,AT)]),c("p",{class:"help",textContent:_(e.$t("page.albums.hide-spotify-help"))},null,8,OT)])):Q("",!0)]),c("div",TT,[c("p",{class:"heading",style:{"margin-bottom":"24px"},textContent:_(e.$t("page.albums.sort-by.title"))},null,8,PT),x(l,{modelValue:r.selected_groupby_option_id,"onUpdate:modelValue":t[2]||(t[2]=m=>r.selected_groupby_option_id=m),options:i.groupby_options},null,8,["modelValue","options"])])])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.albums.title"))},null,8,DT),c("p",{class:"heading",textContent:_(e.$t("page.albums.count",{count:r.albums.count}))},null,8,FT)]),"heading-right":T(()=>[]),content:T(()=>[x(u,{albums:r.albums},null,8,["albums"])]),_:1})])}var MT=_e(vT,[["render",IT]]);const LT={},RT={class:"hero is-light is-bold fd-content"},NT={class:"hero-body"},jT={class:"container"},VT={class:"columns is-centered"},BT={class:"column is-four-fifths"},UT={class:"columns",style:{"flex-direction":"row-reverse"}},HT={class:"column fd-has-cover"},qT={class:"column is-three-fifths has-text-centered-mobile",style:{margin:"auto 0"}},GT={class:"section fd-content"},WT={class:"container"},KT={class:"columns is-centered"},YT={class:"column is-four-fifths"},ZT={style:{"margin-top":"16px"}};function JT(e,t){return S(),D("div",null,[c("section",RT,[c("div",NT,[c("div",jT,[c("div",VT,[c("div",BT,[c("div",UT,[c("div",HT,[Ct(e.$slots,"heading-right")]),c("div",qT,[Ct(e.$slots,"heading-left")])])])])])])]),c("section",GT,[c("div",WT,[c("div",KT,[c("div",YT,[Ct(e.$slots,"content"),c("div",ZT,[Ct(e.$slots,"footer")])])])])])])}var Ff=_e(LT,[["render",JT]]);const Aa={load:function(e){return Promise.all([Y.library_album(e.params.album_id),Y.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},XT={name:"PageAlbum",components:{ContentWithHero:Ff,ListTracks:Nn,ModalDialogAlbum:vc,CoverArtwork:Io},beforeRouteEnter(e,t,n){Aa.load(e).then(o=>{n(i=>Aa.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Aa.load(e).then(i=>{Aa.set(o,i),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(){Y.player_play_uri(this.album.uri,!0)}}},QT=["textContent"],e9={class:"subtitle is-6 has-text-link has-text-weight-normal"},t9=["textContent"],n9={class:"buttons fd-is-centered-mobile fd-has-margin-top"},o9={class:"icon"},i9=["textContent"],r9={class:"icon"},s9={class:"image is-square fd-has-shadow fd-has-action"},a9=["textContent"];function l9(e,t,n,o,i,r){const s=P("mdicon"),a=P("cover-artwork"),l=P("list-tracks"),u=P("modal-dialog-album"),d=P("content-with-hero");return S(),Ce(d,null,{"heading-left":T(()=>[c("h1",{class:"title is-5",textContent:_(i.album.name)},null,8,QT),c("h2",e9,[c("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...m)=>r.open_artist&&r.open_artist(...m)),textContent:_(i.album.artist)},null,8,t9)]),c("div",n9,[c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>r.play&&r.play(...m))},[c("span",o9,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.album.shuffle"))},null,8,i9)]),c("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=m=>i.show_album_details_modal=!0)},[c("span",r9,[x(s,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":T(()=>[c("p",s9,[x(a,{artwork_url:i.album.artwork_url,artist:i.album.artist,album:i.album.name,onClick:t[3]||(t[3]=m=>i.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[c("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:_(e.$t("page.album.track-count",{count:i.album.track_count}))},null,8,a9),x(l,{tracks:i.tracks,uris:i.album.uri},null,8,["tracks","uris"]),x(u,{show:i.show_album_details_modal,album:i.album,onClose:t[4]||(t[4]=m=>i.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var c9=_e(XT,[["render",l9]]);const u9={name:"ModalDialogGenre",props:["show","genre"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),Y.queue_expression_add('genre is "'+this.genre.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),Y.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}})}}},d9={key:0,class:"modal is-active"},f9={class:"modal-content fd-modal-card"},m9={class:"card"},h9={class:"card-content"},p9={class:"title is-4"},b9=["textContent"],g9={class:"content is-small"},v9=["textContent"],_9=["textContent"],y9=["textContent"],w9=["textContent"],x9=["textContent"],k9=["textContent"],C9={class:"card-footer"},z9={class:"icon"},S9=["textContent"],$9={class:"icon"},E9=["textContent"],A9={class:"icon"},O9=["textContent"];function T9(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",d9,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",f9,[c("div",m9,[c("div",h9,[c("p",p9,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_genre&&r.open_genre(...a)),textContent:_(n.genre.name)},null,8,b9)]),c("div",g9,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.genre.albums"))},null,8,v9),c("span",{class:"title is-6",textContent:_(n.genre.album_count)},null,8,_9)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.genre.tracks"))},null,8,y9),c("span",{class:"title is-6",textContent:_(n.genre.track_count)},null,8,w9)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.genre.duration"))},null,8,x9),c("span",{class:"title is-6",textContent:_(e.$filters.durationInHours(n.genre.length_ms))},null,8,k9)])])]),c("footer",C9,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",z9,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.genre.add"))},null,8,S9)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",$9,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.genre.add-next"))},null,8,E9)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.play&&r.play(...a))},[c("span",A9,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.genre.play"))},null,8,O9)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var If=_e(u9,[["render",T9]]);const P9={name:"ListGenres",components:{ModalDialogGenre:If},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}}},D9={key:0,class:"mt-6 mb-5 py-2"},F9={class:"media-content is-clipped"},I9=["id","textContent"],M9=["onClick"],L9={class:"media-content fd-has-action is-clipped"},R9=["textContent"],N9={class:"media-right"},j9=["onClick"],V9={class:"icon has-text-dark"};function B9(e,t,n,o,i,r){const s=P("mdicon"),a=P("modal-dialog-genre");return S(),D(Ge,null,[(S(!0),D(Ge,null,xt(n.genres,l=>(S(),D(Ge,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(S(),D("div",D9,[c("div",F9,[c("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:_(l.groupKey)},null,8,I9)])])):l.isItem?(S(),D("div",{key:1,class:"media",onClick:u=>r.open_genre(l.item)},[c("div",L9,[c("h1",{class:"title is-6",textContent:_(l.item.name)},null,8,R9)]),c("div",N9,[c("a",{onClick:bt(u=>r.open_dialog(l.item),["prevent","stop"])},[c("span",V9,[x(s,{name:"dots-vertical",size:"16"})])],8,j9)])],8,M9)):Q("",!0)],64))),128)),(S(),Ce(ci,{to:"#app"},[x(a,{show:i.show_details_modal,genre:i.selected_genre,onClose:t[0]||(t[0]=l=>i.show_details_modal=!1)},null,8,["show","genre"])]))],64)}var U9=_e(P9,[["render",B9]]);const Oa={load:function(e){return Y.library_genres("music")},set:function(e,t){e.genres=t.data,e.genres=new it(t.data),e.genres.group(q_("name_sort"))}},H9={name:"PageGenres",components:{ContentWithHeading:ht,TabsMusic:yo,IndexButtonList:Mo,ListGenres:U9},beforeRouteEnter(e,t,n){Oa.load(e).then(o=>{n(i=>Oa.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Oa.load(e).then(i=>{Oa.set(o,i),n()})},data(){return{genres:new it}},computed:{},methods:{}},q9={class:"fd-page-with-tabs"},G9=["textContent"],W9=["textContent"];function K9(e,t,n,o,i,r){const s=P("tabs-music"),a=P("index-button-list"),l=P("list-genres"),u=P("content-with-heading");return S(),D("div",q9,[x(s),x(u,null,{options:T(()=>[x(a,{index:i.genres.indexList},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.genres.title"))},null,8,G9),c("p",{class:"heading",textContent:_(e.$t("page.genres.count",{count:i.genres.total}))},null,8,W9)]),content:T(()=>[x(l,{genres:i.genres},null,8,["genres"])]),_:1})])}var Y9=_e(H9,[["render",K9]]);const Ta={load:function(e){return Promise.all([Y.library_genre(e.params.genre),Y.library_genre_albums(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.albums_list=new it(t[1].data.albums),e.albums_list.group(Tr("name_sort"))}},Z9={name:"PageGenre",components:{ContentWithHeading:ht,IndexButtonList:Mo,ListAlbums:wo,ModalDialogGenre:If},beforeRouteEnter(e,t,n){Ta.load(e).then(o=>{n(i=>Ta.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.albums_list.isEmpty()){n();return}const o=this;Ta.load(e).then(i=>{Ta.set(o,i),n()})},data(){return{genre:{},albums_list:new it,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(){Y.player_play_expression('genre is "'+this.genre.name+'" and media_kind is music',!0)}}},J9=["textContent"],X9={class:"buttons is-centered"},Q9={class:"icon"},eP={class:"icon"},tP=["textContent"],nP={class:"heading has-text-centered-mobile"},oP=["textContent"],iP=c("span",null,"\xA0|\xA0",-1),rP=["textContent"];function sP(e,t,n,o,i,r){const s=P("index-button-list"),a=P("mdicon"),l=P("list-albums"),u=P("modal-dialog-genre"),d=P("content-with-heading");return S(),D("div",null,[x(d,null,{options:T(()=>[x(s,{index:i.albums_list.indexList},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.genre.name)},null,8,J9)]),"heading-right":T(()=>[c("div",X9,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>i.show_genre_details_modal=!0)},[c("span",Q9,[x(a,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>r.play&&r.play(...m))},[c("span",eP,[x(a,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.genre.shuffle"))},null,8,tP)])])]),content:T(()=>[c("p",nP,[c("span",{textContent:_(e.$t("page.genre.album-count",{count:i.genre.album_count}))},null,8,oP),iP,c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...m)=>r.open_tracks&&r.open_tracks(...m)),textContent:_(e.$t("page.genre.track-count",{count:i.genre.track_count}))},null,8,rP)]),x(l,{albums:i.albums_list},null,8,["albums"]),x(u,{show:i.show_genre_details_modal,genre:i.genre,onClose:t[3]||(t[3]=m=>i.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var aP=_e(Z9,[["render",sP]]);const Pa={load:function(e){return Promise.all([Y.library_genre(e.params.genre),Y.library_genre_tracks(e.params.genre)])},set:function(e,t){e.genre=t[0].data,e.tracks=t[1].data.tracks}},lP={name:"PageGenreTracks",components:{ContentWithHeading:ht,ListTracks:Nn,IndexButtonList:Mo,ModalDialogGenre:If},beforeRouteEnter(e,t,n){Pa.load(e).then(o=>{n(i=>Pa.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Pa.load(e).then(i=>{Pa.set(o,i),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(){Y.player_play_expression(this.expression,!0)}}},cP=["textContent"],uP={class:"buttons is-centered"},dP={class:"icon"},fP={class:"icon"},mP=["textContent"],hP={class:"heading has-text-centered-mobile"},pP=["textContent"],bP=c("span",null,"\xA0|\xA0",-1),gP=["textContent"];function vP(e,t,n,o,i,r){const s=P("index-button-list"),a=P("mdicon"),l=P("list-tracks"),u=P("modal-dialog-genre"),d=P("content-with-heading");return S(),D("div",null,[x(d,null,{options:T(()=>[x(s,{index:r.index_list},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.genre.name)},null,8,cP)]),"heading-right":T(()=>[c("div",uP,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>i.show_genre_details_modal=!0)},[c("span",dP,[x(a,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>r.play&&r.play(...m))},[c("span",fP,[x(a,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.genre.shuffle"))},null,8,mP)])])]),content:T(()=>[c("p",hP,[c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...m)=>r.open_genre&&r.open_genre(...m)),textContent:_(e.$t("page.genre.album-count",{count:i.genre.album_count}))},null,8,pP),bP,c("span",{textContent:_(e.$t("page.genre.track-count",{count:i.genre.track_count}))},null,8,gP)]),x(l,{tracks:i.tracks.items,expression:r.expression},null,8,["tracks","expression"]),x(u,{show:i.show_genre_details_modal,genre:i.genre,onClose:t[3]||(t[3]=m=>i.show_genre_details_modal=!1)},null,8,["show","genre"])]),_:1})])}var _P=_e(lP,[["render",vP]]);const Da={load:function(e){return Promise.all([Y.library_artist(e.params.artist_id),Y.library_artist_tracks(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.tracks=t[1].data.tracks}},yP={name:"PageArtistTracks",components:{ContentWithHeading:ht,ListTracks:Nn,IndexButtonList:Mo,ModalDialogArtist:_c},beforeRouteEnter(e,t,n){Da.load(e).then(o=>{n(i=>Da.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Da.load(e).then(i=>{Da.set(o,i),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(){Y.player_play_uri(this.tracks.items.map(e=>e.uri).join(","),!0)}}},wP=["textContent"],xP={class:"buttons is-centered"},kP={class:"icon"},CP={class:"icon"},zP=["textContent"],SP={class:"heading has-text-centered-mobile"},$P=["textContent"],EP=c("span",null,"\xA0|\xA0",-1),AP=["textContent"];function OP(e,t,n,o,i,r){const s=P("index-button-list"),a=P("mdicon"),l=P("list-tracks"),u=P("modal-dialog-artist"),d=P("content-with-heading");return S(),D("div",null,[x(d,null,{options:T(()=>[x(s,{index:r.index_list},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.artist.name)},null,8,wP)]),"heading-right":T(()=>[c("div",xP,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>i.show_artist_details_modal=!0)},[c("span",kP,[x(a,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>r.play&&r.play(...m))},[c("span",CP,[x(a,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.artist.shuffle"))},null,8,zP)])])]),content:T(()=>[c("p",SP,[c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...m)=>r.open_artist&&r.open_artist(...m)),textContent:_(e.$t("page.artist.album-count",{count:i.artist.album_count}))},null,8,$P),EP,c("span",{textContent:_(e.$t("page.artist.track-count",{count:i.artist.track_count}))},null,8,AP)]),x(l,{tracks:i.tracks.items,uris:r.track_uris},null,8,["tracks","uris"]),x(u,{show:i.show_artist_details_modal,artist:i.artist,onClose:t[3]||(t[3]=m=>i.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})])}var TP=_e(yP,[["render",OP]]);const PP={name:"ModalDialogComposer",props:["show","composer"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!1)},queue_add:function(){this.$emit("close"),Y.queue_expression_add('composer is "'+this.composer.name+'" and media_kind is music')},queue_add_next:function(){this.$emit("close"),Y.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}})}}},DP={key:0,class:"modal is-active"},FP={class:"modal-content fd-modal-card"},IP={class:"card"},MP={class:"card-content"},LP={class:"title is-4"},RP=["textContent"],NP=["textContent"],jP=["textContent"],VP=["textContent"],BP=["textContent"],UP=["textContent"],HP=["textContent"],qP={class:"card-footer"},GP={class:"icon"},WP=["textContent"],KP={class:"icon"},YP=["textContent"],ZP={class:"icon"},JP=["textContent"];function XP(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",DP,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",FP,[c("div",IP,[c("div",MP,[c("p",LP,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_albums&&r.open_albums(...a)),textContent:_(n.composer.name)},null,8,RP)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.composer.albums"))},null,8,NP),c("a",{class:"has-text-link is-6",onClick:t[2]||(t[2]=(...a)=>r.open_albums&&r.open_albums(...a)),textContent:_(n.composer.album_count)},null,8,jP)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.composer.tracks"))},null,8,VP),c("a",{class:"has-text-link is-6",onClick:t[3]||(t[3]=(...a)=>r.open_tracks&&r.open_tracks(...a)),textContent:_(n.composer.track_count)},null,8,BP)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.composer.duration"))},null,8,UP),c("span",{class:"title is-6",textContent:_(e.$filters.durationInHours(n.composer.length_ms))},null,8,HP)])]),c("footer",qP,[c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",GP,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.composer.add"))},null,8,WP)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",KP,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.composer.add-next"))},null,8,YP)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>r.play&&r.play(...a))},[c("span",ZP,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.composer.play"))},null,8,JP)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[7]||(t[7]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var Mf=_e(PP,[["render",XP]]);const QP={name:"ListComposers",components:{ModalDialogComposer:Mf},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:"ComposerAlbums",params:{composer:e.name}})},open_dialog:function(e){this.selected_composer=e,this.show_details_modal=!0}}},eD={key:0,class:"mt-6 mb-5 py-2"},tD={class:"media-content is-clipped"},nD=["id","textContent"],oD=["onClick"],iD={class:"media-content fd-has-action is-clipped"},rD=["textContent"],sD={class:"media-right"},aD=["onClick"],lD={class:"icon has-text-dark"};function cD(e,t,n,o,i,r){const s=P("mdicon"),a=P("modal-dialog-composer");return S(),D(Ge,null,[(S(!0),D(Ge,null,xt(n.composers,l=>(S(),D(Ge,{key:l.itemId},[!l.isItem&&!n.hide_group_title?(S(),D("div",eD,[c("div",tD,[c("span",{id:"index_"+l.groupKey,class:"tag is-info is-light is-small has-text-weight-bold",textContent:_(l.groupKey)},null,8,nD)])])):l.isItem?(S(),D("div",{key:1,class:"media",onClick:u=>r.open_composer(l.item)},[c("div",iD,[c("h1",{class:"title is-6",textContent:_(l.item.name)},null,8,rD)]),c("div",sD,[c("a",{onClick:bt(u=>r.open_dialog(l.item),["prevent","stop"])},[c("span",lD,[x(s,{name:"dots-vertical",size:"16"})])],8,aD)])],8,oD)):Q("",!0)],64))),128)),(S(),Ce(ci,{to:"#app"},[x(a,{show:i.show_details_modal,composer:i.selected_composer,media_kind:n.media_kind,onClose:t[0]||(t[0]=l=>i.show_details_modal=!1)},null,8,["show","composer","media_kind"])]))],64)}var G_=_e(QP,[["render",cD]]);const Fa={load:function(e){return Y.library_composers("music")},set:function(e,t){e.composers=new it(t.data),e.composers.group(q_("name_sort"))}},uD={name:"PageComposers",components:{ContentWithHeading:ht,TabsMusic:yo,IndexButtonList:Mo,ListComposers:G_},beforeRouteEnter(e,t,n){Fa.load(e).then(o=>{n(i=>Fa.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.composers.isEmpty()){n();return}const o=this;Fa.load(e).then(i=>{Fa.set(o,i),n()})},data(){return{composers:new it}},methods:{}},dD=["textContent"],fD=["textContent"];function mD(e,t,n,o,i,r){const s=P("tabs-music"),a=P("index-button-list"),l=P("list-composers"),u=P("content-with-heading");return S(),D("div",null,[x(s),x(u,null,{options:T(()=>[x(a,{index:i.composers.indexList},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.composers.title"))},null,8,dD),c("p",{class:"heading",textContent:_(e.$t("page.composers.count",{count:i.composers.total}))},null,8,fD)]),content:T(()=>[x(l,{composers:i.composers},null,8,["composers"])]),_:1})])}var hD=_e(uD,[["render",mD]]);const Ia={load:function(e){return Promise.all([Y.library_composer(e.params.composer),Y.library_composer_albums(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.albums_list=new it(t[1].data.albums)}},pD={name:"PageComposer",components:{ContentWithHeading:ht,ListAlbums:wo,ModalDialogComposer:Mf},beforeRouteEnter(e,t,n){Ia.load(e).then(o=>{n(i=>Ia.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ia.load(e).then(i=>{Ia.set(o,i),n()})},data(){return{composer:{},albums_list:new it,show_composer_details_modal:!1}},methods:{open_tracks:function(){this.$router.push({name:"ComposerTracks",params:{composer:this.composer.name}})},play:function(){Y.player_play_expression('composer is "'+this.composer.name+'" and media_kind is music',!0)}}},bD=["textContent"],gD={class:"buttons is-centered"},vD={class:"icon"},_D={class:"icon"},yD=["textContent"],wD={class:"heading has-text-centered-mobile"},xD=["textContent"],kD=c("span",null,"\xA0|\xA0",-1),CD=["textContent"];function zD(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-albums"),l=P("modal-dialog-composer"),u=P("content-with-heading");return S(),D("div",null,[x(u,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.composer.name)},null,8,bD)]),"heading-right":T(()=>[c("div",gD,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>i.show_composer_details_modal=!0)},[c("span",vD,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},[c("span",_D,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.composer.shuffle"))},null,8,yD)])])]),content:T(()=>[c("p",wD,[c("span",{textContent:_(e.$t("page.composer.album-count",{count:i.composer.album_count}))},null,8,xD),kD,c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>r.open_tracks&&r.open_tracks(...d)),textContent:_(e.$t("page.composer.track-count",{count:i.composer.track_count}))},null,8,CD)]),x(a,{albums:i.albums_list,hide_group_title:!0},null,8,["albums"]),x(l,{show:i.show_composer_details_modal,composer:i.composer,onClose:t[3]||(t[3]=d=>i.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var SD=_e(pD,[["render",zD]]);const Ma={load:function(e){return Promise.all([Y.library_composer(e.params.composer),Y.library_composer_tracks(e.params.composer)])},set:function(e,t){e.composer=t[0].data,e.tracks=t[1].data.tracks}},$D={name:"PageComposerTracks",components:{ContentWithHeading:ht,ListTracks:Nn,ModalDialogComposer:Mf},beforeRouteEnter(e,t,n){Ma.load(e).then(o=>{n(i=>Ma.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ma.load(e).then(i=>{Ma.set(o,i),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(){Y.player_play_expression(this.play_expression,!0)}}},ED=["textContent"],AD={class:"buttons is-centered"},OD={class:"icon"},TD={class:"icon"},PD=["textContent"],DD={class:"heading has-text-centered-mobile"},FD=["textContent"],ID=c("span",null,"\xA0|\xA0",-1),MD=["textContent"];function LD(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-tracks"),l=P("modal-dialog-composer"),u=P("content-with-heading");return S(),D("div",null,[x(u,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.composer.name)},null,8,ED)]),"heading-right":T(()=>[c("div",AD,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>i.show_composer_details_modal=!0)},[c("span",OD,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},[c("span",TD,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.composer.shuffle"))},null,8,PD)])])]),content:T(()=>[c("p",DD,[c("a",{class:"has-text-link",onClick:t[2]||(t[2]=(...d)=>r.open_albums&&r.open_albums(...d)),textContent:_(e.$t("page.composer.album-count",{count:i.composer.album_count}))},null,8,FD),ID,c("span",{textContent:_(e.$t("page.composer.track-count",{count:i.composer.track_count}))},null,8,MD)]),x(a,{tracks:i.tracks.items,expression:r.play_expression},null,8,["tracks","expression"]),x(l,{show:i.show_composer_details_modal,composer:i.composer,onClose:t[3]||(t[3]=d=>i.show_composer_details_modal=!1)},null,8,["show","composer"])]),_:1})])}var RD=_e($D,[["render",LD]]);const ND={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,Y.library_add(this.url).then(()=>{this.$emit("close"),this.$emit("podcast-added"),this.url=""}).catch(()=>{this.loading=!1})}}},jD={key:0,class:"modal is-active"},VD={class:"modal-content fd-modal-card"},BD={class:"card"},UD={class:"card-content"},HD=["textContent"],qD={class:"field"},GD={class:"control is-expanded has-icons-left"},WD=["placeholder","disabled"],KD={class:"icon is-left"},YD=["textContent"],ZD={key:0,class:"card-footer"},JD={class:"card-footer-item button is-loading"},XD={class:"icon"},QD=["textContent"],eF={key:1,class:"card-footer"},tF={class:"icon"},nF=["textContent"],oF={class:"icon"},iF=["textContent"];function rF(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",jD,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",VD,[c("div",BD,[c("div",UD,[c("p",{class:"title is-4",textContent:_(e.$t("dialog.add.rss.title"))},null,8,HD),c("form",{onSubmit:t[2]||(t[2]=bt((...a)=>r.add_stream&&r.add_stream(...a),["prevent"]))},[c("div",qD,[c("p",GD,[zt(c("input",{ref:"url_field","onUpdate:modelValue":t[1]||(t[1]=a=>i.url=a),class:"input is-shadowless",type:"text",placeholder:e.$t("dialog.add.rss.placeholder"),disabled:i.loading},null,8,WD),[[zn,i.url]]),c("span",KD,[x(s,{name:"rss",size:"16"})])]),c("p",{class:"help",textContent:_(e.$t("dialog.add.rss.help"))},null,8,YD)])],32)]),i.loading?(S(),D("footer",ZD,[c("a",JD,[c("span",XD,[x(s,{name:"web",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.rss.processing"))},null,8,QD)])])):(S(),D("footer",eF,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[c("span",tF,[x(s,{name:"cancel",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.rss.cancel"))},null,8,nF)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>r.add_stream&&r.add_stream(...a))},[c("span",oF,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.add.rss.add"))},null,8,iF)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var sF=_e(ND,[["render",rF]]);const La={load:function(e){return Promise.all([Y.library_albums("podcast"),Y.library_podcasts_new_episodes()])},set:function(e,t){e.albums=new it(t[0].data),e.new_episodes=t[1].data.tracks}},aF={name:"PagePodcasts",components:{ContentWithHeading:ht,ListTracks:Nn,ListAlbums:wo,ModalDialogAddRss:sF},beforeRouteEnter(e,t,n){La.load(e).then(o=>{n(i=>La.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;La.load(e).then(i=>{La.set(o,i),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=>{Y.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(){Y.library_podcasts_new_episodes().then(({data:e})=>{this.new_episodes=e.tracks})},reload_podcasts:function(){Y.library_albums("podcast").then(({data:e})=>{this.albums=new it(e),this.reload_new_episodes()})},update_rss:function(){this.$store.commit(mf,"rss"),this.$store.commit(qs,!0)}}},lF=["textContent"],cF={class:"buttons is-centered"},uF={class:"icon"},dF=["textContent"],fF=["textContent"],mF=["textContent"],hF={class:"buttons is-centered"},pF={class:"icon"},bF=["textContent"],gF={class:"icon"},vF=["textContent"];function _F(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-tracks"),l=P("content-with-heading"),u=P("list-albums"),d=P("modal-dialog-add-rss");return S(),D("div",null,[i.new_episodes.items.length>0?(S(),Ce(l,{key:0},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.podcasts.new-episodes"))},null,8,lF)]),"heading-right":T(()=>[c("div",cF,[c("a",{class:"button is-small",onClick:t[0]||(t[0]=(...m)=>r.mark_all_played&&r.mark_all_played(...m))},[c("span",uF,[x(s,{name:"pencil",size:"16"})]),c("span",{textContent:_(e.$t("page.podcasts.mark-all-played"))},null,8,dF)])])]),content:T(()=>[x(a,{tracks:i.new_episodes.items,show_progress:!0,onPlayCountChanged:r.reload_new_episodes},null,8,["tracks","onPlayCountChanged"])]),_:1})):Q("",!0),x(l,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.podcasts.title"))},null,8,fF),c("p",{class:"heading",textContent:_(e.$t("page.podcasts.count",{count:i.albums.total}))},null,8,mF)]),"heading-right":T(()=>[c("div",hF,[r.rss.tracks>0?(S(),D("a",{key:0,class:"button is-small",onClick:t[1]||(t[1]=(...m)=>r.update_rss&&r.update_rss(...m))},[c("span",pF,[x(s,{name:"refresh",size:"16"})]),c("span",{textContent:_(e.$t("page.podcasts.update"))},null,8,bF)])):Q("",!0),c("a",{class:"button is-small",onClick:t[2]||(t[2]=(...m)=>r.open_add_podcast_dialog&&r.open_add_podcast_dialog(...m))},[c("span",gF,[x(s,{name:"rss",size:"16"})]),c("span",{textContent:_(e.$t("page.podcasts.add"))},null,8,vF)])])]),content:T(()=>[x(u,{albums:i.albums,onPlayCountChanged:t[3]||(t[3]=m=>r.reload_new_episodes()),onPodcastDeleted:t[4]||(t[4]=m=>r.reload_podcasts())},null,8,["albums"]),x(d,{show:i.show_url_modal,onClose:t[5]||(t[5]=m=>i.show_url_modal=!1),onPodcastAdded:t[6]||(t[6]=m=>r.reload_podcasts())},null,8,["show"])]),_:1})])}var yF=_e(aF,[["render",_F]]);const Ra={load:function(e){return Promise.all([Y.library_album(e.params.album_id),Y.library_podcast_episodes(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.tracks.items}},wF={name:"PagePodcast",components:{ContentWithHeading:ht,ListTracks:Nn,ModalDialogAlbum:vc,ModalDialog:Pf},beforeRouteEnter(e,t,n){Ra.load(e).then(o=>{n(i=>Ra.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ra.load(e).then(i=>{Ra.set(o,i),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(){Y.player_play_uri(this.album.uri,!1)},open_remove_podcast_dialog:function(){this.show_album_details_modal=!1,Y.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,Y.library_playlist_delete(this.rss_playlist_to_remove.id).then(()=>{this.$router.replace({path:"/podcasts"})})},reload_tracks:function(){Y.library_podcast_episodes(this.album.id).then(({data:e})=>{this.tracks=e.tracks.items})}}},xF=["textContent"],kF={class:"buttons is-centered"},CF={class:"icon"},zF={class:"icon"},SF=["textContent"],$F=["textContent"],EF=["textContent"],AF={class:"is-size-7"},OF=_t(" ("),TF=["textContent"],PF=["textContent"],DF=_t(") ");function FF(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-tracks"),l=P("modal-dialog-album"),u=P("modal-dialog"),d=P("content-with-heading");return S(),Ce(d,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(i.album.name)},null,8,xF)]),"heading-right":T(()=>[c("div",kF,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=m=>i.show_album_details_modal=!0)},[c("span",CF,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>r.play&&r.play(...m))},[c("span",zF,[x(s,{name:"play",size:"16"})]),c("span",{textContent:_(e.$t("page.podcast.play"))},null,8,SF)])])]),content:T(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:_(e.$t("page.podcast.track-count",{count:i.album.track_count}))},null,8,$F),x(a,{tracks:i.tracks,show_progress:!0,onPlayCountChanged:r.reload_tracks},null,8,["tracks","onPlayCountChanged"]),x(l,{show:i.show_album_details_modal,album:i.album,media_kind:"podcast",new_tracks:r.new_tracks,onClose:t[2]||(t[2]=m=>i.show_album_details_modal=!1),onPlayCountChanged:r.reload_tracks,onRemovePodcast:r.open_remove_podcast_dialog},null,8,["show","album","new_tracks","onPlayCountChanged","onRemovePodcast"]),x(u,{show:i.show_remove_podcast_modal,title:"Remove podcast",delete_action:"Remove",onClose:t[3]||(t[3]=m=>i.show_remove_podcast_modal=!1),onDelete:r.remove_podcast},{"modal-content":T(()=>[c("p",{textContent:_(e.$t("page.podcast.remove-info-1"))},null,8,EF),c("p",AF,[OF,c("span",{textContent:_(e.$t("page.podcast.remove-info-2"))},null,8,TF),c("b",{textContent:_(i.rss_playlist_to_remove.name)},null,8,PF),DF])]),_:1},8,["show","onDelete"])]),_:1})}var IF=_e(wF,[["render",FF]]);const MF={name:"TabsAudiobooks"},LF={class:"section fd-tabs-section"},RF={class:"container"},NF={class:"columns is-centered"},jF={class:"column is-four-fifths"},VF={class:"tabs is-centered is-small"},BF=["onClick","onKeypress"],UF={class:"icon is-small"},HF=["textContent"],qF=["onClick","onKeypress"],GF={class:"icon is-small"},WF=["textContent"];function KF(e,t,n,o,i,r){const s=P("mdicon"),a=P("router-link");return S(),D("section",LF,[c("div",RF,[c("div",NF,[c("div",jF,[c("div",VF,[c("ul",null,[x(a,{to:"/audiobooks/artists",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",UF,[x(s,{name:"account-music",size:"16"})]),c("span",{textContent:_(e.$t("page.audiobooks.tabs.authors"))},null,8,HF)],40,BF)],2)]),_:1}),x(a,{to:"/audiobooks/albums",custom:""},{default:T(({navigate:l,isActive:u})=>[c("li",{class:Ye({"is-active":u})},[c("a",{onClick:l,onKeypress:Dn(l,["enter"])},[c("span",GF,[x(s,{name:"album",size:"16"})]),c("span",{textContent:_(e.$t("page.audiobooks.tabs.audiobooks"))},null,8,WF)],40,qF)],2)]),_:1})])])])])])])}var W_=_e(MF,[["render",KF]]);const Na={load:function(e){return Y.library_albums("audiobook")},set:function(e,t){e.albums=new it(t.data),e.albums.group(Tr("name_sort"))}},YF={name:"PageAudiobooksAlbums",components:{TabsAudiobooks:W_,ContentWithHeading:ht,IndexButtonList:Mo,ListAlbums:wo},beforeRouteEnter(e,t,n){Na.load(e).then(o=>{n(i=>Na.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const o=this;Na.load(e).then(i=>{Na.set(o,i),n()})},data(){return{albums:new it}},methods:{}},ZF={class:"fd-page-with-tabs"},JF=["textContent"],XF=["textContent"];function QF(e,t,n,o,i,r){const s=P("tabs-audiobooks"),a=P("index-button-list"),l=P("list-albums"),u=P("content-with-heading");return S(),D("div",ZF,[x(s),x(u,null,{options:T(()=>[x(a,{index:i.albums.indexList},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.audiobooks.albums.title"))},null,8,JF),c("p",{class:"heading",textContent:_(e.$t("page.audiobooks.albums.count",{count:i.albums.count}))},null,8,XF)]),content:T(()=>[x(l,{albums:i.albums},null,8,["albums"])]),_:1})])}var eI=_e(YF,[["render",QF]]);const ja={load:function(e){return Y.library_artists("audiobook")},set:function(e,t){e.artists_list=new it(t.data)}},tI={name:"PageAudiobooksArtists",components:{ContentWithHeading:ht,TabsAudiobooks:W_,IndexButtonList:Mo,ListArtists:Df},beforeRouteEnter(e,t,n){ja.load(e).then(o=>{n(i=>ja.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.artists_list.isEmpty()){n();return}const o=this;ja.load(e).then(i=>{ja.set(o,i),n()})},data(){return{artists_list:new it}},computed:{artists(){return this.artists_list?(this.artists_list.group(Tr("name_sort")),this.artists_list):[]}},methods:{}},nI={class:"fd-page-with-tabs"},oI=["textContent"],iI=["textContent"];function rI(e,t,n,o,i,r){const s=P("tabs-audiobooks"),a=P("index-button-list"),l=P("list-artists"),u=P("content-with-heading");return S(),D("div",nI,[x(s),x(u,null,{options:T(()=>[x(a,{index:r.artists.indexList},null,8,["index"])]),"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.audiobooks.artists.title"))},null,8,oI),c("p",{class:"heading",textContent:_(e.$t("page.audiobooks.artists.count",{count:r.artists.count}))},null,8,iI)]),"heading-right":T(()=>[]),content:T(()=>[x(l,{artists:r.artists},null,8,["artists"])]),_:1})])}var sI=_e(tI,[["render",rI]]);const Va={load:function(e){return Promise.all([Y.library_artist(e.params.artist_id),Y.library_artist_albums(e.params.artist_id)])},set:function(e,t){e.artist=t[0].data,e.albums=new it(t[1].data)}},aI={name:"PageAudiobooksArtist",components:{ContentWithHeading:ht,ListAlbums:wo,ModalDialogArtist:_c},beforeRouteEnter(e,t,n){Va.load(e).then(o=>{n(i=>Va.set(i,o))})},beforeRouteUpdate(e,t,n){if(!this.albums.isEmpty()){n();return}const o=this;Va.load(e).then(i=>{Va.set(o,i),n()})},data(){return{artist:{},albums:new it,show_artist_details_modal:!1}},methods:{play:function(){Y.player_play_uri(this.albums.items.map(e=>e.uri).join(","),!1)}}},lI=["textContent"],cI={class:"buttons is-centered"},uI={class:"icon"},dI={class:"icon"},fI=["textContent"],mI=["textContent"];function hI(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-albums"),l=P("modal-dialog-artist"),u=P("content-with-heading");return S(),Ce(u,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.artist.name)},null,8,lI)]),"heading-right":T(()=>[c("div",cI,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>i.show_artist_details_modal=!0)},[c("span",uI,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},[c("span",dI,[x(s,{name:"play",size:"16"})]),c("span",{textContent:_(e.$t("page.audiobooks.artist.shuffle"))},null,8,fI)])])]),content:T(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:_(e.$t("page.audiobooks.artist.album-count",{count:i.artist.album_count}))},null,8,mI),x(a,{albums:i.albums},null,8,["albums"]),x(l,{show:i.show_artist_details_modal,artist:i.artist,onClose:t[2]||(t[2]=d=>i.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var pI=_e(aI,[["render",hI]]);const Ba={load:function(e){return Promise.all([Y.library_album(e.params.album_id),Y.library_album_tracks(e.params.album_id)])},set:function(e,t){e.album=t[0].data,e.tracks=t[1].data.items}},bI={name:"PageAudiobooksAlbum",components:{ContentWithHero:Ff,ListTracks:Nn,ModalDialogAlbum:vc,CoverArtwork:Io},beforeRouteEnter(e,t,n){Ba.load(e).then(o=>{n(i=>Ba.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ba.load(e).then(i=>{Ba.set(o,i),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(){Y.player_play_uri(this.album.uri,!1)},play_track:function(e){Y.player_play_uri(this.album.uri,!1,e)},open_dialog:function(e){this.selected_track=e,this.show_details_modal=!0}}},gI=["textContent"],vI={class:"subtitle is-6 has-text-link has-text-weight-normal"},_I=["textContent"],yI={class:"buttons fd-is-centered-mobile fd-has-margin-top"},wI={class:"icon"},xI=["textContent"],kI={class:"icon"},CI={class:"image is-square fd-has-shadow fd-has-action"},zI=["textContent"];function SI(e,t,n,o,i,r){const s=P("mdicon"),a=P("cover-artwork"),l=P("list-tracks"),u=P("modal-dialog-album"),d=P("content-with-hero");return S(),Ce(d,null,{"heading-left":T(()=>[c("h1",{class:"title is-5",textContent:_(i.album.name)},null,8,gI),c("h2",vI,[c("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...m)=>r.open_artist&&r.open_artist(...m)),textContent:_(i.album.artist)},null,8,_I)]),c("div",yI,[c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...m)=>r.play&&r.play(...m))},[c("span",wI,[x(s,{name:"play",size:"16"})]),c("span",{textContent:_(e.$t("page.audiobooks.album.play"))},null,8,xI)]),c("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=m=>i.show_album_details_modal=!0)},[c("span",kI,[x(s,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":T(()=>[c("p",CI,[x(a,{artwork_url:i.album.artwork_url,artist:i.album.artist,album:i.album.name,onClick:t[3]||(t[3]=m=>i.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[c("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:_(e.$t("page.audiobooks.album.track-count",{count:i.album.track_count}))},null,8,zI),x(l,{tracks:i.tracks,uris:i.album.uri},null,8,["tracks","uris"]),x(u,{show:i.show_album_details_modal,album:i.album,media_kind:"audiobook",onClose:t[4]||(t[4]=m=>i.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var $I=_e(bI,[["render",SI]]);const EI={name:"ModalDialogPlaylist",props:["show","playlist","uris"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_uri(this.uris?this.uris:this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.uris?this.uris:this.playlist.uri)},queue_add_next:function(){this.$emit("close"),Y.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"})}}},AI={key:0,class:"modal is-active"},OI={class:"modal-content fd-modal-card"},TI={class:"card"},PI={class:"card-content"},DI={class:"title is-4"},FI=["textContent"],II={class:"content is-small"},MI=c("span",{class:"heading"},"Path",-1),LI=["textContent"],RI=["textContent"],NI=["textContent"],jI={key:0},VI=["textContent"],BI=["textContent"],UI={key:0,class:"card-footer"},HI={class:"icon"},qI=["textContent"],GI={class:"icon"},WI=["textContent"],KI={class:"icon"},YI=["textContent"];function ZI(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",AI,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",OI,[c("div",TI,[c("div",PI,[c("p",DI,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_playlist&&r.open_playlist(...a)),textContent:_(n.playlist.name)},null,8,FI)]),c("div",II,[c("p",null,[MI,c("span",{class:"title is-6",textContent:_(n.playlist.path)},null,8,LI)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.playlist.type"))},null,8,RI),c("span",{class:"title is-6",textContent:_(n.playlist.type)},null,8,NI)]),n.playlist.folder?Q("",!0):(S(),D("p",jI,[c("span",{class:"heading",textContent:_(e.$t("dialog.playlist.track-count"))},null,8,VI),c("span",{class:"title is-6",textContent:_(n.playlist.item_count)},null,8,BI)]))])]),n.playlist.folder?Q("",!0):(S(),D("footer",UI,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",HI,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.playlist.add"))},null,8,qI)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",GI,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.playlist.add-next"))},null,8,WI)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.play&&r.play(...a))},[c("span",KI,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.playlist.play"))},null,8,YI)])]))])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var K_=_e(EI,[["render",ZI]]);const JI={name:"ListPlaylists",components:{ModalDialogPlaylist:K_},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"}}},XI=["playlist","onClick"],QI={class:"media-left fd-has-action"},eM={class:"icon"},tM={class:"media-content fd-has-action is-clipped"},nM=["textContent"],oM={class:"media-right"},iM=["onClick"],rM={class:"icon has-text-dark"};function sM(e,t,n,o,i,r){const s=P("mdicon"),a=P("modal-dialog-playlist");return S(),D(Ge,null,[(S(!0),D(Ge,null,xt(n.playlists,l=>(S(),D("div",{key:l.itemId,class:"media",playlist:l,onClick:u=>r.open_playlist(l.item)},[c("figure",QI,[c("span",eM,[x(s,{name:r.icon_name(l.item),size:"16"},null,8,["name"])])]),c("div",tM,[c("h1",{class:"title is-6",textContent:_(l.item.name)},null,8,nM)]),c("div",oM,[c("a",{onClick:bt(u=>r.open_dialog(l.item),["prevent","stop"])},[c("span",rM,[x(s,{name:"dots-vertical",size:"16"})])],8,iM)])],8,XI))),128)),(S(),Ce(ci,{to:"#app"},[x(a,{show:i.show_details_modal,playlist:i.selected_playlist,onClose:t[0]||(t[0]=l=>i.show_details_modal=!1)},null,8,["show","playlist"])]))],64)}var Lf=_e(JI,[["render",sM]]);const Ua={load:function(e){return Promise.all([Y.library_playlist(e.params.playlist_id),Y.library_playlist_folder(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.playlists_list=new it(t[1].data)}},aM={name:"PagePlaylists",components:{ContentWithHeading:ht,ListPlaylists:Lf},beforeRouteEnter(e,t,n){Ua.load(e).then(o=>{n(i=>Ua.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ua.load(e).then(i=>{Ua.set(o,i),n()})},data(){return{playlist:{},playlists_list:new it}},computed:{radio_playlists(){return this.$store.state.config.radio_playlists},playlists(){return this.playlists_list.group(H_(),[e=>e.folder||this.radio_playlists||e.stream_count===0||e.item_count>e.stream_count]),this.playlists_list}}},lM=["textContent"],cM=["textContent"];function uM(e,t,n,o,i,r){const s=P("list-playlists"),a=P("content-with-heading");return S(),Ce(a,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.playlist.name)},null,8,lM),c("p",{class:"heading",textContent:_(e.$t("page.playlists.count",{count:r.playlists.count}))},null,8,cM)]),content:T(()=>[x(s,{playlists:r.playlists},null,8,["playlists"])]),_:1})}var dM=_e(aM,[["render",uM]]);const Ha={load:function(e){return Promise.all([Y.library_playlist(e.params.playlist_id),Y.library_playlist_tracks(e.params.playlist_id)])},set:function(e,t){e.playlist=t[0].data,e.tracks=t[1].data.items}},fM={name:"PagePlaylist",components:{ContentWithHeading:ht,ListTracks:Nn,ModalDialogPlaylist:K_},beforeRouteEnter(e,t,n){Ha.load(e).then(o=>{n(i=>Ha.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ha.load(e).then(i=>{Ha.set(o,i),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(){Y.player_play_uri(this.uris,!0)}}},mM=["textContent"],hM={class:"buttons is-centered"},pM={class:"icon"},bM={class:"icon"},gM=["textContent"],vM=["textContent"];function _M(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-tracks"),l=P("modal-dialog-playlist"),u=P("content-with-heading");return S(),Ce(u,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(i.playlist.name)},null,8,mM)]),"heading-right":T(()=>[c("div",hM,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=d=>i.show_playlist_details_modal=!0)},[c("span",pM,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...d)=>r.play&&r.play(...d))},[c("span",bM,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.playlist.shuffle"))},null,8,gM)])])]),content:T(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:_(e.$t("page.playlist.length",{length:i.tracks.length}))},null,8,vM),x(a,{tracks:i.tracks,uris:r.uris},null,8,["tracks","uris"]),x(l,{show:i.show_playlist_details_modal,playlist:i.playlist,uris:r.uris,onClose:t[2]||(t[2]=d=>i.show_playlist_details_modal=!1)},null,8,["show","playlist","uris"])]),_:1})}var yM=_e(fM,[["render",_M]]);const wM={name:"ModalDialogDirectory",props:["show","directory"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_expression('path starts with "'+this.directory.path+'" order by path asc',!1)},queue_add:function(){this.$emit("close"),Y.queue_expression_add('path starts with "'+this.directory.path+'" order by path asc')},queue_add_next:function(){this.$emit("close"),Y.queue_expression_add_next('path starts with "'+this.directory.path+'" order by path asc')}}},xM={key:0,class:"modal is-active"},kM={class:"modal-content fd-modal-card"},CM={class:"card"},zM={class:"card-content"},SM=["textContent"],$M={class:"card-footer"},EM={class:"icon"},AM=["textContent"],OM={class:"icon"},TM=["textContent"],PM={class:"icon"},DM=["textContent"];function FM(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",xM,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",kM,[c("div",CM,[c("div",zM,[c("p",{class:"title is-4",textContent:_(n.directory)},null,8,SM)]),c("footer",$M,[c("a",{class:"card-footer-item has-text-dark",onClick:t[1]||(t[1]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",EM,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.directory.add"))},null,8,AM)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",OM,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.directory.add-next"))},null,8,TM)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.play&&r.play(...a))},[c("span",PM,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.directory.play"))},null,8,DM)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[4]||(t[4]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var Y_=_e(wM,[["render",FM]]);const IM={name:"ListDirectories",components:{ModalDialogDirectory:Y_},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}}},MM={class:"media-left fd-has-action"},LM={class:"icon"},RM=c("div",{class:"media-content fd-has-action is-clipped"},[c("h1",{class:"title is-6"},"..")],-1),NM={class:"media-right"},jM=["onClick"],VM={class:"media-left fd-has-action"},BM={class:"icon"},UM={class:"media-content fd-has-action is-clipped"},HM=["textContent"],qM=["textContent"],GM={class:"media-right"},WM=["onClick"],KM={class:"icon has-text-dark"};function YM(e,t,n,o,i,r){const s=P("mdicon"),a=P("modal-dialog-directory");return S(),D(Ge,null,[e.$route.query.directory?(S(),D("div",{key:0,class:"media",onClick:t[0]||(t[0]=l=>r.open_parent_directory())},[c("figure",MM,[c("span",LM,[x(s,{name:"subdirectory-arrow-left",size:"16"})])]),RM,c("div",NM,[Ct(e.$slots,"actions")])])):Q("",!0),(S(!0),D(Ge,null,xt(n.directories,l=>(S(),D("div",{key:l.path,class:"media",onClick:u=>r.open_directory(l)},[c("figure",VM,[c("span",BM,[x(s,{name:"folder",size:"16"})])]),c("div",UM,[c("h1",{class:"title is-6",textContent:_(l.path.substring(l.path.lastIndexOf("/")+1))},null,8,HM),c("h2",{class:"subtitle is-7 has-text-grey-light",textContent:_(l.path)},null,8,qM)]),c("div",GM,[c("a",{onClick:bt(u=>r.open_dialog(l),["prevent","stop"])},[c("span",KM,[x(s,{name:"dots-vertical",size:"16"})])],8,WM)])],8,jM))),128)),(S(),Ce(ci,{to:"#app"},[x(a,{show:i.show_details_modal,directory:i.selected_directory.path,onClose:t[1]||(t[1]=l=>i.show_details_modal=!1)},null,8,["show","directory"])]))],64)}var ZM=_e(IM,[["render",YM]]);const qa={load:function(e){return e.query.directory?Y.library_files(e.query.directory):Promise.resolve()},set:function(e,t){t?(e.files=t.data,e.playlists_list=new it(t.data.playlists)):e.files={directories:e.$store.state.config.directories.map(n=>({path:n})),tracks:{items:[]},playlists:{items:[]}}}},JM={name:"PageFiles",components:{ContentWithHeading:ht,ListDirectories:ZM,ListPlaylists:Lf,ListTracks:Nn,ModalDialogDirectory:Y_},beforeRouteEnter(e,t,n){qa.load(e).then(o=>{n(i=>qa.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;qa.load(e).then(i=>{qa.set(o,i),n()})},data(){return{files:{directories:[],tracks:{items:[]},playlists:{items:[]}},playlists_list:new it,show_details_modal:!1}},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(){Y.player_play_expression(this.play_expression,!1)}}},XM=["textContent"],QM=["textContent"],eL={class:"buttons is-centered"},tL={class:"icon"},nL={class:"icon"},oL=["textContent"];function iL(e,t,n,o,i,r){const s=P("mdicon"),a=P("list-directories"),l=P("list-playlists"),u=P("list-tracks"),d=P("modal-dialog-directory"),m=P("content-with-heading");return S(),D("div",null,[x(m,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.files.title"))},null,8,XM),c("p",{class:"title is-7 has-text-grey",textContent:_(r.current_directory)},null,8,QM)]),"heading-right":T(()=>[c("div",eL,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>i.show_details_modal=!0)},[c("span",tL,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>r.play&&r.play(...f))},[c("span",nL,[x(s,{name:"play",size:"16"})]),c("span",{textContent:_(e.$t("page.files.play"))},null,8,oL)])])]),content:T(()=>[x(a,{directories:i.files.directories},null,8,["directories"]),x(l,{playlists:i.playlists_list},null,8,["playlists"]),x(u,{tracks:i.files.tracks.items,expression:r.play_expression,show_icon:!0},null,8,["tracks","expression"]),x(d,{show:i.show_details_modal,directory:r.current_directory,onClose:t[2]||(t[2]=f=>i.show_details_modal=!1)},null,8,["show","directory"])]),_:1})])}var rL=_e(JM,[["render",iL]]);const Ga={load:function(e){return Y.library_radio_streams()},set:function(e,t){e.tracks=t.data.tracks}},sL={name:"PageRadioStreams",components:{ContentWithHeading:ht,ListTracks:Nn},beforeRouteEnter(e,t,n){Ga.load(e).then(o=>{n(i=>Ga.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ga.load(e).then(i=>{Ga.set(o,i),n()})},data(){return{tracks:{items:[]}}}},aL=["textContent"],lL=["textContent"];function cL(e,t,n,o,i,r){const s=P("list-tracks"),a=P("content-with-heading");return S(),D("div",null,[x(a,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.radio.title"))},null,8,aL)]),content:T(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:_(e.$t("page.radio.count",{count:i.tracks.total}))},null,8,lL),x(s,{tracks:i.tracks.items},null,8,["tracks"])]),_:1})])}var uL=_e(sL,[["render",cL]]);const dL={name:"ContentText"},fL={class:"section fd-content py-3"},mL={class:"container"},hL={class:"columns is-centered"},pL={class:"column is-four-fifths"};function bL(e,t,n,o,i,r){return S(),D("section",fL,[c("div",mL,[c("div",hL,[c("div",pL,[Ct(e.$slots,"content")])])])])}var Z_=_e(dL,[["render",bL]]);const gL={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(Xu,"/search/library"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})},search_spotify:function(){this.$store.commit(Xu,"/search/spotify"),this.$router.push({path:this.$store.state.search_path,query:this.route_query})}}},vL={key:0,class:"section fd-remove-padding-bottom"},_L={class:"container"},yL={class:"columns is-centered"},wL={class:"column is-four-fifths"},xL={class:"tabs is-centered is-small is-toggle is-toggle-rounded"},kL={class:"icon is-small"},CL=["textContent"],zL={class:"icon is-small"},SL=["textContent"];function $L(e,t,n,o,i,r){const s=P("mdicon");return r.spotify_enabled?(S(),D("section",vL,[c("div",_L,[c("div",yL,[c("div",wL,[c("div",xL,[c("ul",null,[c("li",{class:Ye({"is-active":e.$store.state.search_path==="/search/library"})},[c("a",{onClick:t[0]||(t[0]=(...a)=>r.search_library&&r.search_library(...a))},[c("span",kL,[x(s,{name:"bookshelf",size:"16"})]),c("span",{textContent:_(e.$t("page.search.tabs.library"))},null,8,CL)])],2),c("li",{class:Ye({"is-active":e.$store.state.search_path==="/search/spotify"})},[c("a",{onClick:t[1]||(t[1]=(...a)=>r.search_spotify&&r.search_spotify(...a))},[c("span",zL,[x(s,{name:"spotify",size:"16"})]),c("span",{textContent:_(e.$t("page.search.tabs.spotify"))},null,8,SL)])],2)])])])])])])):Q("",!0)}var J_=_e(gL,[["render",$L]]);const EL={name:"PageSearch",components:{ContentWithHeading:ht,ContentText:Z_,TabsSearch:J_,ListTracks:Nn,ListArtists:Df,ListAlbums:wo,ListPlaylists:Lf,ListComposers:G_},data(){return{search_query:"",tracks:{items:[],total:0},artists:new it,albums:new it,composers:new it,playlists:new it,audiobooks:new it,podcasts:new it}},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(df,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),Y.search(t).then(({data:n})=>{this.tracks=n.tracks?n.tracks:{items:[],total:0},this.artists=new it(n.artists),this.albums=new it(n.albums),this.composers=new it(n.composers),this.playlists=new it(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),Y.search(t).then(({data:n})=>{this.audiobooks=new it(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),Y.search(t).then(({data:n})=>{this.podcasts=new it(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}}},AL={class:"section fd-remove-padding-bottom"},OL={class:"container"},TL={class:"columns is-centered"},PL={class:"column is-four-fifths"},DL={class:"field"},FL={class:"control is-expanded has-icons-left"},IL={class:"icon is-left"},ML={class:"help has-text-centered"},LL=["innerHTML"],RL={class:"tags",style:{"margin-top":"16px"}},NL=["onClick","textContent"],jL=["textContent"],VL={key:0,class:"level"},BL={class:"level-item"},UL=["textContent"],HL=["textContent"],qL=["textContent"],GL={key:0,class:"level"},WL={class:"level-item"},KL=["textContent"],YL=["textContent"],ZL=["textContent"],JL={key:0,class:"level"},XL={class:"level-item"},QL=["textContent"],eR=["textContent"],tR=["textContent"],nR={key:0,class:"level"},oR={class:"level-item"},iR=["textContent"],rR=["textContent"],sR=["textContent"],aR={key:0,class:"level"},lR={class:"level-item"},cR=["textContent"],uR=["textContent"],dR=["textContent"],fR={key:0,class:"level"},mR={class:"level-item"},hR=["textContent"],pR=["textContent"],bR=["textContent"],gR={key:0,class:"level"},vR={class:"level-item"},_R=["textContent"],yR=["textContent"];function wR(e,t,n,o,i,r){const s=P("mdicon"),a=P("tabs-search"),l=P("list-tracks"),u=P("content-with-heading"),d=P("content-text"),m=P("list-artists"),f=P("list-albums"),h=P("list-composers"),p=P("list-playlists");return S(),D("div",null,[c("section",AL,[c("div",OL,[c("div",TL,[c("div",PL,[c("form",{onSubmit:t[1]||(t[1]=bt((...b)=>r.new_search&&r.new_search(...b),["prevent"]))},[c("div",DL,[c("p",FL,[zt(c("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=b=>i.search_query=b),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[zn,i.search_query]]),c("span",IL,[x(s,{name:"magnify",size:"16"})])]),c("p",ML,[c("span",{innerHTML:e.$t("page.search.help")},null,8,LL)])])],32),c("div",RL,[(S(!0),D(Ge,null,xt(r.recent_searches,b=>(S(),D("a",{key:b,class:"tag",onClick:g=>r.open_recent_search(b),textContent:_(b)},null,8,NL))),128))])])])])]),x(a,{query:i.search_query},null,8,["query"]),r.show_tracks&&i.tracks.total?(S(),Ce(u,{key:0},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.tracks"))},null,8,jL)]),content:T(()=>[x(l,{tracks:i.tracks.items},null,8,["tracks"])]),footer:T(()=>[r.show_all_tracks_button?(S(),D("nav",VL,[c("p",BL,[c("a",{class:"button is-light is-small is-rounded",onClick:t[2]||(t[2]=(...b)=>r.open_search_tracks&&r.open_search_tracks(...b)),textContent:_(e.$t("page.search.show-tracks",{count:i.tracks.total.toLocaleString(e.$i18n.locale)}))},null,8,UL)])])):Q("",!0)]),_:1})):Q("",!0),r.show_tracks&&!i.tracks.total?(S(),Ce(d,{key:1,class:"mt-6"},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-tracks"))},null,8,HL)])]),_:1})):Q("",!0),r.show_artists&&i.artists.total?(S(),Ce(u,{key:2},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.artists"))},null,8,qL)]),content:T(()=>[x(m,{artists:i.artists,hide_group_title:!0},null,8,["artists"])]),footer:T(()=>[r.show_all_artists_button?(S(),D("nav",GL,[c("p",WL,[c("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...b)=>r.open_search_artists&&r.open_search_artists(...b)),textContent:_(e.$t("page.search.show-artists",{count:i.artists.total.toLocaleString(e.$i18n.locale)}))},null,8,KL)])])):Q("",!0)]),_:1})):Q("",!0),r.show_artists&&!i.artists.total?(S(),Ce(d,{key:3},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-artists"))},null,8,YL)])]),_:1})):Q("",!0),r.show_albums&&i.albums.total?(S(),Ce(u,{key:4},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.albums"))},null,8,ZL)]),content:T(()=>[x(f,{albums:i.albums,hide_group_title:!0},null,8,["albums"])]),footer:T(()=>[r.show_all_albums_button?(S(),D("nav",JL,[c("p",XL,[c("a",{class:"button is-light is-small is-rounded",onClick:t[4]||(t[4]=(...b)=>r.open_search_albums&&r.open_search_albums(...b)),textContent:_(e.$t("page.search.show-albums",{count:i.albums.total.toLocaleString(e.$i18n.locale)}))},null,8,QL)])])):Q("",!0)]),_:1})):Q("",!0),r.show_albums&&!i.albums.total?(S(),Ce(d,{key:5},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-albums"))},null,8,eR)])]),_:1})):Q("",!0),r.show_composers&&i.composers.total?(S(),Ce(u,{key:6},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.composers"))},null,8,tR)]),content:T(()=>[x(h,{composers:i.composers},null,8,["composers"])]),footer:T(()=>[r.show_all_composers_button?(S(),D("nav",nR,[c("p",oR,[c("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...b)=>r.open_search_composers&&r.open_search_composers(...b)),textContent:_(e.$t("page.search.show-composers",{count:i.composers.total.toLocaleString(e.$i18n.locale)}))},null,8,iR)])])):Q("",!0)]),_:1})):Q("",!0),r.show_composers&&!i.composers.total?(S(),Ce(d,{key:7},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-composers"))},null,8,rR)])]),_:1})):Q("",!0),r.show_playlists&&i.playlists.total?(S(),Ce(u,{key:8},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.playlists"))},null,8,sR)]),content:T(()=>[x(p,{playlists:i.playlists},null,8,["playlists"])]),footer:T(()=>[r.show_all_playlists_button?(S(),D("nav",aR,[c("p",lR,[c("a",{class:"button is-light is-small is-rounded",onClick:t[6]||(t[6]=(...b)=>r.open_search_playlists&&r.open_search_playlists(...b)),textContent:_(e.$t("page.search.show-playlists",{count:i.playlists.total.toLocaleString(e.$i18n.locale)}))},null,8,cR)])])):Q("",!0)]),_:1})):Q("",!0),r.show_playlists&&!i.playlists.total?(S(),Ce(d,{key:9},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-playlists"))},null,8,uR)])]),_:1})):Q("",!0),r.show_podcasts&&i.podcasts.total?(S(),Ce(u,{key:10},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.podcasts"))},null,8,dR)]),content:T(()=>[x(f,{albums:i.podcasts},null,8,["albums"])]),footer:T(()=>[r.show_all_podcasts_button?(S(),D("nav",fR,[c("p",mR,[c("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...b)=>r.open_search_podcasts&&r.open_search_podcasts(...b)),textContent:_(e.$t("page.search.show-podcasts",{count:i.podcasts.total.toLocaleString(e.$i18n.locale)}))},null,8,hR)])])):Q("",!0)]),_:1})):Q("",!0),r.show_podcasts&&!i.podcasts.total?(S(),Ce(d,{key:11},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-podcasts"))},null,8,pR)])]),_:1})):Q("",!0),r.show_audiobooks&&i.audiobooks.total?(S(),Ce(u,{key:12},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.search.audiobooks"))},null,8,bR)]),content:T(()=>[x(f,{albums:i.audiobooks},null,8,["albums"])]),footer:T(()=>[r.show_all_audiobooks_button?(S(),D("nav",gR,[c("p",vR,[c("a",{class:"button is-light is-small is-rounded",onClick:t[8]||(t[8]=(...b)=>r.open_search_audiobooks&&r.open_search_audiobooks(...b)),textContent:_(e.$t("page.search.show-audiobooks",{count:i.audiobooks.total.toLocaleString(e.$i18n.locale)}))},null,8,_R)])])):Q("",!0)]),_:1})):Q("",!0),r.show_audiobooks&&!i.audiobooks.total?(S(),Ce(d,{key:13},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.search.no-audiobooks"))},null,8,yR)])]),_:1})):Q("",!0)])}var xR=_e(EL,[["render",wR]]);const kR={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(qs,!0)}}},CR={class:"section"},zR={class:"container"},SR={class:"columns is-centered"},$R={class:"column is-four-fifths has-text-centered-mobile"},ER=["textContent"],AR={class:"section"},OR={class:"container"},TR={class:"columns is-centered"},PR={class:"column is-four-fifths"},DR={class:"content"},FR={class:"level is-mobile"},IR={class:"level-left"},MR={class:"level-item"},LR=["textContent"],RR={class:"level-right"},NR={key:0},jR=["textContent"],VR={key:1},BR=["textContent"],UR={class:"table"},HR=["textContent"],qR=["textContent"],GR=["textContent"],WR=["textContent"],KR=["textContent"],YR=["textContent"],ZR=["textContent"],JR=["textContent"],XR=["textContent"],QR={class:"has-text-right"},eN=["textContent"],tN=_t(" ("),nN=["textContent"],oN=_t(") "),iN=["textContent"],rN={class:"has-text-right"},sN=["textContent"],aN=_t(" ("),lN=["textContent"],cN=_t(") "),uN={class:"section"},dN={class:"container"},fN={class:"columns is-centered"},mN={class:"column is-four-fifths"},hN={class:"content has-text-centered-mobile"},pN=["textContent"],bN=["textContent"],gN=["innerHTML"];function vN(e,t,n,o,i,r){return S(),D("div",null,[c("section",CR,[c("div",zR,[c("div",SR,[c("div",$R,[c("h1",{class:"title is-4",textContent:_(r.config.library_name)},null,8,ER)])])])]),c("section",AR,[c("div",OR,[c("div",TR,[c("div",PR,[c("div",DR,[c("nav",FR,[c("div",IR,[c("div",MR,[c("h2",{class:"title is-5",textContent:_(e.$t("page.about.library"))},null,8,LR)])]),c("div",RR,[r.library.updating?(S(),D("div",NR,[c("a",{class:"button is-small is-loading",textContent:_(e.$t("page.about.update"))},null,8,jR)])):(S(),D("div",VR,[c("a",{class:"button is-small",onClick:t[0]||(t[0]=s=>r.showUpdateDialog()),textContent:_(e.$t("page.about.update"))},null,8,BR)]))])]),c("table",UR,[c("tbody",null,[c("tr",null,[c("th",{class:"has-text-left",textContent:_(e.$t("page.about.artists"))},null,8,HR),c("td",{class:"has-text-right",textContent:_(e.$filters.number(r.library.artists))},null,8,qR)]),c("tr",null,[c("th",{class:"has-text-left",textContent:_(e.$t("page.about.albums"))},null,8,GR),c("td",{class:"has-text-right",textContent:_(e.$filters.number(r.library.albums))},null,8,WR)]),c("tr",null,[c("th",{class:"has-text-left",textContent:_(e.$t("page.about.tracks"))},null,8,KR),c("td",{class:"has-text-right",textContent:_(e.$filters.number(r.library.songs))},null,8,YR)]),c("tr",null,[c("th",{class:"has-text-left",textContent:_(e.$t("page.about.total-playtime"))},null,8,ZR),c("td",{class:"has-text-right",textContent:_(e.$filters.durationInDays(r.library.db_playtime*1e3))},null,8,JR)]),c("tr",null,[c("th",{class:"has-text-left",textContent:_(e.$t("page.about.updated"))},null,8,XR),c("td",QR,[c("span",{textContent:_(e.$t("page.about.updated-on",{time:e.$filters.timeFromNow(r.library.updated_at)}))},null,8,eN),tN,c("span",{class:"has-text-grey",textContent:_(e.$filters.datetime(r.library.updated_at))},null,8,nN),oN])]),c("tr",null,[c("th",{class:"has-text-left",textContent:_(e.$t("page.about.uptime"))},null,8,iN),c("td",rN,[c("span",{textContent:_(e.$filters.timeFromNow(r.library.started_at,!0))},null,8,sN),aN,c("span",{class:"has-text-grey",textContent:_(e.$filters.datetime(r.library.started_at))},null,8,lN),cN])])])])])])])])]),c("section",uN,[c("div",dN,[c("div",fN,[c("div",mN,[c("div",hN,[c("p",{class:"is-size-7",textContent:_(e.$t("page.about.version",{version:r.config.version}))},null,8,pN),c("p",{class:"is-size-7",textContent:_(e.$t("page.about.compiled-with",{options:r.config.buildoptions.join(", ")}))},null,8,bN),c("p",{class:"is-size-7",innerHTML:e.$t("page.about.built-with")},null,8,gN)])])])])])])}var _N=_e(kR,[["render",vN]]);const yN={name:"SpotifyListItemAlbum",props:["album"]},wN={class:"media"},xN={key:0,class:"media-left fd-has-action"},kN={class:"media-content fd-has-action is-clipped"},CN=["textContent"],zN={class:"subtitle is-7 has-text-grey"},SN=["textContent"],$N=["textContent"],EN={class:"media-right"};function AN(e,t,n,o,i,r){return S(),D("div",wN,[e.$slots.artwork?(S(),D("div",xN,[Ct(e.$slots,"artwork")])):Q("",!0),c("div",kN,[c("h1",{class:"title is-6",textContent:_(n.album.name)},null,8,CN),c("h2",zN,[c("b",{textContent:_(n.album.artists[0].name)},null,8,SN)]),c("h2",{class:"subtitle is-7 has-text-grey has-text-weight-normal",textContent:_([n.album.album_type,e.$filters.date(n.album.release_date)].join(", "))},null,8,$N)]),c("div",EN,[Ct(e.$slots,"actions")])])}var wc=_e(yN,[["render",AN]]);const ON={name:"SpotifyListItemPlaylist",props:["playlist"],methods:{open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},TN={class:"media"},PN=["textContent"],DN=["textContent"],FN={class:"media-right"};function IN(e,t,n,o,i,r){return S(),D("div",TN,[c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...s)=>r.open_playlist&&r.open_playlist(...s))},[c("h1",{class:"title is-6",textContent:_(n.playlist.name)},null,8,PN),c("h2",{class:"subtitle is-7",textContent:_(n.playlist.owner.display_name)},null,8,DN)]),c("div",FN,[Ct(e.$slots,"actions")])])}var Rf=_e(ON,[["render",IN]]);const MN={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"),Y.player_play_uri(this.album.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.album.uri)},queue_add_next:function(){this.$emit("close"),Y.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}}},LN={key:0,class:"modal is-active"},RN={class:"modal-content fd-modal-card"},NN={class:"card"},jN={class:"card-content"},VN={class:"image is-square fd-has-margin-bottom"},BN=["src"],UN={class:"title is-4"},HN=["textContent"],qN={class:"content is-small"},GN=["textContent"],WN=["textContent"],KN=["textContent"],YN=["textContent"],ZN=["textContent"],JN=["textContent"],XN={class:"card-footer"},QN={class:"icon"},ej=["textContent"],tj={class:"icon"},nj=["textContent"],oj={class:"icon"},ij=["textContent"];function rj(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",LN,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",RN,[c("div",NN,[c("div",jN,[zt(c("figure",VN,[c("img",{src:r.artwork_url,class:"fd-has-shadow",onLoad:t[1]||(t[1]=(...a)=>r.artwork_loaded&&r.artwork_loaded(...a)),onError:t[2]||(t[2]=(...a)=>r.artwork_error&&r.artwork_error(...a))},null,40,BN)],512),[[gr,i.artwork_visible]]),c("p",UN,[c("a",{class:"has-text-link",onClick:t[3]||(t[3]=(...a)=>r.open_album&&r.open_album(...a)),textContent:_(n.album.name)},null,8,HN)]),c("div",qN,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.album.album-artist"))},null,8,GN),c("a",{class:"title is-6 has-text-link",onClick:t[4]||(t[4]=(...a)=>r.open_artist&&r.open_artist(...a)),textContent:_(n.album.artists[0].name)},null,8,WN)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.album.release-date"))},null,8,KN),c("span",{class:"title is-6",textContent:_(e.$filters.date(n.album.release_date))},null,8,YN)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.album.type"))},null,8,ZN),c("span",{class:"title is-6",textContent:_(n.album.album_type)},null,8,JN)])])]),c("footer",XN,[c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",QN,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.album.add"))},null,8,ej)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[6]||(t[6]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",tj,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.album.add-next"))},null,8,nj)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[7]||(t[7]=(...a)=>r.play&&r.play(...a))},[c("span",oj,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.album.play"))},null,8,ij)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[8]||(t[8]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var Ks=_e(MN,[["render",rj]]);const sj={name:"SpotifyModalDialogPlaylist",props:["show","playlist"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_uri(this.playlist.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.playlist.uri)},queue_add_next:function(){this.$emit("close"),Y.queue_add_next(this.playlist.uri)},open_playlist:function(){this.$router.push({path:"/music/spotify/playlists/"+this.playlist.id})}}},aj={key:0,class:"modal is-active"},lj={class:"modal-content fd-modal-card"},cj={class:"card"},uj={class:"card-content"},dj={class:"title is-4"},fj=["textContent"],mj={class:"content is-small"},hj=["textContent"],pj=["textContent"],bj=["textContent"],gj=["textContent"],vj=["textContent"],_j=["textContent"],yj={class:"card-footer"},wj={class:"icon"},xj=["textContent"],kj={class:"icon"},Cj=["textContent"],zj={class:"icon"},Sj=["textContent"];function $j(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",aj,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",lj,[c("div",cj,[c("div",uj,[c("p",dj,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_playlist&&r.open_playlist(...a)),textContent:_(n.playlist.name)},null,8,fj)]),c("div",mj,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.playlist.owner"))},null,8,hj),c("span",{class:"title is-6",textContent:_(n.playlist.owner.display_name)},null,8,pj)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.playlist.tracks"))},null,8,bj),c("span",{class:"title is-6",textContent:_(n.playlist.tracks.total)},null,8,gj)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.playlist.path"))},null,8,vj),c("span",{class:"title is-6",textContent:_(n.playlist.uri)},null,8,_j)])])]),c("footer",yj,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",wj,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.playlist.add"))},null,8,xj)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",kj,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.playlist.add-next"))},null,8,Cj)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.play&&r.play(...a))},[c("span",zj,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.playlist.play"))},null,8,Sj)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var xc=_e(sj,[["render",$j]]);const Wa={load:function(e){if(at.state.spotify_new_releases.length>0&&at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new co;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(cf,t[0].albums.items),at.commit(uf,t[1].playlists.items))}},Ej={name:"SpotifyPageBrowse",components:{ContentWithHeading:ht,TabsMusic:yo,SpotifyListItemAlbum:wc,SpotifyListItemPlaylist:Rf,SpotifyModalDialogAlbum:Ks,SpotifyModalDialogPlaylist:xc,CoverArtwork:Io},beforeRouteEnter(e,t,n){Wa.load(e).then(o=>{n(i=>Wa.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Wa.load(e).then(i=>{Wa.set(o,i),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:""}}},Aj={class:"fd-page-with-tabs"},Oj=["textContent"],Tj={class:"image is-64x64 fd-has-shadow fd-has-action"},Pj=["onClick"],Dj={class:"icon has-text-dark"},Fj={class:"level"},Ij={class:"level-item"},Mj=["textContent"],Lj=["onClick"],Rj={class:"icon has-text-dark"},Nj={class:"level"},jj={class:"level-item"};function Vj(e,t,n,o,i,r){const s=P("tabs-music"),a=P("cover-artwork"),l=P("mdicon"),u=P("spotify-list-item-album"),d=P("spotify-modal-dialog-album"),m=P("router-link"),f=P("content-with-heading"),h=P("spotify-list-item-playlist"),p=P("spotify-modal-dialog-playlist");return S(),D("div",Aj,[x(s),x(f,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.spotify.browse.new-releases"))},null,8,Oj)]),content:T(()=>[(S(!0),D(Ge,null,xt(r.new_releases,b=>(S(),Ce(u,{key:b.id,album:b,onClick:g=>r.open_album(b)},Us({actions:T(()=>[c("a",{onClick:bt(g=>r.open_album_dialog(b),["prevent","stop"])},[c("span",Dj,[x(l,{name:"dots-vertical",size:"16"})])],8,Pj)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[c("p",Tj,[x(a,{artwork_url:r.artwork_url(b),artist:b.artist,album:b.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),x(d,{show:i.show_album_details_modal,album:i.selected_album,onClose:t[0]||(t[0]=b=>i.show_album_details_modal=!1)},null,8,["show","album"])]),footer:T(()=>[c("nav",Fj,[c("p",Ij,[x(m,{to:"/music/spotify/new-releases",class:"button is-light is-small is-rounded"},{default:T(()=>[_t(_(e.$t("page.spotify.browse.show-more")),1)]),_:1})])])]),_:1}),x(f,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.spotify.browse.featured-playlists"))},null,8,Mj)]),content:T(()=>[(S(!0),D(Ge,null,xt(r.featured_playlists,b=>(S(),Ce(h,{key:b.id,playlist:b},{actions:T(()=>[c("a",{onClick:bt(g=>r.open_playlist_dialog(b),["prevent","stop"])},[c("span",Rj,[x(l,{name:"dots-vertical",size:"16"})])],8,Lj)]),_:2},1032,["playlist"]))),128)),x(p,{show:i.show_playlist_details_modal,playlist:i.selected_playlist,onClose:t[1]||(t[1]=b=>i.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:T(()=>[c("nav",Nj,[c("p",jj,[x(m,{to:"/music/spotify/featured-playlists",class:"button is-light is-small is-rounded"},{default:T(()=>[_t(_(e.$t("page.spotify.browse.show-more")),1)]),_:1})])])]),_:1})])}var Bj=_e(Ej,[["render",Vj]]);const Ka={load:function(e){if(at.state.spotify_new_releases.length>0)return Promise.resolve();const t=new co;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(cf,t.albums.items)}},Uj={name:"SpotifyPageBrowseNewReleases",components:{ContentWithHeading:ht,TabsMusic:yo,SpotifyListItemAlbum:wc,SpotifyModalDialogAlbum:Ks,CoverArtwork:Io},beforeRouteEnter(e,t,n){Ka.load(e).then(o=>{n(i=>Ka.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ka.load(e).then(i=>{Ka.set(o,i),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:""}}},Hj={class:"fd-page-with-tabs"},qj=c("p",{class:"title is-4"},"New Releases",-1),Gj={class:"image is-64x64 fd-has-shadow fd-has-action"},Wj=["onClick"],Kj={class:"icon has-text-dark"};function Yj(e,t,n,o,i,r){const s=P("tabs-music"),a=P("cover-artwork"),l=P("mdicon"),u=P("spotify-list-item-album"),d=P("spotify-modal-dialog-album"),m=P("content-with-heading");return S(),D("div",Hj,[x(s),x(m,null,{"heading-left":T(()=>[qj]),content:T(()=>[(S(!0),D(Ge,null,xt(r.new_releases,f=>(S(),Ce(u,{key:f.id,album:f,onClick:h=>r.open_album(f)},Us({actions:T(()=>[c("a",{onClick:bt(h=>r.open_album_dialog(f),["prevent","stop"])},[c("span",Kj,[x(l,{name:"dots-vertical",size:"16"})])],8,Wj)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[c("p",Gj,[x(a,{artwork_url:r.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)),x(d,{show:i.show_album_details_modal,album:i.selected_album,onClose:t[0]||(t[0]=f=>i.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})])}var Zj=_e(Uj,[["render",Yj]]);const Ya={load:function(e){if(at.state.spotify_featured_playlists.length>0)return Promise.resolve();const t=new co;t.setAccessToken(at.state.spotify.webapi_token),t.getFeaturedPlaylists({country:at.state.spotify.webapi_country,limit:50})},set:function(e,t){t&&at.commit(uf,t.playlists.items)}},Jj={name:"SpotifyPageBrowseFeaturedPlaylists",components:{ContentWithHeading:ht,TabsMusic:yo,SpotifyListItemPlaylist:Rf,SpotifyModalDialogPlaylist:xc},beforeRouteEnter(e,t,n){Ya.load(e).then(o=>{n(i=>Ya.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ya.load(e).then(i=>{Ya.set(o,i),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}}},Xj={class:"fd-page-with-tabs"},Qj=c("p",{class:"title is-4"},"Featured Playlists",-1),eV=["onClick"],tV={class:"icon has-text-dark"};function nV(e,t,n,o,i,r){const s=P("tabs-music"),a=P("mdicon"),l=P("spotify-list-item-playlist"),u=P("spotify-modal-dialog-playlist"),d=P("content-with-heading");return S(),D("div",Xj,[x(s),x(d,null,{"heading-left":T(()=>[Qj]),content:T(()=>[(S(!0),D(Ge,null,xt(r.featured_playlists,m=>(S(),Ce(l,{key:m.id,playlist:m},{actions:T(()=>[c("a",{onClick:bt(f=>r.open_playlist_dialog(m),["prevent","stop"])},[c("span",tV,[x(a,{name:"dots-vertical",size:"16"})])],8,eV)]),_:2},1032,["playlist"]))),128)),x(u,{show:i.show_playlist_details_modal,playlist:i.selected_playlist,onClose:t[0]||(t[0]=m=>i.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})])}var oV=_e(Jj,[["render",nV]]);const iV={name:"SpotifyModalDialogArtist",props:["show","artist"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_uri(this.artist.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.artist.uri)},queue_add_next:function(){this.$emit("close"),Y.queue_add_next(this.artist.uri)},open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},rV={key:0,class:"modal is-active"},sV={class:"modal-content fd-modal-card"},aV={class:"card"},lV={class:"card-content"},cV={class:"title is-4"},uV=["textContent"],dV={class:"content is-small"},fV=["textContent"],mV=["textContent"],hV=["textContent"],pV=["textContent"],bV={class:"card-footer"},gV={class:"icon"},vV=["textContent"],_V={class:"icon"},yV=["textContent"],wV={class:"icon"},xV=["textContent"];function kV(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",rV,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",sV,[c("div",aV,[c("div",lV,[c("p",cV,[c("a",{class:"has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_artist&&r.open_artist(...a)),textContent:_(n.artist.name)},null,8,uV)]),c("div",dV,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.artist.popularity"))},null,8,fV),c("span",{class:"title is-6",textContent:_([n.artist.popularity,n.artist.followers.total].join(" / "))},null,8,mV)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.artist.genres"))},null,8,hV),c("span",{class:"title is-6",textContent:_(n.artist.genres.join(", "))},null,8,pV)])])]),c("footer",bV,[c("a",{class:"card-footer-item has-text-dark",onClick:t[2]||(t[2]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",gV,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.artist.add"))},null,8,vV)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",_V,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.artist.add-next"))},null,8,yV)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.play&&r.play(...a))},[c("span",wV,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.artist.play"))},null,8,xV)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var X_=_e(iV,[["render",kV]]),kc={exports:{}};/*!
*
* @ts-pro/vue-eternal-loading v1.1.1
* (c) 2021 Oleksandr Havrashenko
* MIT License
*
*/(function(e,t){(function(n,o){e.exports=o(Cf)})(typeof self!="undefined"?self:an,function(n){return function(o){var i={};function r(s){if(i[s])return i[s].exports;var a=i[s]={i:s,l:!1,exports:{}};return o[s].call(a.exports,a,a.exports,r),a.l=!0,a.exports}return r.m=o,r.c=i,r.d=function(s,a,l){r.o(s,a)||Object.defineProperty(s,a,{enumerable:!0,get:l})},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,a){if(1&a&&(s=r(s)),8&a||4&a&&typeof s=="object"&&s&&s.__esModule)return s;var l=Object.create(null);if(r.r(l),Object.defineProperty(l,"default",{enumerable:!0,value:s}),2&a&&typeof s!="string")for(var u in s)r.d(l,u,function(d){return s[d]}.bind(null,u));return l},r.n=function(s){var a=s&&s.__esModule?function(){return s.default}:function(){return s};return r.d(a,"a",a),a},r.o=function(s,a){return Object.prototype.hasOwnProperty.call(s,a)},r.p="",r(r.s="fae3")}({"00ee":function(o,i,r){var s=r("b622"),a=s("toStringTag"),l={};l[a]="z",o.exports=String(l)==="[object z]"},"0366":function(o,i,r){var s=r("1c0b");o.exports=function(a,l,u){if(s(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(o,i,r){var s=r("fc6a"),a=r("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()}};o.exports.f=function(m){return u&&l.call(m)=="[object Window]"?d(m):a(s(m))}},"06cf":function(o,i,r){var s=r("83ab"),a=r("d1e7"),l=r("5c6c"),u=r("fc6a"),d=r("c04e"),m=r("5135"),f=r("0cfb"),h=Object.getOwnPropertyDescriptor;i.f=s?h:function(p,b){if(p=u(p),b=d(b,!0),f)try{return h(p,b)}catch{}if(m(p,b))return l(!a.f.call(p,b),p[b])}},"0cfb":function(o,i,r){var s=r("83ab"),a=r("d039"),l=r("cc12");o.exports=!s&&!a(function(){return Object.defineProperty(l("div"),"a",{get:function(){return 7}}).a!=7})},"1be4":function(o,i,r){var s=r("d066");o.exports=s("document","documentElement")},"1c0b":function(o,i){o.exports=function(r){if(typeof r!="function")throw TypeError(String(r)+" is not a function");return r}},"1c7e":function(o,i,r){var s=r("b622"),a=s("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{}o.exports=function(m,f){if(!f&&!l)return!1;var h=!1;try{var p={};p[a]=function(){return{next:function(){return{done:h=!0}}}},m(p)}catch{}return h}},"1d80":function(o,i){o.exports=function(r){if(r==null)throw TypeError("Can't call method on "+r);return r}},"1dde":function(o,i,r){var s=r("d039"),a=r("b622"),l=r("2d00"),u=a("species");o.exports=function(d){return l>=51||!s(function(){var m=[],f=m.constructor={};return f[u]=function(){return{foo:1}},m[d](Boolean).foo!==1})}},"23cb":function(o,i,r){var s=r("a691"),a=Math.max,l=Math.min;o.exports=function(u,d){var m=s(u);return m<0?a(m+d,0):l(m,d)}},"23e7":function(o,i,r){var s=r("da84"),a=r("06cf").f,l=r("9112"),u=r("6eeb"),d=r("ce4e"),m=r("e893"),f=r("94ca");o.exports=function(h,p){var b,g,y,w,C,k,$=h.target,O=h.global,j=h.stat;if(g=O?s:j?s[$]||d($,{}):(s[$]||{}).prototype,g)for(y in p){if(C=p[y],h.noTargetGet?(k=a(g,y),w=k&&k.value):w=g[y],b=f(O?y:$+(j?".":"#")+y,h.forced),!b&&w!==void 0){if(typeof C==typeof w)continue;m(C,w)}(h.sham||w&&w.sham)&&l(C,"sham",!0),u(g,y,C,h)}}},"241c":function(o,i,r){var s=r("ca84"),a=r("7839"),l=a.concat("length","prototype");i.f=Object.getOwnPropertyNames||function(u){return s(u,l)}},"2a62":function(o,i,r){var s=r("825a");o.exports=function(a){var l=a.return;if(l!==void 0)return s(l.call(a)).value}},"2d00":function(o,i,r){var s,a,l=r("da84"),u=r("342f"),d=l.process,m=d&&d.versions,f=m&&m.v8;f?(s=f.split("."),a=s[0]<4?1:s[0]+s[1]):u&&(s=u.match(/Edge\/(\d+)/),(!s||s[1]>=74)&&(s=u.match(/Chrome\/(\d+)/),s&&(a=s[1]))),o.exports=a&&+a},"342f":function(o,i,r){var s=r("d066");o.exports=s("navigator","userAgent")||""},"35a1":function(o,i,r){var s=r("f5df"),a=r("3f8c"),l=r("b622"),u=l("iterator");o.exports=function(d){if(d!=null)return d[u]||d["@@iterator"]||a[s(d)]}},"37e8":function(o,i,r){var s=r("83ab"),a=r("9bf2"),l=r("825a"),u=r("df75");o.exports=s?Object.defineProperties:function(d,m){l(d);for(var f,h=u(m),p=h.length,b=0;p>b;)a.f(d,f=h[b++],m[f]);return d}},"3bbe":function(o,i,r){var s=r("861d");o.exports=function(a){if(!s(a)&&a!==null)throw TypeError("Can't set "+String(a)+" as a prototype");return a}},"3ca3":function(o,i,r){var s=r("6547").charAt,a=r("69f3"),l=r("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,h=m(this),p=h.string,b=h.index;return b>=p.length?{value:void 0,done:!0}:(f=s(p,b),h.index+=f.length,{value:f,done:!1})})},"3f8c":function(o,i){o.exports={}},"428f":function(o,i,r){var s=r("da84");o.exports=s},"44ad":function(o,i,r){var s=r("d039"),a=r("c6b6"),l="".split;o.exports=s(function(){return!Object("z").propertyIsEnumerable(0)})?function(u){return a(u)=="String"?l.call(u,""):Object(u)}:Object},"44d2":function(o,i,r){var s=r("b622"),a=r("7c73"),l=r("9bf2"),u=s("unscopables"),d=Array.prototype;d[u]==null&&l.f(d,u,{configurable:!0,value:a(null)}),o.exports=function(m){d[u][m]=!0}},4930:function(o,i,r){var s=r("2d00"),a=r("d039");o.exports=!!Object.getOwnPropertySymbols&&!a(function(){var l=Symbol();return!String(l)||!(Object(l)instanceof Symbol)||!Symbol.sham&&s&&s<41})},"4d64":function(o,i,r){var s=r("fc6a"),a=r("50c4"),l=r("23cb"),u=function(d){return function(m,f,h){var p,b=s(m),g=a(b.length),y=l(h,g);if(d&&f!=f){for(;g>y;)if(p=b[y++],p!=p)return!0}else for(;g>y;y++)if((d||y in b)&&b[y]===f)return d||y||0;return!d&&-1}};o.exports={includes:u(!0),indexOf:u(!1)}},"4df4":function(o,i,r){var s=r("0366"),a=r("7b0b"),l=r("9bdd"),u=r("e95a"),d=r("50c4"),m=r("8418"),f=r("35a1");o.exports=function(h){var p,b,g,y,w,C,k=a(h),$=typeof this=="function"?this:Array,O=arguments.length,j=O>1?arguments[1]:void 0,F=j!==void 0,A=f(k),M=0;if(F&&(j=s(j,O>2?arguments[2]:void 0,2)),A==null||$==Array&&u(A))for(p=d(k.length),b=new $(p);p>M;M++)C=F?j(k[M],M):k[M],m(b,M,C);else for(y=A.call(k),w=y.next,b=new $;!(g=w.call(y)).done;M++)C=F?l(y,j,[g.value,M],!0):g.value,m(b,M,C);return b.length=M,b}},"50c4":function(o,i,r){var s=r("a691"),a=Math.min;o.exports=function(l){return l>0?a(s(l),9007199254740991):0}},5135:function(o,i,r){var s=r("7b0b"),a={}.hasOwnProperty;o.exports=Object.hasOwn||function(l,u){return a.call(s(l),u)}},5692:function(o,i,r){var s=r("c430"),a=r("c6cd");(o.exports=function(l,u){return a[l]||(a[l]=u!==void 0?u:{})})("versions",[]).push({version:"3.15.2",mode:s?"pure":"global",copyright:"\xA9 2021 Denis Pushkarev (zloirock.ru)"})},"56ef":function(o,i,r){var s=r("d066"),a=r("241c"),l=r("7418"),u=r("825a");o.exports=s("Reflect","ownKeys")||function(d){var m=a.f(u(d)),f=l.f;return f?m.concat(f(d)):m}},"5c6c":function(o,i){o.exports=function(r,s){return{enumerable:!(1&r),configurable:!(2&r),writable:!(4&r),value:s}}},6547:function(o,i,r){var s=r("a691"),a=r("1d80"),l=function(u){return function(d,m){var f,h,p=String(a(d)),b=s(m),g=p.length;return b<0||b>=g?u?"":void 0:(f=p.charCodeAt(b),f<55296||f>56319||b+1===g||(h=p.charCodeAt(b+1))<56320||h>57343?u?p.charAt(b):f:u?p.slice(b,b+2):h-56320+(f-55296<<10)+65536)}};o.exports={codeAt:l(!1),charAt:l(!0)}},"65f0":function(o,i,r){var s=r("861d"),a=r("e8b5"),l=r("b622"),u=l("species");o.exports=function(d,m){var f;return a(d)&&(f=d.constructor,typeof f!="function"||f!==Array&&!a(f.prototype)?s(f)&&(f=f[u],f===null&&(f=void 0)):f=void 0),new(f===void 0?Array:f)(m===0?0:m)}},"69f3":function(o,i,r){var s,a,l,u=r("7f9a"),d=r("da84"),m=r("861d"),f=r("9112"),h=r("5135"),p=r("c6cd"),b=r("f772"),g=r("d012"),y="Object already initialized",w=d.WeakMap,C=function(M){return l(M)?a(M):s(M,{})},k=function(M){return function(G){var R;if(!m(G)||(R=a(G)).type!==M)throw TypeError("Incompatible receiver, "+M+" required");return R}};if(u||p.state){var $=p.state||(p.state=new w),O=$.get,j=$.has,F=$.set;s=function(M,G){if(j.call($,M))throw new TypeError(y);return G.facade=M,F.call($,M,G),G},a=function(M){return O.call($,M)||{}},l=function(M){return j.call($,M)}}else{var A=b("state");g[A]=!0,s=function(M,G){if(h(M,A))throw new TypeError(y);return G.facade=M,f(M,A,G),G},a=function(M){return h(M,A)?M[A]:{}},l=function(M){return h(M,A)}}o.exports={set:s,get:a,has:l,enforce:C,getterFor:k}},"6eeb":function(o,i,r){var s=r("da84"),a=r("9112"),l=r("5135"),u=r("ce4e"),d=r("8925"),m=r("69f3"),f=m.get,h=m.enforce,p=String(String).split("String");(o.exports=function(b,g,y,w){var C,k=!!w&&!!w.unsafe,$=!!w&&!!w.enumerable,O=!!w&&!!w.noTargetGet;typeof y=="function"&&(typeof g!="string"||l(y,"name")||a(y,"name",g),C=h(y),C.source||(C.source=p.join(typeof g=="string"?g:""))),b!==s?(k?!O&&b[g]&&($=!0):delete b[g],$?b[g]=y:a(b,g,y)):$?b[g]=y:u(g,y)})(Function.prototype,"toString",function(){return typeof this=="function"&&f(this).source||d(this)})},7418:function(o,i){i.f=Object.getOwnPropertySymbols},"746f":function(o,i,r){var s=r("428f"),a=r("5135"),l=r("e538"),u=r("9bf2").f;o.exports=function(d){var m=s.Symbol||(s.Symbol={});a(m,d)||u(m,d,{value:l.f(d)})}},7839:function(o,i){o.exports=["constructor","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","toLocaleString","toString","valueOf"]},"7b0b":function(o,i,r){var s=r("1d80");o.exports=function(a){return Object(s(a))}},"7c73":function(o,i,r){var s,a=r("825a"),l=r("37e8"),u=r("7839"),d=r("d012"),m=r("1be4"),f=r("cc12"),h=r("f772"),p=">",b="<",g="prototype",y="script",w=h("IE_PROTO"),C=function(){},k=function(F){return b+y+p+F+b+"/"+y+p},$=function(F){F.write(k("")),F.close();var A=F.parentWindow.Object;return F=null,A},O=function(){var F,A=f("iframe"),M="java"+y+":";return A.style.display="none",m.appendChild(A),A.src=String(M),F=A.contentWindow.document,F.open(),F.write(k("document.F=Object")),F.close(),F.F},j=function(){try{s=document.domain&&new ActiveXObject("htmlfile")}catch{}j=s?$(s):O();for(var F=u.length;F--;)delete j[g][u[F]];return j()};d[w]=!0,o.exports=Object.create||function(F,A){var M;return F!==null?(C[g]=a(F),M=new C,C[g]=null,M[w]=F):M=j(),A===void 0?M:l(M,A)}},"7dd0":function(o,i,r){var s=r("23e7"),a=r("9ed3"),l=r("e163"),u=r("d2bb"),d=r("d44e"),m=r("9112"),f=r("6eeb"),h=r("b622"),p=r("c430"),b=r("3f8c"),g=r("ae93"),y=g.IteratorPrototype,w=g.BUGGY_SAFARI_ITERATORS,C=h("iterator"),k="keys",$="values",O="entries",j=function(){return this};o.exports=function(F,A,M,G,R,q,B){a(M,A,G);var re,X,ce,ge=function(U){if(U===R&&fe)return fe;if(!w&&U in pe)return pe[U];switch(U){case k:return function(){return new M(this,U)};case $:return function(){return new M(this,U)};case O:return function(){return new M(this,U)}}return function(){return new M(this)}},Le=A+" Iterator",Be=!1,pe=F.prototype,J=pe[C]||pe["@@iterator"]||R&&pe[R],fe=!w&&J||ge(R),we=A=="Array"&&pe.entries||J;if(we&&(re=l(we.call(new F)),y!==Object.prototype&&re.next&&(p||l(re)===y||(u?u(re,y):typeof re[C]!="function"&&m(re,C,j)),d(re,Le,!0,!0),p&&(b[Le]=j))),R==$&&J&&J.name!==$&&(Be=!0,fe=function(){return J.call(this)}),p&&!B||pe[C]===fe||m(pe,C,fe),b[A]=fe,R)if(X={values:ge($),keys:q?fe:ge(k),entries:ge(O)},B)for(ce in X)(w||Be||!(ce in pe))&&f(pe,ce,X[ce]);else s({target:A,proto:!0,forced:w||Be},X);return X}},"7f9a":function(o,i,r){var s=r("da84"),a=r("8925"),l=s.WeakMap;o.exports=typeof l=="function"&&/native code/.test(a(l))},"825a":function(o,i,r){var s=r("861d");o.exports=function(a){if(!s(a))throw TypeError(String(a)+" is not an object");return a}},"83ab":function(o,i,r){var s=r("d039");o.exports=!s(function(){return Object.defineProperty({},1,{get:function(){return 7}})[1]!=7})},8418:function(o,i,r){var s=r("c04e"),a=r("9bf2"),l=r("5c6c");o.exports=function(u,d,m){var f=s(d);f in u?a.f(u,f,l(0,m)):u[f]=m}},"861d":function(o,i){o.exports=function(r){return typeof r=="object"?r!==null:typeof r=="function"}},8875:function(o,i,r){var s,a,l;(function(u,d){a=[],s=d,l=typeof s=="function"?s.apply(i,a):s,l===void 0||(o.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(O){var m,f,h,p=/.*at [^(]*\((.*):(.+):(.+)\)$/gi,b=/@([^@]*):(\d+):(\d+)\s*$/gi,g=p.exec(O.stack)||b.exec(O.stack),y=g&&g[1]||!1,w=g&&g[2]||!1,C=document.location.href.replace(document.location.hash,""),k=document.getElementsByTagName("script");y===C&&(m=document.documentElement.outerHTML,f=new RegExp("(?:[^\\n]+?\\n){0,"+(w-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),h=m.replace(f,"$1").trim());for(var $=0;$<k.length;$++)if(k[$].readyState==="interactive"||k[$].src===y||y===C&&k[$].innerHTML&&k[$].innerHTML.trim()===h)return k[$];return null}}return u})},8925:function(o,i,r){var s=r("c6cd"),a=Function.toString;typeof s.inspectSource!="function"&&(s.inspectSource=function(l){return a.call(l)}),o.exports=s.inspectSource},"8bbf":function(o,i){o.exports=n},"90e3":function(o,i){var r=0,s=Math.random();o.exports=function(a){return"Symbol("+String(a===void 0?"":a)+")_"+(++r+s).toString(36)}},9112:function(o,i,r){var s=r("83ab"),a=r("9bf2"),l=r("5c6c");o.exports=s?function(u,d,m){return a.f(u,d,l(1,m))}:function(u,d,m){return u[d]=m,u}},"94ca":function(o,i,r){var s=r("d039"),a=/#|\.prototype\./,l=function(h,p){var b=d[u(h)];return b==f||b!=m&&(typeof p=="function"?s(p):!!p)},u=l.normalize=function(h){return String(h).replace(a,".").toLowerCase()},d=l.data={},m=l.NATIVE="N",f=l.POLYFILL="P";o.exports=l},"9bdd":function(o,i,r){var s=r("825a"),a=r("2a62");o.exports=function(l,u,d,m){try{return m?u(s(d)[0],d[1]):u(d)}catch(f){throw a(l),f}}},"9bf2":function(o,i,r){var s=r("83ab"),a=r("0cfb"),l=r("825a"),u=r("c04e"),d=Object.defineProperty;i.f=s?d:function(m,f,h){if(l(m),f=u(f,!0),l(h),a)try{return d(m,f,h)}catch{}if("get"in h||"set"in h)throw TypeError("Accessors not supported");return"value"in h&&(m[f]=h.value),m}},"9ed3":function(o,i,r){var s=r("ae93").IteratorPrototype,a=r("7c73"),l=r("5c6c"),u=r("d44e"),d=r("3f8c"),m=function(){return this};o.exports=function(f,h,p){var b=h+" Iterator";return f.prototype=a(s,{next:l(1,p)}),u(f,b,!1,!0),d[b]=m,f}},a4d3:function(o,i,r){var s=r("23e7"),a=r("da84"),l=r("d066"),u=r("c430"),d=r("83ab"),m=r("4930"),f=r("fdbf"),h=r("d039"),p=r("5135"),b=r("e8b5"),g=r("861d"),y=r("825a"),w=r("7b0b"),C=r("fc6a"),k=r("c04e"),$=r("5c6c"),O=r("7c73"),j=r("df75"),F=r("241c"),A=r("057f"),M=r("7418"),G=r("06cf"),R=r("9bf2"),q=r("d1e7"),B=r("9112"),re=r("6eeb"),X=r("5692"),ce=r("f772"),ge=r("d012"),Le=r("90e3"),Be=r("b622"),pe=r("e538"),J=r("746f"),fe=r("d44e"),we=r("69f3"),U=r("b727").forEach,se=ce("hidden"),ie="Symbol",ye="prototype",je=Be("toPrimitive"),Ie=we.set,$e=we.getterFor(ie),Ae=Object[ye],E=a.Symbol,L=l("JSON","stringify"),Z=G.f,le=R.f,ue=A.f,ve=q.f,xe=X("symbols"),he=X("op-symbols"),V=X("string-to-symbol-registry"),H=X("symbol-to-string-registry"),Ee=X("wks"),ke=a.QObject,De=!ke||!ke[ye]||!ke[ye].findChild,Re=d&&h(function(){return O(le({},"a",{get:function(){return le(this,"a",{value:7}).a}})).a!=7})?function(oe,de,te){var ae=Z(Ae,de);ae&&delete Ae[de],le(oe,de,te),ae&&oe!==Ae&&le(Ae,de,ae)}:le,qe=function(oe,de){var te=xe[oe]=O(E[ye]);return Ie(te,{type:ie,tag:oe,description:de}),d||(te.description=de),te},tt=f?function(oe){return typeof oe=="symbol"}:function(oe){return Object(oe)instanceof E},z=function(oe,de,te){oe===Ae&&z(he,de,te),y(oe);var ae=k(de,!0);return y(te),p(xe,ae)?(te.enumerable?(p(oe,se)&&oe[se][ae]&&(oe[se][ae]=!1),te=O(te,{enumerable:$(0,!1)})):(p(oe,se)||le(oe,se,$(1,{})),oe[se][ae]=!0),Re(oe,ae,te)):le(oe,ae,te)},v=function(oe,de){y(oe);var te=C(de),ae=j(te).concat(Se(te));return U(ae,function(Ne){d&&!K.call(te,Ne)||z(oe,Ne,te[Ne])}),oe},I=function(oe,de){return de===void 0?O(oe):v(O(oe),de)},K=function(oe){var de=k(oe,!0),te=ve.call(this,de);return!(this===Ae&&p(xe,de)&&!p(he,de))&&(!(te||!p(this,de)||!p(xe,de)||p(this,se)&&this[se][de])||te)},ee=function(oe,de){var te=C(oe),ae=k(de,!0);if(te!==Ae||!p(xe,ae)||p(he,ae)){var Ne=Z(te,ae);return!Ne||!p(xe,ae)||p(te,se)&&te[se][ae]||(Ne.enumerable=!0),Ne}},me=function(oe){var de=ue(C(oe)),te=[];return U(de,function(ae){p(xe,ae)||p(ge,ae)||te.push(ae)}),te},Se=function(oe){var de=oe===Ae,te=ue(de?he:C(oe)),ae=[];return U(te,function(Ne){!p(xe,Ne)||de&&!p(Ae,Ne)||ae.push(xe[Ne])}),ae};if(m||(E=function(){if(this instanceof E)throw TypeError("Symbol is not a constructor");var oe=arguments.length&&arguments[0]!==void 0?String(arguments[0]):void 0,de=Le(oe),te=function(ae){this===Ae&&te.call(he,ae),p(this,se)&&p(this[se],de)&&(this[se][de]=!1),Re(this,de,$(1,ae))};return d&&De&&Re(Ae,de,{configurable:!0,set:te}),qe(de,oe)},re(E[ye],"toString",function(){return $e(this).tag}),re(E,"withoutSetter",function(oe){return qe(Le(oe),oe)}),q.f=K,R.f=z,G.f=ee,F.f=A.f=me,M.f=Se,pe.f=function(oe){return qe(Be(oe),oe)},d&&(le(E[ye],"description",{configurable:!0,get:function(){return $e(this).description}}),u||re(Ae,"propertyIsEnumerable",K,{unsafe:!0}))),s({global:!0,wrap:!0,forced:!m,sham:!m},{Symbol:E}),U(j(Ee),function(oe){J(oe)}),s({target:ie,stat:!0,forced:!m},{for:function(oe){var de=String(oe);if(p(V,de))return V[de];var te=E(de);return V[de]=te,H[te]=de,te},keyFor:function(oe){if(!tt(oe))throw TypeError(oe+" is not a symbol");if(p(H,oe))return H[oe]},useSetter:function(){De=!0},useSimple:function(){De=!1}}),s({target:"Object",stat:!0,forced:!m,sham:!d},{create:I,defineProperty:z,defineProperties:v,getOwnPropertyDescriptor:ee}),s({target:"Object",stat:!0,forced:!m},{getOwnPropertyNames:me,getOwnPropertySymbols:Se}),s({target:"Object",stat:!0,forced:h(function(){M.f(1)})},{getOwnPropertySymbols:function(oe){return M.f(w(oe))}}),L){var Me=!m||h(function(){var oe=E();return L([oe])!="[null]"||L({a:oe})!="{}"||L(Object(oe))!="{}"});s({target:"JSON",stat:!0,forced:Me},{stringify:function(oe,de,te){for(var ae,Ne=[oe],Ue=1;arguments.length>Ue;)Ne.push(arguments[Ue++]);if(ae=de,(g(de)||oe!==void 0)&&!tt(oe))return b(de)||(de=function(ut,bn){if(typeof ae=="function"&&(bn=ae.call(this,ut,bn)),!tt(bn))return bn}),Ne[1]=de,L.apply(null,Ne)}})}E[ye][je]||B(E[ye],je,E[ye].valueOf),fe(E,ie),ge[se]=!0},a630:function(o,i,r){var s=r("23e7"),a=r("4df4"),l=r("1c7e"),u=!l(function(d){Array.from(d)});s({target:"Array",stat:!0,forced:u},{from:a})},a691:function(o,i){var r=Math.ceil,s=Math.floor;o.exports=function(a){return isNaN(a=+a)?0:(a>0?s:r)(a)}},ae93:function(o,i,r){var s,a,l,u=r("d039"),d=r("e163"),m=r("9112"),f=r("5135"),h=r("b622"),p=r("c430"),b=h("iterator"),g=!1,y=function(){return this};[].keys&&(l=[].keys(),"next"in l?(a=d(d(l)),a!==Object.prototype&&(s=a)):g=!0);var w=s==null||u(function(){var C={};return s[b].call(C)!==C});w&&(s={}),p&&!w||f(s,b)||m(s,b,y),o.exports={IteratorPrototype:s,BUGGY_SAFARI_ITERATORS:g}},b041:function(o,i,r){var s=r("00ee"),a=r("f5df");o.exports=s?{}.toString:function(){return"[object "+a(this)+"]"}},b0c0:function(o,i,r){var s=r("83ab"),a=r("9bf2").f,l=Function.prototype,u=l.toString,d=/^\s*function ([^ (]*)/,m="name";s&&!(m in l)&&a(l,m,{configurable:!0,get:function(){try{return u.call(this).match(d)[1]}catch{return""}}})},b622:function(o,i,r){var s=r("da84"),a=r("5692"),l=r("5135"),u=r("90e3"),d=r("4930"),m=r("fdbf"),f=a("wks"),h=s.Symbol,p=m?h:h&&h.withoutSetter||u;o.exports=function(b){return l(f,b)&&(d||typeof f[b]=="string")||(d&&l(h,b)?f[b]=h[b]:f[b]=p("Symbol."+b)),f[b]}},b727:function(o,i,r){var s=r("0366"),a=r("44ad"),l=r("7b0b"),u=r("50c4"),d=r("65f0"),m=[].push,f=function(h){var p=h==1,b=h==2,g=h==3,y=h==4,w=h==6,C=h==7,k=h==5||w;return function($,O,j,F){for(var A,M,G=l($),R=a(G),q=s(O,j,3),B=u(R.length),re=0,X=F||d,ce=p?X($,B):b||C?X($,0):void 0;B>re;re++)if((k||re in R)&&(A=R[re],M=q(A,re,G),h))if(p)ce[re]=M;else if(M)switch(h){case 3:return!0;case 5:return A;case 6:return re;case 2:m.call(ce,A)}else switch(h){case 4:return!1;case 7:m.call(ce,A)}return w?-1:g||y?y:ce}};o.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(o,i,r){var s=r("861d");o.exports=function(a,l){if(!s(a))return a;var u,d;if(l&&typeof(u=a.toString)=="function"&&!s(d=u.call(a))||typeof(u=a.valueOf)=="function"&&!s(d=u.call(a))||!l&&typeof(u=a.toString)=="function"&&!s(d=u.call(a)))return d;throw TypeError("Can't convert object to primitive value")}},c430:function(o,i){o.exports=!1},c6b6:function(o,i){var r={}.toString;o.exports=function(s){return r.call(s).slice(8,-1)}},c6cd:function(o,i,r){var s=r("da84"),a=r("ce4e"),l="__core-js_shared__",u=s[l]||a(l,{});o.exports=u},c8ba:function(o,i){var r;r=function(){return this}();try{r=r||new Function("return this")()}catch{typeof window=="object"&&(r=window)}o.exports=r},ca84:function(o,i,r){var s=r("5135"),a=r("fc6a"),l=r("4d64").indexOf,u=r("d012");o.exports=function(d,m){var f,h=a(d),p=0,b=[];for(f in h)!s(u,f)&&s(h,f)&&b.push(f);for(;m.length>p;)s(h,f=m[p++])&&(~l(b,f)||b.push(f));return b}},cc12:function(o,i,r){var s=r("da84"),a=r("861d"),l=s.document,u=a(l)&&a(l.createElement);o.exports=function(d){return u?l.createElement(d):{}}},ce4e:function(o,i,r){var s=r("da84"),a=r("9112");o.exports=function(l,u){try{a(s,l,u)}catch{s[l]=u}return u}},d012:function(o,i){o.exports={}},d039:function(o,i){o.exports=function(r){try{return!!r()}catch{return!0}}},d066:function(o,i,r){var s=r("428f"),a=r("da84"),l=function(u){return typeof u=="function"?u:void 0};o.exports=function(u,d){return arguments.length<2?l(s[u])||l(a[u]):s[u]&&s[u][d]||a[u]&&a[u][d]}},d1e7:function(o,i,r){var s={}.propertyIsEnumerable,a=Object.getOwnPropertyDescriptor,l=a&&!s.call({1:2},1);i.f=l?function(u){var d=a(this,u);return!!d&&d.enumerable}:s},d28b:function(o,i,r){var s=r("746f");s("iterator")},d2bb:function(o,i,r){var s=r("825a"),a=r("3bbe");o.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 s(m),a(f),u?l.call(m,f):m.__proto__=f,m}}():void 0)},d3b7:function(o,i,r){var s=r("00ee"),a=r("6eeb"),l=r("b041");s||a(Object.prototype,"toString",l,{unsafe:!0})},d44e:function(o,i,r){var s=r("9bf2").f,a=r("5135"),l=r("b622"),u=l("toStringTag");o.exports=function(d,m,f){d&&!a(d=f?d:d.prototype,u)&&s(d,u,{configurable:!0,value:m})}},da84:function(o,i,r){(function(s){var a=function(l){return l&&l.Math==Math&&l};o.exports=a(typeof globalThis=="object"&&globalThis)||a(typeof window=="object"&&window)||a(typeof self=="object"&&self)||a(typeof s=="object"&&s)||function(){return this}()||Function("return this")()}).call(this,r("c8ba"))},ddb0:function(o,i,r){var s=r("da84"),a=r("fdbc"),l=r("e260"),u=r("9112"),d=r("b622"),m=d("iterator"),f=d("toStringTag"),h=l.values;for(var p in a){var b=s[p],g=b&&b.prototype;if(g){if(g[m]!==h)try{u(g,m,h)}catch{g[m]=h}if(g[f]||u(g,f,p),a[p]){for(var y in l)if(g[y]!==l[y])try{u(g,y,l[y])}catch{g[y]=l[y]}}}}},df75:function(o,i,r){var s=r("ca84"),a=r("7839");o.exports=Object.keys||function(l){return s(l,a)}},e01a:function(o,i,r){var s=r("23e7"),a=r("83ab"),l=r("da84"),u=r("5135"),d=r("861d"),m=r("9bf2").f,f=r("e893"),h=l.Symbol;if(a&&typeof h=="function"&&(!("description"in h.prototype)||h().description!==void 0)){var p={},b=function(){var k=arguments.length<1||arguments[0]===void 0?void 0:String(arguments[0]),$=this instanceof b?new h(k):k===void 0?h():h(k);return k===""&&(p[$]=!0),$};f(b,h);var g=b.prototype=h.prototype;g.constructor=b;var y=g.toString,w=String(h("test"))=="Symbol(test)",C=/^Symbol\((.*)\)[^)]+$/;m(g,"description",{configurable:!0,get:function(){var k=d(this)?this.valueOf():this,$=y.call(k);if(u(p,k))return"";var O=w?$.slice(7,-1):$.replace(C,"$1");return O===""?void 0:O}}),s({global:!0,forced:!0},{Symbol:b})}},e163:function(o,i,r){var s=r("5135"),a=r("7b0b"),l=r("f772"),u=r("e177"),d=l("IE_PROTO"),m=Object.prototype;o.exports=u?Object.getPrototypeOf:function(f){return f=a(f),s(f,d)?f[d]:typeof f.constructor=="function"&&f instanceof f.constructor?f.constructor.prototype:f instanceof Object?m:null}},e177:function(o,i,r){var s=r("d039");o.exports=!s(function(){function a(){}return a.prototype.constructor=null,Object.getPrototypeOf(new a)!==a.prototype})},e260:function(o,i,r){var s=r("fc6a"),a=r("44d2"),l=r("3f8c"),u=r("69f3"),d=r("7dd0"),m="Array Iterator",f=u.set,h=u.getterFor(m);o.exports=d(Array,"Array",function(p,b){f(this,{type:m,target:s(p),index:0,kind:b})},function(){var p=h(this),b=p.target,g=p.kind,y=p.index++;return!b||y>=b.length?(p.target=void 0,{value:void 0,done:!0}):g=="keys"?{value:y,done:!1}:g=="values"?{value:b[y],done:!1}:{value:[y,b[y]],done:!1}},"values"),l.Arguments=l.Array,a("keys"),a("values"),a("entries")},e538:function(o,i,r){var s=r("b622");i.f=s},e893:function(o,i,r){var s=r("5135"),a=r("56ef"),l=r("06cf"),u=r("9bf2");o.exports=function(d,m){for(var f=a(m),h=u.f,p=l.f,b=0;b<f.length;b++){var g=f[b];s(d,g)||h(d,g,p(m,g))}}},e8b5:function(o,i,r){var s=r("c6b6");o.exports=Array.isArray||function(a){return s(a)=="Array"}},e95a:function(o,i,r){var s=r("b622"),a=r("3f8c"),l=s("iterator"),u=Array.prototype;o.exports=function(d){return d!==void 0&&(a.Array===d||u[l]===d)}},f5df:function(o,i,r){var s=r("00ee"),a=r("c6b6"),l=r("b622"),u=l("toStringTag"),d=a(function(){return arguments}())=="Arguments",m=function(f,h){try{return f[h]}catch{}};o.exports=s?a:function(f){var h,p,b;return f===void 0?"Undefined":f===null?"Null":typeof(p=m(h=Object(f),u))=="string"?p:d?a(h):(b=a(h))=="Object"&&typeof h.callee=="function"?"Arguments":b}},f772:function(o,i,r){var s=r("5692"),a=r("90e3"),l=s("keys");o.exports=function(u){return l[u]||(l[u]=a(u))}},fae3:function(o,i,r){if(r.r(i),r.d(i,"VueEternalLoading",function(){return G}),typeof window!="undefined"){var s=window.document.currentScript,a=r("8875");s=a(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:a});var l=s&&s.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);l&&(r.p=l[1])}var u=r("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),h=Object(u.createVNode)("div",{class:"no-results"},"No results.",-1),p=Object(u.createVNode)("div",{class:"error"},"Error.",-1);function b(R,q,B,re,X,ce){return Object(u.openBlock)(),Object(u.createBlock)("div",d,[R.state==="loading"?Object(u.renderSlot)(R.$slots,"loading",Object(u.mergeProps)({key:0},{isFirstLoad:R.isFirstLoad}),function(){return[m]}):R.state==="no-more"?Object(u.renderSlot)(R.$slots,"no-more",Object(u.mergeProps)({key:1},{retry:R.retry}),function(){return[f]}):R.state==="no-results"?Object(u.renderSlot)(R.$slots,"no-results",Object(u.mergeProps)({key:2},{retry:R.retry}),function(){return[h]}):R.state==="error"?Object(u.renderSlot)(R.$slots,"error",Object(u.mergeProps)({key:3},{retry:R.retry}),function(){return[p]}):Object(u.createCommentVNode)("",!0)],512)}function g(R){if(Array.isArray(R))return R}r("a4d3"),r("e01a"),r("d3b7"),r("d28b"),r("e260"),r("3ca3"),r("ddb0");function y(R,q){var B=R==null?null:typeof Symbol!="undefined"&&R[Symbol.iterator]||R["@@iterator"];if(B!=null){var re,X,ce=[],ge=!0,Le=!1;try{for(B=B.call(R);!(ge=(re=B.next()).done)&&(ce.push(re.value),!(q&&ce.length===q));ge=!0);}catch(Be){Le=!0,X=Be}finally{try{ge||B.return==null||B.return()}finally{if(Le)throw X}}return ce}}r("fb6a"),r("b0c0"),r("a630");function w(R,q){(q==null||q>R.length)&&(q=R.length);for(var B=0,re=new Array(q);B<q;B++)re[B]=R[B];return re}function C(R,q){if(R){if(typeof R=="string")return w(R,q);var B=Object.prototype.toString.call(R).slice(8,-1);return B==="Object"&&R.constructor&&(B=R.constructor.name),B==="Map"||B==="Set"?Array.from(R):B==="Arguments"||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(B)?w(R,q):void 0}}function k(){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 $(R,q){return g(R)||y(R,q)||C(R,q)||k()}function O(R){return R.scrollHeight}function j(R){return R.scrollWidth}function F(R,q){R.scrollTop=R.scrollHeight-q+R.scrollTop}function A(R,q){R.scrollLeft=R.scrollWidth-q+R.scrollLeft}var M=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(R,q){var B,re=Object(u.ref)(),X=Object(u.ref)("loading"),ce=Object(u.ref)(R.isInitial),ge=0;function Le(){Object(u.nextTick)(function(){var Ie;if(R.position==="top")F((Ie=R.container)!==null&&Ie!==void 0?Ie:document.documentElement,ge);else if(R.position==="left"){var $e;A(($e=R.container)!==null&&$e!==void 0?$e:document.documentElement,ge)}})}function Be(Ie,$e){return Ie===0?ce.value?(J(),"no-results"):(pe(),"no-more"):Ie!==void 0&&$e!==void 0&&Ie<$e?(pe(),"no-more"):(ce.value=!1,Le(),ye(),"loading")}function pe(){ce.value=!1,se("no-more"),Le()}function J(){ce.value=!1,se("no-results"),Le()}function fe(){ce.value=!1,se("error"),Le()}function we(){ce.value=!0,se("loading"),ye()}function U(){se("loading"),ye()}function se(Ie){X.value=Ie}function ie(){re.value&&B.unobserve(re.value)}function ye(){re.value&&B.observe(re.value)}function je(){return new IntersectionObserver(function(Ie){var $e=$(Ie,1),Ae=$e[0];if(Ae.isIntersecting){var E;if(R.position==="top")ge=O((E=R.container)!==null&&E!==void 0?E:document.documentElement);else if(R.position==="left"){var L;ge=j((L=R.container)!==null&&L!==void 0?L:document.documentElement)}ie(),R.load({loaded:Be,noMore:pe,noResults:J,error:fe},{isFirstLoad:ce.value})}},{root:R.container,threshold:0,rootMargin:R.margin})}return Object(u.watchEffect)(function(){B&&ie(),B=je(),ye()},{flush:"post"}),Object(u.watch)(function(){return R.isInitial},function(Ie){Ie&&we()}),Object(u.watch)(ce,function(Ie){Ie||q.emit("update:isInitial",!1)}),{rootRef:re,state:X,isFirstLoad:ce,retry:U}}});M.render=b;var G=M},fb6a:function(o,i,r){var s=r("23e7"),a=r("861d"),l=r("e8b5"),u=r("23cb"),d=r("50c4"),m=r("fc6a"),f=r("8418"),h=r("b622"),p=r("1dde"),b=p("slice"),g=h("species"),y=[].slice,w=Math.max;s({target:"Array",proto:!0,forced:!b},{slice:function(C,k){var $,O,j,F=m(this),A=d(F.length),M=u(C,A),G=u(k===void 0?A:k,A);if(l(F)&&($=F.constructor,typeof $!="function"||$!==Array&&!l($.prototype)?a($)&&($=$[g],$===null&&($=void 0)):$=void 0,$===Array||$===void 0))return y.call(F,M,G);for(O=new($===void 0?Array:$)(w(G-M,0)),j=0;M<G;M++,j++)M in F&&f(O,j,F[M]);return O.length=j,O}})},fc6a:function(o,i,r){var s=r("44ad"),a=r("1d80");o.exports=function(l){return s(a(l))}},fdbc:function(o,i){o.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(o,i,r){var s=r("4930");o.exports=s&&!Symbol.sham&&typeof Symbol.iterator=="symbol"}})})})(kc);const bd=50,Za={load:function(e){const t=new co;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getArtist(e.params.artist_id),t.getArtistAlbums(e.params.artist_id,{limit:bd,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])}},CV={name:"SpotifyPageArtist",components:{ContentWithHeading:ht,SpotifyListItemAlbum:wc,SpotifyModalDialogAlbum:Ks,SpotifyModalDialogArtist:X_,VueEternalLoading:kc.exports.VueEternalLoading,CoverArtwork:Io},beforeRouteEnter(e,t,n){Za.load(e).then(o=>{n(i=>Za.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Za.load(e).then(i=>{Za.set(o,i),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 co;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getArtistAlbums(this.artist.id,{limit:bd,offset:this.offset,include_groups:"album,single"}).then(n=>{this.append_albums(n),e(n.items.length,bd)})},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,Y.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:""}}},zV=["textContent"],SV={class:"buttons is-centered"},$V={class:"icon"},EV={class:"icon"},AV=["textContent"],OV=["textContent"],TV={class:"image is-64x64 fd-has-shadow fd-has-action"},PV=["onClick"],DV={class:"icon has-text-dark"},FV=_t(" . ");function IV(e,t,n,o,i,r){const s=P("mdicon"),a=P("cover-artwork"),l=P("spotify-list-item-album"),u=P("VueEternalLoading"),d=P("spotify-modal-dialog-album"),m=P("spotify-modal-dialog-artist"),f=P("content-with-heading");return S(),Ce(f,null,{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(i.artist.name)},null,8,zV)]),"heading-right":T(()=>[c("div",SV,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=h=>i.show_artist_details_modal=!0)},[c("span",$V,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...h)=>r.play&&r.play(...h))},[c("span",EV,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.spotify.artist.shuffle"))},null,8,AV)])])]),content:T(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:_(e.$t("page.spotify.artist.album-count",{count:i.total}))},null,8,OV),(S(!0),D(Ge,null,xt(i.albums,h=>(S(),Ce(l,{key:h.id,album:h,onClick:p=>r.open_album(h)},Us({actions:T(()=>[c("a",{onClick:bt(p=>r.open_dialog(h),["prevent","stop"])},[c("span",DV,[x(s,{name:"dots-vertical",size:"16"})])],8,PV)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[c("p",TV,[x(a,{artwork_url:r.artwork_url(h),artist:h.artist,album:h.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),i.offset<i.total?(S(),Ce(u,{key:0,load:r.load_next},{"no-more":T(()=>[FV]),_:1},8,["load"])):Q("",!0),x(d,{show:i.show_details_modal,album:i.selected_album,onClose:t[2]||(t[2]=h=>i.show_details_modal=!1)},null,8,["show","album"]),x(m,{show:i.show_artist_details_modal,artist:i.artist,onClose:t[3]||(t[3]=h=>i.show_artist_details_modal=!1)},null,8,["show","artist"])]),_:1})}var MV=_e(CV,[["render",IV]]);const LV={name:"SpotifyListItemTrack",props:["track","position","album","context_uri"],methods:{play:function(){Y.player_play_uri(this.context_uri,!1,this.position)}}},RV={class:"media"},NV=["textContent"],jV=["textContent"],VV={key:0,class:"subtitle is-7"},BV=_t(" ("),UV=["textContent"],HV=["textContent"],qV=_t(") "),GV={class:"media-right"};function WV(e,t,n,o,i,r){return S(),D("div",RV,[c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...s)=>r.play&&r.play(...s))},[c("h1",{class:Ye(["title is-6",{"has-text-grey-light":n.track.is_playable===!1}]),textContent:_(n.track.name)},null,10,NV),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:_(n.track.artists[0].name)},null,8,jV)],2),n.track.is_playable===!1?(S(),D("h2",VV,[BV,c("span",{textContent:_(e.$t("list.spotify.not-playable-track"))},null,8,UV),n.track.restrictions&&n.track.restrictions.reason?(S(),D("span",{key:0,textContent:_(e.$t("list.spotify.restriction-reason",{reason:n.track.restrictions.reason}))},null,8,HV)):Q("",!0),qV])):Q("",!0)]),c("div",GV,[Ct(e.$slots,"actions")])])}var Nf=_e(LV,[["render",WV]]);const KV={name:"SpotifyModalDialogTrack",props:["show","track","album"],emits:["close"],methods:{play:function(){this.$emit("close"),Y.player_play_uri(this.track.uri,!1)},queue_add:function(){this.$emit("close"),Y.queue_add(this.track.uri)},queue_add_next:function(){this.$emit("close"),Y.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})}}},YV={key:0,class:"modal is-active"},ZV={class:"modal-content fd-modal-card"},JV={class:"card"},XV={class:"card-content"},QV=["textContent"],eB=["textContent"],tB={class:"content is-small"},nB=["textContent"],oB=["textContent"],iB=["textContent"],rB=["textContent"],sB=["textContent"],aB=["textContent"],lB=["textContent"],cB=["textContent"],uB=["textContent"],dB=["textContent"],fB=["textContent"],mB=["textContent"],hB={class:"card-footer"},pB={class:"icon"},bB=["textContent"],gB={class:"icon"},vB=["textContent"],_B={class:"icon"},yB=["textContent"];function wB(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",YV,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",ZV,[c("div",JV,[c("div",XV,[c("p",{class:"title is-4",textContent:_(n.track.name)},null,8,QV),c("p",{class:"subtitle",textContent:_(n.track.artists[0].name)},null,8,eB),c("div",tB,[c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.track.album"))},null,8,nB),c("a",{class:"title is-6 has-text-link",onClick:t[1]||(t[1]=(...a)=>r.open_album&&r.open_album(...a)),textContent:_(n.album.name)},null,8,oB)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.track.album-artist"))},null,8,iB),c("a",{class:"title is-6 has-text-link",onClick:t[2]||(t[2]=(...a)=>r.open_artist&&r.open_artist(...a)),textContent:_(n.album.artists[0].name)},null,8,rB)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.track.release-date"))},null,8,sB),c("span",{class:"title is-6",textContent:_(e.$filters.date(n.album.release_date))},null,8,aB)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.track.position"))},null,8,lB),c("span",{class:"title is-6",textContent:_([n.track.disc_number,n.track.track_number].join(" / "))},null,8,cB)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.track.duration"))},null,8,uB),c("span",{class:"title is-6",textContent:_(e.$filters.durationInHours(n.track.duration_ms))},null,8,dB)]),c("p",null,[c("span",{class:"heading",textContent:_(e.$t("dialog.spotify.track.path"))},null,8,fB),c("span",{class:"title is-6",textContent:_(n.track.uri)},null,8,mB)])])]),c("footer",hB,[c("a",{class:"card-footer-item has-text-dark",onClick:t[3]||(t[3]=(...a)=>r.queue_add&&r.queue_add(...a))},[c("span",pB,[x(s,{name:"playlist-plus",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.track.add"))},null,8,bB)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[4]||(t[4]=(...a)=>r.queue_add_next&&r.queue_add_next(...a))},[c("span",gB,[x(s,{name:"playlist-play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.track.add-next"))},null,8,vB)]),c("a",{class:"card-footer-item has-text-dark",onClick:t[5]||(t[5]=(...a)=>r.play&&r.play(...a))},[c("span",_B,[x(s,{name:"play",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.spotify.track.play"))},null,8,yB)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[6]||(t[6]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var jf=_e(KV,[["render",wB]]);const Ja={load:function(e){const t=new co;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}},xB={name:"PageAlbum",components:{ContentWithHero:Ff,SpotifyListItemTrack:Nf,SpotifyModalDialogTrack:jf,SpotifyModalDialogAlbum:Ks,CoverArtwork:Io},beforeRouteEnter(e,t,n){Ja.load(e).then(o=>{n(i=>Ja.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Ja.load(e).then(i=>{Ja.set(o,i),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,Y.player_play_uri(this.album.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},kB=["textContent"],CB={class:"subtitle is-6 has-text-link has-text-weight-normal"},zB=["textContent"],SB={class:"buttons fd-is-centered-mobile fd-has-margin-top"},$B={class:"icon"},EB=["textContent"],AB={class:"icon"},OB={class:"image is-square fd-has-shadow fd-has-action"},TB=["textContent"],PB=["onClick"],DB={class:"icon has-text-dark"};function FB(e,t,n,o,i,r){const s=P("mdicon"),a=P("cover-artwork"),l=P("spotify-list-item-track"),u=P("spotify-modal-dialog-track"),d=P("spotify-modal-dialog-album"),m=P("content-with-hero");return S(),Ce(m,null,{"heading-left":T(()=>[c("h1",{class:"title is-5",textContent:_(i.album.name)},null,8,kB),c("h2",CB,[c("a",{class:"has-text-link",onClick:t[0]||(t[0]=(...f)=>r.open_artist&&r.open_artist(...f)),textContent:_(i.album.artists[0].name)},null,8,zB)]),c("div",SB,[c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>r.play&&r.play(...f))},[c("span",$B,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.spotify.album.shuffle"))},null,8,EB)]),c("a",{class:"button is-small is-light is-rounded",onClick:t[2]||(t[2]=f=>i.show_album_details_modal=!0)},[c("span",AB,[x(s,{name:"dots-horizontal",size:"16"})])])])]),"heading-right":T(()=>[c("p",OB,[x(a,{artwork_url:r.artwork_url,artist:i.album.artist,album:i.album.name,onClick:t[3]||(t[3]=f=>i.show_album_details_modal=!0)},null,8,["artwork_url","artist","album"])])]),content:T(()=>[c("p",{class:"heading is-7 has-text-centered-mobile fd-has-margin-top",textContent:_(e.$t("page.spotify.album.track-count",{count:i.album.tracks.total}))},null,8,TB),(S(!0),D(Ge,null,xt(i.album.tracks.items,(f,h)=>(S(),Ce(l,{key:f.id,track:f,position:h,album:i.album,context_uri:i.album.uri},{actions:T(()=>[c("a",{onClick:bt(p=>r.open_track_dialog(f),["prevent","stop"])},[c("span",DB,[x(s,{name:"dots-vertical",size:"16"})])],8,PB)]),_:2},1032,["track","position","album","context_uri"]))),128)),x(u,{show:i.show_track_details_modal,track:i.selected_track,album:i.album,onClose:t[4]||(t[4]=f=>i.show_track_details_modal=!1)},null,8,["show","track","album"]),x(d,{show:i.show_album_details_modal,album:i.album,onClose:t[5]||(t[5]=f=>i.show_album_details_modal=!1)},null,8,["show","album"])]),_:1})}var IB=_e(xB,[["render",FB]]);const gd=50,Xa={load:function(e){const t=new co;return t.setAccessToken(at.state.spotify.webapi_token),Promise.all([t.getPlaylist(e.params.playlist_id),t.getPlaylistTracks(e.params.playlist_id,{limit:gd,offset:0})])},set:function(e,t){e.playlist=t[0],e.tracks=[],e.total=0,e.offset=0,e.append_tracks(t[1])}},MB={name:"SpotifyPagePlaylist",components:{ContentWithHeading:ht,SpotifyListItemTrack:Nf,SpotifyModalDialogTrack:jf,SpotifyModalDialogPlaylist:xc,VueEternalLoading:kc.exports.VueEternalLoading},beforeRouteEnter(e,t,n){Xa.load(e).then(o=>{n(i=>Xa.set(i,o))})},beforeRouteUpdate(e,t,n){const o=this;Xa.load(e).then(i=>{Xa.set(o,i),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 co;t.setAccessToken(this.$store.state.spotify.webapi_token),t.getPlaylistTracks(this.playlist.id,{limit:gd,offset:this.offset}).then(n=>{this.append_tracks(n),e(n.items.length,gd)})},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,Y.player_play_uri(this.playlist.uri,!0)},open_track_dialog:function(e){this.selected_track=e,this.show_track_details_modal=!0}}},LB=["textContent"],RB={class:"buttons is-centered"},NB={class:"icon"},jB={class:"icon"},VB=["textContent"],BB=["textContent"],UB=["onClick"],HB={class:"icon has-text-dark"},qB=_t(" . ");function GB(e,t,n,o,i,r){const s=P("mdicon"),a=P("spotify-list-item-track"),l=P("VueEternalLoading"),u=P("spotify-modal-dialog-track"),d=P("spotify-modal-dialog-playlist"),m=P("content-with-heading");return S(),Ce(m,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(i.playlist.name)},null,8,LB)]),"heading-right":T(()=>[c("div",RB,[c("a",{class:"button is-small is-light is-rounded",onClick:t[0]||(t[0]=f=>i.show_playlist_details_modal=!0)},[c("span",NB,[x(s,{name:"dots-horizontal",size:"16"})])]),c("a",{class:"button is-small is-dark is-rounded",onClick:t[1]||(t[1]=(...f)=>r.play&&r.play(...f))},[c("span",jB,[x(s,{name:"shuffle",size:"16"})]),c("span",{textContent:_(e.$t("page.spotify.playlist.shuffle"))},null,8,VB)])])]),content:T(()=>[c("p",{class:"heading has-text-centered-mobile",textContent:_(e.$t("page.spotify.playlist.count",{count:i.playlist.tracks.total}))},null,8,BB),(S(!0),D(Ge,null,xt(i.tracks,(f,h)=>(S(),Ce(a,{key:f.track.id,track:f.track,album:f.track.album,position:h,context_uri:i.playlist.uri},{actions:T(()=>[c("a",{onClick:bt(p=>r.open_track_dialog(f.track),["prevent","stop"])},[c("span",HB,[x(s,{name:"dots-vertical",size:"16"})])],8,UB)]),_:2},1032,["track","album","position","context_uri"]))),128)),i.offset<i.total?(S(),Ce(l,{key:0,load:r.load_next},{"no-more":T(()=>[qB]),_:1},8,["load"])):Q("",!0),x(u,{show:i.show_track_details_modal,track:i.selected_track,album:i.selected_track.album,onClose:t[2]||(t[2]=f=>i.show_track_details_modal=!1)},null,8,["show","track","album"]),x(d,{show:i.show_playlist_details_modal,playlist:i.playlist,onClose:t[3]||(t[3]=f=>i.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),_:1})}var WB=_e(MB,[["render",GB]]);const KB={name:"SpotifyListItemArtist",props:["artist"],methods:{open_artist:function(){this.$router.push({path:"/music/spotify/artists/"+this.artist.id})}}},YB={class:"media"},ZB=["textContent"],JB={class:"media-right"};function XB(e,t,n,o,i,r){return S(),D("div",YB,[c("div",{class:"media-content fd-has-action is-clipped",onClick:t[0]||(t[0]=(...s)=>r.open_artist&&r.open_artist(...s))},[c("h1",{class:"title is-6",textContent:_(n.artist.name)},null,8,ZB)]),c("div",JB,[Ct(e.$slots,"actions")])])}var QB=_e(KB,[["render",XB]]);const qr=50,eU={name:"SpotifyPageSearch",components:{ContentWithHeading:ht,ContentText:Z_,TabsSearch:J_,SpotifyListItemTrack:Nf,SpotifyListItemArtist:QB,SpotifyListItemAlbum:wc,SpotifyListItemPlaylist:Rf,SpotifyModalDialogTrack:jf,SpotifyModalDialogArtist:X_,SpotifyModalDialogAlbum:Ks,SpotifyModalDialogPlaylist:xc,VueEternalLoading:kc.exports.VueEternalLoading,CoverArtwork:Io},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:qr,this.search_param.offset=this.query.offset?this.query.offset:0,this.$store.commit(df,this.query.query),this.search_all()},spotify_search:function(){return Y.spotify().then(({data:e})=>{this.search_param.market=e.webapi_country;const t=new co;t.setAccessToken(e.webapi_token);const n=this.query.type.split(",").filter(o=>this.validSearchTypes.includes(o));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,qr)})},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,qr)})},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,qr)})},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,qr)})},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:""}}},tU={class:"section fd-remove-padding-bottom"},nU={class:"container"},oU={class:"columns is-centered"},iU={class:"column is-four-fifths"},rU={class:"field"},sU={class:"control is-expanded has-icons-left"},aU={class:"icon is-left"},lU={class:"tags",style:{"margin-top":"16px"}},cU=["onClick","textContent"],uU=["textContent"],dU=["onClick"],fU={class:"icon has-text-dark"},mU=_t(" . "),hU={key:0,class:"level"},pU={class:"level-item"},bU=["textContent"],gU=["textContent"],vU=["textContent"],_U=["onClick"],yU={class:"icon has-text-dark"},wU=_t(" . "),xU={key:0,class:"level"},kU={class:"level-item"},CU=["textContent"],zU=["textContent"],SU=["textContent"],$U={class:"image is-64x64 fd-has-shadow fd-has-action"},EU=["onClick"],AU={class:"icon has-text-dark"},OU=_t(" . "),TU={key:0,class:"level"},PU={class:"level-item"},DU=["textContent"],FU=["textContent"],IU=["textContent"],MU=["onClick"],LU={class:"icon has-text-dark"},RU=_t(" . "),NU={key:0,class:"level"},jU={class:"level-item"},VU=["textContent"],BU=["textContent"];function UU(e,t,n,o,i,r){const s=P("mdicon"),a=P("tabs-search"),l=P("spotify-list-item-track"),u=P("VueEternalLoading"),d=P("spotify-modal-dialog-track"),m=P("content-with-heading"),f=P("content-text"),h=P("spotify-list-item-artist"),p=P("spotify-modal-dialog-artist"),b=P("cover-artwork"),g=P("spotify-list-item-album"),y=P("spotify-modal-dialog-album"),w=P("spotify-list-item-playlist"),C=P("spotify-modal-dialog-playlist");return S(),D("div",null,[c("section",tU,[c("div",nU,[c("div",oU,[c("div",iU,[c("form",{onSubmit:t[1]||(t[1]=bt((...k)=>r.new_search&&r.new_search(...k),["prevent"]))},[c("div",rU,[c("p",sU,[zt(c("input",{ref:"search_field","onUpdate:modelValue":t[0]||(t[0]=k=>i.search_query=k),class:"input is-rounded is-shadowless",type:"text",placeholder:"Search",autocomplete:"off"},null,512),[[zn,i.search_query]]),c("span",aU,[x(s,{name:"magnify",size:"16"})])])])],32),c("div",lU,[(S(!0),D(Ge,null,xt(r.recent_searches,k=>(S(),D("a",{key:k,class:"tag",onClick:$=>r.open_recent_search(k),textContent:_(k)},null,8,cU))),128))])])])])]),x(a,{query:i.search_query},null,8,["query"]),r.show_tracks&&i.tracks.total?(S(),Ce(m,{key:0},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.spotify.search.tracks"))},null,8,uU)]),content:T(()=>[(S(!0),D(Ge,null,xt(i.tracks.items,k=>(S(),Ce(l,{key:k.id,track:k,album:k.album,position:0,context_uri:k.uri},{actions:T(()=>[c("a",{onClick:bt($=>r.open_track_dialog(k),["prevent","stop"])},[c("span",fU,[x(s,{name:"dots-vertical",size:"16"})])],8,dU)]),_:2},1032,["track","album","context_uri"]))),128)),i.query.type==="track"?(S(),Ce(u,{key:0,load:r.search_tracks_next},{"no-more":T(()=>[mU]),_:1},8,["load"])):Q("",!0),x(d,{show:i.show_track_details_modal,track:i.selected_track,album:i.selected_track.album,onClose:t[2]||(t[2]=k=>i.show_track_details_modal=!1)},null,8,["show","track","album"])]),footer:T(()=>[r.show_all_tracks_button?(S(),D("nav",hU,[c("p",pU,[c("a",{class:"button is-light is-small is-rounded",onClick:t[3]||(t[3]=(...k)=>r.open_search_tracks&&r.open_search_tracks(...k)),textContent:_(e.$t("page.spotify.search.show-all-tracks",{count:i.tracks.total.toLocaleString(e.$i18n.locale)}))},null,8,bU)])])):Q("",!0)]),_:1})):Q("",!0),r.show_tracks&&!i.tracks.total?(S(),Ce(f,{key:1,class:"mt-6"},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.spotify.search.no-tracks"))},null,8,gU)])]),_:1})):Q("",!0),r.show_artists&&i.artists.total?(S(),Ce(m,{key:2},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.spotify.search.artists"))},null,8,vU)]),content:T(()=>[(S(!0),D(Ge,null,xt(i.artists.items,k=>(S(),Ce(h,{key:k.id,artist:k},{actions:T(()=>[c("a",{onClick:bt($=>r.open_artist_dialog(k),["prevent","stop"])},[c("span",yU,[x(s,{name:"dots-vertical",size:"16"})])],8,_U)]),_:2},1032,["artist"]))),128)),i.query.type==="artist"?(S(),Ce(u,{key:0,load:r.search_artists_next},{"no-more":T(()=>[wU]),_:1},8,["load"])):Q("",!0),x(p,{show:i.show_artist_details_modal,artist:i.selected_artist,onClose:t[4]||(t[4]=k=>i.show_artist_details_modal=!1)},null,8,["show","artist"])]),footer:T(()=>[r.show_all_artists_button?(S(),D("nav",xU,[c("p",kU,[c("a",{class:"button is-light is-small is-rounded",onClick:t[5]||(t[5]=(...k)=>r.open_search_artists&&r.open_search_artists(...k)),textContent:_(e.$t("page.spotify.search.show-all-artists",{count:i.artists.total.toLocaleString(e.$i18n.locale)}))},null,8,CU)])])):Q("",!0)]),_:1})):Q("",!0),r.show_artists&&!i.artists.total?(S(),Ce(f,{key:3},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.spotify.search.no-artists"))},null,8,zU)])]),_:1})):Q("",!0),r.show_albums&&i.albums.total?(S(),Ce(m,{key:4},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.spotify.search.albums"))},null,8,SU)]),content:T(()=>[(S(!0),D(Ge,null,xt(i.albums.items,k=>(S(),Ce(g,{key:k.id,album:k,onClick:$=>r.open_album(k)},Us({actions:T(()=>[c("a",{onClick:bt($=>r.open_album_dialog(k),["prevent","stop"])},[c("span",AU,[x(s,{name:"dots-vertical",size:"16"})])],8,EU)]),_:2},[r.is_visible_artwork?{name:"artwork",fn:T(()=>[c("p",$U,[x(b,{artwork_url:r.artwork_url(k),artist:k.artist,album:k.name,maxwidth:64,maxheight:64},null,8,["artwork_url","artist","album"])])])}:void 0]),1032,["album","onClick"]))),128)),i.query.type==="album"?(S(),Ce(u,{key:0,load:r.search_albums_next},{"no-more":T(()=>[OU]),_:1},8,["load"])):Q("",!0),x(y,{show:i.show_album_details_modal,album:i.selected_album,onClose:t[6]||(t[6]=k=>i.show_album_details_modal=!1)},null,8,["show","album"])]),footer:T(()=>[r.show_all_albums_button?(S(),D("nav",TU,[c("p",PU,[c("a",{class:"button is-light is-small is-rounded",onClick:t[7]||(t[7]=(...k)=>r.open_search_albums&&r.open_search_albums(...k)),textContent:_(e.$t("page.spotify.search.show-all-albums",{count:i.albums.total.toLocaleString(e.$i18n.locale)}))},null,8,DU)])])):Q("",!0)]),_:1})):Q("",!0),r.show_albums&&!i.albums.total?(S(),Ce(f,{key:5},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.spotify.search.no-albums"))},null,8,FU)])]),_:1})):Q("",!0),r.show_playlists&&i.playlists.total?(S(),Ce(m,{key:6},{"heading-left":T(()=>[c("p",{class:"title is-4",textContent:_(e.$t("page.spotify.search.playlists"))},null,8,IU)]),content:T(()=>[(S(!0),D(Ge,null,xt(i.playlists.items,k=>(S(),Ce(w,{key:k.id,playlist:k},{actions:T(()=>[c("a",{onClick:bt($=>r.open_playlist_dialog(k),["prevent","stop"])},[c("span",LU,[x(s,{name:"dots-vertical",size:"16"})])],8,MU)]),_:2},1032,["playlist"]))),128)),i.query.type==="playlist"?(S(),Ce(u,{key:0,load:r.search_playlists_next},{"no-more":T(()=>[RU]),_:1},8,["load"])):Q("",!0),x(C,{show:i.show_playlist_details_modal,playlist:i.selected_playlist,onClose:t[8]||(t[8]=k=>i.show_playlist_details_modal=!1)},null,8,["show","playlist"])]),footer:T(()=>[r.show_all_playlists_button?(S(),D("nav",NU,[c("p",jU,[c("a",{class:"button is-light is-small is-rounded",onClick:t[9]||(t[9]=(...k)=>r.open_search_playlists&&r.open_search_playlists(...k)),textContent:_(e.$t("page.spotify.search.show-all-playlists",{count:i.playlists.total.toLocaleString(e.$i18n.locale)}))},null,8,VU)])])):Q("",!0)]),_:1})):Q("",!0),r.show_playlists&&!i.playlists.total?(S(),Ce(f,{key:7},{content:T(()=>[c("p",null,[c("i",{textContent:_(e.$t("page.spotify.search.no-playlists"))},null,8,BU)])]),_:1})):Q("",!0)])}var HU=_e(eU,[["render",UU]]);const qU={name:"TabsSettings"},GU={class:"section fd-tabs-section"},WU={class:"container"},KU={class:"columns is-centered"},YU={class:"column is-four-fifths"},ZU={class:"tabs is-centered is-small"},JU=["onClick","onKeypress"],XU=["textContent"],QU=["onClick","onKeypress"],eH=["textContent"],tH=["onClick","onKeypress"],nH=["textContent"],oH=["onClick","onKeypress"],iH=["textContent"];function rH(e,t,n,o,i,r){const s=P("router-link");return S(),D("section",GU,[c("div",WU,[c("div",KU,[c("div",YU,[c("div",ZU,[c("ul",null,[x(s,{to:"/settings/webinterface",custom:""},{default:T(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Dn(a,["enter"])},[c("span",{textContent:_(e.$t("page.settings.tabs.general"))},null,8,XU)],40,JU)],2)]),_:1}),x(s,{to:"/settings/remotes-outputs",custom:""},{default:T(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Dn(a,["enter"])},[c("span",{textContent:_(e.$t("page.settings.tabs.remotes-and-outputs"))},null,8,eH)],40,QU)],2)]),_:1}),x(s,{to:"/settings/artwork",custom:""},{default:T(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Dn(a,["enter"])},[c("span",{textContent:_(e.$t("page.settings.tabs.artwork"))},null,8,nH)],40,tH)],2)]),_:1}),x(s,{to:"/settings/online-services",custom:""},{default:T(({navigate:a,isActive:l})=>[c("li",{class:Ye({"is-active":l})},[c("a",{onClick:a,onKeypress:Dn(a,["enter"])},[c("span",{textContent:_(e.$t("page.settings.tabs.online-services"))},null,8,iH)],40,oH)],2)]),_:1})])])])])])])}var Cc=_e(qU,[["render",rH]]);const sH={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};Y.settings_update(this.category.name,t).then(()=>{this.$store.commit(uc,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=""}}},aH={class:"field"},lH={class:"switch"},cH=["checked"],uH=["textContent"],dH={key:0,class:"help"};function fH(e,t,n,o,i,r){return S(),D("div",aH,[c("label",lH,[c("input",{ref:"setting",type:"checkbox",checked:r.value,style:{"margin-right":"5px"},onChange:t[0]||(t[0]=(...s)=>r.set_update_timer&&r.set_update_timer(...s))},null,40,cH),Ct(e.$slots,"label"),c("i",{class:Ye(["is-size-7",{"has-text-info":r.is_success,"has-text-danger":r.is_error}]),textContent:_(r.info)},null,10,uH)]),e.$slots.info?(S(),D("p",dH,[Ct(e.$slots,"info")])):Q("",!0)])}var Q_=_e(sH,[["render",fH]]);const mH={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};Y.settings_update(this.category.name,t).then(()=>{this.$store.commit(uc,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=""}}},hH=["disabled"],pH={class:"field"},bH={class:"label has-text-weight-normal"},gH=["textContent"],vH={class:"control"},_H=["placeholder","value"],yH={key:0,class:"help"};function wH(e,t,n,o,i,r){return S(),D("fieldset",{disabled:n.disabled},[c("div",pH,[c("label",bH,[Ct(e.$slots,"label"),c("i",{class:Ye(["is-size-7",{"has-text-info":r.is_success,"has-text-danger":r.is_error}]),textContent:_(r.info)},null,10,gH)]),c("div",vH,[c("input",{ref:"setting",class:"input",type:"text",placeholder:n.placeholder,value:r.value,onInput:t[0]||(t[0]=(...s)=>r.set_update_timer&&r.set_update_timer(...s))},null,40,_H)]),e.$slots.info?(S(),D("p",yH,[Ct(e.$slots,"info")])):Q("",!0)])],8,hH)}var xH=_e(mH,[["render",wH]]);const kH={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)};Y.settings_update(this.category.name,t).then(()=>{this.$store.commit(uc,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=""}}},CH=["disabled"],zH={class:"field"},SH={class:"label has-text-weight-normal"},$H=["textContent"],EH={class:"control"},AH=["placeholder","value"],OH={key:0,class:"help"};function TH(e,t,n,o,i,r){return S(),D("fieldset",{disabled:n.disabled},[c("div",zH,[c("label",SH,[Ct(e.$slots,"label"),c("i",{class:Ye(["is-size-7",{"has-text-info":r.is_success,"has-text-danger":r.is_error}]),textContent:_(r.info)},null,10,$H)]),c("div",EH,[c("input",{ref:"setting",class:"input",type:"number",min:"0",style:{width:"10em"},placeholder:n.placeholder,value:r.value,onInput:t[0]||(t[0]=(...s)=>r.set_update_timer&&r.set_update_timer(...s))},null,40,AH)]),e.$slots.info?(S(),D("p",OH,[Ct(e.$slots,"info")])):Q("",!0)])],8,CH)}var PH=_e(kH,[["render",TH]]);const DH={name:"SettingsPageWebinterface",components:{ContentWithHeading:ht,TabsSettings:Cc,SettingsCheckbox:Q_,SettingsTextfield:xH,SettingsIntfield:PH,DropdownMenu:yc},computed:{settings_option_show_composer_now_playing(){return this.$store.getters.settings_option_show_composer_now_playing},locale:{get(){let e=this.$i18n.availableLocales,t=e.find(o=>o===this.$i18n.locale),n=this.$i18n.locale.split("-")[0];return t||(t=e.find(o=>o===n)),t||(t=e.forEach(o=>o.split("-")[0]===n)),t},set(e){this.$i18n.locale=e}},locales:{get(){return this.$i18n.availableLocales.map(e=>({id:e,name:this.$t("language."+e)}))}}}},FH={class:"fd-page-with-tabs"},IH=["textContent"],MH=["textContent"],LH=["textContent"],RH=["textContent"],NH=["textContent"],jH=["textContent"],VH=["textContent"],BH=["textContent"],UH=["textContent"],HH=["textContent"],qH=["textContent"],GH=["textContent"],WH=["textContent"],KH=["textContent"],YH=["textContent"],ZH=["textContent"],JH=["textContent"],XH=["textContent"],QH=["textContent"],eq=["textContent"],tq=["textContent"],nq=["textContent"];function oq(e,t,n,o,i,r){const s=P("tabs-settings"),a=P("dropdown-menu"),l=P("content-with-heading"),u=P("settings-checkbox"),d=P("settings-textfield"),m=P("settings-intfield");return S(),D("div",FH,[x(s),x(l,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.general.language"))},null,8,IH)]),content:T(()=>[x(a,{modelValue:r.locale,"onUpdate:modelValue":t[0]||(t[0]=f=>r.locale=f),options:r.locales},null,8,["modelValue","options"])]),_:1}),x(l,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.general.navigation-items"))},null,8,MH)]),content:T(()=>[c("p",{class:"content",textContent:_(e.$t("page.settings.general.navigation-item-selection"))},null,8,LH),c("div",{class:"notification is-size-7",textContent:_(e.$t("page.settings.general.navigation-item-selection-info"))},null,8,RH),x(u,{category_name:"webinterface",option_name:"show_menu_item_playlists"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.playlists"))},null,8,NH)]),_:1}),x(u,{category_name:"webinterface",option_name:"show_menu_item_music"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.music"))},null,8,jH)]),_:1}),x(u,{category_name:"webinterface",option_name:"show_menu_item_podcasts"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.podcasts"))},null,8,VH)]),_:1}),x(u,{category_name:"webinterface",option_name:"show_menu_item_audiobooks"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.audiobooks"))},null,8,BH)]),_:1}),x(u,{category_name:"webinterface",option_name:"show_menu_item_radio"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.radio"))},null,8,UH)]),_:1}),x(u,{category_name:"webinterface",option_name:"show_menu_item_files"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.files"))},null,8,HH)]),_:1}),x(u,{category_name:"webinterface",option_name:"show_menu_item_search"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.search"))},null,8,qH)]),_:1})]),_:1}),x(l,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.general.album-lists"))},null,8,GH)]),content:T(()=>[x(u,{category_name:"webinterface",option_name:"show_cover_artwork_in_album_lists"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.show-coverart"))},null,8,WH)]),_:1})]),_:1}),x(l,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.general.now-playing-page"))},null,8,KH)]),content:T(()=>[x(u,{category_name:"webinterface",option_name:"show_composer_now_playing"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.show-composer"))},null,8,YH)]),info:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.show-composer-info"))},null,8,ZH)]),_:1}),x(d,{category_name:"webinterface",option_name:"show_composer_for_genre",disabled:!r.settings_option_show_composer_now_playing,placeholder:"Genres"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.show-composer-genres"))},null,8,JH)]),info:T(()=>[c("p",{class:"help",textContent:_(e.$t("page.settings.general.show-composer-genres-info-1"))},null,8,XH),c("p",{class:"help",textContent:_(e.$t("page.settings.general.show-composer-genres-info-2"))},null,8,QH),c("p",{class:"help",textContent:_(e.$t("page.settings.general.show-composer-genres-info-3"))},null,8,eq)]),_:1},8,["disabled"])]),_:1}),x(l,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.general.recently-added-page"))},null,8,tq)]),content:T(()=>[x(m,{category_name:"webinterface",option_name:"recently_added_limit"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.general.recently-added-page-info"))},null,8,nq)]),_:1})]),_:1})])}var iq=_e(DH,[["render",oq]]);const rq={name:"SettingsPageArtwork",components:{ContentWithHeading:ht,TabsSettings:Cc,SettingsCheckbox:Q_},computed:{spotify(){return this.$store.state.spotify}}},sq={class:"fd-page-with-tabs"},aq=["textContent"],lq=["textContent"],cq=["textContent"],uq=["textContent"],dq={href:"https://www.spotify.com/",target:"_blank"},fq={class:"icon"},mq=["textContent"],hq={href:"https://www.discogs.com/",target:"_blank"},pq={class:"icon"},bq=["textContent"],gq={href:"https://coverartarchive.org/",target:"_blank"},vq={class:"icon"};function _q(e,t,n,o,i,r){const s=P("tabs-settings"),a=P("mdicon"),l=P("settings-checkbox"),u=P("content-with-heading");return S(),D("div",sq,[x(s),x(u,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.artwork.artwork"))},null,8,aq)]),content:T(()=>[c("div",{class:"content",textContent:_(e.$t("page.settings.artwork.explanation-1"))},null,8,lq),c("div",{class:"content",textContent:_(e.$t("page.settings.artwork.explanation-2"))},null,8,cq),r.spotify.spotify_logged_in?(S(),Ce(l,{key:0,category_name:"artwork",option_name:"use_artwork_source_spotify"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.artwork.spotify"))},null,8,uq),c("a",dq,[c("span",fq,[x(a,{name:"open-in-new",size:"16"})])])]),_:1})):Q("",!0),x(l,{category_name:"artwork",option_name:"use_artwork_source_discogs"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.artwork.discogs"))},null,8,mq),c("a",hq,[c("span",pq,[x(a,{name:"open-in-new",size:"16"})])])]),_:1}),x(l,{category_name:"artwork",option_name:"use_artwork_source_coverartarchive"},{label:T(()=>[c("span",{textContent:_(e.$t("page.settings.artwork.coverartarchive"))},null,8,bq),c("a",gq,[c("span",vq,[x(a,{name:"open-in-new",size:"16"})])])]),_:1})]),_:1})])}var yq=_e(rq,[["render",_q]]);const wq={name:"SettingsPageOnlineServices",components:{ContentWithHeading:ht,TabsSettings:Cc},filters:{join(e){return e.join(", ")}},data(){return{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):[]}},methods:{logout_spotify(){Y.spotify_logout()},login_lastfm(){Y.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(){Y.lastfm_logout()}}},xq={class:"fd-page-with-tabs"},kq=["textContent"],Cq={key:0,class:"notification is-size-7"},zq=["textContent"],Sq={key:1},$q={class:"notification is-size-7"},Eq=["textContent"],Aq=["textContent"],Oq={class:"fd-has-margin-top"},Tq=["innerHTML"],Pq={key:0},Dq=["textContent"],Fq=["textContent"],Iq={key:1,class:"help is-danger"},Mq=["textContent"],Lq=["textContent"],Rq={class:"field fd-has-margin-top"},Nq={class:"control"},jq=["href","textContent"],Vq={class:"help"},Bq=["textContent"],Uq=["textContent"],Hq={key:2,class:"field fd-has-margin-top"},qq={class:"control"},Gq=["textContent"],Wq=["textContent"],Kq={key:0,class:"notification is-size-7"},Yq=["textContent"],Zq={key:1},Jq=["innerHTML"],Xq={key:0},Qq=["textContent"],eG={key:1},tG={class:"field is-grouped"},nG={class:"control is-expanded"},oG=["textContent"],iG={class:"control is-expanded"},rG=["textContent"],sG={class:"control"},aG=["textContent"],lG=["textContent"],cG=["textContent"];function uG(e,t,n,o,i,r){const s=P("tabs-settings"),a=P("content-with-heading");return S(),D("div",xq,[x(s),x(a,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.services.spotify.title"))},null,8,kq)]),content:T(()=>[r.spotify.spotify_installed?Q("",!0):(S(),D("div",Cq,[c("p",{textContent:_(e.$t("page.settings.services.spotify.no-support"))},null,8,zq)])),r.spotify.spotify_installed?(S(),D("div",Sq,[c("div",$q,[c("span",{textContent:_(e.$t("page.settings.services.spotify.requirements"))},null,8,Eq),e.use_libspotity?(S(),D("span",{key:0,textContent:_(e.$t("page.settings.services.spotify.help"))},null,8,Aq)):Q("",!0)]),c("div",Oq,[c("p",{class:"content",innerHTML:e.$t("page.settings.services.spotify.grant-access")},null,8,Tq),r.spotify.webapi_token_valid?(S(),D("p",Pq,[c("span",{textContent:_(e.$t("page.settings.services.spotify.user"))},null,8,Dq),c("code",{textContent:_(r.spotify.webapi_user)},null,8,Fq)])):Q("",!0),r.spotify_missing_scope.length>0?(S(),D("p",Iq,[c("span",{textContent:_(e.$t("page.settings.services.spotify.reauthorize"))},null,8,Mq),c("code",{textContent:_(r.spotify_missing_scope.join())},null,8,Lq)])):Q("",!0),c("div",Rq,[c("div",Nq,[c("a",{class:Ye(["button",{"is-info":!r.spotify.webapi_token_valid||r.spotify_missing_scope.length>0}]),href:r.spotify.oauth_uri,textContent:_(e.$t("page.settings.services.spotify.authorize"))},null,10,jq)])]),c("p",Vq,[c("span",{textContent:_(e.$t("page.settings.services.spotify.scopes"))},null,8,Bq),c("code",{textContent:_(r.spotify_required_scope.join(", "))},null,8,Uq)]),r.spotify.webapi_token_valid?(S(),D("div",Hq,[c("div",qq,[c("a",{class:"button is-danger",onClick:t[0]||(t[0]=(...l)=>r.logout_spotify&&r.logout_spotify(...l)),textContent:_(e.$t("page.settings.services.logout"))},null,8,Gq)])])):Q("",!0)])])):Q("",!0)]),_:1}),x(a,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.services.lastfm.title"))},null,8,Wq)]),content:T(()=>[r.lastfm.enabled?Q("",!0):(S(),D("div",Kq,[c("p",{textContent:_(e.$t("page.settings.services.lastfm.no-support"))},null,8,Yq)])),r.lastfm.enabled?(S(),D("div",Zq,[c("p",{class:"content",innerHTML:e.$t("page.settings.services.lastfm.grant-access")},null,8,Jq),r.lastfm.scrobbling_enabled?(S(),D("div",Xq,[c("a",{class:"button",onClick:t[1]||(t[1]=(...l)=>r.logoutLastfm&&r.logoutLastfm(...l)),textContent:_(e.$t("page.settings.services.lastfm.stop-scrobbling"))},null,8,Qq)])):Q("",!0),r.lastfm.scrobbling_enabled?Q("",!0):(S(),D("div",eG,[c("form",{onSubmit:t[4]||(t[4]=bt((...l)=>r.login_lastfm&&r.login_lastfm(...l),["prevent"]))},[c("div",tG,[c("div",nG,[zt(c("input",{"onUpdate:modelValue":t[2]||(t[2]=l=>i.lastfm_login.user=l),class:"input",type:"text",placeholder:"Username"},null,512),[[zn,i.lastfm_login.user]]),c("p",{class:"help is-danger",textContent:_(i.lastfm_login.errors.user)},null,8,oG)]),c("div",iG,[zt(c("input",{"onUpdate:modelValue":t[3]||(t[3]=l=>i.lastfm_login.password=l),class:"input",type:"password",placeholder:"Password"},null,512),[[zn,i.lastfm_login.password]]),c("p",{class:"help is-danger",textContent:_(i.lastfm_login.errors.password)},null,8,rG)]),c("div",sG,[c("button",{class:"button is-info",type:"submit",textContent:_(e.$t("page.settings.services.login"))},null,8,aG)])]),c("p",{class:"help is-danger",textContent:_(i.lastfm_login.errors.error)},null,8,lG),c("p",{class:"help",textContent:_(e.$t("page.settings.services.lastfm.info"))},null,8,cG)],32)]))])):Q("",!0)]),_:1})])}var dG=_e(wq,[["render",uG]]);const fG={name:"SettingsPageRemotesOutputs",components:{ContentWithHeading:ht,TabsSettings:Cc},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(){Y.pairing_kickoff(this.pairing_req)},output_toggle(e){Y.output_toggle(e)},kickoff_verification(e){Y.output_update(e,this.verification_req)}}},mG={class:"fd-page-with-tabs"},hG=["textContent"],pG={key:0,class:"notification"},bG={class:"label has-text-weight-normal"},gG=["textContent"],vG=["textContent"],_G={class:"field is-grouped"},yG={class:"control"},wG={class:"control"},xG=["textContent"],kG={key:1,class:"content"},CG=["textContent"],zG=["textContent"],SG=["textContent"],$G={class:"field"},EG={class:"control"},AG={class:"checkbox"},OG=["onUpdate:modelValue","onChange"],TG=["textContent"],PG=["onSubmit"],DG={class:"field is-grouped"},FG={class:"control"},IG=["placeholder"],MG={class:"control"},LG=["textContent"];function RG(e,t,n,o,i,r){const s=P("tabs-settings"),a=P("content-with-heading");return S(),D("div",mG,[x(s),x(a,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.devices.pairing"))},null,8,hG)]),content:T(()=>[r.pairing.active?(S(),D("div",pG,[c("form",{onSubmit:t[1]||(t[1]=bt((...l)=>r.kickoff_pairing&&r.kickoff_pairing(...l),["prevent"]))},[c("label",bG,[c("span",{textContent:_(e.$t("page.settings.devices.pairing-request"))},null,8,gG),c("b",{textContent:_(r.pairing.remote)},null,8,vG)]),c("div",_G,[c("div",yG,[zt(c("input",{"onUpdate:modelValue":t[0]||(t[0]=l=>i.pairing_req.pin=l),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[zn,i.pairing_req.pin]])]),c("div",wG,[c("button",{class:"button is-info",type:"submit",textContent:_(e.$t("page.settings.devices.send"))},null,8,xG)])])],32)])):Q("",!0),r.pairing.active?Q("",!0):(S(),D("div",kG,[c("p",{textContent:_(e.$t("page.settings.devices.no-active-pairing"))},null,8,CG)]))]),_:1}),x(a,null,{"heading-left":T(()=>[c("div",{class:"title is-4",textContent:_(e.$t("page.settings.devices.speaker-pairing"))},null,8,zG)]),content:T(()=>[c("p",{class:"content",textContent:_(e.$t("page.settings.devices.speaker-pairing-info"))},null,8,SG),(S(!0),D(Ge,null,xt(r.outputs,l=>(S(),D("div",{key:l.id},[c("div",$G,[c("div",EG,[c("label",AG,[zt(c("input",{"onUpdate:modelValue":u=>l.selected=u,type:"checkbox",style:{"margin-right":"5px"},onChange:u=>r.output_toggle(l.id)},null,40,OG),[[Oo,l.selected]]),c("span",{textContent:_(l.name)},null,8,TG)])])]),l.needs_auth_key?(S(),D("form",{key:0,class:"fd-has-margin-bottom",onSubmit:bt(u=>r.kickoff_verification(l.id),["prevent"])},[c("div",DG,[c("div",FG,[zt(c("input",{"onUpdate:modelValue":t[2]||(t[2]=u=>i.verification_req.pin=u),class:"input",type:"text",placeholder:e.$t("page.settings.devices.verification-code")},null,8,IG),[[zn,i.verification_req.pin]])]),c("div",MG,[c("button",{class:"button is-info",type:"submit",textContent:_(e.$t("page.settings.devices.verify"))},null,8,LG)])])],40,PG)):Q("",!0)]))),128))]),_:1})])}var NG=_e(fG,[["render",RG]]);const ey=AC({history:q2(),routes:[{path:"/",name:"PageQueue",component:mz},{path:"/about",name:"About",component:_N},{path:"/now-playing",name:"Now playing",component:t$},{path:"/music",redirect:"/music/browse"},{path:"/music/browse",name:"Browse",component:PA,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_added",name:"Browse Recently Added",component:RA,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/browse/recently_played",name:"Browse Recently Played",component:HA,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/artists",name:"Artists",component:nT,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/artists/:artist_id",name:"Artist",component:gT,meta:{show_progress:!0,has_index:!0}},{path:"/music/artists/:artist_id/tracks",name:"Tracks",component:TP,meta:{show_progress:!0,has_index:!0}},{path:"/music/albums",name:"Albums",component:MT,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/albums/:album_id",name:"Album",component:c9,meta:{show_progress:!0}},{path:"/music/genres",name:"Genres",component:Y9,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:_P,meta:{show_progress:!0,has_index:!0}},{path:"/music/composers",name:"Composers",component:hD,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/albums",name:"ComposerAlbums",component:SD,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/music/composers/:composer/tracks",name:"ComposerTracks",component:RD,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:IF,meta:{show_progress:!0}},{path:"/audiobooks",redirect:"/audiobooks/artists"},{path:"/audiobooks/artists",name:"AudiobooksArtists",component:sI,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/artists/:artist_id",name:"AudiobooksArtist",component:pI,meta:{show_progress:!0}},{path:"/audiobooks/albums",name:"AudiobooksAlbums",component:eI,meta:{show_progress:!0,has_tabs:!0,has_index:!0}},{path:"/audiobooks/:album_id",name:"Audiobook",component:$I,meta:{show_progress:!0}},{path:"/radio",name:"Radio",component:uL,meta:{show_progress:!0}},{path:"/files",name:"Files",component:rL,meta:{show_progress:!0}},{path:"/playlists",redirect:"/playlists/0"},{path:"/playlists/:playlist_id",name:"Playlists",component:dM,meta:{show_progress:!0}},{path:"/playlists/:playlist_id/tracks",name:"Playlist",component:yM,meta:{show_progress:!0}},{path:"/search",redirect:"/search/library"},{path:"/search/library",name:"Search Library",component:xR},{path:"/music/spotify",name:"Spotify",component:Bj,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/new-releases",name:"Spotify Browse New Releases",component:Zj,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/featured-playlists",name:"Spotify Browse Featured Playlists",component:oV,meta:{show_progress:!0,has_tabs:!0}},{path:"/music/spotify/artists/:artist_id",name:"Spotify Artist",component:MV,meta:{show_progress:!0}},{path:"/music/spotify/albums/:album_id",name:"Spotify Album",component:IB,meta:{show_progress:!0}},{path:"/music/spotify/playlists/:playlist_id",name:"Spotify Playlist",component:WB,meta:{show_progress:!0}},{path:"/search/spotify",name:"Spotify Search",component:HU},{path:"/settings/webinterface",name:"Settings Webinterface",component:iq},{path:"/settings/artwork",name:"Settings Artwork",component:yq},{path:"/settings/online-services",name:"Settings Online Services",component:dG},{path:"/settings/remotes-outputs",name:"Settings Remotes Outputs",component:NG}],scrollBehavior(e,t,n){return n?new Promise((i,r)=>{setTimeout(()=>{i(n)},0)}):e.path===t.path&&e.hash?{el:e.hash,top:120}:e.hash?new Promise((i,r)=>{setTimeout(()=>{i({el:e.hash,top:120})},0)}):e.meta.has_index?new Promise((i,r)=>{setTimeout(()=>{e.meta.has_tabs?i({el:"#top",top:140}):i({el:"#top",top:110})},0)}):{left:0,top:0}}});ey.beforeEach((e,t,n)=>{if(at.state.show_burger_menu){at.commit(vr,!1),n(!1);return}if(at.state.show_player_menu){at.commit(_r,!1),n(!1);return}n(!0)});var ty={exports:{}};(function(e){e.exports=function(t){var n={};function o(i){if(n[i])return n[i].exports;var r=n[i]={i,l:!1,exports:{}};return t[i].call(r.exports,r,r.exports,o),r.l=!0,r.exports}return o.m=t,o.c=n,o.d=function(i,r,s){o.o(i,r)||Object.defineProperty(i,r,{enumerable:!0,get:s})},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,r){if(r&1&&(i=o(i)),r&8||r&4&&typeof i=="object"&&i&&i.__esModule)return i;var s=Object.create(null);if(o.r(s),Object.defineProperty(s,"default",{enumerable:!0,value:i}),r&2&&typeof i!="string")for(var a in i)o.d(s,a,function(l){return i[l]}.bind(null,a));return s},o.n=function(i){var r=i&&i.__esModule?function(){return i.default}:function(){return i};return o.d(r,"a",r),r},o.o=function(i,r){return Object.prototype.hasOwnProperty.call(i,r)},o.p="",o(o.s="fb15")}({"8875":function(t,n,o){var i,r,s;(function(a,l){r=[],i=l,s=typeof i=="function"?i.apply(n,r):i,s!==void 0&&(t.exports=s)})(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(k){var u=/.*at [^(]*\((.*):(.+):(.+)\)$/ig,d=/@([^@]*):(\d+):(\d+)\s*$/ig,m=u.exec(k.stack)||d.exec(k.stack),f=m&&m[1]||!1,h=m&&m[2]||!1,p=document.location.href.replace(document.location.hash,""),b,g,y,w=document.getElementsByTagName("script");f===p&&(b=document.documentElement.outerHTML,g=new RegExp("(?:[^\\n]+?\\n){0,"+(h-2)+"}[^<]*<script>([\\d\\D]*?)<\\/script>[\\d\\D]*","i"),y=b.replace(g,"$1").trim());for(var C=0;C<w.length;C++)if(w[C].readyState==="interactive"||w[C].src===f||f===p&&w[C].innerHTML&&w[C].innerHTML.trim()===y)return w[C];return null}}return a})},"8bbf":function(t,n){t.exports=Cf},fb15:function(t,n,o){if(o.r(n),typeof window!="undefined"){var i=window.document.currentScript;{var r=o("8875");i=r(),"currentScript"in document||Object.defineProperty(document,"currentScript",{get:r})}var s=i&&i.src.match(/(.+\/)[^/]+\.js(\?.*)?$/);s&&(o.p=s[1])}var a=o("8bbf");function l(p,b,g,y,w,C){return Object(a.openBlock)(),Object(a.createBlock)("div",{style:y.finalStyle},null,4)}var u=typeof window!="undefined",d={name:"VueProgress",serverCacheKey:function(){return"Progress"},setup:function(){var b=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 y=b.options,w=!!y.show,C=y.location,k={"z-index":999999,"background-color":y.canSuccess?y.color:y.failedColor,opacity:y.show?1:0,position:y.position};return C==="top"||C==="bottom"?(C==="top"?k.top="0px":k.bottom="0px",y.inverse?k.right="0px":k.left="0px",k.width=b.percent+"%",k.height=y.thickness,k.transition=(w?"width "+y.transition.speed+", ":"")+"opacity "+y.transition.opacity):(C==="left"||C==="right")&&(C==="left"?k.left="0px":k.right="0px",y.inverse?k.top="0px":k.bottom="0px",k.height=b.percent+"%",k.width=y.thickness,k.transition=(w?"height "+y.transition.speed+", ":"")+"opacity "+y.transition.opacity),k});return{progress:b,finalStyle:g}}};d.render=l;var m=d;function f(p,b){for(var g=1,y,w;g<arguments.length;++g){w=arguments[g];for(y in w)Object.prototype.hasOwnProperty.call(w,y)&&(p[y]=w[y])}return p}var h={install:function(b,g){var y={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(y,g),C=Object(a.reactive)({percent:0,options:w});b.provide("RADON_LOADING_BAR",C);var k={state:{tFailColor:"",tColor:"",timer:null,cut:0},start:function(O){var j=this;O||(O=3e3),C.percent=0,C.options.show=!0,C.options.canSuccess=!0,this.state.cut=1e4/Math.floor(O),clearInterval(this.state.timer),this.state.timer=setInterval(function(){j.increase(j.state.cut*Math.random()),C.percent>95&&C.options.autoFinish&&j.finish()},100)},set:function(O){C.options.show=!0,C.options.canSuccess=!0,C.percent=Math.floor(O)},get:function(){return Math.floor(C.percent)},increase:function(O){C.percent=Math.min(99,C.percent+Math.floor(O))},decrease:function(O){C.percent=C.percent-Math.floor(O)},hide:function(){var O=this;clearInterval(this.state.timer),this.state.timer=null,setTimeout(function(){C.options.show=!1,Object(a.nextTick)(function(){setTimeout(function(){C.percent=0},100),C.options.autoRevert&&setTimeout(function(){O.revert()},300)})},C.options.transition.termination)},pause:function(){clearInterval(this.state.timer)},finish:function(){C.percent=100,this.hide()},fail:function(){C.options.canSuccess=!1,C.percent=100,this.hide()},setFailColor:function(O){C.options.failedColor=O},setColor:function(O){C.options.color=O},setLocation:function(O){C.options.location=O},setTransition:function(O){C.options.transition=O},tempFailColor:function(O){this.state.tFailColor=C.options.failedColor,C.options.failedColor=O},tempColor:function(O){this.state.tColor=C.options.color,C.options.color=O},tempLocation:function(O){this.state.tLocation=C.options.location,C.options.location=O},tempTransition:function(O){this.state.tTransition=C.options.transition,C.options.transition=O},revertColor:function(){C.options.color=this.state.tColor,this.state.tColor=""},revertFailColor:function(){C.options.failedColor=this.state.tFailColor,this.state.tFailColor=""},revertLocation:function(){C.options.location=this.state.tLocation,this.state.tLocation=""},revertTransition:function(){C.options.transition=this.state.tTransition,this.state.tTransition={}},revert:function(){C.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(O){for(var j in O.func){var F=O.func[j];switch(F.call){case"color":switch(F.modifier){case"set":this.setColor(F.argument);break;case"temp":this.tempColor(F.argument);break}break;case"fail":switch(F.modifier){case"set":this.setFailColor(F.argument);break;case"temp":this.tempFailColor(F.argument);break}break;case"location":switch(F.modifier){case"set":this.setLocation(F.argument);break;case"temp":this.tempLocation(F.argument);break}break;case"transition":switch(F.modifier){case"set":this.setTransition(F.argument);break;case"temp":this.tempTransition(F.argument);break}break}}}};b.component("vue-progress-bar",m),b.config.globalProperties.$Progress=k}};n.default=h}})})(ty);var jG=zv(ty.exports);const ny=function(){return document.ontouchstart!==null?"click":"touchstart"},Ll="__vue_click_away__",oy=function(e,t,n){iy(e);let o=n.context,i=t.value,r=!1;setTimeout(function(){r=!0},0),e[Ll]=function(s){if((!e||!e.contains(s.target))&&i&&r&&typeof i=="function")return i.call(o,s)},document.addEventListener(ny(),e[Ll],!1)},iy=function(e){document.removeEventListener(ny(),e[Ll],!1),delete e[Ll]},VG=function(e,t,n){t.value!==t.oldValue&&oy(e,t,n)},BG={install:function(e){e.directive("click-away",UG)}},UG={mounted:oy,updated:VG,unmounted:iy};var uo=(e=>(e.LOADING="loading",e.LOADED="loaded",e.ERROR="error",e))(uo||{});const HG=typeof window!="undefined"&&window!==null,qG=YG(),GG=Object.prototype.propertyIsEnumerable,Sp=Object.getOwnPropertySymbols;function Cs(e){return typeof e=="function"||toString.call(e)==="[object Object]"}function WG(e){return typeof e=="object"?e===null:typeof e!="function"}function KG(e){return e!=="__proto__"&&e!=="constructor"&&e!=="prototype"}function YG(){return HG&&"IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype?("isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get(){return this.intersectionRatio>0}}),!0):!1}function ZG(e,...t){if(!Cs(e))throw new TypeError("expected the first argument to be an object");if(t.length===0||typeof Symbol!="function"||typeof Sp!="function")return e;for(const n of t){const o=Sp(n);for(const i of o)GG.call(n,i)&&(e[i]=n[i])}return e}function ry(e,...t){let n=0;for(WG(e)&&(e=t[n++]),e||(e={});n<t.length;n++)if(Cs(t[n])){for(const o of Object.keys(t[n]))KG(o)&&(Cs(e[o])&&Cs(t[n][o])?ry(e[o],t[n][o]):e[o]=t[n][o]);ZG(e,t[n])}return e}const $p="data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",JG="",XG={rootMargin:"0px",threshold:0},Zi="data-lazy-timeout-id";class QG{constructor(t){this.options={loading:$p,error:JG,observerOptions:XG,log:!0,lifecycle:{}},this._images=new WeakMap,this.config(t)}config(t={}){ry(this.options,t)}mount(t,n){if(!t)return;const{src:o,loading:i,error:r,lifecycle:s,delay:a}=this._valueFormatter(typeof n=="string"?n:n.value);this._lifecycle(uo.LOADING,s,t),t.setAttribute("src",i||$p),qG||(this.loadImages(t,o,r,s),this._log(()=>{throw new Error("Not support IntersectionObserver!")})),this._initIntersectionObserver(t,o,r,s,a)}update(t,n){var a;if(!t)return;(a=this._realObserver(t))==null||a.unobserve(t);const{src:o,error:i,lifecycle:r,delay:s}=this._valueFormatter(typeof n=="string"?n:n.value);this._initIntersectionObserver(t,o,i,r,s)}unmount(t){var n;!t||((n=this._realObserver(t))==null||n.unobserve(t),this._images.delete(t))}loadImages(t,n,o,i){this._setImageSrc(t,n,o,i)}_setImageSrc(t,n,o,i){t.tagName.toLowerCase()==="img"?(n&&t.getAttribute("src")!==n&&t.setAttribute("src",n),this._listenImageStatus(t,()=>{this._lifecycle(uo.LOADED,i,t)},()=>{var r;t.onload=null,this._lifecycle(uo.ERROR,i,t),(r=this._realObserver(t))==null||r.disconnect(),o&&t.setAttribute("src",o),this._log(()=>{throw new Error(`Image failed to load!And failed src was: ${n} `)})})):t.style.backgroundImage=`url('${n}')`}_initIntersectionObserver(t,n,o,i,r){var a;const s=this.options.observerOptions;this._images.set(t,new IntersectionObserver(l=>{Array.prototype.forEach.call(l,u=>{r&&r>0?this._delayedIntersectionCallback(t,u,r,n,o,i):this._intersectionCallback(t,u,n,o,i)})},s)),(a=this._realObserver(t))==null||a.observe(t)}_intersectionCallback(t,n,o,i,r){var s;n.isIntersecting&&((s=this._realObserver(t))==null||s.unobserve(n.target),this._setImageSrc(t,o,i,r))}_delayedIntersectionCallback(t,n,o,i,r,s){if(n.isIntersecting){if(n.target.hasAttribute(Zi))return;const a=setTimeout(()=>{this._intersectionCallback(t,n,i,r,s),n.target.removeAttribute(Zi)},o);n.target.setAttribute(Zi,String(a))}else n.target.hasAttribute(Zi)&&(clearTimeout(Number(n.target.getAttribute(Zi))),n.target.removeAttribute(Zi))}_listenImageStatus(t,n,o){t.onload=n,t.onerror=o}_valueFormatter(t){let n=t,o=this.options.loading,i=this.options.error,r=this.options.lifecycle,s=this.options.delay;return Cs(t)&&(n=t.src,o=t.loading||this.options.loading,i=t.error||this.options.error,r=t.lifecycle||this.options.lifecycle,s=t.delay||this.options.delay),{src:n,loading:o,error:i,lifecycle:r,delay:s}}_log(t){this.options.log&&t()}_lifecycle(t,n,o){switch(t){case uo.LOADING:o==null||o.setAttribute("lazy",uo.LOADING),n!=null&&n.loading&&n.loading(o);break;case uo.LOADED:o==null||o.setAttribute("lazy",uo.LOADED),n!=null&&n.loaded&&n.loaded(o);break;case uo.ERROR:o==null||o.setAttribute("lazy",uo.ERROR),n!=null&&n.error&&n.error(o);break}}_realObserver(t){return this._images.get(t)}}const eW={install(e,t){const n=new QG(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)})}};var sy={exports:{}};/*!
* vue-scrollto v2.20.0
* (c) 2019 Randjelovic Igor
* @license MIT
*/(function(e,t){(function(n,o){e.exports=o()})(an,function(){function n(pe){return typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?n=function(J){return typeof J}:n=function(J){return J&&typeof Symbol=="function"&&J.constructor===Symbol&&J!==Symbol.prototype?"symbol":typeof J},n(pe)}function o(){return o=Object.assign||function(pe){for(var J=1;J<arguments.length;J++){var fe=arguments[J];for(var we in fe)Object.prototype.hasOwnProperty.call(fe,we)&&(pe[we]=fe[we])}return pe},o.apply(this,arguments)}var i=4,r=.001,s=1e-7,a=10,l=11,u=1/(l-1),d=typeof Float32Array=="function";function m(pe,J){return 1-3*J+3*pe}function f(pe,J){return 3*J-6*pe}function h(pe){return 3*pe}function p(pe,J,fe){return((m(J,fe)*pe+f(J,fe))*pe+h(J))*pe}function b(pe,J,fe){return 3*m(J,fe)*pe*pe+2*f(J,fe)*pe+h(J)}function g(pe,J,fe,we,U){var se,ie,ye=0;do ie=J+(fe-J)/2,se=p(ie,we,U)-pe,se>0?fe=ie:J=ie;while(Math.abs(se)>s&&++ye<a);return ie}function y(pe,J,fe,we){for(var U=0;U<i;++U){var se=b(J,fe,we);if(se===0)return J;var ie=p(J,fe,we)-pe;J-=ie/se}return J}function w(pe){return pe}var C=function(J,fe,we,U){if(!(0<=J&&J<=1&&0<=we&&we<=1))throw new Error("bezier x values must be in [0, 1] range");if(J===fe&&we===U)return w;for(var se=d?new Float32Array(l):new Array(l),ie=0;ie<l;++ie)se[ie]=p(ie*u,J,we);function ye(je){for(var Ie=0,$e=1,Ae=l-1;$e!==Ae&&se[$e]<=je;++$e)Ie+=u;--$e;var E=(je-se[$e])/(se[$e+1]-se[$e]),L=Ie+E*u,Z=b(L,J,we);return Z>=r?y(je,L,J,we):Z===0?L:g(je,Ie,Ie+u,J,we)}return function(Ie){return Ie===0?0:Ie===1?1:p(ye(Ie),fe,U)}},k={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 O=Object.defineProperty({},"passive",{get:function(){$=!0}});window.addEventListener("test",null,O)}catch{}var j={$:function(J){return typeof J!="string"?J:document.querySelector(J)},on:function(J,fe,we){var U=arguments.length>3&&arguments[3]!==void 0?arguments[3]:{passive:!1};fe instanceof Array||(fe=[fe]);for(var se=0;se<fe.length;se++)J.addEventListener(fe[se],we,$?U:!1)},off:function(J,fe,we){fe instanceof Array||(fe=[fe]);for(var U=0;U<fe.length;U++)J.removeEventListener(fe[U],we)},cumulativeOffset:function(J){var fe=0,we=0;do fe+=J.offsetTop||0,we+=J.offsetLeft||0,J=J.offsetParent;while(J);return{top:fe,left:we}}},F=["mousedown","wheel","DOMMouseScroll","mousewheel","keyup","touchmove"],A={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 M(pe){A=o({},A,pe)}var G=function(){var J,fe,we,U,se,ie,ye,je,Ie,$e,Ae,E,L,Z,le,ue,ve,xe,he,V,H,Ee,ke,De=function(de){!je||(ke=de,V=!0)},Re,qe,tt,z;function v(oe){var de=oe.scrollTop;return oe.tagName.toLowerCase()==="body"&&(de=de||document.documentElement.scrollTop),de}function I(oe){var de=oe.scrollLeft;return oe.tagName.toLowerCase()==="body"&&(de=de||document.documentElement.scrollLeft),de}function K(){H=j.cumulativeOffset(fe),Ee=j.cumulativeOffset(J),E&&(le=Ee.left-H.left+ie,xe=le-Z),L&&(ve=Ee.top-H.top+ie,he=ve-ue)}function ee(oe){if(V)return me();qe||(qe=oe),se||K(),tt=oe-qe,z=Math.min(tt/we,1),z=Re(z),Se(fe,ue+he*z,Z+xe*z),tt<we?window.requestAnimationFrame(ee):me()}function me(){V||Se(fe,ve,le),qe=!1,j.off(fe,F,De),V&&Ae&&Ae(ke,J),!V&&$e&&$e(J)}function Se(oe,de,te){L&&(oe.scrollTop=de),E&&(oe.scrollLeft=te),oe.tagName.toLowerCase()==="body"&&(L&&(document.documentElement.scrollTop=de),E&&(document.documentElement.scrollLeft=te))}function Me(oe,de){var te=arguments.length>2&&arguments[2]!==void 0?arguments[2]:{};if(n(de)==="object"?te=de:typeof de=="number"&&(te.duration=de),J=j.$(oe),!J)return console.warn("[vue-scrollto warn]: Trying to scroll to an element that is not on the page: "+oe);if(fe=j.$(te.container||A.container),we=te.hasOwnProperty("duration")?te.duration:A.duration,se=te.hasOwnProperty("lazy")?te.lazy:A.lazy,U=te.easing||A.easing,ie=te.hasOwnProperty("offset")?te.offset:A.offset,ye=te.hasOwnProperty("force")?te.force!==!1:A.force,je=te.hasOwnProperty("cancelable")?te.cancelable!==!1:A.cancelable,Ie=te.onStart||A.onStart,$e=te.onDone||A.onDone,Ae=te.onCancel||A.onCancel,E=te.x===void 0?A.x:te.x,L=te.y===void 0?A.y:te.y,typeof ie=="function"&&(ie=ie(J,fe)),Z=I(fe),ue=v(fe),K(),V=!1,!ye){var ae=fe.tagName.toLowerCase()==="body"?document.documentElement.clientHeight||window.innerHeight:fe.offsetHeight,Ne=ue,Ue=Ne+ae,ut=ve-ie,bn=ut+J.offsetHeight;if(ut>=Ne&&bn<=Ue){$e&&$e(J);return}}if(Ie&&Ie(J),!he&&!xe){$e&&$e(J);return}return typeof U=="string"&&(U=k[U]||k.ease),Re=C.apply(C,U),j.on(fe,F,De,{passive:!0}),window.requestAnimationFrame(ee),function(){ke=null,V=!0}}return Me},R=G(),q=[];function B(pe){for(var J=0;J<q.length;++J)if(q[J].el===pe)return q.splice(J,1),!0;return!1}function re(pe){for(var J=0;J<q.length;++J)if(q[J].el===pe)return q[J]}function X(pe){var J=re(pe);return J||(q.push(J={el:pe,binding:{}}),J)}function ce(pe){var J=X(this).binding;if(!!J.value){if(pe.preventDefault(),typeof J.value=="string")return R(J.value);R(J.value.el||J.value.element,J.value)}}var ge={bind:function(J,fe){X(J).binding=fe,j.on(J,"click",ce)},unbind:function(J){B(J),j.off(J,"click",ce)},update:function(J,fe){X(J).binding=fe}},Le={bind:ge.bind,unbind:ge.unbind,update:ge.update,beforeMount:ge.bind,unmounted:ge.unbind,updated:ge.update,scrollTo:R,bindings:q},Be=function(J,fe){fe&&M(fe),J.directive("scroll-to",Le);var we=J.config.globalProperties||J.prototype;we.$scrollTo=Le.scrollTo};return typeof window!="undefined"&&window.Vue&&(window.VueScrollTo=Le,window.VueScrollTo.setDefaults=M,window.VueScrollTo.scroller=G,window.Vue.use&&window.Vue.use(Be)),Le.install=Be,Le})})(sy);var tW=sy.exports,nW="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",oW="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",iW="M13 14H11V9H13M13 18H11V16H13M1 21H23L12 2L1 21Z",rW="M19.92,12.08L12,20L4.08,12.08L5.5,10.67L11,16.17V2H13V16.17L18.5,10.66L19.92,12.08M12,20H2V22H22V20H12Z",sW="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",aW="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",lW="M9 3V18H12V3H9M12 5L16 18L19 17L15 4L12 5M5 5V18H8V5H5M3 19V21H21V19H3Z",cW="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",uW="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",dW="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",fW="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",mW="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",hW="M21,7L9,19L3.5,13.5L4.91,12.09L9,16.17L19.59,5.59L21,7Z",pW="M7.41,8.58L12,13.17L16.59,8.58L18,10L12,16L6,10L7.41,8.58Z",bW="M7.41,15.41L12,10.83L16.59,15.41L18,14L12,8L6,14L7.41,15.41Z",gW="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",vW="M19,4H15.5L14.5,3H9.5L8.5,4H5V6H19M6,19A2,2 0 0,0 8,21H16A2,2 0 0,0 18,19V7H6V19Z",_W="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",yW="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",wW="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",xW="M3,15V13H5V15H3M3,11V9H5V11H3M7,15V13H9V15H7M7,11V9H9V11H7M11,15V13H13V15H11M11,11V9H13V11H11M15,15V13H17V15H15M15,11V9H17V11H15M19,15V13H21V15H19M19,11V9H21V11H19Z",kW="M13,6V18L21.5,12M4,18L12.5,12L4,6V18Z",CW="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",zW="M14,2H6A2,2 0 0,0 4,4V20A2,2 0 0,0 6,22H18A2,2 0 0,0 20,20V8L14,2M18,20H6V4H13V9H18V20Z",SW="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",$W="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",EW="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",AW="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",OW="M3,6H21V8H3V6M3,11H21V13H3V11M3,16H21V18H3V16Z",TW="M12,2A3,3 0 0,1 15,5V11A3,3 0 0,1 12,14A3,3 0 0,1 9,11V5A3,3 0 0,1 12,2M19,11C19,14.53 16.39,17.44 13,17.93V21H11V17.93C7.61,17.44 5,14.53 5,11H7A5,5 0 0,0 12,16A5,5 0 0,0 17,11H19Z",PW="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",DW="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",FW="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",IW="M14,19H18V5H14M6,19H10V5H6V19Z",MW="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",LW="M22,14H20V16H14V13H16V11H14V6A2,2 0 0,0 12,4H4V2H2V10H4V8H10V11H8V13H10V18A2,2 0 0,0 12,20H20V22H22",RW="M8,5.14V19.14L19,12.14L8,5.14Z",NW="M19,9H2V11H19V9M19,5H2V7H19V5M2,15H15V13H2V15M17,13V19L22,16L17,13Z",jW="M2,16H10V14H2M18,14V10H16V14H12V16H16V20H18V16H22V14M14,6H2V8H14M14,10H2V12H14V10Z",VW="M20,6A2,2 0 0,1 22,8V20A2,2 0 0,1 20,22H4A2,2 0 0,1 2,20V8C2,7.15 2.53,6.42 3.28,6.13L15.71,1L16.47,2.83L8.83,6H20M20,8H4V12H16V10H18V12H20V8M7,14A3,3 0 0,0 4,17A3,3 0 0,0 7,20A3,3 0 0,0 10,17A3,3 0 0,0 7,14Z",BW="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",UW="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",HW="M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",qW="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",GW="M13,15V9H12L10,10V11H11.5V15M17,17H7V14L3,18L7,22V19H19V13H17M7,7H17V10L21,6L17,2V5H5V11H7V7Z",WW="M11.5,12L20,18V6M11,18V6L2.5,12L11,18Z",KW="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",YW="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",ZW="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",JW="M16,4.5V7H5V9H16V11.5L19.5,8M16,12.5V15H5V17H16V19.5L19.5,16",XW="M20,5V19L13,12M6,5V19H4V5M13,5V19L6,12",QW="M4,5V19L11,12M18,5V19H20V5M11,5V19L18,12",eK="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",tK="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",nK="M18,18H6V6H18V18Z",oK="M11,9L12.42,10.42L8.83,14H18V4H20V16H8.83L12.42,19.58L11,21L5,15L11,9Z",iK="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",rK="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",sK="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 aK={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 lK=e=>e.charAt(0).toUpperCase()+e.slice(1),cK=e=>e.split("-").map(lK).join(""),uK=(e,t,n)=>{const o=e[`mdi${cK(t.name)}`]||iW,i=Je({role:t.role,"aria-label":t.ariaLabel},n),r={fill:"currentColor",width:t.width||t.size,height:t.height||t.size,viewBox:t.viewBox,xmlns:t.xmlns};return{spanAttrs:i,svgAttrs:r,pathAttrs:{d:o}}},dK=(e,t)=>({[t.staticClass||""]:!0,[t.class||""]:!0,[`mdi mdi-${e.name}`]:!0,"mdi-spin":e.spin===!0}),fK=(e,t={})=>({install(n,{icons:o}){if(o===void 0)throw new Error("Icons must be provided separately");n.component("mdicon",jn(Je({name:"MDIcon",props:aK},t),{render:e(o)}))}}),mK=e=>function(){const{spanAttrs:n,svgAttrs:o,pathAttrs:i}=uK(e,this,this.$attrs);return kn("span",jn(Je({},n),{class:dK(this,this)}),[kn("svg",o,[this.title?kn("title",[this.title]):void 0,kn("path",i)])])};var hK=fK(mK);class Ni extends Error{}class pK extends Ni{constructor(t){super(`Invalid DateTime: ${t.toMessage()}`)}}class bK extends Ni{constructor(t){super(`Invalid Interval: ${t.toMessage()}`)}}class gK extends Ni{constructor(t){super(`Invalid Duration: ${t.toMessage()}`)}}class is extends Ni{}class ay extends Ni{constructor(t){super(`Invalid unit ${t}`)}}class Hn extends Ni{}class Bo extends Ni{constructor(){super("Zone is an abstract class")}}const Te="numeric",so="short",Mn="long",vd={year:Te,month:Te,day:Te},ly={year:Te,month:so,day:Te},vK={year:Te,month:so,day:Te,weekday:so},cy={year:Te,month:Mn,day:Te},uy={year:Te,month:Mn,day:Te,weekday:Mn},dy={hour:Te,minute:Te},fy={hour:Te,minute:Te,second:Te},my={hour:Te,minute:Te,second:Te,timeZoneName:so},hy={hour:Te,minute:Te,second:Te,timeZoneName:Mn},py={hour:Te,minute:Te,hourCycle:"h23"},by={hour:Te,minute:Te,second:Te,hourCycle:"h23"},gy={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:so},vy={hour:Te,minute:Te,second:Te,hourCycle:"h23",timeZoneName:Mn},_y={year:Te,month:Te,day:Te,hour:Te,minute:Te},yy={year:Te,month:Te,day:Te,hour:Te,minute:Te,second:Te},wy={year:Te,month:so,day:Te,hour:Te,minute:Te},xy={year:Te,month:so,day:Te,hour:Te,minute:Te,second:Te},_K={year:Te,month:so,day:Te,weekday:so,hour:Te,minute:Te},ky={year:Te,month:Mn,day:Te,hour:Te,minute:Te,timeZoneName:so},Cy={year:Te,month:Mn,day:Te,hour:Te,minute:Te,second:Te,timeZoneName:so},zy={year:Te,month:Mn,day:Te,weekday:Mn,hour:Te,minute:Te,timeZoneName:Mn},Sy={year:Te,month:Mn,day:Te,weekday:Mn,hour:Te,minute:Te,second:Te,timeZoneName:Mn};function dt(e){return typeof e=="undefined"}function Ei(e){return typeof e=="number"}function zc(e){return typeof e=="number"&&e%1===0}function yK(e){return typeof e=="string"}function wK(e){return Object.prototype.toString.call(e)==="[object Date]"}function $y(){try{return typeof Intl!="undefined"&&!!Intl.RelativeTimeFormat}catch{return!1}}function xK(e){return Array.isArray(e)?e:[e]}function Ep(e,t,n){if(e.length!==0)return e.reduce((o,i)=>{const r=[t(i),i];return o&&n(o[0],r[0])===o[0]?o:r},null)[1]}function kK(e,t){return t.reduce((n,o)=>(n[o]=e[o],n),{})}function Sr(e,t){return Object.prototype.hasOwnProperty.call(e,t)}function $o(e,t,n){return zc(e)&&e>=t&&e<=n}function CK(e,t){return e-t*Math.floor(e/t)}function Ht(e,t=2){const n=e<0;let o;return n?o="-"+(""+-e).padStart(t,"0"):o=(""+e).padStart(t,"0"),o}function Yo(e){if(!(dt(e)||e===null||e===""))return parseInt(e,10)}function bi(e){if(!(dt(e)||e===null||e===""))return parseFloat(e)}function Vf(e){if(!(dt(e)||e===null||e==="")){const t=parseFloat("0."+e)*1e3;return Math.floor(t)}}function Bf(e,t,n=!1){const o=10**t;return(n?Math.trunc:Math.round)(e*o)/o}function Ys(e){return e%4===0&&(e%100!==0||e%400===0)}function zs(e){return Ys(e)?366:365}function Rl(e,t){const n=CK(t-1,12)+1,o=e+(t-n)/12;return n===2?Ys(o)?29:28:[31,null,31,30,31,30,31,31,30,31,30,31][n-1]}function Uf(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 Nl(e){const t=(e+Math.floor(e/4)-Math.floor(e/100)+Math.floor(e/400))%7,n=e-1,o=(n+Math.floor(n/4)-Math.floor(n/100)+Math.floor(n/400))%7;return t===4||o===3?53:52}function _d(e){return e>99?e:e>60?1900+e:2e3+e}function Ey(e,t,n,o=null){const i=new Date(e),r={hourCycle:"h23",year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit"};o&&(r.timeZone=o);const s=Je({timeZoneName:t},r),a=new Intl.DateTimeFormat(n,s).formatToParts(i).find(l=>l.type.toLowerCase()==="timezonename");return a?a.value:null}function Sc(e,t){let n=parseInt(e,10);Number.isNaN(n)&&(n=0);const o=parseInt(t,10)||0,i=n<0||Object.is(n,-0)?-o:o;return n*60+i}function Ay(e){const t=Number(e);if(typeof e=="boolean"||e===""||Number.isNaN(t))throw new Hn(`Invalid unit value ${e}`);return t}function jl(e,t){const n={};for(const o in e)if(Sr(e,o)){const i=e[o];if(i==null)continue;n[t(o)]=Ay(i)}return n}function Ss(e,t){const n=Math.trunc(Math.abs(e/60)),o=Math.trunc(Math.abs(e%60)),i=e>=0?"+":"-";switch(t){case"short":return`${i}${Ht(n,2)}:${Ht(o,2)}`;case"narrow":return`${i}${n}${o>0?`:${o}`:""}`;case"techie":return`${i}${Ht(n,2)}${Ht(o,2)}`;default:throw new RangeError(`Value format ${t} is out of range for property format`)}}function $c(e){return kK(e,["hour","minute","second","millisecond"])}const Oy=/[A-Za-z_+-]{1,256}(?::?\/[A-Za-z0-9_+-]{1,256}(?:\/[A-Za-z0-9_+-]{1,256})?)?/,zK=["January","February","March","April","May","June","July","August","September","October","November","December"],Ty=["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],SK=["J","F","M","A","M","J","J","A","S","O","N","D"];function Py(e){switch(e){case"narrow":return[...SK];case"short":return[...Ty];case"long":return[...zK];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 Dy=["Monday","Tuesday","Wednesday","Thursday","Friday","Saturday","Sunday"],Fy=["Mon","Tue","Wed","Thu","Fri","Sat","Sun"],$K=["M","T","W","T","F","S","S"];function Iy(e){switch(e){case"narrow":return[...$K];case"short":return[...Fy];case"long":return[...Dy];case"numeric":return["1","2","3","4","5","6","7"];default:return null}}const My=["AM","PM"],EK=["Before Christ","Anno Domini"],AK=["BC","AD"],OK=["B","A"];function Ly(e){switch(e){case"narrow":return[...OK];case"short":return[...AK];case"long":return[...EK];default:return null}}function TK(e){return My[e.hour<12?0:1]}function PK(e,t){return Iy(t)[e.weekday-1]}function DK(e,t){return Py(t)[e.month-1]}function FK(e,t){return Ly(t)[e.year<0?0:1]}function IK(e,t,n="always",o=!1){const i={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."]},r=["hours","minutes","seconds"].indexOf(e)===-1;if(n==="auto"&&r){const m=e==="days";switch(t){case 1:return m?"tomorrow":`next ${i[e][0]}`;case-1:return m?"yesterday":`last ${i[e][0]}`;case 0:return m?"today":`this ${i[e][0]}`}}const s=Object.is(t,-0)||t<0,a=Math.abs(t),l=a===1,u=i[e],d=o?l?u[1]:u[2]||u[1]:l?i[e][0]:e;return s?`${a} ${d} ago`:`in ${a} ${d}`}function Ap(e,t){let n="";for(const o of e)o.literal?n+=o.val:n+=t(o.val);return n}const MK={D:vd,DD:ly,DDD:cy,DDDD:uy,t:dy,tt:fy,ttt:my,tttt:hy,T:py,TT:by,TTT:gy,TTTT:vy,f:_y,ff:wy,fff:ky,ffff:zy,F:yy,FF:xy,FFF:Cy,FFFF:Sy};class Cn{static create(t,n={}){return new Cn(t,n)}static parseFormat(t){let n=null,o="",i=!1;const r=[];for(let s=0;s<t.length;s++){const a=t.charAt(s);a==="'"?(o.length>0&&r.push({literal:i,val:o}),n=null,o="",i=!i):i||a===n?o+=a:(o.length>0&&r.push({literal:!1,val:o}),o=a,n=a)}return o.length>0&&r.push({literal:i,val:o}),r}static macroTokenToFormatOpts(t){return MK[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 Ht(t,n);const o=Je({},this.opts);return n>0&&(o.padTo=n),this.loc.numberFormatter(o).format(t)}formatDateTimeFromString(t,n){const o=this.loc.listingMode()==="en",i=this.loc.outputCalendar&&this.loc.outputCalendar!=="gregory",r=(h,p)=>this.loc.extract(t,h,p),s=h=>t.isOffsetFixed&&t.offset===0&&h.allowZ?"Z":t.isValid?t.zone.formatOffset(t.ts,h.format):"",a=()=>o?TK(t):r({hour:"numeric",hourCycle:"h12"},"dayperiod"),l=(h,p)=>o?DK(t,h):r(p?{month:h}:{month:h,day:"numeric"},"month"),u=(h,p)=>o?PK(t,h):r(p?{weekday:h}:{weekday:h,month:"long",day:"numeric"},"weekday"),d=h=>{const p=Cn.macroTokenToFormatOpts(h);return p?this.formatWithSystemDefault(t,p):h},m=h=>o?FK(t,h):r({era:h},"era"),f=h=>{switch(h){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 s({format:"narrow",allowZ:this.opts.allowZ});case"ZZ":return s({format:"short",allowZ:this.opts.allowZ});case"ZZZ":return s({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 i?r({day:"numeric"},"day"):this.num(t.day);case"dd":return i?r({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 i?r({month:"numeric",day:"numeric"},"month"):this.num(t.month);case"LL":return i?r({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 i?r({month:"numeric"},"month"):this.num(t.month);case"MM":return i?r({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 i?r({year:"numeric"},"year"):this.num(t.year);case"yy":return i?r({year:"2-digit"},"year"):this.num(t.year.toString().slice(-2),2);case"yyyy":return i?r({year:"numeric"},"year"):this.num(t.year,4);case"yyyyyy":return i?r({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(h)}};return Ap(Cn.parseFormat(n),f)}formatDurationFromString(t,n){const o=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}},i=l=>u=>{const d=o(u);return d?this.num(l.get(d),u.length):u},r=Cn.parseFormat(n),s=r.reduce((l,{literal:u,val:d})=>u?l:l.concat(d),[]),a=t.shiftTo(...s.map(o).filter(l=>l));return Ap(r,i(a))}}class oo{constructor(t,n){this.reason=t,this.explanation=n}toMessage(){return this.explanation?`${this.reason}: ${this.explanation}`:this.reason}}class Zs{get type(){throw new Bo}get name(){throw new Bo}get ianaName(){return this.name}get isUniversal(){throw new Bo}offsetName(t,n){throw new Bo}formatOffset(t,n){throw new Bo}offset(t){throw new Bo}equals(t){throw new Bo}get isValid(){throw new Bo}}let pu=null;class Hf extends Zs{static get instance(){return pu===null&&(pu=new Hf),pu}get type(){return"system"}get name(){return new Intl.DateTimeFormat().resolvedOptions().timeZone}get isUniversal(){return!1}offsetName(t,{format:n,locale:o}){return Ey(t,n,o)}formatOffset(t,n){return Ss(this.offset(t),n)}offset(t){return-new Date(t).getTimezoneOffset()}equals(t){return t.type==="system"}get isValid(){return!0}}let hl={};function LK(e){return hl[e]||(hl[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"})),hl[e]}const RK={year:0,month:1,day:2,era:3,hour:4,minute:5,second:6};function NK(e,t){const n=e.format(t).replace(/\u200E/g,""),o=/(\d+)\/(\d+)\/(\d+) (AD|BC),? (\d+):(\d+):(\d+)/.exec(n),[,i,r,s,a,l,u,d]=o;return[s,i,r,a,l,u,d]}function jK(e,t){const n=e.formatToParts(t),o=[];for(let i=0;i<n.length;i++){const{type:r,value:s}=n[i],a=RK[r];r==="era"?o[a]=s:dt(a)||(o[a]=parseInt(s,10))}return o}let Qa={};class To extends Zs{static create(t){return Qa[t]||(Qa[t]=new To(t)),Qa[t]}static resetCache(){Qa={},hl={}}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=To.isValidZone(t)}get type(){return"iana"}get name(){return this.zoneName}get isUniversal(){return!1}offsetName(t,{format:n,locale:o}){return Ey(t,n,o,this.name)}formatOffset(t,n){return Ss(this.offset(t),n)}offset(t){const n=new Date(t);if(isNaN(n))return NaN;const o=LK(this.name);let[i,r,s,a,l,u,d]=o.formatToParts?jK(o,n):NK(o,n);a==="BC"&&(i=-Math.abs(i)+1);const f=Uf({year:i,month:r,day:s,hour:l===24?0:l,minute:u,second:d,millisecond:0});let h=+n;const p=h%1e3;return h-=p>=0?p:1e3+p,(f-h)/(60*1e3)}equals(t){return t.type==="iana"&&t.name===this.name}get isValid(){return this.valid}}let bu=null;class mn extends Zs{static get utcInstance(){return bu===null&&(bu=new mn(0)),bu}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(Sc(n[1],n[2]))}return null}constructor(t){super(),this.fixed=t}get type(){return"fixed"}get name(){return this.fixed===0?"UTC":`UTC${Ss(this.fixed,"narrow")}`}get ianaName(){return this.fixed===0?"Etc/UTC":`Etc/GMT${Ss(-this.fixed,"narrow")}`}offsetName(){return this.name}formatOffset(t,n){return Ss(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 VK extends Zs{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 Jo(e,t){if(dt(e)||e===null)return t;if(e instanceof Zs)return e;if(yK(e)){const n=e.toLowerCase();return n==="local"||n==="system"?t:n==="utc"||n==="gmt"?mn.utcInstance:mn.parseSpecifier(n)||To.create(e)}else return Ei(e)?mn.instance(e):typeof e=="object"&&e.offset&&typeof e.offset=="number"?e:new VK(e)}let Op=()=>Date.now(),Tp="system",Pp=null,Dp=null,Fp=null,Ip;class Kt{static get now(){return Op}static set now(t){Op=t}static set defaultZone(t){Tp=t}static get defaultZone(){return Jo(Tp,Hf.instance)}static get defaultLocale(){return Pp}static set defaultLocale(t){Pp=t}static get defaultNumberingSystem(){return Dp}static set defaultNumberingSystem(t){Dp=t}static get defaultOutputCalendar(){return Fp}static set defaultOutputCalendar(t){Fp=t}static get throwOnInvalid(){return Ip}static set throwOnInvalid(t){Ip=t}static resetCaches(){At.resetCache(),To.resetCache()}}let Mp={};function BK(e,t={}){const n=JSON.stringify([e,t]);let o=Mp[n];return o||(o=new Intl.ListFormat(e,t),Mp[n]=o),o}let yd={};function wd(e,t={}){const n=JSON.stringify([e,t]);let o=yd[n];return o||(o=new Intl.DateTimeFormat(e,t),yd[n]=o),o}let xd={};function UK(e,t={}){const n=JSON.stringify([e,t]);let o=xd[n];return o||(o=new Intl.NumberFormat(e,t),xd[n]=o),o}let kd={};function HK(e,t={}){const s=t,{base:n}=s,o=Nc(s,["base"]),i=JSON.stringify([e,o]);let r=kd[i];return r||(r=new Intl.RelativeTimeFormat(e,t),kd[i]=r),r}let rs=null;function qK(){return rs||(rs=new Intl.DateTimeFormat().resolvedOptions().locale,rs)}function GK(e){const t=e.indexOf("-u-");if(t===-1)return[e];{let n;const o=e.substring(0,t);try{n=wd(e).resolvedOptions()}catch{n=wd(o).resolvedOptions()}const{numberingSystem:i,calendar:r}=n;return[o,i,r]}}function WK(e,t,n){return(n||t)&&(e+="-u",n&&(e+=`-ca-${n}`),t&&(e+=`-nu-${t}`)),e}function KK(e){const t=[];for(let n=1;n<=12;n++){const o=Qe.utc(2016,n,1);t.push(e(o))}return t}function YK(e){const t=[];for(let n=1;n<=7;n++){const o=Qe.utc(2016,11,13+n);t.push(e(o))}return t}function el(e,t,n,o,i){const r=e.listingMode(n);return r==="error"?null:r==="en"?o(t):i(t)}function ZK(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 JK{constructor(t,n,o){this.padTo=o.padTo||0,this.floor=o.floor||!1;const a=o,{padTo:i,floor:r}=a,s=Nc(a,["padTo","floor"]);if(!n||Object.keys(s).length>0){const l=Je({useGrouping:!1},o);o.padTo>0&&(l.minimumIntegerDigits=o.padTo),this.inf=UK(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):Bf(t,3);return Ht(n,this.padTo)}}}class XK{constructor(t,n,o){this.opts=o;let i;if(t.zone.isUniversal){const s=-1*(t.offset/60),a=s>=0?`Etc/GMT+${s}`:`Etc/GMT${s}`;t.offset!==0&&To.create(a).valid?(i=a,this.dt=t):(i="UTC",o.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,i=t.zone.name);const r=Je({},this.opts);i&&(r.timeZone=i),this.dtf=wd(n,r)}format(){return this.dtf.format(this.dt.toJSDate())}formatToParts(){return this.dtf.formatToParts(this.dt.toJSDate())}resolvedOptions(){return this.dtf.resolvedOptions()}}class QK{constructor(t,n,o){this.opts=Je({style:"long"},o),!n&&$y()&&(this.rtf=HK(t,o))}format(t,n){return this.rtf?this.rtf.format(t,n):IK(n,t,this.opts.numeric,this.opts.style!=="long")}formatToParts(t,n){return this.rtf?this.rtf.formatToParts(t,n):[]}}class At{static fromOpts(t){return At.create(t.locale,t.numberingSystem,t.outputCalendar,t.defaultToEN)}static create(t,n,o,i=!1){const r=t||Kt.defaultLocale,s=r||(i?"en-US":qK()),a=n||Kt.defaultNumberingSystem,l=o||Kt.defaultOutputCalendar;return new At(s,a,l,r)}static resetCache(){rs=null,yd={},xd={},kd={}}static fromObject({locale:t,numberingSystem:n,outputCalendar:o}={}){return At.create(t,n,o)}constructor(t,n,o,i){const[r,s,a]=GK(t);this.locale=r,this.numberingSystem=n||s||null,this.outputCalendar=o||a||null,this.intl=WK(this.locale,this.numberingSystem,this.outputCalendar),this.weekdaysCache={format:{},standalone:{}},this.monthsCache={format:{},standalone:{}},this.meridiemCache=null,this.eraCache={},this.specifiedLocale=i,this.fastNumbersCached=null}get fastNumbers(){return this.fastNumbersCached==null&&(this.fastNumbersCached=ZK(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:At.create(t.locale||this.specifiedLocale,t.numberingSystem||this.numberingSystem,t.outputCalendar||this.outputCalendar,t.defaultToEN||!1)}redefaultToEN(t={}){return this.clone(jn(Je({},t),{defaultToEN:!0}))}redefaultToSystem(t={}){return this.clone(jn(Je({},t),{defaultToEN:!1}))}months(t,n=!1,o=!0){return el(this,t,o,Py,()=>{const i=n?{month:t,day:"numeric"}:{month:t},r=n?"format":"standalone";return this.monthsCache[r][t]||(this.monthsCache[r][t]=KK(s=>this.extract(s,i,"month"))),this.monthsCache[r][t]})}weekdays(t,n=!1,o=!0){return el(this,t,o,Iy,()=>{const i=n?{weekday:t,year:"numeric",month:"long",day:"numeric"}:{weekday:t},r=n?"format":"standalone";return this.weekdaysCache[r][t]||(this.weekdaysCache[r][t]=YK(s=>this.extract(s,i,"weekday"))),this.weekdaysCache[r][t]})}meridiems(t=!0){return el(this,void 0,t,()=>My,()=>{if(!this.meridiemCache){const n={hour:"numeric",hourCycle:"h12"};this.meridiemCache=[Qe.utc(2016,11,13,9),Qe.utc(2016,11,13,19)].map(o=>this.extract(o,n,"dayperiod"))}return this.meridiemCache})}eras(t,n=!0){return el(this,t,n,Ly,()=>{const o={era:t};return this.eraCache[t]||(this.eraCache[t]=[Qe.utc(-40,1,1),Qe.utc(2017,1,1)].map(i=>this.extract(i,o,"era"))),this.eraCache[t]})}extract(t,n,o){const i=this.dtFormatter(t,n),r=i.formatToParts(),s=r.find(a=>a.type.toLowerCase()===o);return s?s.value:null}numberFormatter(t={}){return new JK(this.intl,t.forceSimple||this.fastNumbers,t)}dtFormatter(t,n={}){return new XK(t,this.intl,n)}relFormatter(t={}){return new QK(this.intl,this.isEnglish(),t)}listFormatter(t={}){return BK(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 Pr(...e){const t=e.reduce((n,o)=>n+o.source,"");return RegExp(`^${t}$`)}function Dr(...e){return t=>e.reduce(([n,o,i],r)=>{const[s,a,l]=r(t,i);return[Je(Je({},n),s),a||o,l]},[{},null,1]).slice(0,2)}function Fr(e,...t){if(e==null)return[null,null];for(const[n,o]of t){const i=n.exec(e);if(i)return o(i)}return[null,null]}function Ry(...e){return(t,n)=>{const o={};let i;for(i=0;i<e.length;i++)o[e[i]]=Yo(t[n+i]);return[o,null,n+i]}}const Ny=/(?:(Z)|([+-]\d\d)(?::?(\d\d))?)/,eY=`(?:${Ny.source}?(?:\\[(${Oy.source})\\])?)?`,qf=/(\d\d)(?::?(\d\d)(?::?(\d\d)(?:[.,](\d{1,30}))?)?)?/,jy=RegExp(`${qf.source}${eY}`),Gf=RegExp(`(?:T${jy.source})?`),tY=/([+-]\d{6}|\d{4})(?:-?(\d\d)(?:-?(\d\d))?)?/,nY=/(\d{4})-?W(\d\d)(?:-?(\d))?/,oY=/(\d{4})-?(\d{3})/,iY=Ry("weekYear","weekNumber","weekDay"),rY=Ry("year","ordinal"),sY=/(\d{4})-(\d\d)-(\d\d)/,Vy=RegExp(`${qf.source} ?(?:${Ny.source}|(${Oy.source}))?`),aY=RegExp(`(?: ${Vy.source})?`);function dr(e,t,n){const o=e[t];return dt(o)?n:Yo(o)}function lY(e,t){return[{year:dr(e,t),month:dr(e,t+1,1),day:dr(e,t+2,1)},null,t+3]}function Ir(e,t){return[{hours:dr(e,t,0),minutes:dr(e,t+1,0),seconds:dr(e,t+2,0),milliseconds:Vf(e[t+3])},null,t+4]}function Js(e,t){const n=!e[t]&&!e[t+1],o=Sc(e[t+1],e[t+2]),i=n?null:mn.instance(o);return[{},i,t+3]}function Xs(e,t){const n=e[t]?To.create(e[t]):null;return[{},n,t+1]}const cY=RegExp(`^T?${qf.source}$`),uY=/^-?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 dY(e){const[t,n,o,i,r,s,a,l,u]=e,d=t[0]==="-",m=l&&l[0]==="-",f=(h,p=!1)=>h!==void 0&&(p||h&&d)?-h:h;return[{years:f(bi(n)),months:f(bi(o)),weeks:f(bi(i)),days:f(bi(r)),hours:f(bi(s)),minutes:f(bi(a)),seconds:f(bi(l),l==="-0"),milliseconds:f(Vf(u),m)}]}const fY={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 Wf(e,t,n,o,i,r,s){const a={year:t.length===2?_d(Yo(t)):Yo(t),month:Ty.indexOf(n)+1,day:Yo(o),hour:Yo(i),minute:Yo(r)};return s&&(a.second=Yo(s)),e&&(a.weekday=e.length>3?Dy.indexOf(e)+1:Fy.indexOf(e)+1),a}const mY=/^(?:(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 hY(e){const[,t,n,o,i,r,s,a,l,u,d,m]=e,f=Wf(t,i,o,n,r,s,a);let h;return l?h=fY[l]:u?h=0:h=Sc(d,m),[f,new mn(h)]}function pY(e){return e.replace(/\([^)]*\)|[\n\t]/g," ").replace(/(\s\s+)/g," ").trim()}const bY=/^(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$/,gY=/^(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$/,vY=/^(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 Lp(e){const[,t,n,o,i,r,s,a]=e;return[Wf(t,i,o,n,r,s,a),mn.utcInstance]}function _Y(e){const[,t,n,o,i,r,s,a]=e;return[Wf(t,a,n,o,i,r,s),mn.utcInstance]}const yY=Pr(tY,Gf),wY=Pr(nY,Gf),xY=Pr(oY,Gf),kY=Pr(jy),By=Dr(lY,Ir,Js,Xs),CY=Dr(iY,Ir,Js,Xs),zY=Dr(rY,Ir,Js,Xs),SY=Dr(Ir,Js,Xs);function $Y(e){return Fr(e,[yY,By],[wY,CY],[xY,zY],[kY,SY])}function EY(e){return Fr(pY(e),[mY,hY])}function AY(e){return Fr(e,[bY,Lp],[gY,Lp],[vY,_Y])}function OY(e){return Fr(e,[uY,dY])}const TY=Dr(Ir);function PY(e){return Fr(e,[cY,TY])}const DY=Pr(sY,aY),FY=Pr(Vy),IY=Dr(Ir,Js,Xs);function MY(e){return Fr(e,[DY,By],[FY,IY])}const LY="Invalid Duration",Uy={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}},RY=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}},Uy),Un=146097/400,Ji=146097/4800,NY=Je({years:{quarters:4,months:12,weeks:Un/7,days:Un,hours:Un*24,minutes:Un*24*60,seconds:Un*24*60*60,milliseconds:Un*24*60*60*1e3},quarters:{months:3,weeks:Un/28,days:Un/4,hours:Un*24/4,minutes:Un*24*60/4,seconds:Un*24*60*60/4,milliseconds:Un*24*60*60*1e3/4},months:{weeks:Ji/7,days:Ji,hours:Ji*24,minutes:Ji*24*60,seconds:Ji*24*60*60,milliseconds:Ji*24*60*60*1e3}},Uy),yi=["years","quarters","months","weeks","days","hours","minutes","seconds","milliseconds"],jY=yi.slice(0).reverse();function gi(e,t,n=!1){const o={values:n?t.values:Je(Je({},e.values),t.values||{}),loc:e.loc.clone(t.loc),conversionAccuracy:t.conversionAccuracy||e.conversionAccuracy};return new st(o)}function VY(e){return e<0?Math.floor(e):Math.ceil(e)}function Hy(e,t,n,o,i){const r=e[i][n],s=t[n]/r,a=Math.sign(s)===Math.sign(o[i]),l=!a&&o[i]!==0&&Math.abs(s)<=1?VY(s):Math.trunc(s);o[i]+=l,t[n]-=l*r}function BY(e,t){jY.reduce((n,o)=>dt(t[o])?n:(n&&Hy(e,t,n,t,o),o),null)}class st{constructor(t){const n=t.conversionAccuracy==="longterm"||!1;this.values=t.values,this.loc=t.loc||At.create(),this.conversionAccuracy=n?"longterm":"casual",this.invalid=t.invalid||null,this.matrix=n?NY:RY,this.isLuxonDuration=!0}static fromMillis(t,n){return st.fromObject({milliseconds:t},n)}static fromObject(t,n={}){if(t==null||typeof t!="object")throw new Hn(`Duration.fromObject: argument expected to be an object, got ${t===null?"null":typeof t}`);return new st({values:jl(t,st.normalizeUnit),loc:At.fromObject(n),conversionAccuracy:n.conversionAccuracy})}static fromDurationLike(t){if(Ei(t))return st.fromMillis(t);if(st.isDuration(t))return t;if(typeof t=="object")return st.fromObject(t);throw new Hn(`Unknown duration argument ${t} of type ${typeof t}`)}static fromISO(t,n){const[o]=OY(t);return o?st.fromObject(o,n):st.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static fromISOTime(t,n){const[o]=PY(t);return o?st.fromObject(o,n):st.invalid("unparsable",`the input "${t}" can't be parsed as ISO 8601`)}static invalid(t,n=null){if(!t)throw new Hn("need to specify a reason the Duration is invalid");const o=t instanceof oo?t:new oo(t,n);if(Kt.throwOnInvalid)throw new gK(o);return new st({invalid:o})}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 ay(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 o=jn(Je({},n),{floor:n.round!==!1&&n.floor!==!1});return this.isValid?Cn.create(this.loc,o).formatDurationFromString(this,t):LY}toHuman(t={}){const n=yi.map(o=>{const i=this.values[o];return dt(i)?null:this.loc.numberFormatter(jn(Je({style:"unit",unitDisplay:"long"},t),{unit:o.slice(0,-1)})).format(i)}).filter(o=>o);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+=Bf(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 o=this.shiftTo("hours","minutes","seconds","milliseconds");let i=t.format==="basic"?"hhmm":"hh:mm";(!t.suppressSeconds||o.seconds!==0||o.milliseconds!==0)&&(i+=t.format==="basic"?"ss":":ss",(!t.suppressMilliseconds||o.milliseconds!==0)&&(i+=".SSS"));let r=o.toFormat(i);return t.includePrefix&&(r="T"+r),r}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=st.fromDurationLike(t),o={};for(const i of yi)(Sr(n.values,i)||Sr(this.values,i))&&(o[i]=n.get(i)+this.get(i));return gi(this,{values:o},!0)}minus(t){if(!this.isValid)return this;const n=st.fromDurationLike(t);return this.plus(n.negate())}mapUnits(t){if(!this.isValid)return this;const n={};for(const o of Object.keys(this.values))n[o]=Ay(t(this.values[o],o));return gi(this,{values:n},!0)}get(t){return this[st.normalizeUnit(t)]}set(t){if(!this.isValid)return this;const n=Je(Je({},this.values),jl(t,st.normalizeUnit));return gi(this,{values:n})}reconfigure({locale:t,numberingSystem:n,conversionAccuracy:o}={}){const i=this.loc.clone({locale:t,numberingSystem:n}),r={loc:i};return o&&(r.conversionAccuracy=o),gi(this,r)}as(t){return this.isValid?this.shiftTo(t).get(t):NaN}normalize(){if(!this.isValid)return this;const t=this.toObject();return BY(this.matrix,t),gi(this,{values:t},!0)}shiftTo(...t){if(!this.isValid)return this;if(t.length===0)return this;t=t.map(s=>st.normalizeUnit(s));const n={},o={},i=this.toObject();let r;for(const s of yi)if(t.indexOf(s)>=0){r=s;let a=0;for(const u in o)a+=this.matrix[u][s]*o[u],o[u]=0;Ei(i[s])&&(a+=i[s]);const l=Math.trunc(a);n[s]=l,o[s]=(a*1e3-l*1e3)/1e3;for(const u in i)yi.indexOf(u)>yi.indexOf(s)&&Hy(this.matrix,i,u,n,s)}else Ei(i[s])&&(o[s]=i[s]);for(const s in o)o[s]!==0&&(n[r]+=s===r?o[s]:o[s]/this.matrix[r][s]);return gi(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 gi(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(o,i){return o===void 0||o===0?i===void 0||i===0:o===i}for(const o of yi)if(!n(this.values[o],t.values[o]))return!1;return!0}}const Gr="Invalid Interval";function UY(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 Hn("need to specify a reason the Interval is invalid");const o=t instanceof oo?t:new oo(t,n);if(Kt.throwOnInvalid)throw new bK(o);return new It({invalid:o})}static fromDateTimes(t,n){const o=Yr(t),i=Yr(n),r=UY(o,i);return r==null?new It({start:o,end:i}):r}static after(t,n){const o=st.fromDurationLike(n),i=Yr(t);return It.fromDateTimes(i,i.plus(o))}static before(t,n){const o=st.fromDurationLike(n),i=Yr(t);return It.fromDateTimes(i.minus(o),i)}static fromISO(t,n){const[o,i]=(t||"").split("/",2);if(o&&i){let r,s;try{r=Qe.fromISO(o,n),s=r.isValid}catch{s=!1}let a,l;try{a=Qe.fromISO(i,n),l=a.isValid}catch{l=!1}if(s&&l)return It.fromDateTimes(r,a);if(s){const u=st.fromISO(i,n);if(u.isValid)return It.after(r,u)}else if(l){const u=st.fromISO(o,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),o=this.end.startOf(t);return Math.floor(o.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(Yr).filter(s=>this.contains(s)).sort(),o=[];let{s:i}=this,r=0;for(;i<this.e;){const s=n[r]||this.e,a=+s>+this.e?this.e:s;o.push(It.fromDateTimes(i,a)),i=a,r+=1}return o}splitBy(t){const n=st.fromDurationLike(t);if(!this.isValid||!n.isValid||n.as("milliseconds")===0)return[];let{s:o}=this,i=1,r;const s=[];for(;o<this.e;){const a=this.start.plus(n.mapUnits(l=>l*i));r=+a>+this.e?this.e:a,s.push(It.fromDateTimes(o,r)),o=r,i+=1}return s}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,o=this.e<t.e?this.e:t.e;return n>=o?null:It.fromDateTimes(n,o)}union(t){if(!this.isValid)return this;const n=this.s<t.s?this.s:t.s,o=this.e>t.e?this.e:t.e;return It.fromDateTimes(n,o)}static merge(t){const[n,o]=t.sort((i,r)=>i.s-r.s).reduce(([i,r],s)=>r?r.overlaps(s)||r.abutsStart(s)?[i,r.union(s)]:[i.concat([r]),s]:[i,s],[[],null]);return o&&n.push(o),n}static xor(t){let n=null,o=0;const i=[],r=t.map(l=>[{time:l.s,type:"s"},{time:l.e,type:"e"}]),s=Array.prototype.concat(...r),a=s.sort((l,u)=>l.time-u.time);for(const l of a)o+=l.type==="s"?1:-1,o===1?n=l.time:(n&&+n!=+l.time&&i.push(It.fromDateTimes(n,l.time)),n=null);return It.merge(i)}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()})`:Gr}toISO(t){return this.isValid?`${this.s.toISO(t)}/${this.e.toISO(t)}`:Gr}toISODate(){return this.isValid?`${this.s.toISODate()}/${this.e.toISODate()}`:Gr}toISOTime(t){return this.isValid?`${this.s.toISOTime(t)}/${this.e.toISOTime(t)}`:Gr}toFormat(t,{separator:n=" \u2013 "}={}){return this.isValid?`${this.s.toFormat(t)}${n}${this.e.toFormat(t)}`:Gr}toDuration(t,n){return this.isValid?this.e.diff(this.s,t,n):st.invalid(this.invalidReason)}mapEndpoints(t){return It.fromDateTimes(t(this.s),t(this.e))}}class tl{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 To.isValidZone(t)}static normalizeZone(t){return Jo(t,Kt.defaultZone)}static months(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||At.create(n,o,r)).months(t)}static monthsFormat(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null,outputCalendar:r="gregory"}={}){return(i||At.create(n,o,r)).months(t,!0)}static weekdays(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null}={}){return(i||At.create(n,o,null)).weekdays(t)}static weekdaysFormat(t="long",{locale:n=null,numberingSystem:o=null,locObj:i=null}={}){return(i||At.create(n,o,null)).weekdays(t,!0)}static meridiems({locale:t=null}={}){return At.create(t).meridiems()}static eras(t="short",{locale:n=null}={}){return At.create(n,null,"gregory").eras(t)}static features(){return{relative:$y()}}}function Rp(e,t){const n=i=>i.toUTC(0,{keepLocalTime:!0}).startOf("day").valueOf(),o=n(t)-n(e);return Math.floor(st.fromMillis(o).as("days"))}function HY(e,t,n){const o=[["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=Rp(a,l);return(u-u%7)/7}],["days",Rp]],i={};let r,s;for(const[a,l]of o)if(n.indexOf(a)>=0){r=a;let u=l(e,t);s=e.plus({[a]:u}),s>t?(e=e.plus({[a]:u-1}),u-=1):e=s,i[a]=u}return[e,i,s,r]}function qY(e,t,n,o){let[i,r,s,a]=HY(e,t,n);const l=t-i,u=n.filter(m=>["hours","minutes","seconds","milliseconds"].indexOf(m)>=0);u.length===0&&(s<t&&(s=i.plus({[a]:1})),s!==i&&(r[a]=(r[a]||0)+l/(s-i)));const d=st.fromObject(r,o);return u.length>0?st.fromMillis(l,o).shiftTo(...u).plus(d):d}const Kf={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"},Np={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]},GY=Kf.hanidec.replace(/[\[|\]]/g,"").split("");function WY(e){let t=parseInt(e,10);if(isNaN(t)){t="";for(let n=0;n<e.length;n++){const o=e.charCodeAt(n);if(e[n].search(Kf.hanidec)!==-1)t+=GY.indexOf(e[n]);else for(const i in Np){const[r,s]=Np[i];o>=r&&o<=s&&(t+=o-r)}}return parseInt(t,10)}else return t}function Qn({numberingSystem:e},t=""){return new RegExp(`${Kf[e||"latn"]}${t}`)}const KY="missing Intl.DateTimeFormat.formatToParts support";function gt(e,t=n=>n){return{regex:e,deser:([n])=>t(WY(n))}}const YY=String.fromCharCode(160),qy=`[ ${YY}]`,Gy=new RegExp(qy,"g");function ZY(e){return e.replace(/\./g,"\\.?").replace(Gy,qy)}function jp(e){return e.replace(/\./g,"").replace(Gy," ").toLowerCase()}function eo(e,t){return e===null?null:{regex:RegExp(e.map(ZY).join("|")),deser:([n])=>e.findIndex(o=>jp(n)===jp(o))+t}}function Vp(e,t){return{regex:e,deser:([,n,o])=>Sc(n,o),groups:t}}function gu(e){return{regex:e,deser:([t])=>t}}function JY(e){return e.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function XY(e,t){const n=Qn(t),o=Qn(t,"{2}"),i=Qn(t,"{3}"),r=Qn(t,"{4}"),s=Qn(t,"{6}"),a=Qn(t,"{1,2}"),l=Qn(t,"{1,3}"),u=Qn(t,"{1,6}"),d=Qn(t,"{1,9}"),m=Qn(t,"{2,4}"),f=Qn(t,"{4,6}"),h=g=>({regex:RegExp(JY(g.val)),deser:([y])=>y,literal:!0}),b=(g=>{if(e.literal)return h(g);switch(g.val){case"G":return eo(t.eras("short",!1),0);case"GG":return eo(t.eras("long",!1),0);case"y":return gt(u);case"yy":return gt(m,_d);case"yyyy":return gt(r);case"yyyyy":return gt(f);case"yyyyyy":return gt(s);case"M":return gt(a);case"MM":return gt(o);case"MMM":return eo(t.months("short",!0,!1),1);case"MMMM":return eo(t.months("long",!0,!1),1);case"L":return gt(a);case"LL":return gt(o);case"LLL":return eo(t.months("short",!1,!1),1);case"LLLL":return eo(t.months("long",!1,!1),1);case"d":return gt(a);case"dd":return gt(o);case"o":return gt(l);case"ooo":return gt(i);case"HH":return gt(o);case"H":return gt(a);case"hh":return gt(o);case"h":return gt(a);case"mm":return gt(o);case"m":return gt(a);case"q":return gt(a);case"qq":return gt(o);case"s":return gt(a);case"ss":return gt(o);case"S":return gt(l);case"SSS":return gt(i);case"u":return gu(d);case"uu":return gu(a);case"uuu":return gt(n);case"a":return eo(t.meridiems(),0);case"kkkk":return gt(r);case"kk":return gt(m,_d);case"W":return gt(a);case"WW":return gt(o);case"E":case"c":return gt(n);case"EEE":return eo(t.weekdays("short",!1,!1),1);case"EEEE":return eo(t.weekdays("long",!1,!1),1);case"ccc":return eo(t.weekdays("short",!0,!1),1);case"cccc":return eo(t.weekdays("long",!0,!1),1);case"Z":case"ZZ":return Vp(new RegExp(`([+-]${a.source})(?::(${o.source}))?`),2);case"ZZZ":return Vp(new RegExp(`([+-]${a.source})(${o.source})?`),2);case"z":return gu(/[a-z_+-/]{1,256}?/i);default:return h(g)}})(e)||{invalidReason:KY};return b.token=e,b}const QY={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 eZ(e,t,n){const{type:o,value:i}=e;if(o==="literal")return{literal:!0,val:i};const r=n[o];let s=QY[o];if(typeof s=="object"&&(s=s[r]),s)return{literal:!1,val:s}}function tZ(e){return[`^${e.map(n=>n.regex).reduce((n,o)=>`${n}(${o.source})`,"")}$`,e]}function nZ(e,t,n){const o=e.match(t);if(o){const i={};let r=1;for(const s in n)if(Sr(n,s)){const a=n[s],l=a.groups?a.groups+1:1;!a.literal&&a.token&&(i[a.token.val[0]]=a.deser(o.slice(r,r+l))),r+=l}return[o,i]}else return[o,{}]}function oZ(e){const t=r=>{switch(r){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,o;return dt(e.z)||(n=To.create(e.z)),dt(e.Z)||(n||(n=new mn(e.Z)),o=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=Vf(e.u)),[Object.keys(e).reduce((r,s)=>{const a=t(s);return a&&(r[a]=e[s]),r},{}),n,o]}let vu=null;function iZ(){return vu||(vu=Qe.fromMillis(1555555555555)),vu}function rZ(e,t){if(e.literal)return e;const n=Cn.macroTokenToFormatOpts(e.val);if(!n)return e;const r=Cn.create(t,n).formatDateTimeParts(iZ()).map(s=>eZ(s,t,n));return r.includes(void 0)?e:r}function sZ(e,t){return Array.prototype.concat(...e.map(n=>rZ(n,t)))}function Wy(e,t,n){const o=sZ(Cn.parseFormat(n),e),i=o.map(s=>XY(s,e)),r=i.find(s=>s.invalidReason);if(r)return{input:t,tokens:o,invalidReason:r.invalidReason};{const[s,a]=tZ(i),l=RegExp(s,"i"),[u,d]=nZ(t,l,a),[m,f,h]=d?oZ(d):[null,null,void 0];if(Sr(d,"a")&&Sr(d,"H"))throw new is("Can't include meridiem when specifying 24-hour format");return{input:t,tokens:o,regex:l,rawMatches:u,matches:d,result:m,zone:f,specificOffset:h}}}function aZ(e,t,n){const{result:o,zone:i,specificOffset:r,invalidReason:s}=Wy(e,t,n);return[o,i,r,s]}const Ky=[0,31,59,90,120,151,181,212,243,273,304,334],Yy=[0,31,60,91,121,152,182,213,244,274,305,335];function Gn(e,t){return new oo("unit out of range",`you specified ${t} (of type ${typeof t}) as a ${e}, which is invalid`)}function Zy(e,t,n){const o=new Date(Date.UTC(e,t-1,n));e<100&&e>=0&&o.setUTCFullYear(o.getUTCFullYear()-1900);const i=o.getUTCDay();return i===0?7:i}function Jy(e,t,n){return n+(Ys(e)?Yy:Ky)[t-1]}function Xy(e,t){const n=Ys(e)?Yy:Ky,o=n.findIndex(r=>r<t),i=t-n[o];return{month:o+1,day:i}}function Cd(e){const{year:t,month:n,day:o}=e,i=Jy(t,n,o),r=Zy(t,n,o);let s=Math.floor((i-r+10)/7),a;return s<1?(a=t-1,s=Nl(a)):s>Nl(t)?(a=t+1,s=1):a=t,Je({weekYear:a,weekNumber:s,weekday:r},$c(e))}function Bp(e){const{weekYear:t,weekNumber:n,weekday:o}=e,i=Zy(t,1,4),r=zs(t);let s=n*7+o-i-3,a;s<1?(a=t-1,s+=zs(a)):s>r?(a=t+1,s-=zs(t)):a=t;const{month:l,day:u}=Xy(a,s);return Je({year:a,month:l,day:u},$c(e))}function _u(e){const{year:t,month:n,day:o}=e,i=Jy(t,n,o);return Je({year:t,ordinal:i},$c(e))}function Up(e){const{year:t,ordinal:n}=e,{month:o,day:i}=Xy(t,n);return Je({year:t,month:o,day:i},$c(e))}function lZ(e){const t=zc(e.weekYear),n=$o(e.weekNumber,1,Nl(e.weekYear)),o=$o(e.weekday,1,7);return t?n?o?!1:Gn("weekday",e.weekday):Gn("week",e.week):Gn("weekYear",e.weekYear)}function cZ(e){const t=zc(e.year),n=$o(e.ordinal,1,zs(e.year));return t?n?!1:Gn("ordinal",e.ordinal):Gn("year",e.year)}function Qy(e){const t=zc(e.year),n=$o(e.month,1,12),o=$o(e.day,1,Rl(e.year,e.month));return t?n?o?!1:Gn("day",e.day):Gn("month",e.month):Gn("year",e.year)}function e0(e){const{hour:t,minute:n,second:o,millisecond:i}=e,r=$o(t,0,23)||t===24&&n===0&&o===0&&i===0,s=$o(n,0,59),a=$o(o,0,59),l=$o(i,0,999);return r?s?a?l?!1:Gn("millisecond",i):Gn("second",o):Gn("minute",n):Gn("hour",t)}const yu="Invalid DateTime",Hp=864e13;function nl(e){return new oo("unsupported zone",`the zone "${e.name}" is not supported`)}function wu(e){return e.weekData===null&&(e.weekData=Cd(e.c)),e.weekData}function Wr(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(jn(Je(Je({},n),t),{old:n}))}function t0(e,t,n){let o=e-t*60*1e3;const i=n.offset(o);if(t===i)return[o,t];o-=(i-t)*60*1e3;const r=n.offset(o);return i===r?[o,i]:[e-Math.min(i,r)*60*1e3,Math.max(i,r)]}function qp(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 pl(e,t,n){return t0(Uf(e),t,n)}function Gp(e,t){const n=e.o,o=e.c.year+Math.trunc(t.years),i=e.c.month+Math.trunc(t.months)+Math.trunc(t.quarters)*3,r=jn(Je({},e.c),{year:o,month:i,day:Math.min(e.c.day,Rl(o,i))+Math.trunc(t.days)+Math.trunc(t.weeks)*7}),s=st.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=Uf(r);let[l,u]=t0(a,n,e.zone);return s!==0&&(l+=s,u=e.zone.offset(l)),{ts:l,o:u}}function Kr(e,t,n,o,i,r){const{setZone:s,zone:a}=n;if(e&&Object.keys(e).length!==0){const l=t||a,u=Qe.fromObject(e,jn(Je({},n),{zone:l,specificOffset:r}));return s?u:u.setZone(a)}else return Qe.invalid(new oo("unparsable",`the input "${i}" can't be parsed as ${o}`))}function ol(e,t,n=!0){return e.isValid?Cn.create(At.create("en-US"),{allowZ:n,forceSimple:!0}).formatDateTimeFromString(e,t):null}function xu(e,t){const n=e.c.year>9999||e.c.year<0;let o="";return n&&e.c.year>=0&&(o+="+"),o+=Ht(e.c.year,n?6:4),t?(o+="-",o+=Ht(e.c.month),o+="-",o+=Ht(e.c.day)):(o+=Ht(e.c.month),o+=Ht(e.c.day)),o}function Wp(e,t,n,o,i,r){let s=Ht(e.c.hour);return t?(s+=":",s+=Ht(e.c.minute),(e.c.second!==0||!n)&&(s+=":")):s+=Ht(e.c.minute),(e.c.second!==0||!n)&&(s+=Ht(e.c.second),(e.c.millisecond!==0||!o)&&(s+=".",s+=Ht(e.c.millisecond,3))),i&&(e.isOffsetFixed&&e.offset===0&&!r?s+="Z":e.o<0?(s+="-",s+=Ht(Math.trunc(-e.o/60)),s+=":",s+=Ht(Math.trunc(-e.o%60))):(s+="+",s+=Ht(Math.trunc(e.o/60)),s+=":",s+=Ht(Math.trunc(e.o%60)))),r&&(s+="["+e.zone.ianaName+"]"),s}const n0={month:1,day:1,hour:0,minute:0,second:0,millisecond:0},uZ={weekNumber:1,weekday:1,hour:0,minute:0,second:0,millisecond:0},dZ={ordinal:1,hour:0,minute:0,second:0,millisecond:0},o0=["year","month","day","hour","minute","second","millisecond"],fZ=["weekYear","weekNumber","weekday","hour","minute","second","millisecond"],mZ=["year","ordinal","hour","minute","second","millisecond"];function Kp(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 ay(e);return t}function Yp(e,t){const n=Jo(t.zone,Kt.defaultZone),o=At.fromObject(t),i=Kt.now();let r,s;if(dt(e.year))r=i;else{for(const u of o0)dt(e[u])&&(e[u]=n0[u]);const a=Qy(e)||e0(e);if(a)return Qe.invalid(a);const l=n.offset(i);[r,s]=pl(e,l,n)}return new Qe({ts:r,zone:n,loc:o,o:s})}function Zp(e,t,n){const o=dt(n.round)?!0:n.round,i=(s,a)=>(s=Bf(s,o||n.calendary?0:2,!0),t.loc.clone(n).relFormatter(n).format(s,a)),r=s=>n.calendary?t.hasSame(e,s)?0:t.startOf(s).diff(e.startOf(s),s).get(s):t.diff(e,s).get(s);if(n.unit)return i(r(n.unit),n.unit);for(const s of n.units){const a=r(s);if(Math.abs(a)>=1)return i(a,s)}return i(e>t?-0:0,n.units[n.units.length-1])}function Jp(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 o=t.invalid||(Number.isNaN(t.ts)?new oo("invalid input"):null)||(n.isValid?null:nl(n));this.ts=dt(t.ts)?Kt.now():t.ts;let i=null,r=null;if(!o)if(t.old&&t.old.ts===this.ts&&t.old.zone.equals(n))[i,r]=[t.old.c,t.old.o];else{const a=n.offset(this.ts);i=qp(this.ts,a),o=Number.isNaN(i.year)?new oo("invalid input"):null,i=o?null:i,r=o?null:a}this._zone=n,this.loc=t.loc||At.create(),this.invalid=o,this.weekData=null,this.c=i,this.o=r,this.isLuxonDateTime=!0}static now(){return new Qe({})}static local(){const[t,n]=Jp(arguments),[o,i,r,s,a,l,u]=n;return Yp({year:o,month:i,day:r,hour:s,minute:a,second:l,millisecond:u},t)}static utc(){const[t,n]=Jp(arguments),[o,i,r,s,a,l,u]=n;return t.zone=mn.utcInstance,Yp({year:o,month:i,day:r,hour:s,minute:a,second:l,millisecond:u},t)}static fromJSDate(t,n={}){const o=wK(t)?t.valueOf():NaN;if(Number.isNaN(o))return Qe.invalid("invalid input");const i=Jo(n.zone,Kt.defaultZone);return i.isValid?new Qe({ts:o,zone:i,loc:At.fromObject(n)}):Qe.invalid(nl(i))}static fromMillis(t,n={}){if(Ei(t))return t<-Hp||t>Hp?Qe.invalid("Timestamp out of range"):new Qe({ts:t,zone:Jo(n.zone,Kt.defaultZone),loc:At.fromObject(n)});throw new Hn(`fromMillis requires a numerical input, but received a ${typeof t} with value ${t}`)}static fromSeconds(t,n={}){if(Ei(t))return new Qe({ts:t*1e3,zone:Jo(n.zone,Kt.defaultZone),loc:At.fromObject(n)});throw new Hn("fromSeconds requires a numerical input")}static fromObject(t,n={}){t=t||{};const o=Jo(n.zone,Kt.defaultZone);if(!o.isValid)return Qe.invalid(nl(o));const i=Kt.now(),r=dt(n.specificOffset)?o.offset(i):n.specificOffset,s=jl(t,Kp),a=!dt(s.ordinal),l=!dt(s.year),u=!dt(s.month)||!dt(s.day),d=l||u,m=s.weekYear||s.weekNumber,f=At.fromObject(n);if((d||a)&&m)throw new is("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(u&&a)throw new is("Can't mix ordinal dates with month/day");const h=m||s.weekday&&!d;let p,b,g=qp(i,r);h?(p=fZ,b=uZ,g=Cd(g)):a?(p=mZ,b=dZ,g=_u(g)):(p=o0,b=n0);let y=!1;for(const F of p){const A=s[F];dt(A)?y?s[F]=b[F]:s[F]=g[F]:y=!0}const w=h?lZ(s):a?cZ(s):Qy(s),C=w||e0(s);if(C)return Qe.invalid(C);const k=h?Bp(s):a?Up(s):s,[$,O]=pl(k,r,o),j=new Qe({ts:$,zone:o,o:O,loc:f});return s.weekday&&d&&t.weekday!==j.weekday?Qe.invalid("mismatched weekday",`you can't specify both a weekday of ${s.weekday} and a date of ${j.toISO()}`):j}static fromISO(t,n={}){const[o,i]=$Y(t);return Kr(o,i,n,"ISO 8601",t)}static fromRFC2822(t,n={}){const[o,i]=EY(t);return Kr(o,i,n,"RFC 2822",t)}static fromHTTP(t,n={}){const[o,i]=AY(t);return Kr(o,i,n,"HTTP",n)}static fromFormat(t,n,o={}){if(dt(t)||dt(n))throw new Hn("fromFormat requires an input string and a format");const{locale:i=null,numberingSystem:r=null}=o,s=At.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0}),[a,l,u,d]=aZ(s,t,n);return d?Qe.invalid(d):Kr(a,l,o,`format ${n}`,t,u)}static fromString(t,n,o={}){return Qe.fromFormat(t,n,o)}static fromSQL(t,n={}){const[o,i]=MY(t);return Kr(o,i,n,"SQL",t)}static invalid(t,n=null){if(!t)throw new Hn("need to specify a reason the DateTime is invalid");const o=t instanceof oo?t:new oo(t,n);if(Kt.throwOnInvalid)throw new pK(o);return new Qe({invalid:o})}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?wu(this).weekYear:NaN}get weekNumber(){return this.isValid?wu(this).weekNumber:NaN}get weekday(){return this.isValid?wu(this).weekday:NaN}get ordinal(){return this.isValid?_u(this.c).ordinal:NaN}get monthShort(){return this.isValid?tl.months("short",{locObj:this.loc})[this.month-1]:null}get monthLong(){return this.isValid?tl.months("long",{locObj:this.loc})[this.month-1]:null}get weekdayShort(){return this.isValid?tl.weekdays("short",{locObj:this.loc})[this.weekday-1]:null}get weekdayLong(){return this.isValid?tl.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,day:1}).offset||this.offset>this.set({month:5}).offset}get isInLeapYear(){return Ys(this.year)}get daysInMonth(){return Rl(this.year,this.month)}get daysInYear(){return this.isValid?zs(this.year):NaN}get weeksInWeekYear(){return this.isValid?Nl(this.weekYear):NaN}resolvedLocaleOptions(t={}){const{locale:n,numberingSystem:o,calendar:i}=Cn.create(this.loc.clone(t),t).resolvedOptions(this);return{locale:n,numberingSystem:o,outputCalendar:i}}toUTC(t=0,n={}){return this.setZone(mn.instance(t),n)}toLocal(){return this.setZone(Kt.defaultZone)}setZone(t,{keepLocalTime:n=!1,keepCalendarTime:o=!1}={}){if(t=Jo(t,Kt.defaultZone),t.equals(this.zone))return this;if(t.isValid){let i=this.ts;if(n||o){const r=t.offset(this.ts),s=this.toObject();[i]=pl(s,r,t)}return Wr(this,{ts:i,zone:t})}else return Qe.invalid(nl(t))}reconfigure({locale:t,numberingSystem:n,outputCalendar:o}={}){const i=this.loc.clone({locale:t,numberingSystem:n,outputCalendar:o});return Wr(this,{loc:i})}setLocale(t){return this.reconfigure({locale:t})}set(t){if(!this.isValid)return this;const n=jl(t,Kp),o=!dt(n.weekYear)||!dt(n.weekNumber)||!dt(n.weekday),i=!dt(n.ordinal),r=!dt(n.year),s=!dt(n.month)||!dt(n.day),a=r||s,l=n.weekYear||n.weekNumber;if((a||i)&&l)throw new is("Can't mix weekYear/weekNumber units with year/month/day or ordinals");if(s&&i)throw new is("Can't mix ordinal dates with month/day");let u;o?u=Bp(Je(Je({},Cd(this.c)),n)):dt(n.ordinal)?(u=Je(Je({},this.toObject()),n),dt(n.day)&&(u.day=Math.min(Rl(u.year,u.month),u.day))):u=Up(Je(Je({},_u(this.c)),n));const[d,m]=pl(u,this.o,this.zone);return Wr(this,{ts:d,o:m})}plus(t){if(!this.isValid)return this;const n=st.fromDurationLike(t);return Wr(this,Gp(this,n))}minus(t){if(!this.isValid)return this;const n=st.fromDurationLike(t).negate();return Wr(this,Gp(this,n))}startOf(t){if(!this.isValid)return this;const n={},o=st.normalizeUnit(t);switch(o){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(o==="weeks"&&(n.weekday=1),o==="quarters"){const i=Math.ceil(this.month/3);n.month=(i-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?Cn.create(this.loc.redefaultToEN(n)).formatDateTimeFromString(this,t):yu}toLocaleString(t=vd,n={}){return this.isValid?Cn.create(this.loc.clone(n),t).formatDateTime(this):yu}toLocaleParts(t={}){return this.isValid?Cn.create(this.loc.clone(t),t).formatDateTimeParts(this):[]}toISO({format:t="extended",suppressSeconds:n=!1,suppressMilliseconds:o=!1,includeOffset:i=!0,extendedZone:r=!1}={}){if(!this.isValid)return null;const s=t==="extended";let a=xu(this,s);return a+="T",a+=Wp(this,s,n,o,i,r),a}toISODate({format:t="extended"}={}){return this.isValid?xu(this,t==="extended"):null}toISOWeekDate(){return ol(this,"kkkk-'W'WW-c")}toISOTime({suppressMilliseconds:t=!1,suppressSeconds:n=!1,includeOffset:o=!0,includePrefix:i=!1,extendedZone:r=!1,format:s="extended"}={}){return this.isValid?(i?"T":"")+Wp(this,s==="extended",n,t,o,r):null}toRFC2822(){return ol(this,"EEE, dd LLL yyyy HH:mm:ss ZZZ",!1)}toHTTP(){return ol(this.toUTC(),"EEE, dd LLL yyyy HH:mm:ss 'GMT'")}toSQLDate(){return this.isValid?xu(this,!0):null}toSQLTime({includeOffset:t=!0,includeZone:n=!1,includeOffsetSpace:o=!0}={}){let i="HH:mm:ss.SSS";return(n||t)&&(o&&(i+=" "),n?i+="z":t&&(i+="ZZ")),ol(this,i,!0)}toSQL(t={}){return this.isValid?`${this.toSQLDate()} ${this.toSQLTime(t)}`:null}toString(){return this.isValid?this.toISO():yu}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",o={}){if(!this.isValid||!t.isValid)return st.invalid("created by diffing an invalid DateTime");const i=Je({locale:this.locale,numberingSystem:this.numberingSystem},o),r=xK(n).map(st.normalizeUnit),s=t.valueOf()>this.valueOf(),a=s?this:t,l=s?t:this,u=qY(a,l,r,i);return s?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 o=t.valueOf(),i=this.setZone(t.zone,{keepLocalTime:!0});return i.startOf(n)<=o&&o<=i.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}),o=t.padding?this<n?-t.padding:t.padding:0;let i=["years","months","days","hours","minutes","seconds"],r=t.unit;return Array.isArray(t.unit)&&(i=t.unit,r=void 0),Zp(n,this.plus(o),jn(Je({},t),{numeric:"always",units:i,unit:r}))}toRelativeCalendar(t={}){return this.isValid?Zp(t.base||Qe.fromObject({},{zone:this.zone}),this,jn(Je({},t),{numeric:"auto",units:["years","months","days"],calendary:!0})):null}static min(...t){if(!t.every(Qe.isDateTime))throw new Hn("min requires all arguments be DateTimes");return Ep(t,n=>n.valueOf(),Math.min)}static max(...t){if(!t.every(Qe.isDateTime))throw new Hn("max requires all arguments be DateTimes");return Ep(t,n=>n.valueOf(),Math.max)}static fromFormatExplain(t,n,o={}){const{locale:i=null,numberingSystem:r=null}=o,s=At.fromOpts({locale:i,numberingSystem:r,defaultToEN:!0});return Wy(s,t,n)}static fromStringExplain(t,n,o={}){return Qe.fromFormatExplain(t,n,o)}static get DATE_SHORT(){return vd}static get DATE_MED(){return ly}static get DATE_MED_WITH_WEEKDAY(){return vK}static get DATE_FULL(){return cy}static get DATE_HUGE(){return uy}static get TIME_SIMPLE(){return dy}static get TIME_WITH_SECONDS(){return fy}static get TIME_WITH_SHORT_OFFSET(){return my}static get TIME_WITH_LONG_OFFSET(){return hy}static get TIME_24_SIMPLE(){return py}static get TIME_24_WITH_SECONDS(){return by}static get TIME_24_WITH_SHORT_OFFSET(){return gy}static get TIME_24_WITH_LONG_OFFSET(){return vy}static get DATETIME_SHORT(){return _y}static get DATETIME_SHORT_WITH_SECONDS(){return yy}static get DATETIME_MED(){return wy}static get DATETIME_MED_WITH_SECONDS(){return xy}static get DATETIME_MED_WITH_WEEKDAY(){return _K}static get DATETIME_FULL(){return ky}static get DATETIME_FULL_WITH_SECONDS(){return Cy}static get DATETIME_HUGE(){return zy}static get DATETIME_HUGE_WITH_SECONDS(){return Sy}}function Yr(e){if(Qe.isDateTime(e))return e;if(e&&e.valueOf&&Ei(e.valueOf()))return Qe.fromJSDate(e);if(e&&typeof e=="object")return Qe.fromObject(e);throw new Hn(`Unknown datetime argument: ${e}, of type ${typeof e}`)}const hZ={durationInHours:function(e){const t=Math.floor(e/1e3);return t>3600?st.fromObject({seconds:t}).shiftTo("hours","minutes","seconds").toFormat("hh:mm:ss"):st.fromObject({seconds:t}).shiftTo("minutes","seconds").toFormat("mm:ss")},durationInDays:function(e){const t=Math.floor(e/6e4);return t>1440?st.fromObject({minutes:t}).shiftTo("days","hours","minutes").toHuman():t>60?st.fromObject({minutes:t}).shiftTo("hours","minutes").toHuman():st.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":""}},pZ={mdiAccountMusic:nW,mdiAlbum:oW,mdiArrowCollapseDown:rW,mdiBookOpenPageVariant:sW,mdiBookOpenVariant:aW,mdiBookshelf:lW,mdiBroadcast:cW,mdiCancel:uW,mdiCast:dW,mdiCastVariant:fW,mdiCellphone:mW,mdiCheck:hW,mdiChevronDown:pW,mdiChevronUp:bW,mdiContentSave:gW,mdiDelete:vW,mdiDeleteEmpty:_W,mdiDotsHorizontal:yW,mdiDotsVertical:wW,mdiDragHorizontal:xW,mdiFastForward:kW,mdiFileMusic:CW,mdiFileOutline:zW,mdiFire:SW,mdiFolder:$W,mdiFolderOpen:EW,mdiMagnify:AW,mdiMenu:OW,mdiMicrophone:TW,mdiMusic:PW,mdiMusicBoxMultiple:DW,mdiOpenInNew:FW,mdiPause:IW,mdiPencil:MW,mdiPipe:LW,mdiPlay:RW,mdiPlaylistPlay:NW,mdiPlaylistPlus:jW,mdiRadio:VW,mdiRadioTower:BW,mdiRefresh:UW,mdiRepeat:HW,mdiRepeatOff:qW,mdiRepeatOnce:GW,mdiRewind:WW,mdiRss:KW,mdiServer:YW,mdiShuffle:ZW,mdiShuffleDisabled:JW,mdiSkipBackward:XW,mdiSkipForward:QW,mdiSpeaker:eK,mdiSpotify:tK,mdiStop:nK,mdiSubdirectoryArrowLeft:oK,mdiVolumeHigh:iK,mdiVolumeOff:rK,mdiWeb:sK},bZ={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(_r,e)}},show_burger_menu:{get(){return this.$store.state.show_burger_menu},set(e){this.$store.commit(vr,e)}}},methods:{open_link:function(){this.show_burger_menu&&this.$store.commit(vr,!1),this.show_player_menu&&this.$store.commit(_r,!1),this.$router.push({path:this.to})},full_path:function(){return this.$router.resolve(this.to).href}}},gZ=["href"];function vZ(e,t,n,o,i,r){return S(),D("a",{class:Ye(["navbar-item",{"is-active":r.is_active}]),href:r.full_path(),onClick:t[0]||(t[0]=bt(s=>r.open_link(),["stop","prevent"]))},[Ct(e.$slots,"default")],10,gZ)}var i0=_e(bZ,[["render",vZ]]);const _Z={name:"NavbarTop",components:{NavbarItemLink:i0},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(vr,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(qs,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}}},yZ={class:"navbar-brand"},wZ={class:"icon"},xZ={class:"icon"},kZ={class:"icon"},CZ={class:"icon"},zZ={class:"icon"},SZ={class:"icon"},$Z={class:"icon"},EZ=c("span",null,null,-1),AZ=c("span",null,null,-1),OZ=c("span",null,null,-1),TZ=[EZ,AZ,OZ],PZ=c("div",{class:"navbar-start"},null,-1),DZ={class:"navbar-end"},FZ={class:"navbar-link is-arrowless"},IZ={class:"icon is-hidden-touch"},MZ=["textContent"],LZ={class:"navbar-dropdown is-right"},RZ={class:"icon"},NZ=["textContent"],jZ={class:"icon"},VZ=["textContent"],BZ=["textContent"],UZ=["textContent"],HZ=["textContent"],qZ=["textContent"],GZ={class:"icon"},WZ=["textContent"],KZ={class:"icon"},YZ=["textContent"],ZZ={class:"icon"},JZ=["textContent"],XZ={class:"icon"},QZ=["textContent"],eJ={class:"icon"},tJ=["textContent"],nJ=c("hr",{class:"fd-navbar-divider"},null,-1),oJ=["textContent"],iJ=c("div",{class:"navbar-item is-hidden-desktop",style:{"margin-bottom":"2.5rem"}},null,-1);function rJ(e,t,n,o,i,r){const s=P("mdicon"),a=P("navbar-item-link");return S(),D("nav",{class:"fd-top-navbar navbar is-light is-fixed-top",style:li(r.zindex),role:"navigation","aria-label":"main navigation"},[c("div",yZ,[r.is_visible_playlists?(S(),Ce(a,{key:0,to:"/playlists"},{default:T(()=>[c("span",wZ,[x(s,{name:"music-box-multiple",size:"16"})])]),_:1})):Q("",!0),r.is_visible_music?(S(),Ce(a,{key:1,to:"/music"},{default:T(()=>[c("span",xZ,[x(s,{name:"music",size:"16"})])]),_:1})):Q("",!0),r.is_visible_podcasts?(S(),Ce(a,{key:2,to:"/podcasts"},{default:T(()=>[c("span",kZ,[x(s,{name:"microphone",size:"16"})])]),_:1})):Q("",!0),r.is_visible_audiobooks?(S(),Ce(a,{key:3,to:"/audiobooks"},{default:T(()=>[c("span",CZ,[x(s,{name:"book-open-variant",size:"16"})])]),_:1})):Q("",!0),r.is_visible_radio?(S(),Ce(a,{key:4,to:"/radio"},{default:T(()=>[c("span",zZ,[x(s,{name:"radio",size:"16"})])]),_:1})):Q("",!0),r.is_visible_files?(S(),Ce(a,{key:5,to:"/files"},{default:T(()=>[c("span",SZ,[x(s,{name:"folder-open",size:"16"})])]),_:1})):Q("",!0),r.is_visible_search?(S(),Ce(a,{key:6,to:"/search"},{default:T(()=>[c("span",$Z,[x(s,{name:"magnify",size:"16"})])]),_:1})):Q("",!0),c("div",{class:Ye(["navbar-burger",{"is-active":r.show_burger_menu}]),onClick:t[0]||(t[0]=l=>r.show_burger_menu=!r.show_burger_menu)},TZ,2)]),c("div",{class:Ye(["navbar-menu",{"is-active":r.show_burger_menu}])},[PZ,c("div",DZ,[c("div",{class:Ye(["navbar-item has-dropdown is-hoverable",{"is-active":i.show_settings_menu}]),onClick:t[2]||(t[2]=(...l)=>r.on_click_outside_settings&&r.on_click_outside_settings(...l))},[c("a",FZ,[c("span",IZ,[x(s,{name:"menu",size:"24"})]),c("span",{class:"is-hidden-desktop has-text-weight-bold",textContent:_(e.$t("navigation.title"))},null,8,MZ)]),c("div",LZ,[x(a,{to:"/playlists"},{default:T(()=>[c("span",RZ,[x(s,{name:"music-box-multiple",size:"16"})]),c("b",{textContent:_(e.$t("navigation.playlists"))},null,8,NZ)]),_:1}),x(a,{to:"/music",exact:""},{default:T(()=>[c("span",jZ,[x(s,{name:"music",size:"16"})]),c("b",{textContent:_(e.$t("navigation.music"))},null,8,VZ)]),_:1}),x(a,{to:"/music/artists"},{default:T(()=>[c("span",{class:"fd-navbar-item-level2",textContent:_(e.$t("navigation.artists"))},null,8,BZ)]),_:1}),x(a,{to:"/music/albums"},{default:T(()=>[c("span",{class:"fd-navbar-item-level2",textContent:_(e.$t("navigation.albums"))},null,8,UZ)]),_:1}),x(a,{to:"/music/genres"},{default:T(()=>[c("span",{class:"fd-navbar-item-level2",textContent:_(e.$t("navigation.genres"))},null,8,HZ)]),_:1}),r.spotify_enabled?(S(),Ce(a,{key:0,to:"/music/spotify"},{default:T(()=>[c("span",{class:"fd-navbar-item-level2",textContent:_(e.$t("navigation.spotify"))},null,8,qZ)]),_:1})):Q("",!0),x(a,{to:"/podcasts"},{default:T(()=>[c("span",GZ,[x(s,{name:"microphone",size:"16"})]),c("b",{textContent:_(e.$t("navigation.podcasts"))},null,8,WZ)]),_:1}),x(a,{to:"/audiobooks"},{default:T(()=>[c("span",KZ,[x(s,{name:"book-open-variant",size:"16"})]),c("b",{textContent:_(e.$t("navigation.audiobooks"))},null,8,YZ)]),_:1}),x(a,{to:"/radio"},{default:T(()=>[c("span",ZZ,[x(s,{name:"radio",size:"16"})]),c("b",{textContent:_(e.$t("navigation.radio"))},null,8,JZ)]),_:1}),x(a,{to:"/files"},{default:T(()=>[c("span",XZ,[x(s,{name:"folder-open",size:"16"})]),c("b",{textContent:_(e.$t("navigation.files"))},null,8,QZ)]),_:1}),x(a,{to:"/search"},{default:T(()=>[c("span",eJ,[x(s,{name:"magnify",size:"16"})]),c("b",{textContent:_(e.$t("navigation.search"))},null,8,tJ)]),_:1}),nJ,x(a,{to:"/settings/webinterface"},{default:T(()=>[_t(_(e.$t("navigation.settings")),1)]),_:1}),c("a",{class:"navbar-item",onClick:t[1]||(t[1]=bt(l=>r.open_update_dialog(),["stop","prevent"])),textContent:_(e.$t("navigation.update-library"))},null,8,oJ),x(a,{to:"/about"},{default:T(()=>[_t(_(e.$t("navigation.about")),1)]),_:1}),iJ])],2)])],2),zt(c("div",{class:"is-overlay",style:{"z-index":"10",width:"100vw",height:"100vh"},onClick:t[3]||(t[3]=l=>i.show_settings_menu=!1)},null,512),[[gr,i.show_settings_menu]])],4)}var sJ=_e(_Z,[["render",rJ]]),Zr={_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 aJ={name:"NavbarItemOutput",components:{Slider:Fs},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(){Y.player_next()},set_volume:function(e){Y.player_output_volume(this.output.id,e)},set_enabled:function(){const e={selected:!this.output.selected};Y.output_update(this.output.id,e)}}},lJ={class:"navbar-item"},cJ={class:"level is-mobile"},uJ={class:"level-left fd-expanded"},dJ={class:"level-item",style:{"flex-grow":"0"}},fJ={class:"button is-white is-small"},mJ={class:"level-item fd-expanded"},hJ={class:"fd-expanded"},pJ=["textContent"];function bJ(e,t,n,o,i,r){const s=P("mdicon"),a=P("Slider");return S(),D("div",lJ,[c("div",cJ,[c("div",uJ,[c("div",dJ,[c("a",fJ,[c("span",{class:Ye(["icon fd-has-action",{"has-text-grey-light":!n.output.selected}]),onClick:t[0]||(t[0]=(...l)=>r.set_enabled&&r.set_enabled(...l))},[x(s,{name:r.type_class,size:"18",title:n.output.type},null,8,["name","title"])],2)])]),c("div",mJ,[c("div",hJ,[c("p",{class:Ye(["heading",{"has-text-grey-light":!n.output.selected}]),textContent:_(n.output.name)},null,10,pJ),x(a,{modelValue:r.volume,"onUpdate:modelValue":t[1]||(t[1]=l=>r.volume=l),min:0,max:100,step:1,tooltips:!1,disabled:!n.output.selected,classes:{target:"slider"},onChange:r.set_volume},null,8,["modelValue","disabled","onChange"])])])])])])}var gJ=_e(aJ,[["render",bJ]]);const vJ={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?Y.player_pause():this.is_playing&&!this.is_pause_allowed?Y.player_stop():Y.player_play()}}},_J=["disabled"],yJ={class:"icon"};function wJ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("a",{disabled:r.disabled,onClick:t[0]||(t[0]=(...a)=>r.toggle_play_pause&&r.toggle_play_pause(...a))},[c("span",yJ,[x(s,{name:r.icon_name,size:n.icon_size},null,8,["name","size"])])],8,_J)}var xJ=_e(vJ,[["render",wJ]]);const kJ={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||Y.player_next()}}},CJ=["disabled"],zJ={class:"icon"};function SJ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("a",{disabled:r.disabled,onClick:t[0]||(t[0]=(...a)=>r.play_next&&r.play_next(...a))},[c("span",zJ,[x(s,{name:"skip-forward",size:n.icon_size},null,8,["size"])])],8,CJ)}var $J=_e(kJ,[["render",SJ]]);const EJ={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||Y.player_previous()}}},AJ=["disabled"],OJ={class:"icon"};function TJ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("a",{disabled:r.disabled,onClick:t[0]||(t[0]=(...a)=>r.play_previous&&r.play_previous(...a))},[c("span",OJ,[x(s,{name:"skip-backward",size:n.icon_size},null,8,["size"])])],8,AJ)}var PJ=_e(EJ,[["render",TJ]]);const DJ={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(){Y.player_shuffle(!this.is_shuffle)}}},FJ={class:"icon"};function IJ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("a",{class:Ye({"is-warning":r.is_shuffle}),onClick:t[0]||(t[0]=(...a)=>r.toggle_shuffle_mode&&r.toggle_shuffle_mode(...a))},[c("span",FJ,[x(s,{name:r.icon_name,size:n.icon_size},null,8,["name","size"])])],2)}var MJ=_e(DJ,[["render",IJ]]);const LJ={name:"PlayerButtonConsume",props:{icon_size:{type:Number,default:16}},computed:{is_consume(){return this.$store.state.player.consume}},methods:{toggle_consume_mode:function(){Y.player_consume(!this.is_consume)}}},RJ={class:"icon"};function NJ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("a",{class:Ye({"is-warning":r.is_consume}),onClick:t[0]||(t[0]=(...a)=>r.toggle_consume_mode&&r.toggle_consume_mode(...a))},[c("span",RJ,[x(s,{name:"fire",size:n.icon_size},null,8,["size"])])],2)}var jJ=_e(LJ,[["render",NJ]]);const VJ={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?Y.player_repeat("single"):this.is_repeat_single?Y.player_repeat("off"):Y.player_repeat("all")}}},BJ={class:"icon"};function UJ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("a",{class:Ye({"is-warning":!r.is_repeat_off}),onClick:t[0]||(t[0]=(...a)=>r.toggle_repeat_mode&&r.toggle_repeat_mode(...a))},[c("span",BJ,[x(s,{name:r.icon_name,size:n.icon_size},null,8,["name","size"])])],2)}var HJ=_e(VJ,[["render",UJ]]);const qJ={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||Y.player_seek(this.seek_ms*-1)}}},GJ=["disabled"],WJ={class:"icon"};function KJ(e,t,n,o,i,r){const s=P("mdicon");return r.visible?(S(),D("a",{key:0,disabled:r.disabled,onClick:t[0]||(t[0]=(...a)=>r.seek&&r.seek(...a))},[c("span",WJ,[x(s,{name:"rewind",size:n.icon_size},null,8,["size"])])],8,GJ)):Q("",!0)}var YJ=_e(qJ,[["render",KJ]]);const ZJ={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||Y.player_seek(this.seek_ms)}}},JJ=["disabled"],XJ={class:"icon"};function QJ(e,t,n,o,i,r){const s=P("mdicon");return r.visible?(S(),D("a",{key:0,disabled:r.disabled,onClick:t[0]||(t[0]=(...a)=>r.seek&&r.seek(...a))},[c("span",XJ,[x(s,{name:"fast-forward",size:n.icon_size},null,8,["size"])])],8,JJ)):Q("",!0)}var eX=_e(ZJ,[["render",QJ]]);const tX={name:"NavbarBottom",components:{NavbarItemLink:i0,NavbarItemOutput:gJ,Slider:Fs,PlayerButtonPlayPause:xJ,PlayerButtonNext:$J,PlayerButtonPrevious:PJ,PlayerButtonShuffle:MJ,PlayerButtonConsume:jJ,PlayerButtonRepeat:HJ,PlayerButtonSeekForward:eX,PlayerButtonSeekBack:YJ},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(_r,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){Y.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=Zr.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(){Zr.stopAudio(),this.playing=!1},playChannel:function(){if(this.playing)return;const e="/stream.mp3";this.loading=!0,Zr.playSource(e),Zr.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,Zr.setVolume(this.stream_volume/100)}}},nX={class:"navbar-brand fd-expanded"},oX={class:"icon"},iX={class:"is-clipped"},rX={class:"is-size-7 fd-is-text-clipped"},sX=["textContent"],aX=c("br",null,null,-1),lX=["textContent"],cX=["textContent"],uX={class:"icon"},dX={class:"icon"},fX={class:"navbar-dropdown is-right is-boxed",style:{"margin-right":"6px","margin-bottom":"6px","border-radius":"6px"}},mX={class:"navbar-item"},hX={class:"level is-mobile"},pX={class:"level-left fd-expanded"},bX={class:"level-item",style:{"flex-grow":"0"}},gX={class:"icon"},vX={class:"level-item fd-expanded"},_X={class:"fd-expanded"},yX=["textContent"],wX=c("hr",{class:"fd-navbar-divider"},null,-1),xX=c("hr",{class:"fd-navbar-divider"},null,-1),kX={class:"navbar-item"},CX={class:"level is-mobile"},zX={class:"level-left fd-expanded"},SX={class:"level-item",style:{"flex-grow":"0"}},$X={class:"level-item fd-expanded"},EX={class:"fd-expanded"},AX=["textContent"],OX={href:"stream.mp3",style:{"margin-left":"5px"},target:"_blank"},TX={class:"icon"},PX=c("hr",{class:"fd-navbar-divider"},null,-1),DX={class:"navbar-item"},FX={class:"level is-mobile fd-expanded"},IX={class:"level-item"},MX={class:"buttons has-addons"},LX=c("div",{class:"navbar-start"},null,-1),RX={class:"navbar-end"},NX={class:"navbar-item"},jX={class:"buttons is-centered"},VX=c("hr",{class:"fd-navbar-divider"},null,-1),BX={class:"navbar-item"},UX={class:"level is-mobile"},HX={class:"level-left fd-expanded"},qX={class:"level-item",style:{"flex-grow":"0"}},GX={class:"icon"},WX={class:"level-item fd-expanded"},KX={class:"fd-expanded"},YX=["textContent"],ZX=c("hr",{class:"fd-navbar-divider"},null,-1),JX={class:"navbar-item fd-has-margin-bottom"},XX={class:"level is-mobile"},QX={class:"level-left fd-expanded"},eQ={class:"level-item",style:{"flex-grow":"0"}},tQ={class:"level-item fd-expanded"},nQ={class:"fd-expanded"},oQ=["textContent"],iQ={href:"stream.mp3",style:{"margin-left":"5px"},target:"_blank"},rQ={class:"icon"};function sQ(e,t,n,o,i,r){const s=P("mdicon"),a=P("navbar-item-link"),l=P("router-link"),u=P("player-button-previous"),d=P("player-button-seek-back"),m=P("player-button-play-pause"),f=P("player-button-seek-forward"),h=P("player-button-next"),p=P("Slider"),b=P("navbar-item-output"),g=P("player-button-repeat"),y=P("player-button-shuffle"),w=P("player-button-consume");return S(),D("nav",{class:Ye(["fd-bottom-navbar navbar is-white is-fixed-bottom",{"is-transparent":r.is_now_playing_page,"is-dark":!r.is_now_playing_page}]),style:li(r.zindex),role:"navigation","aria-label":"player controls"},[c("div",nX,[x(a,{to:"/",exact:""},{default:T(()=>[c("span",oX,[x(s,{name:"playlist-play",size:"24"})])]),_:1}),r.is_now_playing_page?Q("",!0):(S(),Ce(l,{key:0,to:"/now-playing",class:"navbar-item is-expanded is-clipped","active-class":"is-active",exact:""},{default:T(()=>[c("div",iX,[c("p",rX,[c("strong",{textContent:_(r.now_playing.title)},null,8,sX),aX,c("span",{textContent:_(r.now_playing.artist)},null,8,lX),r.now_playing.data_kind==="url"?(S(),D("span",{key:0,textContent:_(e.$t("navigation.now-playing",{album:r.now_playing.album}))},null,8,cX)):Q("",!0)])])]),_:1})),r.is_now_playing_page?(S(),Ce(u,{key:1,class:"navbar-item fd-margin-left-auto",icon_size:24})):Q("",!0),r.is_now_playing_page?(S(),Ce(d,{key:2,seek_ms:1e4,class:"navbar-item",icon_size:24})):Q("",!0),x(m,{class:"navbar-item",icon_size:36,show_disabled_message:""}),r.is_now_playing_page?(S(),Ce(f,{key:3,seek_ms:3e4,class:"navbar-item",icon_size:24})):Q("",!0),r.is_now_playing_page?(S(),Ce(h,{key:4,class:"navbar-item",icon_size:24})):Q("",!0),c("a",{class:"navbar-item fd-margin-left-auto is-hidden-desktop",onClick:t[0]||(t[0]=C=>r.show_player_menu=!r.show_player_menu)},[c("span",uX,[x(s,{name:r.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":r.show_player_menu}])},[c("a",{class:"navbar-link is-arrowless",onClick:t[1]||(t[1]=C=>r.show_player_menu=!r.show_player_menu)},[c("span",dX,[x(s,{name:r.show_player_menu?"chevron-down":"chevron-up",size:"18"},null,8,["name"])])]),c("div",fX,[c("div",mX,[c("div",hX,[c("div",pX,[c("div",bX,[c("a",{class:"button is-white is-small",onClick:t[2]||(t[2]=(...C)=>r.toggle_mute_volume&&r.toggle_mute_volume(...C))},[c("span",gX,[x(s,{name:r.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),c("div",vX,[c("div",_X,[c("p",{class:"heading",textContent:_(e.$t("navigation.volume"))},null,8,yX),x(p,{modelValue:r.player.volume,"onUpdate:modelValue":t[3]||(t[3]=C=>r.player.volume=C),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:r.set_volume},null,8,["modelValue","onChange"])])])])])]),wX,(S(!0),D(Ge,null,xt(r.outputs,C=>(S(),Ce(b,{key:C.id,output:C},null,8,["output"]))),128)),xX,c("div",kX,[c("div",CX,[c("div",zX,[c("div",SX,[c("a",{class:Ye(["button is-white is-small",{"is-loading":i.loading}])},[c("span",{class:Ye(["icon fd-has-action",{"has-text-grey-light":!i.playing&&!i.loading,"is-loading":i.loading}]),onClick:t[4]||(t[4]=(...C)=>r.togglePlay&&r.togglePlay(...C))},[x(s,{name:"broadcast",size:"18"})],2)],2)]),c("div",$X,[c("div",EX,[c("p",{class:Ye(["heading",{"has-text-grey-light":!i.playing}])},[c("span",{textContent:_(e.$t("navigation.stream"))},null,8,AX),c("a",OX,[c("span",TX,[x(s,{name:"open-in-new",size:"16",style:{"vertical-align":"middle"}})])])],2),x(p,{modelValue:i.stream_volume,"onUpdate:modelValue":t[5]||(t[5]=C=>i.stream_volume=C),min:0,max:100,step:1,tooltips:!1,disabled:!i.playing,classes:{target:"slider"},onChange:r.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])]),PX,c("div",DX,[c("div",FX,[c("div",IX,[c("div",MX,[x(g,{class:"button"}),x(y,{class:"button"}),x(w,{class:"button"})])])])])])],2)]),c("div",{class:Ye(["navbar-menu is-hidden-desktop",{"is-active":r.show_player_menu}])},[LX,c("div",RX,[c("div",NX,[c("div",jX,[x(g,{class:"button",icon_size:18}),x(y,{class:"button",icon_size:18}),x(w,{class:"button",icon_size:18})])]),VX,c("div",BX,[c("div",UX,[c("div",HX,[c("div",qX,[c("a",{class:"button is-white is-small",onClick:t[6]||(t[6]=(...C)=>r.toggle_mute_volume&&r.toggle_mute_volume(...C))},[c("span",GX,[x(s,{name:r.player.volume>0?"volume-high":"volume-off",size:"18"},null,8,["name"])])])]),c("div",WX,[c("div",KX,[c("p",{class:"heading",textContent:_(e.$t("navigation.volume"))},null,8,YX),x(p,{modelValue:r.player.volume,"onUpdate:modelValue":t[7]||(t[7]=C=>r.player.volume=C),min:0,max:100,step:1,tooltips:!1,classes:{target:"slider"},onChange:r.set_volume},null,8,["modelValue","onChange"])])])])])]),(S(!0),D(Ge,null,xt(r.outputs,C=>(S(),Ce(b,{key:C.id,output:C},null,8,["output"]))),128)),ZX,c("div",JX,[c("div",XX,[c("div",QX,[c("div",eQ,[c("a",{class:Ye(["button is-white is-small",{"is-loading":i.loading}])},[c("span",{class:Ye(["icon fd-has-action",{"has-text-grey-light":!i.playing&&!i.loading,"is-loading":i.loading}]),onClick:t[8]||(t[8]=(...C)=>r.togglePlay&&r.togglePlay(...C))},[x(s,{name:"radio-tower",size:"16"})],2)],2)]),c("div",tQ,[c("div",nQ,[c("p",{class:Ye(["heading",{"has-text-grey-light":!i.playing}])},[c("span",{textContent:_(e.$t("navigation.stream"))},null,8,oQ),c("a",iQ,[c("span",rQ,[x(s,{name:"open-in-new",size:"16",style:{"vertical-align":"middle"}})])])],2),x(p,{modelValue:i.stream_volume,"onUpdate:modelValue":t[9]||(t[9]=C=>i.stream_volume=C),min:0,max:100,step:1,tooltips:!1,disabled:!i.playing,classes:{target:"slider"},onChange:r.set_stream_volume},null,8,["modelValue","disabled","onChange"])])])])])])])],2)],6)}var aQ=_e(tX,[["render",sQ]]);const lQ={name:"NotificationList",components:{},data(){return{showNav:!1}},computed:{notifications(){return this.$store.state.notifications.list}},methods:{remove:function(e){this.$store.commit(Ju,e)}}},cQ={key:0,class:"fd-notifications"},uQ={class:"columns is-centered"},dQ={class:"column is-half"},fQ=["onClick"],mQ=["textContent"];function hQ(e,t,n,o,i,r){return r.notifications.length>0?(S(),D("section",cQ,[c("div",uQ,[c("div",dQ,[(S(!0),D(Ge,null,xt(r.notifications,s=>(S(),D("div",{key:s.id,class:Ye(["notification has-shadow",["notification",s.type?`is-${s.type}`:""]])},[c("button",{class:"delete",onClick:a=>r.remove(s)},null,8,fQ),c("span",{textContent:_(s.text)},null,8,mQ)],2))),128))])])])):Q("",!0)}var pQ=_e(lQ,[["render",hQ]]);const bQ={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(){Y.pairing_kickoff(this.pairing_req).then(()=>{this.pairing_req.pin=""})}}},gQ={key:0,class:"modal is-active"},vQ={class:"modal-content fd-modal-card"},_Q={class:"card"},yQ={class:"card-content"},wQ=["textContent"],xQ=["textContent"],kQ={class:"field"},CQ={class:"control"},zQ={class:"card-footer"},SQ={class:"icon"},$Q=["textContent"],EQ={class:"icon"},AQ=["textContent"];function OQ(e,t,n,o,i,r){const s=P("mdicon");return S(),D("div",null,[x(Gt,{name:"fade"},{default:T(()=>[n.show?(S(),D("div",gQ,[c("div",{class:"modal-background",onClick:t[0]||(t[0]=a=>e.$emit("close"))}),c("div",vQ,[c("div",_Q,[c("div",yQ,[c("p",{class:"title is-4",textContent:_(e.$t("dialog.remote-pairing.title"))},null,8,wQ),c("form",{onSubmit:t[2]||(t[2]=bt((...a)=>r.kickoff_pairing&&r.kickoff_pairing(...a),["prevent"]))},[c("label",{class:"label",textContent:_(r.pairing.remote)},null,8,xQ),c("div",kQ,[c("div",CQ,[zt(c("input",{ref:"pin_field","onUpdate:modelValue":t[1]||(t[1]=a=>i.pairing_req.pin=a),class:"input",type:"text",placeholder:"Enter pairing code"},null,512),[[zn,i.pairing_req.pin]])])])],32)]),c("footer",zQ,[c("a",{class:"card-footer-item has-text-danger",onClick:t[3]||(t[3]=a=>e.$emit("close"))},[c("span",SQ,[x(s,{name:"cancel",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.remote-pairing.cancel"))},null,8,$Q)]),c("a",{class:"card-footer-item has-background-info has-text-white has-text-weight-bold",onClick:t[4]||(t[4]=(...a)=>r.kickoff_pairing&&r.kickoff_pairing(...a))},[c("span",EQ,[x(s,{name:"cellphone",size:"16"})]),c("span",{class:"is-size-7",textContent:_(e.$t("dialog.remote-pairing.pair"))},null,8,AQ)])])])]),c("button",{class:"modal-close is-large","aria-label":"close",onClick:t[5]||(t[5]=a=>e.$emit("close"))})])):Q("",!0)]),_:1})])}var TQ=_e(bQ,[["render",OQ]]);const PQ={name:"ModalDialogUpdate",components:{ModalDialog:Pf},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(mf,e)}}},methods:{update_library(){this.rescan_metadata?Y.library_rescan(this.update_dialog_scan_kind):Y.library_update(this.update_dialog_scan_kind)},close(){this.update_dialog_scan_kind="",this.$emit("close")}}},DQ={key:0},FQ=["textContent"],IQ={key:0,class:"field"},MQ={class:"control"},LQ={class:"select is-small"},RQ=["textContent"],NQ=["textContent"],jQ=["textContent"],VQ=["textContent"],BQ={class:"field"},UQ={class:"checkbox is-size-7 is-small"},HQ=["textContent"],qQ={key:1},GQ=["textContent"];function WQ(e,t,n,o,i,r){const s=P("modal-dialog");return S(),Ce(s,{show:n.show,title:e.$t("dialog.update.title"),ok_action:r.library.updating?"":e.$t("dialog.update.rescan"),close_action:e.$t("dialog.update.cancel"),onOk:r.update_library,onClose:t[2]||(t[2]=a=>r.close())},{"modal-content":T(()=>[r.library.updating?(S(),D("div",qQ,[c("p",{class:"mb-3",textContent:_(e.$t("dialog.update.progress"))},null,8,GQ)])):(S(),D("div",DQ,[c("p",{class:"mb-3",textContent:_(e.$t("dialog.update.info"))},null,8,FQ),r.spotify_enabled||r.rss.tracks>0?(S(),D("div",IQ,[c("div",MQ,[c("div",LQ,[zt(c("select",{"onUpdate:modelValue":t[0]||(t[0]=a=>r.update_dialog_scan_kind=a)},[c("option",{value:"",textContent:_(e.$t("dialog.update.all"))},null,8,RQ),c("option",{value:"files",textContent:_(e.$t("dialog.update.local"))},null,8,NQ),r.spotify_enabled?(S(),D("option",{key:0,value:"spotify",textContent:_(e.$t("dialog.update.spotify"))},null,8,jQ)):Q("",!0),r.rss.tracks>0?(S(),D("option",{key:1,value:"rss",textContent:_(e.$t("dialog.update.feeds"))},null,8,VQ)):Q("",!0)],512),[[Xd,r.update_dialog_scan_kind]])])])])):Q("",!0),c("div",BQ,[c("label",UQ,[zt(c("input",{"onUpdate:modelValue":t[1]||(t[1]=a=>i.rescan_metadata=a),type:"checkbox",style:{"margin-right":"5px"}},null,512),[[Oo,i.rescan_metadata]]),c("span",{textContent:_(e.$t("dialog.update.rescan-metadata"))},null,8,HQ)])])]))]),_:1},8,["show","title","ok_action","close_action","onOk"])}var KQ=_e(PQ,[["render",WQ]]),r0={exports:{}};(function(e){(function(t,n){e.exports?e.exports=n():t.ReconnectingWebSocket=n()})(an,function(){if(!("WebSocket"in window))return;function t(n,o,i){var r={debug:!1,automaticOpen:!0,reconnectInterval:1e3,maxReconnectInterval:3e4,reconnectDecay:1.5,timeoutInterval:2e3,maxReconnectAttempts:null};i||(i={});for(var s in r)typeof i[s]!="undefined"?this[s]=i[s]:this[s]=r[s];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(h){a.onopen(h)}),m.addEventListener("close",function(h){a.onclose(h)}),m.addEventListener("connecting",function(h){a.onconnecting(h)}),m.addEventListener("message",function(h){a.onmessage(h)}),m.addEventListener("error",function(h){a.onerror(h)}),this.addEventListener=m.addEventListener.bind(m),this.removeEventListener=m.removeEventListener.bind(m),this.dispatchEvent=m.dispatchEvent.bind(m);function f(h,p){var b=document.createEvent("CustomEvent");return b.initCustomEvent(h,!1,!1,p),b}this.open=function(h){if(l=new WebSocket(a.url,o||[]),h){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 p=l,b=setTimeout(function(){(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","connection-timeout",a.url),d=!0,p.close(),d=!1},a.timeoutInterval);l.onopen=function(g){clearTimeout(b),(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","onopen",a.url),a.protocol=l.protocol,a.readyState=WebSocket.OPEN,a.reconnectAttempts=0;var y=f("open");y.isReconnect=h,h=!1,m.dispatchEvent(y)},l.onclose=function(g){if(clearTimeout(w),l=null,u)a.readyState=WebSocket.CLOSED,m.dispatchEvent(f("close"));else{a.readyState=WebSocket.CONNECTING;var y=f("connecting");y.code=g.code,y.reason=g.reason,y.wasClean=g.wasClean,m.dispatchEvent(y),!h&&!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 y=f("message");y.data=g.data,m.dispatchEvent(y)},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(h){if(l)return(a.debug||t.debugAll)&&console.debug("ReconnectingWebSocket","send",a.url,h),l.send(h);throw"INVALID_STATE_ERR : Pausing to reconnect websocket"},this.close=function(h,p){typeof h=="undefined"&&(h=1e3),u=!0,l&&l.close(h,p)},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})})(r0);var YQ=r0.exports;const ZQ={name:"App",components:{NavbarTop:sJ,NavbarBottom:aQ,NotificationList:pQ,ModalDialogRemotePairing:TQ,ModalDialogUpdate:KQ},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(vr,e)}},show_player_menu:{get(){return this.$store.state.show_player_menu},set(e){this.$store.commit(_r,e)}},show_update_dialog:{get(){return this.$store.state.show_update_dialog},set(e){this.$store.commit(qs,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 o=e.meta.progress;this.$Progress.parseMeta(o)}this.$Progress.start()}n()}),this.$router.afterEach((e,t)=>{e.meta.show_progress&&this.$Progress.finish()})},methods:{connect:function(){Y.config().then(({data:e})=>{this.$store.commit(Xg,e),this.$store.commit(dc,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 o=new YQ(n,"notify",{reconnectInterval:1e3,maxReconnectInterval:2e3});o.onopen=function(){e.reconnect_attempts=0,o.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()},o.onclose=function(){};var i=!1;function r(){i||(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(),i=!0,setTimeout(function(){i=!1},500))}window.addEventListener("focus",r),document.addEventListener("visibilitychange",function(){document.visibilityState==="visible"&&r()}),o.onmessage=function(s){const a=JSON.parse(s.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(){Y.library_stats().then(({data:e})=>{this.$store.commit(ev,e)}),Y.library_count("media_kind is audiobook").then(({data:e})=>{this.$store.commit(tv,e)}),Y.library_count("media_kind is podcast").then(({data:e})=>{this.$store.commit(nv,e)}),Y.library_count("scan_kind is rss").then(({data:e})=>{this.$store.commit(ov,e)})},update_outputs:function(){Y.outputs().then(({data:e})=>{this.$store.commit(iv,e.outputs)})},update_player_status:function(){Y.player_status().then(({data:e})=>{this.$store.commit(lf,e)})},update_queue:function(){Y.queue().then(({data:e})=>{this.$store.commit(rv,e)})},update_settings:function(){Y.settings().then(({data:e})=>{this.$store.commit(Qg,e)})},update_lastfm:function(){Y.lastfm().then(({data:e})=>{this.$store.commit(sv,e)})},update_spotify:function(){Y.spotify().then(({data:e})=>{this.$store.commit(av,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(){Y.pairing().then(({data:e})=>{this.$store.commit(lv,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/>"},JQ={id:"app"};function XQ(e,t,n,o,i,r){const s=P("navbar-top"),a=P("vue-progress-bar"),l=P("router-view"),u=P("modal-dialog-remote-pairing"),d=P("modal-dialog-update"),m=P("notification-list"),f=P("navbar-bottom");return S(),D("div",JQ,[x(s),x(a,{class:"fd-progress-bar"}),x(l,null,{default:T(({Component:h})=>[(S(),Ce(Bb(h),{class:"fd-page"}))]),_:1}),x(u,{show:i.pairing_active,onClose:t[0]||(t[0]=h=>i.pairing_active=!1)},null,8,["show"]),x(d,{show:r.show_update_dialog,onClose:t[1]||(t[1]=h=>r.show_update_dialog=!1)},null,8,["show"]),zt(x(m,null,null,512),[[gr,!r.show_burger_menu]]),x(f),zt(c("div",{class:"fd-overlay-fullscreen",onClick:t[2]||(t[2]=h=>r.show_burger_menu=r.show_player_menu=!1)},null,512),[[gr,r.show_burger_menu||r.show_player_menu]])])}var QQ=_e(ZQ,[["render",XQ]]);const s0=Og(QQ).use(at).use(ey).use(jG,{color:"hsl(204, 86%, 53%)",failedColor:"red",height:"1px"}).use(BG).use(eW,{log:!1}).use(tW).use(hK,{icons:pZ}).use(a2);s0.config.globalProperties.$filters=hZ;s0.mount("#app");